[ { "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": [ "15", "10" ], "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(1) V(0)" }, { "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": [ "California", "State" ], "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(0)" }, { "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": [ "3", "State" ], "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": "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": [ "Treasury", "State", "Homeland Security" ], "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(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)" }, { "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": [ "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 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": [ "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 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": [ "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 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": [ "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 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", "rain", "Fog", "94107" ], "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(3) Filter(0) Filter(3) A(0) C(43) T(3) V(2) Filter(3) A(0) C(43) T(3) 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": "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": [ "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 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": [ "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 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": [ "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 , 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": [ "70", "100" ], "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(0) Root(3) Sel(0) N(0) A(0) C(21) T(2) Filter(7) A(3) C(0) T(2) V(1)" }, { "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": [ "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 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": [ "Mountain View", "Palo Alto" ], "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(0) Filter(2) A(0) C(6) T(0) 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 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", "Mountain View", "Palo Alto" ], "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(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 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": [ "5000000", "10000000" ], "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": "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" ], "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": [ "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\" 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": [ "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": "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": [ "10", "5" ], "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(1) 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": "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": [ "10", "5" ], "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(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": "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": [ "Product", "2" ], "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(1)" }, { "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": [ "3", "Product", "5" ], "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(0) Filter(5) A(0) C(23) T(3) V(2)" }, { "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": [ "Product", "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 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": [ "8", "Product" ], "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(0)" }, { "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": [ "8", "Product" ], "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(0)" }, { "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": [ "200000", "100000" ], "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(1) 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": "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": [ "Honolulu", "Los Angeles" ], "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(1) 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": "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": [ "Honolulu", "Los Angeles" ], "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(1) Filter(2) A(0) C(3) 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": "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 747-400", "Boeing 737-800", "Boeing 727", "Boeing 777-300", "800", "737", "Boeing 757-300" ], "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(1)" }, { "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 747-400", "Boeing 737-800", "Boeing 727", "Boeing 777-300", "800", "737", "Boeing 757-300" ], "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(1)" }, { "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": [ "300", "Boeing 747-400", "Boeing 737-800", "Boeing 777-300", "800", "737", "Airbus A340-300", "Boeing 757-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(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 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 777-300", "737", "Boeing 747-400", "Boeing 737-800", "800", "Airbus A340-300", "Boeing 757-300", "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(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(5)" }, { "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 777-300", "Boeing 747-400", "737", "Boeing 737-800", "800", "Boeing 727", "Boeing 757-300" ], "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(3)" }, { "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 777-300", "Boeing 747-400", "737", "Boeing 737-800", "800", "Boeing 727", "Boeing 757-300" ], "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(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": "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": [ "5", "5000" ], "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(1) 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": [ "5", "5000" ], "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(1) 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": [ "F", "1" ], "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 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": [ "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 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": [ "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 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": [ "Milk", "F", "Eggs" ], "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(1) 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 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": [ "Milk", "F", "Eggs" ], "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(1) 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 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": [ "Cat", "Milk" ], "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(1)" }, { "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": [ "F", "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 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": [ "Cat", "Milk", "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(1)" }, { "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": [ "1", "Milk", "Cat" ], "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(1)" }, { "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": [ "1", "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(1)" }, { "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": [ "food", "M" ], "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(1) 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 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": [ "food", "M" ], "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(1) 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 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", "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 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": [ "1", "Milk", "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(1) Filter(2) A(0) C(4) T(1) 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": "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", "animal", "18" ], "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(2) 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(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": "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", "animal", "18" ], "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(2) 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(1)" }, { "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": [ "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": "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": [ "invoices", "Numbers", "Lost", "5" ], "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": [ "invoices", "Numbers", "May", "5" ], "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": [ "invoices", "8", "Lost" ], "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": [ "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 , 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", "customers", "5" ], "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": [ "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 , 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": [ "1", "10", "customers", "Numbers" ], "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": [ "1", "10", "customers", "Numbers" ], "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": [ "1", "10", "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.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": [ "genres", "Lost", "Numbers", "5", "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", "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 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", "customers", "invoices", "10" ], "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", "customers", "invoices", "10" ], "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": [ "invoices", "Chicago", "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(2)" }, { "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": [ "Chicago", "Money", "invoices", "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(0) 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": [ "Chicago", "invoices", "Numbers", "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(0) 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": "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": [ "Chicago", "invoices", "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(0) 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", "Numbers", "CA" ], "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(2)" }, { "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": [ "Money", "CA", "invoices", "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 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": [ "albums", "Lost", "Aerosmith" ], "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(2)" }, { "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": [ "albums", "Aerosmith" ], "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 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": [ "albums", "Billy Cobham" ], "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 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" ], "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", "Gruber", "Astrid" ], "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(2) 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 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": [ "Gruber", "Astrid", "customers", "Numbers" ], "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(0)" }, { "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": [ "customers", "CA" ], "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(1)" }, { "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": [ "Roberto", "Robert", "Almeida" ], "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(0) Filter(2) A(0) C(6) T(4) V(2)" }, { "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": [ "Roberto", "Robert", "Almeida" ], "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(0) Filter(2) A(0) C(6) T(4) V(2)" }, { "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": [ "albums", "Led" ], "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(1)" }, { "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": [ "artists", "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(1)" }, { "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", "customers", "Johnson" ], "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(3)" }, { "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", "customers", "Johnson" ], "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(3)" }, { "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": [ "Edwards", "employees", "Nancy", "Numbers", "Edward" ], "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(2) Filter(2) A(0) C(6) T(3) V(0)" }, { "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": [ "Edwards", "Edward", "employees", "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(0)" }, { "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": [ "Edwards", "employees", "1", "Nancy", "Edward" ], "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(0)" }, { "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": [ "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 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": [ "Nancy", "Edwards", "Edward" ], "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(0) Filter(2) A(0) C(6) T(3) V(1)" }, { "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": [ "customers", "Numbers", "employees" ], "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": [ "customers", "employees" ], "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": [ "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 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": [ "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 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", "Edwards", "Numbers", "Edward" ], "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(1)" }, { "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", "Edwards", "Numbers", "Edward" ], "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(1)" }, { "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": [ "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 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", "employees", "10", "Lost" ], "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", "employees", "10" ], "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": [ "employees", "Numbers", "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(2)" }, { "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": [ "1", "Numbers", "employees" ], "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": [ "1", "employees" ], "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": [ "invoices", "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(1) Filter(2) A(0) C(6) T(4) V(2)" }, { "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": [ "Money", "Lucas", "Mancini" ], "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(1) Filter(2) A(0) C(6) T(4) V(2)" }, { "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": [ "Money", "Lucas", "Mancini" ], "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(1) Filter(2) A(0) C(6) T(4) V(2)" }, { "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": [ "tracks", "genres", "Rock" ], "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(2)" }, { "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": [ "tracks", "genres", "Rock" ], "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(2)" }, { "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", "The Wait", "Balls to the Wall", "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(2)" }, { "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": [ "The Wait", "tracks", "Balls to the Wall", "albums" ], "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", "albums", "10", "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(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": "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", "10", "tracks" ], "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 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": [ "Fire", "MPEG audio file", "tracks", "genres", "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(1)" }, { "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": [ "MPEG audio file", "Rock", "tracks" ], "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(0)" }, { "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": [ "media_types", "Fire", "MPEG audio file", "tracks", "genres", "Rock" ], "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(5) 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": [ "tracks", "Rock", "media_types", "genres", "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(1) 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": [ "Jazz", "tracks", "Rock", "genres" ], "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(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\" 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": [ "Jazz", "tracks", "Rock" ], "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(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 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": [ "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 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": [ "tracks", "Movies", "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(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": "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", "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 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": [ "Daan", "Peeters", "Dan", "tracks" ], "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(0) Filter(2) A(0) C(6) T(4) V(1)" }, { "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": [ "Music", "Movies", "playlists", "tracks" ], "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(1) 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' 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", "playlists", "tracks", "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": [ "Music", "playlists", "tracks", "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(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": "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": [ "Music", "playlists", "tracks", "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(0)" }, { "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": [ "genres", "Numbers", "tracks" ], "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", "Art", "Turcotte" ], "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(1) Filter(2) A(0) C(6) T(1) V(2)" }, { "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": [ "Art", "1", "Turcotte" ], "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(0) Filter(2) A(0) C(6) T(1) V(2)" }, { "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": [ "Feest", "1", "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(0)" }, { "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", "Aniyah", "Feest" ], "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(1) Filter(2) A(0) C(6) T(1) V(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": "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": [ "1", "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(1)" }, { "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", "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(1) Filter(2) A(0) C(6) T(1) V(2)" }, { "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", "Blanche", "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(0) Filter(2) A(0) C(12) T(2) V(2)" }, { "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", "Credit", "Huels" ], "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(3) Filter(2) A(0) C(12) T(2) V(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": "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": [ "1", "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(1)" }, { "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": [ "1", "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(1)" }, { "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": [ "Hartford", "Waterbury", "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(1)" }, { "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": [ "5/", "May" ], "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(1)" }, { "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": [ "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 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": [ "Metallica", "Numbers" ], "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 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": [ "you", "World" ], "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(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": "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": [ "Park", "Numbers", "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(2)" }, { "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": [ "70174", "Core", "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(0)" }, { "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": [ "Coda", "Core", "70174" ], "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(2)" }, { "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", "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 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": [ "1", "Astrid", "Gruber" ], "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(2)" }, { "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": [ "Brazil", "1", "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(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": "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": [ "Pop", "Latin" ], "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(1) Filter(2) A(0) C(4) T(4) V(0)" }, { "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": [ "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": "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": [ "New policy application", "Close a policy" ], "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(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": "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": [ "inhibitor", "Amisulpride" ], "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(2) A(0) C(12) T(2) 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 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": [ "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 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": [ "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 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": [ "32", "2002" ], "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(1) Filter(5) A(0) C(3) T(0) V(0)" }, { "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": [ "32", "Text" ], "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(1) Filter(5) A(0) C(3) T(0) V(0)" }, { "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": [ "Text", "Nokia Corporation" ], "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(1) Filter(3) A(0) C(14) T(1) V(0)" }, { "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": [ "10", "15" ], "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(0) V(1)" }, { "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": [ "Duke", "Maryland" ], "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(1) Filter(2) A(0) C(14) T(2) 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": "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": [ "Duke", "Maryland" ], "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(1) Filter(2) A(0) C(14) 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": "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": [ "5600", "5200" ], "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(0) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(4) A(0) C(3) T(0) V(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": "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": [ "5600", "5200" ], "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(0) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(4) A(0) C(3) T(0) V(1)" }, { "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": [ "5000", "1000" ], "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(0) Filter(5) A(0) C(4) T(0) V(1)" }, { "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": [ "5000", "1000" ], "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(0) Filter(5) A(0) C(4) T(0) V(1)" }, { "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": [ "New York", "Indiana" ], "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(0) Filter(2) A(0) C(9) T(1) V(1)" }, { "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": [ "Bode", "Studio" ], "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(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": "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": [ "Bode", "Studio" ], "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(1)" }, { "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": [ "Male", "Bode" ], "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 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": [ "Bode", "Suite 634", "634" ], "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(1)" }, { "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": [ "Bode", "Suite 634", "634" ], "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(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": "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": [ "Confirmed", "Bode" ], "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(0)" }, { "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": [ "Confirmed", "Bode" ], "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(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": "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": [ "Female", "Bode" ], "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(0)" }, { "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": [ "Female", "Bode" ], "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(0)" }, { "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": [ "1", "Confirmed", "Bode" ], "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(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": "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": [ "1", "Confirmed", "Bode" ], "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(1)" }, { "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": [ "1", "Bode" ], "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(0)" }, { "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": [ "1", "Bode" ], "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(0)" }, { "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": [ "1", "0" ], "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(1) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(25) T(5) V(0)" }, { "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": [ "1", "0" ], "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(1) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(25) T(5) V(0)" }, { "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" ], "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" ], "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" ], "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": [ "League", "Country" ], "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": [ "League", "England" ], "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(1)" }, { "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": [ "Player", "90", "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(1) 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", "85", "90", "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(1) Filter(6) A(0) C(5) T(0) V(2)" }, { "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": [ "Player", "Mano", "Manu", "80", "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(3)" }, { "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": [ "180", "Player", "85" ], "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(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(5) A(0) C(5) T(0) V(2)" }, { "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", "190", "Player", "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(1) 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": [ "Bell Centre", "TD Garden" ], "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(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "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": [ "1000", "2000" ], "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(1) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(4) A(0) C(9) T(1) V(0)" }, { "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": [ "Nam", "Namer", "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": [ "Nam", "Namer", "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": [ "100", "50", "50.000000", "Rotom" ], "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(1) V(0)" }, { "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": [ "100", "50", "Rotom" ], "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(1) V(0)" }, { "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": [ "Nam", "Namer", "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": [ "Nam", "Namer", "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": [ "History", "Nam", "Namer", "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(0)" }, { "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": [ "History", "Nam", "Namer", "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(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 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", "Nam", "Namer" ], "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", "Nam", "Namer" ], "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": [ "Jame", "Nam", "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": [ "Finance", "Marketing", "Sumi" ], "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 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": [ "Soisalon", "Jame", "Nam", "Namer" ], "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(0)" }, { "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": [ "Soisalon", "Jame", "Nam", "Namer" ], "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(0)" }, { "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": [ "50", "Lamberton" ], "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(1) Filter(4) A(0) C(3) T(0) V(0)" }, { "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": [ "50", "Lamberton" ], "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(1) Filter(4) A(0) C(3) T(0) V(0)" }, { "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": [ "Namer", "Nam", "Jame" ], "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", "Namer", "Nam", "Jame" ], "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", "Namer", "Nam", "Jame" ], "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": [ "Psychology", "Statistics" ], "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(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": "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": [ "Psychology", "Statistics" ], "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(0)" }, { "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": [ "Psychology", "Statistics" ], "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(0)" }, { "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": [ "Psychology", "Statistics" ], "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(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": "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": [ "Fall", "2009", "Spring", "2010" ], "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(0) 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(2) Filter(2) A(0) C(14) T(5) V(3)" }, { "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": [ "Fall", "2009", "Spring", "2010" ], "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(0) 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(2) Filter(2) A(0) C(14) T(5) 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": "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": [ "Namer", "2010", "2009", "Jame", "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(2) Filter(2) A(0) C(14) T(7) V(1)" }, { "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": [ "Namer", "2009", "2010" ], "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(1) 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": [ "Namer", "Nam", "Jame" ], "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": [ "Namer", "Nam", "Jame" ], "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": [ "Namer", "Nam", "Jame" ], "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": [ "Namer", "Nam", "Jame" ], "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": [ "Namer", "Nam", "Jame" ], "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": [ "2008", "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(0) 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": [ "2008", "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(0) 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": [ "Namer", "Nam", "1", "Jame" ], "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": [ "Namer", "1" ], "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(1)" }, { "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": [ "Namer", "Nam", "1", "Jame" ], "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": [ "Namer", "1" ], "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(1)" }, { "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": [ "Jame", "Namer", "Nam" ], "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": [ "Jame", "Namer", "Nam" ], "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": [ "Jame", "Namer", "Nam", "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(3)" }, { "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": [ "Jame", "Namer", "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" ], "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" ], "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": [ "2003", "Fall", "Namer" ], "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(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": "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": [ "2003", "Fall", "Namer" ], "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(0)" }, { "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": [ "2010", "Chandler", "Fall" ], "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(1) Filter(0) Filter(2) A(0) C(13) T(4) V(2) Filter(2) A(0) C(14) T(4) V(0)" }, { "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": [ "2010", "Chandler", "Fall" ], "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(1) Filter(0) Filter(2) A(0) C(13) T(4) V(2) Filter(2) A(0) C(14) T(4) V(0)" }, { "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": [ "RPG Programming", "C Programming", "Jame", "Namer", "Nam", "C", "FOCAL Programming", "Game Programming", "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": [ "RPG Programming", "C Programming", "Namer", "C", "FOCAL Programming", "Game Programming", "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", "Namer", "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(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", "Namer", "Nam", "Jame" ], "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": [ "Namer", "Nam", "Jame" ], "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": [ "Namer", "Nam", "Jame" ], "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": [ "Namer", "Nam", "Jame" ], "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": [ "Namer", "Spring" ], "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(1)" }, { "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": [ "Namer", "Spring" ], "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(1)" }, { "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": [ "Namer", "Nam", "Jame" ], "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": [ "Nam", "Biology", "Jame", "Namer" ], "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(1)" }, { "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" ], "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": [ "Nam", "Finance", "Jame", "International Finance", "Namer" ], "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(3)" }, { "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": [ "Namer", "Finance", "International 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(2)" }, { "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": [ "Jame", "Nam", "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(2)" }, { "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": [ "Jame", "Nam", "Statistics", "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(2)" }, { "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", "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": [ "Comp. Sci.", "80000", "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(0) 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": [ "Comp. Sci.", "80000", "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(0) 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", "dar", "Jame" ], "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(2)" }, { "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": [ "Namer", "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(1)" }, { "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": [ "Nam", "Namer", "Jame" ], "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": [ "2009", "Fall", "2010", "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(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 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": [ "2009", "Fall", "2010", "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(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 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": [ "2009", "Fall", "2010", "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(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 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": [ "2009", "Fall", "2010", "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(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": "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", "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 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": [ "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 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": [ "Namer", "42000" ], "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(1)" }, { "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": [ "Namer", "42000" ], "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(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": "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": [ "Biology", "Namer", "1" ], "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(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": "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": [ "Biology", "Namer", "1" ], "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(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": "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", "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", "Namer", "Anty" ], "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": [ "36", "35" ], "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(1) Filter(2) A(0) C(5) T(0) V(0)" }, { "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": [ "Uniform", "Deputy" ], "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(1) Filter(2) A(0) C(6) T(2) V(0)" }, { "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": [ "1", "Meaghan" ], "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(1)" }, { "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": [ "1", "Meaghan" ], "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(1)" }, { "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": [ "Keeling", "1", "Meaghan" ], "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(2) Filter(2) A(0) C(4) 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": "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": [ "Keeling", "Meaghan" ], "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(1) Filter(2) A(0) C(4) T(0) V(0)" }, { "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": [ "900", "1" ], "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 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": [ "2", "1" ], "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(0)" }, { "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": [ "2", "1" ], "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(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": "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": [ "1830", "1840" ], "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(0) V(1)" }, { "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": [ "30", "F" ], "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(1) Filter(5) A(0) C(5) T(0) V(0)" }, { "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": [ "30", "25" ], "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(1) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(5) A(0) C(5) T(0) V(0)" }, { "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": [ "2014", "F" ], "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(0)" }, { "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": [ "Canada", "F", "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(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "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": [ "15", "Nick Price" ], "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 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": [ "10", "100" ], "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(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": "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": [ "Brandon", "Birtle" ], "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(0) Filter(2) A(0) C(5) T(0) V(1)" }, { "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": [ "M", "F" ], "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(0) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(2) A(0) C(4) T(0) V(1)" }, { "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": [ "23", "20" ], "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(0) Root(3) Sel(0) N(0) A(0) C(13) T(1) Filter(4) A(0) C(11) T(1) V(1)" }, { "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": [ "23", "20" ], "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(0) Root(3) Sel(0) N(0) A(0) C(13) T(1) Filter(4) A(0) C(11) T(1) V(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": "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": [ "CProxy", "1998" ], "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(5) A(0) C(9) T(2) V(1)" }, { "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": [ "CACHEbox", "Fasterfox" ], "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(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)" }, { "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(1)" }, { "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": "SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Time", "FROM", "elimination", "AS", "T1", "JOIN", "wrestler", "AS", "T2", "ON", "T1.Wrestler_ID", "=", "T2.Wrestler_ID", "ORDER", "BY", "T2.Days_held", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "time", "from", "elimination", "as", "t1", "join", "wrestler", "as", "t2", "on", "t1", ".", "wrestler_id", "=", "t2", ".", "wrestler_id", "order", "by", "t2", ".", "days_held", "desc", "limit", "value" ], "question": "List the time of elimination of the wrestlers with largest days held.", "question_toks": [ "list", "time", "of", "elimination", "of", "wrestler", "with", "largest", "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": 1, "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, 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", "time", "of", "elimination", "of", "the", "wrestlers", "with", "largest", "days", "held", "." ], "question_arg": [ [ "list" ], [ "time" ], [ "of" ], [ "elimination" ], [ "of" ], [ "wrestler" ], [ "with" ], [ "largest" ], [ "day", "held" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "time", "NN" ], [ "of", "IN" ], [ "elimination", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "day", "NN" ], [ "held", "VBD" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(11) T(1) Sup(0) A(0) C(4) T(0)" }, { "db_id": "wrestler", "query": "SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Time", "FROM", "elimination", "AS", "T1", "JOIN", "wrestler", "AS", "T2", "ON", "T1.Wrestler_ID", "=", "T2.Wrestler_ID", "ORDER", "BY", "T2.Days_held", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "time", "from", "elimination", "as", "t1", "join", "wrestler", "as", "t2", "on", "t1", ".", "wrestler_id", "=", "t2", ".", "wrestler_id", "order", "by", "t2", ".", "days_held", "desc", "limit", "value" ], "question": "What is the time of elimination for the wrestler with the most days held?", "question_toks": [ "what", "is", "time", "of", "elimination", "for", "wrestler", "with", "most", "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": 1, "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, 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", "time", "of", "elimination", "for", "the", "wrestler", "with", "the", "most", "days", "held", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "time" ], [ "of" ], [ "elimination" ], [ "for" ], [ "wrestler" ], [ "with" ], [ "most" ], [ "day", "held" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "time", "NN" ], [ "of", "IN" ], [ "elimination", "NN" ], [ "for", "IN" ], [ "wrestler", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "day", "NN" ], [ "held", "VBD" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(11) T(1) Sup(0) A(0) C(4) T(0)" }, { "db_id": "wrestler", "query": "SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50", "query_toks": [ "SELECT", "T1.Time", "FROM", "elimination", "AS", "T1", "JOIN", "wrestler", "AS", "T2", "ON", "T1.Wrestler_ID", "=", "T2.Wrestler_ID", "WHERE", "T2.Days_held", ">", "50" ], "query_toks_no_value": [ "select", "t1", ".", "time", "from", "elimination", "as", "t1", "join", "wrestler", "as", "t2", "on", "t1", ".", "wrestler_id", "=", "t2", ".", "wrestler_id", "where", "t2", ".", "days_held", ">", "value" ], "question": "Show times of elimination of wrestlers with days held more than 50.", "question_toks": [ "show", "time", "of", "elimination", "of", "wrestler", "with", "day", "held", "more", "than", "50", "." ], "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, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 50.0, 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": [ "Show", "times", "of", "elimination", "of", "wrestlers", "with", "days", "held", "more", "than", "50", "." ], "question_arg": [ [ "show" ], [ "time" ], [ "of" ], [ "elimination" ], [ "of" ], [ "wrestler" ], [ "with" ], [ "day", "held" ], [ "more" ], [ "than" ], [ "50" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "time", "NN" ], [ "of", "IN" ], [ "elimination", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ "with", "IN" ], [ "day", "NN" ], [ "held", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "50", "CD" ], [ ".", "." ] ], "values": [ "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "wrestler", "query": "SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50", "query_toks": [ "SELECT", "T1.Time", "FROM", "elimination", "AS", "T1", "JOIN", "wrestler", "AS", "T2", "ON", "T1.Wrestler_ID", "=", "T2.Wrestler_ID", "WHERE", "T2.Days_held", ">", "50" ], "query_toks_no_value": [ "select", "t1", ".", "time", "from", "elimination", "as", "t1", "join", "wrestler", "as", "t2", "on", "t1", ".", "wrestler_id", "=", "t2", ".", "wrestler_id", "where", "t2", ".", "days_held", ">", "value" ], "question": "What are the times of elimination for wrestlers with over 50 days held?", "question_toks": [ "what", "are", "time", "of", "elimination", "for", "wrestler", "with", "over", "50", "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": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 50.0, 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", "times", "of", "elimination", "for", "wrestlers", "with", "over", "50", "days", "held", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "time" ], [ "of" ], [ "elimination" ], [ "for" ], [ "wrestler" ], [ "with" ], [ "over" ], [ "50" ], [ "day", "held" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "time", "NN" ], [ "of", "IN" ], [ "elimination", "NN" ], [ "for", "IN" ], [ "wrestler", "NN" ], [ "with", "IN" ], [ "over", "IN" ], [ "50", "CD" ], [ "day", "NN" ], [ "held", "VBD" ], [ "?", "." ] ], "values": [ "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "wrestler", "query": "SELECT Team , COUNT(*) FROM elimination GROUP BY Team", "query_toks": [ "SELECT", "Team", ",", "COUNT", "(", "*", ")", "FROM", "elimination", "GROUP", "BY", "Team" ], "query_toks_no_value": [ "select", "team", ",", "count", "(", "*", ")", "from", "elimination", "group", "by", "team" ], "question": "Show different teams in eliminations and the number of eliminations from each team.", "question_toks": [ "show", "different", "team", "in", "elimination", "and", "number", "of", "elimination", "from", "each", "team", "." ], "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": [ "*", "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": [ "Show", "different", "teams", "in", "eliminations", "and", "the", "number", "of", "eliminations", "from", "each", "team", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "team" ], [ "in" ], [ "elimination" ], [ "and" ], [ "number" ], [ "of" ], [ "elimination" ], [ "from" ], [ "each" ], [ "team" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "different", "JJ" ], [ "team", "NN" ], [ "in", "IN" ], [ "elimination", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "elimination", "NN" ], [ "from", "IN" ], [ "each", "DT" ], [ "team", "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": "wrestler", "query": "SELECT Team , COUNT(*) FROM elimination GROUP BY Team", "query_toks": [ "SELECT", "Team", ",", "COUNT", "(", "*", ")", "FROM", "elimination", "GROUP", "BY", "Team" ], "query_toks_no_value": [ "select", "team", ",", "count", "(", "*", ")", "from", "elimination", "group", "by", "team" ], "question": "How many eliminations did each team have?", "question_toks": [ "how", "many", "elimination", "did", "each", "team", "have", "?" ], "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": [ "*", "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", "eliminations", "did", "each", "team", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "elimination" ], [ "did" ], [ "each" ], [ "team" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "elimination", "NN" ], [ "did", "VBD" ], [ "each", "DT" ], [ "team", "NN" ], [ "have", "VB" ], [ "?", "." ] ], "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": "wrestler", "query": "SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*) > 3", "query_toks": [ "SELECT", "Team", "FROM", "elimination", "GROUP", "BY", "Team", "HAVING", "COUNT", "(", "*", ")", ">", "3" ], "query_toks_no_value": [ "select", "team", "from", "elimination", "group", "by", "team", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show teams that have suffered more than three eliminations.", "question_toks": [ "show", "team", "that", "have", "suffered", "more", "than", "three", "elimination", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [ [ false, 3, [ 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": [ "*", "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": [ "Show", "teams", "that", "have", "suffered", "more", "than", "three", "eliminations", "." ], "question_arg": [ [ "show" ], [ "team" ], [ "that" ], [ "have" ], [ "suffered" ], [ "more" ], [ "than" ], [ "three" ], [ "elimination" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "team", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "suffered", "VBN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "three", "CD" ], [ "elimination", "NN" ], [ ".", "." ] ], "values": [ "3" ], "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": "wrestler", "query": "SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*) > 3", "query_toks": [ "SELECT", "Team", "FROM", "elimination", "GROUP", "BY", "Team", "HAVING", "COUNT", "(", "*", ")", ">", "3" ], "query_toks_no_value": [ "select", "team", "from", "elimination", "group", "by", "team", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which teams had more than 3 eliminations?", "question_toks": [ "which", "team", "had", "more", "than", "3", "elimination", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [ [ false, 3, [ 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": [ "*", "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": [ "Which", "teams", "had", "more", "than", "3", "eliminations", "?" ], "question_arg": [ [ "which" ], [ "team" ], [ "had" ], [ "more" ], [ "than" ], [ "3" ], [ "elimination" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "team", "NN" ], [ "had", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "elimination", "NN" ], [ "?", "." ] ], "values": [ "3" ], "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": "wrestler", "query": "SELECT Reign , Days_held FROM wrestler", "query_toks": [ "SELECT", "Reign", ",", "Days_held", "FROM", "wrestler" ], "query_toks_no_value": [ "select", "reign", ",", "days_held", "from", "wrestler" ], "question": "Show the reign and days held of wrestlers.", "question_toks": [ "show", "reign", "and", "day", "held", "of", "wrestler", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "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": [ "Show", "the", "reign", "and", "days", "held", "of", "wrestlers", "." ], "question_arg": [ [ "show" ], [ "reign" ], [ "and" ], [ "day", "held" ], [ "of" ], [ "wrestler" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "reign", "NN" ], [ "and", "CC" ], [ "day", "NN" ], [ "held", "VBD" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0)" }, { "db_id": "wrestler", "query": "SELECT Reign , Days_held FROM wrestler", "query_toks": [ "SELECT", "Reign", ",", "Days_held", "FROM", "wrestler" ], "query_toks_no_value": [ "select", "reign", ",", "days_held", "from", "wrestler" ], "question": "What are the reigns and days held of all wrestlers?", "question_toks": [ "what", "are", "reign", "and", "day", "held", "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, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, 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", "reigns", "and", "days", "held", "of", "all", "wrestlers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "reign" ], [ "and" ], [ "day", "held" ], [ "of" ], [ "all" ], [ "wrestler" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "reign", "JJ" ], [ "and", "CC" ], [ "day", "NN" ], [ "held", "VBD" ], [ "of", "IN" ], [ "all", "DT" ], [ "wrestler", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0)" }, { "db_id": "wrestler", "query": "SELECT Name FROM wrestler WHERE Days_held < 100", "query_toks": [ "SELECT", "Name", "FROM", "wrestler", "WHERE", "Days_held", "<", "100" ], "query_toks_no_value": [ "select", "name", "from", "wrestler", "where", "days_held", "<", "value" ], "question": "What are the names of wrestlers days held less than 100?", "question_toks": [ "what", "are", "name", "of", "wrestler", "day", "held", "le", "than", "100", "?" ], "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, 4, false ], null ], 100.0, 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", "names", "of", "wrestlers", "days", "held", "less", "than", "100", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "wrestler" ], [ "day", "held" ], [ "le" ], [ "than" ], [ "100" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ "day", "NN" ], [ "held", "VBD" ], [ "le", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "?", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(4) A(0) C(4) T(0) V(0)" }, { "db_id": "wrestler", "query": "SELECT Name FROM wrestler WHERE Days_held < 100", "query_toks": [ "SELECT", "Name", "FROM", "wrestler", "WHERE", "Days_held", "<", "100" ], "query_toks_no_value": [ "select", "name", "from", "wrestler", "where", "days_held", "<", "value" ], "question": "Return the names of wrestlers with fewer than 100 days held.", "question_toks": [ "return", "name", "of", "wrestler", "with", "fewer", "than", "100", "day", "held", "." ], "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, 4, false ], null ], 100.0, 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", "names", "of", "wrestlers", "with", "fewer", "than", "100", "days", "held", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "wrestler" ], [ "with" ], [ "fewer" ], [ "than" ], [ "100" ], [ "day", "held" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ "with", "IN" ], [ "fewer", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "day", "NN" ], [ "held", "VBD" ], [ ".", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(4) A(0) C(4) T(0) V(0)" }, { "db_id": "wrestler", "query": "SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Reign", "FROM", "wrestler", "GROUP", "BY", "Reign", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "reign", "from", "wrestler", "group", "by", "reign", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Please show the most common reigns of wrestlers.", "question_toks": [ "please", "show", "most", "common", "reign", "of", "wrestler", "." ], "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": [ "*", "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": [ "Please", "show", "the", "most", "common", "reigns", "of", "wrestlers", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "most" ], [ "common" ], [ "reign" ], [ "of" ], [ "wrestler" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "reign", "NN" ], [ "of", "IN" ], [ "wrestler", "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": "wrestler", "query": "SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Reign", "FROM", "wrestler", "GROUP", "BY", "Reign", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "reign", "from", "wrestler", "group", "by", "reign", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which reign is the most common among wrestlers?", "question_toks": [ "which", "reign", "is", "most", "common", "among", "wrestler", "?" ], "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": [ "*", "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": [ "Which", "reign", "is", "the", "most", "common", "among", "wrestlers", "?" ], "question_arg": [ [ "which" ], [ "reign" ], [ "is" ], [ "most" ], [ "common" ], [ "among" ], [ "wrestler" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "reign", "NN" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "among", "IN" ], [ "wrestler", "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": "wrestler", "query": "SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*) > 2", "query_toks": [ "SELECT", "LOCATION", "FROM", "wrestler", "GROUP", "BY", "LOCATION", "HAVING", "COUNT", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "location", "from", "wrestler", "group", "by", "location", "having", "count", "(", "*", ")", ">", "value" ], "question": "List the locations that are shared by more than two wrestlers.", "question_toks": [ "list", "location", "that", "are", "shared", "by", "more", "than", "two", "wrestler", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 3, [ 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": [ "*", "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", "locations", "that", "are", "shared", "by", "more", "than", "two", "wrestlers", "." ], "question_arg": [ [ "list" ], [ "location" ], [ "that" ], [ "are" ], [ "shared" ], [ "by" ], [ "more" ], [ "than" ], [ "two" ], [ "wrestler" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "location", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "two", "CD" ], [ "wrestler", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "wrestler", "query": "SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*) > 2", "query_toks": [ "SELECT", "LOCATION", "FROM", "wrestler", "GROUP", "BY", "LOCATION", "HAVING", "COUNT", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "location", "from", "wrestler", "group", "by", "location", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which locations are shared by more than two wrestlers?", "question_toks": [ "which", "location", "are", "shared", "by", "more", "than", "two", "wrestler", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 3, [ 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": [ "*", "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": [ "Which", "locations", "are", "shared", "by", "more", "than", "two", "wrestlers", "?" ], "question_arg": [ [ "which" ], [ "location" ], [ "are" ], [ "shared" ], [ "by" ], [ "more" ], [ "than" ], [ "two" ], [ "wrestler" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "location", "NN" ], [ "are", "VBP" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "two", "CD" ], [ "wrestler", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "wrestler", "query": "SELECT Name FROM wrestler WHERE Wrestler_ID NOT IN (SELECT Wrestler_ID FROM elimination)", "query_toks": [ "SELECT", "Name", "FROM", "wrestler", "WHERE", "Wrestler_ID", "NOT", "IN", "(", "SELECT", "Wrestler_ID", "FROM", "elimination", ")" ], "query_toks_no_value": [ "select", "name", "from", "wrestler", "where", "wrestler_id", "not", "in", "(", "select", "wrestler_id", "from", "elimination", ")" ], "question": "List the names of wrestlers that have not been eliminated.", "question_toks": [ "list", "name", "of", "wrestler", "that", "have", "not", "been", "eliminated", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "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", "that", "have", "not", "been", "eliminated", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "wrestler" ], [ "that" ], [ "have" ], [ "not" ], [ "been" ], [ "eliminated" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "not", "RB" ], [ "been", "VBN" ], [ "eliminated", "VBN" ], [ ".", "." ] ], "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": "wrestler", "query": "SELECT Name FROM wrestler WHERE Wrestler_ID NOT IN (SELECT Wrestler_ID FROM elimination)", "query_toks": [ "SELECT", "Name", "FROM", "wrestler", "WHERE", "Wrestler_ID", "NOT", "IN", "(", "SELECT", "Wrestler_ID", "FROM", "elimination", ")" ], "query_toks_no_value": [ "select", "name", "from", "wrestler", "where", "wrestler_id", "not", "in", "(", "select", "wrestler_id", "from", "elimination", ")" ], "question": "What are the names of wrestlers who have never been eliminated?", "question_toks": [ "what", "are", "name", "of", "wrestler", "who", "have", "never", "been", "eliminated", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "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", "who", "have", "never", "been", "eliminated", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "wrestler" ], [ "who" ], [ "have" ], [ "never" ], [ "been" ], [ "eliminated" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "never", "RB" ], [ "been", "VBN" ], [ "eliminated", "VBN" ], [ "?", "." ] ], "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": "wrestler", "query": "SELECT Team FROM Elimination WHERE Eliminated_By = \"Orton\" INTERSECT SELECT Team FROM Elimination WHERE Eliminated_By = \"Benjamin\"", "query_toks": [ "SELECT", "Team", "FROM", "Elimination", "WHERE", "Eliminated_By", "=", "``", "Orton", "''", "INTERSECT", "SELECT", "Team", "FROM", "Elimination", "WHERE", "Eliminated_By", "=", "``", "Benjamin", "''" ], "query_toks_no_value": [ "select", "team", "from", "elimination", "where", "eliminated_by", "=", "value", "intersect", "select", "team", "from", "elimination", "where", "eliminated_by", "=", "value" ], "question": "Show the teams that have both wrestlers eliminated by \"Orton\" and wrestlers eliminated by \"Benjamin\".", "question_toks": [ "show", "team", "that", "have", "both", "wrestler", "eliminated", "by", "'", "orton", "'", "and", "wrestler", "eliminated", "by", "'", "benjamin", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Benjamin\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"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": [ "Show", "the", "teams", "that", "have", "both", "wrestlers", "eliminated", "by", "``", "Orton", "''", "and", "wrestlers", "eliminated", "by", "``", "Benjamin", "''", "." ], "question_arg": [ [ "show" ], [ "team" ], [ "that" ], [ "have" ], [ "both" ], [ "wrestler" ], [ "eliminated", "by" ], [ "'" ], [ "orton" ], [ "'" ], [ "and" ], [ "wrestler" ], [ "eliminated", "by" ], [ "'" ], [ "benjamin" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "team", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "wrestler", "NN" ], [ "eliminated", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "orton", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "wrestler", "NN" ], [ "eliminated", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "benjamin", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Benjamin", "Orton" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(2) A(0) C(9) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "wrestler", "query": "SELECT Team FROM Elimination WHERE Eliminated_By = \"Orton\" INTERSECT SELECT Team FROM Elimination WHERE Eliminated_By = \"Benjamin\"", "query_toks": [ "SELECT", "Team", "FROM", "Elimination", "WHERE", "Eliminated_By", "=", "``", "Orton", "''", "INTERSECT", "SELECT", "Team", "FROM", "Elimination", "WHERE", "Eliminated_By", "=", "``", "Benjamin", "''" ], "query_toks_no_value": [ "select", "team", "from", "elimination", "where", "eliminated_by", "=", "value", "intersect", "select", "team", "from", "elimination", "where", "eliminated_by", "=", "value" ], "question": "What are the teams that have both wrestlers eliminated by Orton and wrestlers eliminated by Benjamin?", "question_toks": [ "what", "are", "team", "that", "have", "both", "wrestler", "eliminated", "by", "orton", "and", "wrestler", "eliminated", "by", "benjamin", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Benjamin\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"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", "teams", "that", "have", "both", "wrestlers", "eliminated", "by", "Orton", "and", "wrestlers", "eliminated", "by", "Benjamin", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "team" ], [ "that" ], [ "have" ], [ "both" ], [ "wrestler" ], [ "eliminated", "by" ], [ "orton" ], [ "and" ], [ "wrestler" ], [ "eliminated", "by" ], [ "benjamin" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "team", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "wrestler", "NN" ], [ "eliminated", "VBN" ], [ "by", "IN" ], [ "orton", "NN" ], [ "and", "CC" ], [ "wrestler", "NN" ], [ "eliminated", "VBN" ], [ "by", "IN" ], [ "benjamin", "NN" ], [ "?", "." ] ], "values": [ "Benjamin", "Orton" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(2) A(0) C(9) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "wrestler", "query": "SELECT COUNT (DISTINCT team) FROM elimination", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "team", ")", "FROM", "elimination" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "team", ")", "from", "elimination" ], "question": "What is the number of distinct teams that suffer elimination?", "question_toks": [ "what", "is", "number", "of", "distinct", "team", "that", "suffer", "elimination", "?" ], "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": [ "*", "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", "number", "of", "distinct", "teams", "that", "suffer", "elimination", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "distinct" ], [ "team" ], [ "that" ], [ "suffer" ], [ "elimination" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "team", "NN" ], [ "that", "WDT" ], [ "suffer", "VBP" ], [ "elimination", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(8) T(1)" }, { "db_id": "wrestler", "query": "SELECT COUNT (DISTINCT team) FROM elimination", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "team", ")", "FROM", "elimination" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "team", ")", "from", "elimination" ], "question": "How many different teams have had eliminated wrestlers?", "question_toks": [ "how", "many", "different", "team", "have", "had", "eliminated", "wrestler", "?" ], "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": [ "*", "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", "different", "teams", "have", "had", "eliminated", "wrestlers", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "team" ], [ "have" ], [ "had" ], [ "eliminated" ], [ "wrestler" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "team", "NN" ], [ "have", "VB" ], [ "had", "VBN" ], [ "eliminated", "VBN" ], [ "wrestler", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(8) T(1)" }, { "db_id": "wrestler", "query": "SELECT TIME FROM elimination WHERE Eliminated_By = \"Punk\" OR Eliminated_By = \"Orton\"", "query_toks": [ "SELECT", "TIME", "FROM", "elimination", "WHERE", "Eliminated_By", "=", "``", "Punk", "''", "OR", "Eliminated_By", "=", "``", "Orton", "''" ], "query_toks_no_value": [ "select", "time", "from", "elimination", "where", "eliminated_by", "=", "value", "or", "eliminated_by", "=", "value" ], "question": "Show the times of elimination by \"Punk\" or \"Orton\".", "question_toks": [ "show", "time", "of", "elimination", "by", "'", "punk", "'", "or", "'", "orton", "'", "." ], "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 ], "\"Punk\"", null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"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": [ "Show", "the", "times", "of", "elimination", "by", "``", "Punk", "''", "or", "``", "Orton", "''", "." ], "question_arg": [ [ "show" ], [ "time" ], [ "of" ], [ "elimination" ], [ "by" ], [ "'" ], [ "punk" ], [ "'" ], [ "or" ], [ "'" ], [ "orton" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "time", "NN" ], [ "of", "IN" ], [ "elimination", "NN" ], [ "by", "IN" ], [ "'", "''" ], [ "punk", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "orton", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Punk", "Orton" ], "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(0) Filter(2) A(0) C(9) T(1) V(1)" }, { "db_id": "wrestler", "query": "SELECT TIME FROM elimination WHERE Eliminated_By = \"Punk\" OR Eliminated_By = \"Orton\"", "query_toks": [ "SELECT", "TIME", "FROM", "elimination", "WHERE", "Eliminated_By", "=", "``", "Punk", "''", "OR", "Eliminated_By", "=", "``", "Orton", "''" ], "query_toks_no_value": [ "select", "time", "from", "elimination", "where", "eliminated_by", "=", "value", "or", "eliminated_by", "=", "value" ], "question": "What are the times of elimination for any instances in which the elimination was done by Punk or Orton?", "question_toks": [ "what", "are", "time", "of", "elimination", "for", "any", "instance", "in", "which", "elimination", "wa", "done", "by", "punk", "or", "orton", "?" ], "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 ], "\"Punk\"", null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"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", "times", "of", "elimination", "for", "any", "instances", "in", "which", "the", "elimination", "was", "done", "by", "Punk", "or", "Orton", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "time" ], [ "of" ], [ "elimination" ], [ "for" ], [ "any" ], [ "instance" ], [ "in" ], [ "which" ], [ "elimination" ], [ "wa" ], [ "done" ], [ "by" ], [ "punk" ], [ "or" ], [ "orton" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "time", "NN" ], [ "of", "IN" ], [ "elimination", "NN" ], [ "for", "IN" ], [ "any", "DT" ], [ "instance", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "elimination", "NN" ], [ "wa", "IN" ], [ "done", "VBN" ], [ "by", "IN" ], [ "punk", "NN" ], [ "or", "CC" ], [ "orton", "NN" ], [ "?", "." ] ], "values": [ "Punk", "Orton" ], "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(0) Filter(2) A(0) C(9) T(1) V(1)" }, { "db_id": "school_finance", "query": "SELECT count(*) FROM school", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "school" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "school" ], "question": "How many schools are there?", "question_toks": [ "how", "many", "school", "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": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "How", "many", "schools", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "school" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "school", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "school_finance", "query": "SELECT count(*) FROM school", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "school" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "school" ], "question": "Count the number of schools.", "question_toks": [ "count", "number", "of", "school", "." ], "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": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "Count", "the", "number", "of", "schools", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "school" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "school_finance", "query": "SELECT school_name FROM school ORDER BY school_name", "query_toks": [ "SELECT", "school_name", "FROM", "school", "ORDER", "BY", "school_name" ], "query_toks_no_value": [ "select", "school_name", "from", "school", "order", "by", "school_name" ], "question": "Show all school names in alphabetical order.", "question_toks": [ "show", "all", "school", "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": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "Show", "all", "school", "names", "in", "alphabetical", "order", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "school", "name" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "school", "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": "school_finance", "query": "SELECT school_name , LOCATION , mascot FROM school", "query_toks": [ "SELECT", "school_name", ",", "LOCATION", ",", "mascot", "FROM", "school" ], "query_toks_no_value": [ "select", "school_name", ",", "location", ",", "mascot", "from", "school" ], "question": "List the name, location, mascot for all schools.", "question_toks": [ "list", "name", ",", "location", ",", "mascot", "for", "all", "school", "." ], "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": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "List", "the", "name", ",", "location", ",", "mascot", "for", "all", "schools", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "," ], [ "location" ], [ "," ], [ "mascot" ], [ "for" ], [ "all" ], [ "school" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "location", "NN" ], [ ",", "," ], [ "mascot", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "school", "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": "school_finance", "query": "SELECT sum(enrollment) , avg(enrollment) FROM school", "query_toks": [ "SELECT", "sum", "(", "enrollment", ")", ",", "avg", "(", "enrollment", ")", "FROM", "school" ], "query_toks_no_value": [ "select", "sum", "(", "enrollment", ")", ",", "avg", "(", "enrollment", ")", "from", "school" ], "question": "What are the total and average enrollment of all schools?", "question_toks": [ "what", "are", "total", "and", "average", "enrollment", "of", "all", "school", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ], [ 5, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "What", "are", "the", "total", "and", "average", "enrollment", "of", "all", "schools", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "total" ], [ "and" ], [ "average" ], [ "enrollment" ], [ "of" ], [ "all" ], [ "school" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "and", "CC" ], [ "average", "JJ" ], [ "enrollment", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "school", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(5) T(0) A(5) C(5) T(0)" }, { "db_id": "school_finance", "query": "SELECT mascot FROM school WHERE enrollment > (SELECT avg(enrollment) FROM school)", "query_toks": [ "SELECT", "mascot", "FROM", "school", "WHERE", "enrollment", ">", "(", "SELECT", "avg", "(", "enrollment", ")", "FROM", "school", ")" ], "query_toks_no_value": [ "select", "mascot", "from", "school", "where", "enrollment", ">", "(", "select", "avg", "(", "enrollment", ")", "from", "school", ")" ], "question": "What are the mascots for schools with enrollments above the average?", "question_toks": [ "what", "are", "mascot", "for", "school", "with", "enrollment", "above", "average", "?" ], "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, 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": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "What", "are", "the", "mascots", "for", "schools", "with", "enrollments", "above", "the", "average", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "mascot" ], [ "for" ], [ "school" ], [ "with" ], [ "enrollment" ], [ "above" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "mascot", "JJ" ], [ "for", "IN" ], [ "school", "NN" ], [ "with", "IN" ], [ "enrollment", "NN" ], [ "above", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(13) A(0) C(5) T(0) Root(5) Sel(0) N(0) A(5) C(5) T(0)" }, { "db_id": "school_finance", "query": "SELECT school_name FROM school ORDER BY enrollment LIMIT 1", "query_toks": [ "SELECT", "school_name", "FROM", "school", "ORDER", "BY", "enrollment", "LIMIT", "1" ], "query_toks_no_value": [ "select", "school_name", "from", "school", "order", "by", "enrollment", "limit", "value" ], "question": "List the name of the school with the smallest enrollment.", "question_toks": [ "list", "name", "of", "school", "with", "smallest", "enrollment", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "List", "the", "name", "of", "the", "school", "with", "the", "smallest", "enrollment", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "school" ], [ "with" ], [ "smallest" ], [ "enrollment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "with", "IN" ], [ "smallest", "JJ" ], [ "enrollment", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(1) A(0) C(5) T(0)" }, { "db_id": "school_finance", "query": "SELECT avg(enrollment) , max(enrollment) , min(enrollment) FROM school", "query_toks": [ "SELECT", "avg", "(", "enrollment", ")", ",", "max", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "FROM", "school" ], "query_toks_no_value": [ "select", "avg", "(", "enrollment", ")", ",", "max", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "from", "school" ], "question": "Show the average, maximum, minimum enrollment of all schools.", "question_toks": [ "show", "average", ",", "maximum", ",", "minimum", "enrollment", "of", "all", "school", "." ], "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 ] ], [ 1, [ 0, [ 0, 5, false ], null ] ], [ 2, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "Show", "the", "average", ",", "maximum", ",", "minimum", "enrollment", "of", "all", "schools", "." ], "question_arg": [ [ "show" ], [ "average" ], [ "," ], [ "maximum" ], [ "," ], [ "minimum" ], [ "enrollment" ], [ "of" ], [ "all" ], [ "school" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "average", "NN" ], [ ",", "," ], [ "maximum", "JJ" ], [ ",", "," ], [ "minimum", "JJ" ], [ "enrollment", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "school", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(5) C(5) T(0) A(1) C(5) T(0) A(2) C(5) T(0)" }, { "db_id": "school_finance", "query": "SELECT county , count(*) , sum(enrollment) FROM school GROUP BY county", "query_toks": [ "SELECT", "county", ",", "count", "(", "*", ")", ",", "sum", "(", "enrollment", ")", "FROM", "school", "GROUP", "BY", "county" ], "query_toks_no_value": [ "select", "county", ",", "count", "(", "*", ")", ",", "sum", "(", "enrollment", ")", "from", "school", "group", "by", "county" ], "question": "Show each county along with the number of schools and total enrollment in each county.", "question_toks": [ "show", "each", "county", "along", "with", "number", "of", "school", "and", "total", "enrollment", "in", "each", "county", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ], [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "Show", "each", "county", "along", "with", "the", "number", "of", "schools", "and", "total", "enrollment", "in", "each", "county", "." ], "question_arg": [ [ "show" ], [ "each" ], [ "county" ], [ "along" ], [ "with" ], [ "number" ], [ "of" ], [ "school" ], [ "and" ], [ "total" ], [ "enrollment" ], [ "in" ], [ "each" ], [ "county" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "each", "DT" ], [ "county", "NN" ], [ "along", "IN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "enrollment", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "county", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(8) T(0) A(3) C(0) T(0) A(4) C(5) T(0)" }, { "db_id": "school_finance", "query": "SELECT count(DISTINCT T1.donator_name) FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = \"Glenn\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T1.donator_name", ")", "FROM", "endowment", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.school_id", "=", "T2.school_id", "WHERE", "T2.school_name", "=", "``", "Glenn", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t1", ".", "donator_name", ")", "from", "endowment", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "t2", ".", "school_name", "=", "value" ], "question": "How many donors have endowment for school named \"Glenn\"?", "question_toks": [ "how", "many", "donor", "have", "endowment", "for", "school", "named", "'", "glenn", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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, 18, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Glenn\"", null ] ] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "How", "many", "donors", "have", "endowment", "for", "school", "named", "``", "Glenn", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "donor" ], [ "have" ], [ "endowment" ], [ "for" ], [ "school" ], [ "named" ], [ "'" ], [ "glenn" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "donor", "NNS" ], [ "have", "VBP" ], [ "endowment", "VBN" ], [ "for", "IN" ], [ "school", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "glenn", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Glenn" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(16) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "school_finance", "query": "SELECT donator_name , sum(amount) FROM endowment GROUP BY donator_name ORDER BY sum(amount) DESC", "query_toks": [ "SELECT", "donator_name", ",", "sum", "(", "amount", ")", "FROM", "endowment", "GROUP", "BY", "donator_name", "ORDER", "BY", "sum", "(", "amount", ")", "DESC" ], "query_toks_no_value": [ "select", "donator_name", ",", "sum", "(", "amount", ")", "from", "endowment", "group", "by", "donator_name", "order", "by", "sum", "(", "amount", ")", "desc" ], "question": "List each donator name and the amount of endowment in descending order of the amount of endowment.", "question_toks": [ "list", "each", "donator", "name", "and", "amount", "of", "endowment", "in", "descending", "order", "of", "amount", "of", "endowment", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 4, 19, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 4, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "List", "each", "donator", "name", "and", "the", "amount", "of", "endowment", "in", "descending", "order", "of", "the", "amount", "of", "endowment", "." ], "question_arg": [ [ "list" ], [ "each" ], [ "donator", "name" ], [ "and" ], [ "amount" ], [ "of" ], [ "endowment" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "amount" ], [ "of" ], [ "endowment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "each", "DT" ], [ "donator", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "amount", "NN" ], [ "of", "IN" ], [ "endowment", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "amount", "NN" ], [ "of", "IN" ], [ "endowment", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(16) T(2) A(4) C(17) T(2) Order(0) A(4) C(17) T(2)" }, { "db_id": "school_finance", "query": "SELECT school_name FROM school WHERE school_id NOT IN (SELECT school_id FROM endowment)", "query_toks": [ "SELECT", "school_name", "FROM", "school", "WHERE", "school_id", "NOT", "IN", "(", "SELECT", "school_id", "FROM", "endowment", ")" ], "query_toks_no_value": [ "select", "school_name", "from", "school", "where", "school_id", "not", "in", "(", "select", "school_id", "from", "endowment", ")" ], "question": "List the names of the schools without any endowment.", "question_toks": [ "list", "name", "of", "school", "without", "any", "endowment", "." ], "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, 17, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "List", "the", "names", "of", "the", "schools", "without", "any", "endowment", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "school" ], [ "without" ], [ "any" ], [ "endowment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "without", "IN" ], [ "any", "DT" ], [ "endowment", "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": "school_finance", "query": "SELECT T2.school_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T1.school_id HAVING sum(T1.amount) <= 10", "query_toks": [ "SELECT", "T2.school_name", "FROM", "endowment", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.school_id", "=", "T2.school_id", "GROUP", "BY", "T1.school_id", "HAVING", "sum", "(", "T1.amount", ")", "<", "=", "10" ], "query_toks_no_value": [ "select", "t2", ".", "school_name", "from", "endowment", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "group", "by", "t1", ".", "school_id", "having", "sum", "(", "t1", ".", "amount", ")", "<", "=", "value" ], "question": "List all the names of schools with an endowment amount smaller than or equal to 10.", "question_toks": [ "list", "all", "name", "of", "school", "with", "an", "endowment", "amount", "smaller", "than", "or", "equal", "to", "10", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [ [ false, 6, [ 0, [ 4, 19, 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, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "List", "all", "the", "names", "of", "schools", "with", "an", "endowment", "amount", "smaller", "than", "or", "equal", "to", "10", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "name" ], [ "of" ], [ "school" ], [ "with" ], [ "an" ], [ "endowment" ], [ "amount" ], [ "smaller" ], [ "than" ], [ "or" ], [ "equal" ], [ "to" ], [ "10" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "name", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "with", "IN" ], [ "an", "DT" ], [ "endowment", "NN" ], [ "amount", "NN" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "or", "CC" ], [ "equal", "JJ" ], [ "to", "TO" ], [ "10", "CD" ], [ ".", "." ] ], "values": [ "10" ], "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(2) Filter(6) A(4) C(17) T(2) V(0)" }, { "db_id": "school_finance", "query": "SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Glenn' INTERSECT SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Triton'", "query_toks": [ "SELECT", "T1.donator_name", "FROM", "endowment", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.school_id", "=", "T2.school_id", "WHERE", "T2.school_name", "=", "'Glenn", "'", "INTERSECT", "SELECT", "T1.donator_name", "FROM", "endowment", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.school_id", "=", "T2.school_id", "WHERE", "T2.school_name", "=", "'Triton", "'" ], "query_toks_no_value": [ "select", "t1", ".", "donator_name", "from", "endowment", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "t2", ".", "school_name", "=", "value", "intersect", "select", "t1", ".", "donator_name", "from", "endowment", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "t2", ".", "school_name", "=", "value" ], "question": "Show the names of donors who donated to both school \"Glenn\" and \"Triton.\"", "question_toks": [ "show", "name", "of", "donor", "who", "donated", "to", "both", "school", "'", "glenn", "'", "and", "'", "triton", ".", "'" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Triton\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Glenn\"", null ] ] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "Show", "the", "names", "of", "donors", "who", "donated", "to", "both", "school", "``", "Glenn", "''", "and", "``", "Triton", ".", "''" ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "donor" ], [ "who" ], [ "donated" ], [ "to" ], [ "both" ], [ "school" ], [ "'" ], [ "glenn" ], [ "'" ], [ "and" ], [ "'" ], [ "triton" ], [ "." ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "donor", "NN" ], [ "who", "WP" ], [ "donated", "VBD" ], [ "to", "TO" ], [ "both", "DT" ], [ "school", "NN" ], [ "'", "''" ], [ "glenn", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "'", "POS" ], [ "triton", "NN" ], [ ".", "." ], [ "'", "''" ] ], "values": [ "Glenn", "Triton.", "Triton" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(2) A(0) C(2) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(2) A(0) C(2) T(0) V(2)" }, { "db_id": "school_finance", "query": "SELECT donator_name FROM endowment EXCEPT SELECT donator_name FROM endowment WHERE amount < 9", "query_toks": [ "SELECT", "donator_name", "FROM", "endowment", "EXCEPT", "SELECT", "donator_name", "FROM", "endowment", "WHERE", "amount", "<", "9" ], "query_toks_no_value": [ "select", "donator_name", "from", "endowment", "except", "select", "donator_name", "from", "endowment", "where", "amount", "<", "value" ], "question": "Show the names of all the donors except those whose donation amount less than 9.", "question_toks": [ "show", "name", "of", "all", "donor", "except", "those", "whose", "donation", "amount", "le", "than", "9", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 19, false ], null ], 9.0, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "Show", "the", "names", "of", "all", "the", "donors", "except", "those", "whose", "donation", "amount", "less", "than", "9", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "all" ], [ "donor" ], [ "except" ], [ "those" ], [ "whose" ], [ "donation" ], [ "amount" ], [ "le" ], [ "than" ], [ "9" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "donor", "NN" ], [ "except", "IN" ], [ "those", "DT" ], [ "whose", "WP$" ], [ "donation", "NN" ], [ "amount", "NN" ], [ "le", "VBD" ], [ "than", "IN" ], [ "9", "CD" ], [ ".", "." ] ], "values": [ "9" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(16) T(2) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(4) A(0) C(17) T(2) V(0)" }, { "db_id": "school_finance", "query": "SELECT amount , donator_name FROM endowment ORDER BY amount DESC LIMIT 1", "query_toks": [ "SELECT", "amount", ",", "donator_name", "FROM", "endowment", "ORDER", "BY", "amount", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "amount", ",", "donator_name", "from", "endowment", "order", "by", "amount", "desc", "limit", "value" ], "question": "List the amount and donor name for the largest amount of donation.", "question_toks": [ "list", "amount", "and", "donor", "name", "for", "largest", "amount", "of", "donation", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 19, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "List", "the", "amount", "and", "donor", "name", "for", "the", "largest", "amount", "of", "donation", "." ], "question_arg": [ [ "list" ], [ "amount" ], [ "and" ], [ "donor" ], [ "name" ], [ "for" ], [ "largest" ], [ "amount" ], [ "of" ], [ "donation" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "amount", "NN" ], [ "and", "CC" ], [ "donor", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "largest", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "donation", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(17) T(2) A(0) C(16) T(2) Sup(0) A(0) C(17) T(2)" }, { "db_id": "school_finance", "query": "SELECT count(*) FROM budget WHERE budgeted > 3000 AND YEAR <= 2001", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "budget", "WHERE", "budgeted", ">", "3000", "AND", "YEAR", "<", "=", "2001" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "budget", "where", "budgeted", ">", "value", "and", "year", "<", "=", "value" ], "question": "How many budgets are above 3000 in year 2001 or before?", "question_toks": [ "how", "many", "budget", "are", "above", "3000", "in", "year", "year", "or", "before", "?" ], "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, 11, false ], null ], 3000.0, null ], "and", [ false, 6, [ 0, [ 0, 10, false ], null ], 2001.0, null ] ] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "How", "many", "budgets", "are", "above", "3000", "in", "year", "2001", "or", "before", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "budget" ], [ "are" ], [ "above" ], [ "3000" ], [ "in" ], [ "year" ], [ "year" ], [ "or" ], [ "before" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "budget", "NN" ], [ "are", "VBP" ], [ "above", "IN" ], [ "3000", "CD" ], [ "in", "IN" ], [ "year", "NN" ], [ "2001", "CD" ], [ "or", "CC" ], [ "before", "IN" ], [ "?", "." ] ], "values": [ "2001", "3000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(0) Filter(5) A(0) C(10) T(1) V(1) Filter(6) A(0) C(9) T(1) V(0)" }, { "db_id": "school_finance", "query": "SELECT count(*) FROM budget WHERE budgeted > 3000 AND YEAR <= 2001", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "budget", "WHERE", "budgeted", ">", "3000", "AND", "YEAR", "<", "=", "2001" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "budget", "where", "budgeted", ">", "value", "and", "year", "<", "=", "value" ], "question": "Count the number of budgets in year 2001 or before whose budgeted amount is greater than 3000", "question_toks": [ "count", "number", "of", "budget", "in", "year", "year", "or", "before", "whose", "budgeted", "amount", "is", "greater", "than", "3000" ], "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, 11, false ], null ], 3000.0, null ], "and", [ false, 6, [ 0, [ 0, 10, false ], null ], 2001.0, null ] ] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "Count", "the", "number", "of", "budgets", "in", "year", "2001", "or", "before", "whose", "budgeted", "amount", "is", "greater", "than", "3000" ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "budget" ], [ "in" ], [ "year" ], [ "year" ], [ "or" ], [ "before" ], [ "whose" ], [ "budgeted" ], [ "amount" ], [ "is" ], [ "greater" ], [ "than" ], [ "3000" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "budget", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2001", "CD" ], [ "or", "CC" ], [ "before", "IN" ], [ "whose", "WP$" ], [ "budgeted", "JJ" ], [ "amount", "NN" ], [ "is", "VBZ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "3000", "CD" ] ], "values": [ "2001", "3000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(0) Filter(5) A(0) C(10) T(1) V(1) Filter(6) A(0) C(9) T(1) V(0)" }, { "db_id": "school_finance", "query": "SELECT T2.school_name , T1.budgeted , T1.invested FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.year >= 2002", "query_toks": [ "SELECT", "T2.school_name", ",", "T1.budgeted", ",", "T1.invested", "FROM", "budget", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.school_id", "=", "T2.school_id", "WHERE", "T1.year", ">", "=", "2002" ], "query_toks_no_value": [ "select", "t2", ".", "school_name", ",", "t1", ".", "budgeted", ",", "t1", ".", "invested", "from", "budget", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "t1", ".", "year", ">", "=", "value" ], "question": "Show each school name, its budgeted amount, and invested amount in year 2002 or after.", "question_toks": [ "show", "each", "school", "name", ",", "it", "budgeted", "amount", ",", "and", "invested", "amount", "in", "year", "year", "or", "after", "." ], "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, 2, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 10, false ], null ], 2002.0, null ] ] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "Show", "each", "school", "name", ",", "its", "budgeted", "amount", ",", "and", "invested", "amount", "in", "year", "2002", "or", "after", "." ], "question_arg": [ [ "show" ], [ "each" ], [ "school", "name" ], [ "," ], [ "it" ], [ "budgeted" ], [ "amount" ], [ "," ], [ "and" ], [ "invested" ], [ "amount" ], [ "in" ], [ "year" ], [ "year" ], [ "or" ], [ "after" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "each", "DT" ], [ "school", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "it", "PRP" ], [ "budgeted", "VBD" ], [ "amount", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "invested", "VBD" ], [ "amount", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2002", "CD" ], [ "or", "CC" ], [ "after", "IN" ], [ ".", "." ] ], "values": [ "2002" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(2) T(0) A(0) C(10) T(1) A(0) C(12) T(1) Filter(7) A(0) C(9) T(1) V(0)" }, { "db_id": "school_finance", "query": "SELECT DISTINCT donator_name FROM endowment", "query_toks": [ "SELECT", "DISTINCT", "donator_name", "FROM", "endowment" ], "query_toks_no_value": [ "select", "distinct", "donator_name", "from", "endowment" ], "question": "Show all donor names.", "question_toks": [ "show", "all", "donor", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "Show", "all", "donor", "names", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "donor" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "donor", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(16) T(2)" }, { "db_id": "school_finance", "query": "SELECT count(*) FROM budget WHERE budgeted < invested", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "budget", "WHERE", "budgeted", "<", "invested" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "budget", "where", "budgeted", "<", "invested" ], "question": "How many budget record has a budget amount smaller than the invested amount?", "question_toks": [ "how", "many", "budget", "record", "ha", "a", "budget", "amount", "smaller", "than", "invested", "amount", "?" ], "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, 11, false ], null ], [ 0, 13, false ], null ] ] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "How", "many", "budget", "record", "has", "a", "budget", "amount", "smaller", "than", "the", "invested", "amount", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "budget" ], [ "record" ], [ "ha" ], [ "a" ], [ "budget" ], [ "amount" ], [ "smaller" ], [ "than" ], [ "invested" ], [ "amount" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "budget", "NN" ], [ "record", "NN" ], [ "ha", "VBZ" ], [ "a", "DT" ], [ "budget", "NN" ], [ "amount", "NN" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "invested", "VBN" ], [ "amount", "NN" ], [ "?", "." ] ], "values": [ "[0, 13, False]" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(4) A(0) C(10) T(1) V(0)" }, { "db_id": "school_finance", "query": "SELECT sum(T1.budgeted) FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Glenn'", "query_toks": [ "SELECT", "sum", "(", "T1.budgeted", ")", "FROM", "budget", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.school_id", "=", "T2.school_id", "WHERE", "T2.school_name", "=", "'Glenn", "'" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "budgeted", ")", "from", "budget", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "t2", ".", "school_name", "=", "value" ], "question": "What is the total budget amount for school \"Glenn\" in all years?", "question_toks": [ "what", "is", "total", "budget", "amount", "for", "school", "'", "glenn", "'", "in", "all", "year", "?" ], "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, [ [ 4, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Glenn\"", null ] ] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "What", "is", "the", "total", "budget", "amount", "for", "school", "``", "Glenn", "''", "in", "all", "years", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "budget" ], [ "amount" ], [ "for" ], [ "school" ], [ "'" ], [ "glenn" ], [ "'" ], [ "in" ], [ "all" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "budget", "NN" ], [ "amount", "NN" ], [ "for", "IN" ], [ "school", "NN" ], [ "'", "''" ], [ "glenn", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "all", "DT" ], [ "year", "NN" ], [ "?", "." ] ], "values": [ "Glenn" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(10) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "school_finance", "query": "SELECT T2.school_name FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id JOIN endowment AS T3 ON T2.school_id = T3.school_id GROUP BY T2.school_name HAVING sum(T1.budgeted) > 100 OR sum(T3.amount) > 10", "query_toks": [ "SELECT", "T2.school_name", "FROM", "budget", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.school_id", "=", "T2.school_id", "JOIN", "endowment", "AS", "T3", "ON", "T2.school_id", "=", "T3.school_id", "GROUP", "BY", "T2.school_name", "HAVING", "sum", "(", "T1.budgeted", ")", ">", "100", "OR", "sum", "(", "T3.amount", ")", ">", "10" ], "query_toks_no_value": [ "select", "t2", ".", "school_name", "from", "budget", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "join", "endowment", "as", "t3", "on", "t2", ".", "school_id", "=", "t3", ".", "school_id", "group", "by", "t2", ".", "school_name", "having", "sum", "(", "t1", ".", "budgeted", ")", ">", "value", "or", "sum", "(", "t3", ".", "amount", ")", ">", "value" ], "question": "Show the names of schools with a total budget amount greater than 100 or a total endowment greater than 10.", "question_toks": [ "show", "name", "of", "school", "with", "a", "total", "budget", "amount", "greater", "than", "100", "or", "a", "total", "endowment", "greater", "than", "10", "." ], "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, 2, false ] ], "having": [ [ false, 3, [ 0, [ 4, 11, false ], null ], 100.0, null ], "or", [ false, 3, [ 0, [ 4, 19, 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, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "Show", "the", "names", "of", "schools", "with", "a", "total", "budget", "amount", "greater", "than", "100", "or", "a", "total", "endowment", "greater", "than", "10", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "school" ], [ "with" ], [ "a" ], [ "total" ], [ "budget" ], [ "amount" ], [ "greater" ], [ "than" ], [ "100" ], [ "or" ], [ "a" ], [ "total" ], [ "endowment" ], [ "greater" ], [ "than" ], [ "10" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "total", "JJ" ], [ "budget", "NN" ], [ "amount", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "or", "CC" ], [ "a", "DT" ], [ "total", "JJ" ], [ "endowment", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ ".", "." ] ], "values": [ "100", "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1) Filter(5) A(4) C(10) T(1) V(0)" }, { "db_id": "school_finance", "query": "SELECT T2.School_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.amount > 8.5 GROUP BY T1.school_id HAVING count(*) > 1", "query_toks": [ "SELECT", "T2.School_name", "FROM", "endowment", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.school_id", "=", "T2.school_id", "WHERE", "T1.amount", ">", "8.5", "GROUP", "BY", "T1.school_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t2", ".", "school_name", "from", "endowment", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "t1", ".", "amount", ">", "value", "group", "by", "t1", ".", "school_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the names of schools that have more than one donator with donation amount above 8.5.", "question_toks": [ "find", "name", "of", "school", "that", "have", "more", "than", "one", "donator", "with", "donation", "amount", "above", "8.5", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 17, 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, 3, [ 0, [ 0, 19, false ], null ], 8.5, null ] ] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "Find", "the", "names", "of", "schools", "that", "have", "more", "than", "one", "donator", "with", "donation", "amount", "above", "8.5", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "school" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "donator" ], [ "with" ], [ "donation" ], [ "amount" ], [ "above" ], [ "8.5" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "donator", "NN" ], [ "with", "IN" ], [ "donation", "NN" ], [ "amount", "NN" ], [ "above", "IN" ], [ "8.5", "CD" ], [ ".", "." ] ], "values": [ "1", "8.5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(5) A(0) C(17) T(2) V(1) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "school_finance", "query": "SELECT count(*) FROM (SELECT * FROM endowment WHERE amount > 8.5 GROUP BY school_id HAVING count(*) > 1)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "(", "SELECT", "*", "FROM", "endowment", "WHERE", "amount", ">", "8.5", "GROUP", "BY", "school_id", "HAVING", "count", "(", "*", ")", ">", "1", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "(", "select", "*", "from", "endowment", "where", "amount", ">", "value", "group", "by", "school_id", "having", "count", "(", "*", ")", ">", "value", ")" ], "question": "Find the number of schools that have more than one donator whose donation amount is less than 8.5.", "question_toks": [ "find", "number", "of", "school", "that", "have", "more", "than", "one", "donator", "whose", "donation", "amount", "is", "le", "than", "8.5", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "sql", { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 19, false ], null ], 8.5, null ] ] } ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "Find", "the", "number", "of", "schools", "that", "have", "more", "than", "one", "donator", "whose", "donation", "amount", "is", "less", "than", "8.5", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "school" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "donator" ], [ "whose" ], [ "donation" ], [ "amount" ], [ "is" ], [ "le" ], [ "than" ], [ "8.5" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "donator", "NN" ], [ "whose", "WP$" ], [ "donation", "NN" ], [ "amount", "NN" ], [ "is", "VBZ" ], [ "le", "JJR" ], [ "than", "IN" ], [ "8.5", "CD" ], [ ".", "." ] ], "values": [ "1", "8.5" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "school_finance", "query": "SELECT T1.School_name , T1.Mascot , T1.IHSAA_Football_Class FROM school AS T1 JOIN budget AS T2 ON T1.school_id = T2.school_id WHERE Budgeted > 6000 OR YEAR < 2003 ORDER BY T2.total_budget_percent_invested , T2.total_budget_percent_budgeted", "query_toks": [ "SELECT", "T1.School_name", ",", "T1.Mascot", ",", "T1.IHSAA_Football_Class", "FROM", "school", "AS", "T1", "JOIN", "budget", "AS", "T2", "ON", "T1.school_id", "=", "T2.school_id", "WHERE", "Budgeted", ">", "6000", "OR", "YEAR", "<", "2003", "ORDER", "BY", "T2.total_budget_percent_invested", ",", "T2.total_budget_percent_budgeted" ], "query_toks_no_value": [ "select", "t1", ".", "school_name", ",", "t1", ".", "mascot", ",", "t1", ".", "ihsaa_football_class", "from", "school", "as", "t1", "join", "budget", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "budgeted", ">", "value", "or", "year", "<", "value", "order", "by", "t2", ".", "total_budget_percent_invested", ",", "t2", ".", "total_budget_percent_budgeted" ], "question": "List the name, IHSAA Football Class, and Mascot of the schools that have more than 6000 of budgeted amount or were founded before 2003, in the order of percent of total invested budget and total budgeted budget.", "question_toks": [ "list", "name", ",", "ihsaa", "football", "class", ",", "and", "mascot", "of", "school", "that", "have", "more", "than", "6000", "of", "budgeted", "amount", "or", "were", "founded", "before", "year", ",", "in", "order", "of", "percent", "of", "total", "invested", "budget", "and", "total", "budgeted", "budget", "." ], "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, 14, false ], null ], [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 6000.0, null ], "or", [ false, 4, [ 0, [ 0, 10, false ], null ], 2003.0, null ] ] }, "names": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "school id", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "school id", "donator name", "amount" ], "table_names": [ "school", "budget", "endowment" ], "col_set": [ "*", "school id", "school name", "location", "mascot", "enrollment", "ihsaa class", "ihsaa football class", "county", "year", "budgeted", "total budget percent budgeted", "invested", "total budget percent invested", "budget invested percent", "endowment id", "donator name", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 9, "1": 1, "17": 1, "16": 16 }, "origin_question_toks": [ "List", "the", "name", ",", "IHSAA", "Football", "Class", ",", "and", "Mascot", "of", "the", "schools", "that", "have", "more", "than", "6000", "of", "budgeted", "amount", "or", "were", "founded", "before", "2003", ",", "in", "the", "order", "of", "percent", "of", "total", "invested", "budget", "and", "total", "budgeted", "budget", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "," ], [ "ihsaa", "football", "class" ], [ "," ], [ "and" ], [ "mascot" ], [ "of" ], [ "school" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "6000" ], [ "of" ], [ "budgeted" ], [ "amount" ], [ "or" ], [ "were" ], [ "founded" ], [ "before" ], [ "year" ], [ "," ], [ "in" ], [ "order" ], [ "of" ], [ "percent" ], [ "of" ], [ "total" ], [ "invested" ], [ "budget" ], [ "and" ], [ "total" ], [ "budgeted" ], [ "budget" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "ihsaa", "VBP" ], [ "football", "NN" ], [ "class", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "mascot", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "6000", "CD" ], [ "of", "IN" ], [ "budgeted", "VBN" ], [ "amount", "NN" ], [ "or", "CC" ], [ "were", "VBD" ], [ "founded", "VBN" ], [ "before", "IN" ], [ "2003", "CD" ], [ ",", "," ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "percent", "NN" ], [ "of", "IN" ], [ "total", "JJ" ], [ "invested", "JJ" ], [ "budget", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "budgeted", "JJ" ], [ "budget", "NN" ], [ ".", "." ] ], "values": [ "2003", "6000" ], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(0) C(2) T(0) A(0) C(4) T(0) A(0) C(7) T(0) Filter(1) Filter(5) A(0) C(10) T(1) V(1) Filter(4) A(0) C(9) T(1) V(0) Order(1) A(0) C(13) T(1)" }, { "db_id": "protein_institute", "query": "SELECT count(*) FROM building", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "building" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "building" ], "question": "How many buildings are there?", "question_toks": [ "how", "many", "building", "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": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "How", "many", "buildings", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "building" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "building", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "protein_institute", "query": "SELECT name , street_address , floors FROM building ORDER BY floors", "query_toks": [ "SELECT", "name", ",", "street_address", ",", "floors", "FROM", "building", "ORDER", "BY", "floors" ], "query_toks_no_value": [ "select", "name", ",", "street_address", ",", "floors", "from", "building", "order", "by", "floors" ], "question": "Show the name, street address, and number of floors for all buildings ordered by the number of floors.", "question_toks": [ "show", "name", ",", "street", "address", ",", "and", "number", "of", "floor", "for", "all", "building", "ordered", "by", "number", "of", "floor", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, 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": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "Show", "the", "name", ",", "street", "address", ",", "and", "number", "of", "floors", "for", "all", "buildings", "ordered", "by", "the", "number", "of", "floors", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "," ], [ "street", "address" ], [ "," ], [ "and" ], [ "number" ], [ "of" ], [ "floor" ], [ "for" ], [ "all" ], [ "building" ], [ "ordered" ], [ "by" ], [ "number" ], [ "of" ], [ "floor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "street", "NN" ], [ "address", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "floor", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "building", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "floor", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(0) C(6) T(0) Order(1) A(0) C(6) T(0)" }, { "db_id": "protein_institute", "query": "SELECT name FROM building ORDER BY height_feet DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "building", "ORDER", "BY", "height_feet", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "building", "order", "by", "height_feet", "desc", "limit", "value" ], "question": "What is the name of the tallest building?", "question_toks": [ "what", "is", "name", "of", "tallest", "building", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "tallest", "building", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "tallest" ], [ "building" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "tallest", "NN" ], [ "building", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "protein_institute", "query": "SELECT avg(floors) , max(floors) , min(floors) FROM building", "query_toks": [ "SELECT", "avg", "(", "floors", ")", ",", "max", "(", "floors", ")", ",", "min", "(", "floors", ")", "FROM", "building" ], "query_toks_no_value": [ "select", "avg", "(", "floors", ")", ",", "max", "(", "floors", ")", ",", "min", "(", "floors", ")", "from", "building" ], "question": "What are the average, maximum, and minimum number of floors for all buildings?", "question_toks": [ "what", "are", "average", ",", "maximum", ",", "and", "minimum", "number", "of", "floor", "for", "all", "building", "?" ], "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 ] ], [ 1, [ 0, [ 0, 6, false ], null ] ], [ 2, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "What", "are", "the", "average", ",", "maximum", ",", "and", "minimum", "number", "of", "floors", "for", "all", "buildings", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "," ], [ "maximum" ], [ "," ], [ "and" ], [ "minimum" ], [ "number" ], [ "of" ], [ "floor" ], [ "for" ], [ "all" ], [ "building" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ ",", "," ], [ "maximum", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "floor", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "building", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(5) C(6) T(0) A(1) C(6) T(0) A(2) C(6) T(0)" }, { "db_id": "protein_institute", "query": "SELECT count(*) FROM building WHERE height_feet > (SELECT avg(height_feet) FROM building) OR floors > (SELECT avg(floors) FROM building)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "building", "WHERE", "height_feet", ">", "(", "SELECT", "avg", "(", "height_feet", ")", "FROM", "building", ")", "OR", "floors", ">", "(", "SELECT", "avg", "(", "floors", ")", "FROM", "building", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "building", "where", "height_feet", ">", "(", "select", "avg", "(", "height_feet", ")", "from", "building", ")", "or", "floors", ">", "(", "select", "avg", "(", "floors", ")", "from", "building", ")" ], "question": "Show the number of buildings with a height above the average or a number of floors above the average.", "question_toks": [ "show", "number", "of", "building", "with", "a", "height", "above", "average", "or", "a", "number", "of", "floor", "above", "average", "." ], "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 ], { "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 ], "or", [ false, 3, [ 0, [ 0, 6, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "Show", "the", "number", "of", "buildings", "with", "a", "height", "above", "the", "average", "or", "a", "number", "of", "floors", "above", "the", "average", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "of" ], [ "building" ], [ "with" ], [ "a" ], [ "height" ], [ "above" ], [ "average" ], [ "or" ], [ "a" ], [ "number" ], [ "of" ], [ "floor" ], [ "above" ], [ "average" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "building", "VBG" ], [ "with", "IN" ], [ "a", "DT" ], [ "height", "NN" ], [ "above", "IN" ], [ "average", "NN" ], [ "or", "CC" ], [ "a", "DT" ], [ "number", "NN" ], [ "of", "IN" ], [ "floor", "NN" ], [ "above", "IN" ], [ "average", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(1) Filter(13) A(0) C(5) T(0) Root(5) Sel(0) N(0) A(5) C(5) T(0) Filter(13) A(0) C(6) T(0) Root(5) Sel(0) N(0) A(5) C(6) T(0)" }, { "db_id": "protein_institute", "query": "SELECT name FROM building WHERE height_feet >= 200 AND floors >= 20", "query_toks": [ "SELECT", "name", "FROM", "building", "WHERE", "height_feet", ">", "=", "200", "AND", "floors", ">", "=", "20" ], "query_toks_no_value": [ "select", "name", "from", "building", "where", "height_feet", ">", "=", "value", "and", "floors", ">", "=", "value" ], "question": "List the names of buildings with at least 200 feet of height and with at least 20 floors.", "question_toks": [ "list", "name", "of", "building", "with", "at", "least", "200", "foot", "of", "height", "and", "with", "at", "least", "20", "floor", "." ], "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, 5, [ 0, [ 0, 5, false ], null ], 200.0, null ], "and", [ false, 5, [ 0, [ 0, 6, false ], null ], 20.0, null ] ] }, "names": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "List", "the", "names", "of", "buildings", "with", "at", "least", "200", "feet", "of", "height", "and", "with", "at", "least", "20", "floors", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "building" ], [ "with" ], [ "at" ], [ "least" ], [ "200" ], [ "foot" ], [ "of" ], [ "height" ], [ "and" ], [ "with" ], [ "at" ], [ "least" ], [ "20" ], [ "floor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "building", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "200", "CD" ], [ "foot", "NN" ], [ "of", "IN" ], [ "height", "NN" ], [ "and", "CC" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "20", "CD" ], [ "floor", "NN" ], [ ".", "." ] ], "values": [ "200", "20" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(7) A(0) C(5) T(0) V(0) Filter(7) A(0) C(6) T(0) V(1)" }, { "db_id": "protein_institute", "query": "SELECT institution , LOCATION FROM institution WHERE founded > 1990 AND TYPE = 'Private'", "query_toks": [ "SELECT", "institution", ",", "LOCATION", "FROM", "institution", "WHERE", "founded", ">", "1990", "AND", "TYPE", "=", "'Private", "'" ], "query_toks_no_value": [ "select", "institution", ",", "location", "from", "institution", "where", "founded", ">", "value", "and", "type", "=", "value" ], "question": "Show the names and locations of institutions that are founded after 1990 and have the type \"Private\".", "question_toks": [ "show", "name", "and", "location", "of", "institution", "that", "are", "founded", "after", "year", "and", "have", "type", "'", "private", "'", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 1990.0, null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Private\"", null ] ] }, "names": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "Show", "the", "names", "and", "locations", "of", "institutions", "that", "are", "founded", "after", "1990", "and", "have", "the", "type", "``", "Private", "''", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "location" ], [ "of" ], [ "institution" ], [ "that" ], [ "are" ], [ "founded" ], [ "after" ], [ "year" ], [ "and" ], [ "have" ], [ "type" ], [ "'" ], [ "private" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "institution", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "founded", "VBN" ], [ "after", "IN" ], [ "1990", "CD" ], [ "and", "CC" ], [ "have", "VBP" ], [ "type", "VBN" ], [ "'", "''" ], [ "private", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "1990", "Private" ], "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(5) A(0) C(10) T(1) V(0) Filter(2) A(0) C(11) T(1) V(1)" }, { "db_id": "protein_institute", "query": "SELECT TYPE , count(*) , sum(enrollment) FROM institution GROUP BY TYPE", "query_toks": [ "SELECT", "TYPE", ",", "count", "(", "*", ")", ",", "sum", "(", "enrollment", ")", "FROM", "institution", "GROUP", "BY", "TYPE" ], "query_toks_no_value": [ "select", "type", ",", "count", "(", "*", ")", ",", "sum", "(", "enrollment", ")", "from", "institution", "group", "by", "type" ], "question": "Show institution types, along with the number of institutions and total enrollment for each type.", "question_toks": [ "show", "institution", "type", ",", "along", "with", "number", "of", "institution", "and", "total", "enrollment", "for", "each", "type", "." ], "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 ] ], [ 4, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "Show", "institution", "types", ",", "along", "with", "the", "number", "of", "institutions", "and", "total", "enrollment", "for", "each", "type", "." ], "question_arg": [ [ "show" ], [ "institution" ], [ "type" ], [ "," ], [ "along" ], [ "with" ], [ "number" ], [ "of" ], [ "institution" ], [ "and" ], [ "total" ], [ "enrollment" ], [ "for" ], [ "each" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "institution", "NN" ], [ "type", "NN" ], [ ",", "," ], [ "along", "IN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "institution", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "enrollment", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(11) T(1) A(3) C(0) T(1) A(4) C(12) T(1)" }, { "db_id": "protein_institute", "query": "SELECT TYPE FROM institution GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "TYPE", "FROM", "institution", "GROUP", "BY", "TYPE", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "type", "from", "institution", "group", "by", "type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the institution type with the largest number of institutions.", "question_toks": [ "show", "institution", "type", "with", "largest", "number", "of", "institution", "." ], "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": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "Show", "the", "institution", "type", "with", "the", "largest", "number", "of", "institutions", "." ], "question_arg": [ [ "show" ], [ "institution" ], [ "type" ], [ "with" ], [ "largest" ], [ "number" ], [ "of" ], [ "institution" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "institution", "NN" ], [ "type", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "institution", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(11) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "protein_institute", "query": "SELECT TYPE FROM institution WHERE founded > 1990 AND enrollment >= 1000", "query_toks": [ "SELECT", "TYPE", "FROM", "institution", "WHERE", "founded", ">", "1990", "AND", "enrollment", ">", "=", "1000" ], "query_toks_no_value": [ "select", "type", "from", "institution", "where", "founded", ">", "value", "and", "enrollment", ">", "=", "value" ], "question": "Show the institution type with an institution founded after 1990 and an institution with at least 1000 enrollment.", "question_toks": [ "show", "institution", "type", "with", "an", "institution", "founded", "after", "year", "and", "an", "institution", "with", "at", "least", "1000", "enrollment", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 1990.0, null ], "and", [ false, 5, [ 0, [ 0, 12, false ], null ], 1000.0, null ] ] }, "names": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "Show", "the", "institution", "type", "with", "an", "institution", "founded", "after", "1990", "and", "an", "institution", "with", "at", "least", "1000", "enrollment", "." ], "question_arg": [ [ "show" ], [ "institution" ], [ "type" ], [ "with" ], [ "an" ], [ "institution" ], [ "founded" ], [ "after" ], [ "year" ], [ "and" ], [ "an" ], [ "institution" ], [ "with" ], [ "at" ], [ "least" ], [ "1000" ], [ "enrollment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "institution", "NN" ], [ "type", "NN" ], [ "with", "IN" ], [ "an", "DT" ], [ "institution", "NN" ], [ "founded", "VBD" ], [ "after", "IN" ], [ "1990", "CD" ], [ "and", "CC" ], [ "an", "DT" ], [ "institution", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "1000", "CD" ], [ "enrollment", "NN" ], [ ".", "." ] ], "values": [ "1990", "1000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(0) Filter(5) A(0) C(10) T(1) V(0) Filter(7) A(0) C(12) T(1) V(1)" }, { "db_id": "protein_institute", "query": "SELECT name FROM building WHERE building_id NOT IN (SELECT building_id FROM institution)", "query_toks": [ "SELECT", "name", "FROM", "building", "WHERE", "building_id", "NOT", "IN", "(", "SELECT", "building_id", "FROM", "institution", ")" ], "query_toks_no_value": [ "select", "name", "from", "building", "where", "building_id", "not", "in", "(", "select", "building_id", "from", "institution", ")" ], "question": "Show the name of buildings that do not have any institution.", "question_toks": [ "show", "name", "of", "building", "that", "do", "not", "have", "any", "institution", "." ], "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, 15, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "Show", "the", "name", "of", "buildings", "that", "do", "not", "have", "any", "institution", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "building" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "institution" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "building", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "institution", "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": "protein_institute", "query": "SELECT name FROM building EXCEPT SELECT T1.name FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded = 2003", "query_toks": [ "SELECT", "name", "FROM", "building", "EXCEPT", "SELECT", "T1.name", "FROM", "building", "AS", "T1", "JOIN", "institution", "AS", "T2", "ON", "T1.building_id", "=", "T2.building_id", "WHERE", "T2.founded", "=", "2003" ], "query_toks_no_value": [ "select", "name", "from", "building", "except", "select", "t1", ".", "name", "from", "building", "as", "t1", "join", "institution", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "where", "t2", ".", "founded", "=", "value" ], "question": "Show the names of buildings except for those having an institution founded in 2003.", "question_toks": [ "show", "name", "of", "building", "except", "for", "those", "having", "an", "institution", "founded", "in", "year", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, 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, 10, false ], null ], 2003.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": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "Show", "the", "names", "of", "buildings", "except", "for", "those", "having", "an", "institution", "founded", "in", "2003", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "building" ], [ "except" ], [ "for" ], [ "those" ], [ "having" ], [ "an" ], [ "institution" ], [ "founded" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "building", "NN" ], [ "except", "IN" ], [ "for", "IN" ], [ "those", "DT" ], [ "having", "VBG" ], [ "an", "DT" ], [ "institution", "NN" ], [ "founded", "VBN" ], [ "in", "IN" ], [ "2003", "CD" ], [ ".", "." ] ], "values": [ "2003" ], "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(10) T(1) V(0)" }, { "db_id": "protein_institute", "query": "SELECT T1.name , count(*) FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id GROUP BY T1.building_id", "query_toks": [ "SELECT", "T1.name", ",", "count", "(", "*", ")", "FROM", "building", "AS", "T1", "JOIN", "institution", "AS", "T2", "ON", "T1.building_id", "=", "T2.building_id", "GROUP", "BY", "T1.building_id" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "building", "as", "t1", "join", "institution", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "group", "by", "t1", ".", "building_id" ], "question": "For each building, show the name of the building and the number of institutions in it.", "question_toks": [ "for", "each", "building", ",", "show", "name", "of", "building", "and", "number", "of", "institution", "in", "it", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, 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, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "For", "each", "building", ",", "show", "the", "name", "of", "the", "building", "and", "the", "number", "of", "institutions", "in", "it", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "building" ], [ "," ], [ "show" ], [ "name" ], [ "of" ], [ "building" ], [ "and" ], [ "number" ], [ "of" ], [ "institution" ], [ "in" ], [ "it" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "building", "NN" ], [ ",", "," ], [ "show", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "building", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "institution", "NN" ], [ "in", "IN" ], [ "it", "PRP" ], [ ".", "." ] ], "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": "protein_institute", "query": "SELECT T1.name , T1.height_feet FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded > 1880 GROUP BY T1.building_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.name", ",", "T1.height_feet", "FROM", "building", "AS", "T1", "JOIN", "institution", "AS", "T2", "ON", "T1.building_id", "=", "T2.building_id", "WHERE", "T2.founded", ">", "1880", "GROUP", "BY", "T1.building_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "height_feet", "from", "building", "as", "t1", "join", "institution", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "where", "t2", ".", "founded", ">", "value", "group", "by", "t1", ".", "building_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the names and heights of buildings with at least two institutions founded after 1880.", "question_toks": [ "show", "name", "and", "height", "of", "building", "with", "at", "least", "two", "institution", "founded", "after", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "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, 2, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 1880.0, null ] ] }, "names": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "Show", "the", "names", "and", "heights", "of", "buildings", "with", "at", "least", "two", "institutions", "founded", "after", "1880", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "height" ], [ "of" ], [ "building" ], [ "with" ], [ "at" ], [ "least" ], [ "two" ], [ "institution" ], [ "founded" ], [ "after" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "height", "NN" ], [ "of", "IN" ], [ "building", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "institution", "NN" ], [ "founded", "VBD" ], [ "after", "IN" ], [ "1880", "CD" ], [ ".", "." ] ], "values": [ "1880", "2" ], "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(5) A(0) C(10) T(1) V(0) Filter(7) A(3) C(0) T(0) V(1)" }, { "db_id": "protein_institute", "query": "SELECT DISTINCT TYPE FROM institution", "query_toks": [ "SELECT", "DISTINCT", "TYPE", "FROM", "institution" ], "query_toks_no_value": [ "select", "distinct", "type", "from", "institution" ], "question": "Show all the distinct institution types.", "question_toks": [ "show", "all", "distinct", "institution", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "Show", "all", "the", "distinct", "institution", "types", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "distinct" ], [ "institution" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "institution", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(11) T(1)" }, { "db_id": "protein_institute", "query": "SELECT T1.institution , count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id GROUP BY T1.institution_id", "query_toks": [ "SELECT", "T1.institution", ",", "count", "(", "*", ")", "FROM", "institution", "AS", "T1", "JOIN", "protein", "AS", "T2", "ON", "T1.institution_id", "=", "T2.institution_id", "GROUP", "BY", "T1.institution_id" ], "query_toks_no_value": [ "select", "t1", ".", "institution", ",", "count", "(", "*", ")", "from", "institution", "as", "t1", "join", "protein", "as", "t2", "on", "t1", ".", "institution_id", "=", "t2", ".", "institution_id", "group", "by", "t1", ".", "institution_id" ], "question": "Show institution names along with the number of proteins for each institution.", "question_toks": [ "show", "institution", "name", "along", "with", "number", "of", "protein", "for", "each", "institution", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, 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": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "Show", "institution", "names", "along", "with", "the", "number", "of", "proteins", "for", "each", "institution", "." ], "question_arg": [ [ "show" ], [ "institution" ], [ "name" ], [ "along" ], [ "with" ], [ "number" ], [ "of" ], [ "protein" ], [ "for" ], [ "each" ], [ "institution" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "institution", "NN" ], [ "name", "NN" ], [ "along", "IN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "protein", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "institution", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(1) A(3) C(0) T(2)" }, { "db_id": "protein_institute", "query": "SELECT count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id WHERE T1.founded > 1880 OR T1.type = 'Private'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "institution", "AS", "T1", "JOIN", "protein", "AS", "T2", "ON", "T1.institution_id", "=", "T2.institution_id", "WHERE", "T1.founded", ">", "1880", "OR", "T1.type", "=", "'Private", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "institution", "as", "t1", "join", "protein", "as", "t2", "on", "t1", ".", "institution_id", "=", "t2", ".", "institution_id", "where", "t1", ".", "founded", ">", "value", "or", "t1", ".", "type", "=", "value" ], "question": "How many proteins are associated with an institution founded after 1880 or an institution with type \"Private\"?", "question_toks": [ "how", "many", "protein", "are", "associated", "with", "an", "institution", "founded", "after", "year", "or", "an", "institution", "with", "type", "'", "private", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 22, 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, 3, [ 0, [ 0, 10, false ], null ], 1880.0, null ], "or", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Private\"", null ] ] }, "names": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "How", "many", "proteins", "are", "associated", "with", "an", "institution", "founded", "after", "1880", "or", "an", "institution", "with", "type", "``", "Private", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "protein" ], [ "are" ], [ "associated" ], [ "with" ], [ "an" ], [ "institution" ], [ "founded" ], [ "after" ], [ "year" ], [ "or" ], [ "an" ], [ "institution" ], [ "with" ], [ "type" ], [ "'" ], [ "private" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "protein", "NNS" ], [ "are", "VBP" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "an", "DT" ], [ "institution", "NN" ], [ "founded", "VBD" ], [ "after", "IN" ], [ "1880", "CD" ], [ "or", "CC" ], [ "an", "DT" ], [ "institution", "NN" ], [ "with", "IN" ], [ "type", "NN" ], [ "'", "''" ], [ "private", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "1880", "Private" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(1) Filter(5) A(0) C(10) T(1) V(0) Filter(2) A(0) C(11) T(1) V(1)" }, { "db_id": "protein_institute", "query": "SELECT T2.protein_name , T1.institution FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id", "query_toks": [ "SELECT", "T2.protein_name", ",", "T1.institution", "FROM", "institution", "AS", "T1", "JOIN", "protein", "AS", "T2", "ON", "T1.institution_id", "=", "T2.institution_id" ], "query_toks_no_value": [ "select", "t2", ".", "protein_name", ",", "t1", ".", "institution", "from", "institution", "as", "t1", "join", "protein", "as", "t2", "on", "t1", ".", "institution_id", "=", "t2", ".", "institution_id" ], "question": "Show the protein name and the institution name.", "question_toks": [ "show", "protein", "name", "and", "institution", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "Show", "the", "protein", "name", "and", "the", "institution", "name", "." ], "question_arg": [ [ "show" ], [ "protein", "name" ], [ "and" ], [ "institution" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "protein", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "institution", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(16) T(2) A(0) C(8) T(1)" }, { "db_id": "protein_institute", "query": "SELECT count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id JOIN building AS T3 ON T3.building_id = T1.building_id WHERE T3.floors >= 20", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "institution", "AS", "T1", "JOIN", "protein", "AS", "T2", "ON", "T1.institution_id", "=", "T2.institution_id", "JOIN", "building", "AS", "T3", "ON", "T3.building_id", "=", "T1.building_id", "WHERE", "T3.floors", ">", "=", "20" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "institution", "as", "t1", "join", "protein", "as", "t2", "on", "t1", ".", "institution_id", "=", "t2", ".", "institution_id", "join", "building", "as", "t3", "on", "t3", ".", "building_id", "=", "t1", ".", "building_id", "where", "t3", ".", "floors", ">", "=", "value" ], "question": "How many proteins are associated with an institution in a building with at least 20 floors?", "question_toks": [ "how", "many", "protein", "are", "associated", "with", "an", "institution", "in", "a", "building", "with", "at", "least", "20", "floor", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 22, 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, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 5, [ 0, [ 0, 6, false ], null ], 20.0, null ] ] }, "names": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "How", "many", "proteins", "are", "associated", "with", "an", "institution", "in", "a", "building", "with", "at", "least", "20", "floors", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "protein" ], [ "are" ], [ "associated" ], [ "with" ], [ "an" ], [ "institution" ], [ "in" ], [ "a" ], [ "building" ], [ "with" ], [ "at" ], [ "least" ], [ "20" ], [ "floor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "protein", "NNS" ], [ "are", "VBP" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "an", "DT" ], [ "institution", "NN" ], [ "in", "IN" ], [ "a", "DT" ], [ "building", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "20", "CD" ], [ "floor", "NN" ], [ "?", "." ] ], "values": [ "20" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(7) A(0) C(6) T(0) V(0)" }, { "db_id": "protein_institute", "query": "SELECT count(*) FROM institution WHERE institution_id NOT IN (SELECT institution_id FROM protein)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "institution", "WHERE", "institution_id", "NOT", "IN", "(", "SELECT", "institution_id", "FROM", "protein", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "institution", "where", "institution_id", "not", "in", "(", "select", "institution_id", "from", "protein", ")" ], "question": "How many institutions do not have an associated protein in our record?", "question_toks": [ "how", "many", "institution", "do", "not", "have", "an", "associated", "protein", "in", "our", "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": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "building id", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein", "institution id" ], "table_names": [ "building", "institution", "protein" ], "col_set": [ "*", "building id", "name", "street address", "years as tallest", "height feet", "floors", "institution id", "institution", "location", "founded", "type", "enrollment", "team", "primary conference", "common name", "protein name", "divergence from human lineage", "accession number", "sequence length", "sequence identity to human protein" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "22": 7, "7": 7, "16": 16 }, "origin_question_toks": [ "How", "many", "institutions", "do", "not", "have", "an", "associated", "protein", "in", "our", "record", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "institution" ], [ "do" ], [ "not" ], [ "have" ], [ "an" ], [ "associated" ], [ "protein" ], [ "in" ], [ "our" ], [ "record" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "institution", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "an", "DT" ], [ "associated", "VBN" ], [ "protein", "NN" ], [ "in", "IN" ], [ "our", "PRP$" ], [ "record", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(19) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "cinema", "query": "SELECT LOCATION FROM cinema EXCEPT SELECT LOCATION FROM cinema WHERE capacity > 800", "query_toks": [ "SELECT", "LOCATION", "FROM", "cinema", "EXCEPT", "SELECT", "LOCATION", "FROM", "cinema", "WHERE", "capacity", ">", "800" ], "query_toks_no_value": [ "select", "location", "from", "cinema", "except", "select", "location", "from", "cinema", "where", "capacity", ">", "value" ], "question": "Show all the locations where no cinema has capacity over 800.", "question_toks": [ "show", "all", "location", "where", "no", "cinema", "ha", "capacity", "over", "800", "." ], "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, 3, [ 0, [ 0, 11, false ], null ], 800.0, 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": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Show", "all", "the", "locations", "where", "no", "cinema", "has", "capacity", "over", "800", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "location" ], [ "where" ], [ "no" ], [ "cinema" ], [ "ha" ], [ "capacity" ], [ "over" ], [ "800" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "location", "NN" ], [ "where", "WRB" ], [ "no", "DT" ], [ "cinema", "NN" ], [ "ha", "NN" ], [ "capacity", "NN" ], [ "over", "IN" ], [ "800", "CD" ], [ ".", "." ] ], "values": [ "800" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(12) T(1) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(5) A(0) C(11) T(1) V(0)" }, { "db_id": "cinema", "query": "SELECT LOCATION FROM cinema WHERE openning_year = 2010 INTERSECT SELECT LOCATION FROM cinema WHERE openning_year = 2011", "query_toks": [ "SELECT", "LOCATION", "FROM", "cinema", "WHERE", "openning_year", "=", "2010", "INTERSECT", "SELECT", "LOCATION", "FROM", "cinema", "WHERE", "openning_year", "=", "2011" ], "query_toks_no_value": [ "select", "location", "from", "cinema", "where", "openning_year", "=", "value", "intersect", "select", "location", "from", "cinema", "where", "openning_year", "=", "value" ], "question": "Show all the locations where some cinemas were opened in both year 2010 and year 2011.", "question_toks": [ "show", "all", "location", "where", "some", "cinema", "were", "opened", "in", "both", "year", "year", "and", "year", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], 2011.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], 2010.0, null ] ] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Show", "all", "the", "locations", "where", "some", "cinemas", "were", "opened", "in", "both", "year", "2010", "and", "year", "2011", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "location" ], [ "where" ], [ "some" ], [ "cinema" ], [ "were" ], [ "opened" ], [ "in" ], [ "both" ], [ "year" ], [ "year" ], [ "and" ], [ "year" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "location", "NN" ], [ "where", "WRB" ], [ "some", "DT" ], [ "cinema", "NN" ], [ "were", "VBD" ], [ "opened", "VBN" ], [ "in", "IN" ], [ "both", "DT" ], [ "year", "NN" ], [ "2010", "CD" ], [ "and", "CC" ], [ "year", "NN" ], [ "2011", "CD" ], [ ".", "." ] ], "values": [ "2010", "2011" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(2) A(0) C(10) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(2) A(0) C(10) T(1) V(1)" }, { "db_id": "cinema", "query": "SELECT count(*) FROM cinema", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "cinema" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cinema" ], "question": "How many cinema do we have?", "question_toks": [ "how", "many", "cinema", "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": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "cinema", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "cinema" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "cinema", "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": "cinema", "query": "SELECT count(*) FROM cinema", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "cinema" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cinema" ], "question": "Count the number of cinemas.", "question_toks": [ "count", "number", "of", "cinema", "." ], "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": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "cinemas", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "cinema" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "cinema", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "cinema", "query": "SELECT name , openning_year , capacity FROM cinema", "query_toks": [ "SELECT", "name", ",", "openning_year", ",", "capacity", "FROM", "cinema" ], "query_toks_no_value": [ "select", "name", ",", "openning_year", ",", "capacity", "from", "cinema" ], "question": "Show name, opening year, and capacity for each cinema.", "question_toks": [ "show", "name", ",", "opening", "year", ",", "and", "capacity", "for", "each", "cinema", "." ], "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 ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Show", "name", ",", "opening", "year", ",", "and", "capacity", "for", "each", "cinema", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "," ], [ "opening" ], [ "year" ], [ "," ], [ "and" ], [ "capacity" ], [ "for" ], [ "each" ], [ "cinema" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "opening", "VBG" ], [ "year", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "capacity", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "cinema", "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(0) C(11) T(1)" }, { "db_id": "cinema", "query": "SELECT name , LOCATION FROM cinema WHERE capacity > (SELECT avg(capacity) FROM cinema)", "query_toks": [ "SELECT", "name", ",", "LOCATION", "FROM", "cinema", "WHERE", "capacity", ">", "(", "SELECT", "avg", "(", "capacity", ")", "FROM", "cinema", ")" ], "query_toks_no_value": [ "select", "name", ",", "location", "from", "cinema", "where", "capacity", ">", "(", "select", "avg", "(", "capacity", ")", "from", "cinema", ")" ], "question": "Show the cinema name and location for cinemas with capacity above average.", "question_toks": [ "show", "cinema", "name", "and", "location", "for", "cinema", "with", "capacity", "above", "average", "." ], "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, 12, 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": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Show", "the", "cinema", "name", "and", "location", "for", "cinemas", "with", "capacity", "above", "average", "." ], "question_arg": [ [ "show" ], [ "cinema" ], [ "name" ], [ "and" ], [ "location" ], [ "for" ], [ "cinema" ], [ "with" ], [ "capacity" ], [ "above" ], [ "average" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "cinema", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "for", "IN" ], [ "cinema", "NN" ], [ "with", "IN" ], [ "capacity", "NN" ], [ "above", "IN" ], [ "average", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(1) A(0) C(12) T(1) Filter(13) A(0) C(11) T(1) Root(5) Sel(0) N(0) A(5) C(11) T(1)" }, { "db_id": "cinema", "query": "SELECT DISTINCT LOCATION FROM cinema", "query_toks": [ "SELECT", "DISTINCT", "LOCATION", "FROM", "cinema" ], "query_toks_no_value": [ "select", "distinct", "location", "from", "cinema" ], "question": "What are all the locations with a cinema?", "question_toks": [ "what", "are", "all", "location", "with", "a", "cinema", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "all", "the", "locations", "with", "a", "cinema", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "location" ], [ "with" ], [ "a" ], [ "cinema" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "location", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "cinema", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(12) T(1)" }, { "db_id": "cinema", "query": "SELECT DISTINCT LOCATION FROM cinema", "query_toks": [ "SELECT", "DISTINCT", "LOCATION", "FROM", "cinema" ], "query_toks_no_value": [ "select", "distinct", "location", "from", "cinema" ], "question": "Find the distinct locations that has a cinema.", "question_toks": [ "find", "distinct", "location", "that", "ha", "a", "cinema", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "distinct", "locations", "that", "has", "a", "cinema", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "location" ], [ "that" ], [ "ha" ], [ "a" ], [ "cinema" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "location", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "a", "DT" ], [ "cinema", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(12) T(1)" }, { "db_id": "cinema", "query": "SELECT name , openning_year FROM cinema ORDER BY openning_year DESC", "query_toks": [ "SELECT", "name", ",", "openning_year", "FROM", "cinema", "ORDER", "BY", "openning_year", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "openning_year", "from", "cinema", "order", "by", "openning_year", "desc" ], "question": "Show all the cinema names and opening years in descending order of opening year.", "question_toks": [ "show", "all", "cinema", "name", "and", "opening", "year", "in", "descending", "order", "of", "opening", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Show", "all", "the", "cinema", "names", "and", "opening", "years", "in", "descending", "order", "of", "opening", "year", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "cinema" ], [ "name" ], [ "and" ], [ "opening" ], [ "year" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "opening" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "cinema", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "opening", "VBG" ], [ "year", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "opening", "VBG" ], [ "year", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(9) T(1) A(0) C(10) T(1) Order(0) A(0) C(10) T(1)" }, { "db_id": "cinema", "query": "SELECT name , LOCATION FROM cinema ORDER BY capacity DESC LIMIT 1", "query_toks": [ "SELECT", "name", ",", "LOCATION", "FROM", "cinema", "ORDER", "BY", "capacity", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "location", "from", "cinema", "order", "by", "capacity", "desc", "limit", "value" ], "question": "What are the name and location of the cinema with the largest capacity?", "question_toks": [ "what", "are", "name", "and", "location", "of", "cinema", "with", "largest", "capacity", "?" ], "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, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "location", "of", "the", "cinema", "with", "the", "largest", "capacity", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "location" ], [ "of" ], [ "cinema" ], [ "with" ], [ "largest" ], [ "capacity" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "cinema", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "capacity", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(9) T(1) A(0) C(12) T(1) Sup(0) A(0) C(11) T(1)" }, { "db_id": "cinema", "query": "SELECT avg(capacity) , min(capacity) , max(capacity) FROM cinema WHERE openning_year >= 2011", "query_toks": [ "SELECT", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "FROM", "cinema", "WHERE", "openning_year", ">", "=", "2011" ], "query_toks_no_value": [ "select", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "cinema", "where", "openning_year", ">", "=", "value" ], "question": "Show the average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.", "question_toks": [ "show", "average", ",", "minimum", ",", "and", "maximum", "capacity", "for", "all", "cinema", "opened", "in", "year", "year", "or", "later", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 11, false ], null ] ], [ 2, [ 0, [ 0, 11, false ], null ] ], [ 1, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 10, false ], null ], 2011.0, null ] ] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Show", "the", "average", ",", "minimum", ",", "and", "maximum", "capacity", "for", "all", "the", "cinemas", "opened", "in", "year", "2011", "or", "later", "." ], "question_arg": [ [ "show" ], [ "average" ], [ "," ], [ "minimum" ], [ "," ], [ "and" ], [ "maximum" ], [ "capacity" ], [ "for" ], [ "all" ], [ "cinema" ], [ "opened" ], [ "in" ], [ "year" ], [ "year" ], [ "or" ], [ "later" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "average", "NN" ], [ ",", "," ], [ "minimum", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "capacity", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "cinema", "NN" ], [ "opened", "VBN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2011", "CD" ], [ "or", "CC" ], [ "later", "RB" ], [ ".", "." ] ], "values": [ "2011" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(5) C(11) T(1) A(2) C(11) T(1) A(1) C(11) T(1) Filter(7) A(0) C(10) T(1) V(0)" }, { "db_id": "cinema", "query": "SELECT LOCATION , count(*) FROM cinema GROUP BY LOCATION", "query_toks": [ "SELECT", "LOCATION", ",", "count", "(", "*", ")", "FROM", "cinema", "GROUP", "BY", "LOCATION" ], "query_toks_no_value": [ "select", "location", ",", "count", "(", "*", ")", "from", "cinema", "group", "by", "location" ], "question": "Show each location and the number of cinemas there.", "question_toks": [ "show", "each", "location", "and", "number", "of", "cinema", "there", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Show", "each", "location", "and", "the", "number", "of", "cinemas", "there", "." ], "question_arg": [ [ "show" ], [ "each" ], [ "location" ], [ "and" ], [ "number" ], [ "of" ], [ "cinema" ], [ "there" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "each", "DT" ], [ "location", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "cinema", "NN" ], [ "there", "RB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(12) T(1) A(3) C(0) T(1)" }, { "db_id": "cinema", "query": "SELECT LOCATION FROM cinema WHERE openning_year >= 2010 GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "LOCATION", "FROM", "cinema", "WHERE", "openning_year", ">", "=", "2010", "GROUP", "BY", "LOCATION", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "location", "from", "cinema", "where", "openning_year", ">", "=", "value", "group", "by", "location", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the location with the most cinemas opened in year 2010 or later?", "question_toks": [ "what", "is", "location", "with", "most", "cinema", "opened", "in", "year", "year", "or", "later", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 10, false ], null ], 2010.0, null ] ] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "location", "with", "the", "most", "cinemas", "opened", "in", "year", "2010", "or", "later", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "location" ], [ "with" ], [ "most" ], [ "cinema" ], [ "opened" ], [ "in" ], [ "year" ], [ "year" ], [ "or" ], [ "later" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "location", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "cinema", "NNS" ], [ "opened", "VBN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2010", "CD" ], [ "or", "CC" ], [ "later", "RB" ], [ "?", "." ] ], "values": [ "2010" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(12) T(1) Sup(0) A(3) C(0) T(1) Filter(7) A(0) C(10) T(1) V(0)" }, { "db_id": "cinema", "query": "SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING count(*) >= 2", "query_toks": [ "SELECT", "LOCATION", "FROM", "cinema", "WHERE", "capacity", ">", "300", "GROUP", "BY", "LOCATION", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "location", "from", "cinema", "where", "capacity", ">", "value", "group", "by", "location", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show all the locations with at least two cinemas with capacity above 300.", "question_toks": [ "show", "all", "location", "with", "at", "least", "two", "cinema", "with", "capacity", "above", "300", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 300.0, null ] ] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Show", "all", "the", "locations", "with", "at", "least", "two", "cinemas", "with", "capacity", "above", "300", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "location" ], [ "with" ], [ "at" ], [ "least" ], [ "two" ], [ "cinema" ], [ "with" ], [ "capacity" ], [ "above" ], [ "300" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "location", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "cinema", "NN" ], [ "with", "IN" ], [ "capacity", "NN" ], [ "above", "IN" ], [ "300", "CD" ], [ ".", "." ] ], "values": [ "300", "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(0) Filter(5) A(0) C(11) T(1) V(0) Filter(7) A(3) C(0) T(1) V(1)" }, { "db_id": "cinema", "query": "SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING count(*) >= 2", "query_toks": [ "SELECT", "LOCATION", "FROM", "cinema", "WHERE", "capacity", ">", "300", "GROUP", "BY", "LOCATION", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "location", "from", "cinema", "where", "capacity", ">", "value", "group", "by", "location", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Which locations have 2 or more cinemas with capacity over 300?", "question_toks": [ "which", "location", "have", "2", "or", "more", "cinema", "with", "capacity", "over", "300", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 300.0, null ] ] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Which", "locations", "have", "2", "or", "more", "cinemas", "with", "capacity", "over", "300", "?" ], "question_arg": [ [ "which" ], [ "location" ], [ "have" ], [ "2" ], [ "or" ], [ "more" ], [ "cinema" ], [ "with" ], [ "capacity" ], [ "over" ], [ "300" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "location", "NN" ], [ "have", "VBP" ], [ "2", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "cinema", "NNS" ], [ "with", "IN" ], [ "capacity", "NN" ], [ "over", "IN" ], [ "300", "CD" ], [ "?", "." ] ], "values": [ "300", "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(0) Filter(5) A(0) C(11) T(1) V(0) Filter(7) A(3) C(0) T(1) V(1)" }, { "db_id": "cinema", "query": "SELECT title , directed_by FROM film", "query_toks": [ "SELECT", "title", ",", "directed_by", "FROM", "film" ], "query_toks_no_value": [ "select", "title", ",", "directed_by", "from", "film" ], "question": "Show the title and director for all films.", "question_toks": [ "show", "title", "and", "director", "for", "all", "film", "." ], "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, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Show", "the", "title", "and", "director", "for", "all", "films", "." ], "question_arg": [ [ "show" ], [ "title" ], [ "and" ], [ "director" ], [ "for" ], [ "all" ], [ "film" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "title", "NN" ], [ "and", "CC" ], [ "director", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "film", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(0) A(0) C(5) T(0)" }, { "db_id": "cinema", "query": "SELECT title , directed_by FROM film", "query_toks": [ "SELECT", "title", ",", "directed_by", "FROM", "film" ], "query_toks_no_value": [ "select", "title", ",", "directed_by", "from", "film" ], "question": "What are the title and director of each film?", "question_toks": [ "what", "are", "title", "and", "director", "of", "each", "film", "?" ], "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, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "title", "and", "director", "of", "each", "film", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "and" ], [ "director" ], [ "of" ], [ "each" ], [ "film" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "and", "CC" ], [ "director", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "film", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(0) A(0) C(5) T(0)" }, { "db_id": "cinema", "query": "SELECT DISTINCT directed_by FROM film", "query_toks": [ "SELECT", "DISTINCT", "directed_by", "FROM", "film" ], "query_toks_no_value": [ "select", "distinct", "directed_by", "from", "film" ], "question": "Show all directors.", "question_toks": [ "show", "all", "director", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Show", "all", "directors", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "director" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "director", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(5) T(0)" }, { "db_id": "cinema", "query": "SELECT DISTINCT directed_by FROM film", "query_toks": [ "SELECT", "DISTINCT", "directed_by", "FROM", "film" ], "query_toks_no_value": [ "select", "distinct", "directed_by", "from", "film" ], "question": "Who are all the directors?", "question_toks": [ "who", "are", "all", "director", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Who", "are", "all", "the", "directors", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "all" ], [ "director" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "all", "DT" ], [ "director", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(5) T(0)" }, { "db_id": "cinema", "query": "SELECT directed_by , count(*) FROM film GROUP BY directed_by", "query_toks": [ "SELECT", "directed_by", ",", "count", "(", "*", ")", "FROM", "film", "GROUP", "BY", "directed_by" ], "query_toks_no_value": [ "select", "directed_by", ",", "count", "(", "*", ")", "from", "film", "group", "by", "directed_by" ], "question": "List all directors along with the number of films directed by each director.", "question_toks": [ "list", "all", "director", "along", "with", "number", "of", "film", "directed", "by", "each", "director", "." ], "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": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "List", "all", "directors", "along", "with", "the", "number", "of", "films", "directed", "by", "each", "director", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "director" ], [ "along" ], [ "with" ], [ "number" ], [ "of" ], [ "film" ], [ "directed", "by" ], [ "each" ], [ "director" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "director", "NN" ], [ "along", "IN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "directed", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "director", "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": "cinema", "query": "SELECT T2.name , sum(T1.show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id = T2.cinema_id GROUP BY T1.cinema_id", "query_toks": [ "SELECT", "T2.name", ",", "sum", "(", "T1.show_times_per_day", ")", "FROM", "schedule", "AS", "T1", "JOIN", "cinema", "AS", "T2", "ON", "T1.cinema_id", "=", "T2.cinema_id", "GROUP", "BY", "T1.cinema_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "sum", "(", "t1", ".", "show_times_per_day", ")", "from", "schedule", "as", "t1", "join", "cinema", "as", "t2", "on", "t1", ".", "cinema_id", "=", "t2", ".", "cinema_id", "group", "by", "t1", ".", "cinema_id" ], "question": "What is total number of show times per dat for each cinema?", "question_toks": [ "what", "is", "total", "number", "of", "show", "time", "per", "dat", "for", "each", "cinema", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 4, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "total", "number", "of", "show", "times", "per", "dat", "for", "each", "cinema", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "show" ], [ "time" ], [ "per" ], [ "dat" ], [ "for" ], [ "each" ], [ "cinema" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "show", "NN" ], [ "time", "NN" ], [ "per", "IN" ], [ "dat", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "cinema", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(4) C(14) T(2)" }, { "db_id": "cinema", "query": "SELECT T2.title , max(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id", "query_toks": [ "SELECT", "T2.title", ",", "max", "(", "T1.price", ")", "FROM", "schedule", "AS", "T1", "JOIN", "film", "AS", "T2", "ON", "T1.film_id", "=", "T2.film_id", "GROUP", "BY", "T1.film_id" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "max", "(", "t1", ".", "price", ")", "from", "schedule", "as", "t1", "join", "film", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t1", ".", "film_id" ], "question": "What are the title and maximum price of each film?", "question_toks": [ "what", "are", "title", "and", "maximum", "price", "of", "each", "film", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 1, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "title", "and", "maximum", "price", "of", "each", "film", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "and" ], [ "maximum" ], [ "price" ], [ "of" ], [ "each" ], [ "film" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "film", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(0) A(1) C(15) T(2)" }, { "db_id": "cinema", "query": "SELECT T2.title , max(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id", "query_toks": [ "SELECT", "T2.title", ",", "max", "(", "T1.price", ")", "FROM", "schedule", "AS", "T1", "JOIN", "film", "AS", "T2", "ON", "T1.film_id", "=", "T2.film_id", "GROUP", "BY", "T1.film_id" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "max", "(", "t1", ".", "price", ")", "from", "schedule", "as", "t1", "join", "film", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t1", ".", "film_id" ], "question": "Give me the title and highest price for each film.", "question_toks": [ "give", "me", "title", "and", "highest", "price", "for", "each", "film", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 1, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Give", "me", "the", "title", "and", "highest", "price", "for", "each", "film", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "title" ], [ "and" ], [ "highest" ], [ "price" ], [ "for" ], [ "each" ], [ "film" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "title", "JJ" ], [ "and", "CC" ], [ "highest", "JJS" ], [ "price", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "film", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(0) A(1) C(15) T(2)" }, { "db_id": "cinema", "query": "SELECT T3.name , T2.title , T1.date , T1.price FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id JOIN cinema AS T3 ON T1.cinema_id = T3.cinema_id", "query_toks": [ "SELECT", "T3.name", ",", "T2.title", ",", "T1.date", ",", "T1.price", "FROM", "schedule", "AS", "T1", "JOIN", "film", "AS", "T2", "ON", "T1.film_id", "=", "T2.film_id", "JOIN", "cinema", "AS", "T3", "ON", "T1.cinema_id", "=", "T3.cinema_id" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "title", ",", "t1", ".", "date", ",", "t1", ".", "price", "from", "schedule", "as", "t1", "join", "film", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "join", "cinema", "as", "t3", "on", "t1", ".", "cinema_id", "=", "t3", ".", "cinema_id" ], "question": "Show cinema name, film title, date, and price for each record in schedule.", "question_toks": [ "show", "cinema", "name", ",", "film", "title", ",", "date", ",", "and", "price", "for", "each", "record", "in", "schedule", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, 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, 9, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Show", "cinema", "name", ",", "film", "title", ",", "date", ",", "and", "price", "for", "each", "record", "in", "schedule", "." ], "question_arg": [ [ "show" ], [ "cinema" ], [ "name" ], [ "," ], [ "film" ], [ "title" ], [ "," ], [ "date" ], [ "," ], [ "and" ], [ "price" ], [ "for" ], [ "each" ], [ "record" ], [ "in" ], [ "schedule" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "cinema", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "film", "NN" ], [ "title", "NN" ], [ ",", "," ], [ "date", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "price", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "record", "NN" ], [ "in", "IN" ], [ "schedule", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(9) T(1) A(0) C(4) T(0) A(0) C(13) T(2) A(0) C(15) T(2)" }, { "db_id": "cinema", "query": "SELECT title , directed_by FROM film WHERE film_id NOT IN (SELECT film_id FROM schedule)", "query_toks": [ "SELECT", "title", ",", "directed_by", "FROM", "film", "WHERE", "film_id", "NOT", "IN", "(", "SELECT", "film_id", "FROM", "schedule", ")" ], "query_toks_no_value": [ "select", "title", ",", "directed_by", "from", "film", "where", "film_id", "not", "in", "(", "select", "film_id", "from", "schedule", ")" ], "question": "What are the title and director of the films without any schedule?", "question_toks": [ "what", "are", "title", "and", "director", "of", "film", "without", "any", "schedule", "?" ], "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, 5, 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": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "title", "and", "director", "of", "the", "films", "without", "any", "schedule", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "and" ], [ "director" ], [ "of" ], [ "film" ], [ "without" ], [ "any" ], [ "schedule" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "and", "CC" ], [ "director", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "without", "IN" ], [ "any", "DT" ], [ "schedule", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(0) A(0) C(5) T(0) Filter(19) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "cinema", "query": "SELECT T2.directed_by FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.directed_by ORDER BY sum(T1.show_times_per_day) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.directed_by", "FROM", "schedule", "AS", "T1", "JOIN", "film", "AS", "T2", "ON", "T1.film_id", "=", "T2.film_id", "GROUP", "BY", "T2.directed_by", "ORDER", "BY", "sum", "(", "T1.show_times_per_day", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "directed_by", "from", "schedule", "as", "t1", "join", "film", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t2", ".", "directed_by", "order", "by", "sum", "(", "t1", ".", "show_times_per_day", ")", "desc", "limit", "value" ], "question": "Show director with the largest number of show times in total.", "question_toks": [ "show", "director", "with", "largest", "number", "of", "show", "time", "in", "total", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Show", "director", "with", "the", "largest", "number", "of", "show", "times", "in", "total", "." ], "question_arg": [ [ "show" ], [ "director" ], [ "with" ], [ "largest" ], [ "number" ], [ "of" ], [ "show" ], [ "time" ], [ "in" ], [ "total" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "director", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "show", "NN" ], [ "time", "NN" ], [ "in", "IN" ], [ "total", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(0) Sup(0) A(4) C(14) T(2)" }, { "db_id": "cinema", "query": "SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING count(*) > 1", "query_toks": [ "SELECT", "LOCATION", "FROM", "cinema", "WHERE", "capacity", ">", "300", "GROUP", "BY", "LOCATION", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "location", "from", "cinema", "where", "capacity", ">", "value", "group", "by", "location", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the locations that have more than one movie theater with capacity above 300.", "question_toks": [ "find", "location", "that", "have", "more", "than", "one", "movie", "theater", "with", "capacity", "above", "300", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, 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, 3, [ 0, [ 0, 11, false ], null ], 300.0, null ] ] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "locations", "that", "have", "more", "than", "one", "movie", "theater", "with", "capacity", "above", "300", "." ], "question_arg": [ [ "find" ], [ "location" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "movie" ], [ "theater" ], [ "with" ], [ "capacity" ], [ "above" ], [ "300" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "location", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "movie", "NN" ], [ "theater", "NN" ], [ "with", "IN" ], [ "capacity", "NN" ], [ "above", "IN" ], [ "300", "CD" ], [ ".", "." ] ], "values": [ "300", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(0) Filter(5) A(0) C(11) T(1) V(0) Filter(5) A(3) C(0) T(1) V(1)" }, { "db_id": "cinema", "query": "SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING count(*) > 1", "query_toks": [ "SELECT", "LOCATION", "FROM", "cinema", "WHERE", "capacity", ">", "300", "GROUP", "BY", "LOCATION", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "location", "from", "cinema", "where", "capacity", ">", "value", "group", "by", "location", "having", "count", "(", "*", ")", ">", "value" ], "question": "In which locations are there more than one movie theater with capacity above 300?", "question_toks": [ "in", "which", "location", "are", "there", "more", "than", "one", "movie", "theater", "with", "capacity", "above", "300", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, 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, 3, [ 0, [ 0, 11, false ], null ], 300.0, null ] ] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "In", "which", "locations", "are", "there", "more", "than", "one", "movie", "theater", "with", "capacity", "above", "300", "?" ], "question_arg": [ [ "in" ], [ "which" ], [ "location" ], [ "are" ], [ "there" ], [ "more" ], [ "than" ], [ "one" ], [ "movie" ], [ "theater" ], [ "with" ], [ "capacity" ], [ "above" ], [ "300" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "which", "WDT" ], [ "location", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "movie", "NN" ], [ "theater", "NN" ], [ "with", "IN" ], [ "capacity", "NN" ], [ "above", "IN" ], [ "300", "CD" ], [ "?", "." ] ], "values": [ "300", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(0) Filter(5) A(0) C(11) T(1) V(0) Filter(5) A(3) C(0) T(1) V(1)" }, { "db_id": "cinema", "query": "SELECT count(*) FROM film WHERE title LIKE \"%Dummy%\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "film", "WHERE", "title", "LIKE", "``", "%", "Dummy", "%", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "film", "where", "title", "like", "value" ], "question": "How many films have the word 'Dummy' in their titles?", "question_toks": [ "how", "many", "film", "have", "word", "'", "dummy", "'", "in", "their", "title", "?" ], "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, 9, [ 0, [ 0, 4, false ], null ], "\"%Dummy%\"", null ] ] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "films", "have", "the", "word", "'Dummy", "'", "in", "their", "titles", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "film" ], [ "have" ], [ "word" ], [ "'" ], [ "dummy" ], [ "'" ], [ "in" ], [ "their" ], [ "title" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "film", "NN" ], [ "have", "VBP" ], [ "word", "NN" ], [ "'", "''" ], [ "dummy", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "title", "NN" ], [ "?", "." ] ], "values": [ "Dummy" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(9) A(0) C(4) T(0) V(0)" }, { "db_id": "cinema", "query": "SELECT count(*) FROM film WHERE title LIKE \"%Dummy%\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "film", "WHERE", "title", "LIKE", "``", "%", "Dummy", "%", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "film", "where", "title", "like", "value" ], "question": "Count the number of films whose title contains the word 'Dummy'.", "question_toks": [ "count", "number", "of", "film", "whose", "title", "contains", "word", "'", "dummy", "'", "." ], "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, 9, [ 0, [ 0, 4, false ], null ], "\"%Dummy%\"", null ] ] }, "names": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "cinema id", "film id", "date", "show times per day", "price" ], "table_names": [ "film", "cinema", "schedule" ], "col_set": [ "*", "film id", "rank in series", "number in season", "title", "directed by", "original air date", "production code", "cinema id", "name", "openning year", "capacity", "location", "date", "show times per day", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "13": 13, "8": 8, "14": 1, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "films", "whose", "title", "contains", "the", "word", "'Dummy", "'", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "film" ], [ "whose" ], [ "title" ], [ "contains" ], [ "word" ], [ "'" ], [ "dummy" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "whose", "WP$" ], [ "title", "NN" ], [ "contains", "VBZ" ], [ "word", "NN" ], [ "'", "''" ], [ "dummy", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Dummy" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(9) A(0) C(4) T(0) V(0)" }, { "db_id": "products_for_hire", "query": "SELECT T1.good_or_bad_customer FROM customers AS T1 JOIN discount_coupons AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.coupon_amount = 500", "query_toks": [ "SELECT", "T1.good_or_bad_customer", "FROM", "customers", "AS", "T1", "JOIN", "discount_coupons", "AS", "T2", "ON", "T1.coupon_id", "=", "T2.coupon_id", "WHERE", "T2.coupon_amount", "=", "500" ], "query_toks_no_value": [ "select", "t1", ".", "good_or_bad_customer", "from", "customers", "as", "t1", "join", "discount_coupons", "as", "t2", "on", "t1", ".", "coupon_id", "=", "t2", ".", "coupon_id", "where", "t2", ".", "coupon_amount", "=", "value" ], "question": "Are the customers holding coupons with amount 500 bad or good?", "question_toks": [ "are", "customer", "holding", "coupon", "with", "amount", "500", "bad", "or", "good", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 500.0, null ] ] }, "names": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "coupon id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "customer id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "booking id", "customer id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "booking id", "product id", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "product id", "booking id", "status date", "available yes or no" ], "table_names": [ "discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability" ], "col_set": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "13": 4, "4": 4, "30": 4, "29": 12, "12": 12, "37": 23, "23": 23, "36": 36, "42": 23, "43": 12, "28": 28, "44": 44 }, "origin_question_toks": [ "Are", "the", "customers", "holding", "coupons", "with", "amount", "500", "bad", "or", "good", "?" ], "question_arg": [ [ "are" ], [ "customer" ], [ "holding" ], [ "coupon" ], [ "with" ], [ "amount" ], [ "500" ], [ "bad" ], [ "or" ], [ "good" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "are", "VBP" ], [ "customer", "NN" ], [ "holding", "VBG" ], [ "coupon", "NN" ], [ "with", "IN" ], [ "amount", "NN" ], [ "500", "CD" ], [ "bad", "JJ" ], [ "or", "CC" ], [ "good", "JJ" ], [ "?", "." ] ], "values": [ "500" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "products_for_hire", "query": "SELECT T1.customer_id , T1.first_name , count(*) FROM Customers AS T1 JOIN bookings AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id", "query_toks": [ "SELECT", "T1.customer_id", ",", "T1.first_name", ",", "count", "(", "*", ")", "FROM", "Customers", "AS", "T1", "JOIN", "bookings", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id" ], "query_toks_no_value": [ "select", "t1", ".", "customer_id", ",", "t1", ".", "first_name", ",", "count", "(", "*", ")", "from", "customers", "as", "t1", "join", "bookings", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id" ], "question": "How many bookings did each customer make? List the customer id, first name, and the count.", "question_toks": [ "how", "many", "booking", "did", "each", "customer", "make", "?", "list", "customer", "id", ",", "first", "name", ",", "and", "count", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "coupon id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "customer id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "booking id", "customer id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "booking id", "product id", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "product id", "booking id", "status date", "available yes or no" ], "table_names": [ "discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability" ], "col_set": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "13": 4, "4": 4, "30": 4, "29": 12, "12": 12, "37": 23, "23": 23, "36": 36, "42": 23, "43": 12, "28": 28, "44": 44 }, "origin_question_toks": [ "How", "many", "bookings", "did", "each", "customer", "make", "?", "List", "the", "customer", "id", ",", "first", "name", ",", "and", "the", "count", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "booking" ], [ "did" ], [ "each" ], [ "customer" ], [ "make" ], [ "?" ], [ "list" ], [ "customer", "id" ], [ "," ], [ "first", "name" ], [ "," ], [ "and" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "booking", "NN" ], [ "did", "VBD" ], [ "each", "DT" ], [ "customer", "NN" ], [ "make", "VB" ], [ "?", "." ], [ "list", "NN" ], [ "customer", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "count", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(4) T(1) A(0) C(6) T(1) A(3) C(0) T(2)" }, { "db_id": "products_for_hire", "query": "SELECT customer_id , sum(amount_paid) FROM Payments GROUP BY customer_id ORDER BY sum(amount_paid) DESC LIMIT 1", "query_toks": [ "SELECT", "customer_id", ",", "sum", "(", "amount_paid", ")", "FROM", "Payments", "GROUP", "BY", "customer_id", "ORDER", "BY", "sum", "(", "amount_paid", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "customer_id", ",", "sum", "(", "amount_paid", ")", "from", "payments", "group", "by", "customer_id", "order", "by", "sum", "(", "amount_paid", ")", "desc", "limit", "value" ], "question": "What is the maximum total amount paid by a customer? List the customer id and amount.", "question_toks": [ "what", "is", "maximum", "total", "amount", "paid", "by", "a", "customer", "?", "list", "customer", "id", "and", "amount", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 30, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 35, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ], [ 4, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "coupon id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "customer id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "booking id", "customer id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "booking id", "product id", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "product id", "booking id", "status date", "available yes or no" ], "table_names": [ "discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability" ], "col_set": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "13": 4, "4": 4, "30": 4, "29": 12, "12": 12, "37": 23, "23": 23, "36": 36, "42": 23, "43": 12, "28": 28, "44": 44 }, "origin_question_toks": [ "What", "is", "the", "maximum", "total", "amount", "paid", "by", "a", "customer", "?", "List", "the", "customer", "id", "and", "amount", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "total" ], [ "amount", "paid" ], [ "by" ], [ "a" ], [ "customer" ], [ "?" ], [ "list" ], [ "customer", "id" ], [ "and" ], [ "amount" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "paid", "VBN" ], [ "by", "IN" ], [ "a", "DT" ], [ "customer", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "customer", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "amount", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(4) T(4) A(4) C(31) T(4) Sup(0) A(4) C(31) T(4)" }, { "db_id": "products_for_hire", "query": "SELECT T1.booking_id , T1.amount_of_refund FROM Bookings AS T1 JOIN Payments AS T2 ON T1.booking_id = T2.booking_id GROUP BY T1.booking_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.booking_id", ",", "T1.amount_of_refund", "FROM", "Bookings", "AS", "T1", "JOIN", "Payments", "AS", "T2", "ON", "T1.booking_id", "=", "T2.booking_id", "GROUP", "BY", "T1.booking_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "booking_id", ",", "t1", ".", "amount_of_refund", "from", "bookings", "as", "t1", "join", "payments", "as", "t2", "on", "t1", ".", "booking_id", "=", "t2", ".", "booking_id", "group", "by", "t1", ".", "booking_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the id and the amount of refund of the booking that incurred the most times of payments?", "question_toks": [ "what", "are", "id", "and", "amount", "of", "refund", "of", "booking", "that", "incurred", "most", "time", "of", "payment", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 29, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "coupon id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "customer id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "booking id", "customer id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "booking id", "product id", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "product id", "booking id", "status date", "available yes or no" ], "table_names": [ "discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability" ], "col_set": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "13": 4, "4": 4, "30": 4, "29": 12, "12": 12, "37": 23, "23": 23, "36": 36, "42": 23, "43": 12, "28": 28, "44": 44 }, "origin_question_toks": [ "What", "are", "the", "id", "and", "the", "amount", "of", "refund", "of", "the", "booking", "that", "incurred", "the", "most", "times", "of", "payments", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "amount", "of", "refund" ], [ "of" ], [ "booking" ], [ "that" ], [ "incurred" ], [ "most" ], [ "time" ], [ "of" ], [ "payment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "amount", "NN" ], [ "of", "IN" ], [ "refund", "NN" ], [ "of", "IN" ], [ "booking", "VBG" ], [ "that", "DT" ], [ "incurred", "VBD" ], [ "most", "RBS" ], [ "time", "NN" ], [ "of", "IN" ], [ "payment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(11) T(2) A(0) C(20) T(2) Sup(0) A(3) C(0) T(4) Filter(18) A(0) C(11) T(2) Root(5) Sel(0) N(0) A(0) C(11) T(4)" }, { "db_id": "products_for_hire", "query": "SELECT product_id FROM products_booked GROUP BY product_id HAVING count(*) = 3", "query_toks": [ "SELECT", "product_id", "FROM", "products_booked", "GROUP", "BY", "product_id", "HAVING", "count", "(", "*", ")", "=", "3" ], "query_toks_no_value": [ "select", "product_id", "from", "products_booked", "group", "by", "product_id", "having", "count", "(", "*", ")", "=", "value" ], "question": "What is the id of the product that is booked for 3 times?", "question_toks": [ "what", "is", "id", "of", "product", "that", "is", "booked", "for", "3", "time", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 37, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "coupon id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "customer id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "booking id", "customer id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "booking id", "product id", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "product id", "booking id", "status date", "available yes or no" ], "table_names": [ "discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability" ], "col_set": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "13": 4, "4": 4, "30": 4, "29": 12, "12": 12, "37": 23, "23": 23, "36": 36, "42": 23, "43": 12, "28": 28, "44": 44 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "product", "that", "is", "booked", "for", "3", "times", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "product" ], [ "that" ], [ "is" ], [ "booked" ], [ "for" ], [ "3" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "booked", "VBN" ], [ "for", "IN" ], [ "3", "CD" ], [ "time", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(21) T(5) Filter(2) A(3) C(0) T(5) V(0)" }, { "db_id": "products_for_hire", "query": "SELECT T2.product_description FROM products_booked AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.booked_amount = 102.76", "query_toks": [ "SELECT", "T2.product_description", "FROM", "products_booked", "AS", "T1", "JOIN", "products_for_hire", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T1.booked_amount", "=", "102.76" ], "query_toks_no_value": [ "select", "t2", ".", "product_description", "from", "products_booked", "as", "t1", "join", "products_for_hire", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t1", ".", "booked_amount", "=", "value" ], "question": "What is the product description of the product booked with an amount of 102.76?", "question_toks": [ "what", "is", "product", "description", "of", "product", "booked", "with", "an", "amount", "of", "102.76", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 23, 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 41, false ], null ], 102.76, null ] ] }, "names": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "coupon id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "customer id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "booking id", "customer id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "booking id", "product id", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "product id", "booking id", "status date", "available yes or no" ], "table_names": [ "discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability" ], "col_set": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "13": 4, "4": 4, "30": 4, "29": 12, "12": 12, "37": 23, "23": 23, "36": 36, "42": 23, "43": 12, "28": 28, "44": 44 }, "origin_question_toks": [ "What", "is", "the", "product", "description", "of", "the", "product", "booked", "with", "an", "amount", "of", "102.76", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "product", "description" ], [ "of" ], [ "product", "booked" ], [ "with" ], [ "an" ], [ "amount" ], [ "of" ], [ "102.76" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "product", "NN" ], [ "description", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "booked", "VBN" ], [ "with", "IN" ], [ "an", "DT" ], [ "amount", "NN" ], [ "of", "IN" ], [ "102.76", "CD" ], [ "?", "." ] ], "values": [ "102.76" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(25) T(3) Filter(2) A(0) C(35) T(5) V(0)" }, { "db_id": "products_for_hire", "query": "SELECT T3.booking_start_date , T3.booking_end_date FROM Products_for_hire AS T1 JOIN products_booked AS T2 ON T1.product_id = T2.product_id JOIN bookings AS T3 ON T2.booking_id = T3.booking_id WHERE T1.product_name = 'Book collection A'", "query_toks": [ "SELECT", "T3.booking_start_date", ",", "T3.booking_end_date", "FROM", "Products_for_hire", "AS", "T1", "JOIN", "products_booked", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "JOIN", "bookings", "AS", "T3", "ON", "T2.booking_id", "=", "T3.booking_id", "WHERE", "T1.product_name", "=", "'Book", "collection", "A", "'" ], "query_toks_no_value": [ "select", "t3", ".", "booking_start_date", ",", "t3", ".", "booking_end_date", "from", "products_for_hire", "as", "t1", "join", "products_booked", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "bookings", "as", "t3", "on", "t2", ".", "booking_id", "=", "t3", ".", "booking_id", "where", "t1", ".", "product_name", "=", "value" ], "question": "What are the start date and end date of the booking that has booked the product named 'Book collection A'?", "question_toks": [ "what", "are", "start", "date", "and", "end", "date", "of", "booking", "that", "ha", "booked", "product", "named", "'", "book", "collection", "a", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "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, 8, [ 0, [ 0, 23, 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, 26, false ], null ], "\"Book collection A\"", null ] ] }, "names": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "coupon id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "customer id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "booking id", "customer id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "booking id", "product id", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "product id", "booking id", "status date", "available yes or no" ], "table_names": [ "discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability" ], "col_set": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "13": 4, "4": 4, "30": 4, "29": 12, "12": 12, "37": 23, "23": 23, "36": 36, "42": 23, "43": 12, "28": 28, "44": 44 }, "origin_question_toks": [ "What", "are", "the", "start", "date", "and", "end", "date", "of", "the", "booking", "that", "has", "booked", "the", "product", "named", "'Book", "collection", "A", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "booking", "start", "date" ], [ "and" ], [ "booking", "end", "date" ], [ "of" ], [ "booking" ], [ "that" ], [ "ha" ], [ "booked" ], [ "product" ], [ "named" ], [ "'" ], [ "book" ], [ "collection" ], [ "a" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "start", "JJ" ], [ "date", "NN" ], [ "and", "CC" ], [ "end", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "booking", "VBG" ], [ "that", "IN" ], [ "ha", "NN" ], [ "booked", "VBD" ], [ "product", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "book", "NN" ], [ "collection", "NN" ], [ "a", "DT" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Book collection A", "Book collection C", "Book collection B" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(2) A(0) C(15) T(2) Filter(0) Filter(18) A(0) C(21) T(3) Root(5) Sel(0) N(0) A(0) C(21) T(5) Filter(2) A(0) C(24) T(3) V(0)" }, { "db_id": "products_for_hire", "query": "SELECT T2.product_name FROM view_product_availability AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.available_yn = 1", "query_toks": [ "SELECT", "T2.product_name", "FROM", "view_product_availability", "AS", "T1", "JOIN", "products_for_hire", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T1.available_yn", "=", "1" ], "query_toks_no_value": [ "select", "t2", ".", "product_name", "from", "view_product_availability", "as", "t1", "join", "products_for_hire", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t1", ".", "available_yn", "=", "value" ], "question": "What are the names of products whose availability equals to 1?", "question_toks": [ "what", "are", "name", "of", "product", "whose", "availability", "equal", "to", "1", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 42, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 45, false ], null ], 1.0, null ] ] }, "names": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "coupon id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "customer id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "booking id", "customer id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "booking id", "product id", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "product id", "booking id", "status date", "available yes or no" ], "table_names": [ "discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability" ], "col_set": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "13": 4, "4": 4, "30": 4, "29": 12, "12": 12, "37": 23, "23": 23, "36": 36, "42": 23, "43": 12, "28": 28, "44": 44 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "products", "whose", "availability", "equals", "to", "1", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "product" ], [ "whose" ], [ "availability" ], [ "equal" ], [ "to" ], [ "1" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "whose", "WP$" ], [ "availability", "NN" ], [ "equal", "JJ" ], [ "to", "TO" ], [ "1", "CD" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(24) T(3) Filter(2) A(0) C(37) T(6) V(0)" }, { "db_id": "products_for_hire", "query": "SELECT count(DISTINCT product_type_code) FROM products_for_hire", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "product_type_code", ")", "FROM", "products_for_hire" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "product_type_code", ")", "from", "products_for_hire" ], "question": "How many different product types are there?", "question_toks": [ "how", "many", "different", "product", "type", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 24, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "coupon id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "customer id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "booking id", "customer id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "booking id", "product id", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "product id", "booking id", "status date", "available yes or no" ], "table_names": [ "discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability" ], "col_set": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "13": 4, "4": 4, "30": 4, "29": 12, "12": 12, "37": 23, "23": 23, "36": 36, "42": 23, "43": 12, "28": 28, "44": 44 }, "origin_question_toks": [ "How", "many", "different", "product", "types", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "product", "type", "code" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "product", "NN" ], [ "type", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(22) T(3)" }, { "db_id": "products_for_hire", "query": "SELECT first_name , last_name , gender_mf FROM customers WHERE good_or_bad_customer = 'good' ORDER BY last_name", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "gender_mf", "FROM", "customers", "WHERE", "good_or_bad_customer", "=", "'good", "'", "ORDER", "BY", "last_name" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "gender_mf", "from", "customers", "where", "good_or_bad_customer", "=", "value", "order", "by", "last_name" ], "question": "What are the first name, last name, and gender of all the good customers? Order by their last name.", "question_toks": [ "what", "are", "first", "name", ",", "last", "name", ",", "and", "gender", "of", "all", "good", "customer", "?", "order", "by", "their", "last", "name", "." ], "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 ] ], [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"good\"", null ] ] }, "names": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "coupon id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "customer id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "booking id", "customer id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "booking id", "product id", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "product id", "booking id", "status date", "available yes or no" ], "table_names": [ "discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability" ], "col_set": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "13": 4, "4": 4, "30": 4, "29": 12, "12": 12, "37": 23, "23": 23, "36": 36, "42": 23, "43": 12, "28": 28, "44": 44 }, "origin_question_toks": [ "What", "are", "the", "first", "name", ",", "last", "name", ",", "and", "gender", "of", "all", "the", "good", "customers", "?", "Order", "by", "their", "last", "name", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "," ], [ "last", "name" ], [ "," ], [ "and" ], [ "gender" ], [ "of" ], [ "all" ], [ "good" ], [ "customer" ], [ "?" ], [ "order" ], [ "by" ], [ "their" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "gender", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "good", "JJ" ], [ "customer", "NN" ], [ "?", "." ], [ "order", "NN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1", "good" ], "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(8) T(1) Filter(2) A(0) C(5) T(1) V(1) Order(1) A(0) C(7) T(1)" }, { "db_id": "products_for_hire", "query": "SELECT avg(amount_due) FROM payments", "query_toks": [ "SELECT", "avg", "(", "amount_due", ")", "FROM", "payments" ], "query_toks_no_value": [ "select", "avg", "(", "amount_due", ")", "from", "payments" ], "question": "What is the average amount due for all the payments?", "question_toks": [ "what", "is", "average", "amount", "due", "for", "all", "payment", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "coupon id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "customer id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "booking id", "customer id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "booking id", "product id", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "product id", "booking id", "status date", "available yes or no" ], "table_names": [ "discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability" ], "col_set": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "13": 4, "4": 4, "30": 4, "29": 12, "12": 12, "37": 23, "23": 23, "36": 36, "42": 23, "43": 12, "28": 28, "44": 44 }, "origin_question_toks": [ "What", "is", "the", "average", "amount", "due", "for", "all", "the", "payments", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "amount", "due" ], [ "for" ], [ "all" ], [ "payment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "amount", "NN" ], [ "due", "JJ" ], [ "for", "IN" ], [ "all", "DT" ], [ "payment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(30) T(4)" }, { "db_id": "products_for_hire", "query": "SELECT max(booked_count) , min(booked_count) , avg(booked_count) FROM products_booked", "query_toks": [ "SELECT", "max", "(", "booked_count", ")", ",", "min", "(", "booked_count", ")", ",", "avg", "(", "booked_count", ")", "FROM", "products_booked" ], "query_toks_no_value": [ "select", "max", "(", "booked_count", ")", ",", "min", "(", "booked_count", ")", ",", "avg", "(", "booked_count", ")", "from", "products_booked" ], "question": "What are the maximum, minimum, and average booked count for the products booked?", "question_toks": [ "what", "are", "maximum", ",", "minimum", ",", "and", "average", "booked", "count", "for", "product", "booked", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 40, false ], null ] ], [ 2, [ 0, [ 0, 40, false ], null ] ], [ 5, [ 0, [ 0, 40, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "coupon id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "customer id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "booking id", "customer id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "booking id", "product id", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "product id", "booking id", "status date", "available yes or no" ], "table_names": [ "discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability" ], "col_set": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "13": 4, "4": 4, "30": 4, "29": 12, "12": 12, "37": 23, "23": 23, "36": 36, "42": 23, "43": 12, "28": 28, "44": 44 }, "origin_question_toks": [ "What", "are", "the", "maximum", ",", "minimum", ",", "and", "average", "booked", "count", "for", "the", "products", "booked", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "," ], [ "minimum" ], [ "," ], [ "and" ], [ "average" ], [ "booked", "count" ], [ "for" ], [ "product", "booked" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ ",", "," ], [ "minimum", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "average", "JJ" ], [ "booked", "VBD" ], [ "count", "NN" ], [ "for", "IN" ], [ "product", "NN" ], [ "booked", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(1) C(34) T(5) A(2) C(34) T(5) A(5) C(34) T(5)" }, { "db_id": "products_for_hire", "query": "SELECT DISTINCT payment_type_code FROM payments", "query_toks": [ "SELECT", "DISTINCT", "payment_type_code", "FROM", "payments" ], "query_toks_no_value": [ "select", "distinct", "payment_type_code", "from", "payments" ], "question": "What are all the distinct payment types?", "question_toks": [ "what", "are", "all", "distinct", "payment", "type", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "coupon id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "customer id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "booking id", "customer id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "booking id", "product id", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "product id", "booking id", "status date", "available yes or no" ], "table_names": [ "discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability" ], "col_set": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "13": 4, "4": 4, "30": 4, "29": 12, "12": 12, "37": 23, "23": 23, "36": 36, "42": 23, "43": 12, "28": 28, "44": 44 }, "origin_question_toks": [ "What", "are", "all", "the", "distinct", "payment", "types", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "distinct" ], [ "payment" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "payment", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(27) T(4)" }, { "db_id": "products_for_hire", "query": "SELECT daily_hire_cost FROM Products_for_hire WHERE product_name LIKE '%Book%'", "query_toks": [ "SELECT", "daily_hire_cost", "FROM", "Products_for_hire", "WHERE", "product_name", "LIKE", "'", "%", "Book", "%", "'" ], "query_toks_no_value": [ "select", "daily_hire_cost", "from", "products_for_hire", "where", "product_name", "like", "value" ], "question": "What are the daily hire costs for the products with substring 'Book' in its name?", "question_toks": [ "what", "are", "daily", "hire", "cost", "for", "product", "with", "substring", "'", "book", "'", "in", "it", "name", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 26, false ], null ], "\"%Book%\"", null ] ] }, "names": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "coupon id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "customer id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "booking id", "customer id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "booking id", "product id", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "product id", "booking id", "status date", "available yes or no" ], "table_names": [ "discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability" ], "col_set": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "13": 4, "4": 4, "30": 4, "29": 12, "12": 12, "37": 23, "23": 23, "36": 36, "42": 23, "43": 12, "28": 28, "44": 44 }, "origin_question_toks": [ "What", "are", "the", "daily", "hire", "costs", "for", "the", "products", "with", "substring", "'Book", "'", "in", "its", "name", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "daily", "hire", "cost" ], [ "for" ], [ "product" ], [ "with" ], [ "substring" ], [ "'" ], [ "book" ], [ "'" ], [ "in" ], [ "it" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "daily", "JJ" ], [ "hire", "NN" ], [ "cost", "NN" ], [ "for", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "substring", "VBG" ], [ "'", "''" ], [ "book", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "it", "PRP" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "Book" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(3) Filter(9) A(0) C(24) T(3) V(0)" }, { "db_id": "products_for_hire", "query": "SELECT count(*) FROM Products_for_hire WHERE product_id NOT IN ( SELECT product_id FROM products_booked WHERE booked_amount > 200 )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Products_for_hire", "WHERE", "product_id", "NOT", "IN", "(", "SELECT", "product_id", "FROM", "products_booked", "WHERE", "booked_amount", ">", "200", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products_for_hire", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "products_booked", "where", "booked_amount", ">", "value", ")" ], "question": "How many products are never booked with amount higher than 200?", "question_toks": [ "how", "many", "product", "are", "never", "booked", "with", "amount", "higher", "than", "200", "?" ], "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": [ [ true, 8, [ 0, [ 0, 23, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 41, false ], null ], 200.0, null ] ] }, null ] ] }, "names": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "coupon id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "customer id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "booking id", "customer id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "booking id", "product id", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "product id", "booking id", "status date", "available yes or no" ], "table_names": [ "discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability" ], "col_set": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "13": 4, "4": 4, "30": 4, "29": 12, "12": 12, "37": 23, "23": 23, "36": 36, "42": 23, "43": 12, "28": 28, "44": 44 }, "origin_question_toks": [ "How", "many", "products", "are", "never", "booked", "with", "amount", "higher", "than", "200", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "product" ], [ "are" ], [ "never" ], [ "booked" ], [ "with" ], [ "amount" ], [ "higher" ], [ "than" ], [ "200" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "product", "NN" ], [ "are", "VBP" ], [ "never", "RB" ], [ "booked", "VBN" ], [ "with", "IN" ], [ "amount", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "200", "CD" ], [ "?", "." ] ], "values": [ "200" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(19) A(0) C(21) T(3) Root(3) Sel(0) N(0) A(0) C(21) T(5) Filter(5) A(0) C(35) T(5) V(0)" }, { "db_id": "products_for_hire", "query": "SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'good' INTERSECT SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'bad'", "query_toks": [ "SELECT", "T1.coupon_amount", "FROM", "Discount_Coupons", "AS", "T1", "JOIN", "customers", "AS", "T2", "ON", "T1.coupon_id", "=", "T2.coupon_id", "WHERE", "T2.good_or_bad_customer", "=", "'good", "'", "INTERSECT", "SELECT", "T1.coupon_amount", "FROM", "Discount_Coupons", "AS", "T1", "JOIN", "customers", "AS", "T2", "ON", "T1.coupon_id", "=", "T2.coupon_id", "WHERE", "T2.good_or_bad_customer", "=", "'bad", "'" ], "query_toks_no_value": [ "select", "t1", ".", "coupon_amount", "from", "discount_coupons", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "coupon_id", "=", "t2", ".", "coupon_id", "where", "t2", ".", "good_or_bad_customer", "=", "value", "intersect", "select", "t1", ".", "coupon_amount", "from", "discount_coupons", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "coupon_id", "=", "t2", ".", "coupon_id", "where", "t2", ".", "good_or_bad_customer", "=", "value" ], "question": "What are the coupon amount of the coupons owned by both good and bad customers?", "question_toks": [ "what", "are", "coupon", "amount", "of", "coupon", "owned", "by", "both", "good", "and", "bad", "customer", "?" ], "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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"bad\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"good\"", null ] ] }, "names": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "coupon id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "customer id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "booking id", "customer id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "booking id", "product id", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "product id", "booking id", "status date", "available yes or no" ], "table_names": [ "discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability" ], "col_set": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "13": 4, "4": 4, "30": 4, "29": 12, "12": 12, "37": 23, "23": 23, "36": 36, "42": 23, "43": 12, "28": 28, "44": 44 }, "origin_question_toks": [ "What", "are", "the", "coupon", "amount", "of", "the", "coupons", "owned", "by", "both", "good", "and", "bad", "customers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "coupon", "amount" ], [ "of" ], [ "coupon" ], [ "owned" ], [ "by" ], [ "both" ], [ "good" ], [ "and" ], [ "bad" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "coupon", "NN" ], [ "amount", "NN" ], [ "of", "IN" ], [ "coupon", "NN" ], [ "owned", "VBN" ], [ "by", "IN" ], [ "both", "DT" ], [ "good", "JJ" ], [ "and", "CC" ], [ "bad", "JJ" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [ "good", "bad" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(5) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "products_for_hire", "query": "SELECT payment_date FROM payments WHERE amount_paid > 300 OR payment_type_code = 'Check'", "query_toks": [ "SELECT", "payment_date", "FROM", "payments", "WHERE", "amount_paid", ">", "300", "OR", "payment_type_code", "=", "'Check", "'" ], "query_toks_no_value": [ "select", "payment_date", "from", "payments", "where", "amount_paid", ">", "value", "or", "payment_type_code", "=", "value" ], "question": "What are the payment date of the payment with amount paid higher than 300 or with payment type is 'Check'", "question_toks": [ "what", "are", "payment", "date", "of", "payment", "with", "amount", "paid", "higher", "than", "300", "or", "with", "payment", "type", "is", "'", "check", "'" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 35, false ], null ], 300.0, null ], "or", [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Check\"", null ] ] }, "names": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "coupon id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "customer id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "booking id", "customer id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "booking id", "product id", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "product id", "booking id", "status date", "available yes or no" ], "table_names": [ "discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability" ], "col_set": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "13": 4, "4": 4, "30": 4, "29": 12, "12": 12, "37": 23, "23": 23, "36": 36, "42": 23, "43": 12, "28": 28, "44": 44 }, "origin_question_toks": [ "What", "are", "the", "payment", "date", "of", "the", "payment", "with", "amount", "paid", "higher", "than", "300", "or", "with", "payment", "type", "is", "'Check", "'" ], "question_arg": [ [ "what" ], [ "are" ], [ "payment", "date" ], [ "of" ], [ "payment" ], [ "with" ], [ "amount", "paid" ], [ "higher" ], [ "than" ], [ "300" ], [ "or" ], [ "with" ], [ "payment" ], [ "type" ], [ "is" ], [ "'" ], [ "check" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "payment", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "payment", "NN" ], [ "with", "IN" ], [ "amount", "NN" ], [ "paid", "VBD" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "300", "CD" ], [ "or", "CC" ], [ "with", "IN" ], [ "payment", "NN" ], [ "type", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "check", "NN" ], [ "'", "''" ] ], "values": [ "Check", "300" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(29) T(4) Filter(1) Filter(5) A(0) C(31) T(4) V(1) Filter(2) A(0) C(27) T(4) V(0)" }, { "db_id": "products_for_hire", "query": "SELECT product_name , product_description FROM products_for_hire WHERE product_type_code = 'Cutlery' AND daily_hire_cost < 20", "query_toks": [ "SELECT", "product_name", ",", "product_description", "FROM", "products_for_hire", "WHERE", "product_type_code", "=", "'Cutlery", "'", "AND", "daily_hire_cost", "<", "20" ], "query_toks_no_value": [ "select", "product_name", ",", "product_description", "from", "products_for_hire", "where", "product_type_code", "=", "value", "and", "daily_hire_cost", "<", "value" ], "question": "What are the names and descriptions of the products that are of 'Cutlery' type and have daily hire cost lower than 20?", "question_toks": [ "what", "are", "name", "and", "description", "of", "product", "that", "are", "of", "'", "cutlery", "'", "type", "and", "have", "daily", "hire", "cost", "lower", "than", "20", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Cutlery\"", null ], "and", [ false, 4, [ 0, [ 0, 25, false ], null ], 20.0, null ] ] }, "names": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "coupon id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "customer id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "booking id", "customer id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "booking id", "product id", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "product id", "booking id", "status date", "available yes or no" ], "table_names": [ "discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability" ], "col_set": [ "*", "coupon id", "date issued", "coupon amount", "customer id", "good or bad customer", "first name", "last name", "gender", "date became customer", "date last hire", "booking id", "booking status code", "returned damaged yes or no", "booking start date", "booking end date", "count hired", "amount payable", "amount of discount", "amount outstanding", "amount of refund", "product id", "product type code", "daily hire cost", "product name", "product description", "payment id", "payment type code", "amount paid in full yn", "payment date", "amount due", "amount paid", "returned yes or no", "returned late yes or no", "booked count", "booked amount", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "13": 4, "4": 4, "30": 4, "29": 12, "12": 12, "37": 23, "23": 23, "36": 36, "42": 23, "43": 12, "28": 28, "44": 44 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "descriptions", "of", "the", "products", "that", "are", "of", "'Cutlery", "'", "type", "and", "have", "daily", "hire", "cost", "lower", "than", "20", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "description" ], [ "of" ], [ "product" ], [ "that" ], [ "are" ], [ "of" ], [ "'" ], [ "cutlery" ], [ "'" ], [ "type" ], [ "and" ], [ "have" ], [ "daily", "hire", "cost" ], [ "lower" ], [ "than" ], [ "20" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "of", "IN" ], [ "'", "''" ], [ "cutlery", "NN" ], [ "'", "POS" ], [ "type", "NN" ], [ "and", "CC" ], [ "have", "VBP" ], [ "daily", "JJ" ], [ "hire", "NN" ], [ "cost", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ "?", "." ] ], "values": [ "20", "Cutlery" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(24) T(3) A(0) C(25) T(3) Filter(0) Filter(2) A(0) C(22) T(3) V(1) Filter(4) A(0) C(23) T(3) V(0)" }, { "db_id": "phone_market", "query": "SELECT count(*) FROM phone", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "phone" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "phone" ], "question": "How many phones are there?", "question_toks": [ "how", "many", "phone", "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": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "market id", "phone id", "num of stock" ], "table_names": [ "phone", "market", "phone market" ], "col_set": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "num of stock" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 2, "2": 2, "11": 11, "6": 6 }, "origin_question_toks": [ "How", "many", "phones", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "phone" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "phone", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "phone_market", "query": "SELECT Name FROM phone ORDER BY Price ASC", "query_toks": [ "SELECT", "Name", "FROM", "phone", "ORDER", "BY", "Price", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "phone", "order", "by", "price", "asc" ], "question": "List the names of phones in ascending order of price.", "question_toks": [ "list", "name", "of", "phone", "in", "ascending", "order", "of", "price", "." ], "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, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "market id", "phone id", "num of stock" ], "table_names": [ "phone", "market", "phone market" ], "col_set": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "num of stock" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 2, "2": 2, "11": 11, "6": 6 }, "origin_question_toks": [ "List", "the", "names", "of", "phones", "in", "ascending", "order", "of", "price", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "phone" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "price", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(1) T(0) Order(1) A(0) C(5) T(0)" }, { "db_id": "phone_market", "query": "SELECT Memory_in_G , Carrier FROM phone", "query_toks": [ "SELECT", "Memory_in_G", ",", "Carrier", "FROM", "phone" ], "query_toks_no_value": [ "select", "memory_in_g", ",", "carrier", "from", "phone" ], "question": "What are the memories and carriers of phones?", "question_toks": [ "what", "are", "memory", "and", "carrier", "of", "phone", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "market id", "phone id", "num of stock" ], "table_names": [ "phone", "market", "phone market" ], "col_set": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "num of stock" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 2, "2": 2, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "memories", "and", "carriers", "of", "phones", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "memory" ], [ "and" ], [ "carrier" ], [ "of" ], [ "phone" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "memory", "JJ" ], [ "and", "CC" ], [ "carrier", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0)" }, { "db_id": "phone_market", "query": "SELECT DISTINCT Carrier FROM phone WHERE Memory_in_G > 32", "query_toks": [ "SELECT", "DISTINCT", "Carrier", "FROM", "phone", "WHERE", "Memory_in_G", ">", "32" ], "query_toks_no_value": [ "select", "distinct", "carrier", "from", "phone", "where", "memory_in_g", ">", "value" ], "question": "List the distinct carriers of phones with memories bigger than 32.", "question_toks": [ "list", "distinct", "carrier", "of", "phone", "with", "memory", "bigger", "than", "32", "." ], "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": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 32.0, null ] ] }, "names": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "market id", "phone id", "num of stock" ], "table_names": [ "phone", "market", "phone market" ], "col_set": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "num of stock" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 2, "2": 2, "11": 11, "6": 6 }, "origin_question_toks": [ "List", "the", "distinct", "carriers", "of", "phones", "with", "memories", "bigger", "than", "32", "." ], "question_arg": [ [ "list" ], [ "distinct" ], [ "carrier" ], [ "of" ], [ "phone" ], [ "with" ], [ "memory" ], [ "bigger" ], [ "than" ], [ "32" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "distinct", "JJ" ], [ "carrier", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "with", "IN" ], [ "memory", "NN" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "32", "CD" ], [ ".", "." ] ], "values": [ "32" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(4) T(0) Filter(5) A(0) C(3) T(0) V(0)" }, { "db_id": "phone_market", "query": "SELECT Name FROM phone WHERE Carrier = \"Sprint\" OR Carrier = \"TMobile\"", "query_toks": [ "SELECT", "Name", "FROM", "phone", "WHERE", "Carrier", "=", "``", "Sprint", "''", "OR", "Carrier", "=", "``", "TMobile", "''" ], "query_toks_no_value": [ "select", "name", "from", "phone", "where", "carrier", "=", "value", "or", "carrier", "=", "value" ], "question": "Show the names of phones with carrier either \"Sprint\" or \"TMobile\".", "question_toks": [ "show", "name", "of", "phone", "with", "carrier", "either", "'", "sprint", "'", "or", "'", "tmobile", "'", "." ], "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, 4, false ], null ], "\"Sprint\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"TMobile\"", null ] ] }, "names": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "market id", "phone id", "num of stock" ], "table_names": [ "phone", "market", "phone market" ], "col_set": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "num of stock" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 2, "2": 2, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "phones", "with", "carrier", "either", "``", "Sprint", "''", "or", "``", "TMobile", "''", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "phone" ], [ "with" ], [ "carrier" ], [ "either" ], [ "'" ], [ "sprint" ], [ "'" ], [ "or" ], [ "'" ], [ "tmobile" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "with", "IN" ], [ "carrier", "NN" ], [ "either", "CC" ], [ "'", "''" ], [ "sprint", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "tmobile", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Sprint", "TMobile" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(1) Filter(2) A(0) C(4) T(0) V(0) Filter(2) A(0) C(4) T(0) V(1)" }, { "db_id": "phone_market", "query": "SELECT Carrier FROM phone ORDER BY Price DESC LIMIT 1", "query_toks": [ "SELECT", "Carrier", "FROM", "phone", "ORDER", "BY", "Price", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "carrier", "from", "phone", "order", "by", "price", "desc", "limit", "value" ], "question": "What is the carrier of the most expensive phone?", "question_toks": [ "what", "is", "carrier", "of", "most", "expensive", "phone", "?" ], "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": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "market id", "phone id", "num of stock" ], "table_names": [ "phone", "market", "phone market" ], "col_set": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "num of stock" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 2, "2": 2, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "carrier", "of", "the", "most", "expensive", "phone", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "carrier" ], [ "of" ], [ "most" ], [ "expensive" ], [ "phone" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "carrier", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "expensive", "JJ" ], [ "phone", "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": "phone_market", "query": "SELECT Carrier , COUNT(*) FROM phone GROUP BY Carrier", "query_toks": [ "SELECT", "Carrier", ",", "COUNT", "(", "*", ")", "FROM", "phone", "GROUP", "BY", "Carrier" ], "query_toks_no_value": [ "select", "carrier", ",", "count", "(", "*", ")", "from", "phone", "group", "by", "carrier" ], "question": "Show different carriers of phones together with the number of phones with each carrier.", "question_toks": [ "show", "different", "carrier", "of", "phone", "together", "with", "number", "of", "phone", "with", "each", "carrier", "." ], "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": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "market id", "phone id", "num of stock" ], "table_names": [ "phone", "market", "phone market" ], "col_set": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "num of stock" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 2, "2": 2, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "different", "carriers", "of", "phones", "together", "with", "the", "number", "of", "phones", "with", "each", "carrier", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "carrier" ], [ "of" ], [ "phone" ], [ "together" ], [ "with" ], [ "number" ], [ "of" ], [ "phone" ], [ "with" ], [ "each" ], [ "carrier" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "different", "JJ" ], [ "carrier", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "together", "RB" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "with", "IN" ], [ "each", "DT" ], [ "carrier", "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": "phone_market", "query": "SELECT Carrier FROM phone GROUP BY Carrier ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Carrier", "FROM", "phone", "GROUP", "BY", "Carrier", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "carrier", "from", "phone", "group", "by", "carrier", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the most frequently used carrier of the phones.", "question_toks": [ "show", "most", "frequently", "used", "carrier", "of", "phone", "." ], "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": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "market id", "phone id", "num of stock" ], "table_names": [ "phone", "market", "phone market" ], "col_set": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "num of stock" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 2, "2": 2, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "most", "frequently", "used", "carrier", "of", "the", "phones", "." ], "question_arg": [ [ "show" ], [ "most" ], [ "frequently" ], [ "used" ], [ "carrier" ], [ "of" ], [ "phone" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "most", "RBS" ], [ "frequently", "RB" ], [ "used", "VBN" ], [ "carrier", "NN" ], [ "of", "IN" ], [ "phone", "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": "phone_market", "query": "SELECT Carrier FROM phone WHERE Memory_in_G < 32 INTERSECT SELECT Carrier FROM phone WHERE Memory_in_G > 64", "query_toks": [ "SELECT", "Carrier", "FROM", "phone", "WHERE", "Memory_in_G", "<", "32", "INTERSECT", "SELECT", "Carrier", "FROM", "phone", "WHERE", "Memory_in_G", ">", "64" ], "query_toks_no_value": [ "select", "carrier", "from", "phone", "where", "memory_in_g", "<", "value", "intersect", "select", "carrier", "from", "phone", "where", "memory_in_g", ">", "value" ], "question": "Show the carriers that have both phones with memory smaller than 32 and phones with memory bigger than 64.", "question_toks": [ "show", "carrier", "that", "have", "both", "phone", "with", "memory", "smaller", "than", "32", "and", "phone", "with", "memory", "bigger", "than", "64", "." ], "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, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 64.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 3, false ], null ], 32.0, null ] ] }, "names": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "market id", "phone id", "num of stock" ], "table_names": [ "phone", "market", "phone market" ], "col_set": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "num of stock" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 2, "2": 2, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "carriers", "that", "have", "both", "phones", "with", "memory", "smaller", "than", "32", "and", "phones", "with", "memory", "bigger", "than", "64", "." ], "question_arg": [ [ "show" ], [ "carrier" ], [ "that" ], [ "have" ], [ "both" ], [ "phone" ], [ "with" ], [ "memory" ], [ "smaller" ], [ "than" ], [ "32" ], [ "and" ], [ "phone" ], [ "with" ], [ "memory" ], [ "bigger" ], [ "than" ], [ "64" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "carrier", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "phone", "NN" ], [ "with", "IN" ], [ "memory", "NN" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "32", "CD" ], [ "and", "CC" ], [ "phone", "NN" ], [ "with", "IN" ], [ "memory", "NN" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "64", "CD" ], [ ".", "." ] ], "values": [ "64", "32" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(4) A(0) C(3) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(5) A(0) C(3) T(0) V(0)" }, { "db_id": "phone_market", "query": "SELECT T3.Name , T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID", "query_toks": [ "SELECT", "T3.Name", ",", "T2.District", "FROM", "phone_market", "AS", "T1", "JOIN", "market", "AS", "T2", "ON", "T1.Market_ID", "=", "T2.Market_ID", "JOIN", "phone", "AS", "T3", "ON", "T1.Phone_ID", "=", "T3.Phone_ID" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "district", "from", "phone_market", "as", "t1", "join", "market", "as", "t2", "on", "t1", ".", "market_id", "=", "t2", ".", "market_id", "join", "phone", "as", "t3", "on", "t1", ".", "phone_id", "=", "t3", ".", "phone_id" ], "question": "Show the names of phones and the districts of markets they are on.", "question_toks": [ "show", "name", "of", "phone", "and", "district", "of", "market", "they", "are", "on", "." ], "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, 1, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "market id", "phone id", "num of stock" ], "table_names": [ "phone", "market", "phone market" ], "col_set": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "num of stock" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 2, "2": 2, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "phones", "and", "the", "districts", "of", "markets", "they", "are", "on", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "phone" ], [ "and" ], [ "district" ], [ "of" ], [ "market" ], [ "they" ], [ "are" ], [ "on" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "and", "CC" ], [ "district", "NN" ], [ "of", "IN" ], [ "market", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "on", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(0) A(0) C(7) T(1) Filter(18) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "phone_market", "query": "SELECT T3.Name , T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID ORDER BY T2.Ranking", "query_toks": [ "SELECT", "T3.Name", ",", "T2.District", "FROM", "phone_market", "AS", "T1", "JOIN", "market", "AS", "T2", "ON", "T1.Market_ID", "=", "T2.Market_ID", "JOIN", "phone", "AS", "T3", "ON", "T1.Phone_ID", "=", "T3.Phone_ID", "ORDER", "BY", "T2.Ranking" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "district", "from", "phone_market", "as", "t1", "join", "market", "as", "t2", "on", "t1", ".", "market_id", "=", "t2", ".", "market_id", "join", "phone", "as", "t3", "on", "t1", ".", "phone_id", "=", "t3", ".", "phone_id", "order", "by", "t2", ".", "ranking" ], "question": "Show the names of phones and the districts of markets they are on, in ascending order of the ranking of the market.", "question_toks": [ "show", "name", "of", "phone", "and", "district", "of", "market", "they", "are", "on", ",", "in", "ascending", "order", "of", "ranking", "of", "market", "." ], "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": [ "asc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "market id", "phone id", "num of stock" ], "table_names": [ "phone", "market", "phone market" ], "col_set": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "num of stock" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 2, "2": 2, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "phones", "and", "the", "districts", "of", "markets", "they", "are", "on", ",", "in", "ascending", "order", "of", "the", "ranking", "of", "the", "market", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "phone" ], [ "and" ], [ "district" ], [ "of" ], [ "market" ], [ "they" ], [ "are" ], [ "on" ], [ "," ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "ranking" ], [ "of" ], [ "market" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "and", "CC" ], [ "district", "NN" ], [ "of", "IN" ], [ "market", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "on", "IN" ], [ ",", "," ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "ranking", "VBG" ], [ "of", "IN" ], [ "market", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(1) T(0) A(0) C(7) 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(10) T(1)" }, { "db_id": "phone_market", "query": "SELECT T3.Name FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID WHERE T2.Num_of_shops > 50", "query_toks": [ "SELECT", "T3.Name", "FROM", "phone_market", "AS", "T1", "JOIN", "market", "AS", "T2", "ON", "T1.Market_ID", "=", "T2.Market_ID", "JOIN", "phone", "AS", "T3", "ON", "T1.Phone_ID", "=", "T3.Phone_ID", "WHERE", "T2.Num_of_shops", ">", "50" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "phone_market", "as", "t1", "join", "market", "as", "t2", "on", "t1", ".", "market_id", "=", "t2", ".", "market_id", "join", "phone", "as", "t3", "on", "t1", ".", "phone_id", "=", "t3", ".", "phone_id", "where", "t2", ".", "num_of_shops", ">", "value" ], "question": "Show the names of phones that are on market with number of shops greater than 50.", "question_toks": [ "show", "name", "of", "phone", "that", "are", "on", "market", "with", "number", "of", "shop", "greater", "than", "50", "." ], "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, 1, 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, 3, [ 0, [ 0, 9, false ], null ], 50.0, null ] ] }, "names": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "market id", "phone id", "num of stock" ], "table_names": [ "phone", "market", "phone market" ], "col_set": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "num of stock" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 2, "2": 2, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "phones", "that", "are", "on", "market", "with", "number", "of", "shops", "greater", "than", "50", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "phone" ], [ "that" ], [ "are" ], [ "on" ], [ "market" ], [ "with" ], [ "number" ], [ "num", "of", "shop" ], [ "greater" ], [ "than" ], [ "50" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "on", "IN" ], [ "market", "NN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "50", "CD" ], [ ".", "." ] ], "values": [ "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) 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": "phone_market", "query": "SELECT T2.Name , sum(T1.Num_of_stock) FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name", "query_toks": [ "SELECT", "T2.Name", ",", "sum", "(", "T1.Num_of_stock", ")", "FROM", "phone_market", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Phone_ID", "=", "T2.Phone_ID", "GROUP", "BY", "T2.Name" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "sum", "(", "t1", ".", "num_of_stock", ")", "from", "phone_market", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "phone_id", "=", "t2", ".", "phone_id", "group", "by", "t2", ".", "name" ], "question": "For each phone, show its names and total number of stocks.", "question_toks": [ "for", "each", "phone", ",", "show", "it", "name", "and", "total", "number", "of", "stock", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 4, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "market id", "phone id", "num of stock" ], "table_names": [ "phone", "market", "phone market" ], "col_set": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "num of stock" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 2, "2": 2, "11": 11, "6": 6 }, "origin_question_toks": [ "For", "each", "phone", ",", "show", "its", "names", "and", "total", "number", "of", "stocks", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "phone" ], [ "," ], [ "show" ], [ "it" ], [ "name" ], [ "and" ], [ "total" ], [ "number" ], [ "num", "of", "stock" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "phone", "NN" ], [ ",", "," ], [ "show", "VBP" ], [ "it", "PRP" ], [ "name", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "stock", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(0) A(4) C(11) T(2)" }, { "db_id": "phone_market", "query": "SELECT T2.Name FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name HAVING sum(T1.Num_of_stock) >= 2000 ORDER BY sum(T1.Num_of_stock) DESC", "query_toks": [ "SELECT", "T2.Name", "FROM", "phone_market", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Phone_ID", "=", "T2.Phone_ID", "GROUP", "BY", "T2.Name", "HAVING", "sum", "(", "T1.Num_of_stock", ")", ">", "=", "2000", "ORDER", "BY", "sum", "(", "T1.Num_of_stock", ")", "DESC" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "phone_market", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "phone_id", "=", "t2", ".", "phone_id", "group", "by", "t2", ".", "name", "having", "sum", "(", "t1", ".", "num_of_stock", ")", ">", "=", "value", "order", "by", "sum", "(", "t1", ".", "num_of_stock", ")", "desc" ], "question": "Show the names of phones that have total number of stocks bigger than 2000, in descending order of the total number of stocks.", "question_toks": [ "show", "name", "of", "phone", "that", "have", "total", "number", "of", "stock", "bigger", "than", "year", ",", "in", "descending", "order", "of", "total", "number", "of", "stock", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 5, [ 0, [ 4, 13, false ], null ], 2000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 2, 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": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "market id", "phone id", "num of stock" ], "table_names": [ "phone", "market", "phone market" ], "col_set": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "num of stock" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 2, "2": 2, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "phones", "that", "have", "total", "number", "of", "stocks", "bigger", "than", "2000", ",", "in", "descending", "order", "of", "the", "total", "number", "of", "stocks", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "phone" ], [ "that" ], [ "have" ], [ "total" ], [ "number" ], [ "num", "of", "stock" ], [ "bigger" ], [ "than" ], [ "year" ], [ "," ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "total" ], [ "number" ], [ "num", "of", "stock" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "stock", "NN" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "2000", "CD" ], [ ",", "," ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "stock", "NN" ], [ ".", "." ] ], "values": [ "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(18) A(0) C(2) T(0) Root(5) Sel(0) N(0) A(0) C(2) T(2) Filter(7) A(4) C(11) T(2) V(0)" }, { "db_id": "phone_market", "query": "SELECT Name FROM phone WHERE Phone_id NOT IN (SELECT Phone_ID FROM phone_market)", "query_toks": [ "SELECT", "Name", "FROM", "phone", "WHERE", "Phone_id", "NOT", "IN", "(", "SELECT", "Phone_ID", "FROM", "phone_market", ")" ], "query_toks_no_value": [ "select", "name", "from", "phone", "where", "phone_id", "not", "in", "(", "select", "phone_id", "from", "phone_market", ")" ], "question": "List the names of phones that are not on any market.", "question_toks": [ "list", "name", "of", "phone", "that", "are", "not", "on", "any", "market", "." ], "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": [ [ true, 8, [ 0, [ 0, 2, 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": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "market id", "phone id", "num of stock" ], "table_names": [ "phone", "market", "phone market" ], "col_set": [ "*", "name", "phone id", "memory in g", "carrier", "price", "market id", "district", "num of employees", "num of shops", "ranking", "num of stock" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 2, "2": 2, "11": 11, "6": 6 }, "origin_question_toks": [ "List", "the", "names", "of", "phones", "that", "are", "not", "on", "any", "market", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "phone" ], [ "that" ], [ "are" ], [ "not" ], [ "on" ], [ "any" ], [ "market" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "on", "IN" ], [ "any", "DT" ], [ "market", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(19) A(0) C(2) T(0) Root(5) Sel(0) N(0) A(0) C(2) T(2)" }, { "db_id": "gas_company", "query": "SELECT count(*) FROM company", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "company" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "company" ], "question": "How many gas companies are there?", "question_toks": [ "how", "many", "gas", "company", "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": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "How", "many", "gas", "companies", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "gas" ], [ "company" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "gas", "NN" ], [ "company", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "gas_company", "query": "SELECT count(*) FROM company", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "company" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "company" ], "question": "What is the total number of companies?", "question_toks": [ "what", "is", "total", "number", "of", "company", "?" ], "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": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "companies", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "company" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "gas_company", "query": "SELECT company , rank FROM company ORDER BY Sales_billion DESC", "query_toks": [ "SELECT", "company", ",", "rank", "FROM", "company", "ORDER", "BY", "Sales_billion", "DESC" ], "query_toks_no_value": [ "select", "company", ",", "rank", "from", "company", "order", "by", "sales_billion", "desc" ], "question": "List the company name and rank for all companies in the decreasing order of their sales.", "question_toks": [ "list", "company", "name", "and", "rank", "for", "all", "company", "in", "decreasing", "order", "of", "their", "sale", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "List", "the", "company", "name", "and", "rank", "for", "all", "companies", "in", "the", "decreasing", "order", "of", "their", "sales", "." ], "question_arg": [ [ "list" ], [ "company" ], [ "name" ], [ "and" ], [ "rank" ], [ "for" ], [ "all" ], [ "company" ], [ "in" ], [ "decreasing" ], [ "order" ], [ "of" ], [ "their" ], [ "sale" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "company", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "rank", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "company", "NN" ], [ "in", "IN" ], [ "decreasing", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "sale", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Order(0) A(0) C(6) T(0)" }, { "db_id": "gas_company", "query": "SELECT company , rank FROM company ORDER BY Sales_billion DESC", "query_toks": [ "SELECT", "company", ",", "rank", "FROM", "company", "ORDER", "BY", "Sales_billion", "DESC" ], "query_toks_no_value": [ "select", "company", ",", "rank", "from", "company", "order", "by", "sales_billion", "desc" ], "question": "What is the name and rank of every company ordered by descending number of sales?", "question_toks": [ "what", "is", "name", "and", "rank", "of", "every", "company", "ordered", "by", "descending", "number", "of", "sale", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "rank", "of", "every", "company", "ordered", "by", "descending", "number", "of", "sales", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "rank" ], [ "of" ], [ "every" ], [ "company" ], [ "ordered" ], [ "by" ], [ "descending" ], [ "number" ], [ "of" ], [ "sale" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "rank", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "company", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "descending", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "sale", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Order(0) A(0) C(6) T(0)" }, { "db_id": "gas_company", "query": "SELECT company , main_industry FROM company WHERE headquarters != 'USA'", "query_toks": [ "SELECT", "company", ",", "main_industry", "FROM", "company", "WHERE", "headquarters", "!", "=", "'USA", "'" ], "query_toks_no_value": [ "select", "company", ",", "main_industry", "from", "company", "where", "headquarters", "!", "=", "value" ], "question": "Show the company name and the main industry for all companies whose headquarters are not from USA.", "question_toks": [ "show", "company", "name", "and", "main", "industry", "for", "all", "company", "whose", "headquarters", "are", "not", "from", "usa", "." ], "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, 4, false ], null ], "\"USA\"", null ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "Show", "the", "company", "name", "and", "the", "main", "industry", "for", "all", "companies", "whose", "headquarters", "are", "not", "from", "USA", "." ], "question_arg": [ [ "show" ], [ "company" ], [ "name" ], [ "and" ], [ "main", "industry" ], [ "for" ], [ "all" ], [ "company" ], [ "whose" ], [ "headquarters" ], [ "are" ], [ "not" ], [ "from" ], [ "usa" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "company", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "main", "JJ" ], [ "industry", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "company", "NN" ], [ "whose", "WP$" ], [ "headquarters", "NNS" ], [ "are", "VBP" ], [ "not", "RB" ], [ "from", "IN" ], [ "usa", "JJ" ], [ ".", "." ] ], "values": [ "USA" ], "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(4) T(0) V(0)" }, { "db_id": "gas_company", "query": "SELECT company , main_industry FROM company WHERE headquarters != 'USA'", "query_toks": [ "SELECT", "company", ",", "main_industry", "FROM", "company", "WHERE", "headquarters", "!", "=", "'USA", "'" ], "query_toks_no_value": [ "select", "company", ",", "main_industry", "from", "company", "where", "headquarters", "!", "=", "value" ], "question": "What are the companies and main industries of all companies that are not headquartered in the United States?", "question_toks": [ "what", "are", "company", "and", "main", "industry", "of", "all", "company", "that", "are", "not", "headquartered", "in", "united", "state", "?" ], "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, 4, false ], null ], "\"USA\"", null ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "companies", "and", "main", "industries", "of", "all", "companies", "that", "are", "not", "headquartered", "in", "the", "United", "States", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "company" ], [ "and" ], [ "main", "industry" ], [ "of" ], [ "all" ], [ "company" ], [ "that" ], [ "are" ], [ "not" ], [ "headquartered" ], [ "in" ], [ "united" ], [ "state" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "company", "NN" ], [ "and", "CC" ], [ "main", "JJ" ], [ "industry", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "company", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "headquartered", "VBN" ], [ "in", "IN" ], [ "united", "JJ" ], [ "state", "NN" ], [ "?", "." ] ], "values": [ "USA" ], "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(4) T(0) V(0)" }, { "db_id": "gas_company", "query": "SELECT company , headquarters FROM company ORDER BY market_value DESC", "query_toks": [ "SELECT", "company", ",", "headquarters", "FROM", "company", "ORDER", "BY", "market_value", "DESC" ], "query_toks_no_value": [ "select", "company", ",", "headquarters", "from", "company", "order", "by", "market_value", "desc" ], "question": "Show all company names and headquarters in the descending order of market value.", "question_toks": [ "show", "all", "company", "name", "and", "headquarters", "in", "descending", "order", "of", "market", "value", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "Show", "all", "company", "names", "and", "headquarters", "in", "the", "descending", "order", "of", "market", "value", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "company" ], [ "name" ], [ "and" ], [ "headquarters" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "market", "value" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "company", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "headquarters", "NNS" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "market", "NN" ], [ "value", "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(0) A(0) C(9) T(0)" }, { "db_id": "gas_company", "query": "SELECT company , headquarters FROM company ORDER BY market_value DESC", "query_toks": [ "SELECT", "company", ",", "headquarters", "FROM", "company", "ORDER", "BY", "market_value", "DESC" ], "query_toks_no_value": [ "select", "company", ",", "headquarters", "from", "company", "order", "by", "market_value", "desc" ], "question": "What are the names and headquarters of all companies ordered by descending market value?", "question_toks": [ "what", "are", "name", "and", "headquarters", "of", "all", "company", "ordered", "by", "descending", "market", "value", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "headquarters", "of", "all", "companies", "ordered", "by", "descending", "market", "value", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "headquarters" ], [ "of" ], [ "all" ], [ "company" ], [ "ordered" ], [ "by" ], [ "descending" ], [ "market", "value" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "headquarters", "NNS" ], [ "of", "IN" ], [ "all", "DT" ], [ "company", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "descending", "VBG" ], [ "market", "NN" ], [ "value", "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(0) A(0) C(9) T(0)" }, { "db_id": "gas_company", "query": "SELECT min(market_value) , max(market_value) , avg(market_value) FROM company", "query_toks": [ "SELECT", "min", "(", "market_value", ")", ",", "max", "(", "market_value", ")", ",", "avg", "(", "market_value", ")", "FROM", "company" ], "query_toks_no_value": [ "select", "min", "(", "market_value", ")", ",", "max", "(", "market_value", ")", ",", "avg", "(", "market_value", ")", "from", "company" ], "question": "Show minimum, maximum, and average market value for all companies.", "question_toks": [ "show", "minimum", ",", "maximum", ",", "and", "average", "market", "value", "for", "all", "company", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "Show", "minimum", ",", "maximum", ",", "and", "average", "market", "value", "for", "all", "companies", "." ], "question_arg": [ [ "show" ], [ "minimum" ], [ "," ], [ "maximum" ], [ "," ], [ "and" ], [ "average" ], [ "market", "value" ], [ "for" ], [ "all" ], [ "company" ], [ "." ] ], "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" ], [ "market", "NN" ], [ "value", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "company", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(2) C(9) T(0) A(1) C(9) T(0) A(5) C(9) T(0)" }, { "db_id": "gas_company", "query": "SELECT min(market_value) , max(market_value) , avg(market_value) FROM company", "query_toks": [ "SELECT", "min", "(", "market_value", ")", ",", "max", "(", "market_value", ")", ",", "avg", "(", "market_value", ")", "FROM", "company" ], "query_toks_no_value": [ "select", "min", "(", "market_value", ")", ",", "max", "(", "market_value", ")", ",", "avg", "(", "market_value", ")", "from", "company" ], "question": "What is the minimum, maximum, and average market value for every company?", "question_toks": [ "what", "is", "minimum", ",", "maximum", ",", "and", "average", "market", "value", "for", "every", "company", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "minimum", ",", "maximum", ",", "and", "average", "market", "value", "for", "every", "company", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "minimum" ], [ "," ], [ "maximum" ], [ "," ], [ "and" ], [ "average" ], [ "market", "value" ], [ "for" ], [ "every" ], [ "company" ], [ "?" ] ], "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" ], [ "market", "NN" ], [ "value", "NN" ], [ "for", "IN" ], [ "every", "DT" ], [ "company", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(2) C(9) T(0) A(1) C(9) T(0) A(5) C(9) T(0)" }, { "db_id": "gas_company", "query": "SELECT DISTINCT main_industry FROM company", "query_toks": [ "SELECT", "DISTINCT", "main_industry", "FROM", "company" ], "query_toks_no_value": [ "select", "distinct", "main_industry", "from", "company" ], "question": "Show all main industry for all companies.", "question_toks": [ "show", "all", "main", "industry", "for", "all", "company", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "Show", "all", "main", "industry", "for", "all", "companies", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "main", "industry" ], [ "for" ], [ "all" ], [ "company" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "main", "JJ" ], [ "industry", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "company", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(5) T(0)" }, { "db_id": "gas_company", "query": "SELECT DISTINCT main_industry FROM company", "query_toks": [ "SELECT", "DISTINCT", "main_industry", "FROM", "company" ], "query_toks_no_value": [ "select", "distinct", "main_industry", "from", "company" ], "question": "What are the different main industries for all companies?", "question_toks": [ "what", "are", "different", "main", "industry", "for", "all", "company", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "different", "main", "industries", "for", "all", "companies", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "main", "industry" ], [ "for" ], [ "all" ], [ "company" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "main", "JJ" ], [ "industry", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "company", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(5) T(0)" }, { "db_id": "gas_company", "query": "SELECT headquarters , count(*) FROM company GROUP BY headquarters", "query_toks": [ "SELECT", "headquarters", ",", "count", "(", "*", ")", "FROM", "company", "GROUP", "BY", "headquarters" ], "query_toks_no_value": [ "select", "headquarters", ",", "count", "(", "*", ")", "from", "company", "group", "by", "headquarters" ], "question": "List all headquarters and the number of companies in each headquarter.", "question_toks": [ "list", "all", "headquarters", "and", "number", "of", "company", "in", "each", "headquarter", "." ], "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": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "List", "all", "headquarters", "and", "the", "number", "of", "companies", "in", "each", "headquarter", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "headquarters" ], [ "and" ], [ "number" ], [ "of" ], [ "company" ], [ "in" ], [ "each" ], [ "headquarter" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "headquarters", "NNS" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "headquarter", "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": "gas_company", "query": "SELECT headquarters , count(*) FROM company GROUP BY headquarters", "query_toks": [ "SELECT", "headquarters", ",", "count", "(", "*", ")", "FROM", "company", "GROUP", "BY", "headquarters" ], "query_toks_no_value": [ "select", "headquarters", ",", "count", "(", "*", ")", "from", "company", "group", "by", "headquarters" ], "question": "For each headquarter, what are the headquarter and how many companies are centered there?", "question_toks": [ "for", "each", "headquarter", ",", "what", "are", "headquarter", "and", "how", "many", "company", "are", "centered", "there", "?" ], "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": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "For", "each", "headquarter", ",", "what", "are", "the", "headquarter", "and", "how", "many", "companies", "are", "centered", "there", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "headquarter" ], [ "," ], [ "what" ], [ "are" ], [ "headquarter" ], [ "and" ], [ "how" ], [ "many" ], [ "company" ], [ "are" ], [ "centered" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "headquarter", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "are", "VBP" ], [ "headquarter", "JJ" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "company", "NN" ], [ "are", "VBP" ], [ "centered", "VBN" ], [ "there", "RB" ], [ "?", "." ] ], "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": "gas_company", "query": "SELECT main_industry , sum(market_value) FROM company GROUP BY main_industry", "query_toks": [ "SELECT", "main_industry", ",", "sum", "(", "market_value", ")", "FROM", "company", "GROUP", "BY", "main_industry" ], "query_toks_no_value": [ "select", "main_industry", ",", "sum", "(", "market_value", ")", "from", "company", "group", "by", "main_industry" ], "question": "Show all main industry and total market value in each industry.", "question_toks": [ "show", "all", "main", "industry", "and", "total", "market", "value", "in", "each", "industry", "." ], "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 ] ], [ 4, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "Show", "all", "main", "industry", "and", "total", "market", "value", "in", "each", "industry", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "main", "industry" ], [ "and" ], [ "total" ], [ "market", "value" ], [ "in" ], [ "each" ], [ "industry" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "main", "JJ" ], [ "industry", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "market", "NN" ], [ "value", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "industry", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(5) T(0) A(4) C(9) T(0)" }, { "db_id": "gas_company", "query": "SELECT main_industry , sum(market_value) FROM company GROUP BY main_industry", "query_toks": [ "SELECT", "main_industry", ",", "sum", "(", "market_value", ")", "FROM", "company", "GROUP", "BY", "main_industry" ], "query_toks_no_value": [ "select", "main_industry", ",", "sum", "(", "market_value", ")", "from", "company", "group", "by", "main_industry" ], "question": "What are the main indstries and total market value for each industry?", "question_toks": [ "what", "are", "main", "indstries", "and", "total", "market", "value", "for", "each", "industry", "?" ], "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 ] ], [ 4, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "main", "indstries", "and", "total", "market", "value", "for", "each", "industry", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "main" ], [ "indstries" ], [ "and" ], [ "total" ], [ "market", "value" ], [ "for" ], [ "each" ], [ "industry" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "main", "JJ" ], [ "indstries", "NNS" ], [ "and", "CC" ], [ "total", "JJ" ], [ "market", "NN" ], [ "value", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "industry", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(5) T(0) A(4) C(9) T(0)" }, { "db_id": "gas_company", "query": "SELECT main_industry , count(*) FROM company GROUP BY main_industry ORDER BY sum(market_value) DESC LIMIT 1", "query_toks": [ "SELECT", "main_industry", ",", "count", "(", "*", ")", "FROM", "company", "GROUP", "BY", "main_industry", "ORDER", "BY", "sum", "(", "market_value", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "main_industry", ",", "count", "(", "*", ")", "from", "company", "group", "by", "main_industry", "order", "by", "sum", "(", "market_value", ")", "desc", "limit", "value" ], "question": "List the main industry with highest total market value and its number of companies.", "question_toks": [ "list", "main", "industry", "with", "highest", "total", "market", "value", "and", "it", "number", "of", "company", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "List", "the", "main", "industry", "with", "highest", "total", "market", "value", "and", "its", "number", "of", "companies", "." ], "question_arg": [ [ "list" ], [ "main", "industry" ], [ "with" ], [ "highest" ], [ "total" ], [ "market", "value" ], [ "and" ], [ "it" ], [ "number" ], [ "of" ], [ "company" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "main", "JJ" ], [ "industry", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "total", "JJ" ], [ "market", "NN" ], [ "value", "NN" ], [ "and", "CC" ], [ "it", "PRP" ], [ "number", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(5) T(0) A(3) C(0) T(0) Sup(0) A(4) C(9) T(0)" }, { "db_id": "gas_company", "query": "SELECT main_industry , count(*) FROM company GROUP BY main_industry ORDER BY sum(market_value) DESC LIMIT 1", "query_toks": [ "SELECT", "main_industry", ",", "count", "(", "*", ")", "FROM", "company", "GROUP", "BY", "main_industry", "ORDER", "BY", "sum", "(", "market_value", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "main_industry", ",", "count", "(", "*", ")", "from", "company", "group", "by", "main_industry", "order", "by", "sum", "(", "market_value", ")", "desc", "limit", "value" ], "question": "For each main industry, what is the total number of companies for the industry with the highest total market value?", "question_toks": [ "for", "each", "main", "industry", ",", "what", "is", "total", "number", "of", "company", "for", "industry", "with", "highest", "total", "market", "value", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "For", "each", "main", "industry", ",", "what", "is", "the", "total", "number", "of", "companies", "for", "the", "industry", "with", "the", "highest", "total", "market", "value", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "main", "industry" ], [ "," ], [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "company" ], [ "for" ], [ "industry" ], [ "with" ], [ "highest" ], [ "total" ], [ "market", "value" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "main", "JJ" ], [ "industry", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "for", "IN" ], [ "industry", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "total", "JJ" ], [ "market", "NN" ], [ "value", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(5) T(0) A(3) C(0) T(0) Sup(0) A(4) C(9) T(0)" }, { "db_id": "gas_company", "query": "SELECT headquarters FROM company WHERE main_industry = 'Banking' GROUP BY headquarters HAVING count(*) >= 2", "query_toks": [ "SELECT", "headquarters", "FROM", "company", "WHERE", "main_industry", "=", "'Banking", "'", "GROUP", "BY", "headquarters", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "headquarters", "from", "company", "where", "main_industry", "=", "value", "group", "by", "headquarters", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show headquarters with at least two companies in the banking industry.", "question_toks": [ "show", "headquarters", "with", "at", "least", "two", "company", "in", "banking", "industry", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 5, [ 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, 2, [ 0, [ 0, 5, false ], null ], "\"Banking\"", null ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "Show", "headquarters", "with", "at", "least", "two", "companies", "in", "the", "banking", "industry", "." ], "question_arg": [ [ "show" ], [ "headquarters" ], [ "with" ], [ "at" ], [ "least" ], [ "two" ], [ "company" ], [ "in" ], [ "banking" ], [ "industry" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "headquarters", "VBZ" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "company", "NN" ], [ "in", "IN" ], [ "banking", "NN" ], [ "industry", "NN" ], [ ".", "." ] ], "values": [ "Banking", "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(0) Filter(2) A(0) C(5) T(0) V(0) Filter(7) A(3) C(0) T(0) V(1)" }, { "db_id": "gas_company", "query": "SELECT headquarters FROM company WHERE main_industry = 'Banking' GROUP BY headquarters HAVING count(*) >= 2", "query_toks": [ "SELECT", "headquarters", "FROM", "company", "WHERE", "main_industry", "=", "'Banking", "'", "GROUP", "BY", "headquarters", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "headquarters", "from", "company", "where", "main_industry", "=", "value", "group", "by", "headquarters", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the headquarters with at least two companies in the banking industry?", "question_toks": [ "what", "are", "headquarters", "with", "at", "least", "two", "company", "in", "banking", "industry", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 5, [ 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, 2, [ 0, [ 0, 5, false ], null ], "\"Banking\"", null ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "headquarters", "with", "at", "least", "two", "companies", "in", "the", "banking", "industry", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "headquarters" ], [ "with" ], [ "at" ], [ "least" ], [ "two" ], [ "company" ], [ "in" ], [ "banking" ], [ "industry" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "headquarters", "NNS" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "company", "NN" ], [ "in", "IN" ], [ "banking", "NN" ], [ "industry", "NN" ], [ "?", "." ] ], "values": [ "Banking", "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(0) Filter(2) A(0) C(5) T(0) V(0) Filter(7) A(3) C(0) T(0) V(1)" }, { "db_id": "gas_company", "query": "SELECT station_id , LOCATION , manager_name FROM gas_station ORDER BY open_year", "query_toks": [ "SELECT", "station_id", ",", "LOCATION", ",", "manager_name", "FROM", "gas_station", "ORDER", "BY", "open_year" ], "query_toks_no_value": [ "select", "station_id", ",", "location", ",", "manager_name", "from", "gas_station", "order", "by", "open_year" ], "question": "Show gas station id, location, and manager_name for all gas stations ordered by open year.", "question_toks": [ "show", "gas", "station", "id", ",", "location", ",", "and", "manager_name", "for", "all", "gas", "station", "ordered", "by", "open", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 11, 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": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "Show", "gas", "station", "id", ",", "location", ",", "and", "manager_name", "for", "all", "gas", "stations", "ordered", "by", "open", "year", "." ], "question_arg": [ [ "show" ], [ "gas", "station" ], [ "id" ], [ "," ], [ "location" ], [ "," ], [ "and" ], [ "manager_name" ], [ "for" ], [ "all" ], [ "gas", "station" ], [ "ordered" ], [ "by" ], [ "open", "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "gas", "NN" ], [ "station", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "location", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "manager_name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "gas", "NN" ], [ "station", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "open", "JJ" ], [ "year", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(10) T(1) A(0) C(12) T(1) A(0) C(13) T(1) Order(1) A(0) C(11) T(1)" }, { "db_id": "gas_company", "query": "SELECT station_id , LOCATION , manager_name FROM gas_station ORDER BY open_year", "query_toks": [ "SELECT", "station_id", ",", "LOCATION", ",", "manager_name", "FROM", "gas_station", "ORDER", "BY", "open_year" ], "query_toks_no_value": [ "select", "station_id", ",", "location", ",", "manager_name", "from", "gas_station", "order", "by", "open_year" ], "question": "What are the gas station ids, locations, and manager names for the gas stations ordered by opening year?", "question_toks": [ "what", "are", "gas", "station", "id", ",", "location", ",", "and", "manager", "name", "for", "gas", "station", "ordered", "by", "opening", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 11, 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": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "gas", "station", "ids", ",", "locations", ",", "and", "manager", "names", "for", "the", "gas", "stations", "ordered", "by", "opening", "year", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "gas", "station" ], [ "id" ], [ "," ], [ "location" ], [ "," ], [ "and" ], [ "manager", "name" ], [ "for" ], [ "gas", "station" ], [ "ordered" ], [ "by" ], [ "opening" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "gas", "NN" ], [ "station", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "location", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "manager", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "gas", "NN" ], [ "station", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "opening", "VBG" ], [ "year", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(10) T(1) A(0) C(12) T(1) A(0) C(13) T(1) Order(1) A(0) C(11) T(1)" }, { "db_id": "gas_company", "query": "SELECT count(*) FROM gas_station WHERE open_year BETWEEN 2000 AND 2005", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "gas_station", "WHERE", "open_year", "BETWEEN", "2000", "AND", "2005" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "gas_station", "where", "open_year", "between", "value", "and", "value" ], "question": "How many gas station are opened between 2000 and 2005?", "question_toks": [ "how", "many", "gas", "station", "are", "opened", "between", "year", "and", "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, 1, [ 0, [ 0, 11, false ], null ], 2000.0, 2005.0 ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "How", "many", "gas", "station", "are", "opened", "between", "2000", "and", "2005", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "gas", "station" ], [ "are" ], [ "opened" ], [ "between" ], [ "year" ], [ "and" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "gas", "NN" ], [ "station", "NN" ], [ "are", "VBP" ], [ "opened", "VBN" ], [ "between", "IN" ], [ "2000", "CD" ], [ "and", "CC" ], [ "2005", "CD" ], [ "?", "." ] ], "values": [ "2005", "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(8) A(0) C(11) T(1) V(1) V(0)" }, { "db_id": "gas_company", "query": "SELECT count(*) FROM gas_station WHERE open_year BETWEEN 2000 AND 2005", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "gas_station", "WHERE", "open_year", "BETWEEN", "2000", "AND", "2005" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "gas_station", "where", "open_year", "between", "value", "and", "value" ], "question": "What is the total number of gas stations that opened between 2000 and 2005?", "question_toks": [ "what", "is", "total", "number", "of", "gas", "station", "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, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 11, false ], null ], 2000.0, 2005.0 ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "gas", "stations", "that", "opened", "between", "2000", "and", "2005", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "gas", "station" ], [ "that" ], [ "opened" ], [ "between" ], [ "year" ], [ "and" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "gas", "NN" ], [ "station", "NN" ], [ "that", "WDT" ], [ "opened", "VBD" ], [ "between", "IN" ], [ "2000", "CD" ], [ "and", "CC" ], [ "2005", "CD" ], [ "?", "." ] ], "values": [ "2005", "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(8) A(0) C(11) T(1) V(1) V(0)" }, { "db_id": "gas_company", "query": "SELECT LOCATION , count(*) FROM gas_station GROUP BY LOCATION ORDER BY count(*)", "query_toks": [ "SELECT", "LOCATION", ",", "count", "(", "*", ")", "FROM", "gas_station", "GROUP", "BY", "LOCATION", "ORDER", "BY", "count", "(", "*", ")" ], "query_toks_no_value": [ "select", "location", ",", "count", "(", "*", ")", "from", "gas_station", "group", "by", "location", "order", "by", "count", "(", "*", ")" ], "question": "Show all locations and the number of gas stations in each location ordered by the count.", "question_toks": [ "show", "all", "location", "and", "number", "of", "gas", "station", "in", "each", "location", "ordered", "by", "count", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "Show", "all", "locations", "and", "the", "number", "of", "gas", "stations", "in", "each", "location", "ordered", "by", "the", "count", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "location" ], [ "and" ], [ "number" ], [ "of" ], [ "gas", "station" ], [ "in" ], [ "each" ], [ "location" ], [ "ordered" ], [ "by" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "location", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "gas", "NN" ], [ "station", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "location", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "count", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(12) T(1) A(3) C(0) T(1) Order(1) A(3) C(0) T(1)" }, { "db_id": "gas_company", "query": "SELECT LOCATION , count(*) FROM gas_station GROUP BY LOCATION ORDER BY count(*)", "query_toks": [ "SELECT", "LOCATION", ",", "count", "(", "*", ")", "FROM", "gas_station", "GROUP", "BY", "LOCATION", "ORDER", "BY", "count", "(", "*", ")" ], "query_toks_no_value": [ "select", "location", ",", "count", "(", "*", ")", "from", "gas_station", "group", "by", "location", "order", "by", "count", "(", "*", ")" ], "question": "For each location, how many gas stations are there in order?", "question_toks": [ "for", "each", "location", ",", "how", "many", "gas", "station", "are", "there", "in", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "For", "each", "location", ",", "how", "many", "gas", "stations", "are", "there", "in", "order", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "location" ], [ "," ], [ "how" ], [ "many" ], [ "gas", "station" ], [ "are" ], [ "there" ], [ "in" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "location", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "gas", "NN" ], [ "station", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(12) T(1) A(3) C(0) T(1) Order(1) A(3) C(0) T(1)" }, { "db_id": "gas_company", "query": "SELECT headquarters FROM company WHERE main_industry = 'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry = 'Oil and gas'", "query_toks": [ "SELECT", "headquarters", "FROM", "company", "WHERE", "main_industry", "=", "'Banking", "'", "INTERSECT", "SELECT", "headquarters", "FROM", "company", "WHERE", "main_industry", "=", "'Oil", "and", "gas", "'" ], "query_toks_no_value": [ "select", "headquarters", "from", "company", "where", "main_industry", "=", "value", "intersect", "select", "headquarters", "from", "company", "where", "main_industry", "=", "value" ], "question": "Show all headquarters with both a company in banking industry and a company in Oil and gas.", "question_toks": [ "show", "all", "headquarters", "with", "both", "a", "company", "in", "banking", "industry", "and", "a", "company", "in", "oil", "and", "gas", "." ], "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, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Oil and gas\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Banking\"", null ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "Show", "all", "headquarters", "with", "both", "a", "company", "in", "banking", "industry", "and", "a", "company", "in", "Oil", "and", "gas", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "headquarters" ], [ "with" ], [ "both" ], [ "a" ], [ "company" ], [ "in" ], [ "banking" ], [ "industry" ], [ "and" ], [ "a" ], [ "company" ], [ "in" ], [ "oil" ], [ "and" ], [ "gas" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "headquarters", "NNS" ], [ "with", "IN" ], [ "both", "DT" ], [ "a", "DT" ], [ "company", "NN" ], [ "in", "IN" ], [ "banking", "NN" ], [ "industry", "NN" ], [ "and", "CC" ], [ "a", "DT" ], [ "company", "NN" ], [ "in", "IN" ], [ "oil", "NN" ], [ "and", "CC" ], [ "gas", "NN" ], [ ".", "." ] ], "values": [ "Banking", "Oil and gas" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(5) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "gas_company", "query": "SELECT headquarters FROM company WHERE main_industry = 'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry = 'Oil and gas'", "query_toks": [ "SELECT", "headquarters", "FROM", "company", "WHERE", "main_industry", "=", "'Banking", "'", "INTERSECT", "SELECT", "headquarters", "FROM", "company", "WHERE", "main_industry", "=", "'Oil", "and", "gas", "'" ], "query_toks_no_value": [ "select", "headquarters", "from", "company", "where", "main_industry", "=", "value", "intersect", "select", "headquarters", "from", "company", "where", "main_industry", "=", "value" ], "question": "What are the headquarters that have both a company in the banking and 'oil and gas' industries?", "question_toks": [ "what", "are", "headquarters", "that", "have", "both", "a", "company", "in", "banking", "and", "'", "oil", "and", "gas", "'", "industry", "?" ], "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, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Oil and gas\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Banking\"", null ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "headquarters", "that", "have", "both", "a", "company", "in", "the", "banking", "and", "'oil", "and", "gas", "'", "industries", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "headquarters" ], [ "that" ], [ "have" ], [ "both" ], [ "a" ], [ "company" ], [ "in" ], [ "banking" ], [ "and" ], [ "'" ], [ "oil" ], [ "and" ], [ "gas" ], [ "'" ], [ "industry" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "headquarters", "NNS" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "a", "DT" ], [ "company", "NN" ], [ "in", "IN" ], [ "banking", "NN" ], [ "and", "CC" ], [ "'", "POS" ], [ "oil", "NN" ], [ "and", "CC" ], [ "gas", "NN" ], [ "'", "''" ], [ "industry", "NN" ], [ "?", "." ] ], "values": [ "Banking", "Oil and gas", "oil and gas" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(5) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "gas_company", "query": "SELECT headquarters FROM company EXCEPT SELECT headquarters FROM company WHERE main_industry = 'Banking'", "query_toks": [ "SELECT", "headquarters", "FROM", "company", "EXCEPT", "SELECT", "headquarters", "FROM", "company", "WHERE", "main_industry", "=", "'Banking", "'" ], "query_toks_no_value": [ "select", "headquarters", "from", "company", "except", "select", "headquarters", "from", "company", "where", "main_industry", "=", "value" ], "question": "Show all headquarters without a company in banking industry.", "question_toks": [ "show", "all", "headquarters", "without", "a", "company", "in", "banking", "industry", "." ], "sql": { "except": { "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, 5, false ], null ], "\"Banking\"", 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": [] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "Show", "all", "headquarters", "without", "a", "company", "in", "banking", "industry", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "headquarters" ], [ "without" ], [ "a" ], [ "company" ], [ "in" ], [ "banking" ], [ "industry" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "headquarters", "NNS" ], [ "without", "IN" ], [ "a", "DT" ], [ "company", "NN" ], [ "in", "IN" ], [ "banking", "NN" ], [ "industry", "NN" ], [ ".", "." ] ], "values": [ "Banking" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(4) T(0) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "gas_company", "query": "SELECT headquarters FROM company EXCEPT SELECT headquarters FROM company WHERE main_industry = 'Banking'", "query_toks": [ "SELECT", "headquarters", "FROM", "company", "EXCEPT", "SELECT", "headquarters", "FROM", "company", "WHERE", "main_industry", "=", "'Banking", "'" ], "query_toks_no_value": [ "select", "headquarters", "from", "company", "except", "select", "headquarters", "from", "company", "where", "main_industry", "=", "value" ], "question": "What are the headquarters without companies that are in the banking industry?", "question_toks": [ "what", "are", "headquarters", "without", "company", "that", "are", "in", "banking", "industry", "?" ], "sql": { "except": { "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, 5, false ], null ], "\"Banking\"", 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": [] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "headquarters", "without", "companies", "that", "are", "in", "the", "banking", "industry", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "headquarters" ], [ "without" ], [ "company" ], [ "that" ], [ "are" ], [ "in" ], [ "banking" ], [ "industry" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "headquarters", "NNS" ], [ "without", "IN" ], [ "company", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "banking", "VBG" ], [ "industry", "NN" ], [ "?", "." ] ], "values": [ "Banking" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(4) T(0) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "gas_company", "query": "SELECT T2.company , count(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id", "query_toks": [ "SELECT", "T2.company", ",", "count", "(", "*", ")", "FROM", "station_company", "AS", "T1", "JOIN", "company", "AS", "T2", "ON", "T1.company_id", "=", "T2.company_id", "GROUP", "BY", "T1.company_id" ], "query_toks_no_value": [ "select", "t2", ".", "company", ",", "count", "(", "*", ")", "from", "station_company", "as", "t1", "join", "company", "as", "t2", "on", "t1", ".", "company_id", "=", "t2", ".", "company_id", "group", "by", "t1", ".", "company_id" ], "question": "Show the company name with the number of gas station.", "question_toks": [ "show", "company", "name", "with", "number", "of", "gas", "station", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 17, 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": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "Show", "the", "company", "name", "with", "the", "number", "of", "gas", "station", "." ], "question_arg": [ [ "show" ], [ "company" ], [ "name" ], [ "with" ], [ "number" ], [ "of" ], [ "gas", "station" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "company", "NN" ], [ "name", "NN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "gas", "NN" ], [ "station", "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": "gas_company", "query": "SELECT T2.company , count(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id", "query_toks": [ "SELECT", "T2.company", ",", "count", "(", "*", ")", "FROM", "station_company", "AS", "T1", "JOIN", "company", "AS", "T2", "ON", "T1.company_id", "=", "T2.company_id", "GROUP", "BY", "T1.company_id" ], "query_toks_no_value": [ "select", "t2", ".", "company", ",", "count", "(", "*", ")", "from", "station_company", "as", "t1", "join", "company", "as", "t2", "on", "t1", ".", "company_id", "=", "t2", ".", "company_id", "group", "by", "t1", ".", "company_id" ], "question": "For each company id, what are the companies and how many gas stations does each one operate?", "question_toks": [ "for", "each", "company", "id", ",", "what", "are", "company", "and", "how", "many", "gas", "station", "doe", "each", "one", "operate", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 17, 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": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "For", "each", "company", "id", ",", "what", "are", "the", "companies", "and", "how", "many", "gas", "stations", "does", "each", "one", "operate", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "company", "id" ], [ "," ], [ "what" ], [ "are" ], [ "company" ], [ "and" ], [ "how" ], [ "many" ], [ "gas", "station" ], [ "doe" ], [ "each" ], [ "one" ], [ "operate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "company", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "are", "VBP" ], [ "company", "NN" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "gas", "NN" ], [ "station", "NN" ], [ "doe", "VBZ" ], [ "each", "DT" ], [ "one", "CD" ], [ "operate", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(3) C(0) T(2)" }, { "db_id": "gas_company", "query": "SELECT company , main_industry FROM company WHERE company_id NOT IN (SELECT company_id FROM station_company)", "query_toks": [ "SELECT", "company", ",", "main_industry", "FROM", "company", "WHERE", "company_id", "NOT", "IN", "(", "SELECT", "company_id", "FROM", "station_company", ")" ], "query_toks_no_value": [ "select", "company", ",", "main_industry", "from", "company", "where", "company_id", "not", "in", "(", "select", "company_id", "from", "station_company", ")" ], "question": "Show company name and main industry without a gas station.", "question_toks": [ "show", "company", "name", "and", "main", "industry", "without", "a", "gas", "station", "." ], "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": [ [ 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, 17, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "Show", "company", "name", "and", "main", "industry", "without", "a", "gas", "station", "." ], "question_arg": [ [ "show" ], [ "company" ], [ "name" ], [ "and" ], [ "main", "industry" ], [ "without" ], [ "a" ], [ "gas", "station" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "company", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "main", "JJ" ], [ "industry", "NN" ], [ "without", "IN" ], [ "a", "DT" ], [ "gas", "NN" ], [ "station", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(5) T(0) Filter(19) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "gas_company", "query": "SELECT company , main_industry FROM company WHERE company_id NOT IN (SELECT company_id FROM station_company)", "query_toks": [ "SELECT", "company", ",", "main_industry", "FROM", "company", "WHERE", "company_id", "NOT", "IN", "(", "SELECT", "company_id", "FROM", "station_company", ")" ], "query_toks_no_value": [ "select", "company", ",", "main_industry", "from", "company", "where", "company_id", "not", "in", "(", "select", "company_id", "from", "station_company", ")" ], "question": "What are the main industries of the companies without gas stations and what are the companies?", "question_toks": [ "what", "are", "main", "industry", "of", "company", "without", "gas", "station", "and", "what", "are", "company", "?" ], "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": [ [ 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, 17, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "main", "industries", "of", "the", "companies", "without", "gas", "stations", "and", "what", "are", "the", "companies", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "main", "industry" ], [ "of" ], [ "company" ], [ "without" ], [ "gas", "station" ], [ "and" ], [ "what" ], [ "are" ], [ "company" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "main", "JJ" ], [ "industry", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "without", "IN" ], [ "gas", "NN" ], [ "station", "NN" ], [ "and", "CC" ], [ "what", "WDT" ], [ "are", "VBP" ], [ "company", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(5) T(0) Filter(19) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "gas_company", "query": "SELECT T3.manager_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.company = 'ExxonMobil'", "query_toks": [ "SELECT", "T3.manager_name", "FROM", "station_company", "AS", "T1", "JOIN", "company", "AS", "T2", "ON", "T1.company_id", "=", "T2.company_id", "JOIN", "gas_station", "AS", "T3", "ON", "T1.station_id", "=", "T3.station_id", "WHERE", "T2.company", "=", "'ExxonMobil", "'" ], "query_toks_no_value": [ "select", "t3", ".", "manager_name", "from", "station_company", "as", "t1", "join", "company", "as", "t2", "on", "t1", ".", "company_id", "=", "t2", ".", "company_id", "join", "gas_station", "as", "t3", "on", "t1", ".", "station_id", "=", "t3", ".", "station_id", "where", "t2", ".", "company", "=", "value" ], "question": "Show the manager name for gas stations belonging to the ExxonMobil company.", "question_toks": [ "show", "manager", "name", "for", "gas", "station", "belonging", "to", "exxonmobil", "company", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"ExxonMobil\"", null ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "Show", "the", "manager", "name", "for", "gas", "stations", "belonging", "to", "the", "ExxonMobil", "company", "." ], "question_arg": [ [ "show" ], [ "manager", "name" ], [ "for" ], [ "gas", "station" ], [ "belonging" ], [ "to" ], [ "exxonmobil" ], [ "company" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "company" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "manager", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "gas", "NN" ], [ "station", "NN" ], [ "belonging", "VBG" ], [ "to", "TO" ], [ "exxonmobil", "VB" ], [ "company", "NN" ], [ ".", "." ] ], "values": [ "ExxonMobil" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(1) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "gas_company", "query": "SELECT T3.manager_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.company = 'ExxonMobil'", "query_toks": [ "SELECT", "T3.manager_name", "FROM", "station_company", "AS", "T1", "JOIN", "company", "AS", "T2", "ON", "T1.company_id", "=", "T2.company_id", "JOIN", "gas_station", "AS", "T3", "ON", "T1.station_id", "=", "T3.station_id", "WHERE", "T2.company", "=", "'ExxonMobil", "'" ], "query_toks_no_value": [ "select", "t3", ".", "manager_name", "from", "station_company", "as", "t1", "join", "company", "as", "t2", "on", "t1", ".", "company_id", "=", "t2", ".", "company_id", "join", "gas_station", "as", "t3", "on", "t1", ".", "station_id", "=", "t3", ".", "station_id", "where", "t2", ".", "company", "=", "value" ], "question": "What are the names of the managers for gas stations that are operated by the ExxonMobil company?", "question_toks": [ "what", "are", "name", "of", "manager", "for", "gas", "station", "that", "are", "operated", "by", "exxonmobil", "company", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"ExxonMobil\"", null ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "managers", "for", "gas", "stations", "that", "are", "operated", "by", "the", "ExxonMobil", "company", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "manager" ], [ "for" ], [ "gas", "station" ], [ "that" ], [ "are" ], [ "operated" ], [ "by" ], [ "exxonmobil" ], [ "company" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "company" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "manager", "NN" ], [ "for", "IN" ], [ "gas", "NN" ], [ "station", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "operated", "VBN" ], [ "by", "IN" ], [ "exxonmobil", "DT" ], [ "company", "NN" ], [ "?", "." ] ], "values": [ "ExxonMobil" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(1) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "gas_company", "query": "SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.market_value > 100", "query_toks": [ "SELECT", "T3.location", "FROM", "station_company", "AS", "T1", "JOIN", "company", "AS", "T2", "ON", "T1.company_id", "=", "T2.company_id", "JOIN", "gas_station", "AS", "T3", "ON", "T1.station_id", "=", "T3.station_id", "WHERE", "T2.market_value", ">", "100" ], "query_toks_no_value": [ "select", "t3", ".", "location", "from", "station_company", "as", "t1", "join", "company", "as", "t2", "on", "t1", ".", "company_id", "=", "t2", ".", "company_id", "join", "gas_station", "as", "t3", "on", "t1", ".", "station_id", "=", "t3", ".", "station_id", "where", "t2", ".", "market_value", ">", "value" ], "question": "Show all locations where a gas station for company with market value greater than 100 is located.", "question_toks": [ "show", "all", "location", "where", "a", "gas", "station", "for", "company", "with", "market", "value", "greater", "than", "100", "is", "located", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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 ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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 ], 100.0, null ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "Show", "all", "locations", "where", "a", "gas", "station", "for", "company", "with", "market", "value", "greater", "than", "100", "is", "located", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "location" ], [ "where" ], [ "a" ], [ "gas", "station" ], [ "for" ], [ "company" ], [ "with" ], [ "market", "value" ], [ "greater" ], [ "than" ], [ "100" ], [ "is" ], [ "located" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "location", "NN" ], [ "where", "WRB" ], [ "a", "DT" ], [ "gas", "NN" ], [ "station", "NN" ], [ "for", "IN" ], [ "company", "NN" ], [ "with", "IN" ], [ "market", "NN" ], [ "value", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "is", "VBZ" ], [ "located", "VBN" ], [ ".", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) 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(5) A(0) C(9) T(0) V(0)" }, { "db_id": "gas_company", "query": "SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.market_value > 100", "query_toks": [ "SELECT", "T3.location", "FROM", "station_company", "AS", "T1", "JOIN", "company", "AS", "T2", "ON", "T1.company_id", "=", "T2.company_id", "JOIN", "gas_station", "AS", "T3", "ON", "T1.station_id", "=", "T3.station_id", "WHERE", "T2.market_value", ">", "100" ], "query_toks_no_value": [ "select", "t3", ".", "location", "from", "station_company", "as", "t1", "join", "company", "as", "t2", "on", "t1", ".", "company_id", "=", "t2", ".", "company_id", "join", "gas_station", "as", "t3", "on", "t1", ".", "station_id", "=", "t3", ".", "station_id", "where", "t2", ".", "market_value", ">", "value" ], "question": "What are the locations that have gas stations owned by a company with a market value greater than 100?", "question_toks": [ "what", "are", "location", "that", "have", "gas", "station", "owned", "by", "a", "company", "with", "a", "market", "value", "greater", "than", "100", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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 ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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 ], 100.0, null ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "locations", "that", "have", "gas", "stations", "owned", "by", "a", "company", "with", "a", "market", "value", "greater", "than", "100", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "location" ], [ "that" ], [ "have" ], [ "gas", "station" ], [ "owned" ], [ "by" ], [ "a" ], [ "company" ], [ "with" ], [ "a" ], [ "market", "value" ], [ "greater" ], [ "than" ], [ "100" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "location", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "gas", "NN" ], [ "station", "NN" ], [ "owned", "VBN" ], [ "by", "IN" ], [ "a", "DT" ], [ "company", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "market", "NN" ], [ "value", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "?", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) 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(5) A(0) C(9) T(0) V(0)" }, { "db_id": "gas_company", "query": "SELECT manager_name FROM gas_station WHERE open_year > 2000 GROUP BY manager_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "manager_name", "FROM", "gas_station", "WHERE", "open_year", ">", "2000", "GROUP", "BY", "manager_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "manager_name", "from", "gas_station", "where", "open_year", ">", "value", "group", "by", "manager_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the manager name with most number of gas stations opened after 2000.", "question_toks": [ "show", "manager", "name", "with", "most", "number", "of", "gas", "station", "opened", "after", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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, 3, [ 0, [ 0, 11, false ], null ], 2000.0, null ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "Show", "the", "manager", "name", "with", "most", "number", "of", "gas", "stations", "opened", "after", "2000", "." ], "question_arg": [ [ "show" ], [ "manager", "name" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "gas", "station" ], [ "opened" ], [ "after" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "manager", "NN" ], [ "name", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "gas", "NN" ], [ "station", "NN" ], [ "opened", "VBD" ], [ "after", "IN" ], [ "2000", "CD" ], [ ".", "." ] ], "values": [ "2000" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(13) T(1) Sup(0) A(3) C(0) T(1) Filter(5) A(0) C(11) T(1) V(0)" }, { "db_id": "gas_company", "query": "SELECT manager_name FROM gas_station WHERE open_year > 2000 GROUP BY manager_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "manager_name", "FROM", "gas_station", "WHERE", "open_year", ">", "2000", "GROUP", "BY", "manager_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "manager_name", "from", "gas_station", "where", "open_year", ">", "value", "group", "by", "manager_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the manager with the most gas stations that opened after 2000?", "question_toks": [ "what", "is", "name", "of", "manager", "with", "most", "gas", "station", "that", "opened", "after", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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, 3, [ 0, [ 0, 11, false ], null ], 2000.0, null ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "manager", "with", "the", "most", "gas", "stations", "that", "opened", "after", "2000", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "manager" ], [ "with" ], [ "most" ], [ "gas", "station" ], [ "that" ], [ "opened" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "manager", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "gas", "NN" ], [ "station", "NN" ], [ "that", "WDT" ], [ "opened", "VBD" ], [ "after", "IN" ], [ "2000", "CD" ], [ "?", "." ] ], "values": [ "2000" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(13) T(1) Sup(0) A(3) C(0) T(1) Filter(5) A(0) C(11) T(1) V(0)" }, { "db_id": "gas_company", "query": "SELECT LOCATION FROM gas_station ORDER BY open_year", "query_toks": [ "SELECT", "LOCATION", "FROM", "gas_station", "ORDER", "BY", "open_year" ], "query_toks_no_value": [ "select", "location", "from", "gas_station", "order", "by", "open_year" ], "question": "order all gas station locations by the opening year.", "question_toks": [ "order", "all", "gas", "station", "location", "by", "opening", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "order", "all", "gas", "station", "locations", "by", "the", "opening", "year", "." ], "question_arg": [ [ "order" ], [ "all" ], [ "gas", "station" ], [ "location" ], [ "by" ], [ "opening" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "order", "NN" ], [ "all", "DT" ], [ "gas", "NN" ], [ "station", "NN" ], [ "location", "NN" ], [ "by", "IN" ], [ "opening", "VBG" ], [ "year", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(12) T(1) Order(1) A(0) C(11) T(1)" }, { "db_id": "gas_company", "query": "SELECT LOCATION FROM gas_station ORDER BY open_year", "query_toks": [ "SELECT", "LOCATION", "FROM", "gas_station", "ORDER", "BY", "open_year" ], "query_toks_no_value": [ "select", "location", "from", "gas_station", "order", "by", "open_year" ], "question": "What are the locations of all the gas stations ordered by opening year?", "question_toks": [ "what", "are", "location", "of", "all", "gas", "station", "ordered", "by", "opening", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "locations", "of", "all", "the", "gas", "stations", "ordered", "by", "opening", "year", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "location" ], [ "of" ], [ "all" ], [ "gas", "station" ], [ "ordered" ], [ "by" ], [ "opening" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "location", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "gas", "NN" ], [ "station", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "opening", "VBG" ], [ "year", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(12) T(1) Order(1) A(0) C(11) T(1)" }, { "db_id": "gas_company", "query": "SELECT rank , company , market_value FROM company WHERE main_industry = 'Banking' ORDER BY sales_billion , profits_billion", "query_toks": [ "SELECT", "rank", ",", "company", ",", "market_value", "FROM", "company", "WHERE", "main_industry", "=", "'Banking", "'", "ORDER", "BY", "sales_billion", ",", "profits_billion" ], "query_toks_no_value": [ "select", "rank", ",", "company", ",", "market_value", "from", "company", "where", "main_industry", "=", "value", "order", "by", "sales_billion", ",", "profits_billion" ], "question": "find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.", "question_toks": [ "find", "rank", ",", "company", "name", ",", "market", "value", "of", "company", "in", "banking", "industry", "order", "by", "their", "sale", "and", "profit", "in", "billion", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ], [ 0, [ 0, 7, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Banking\"", null ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "find", "the", "rank", ",", "company", "names", ",", "market", "values", "of", "the", "companies", "in", "the", "banking", "industry", "order", "by", "their", "sales", "and", "profits", "in", "billion", "." ], "question_arg": [ [ "find" ], [ "rank" ], [ "," ], [ "company" ], [ "name" ], [ "," ], [ "market", "value" ], [ "of" ], [ "company" ], [ "in" ], [ "banking" ], [ "industry" ], [ "order" ], [ "by" ], [ "their" ], [ "sale" ], [ "and" ], [ "profit" ], [ "in" ], [ "billion" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "rank", "NN" ], [ ",", "," ], [ "company", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "market", "NN" ], [ "value", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "in", "IN" ], [ "banking", "NN" ], [ "industry", "NN" ], [ "order", "NN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "sale", "NN" ], [ "and", "CC" ], [ "profit", "NN" ], [ "in", "IN" ], [ "billion", "CD" ], [ ".", "." ] ], "values": [ "Banking" ], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(0) C(9) T(0) Filter(2) A(0) C(5) T(0) V(0) Order(1) A(0) C(6) T(0)" }, { "db_id": "gas_company", "query": "SELECT rank , company , market_value FROM company WHERE main_industry = 'Banking' ORDER BY sales_billion , profits_billion", "query_toks": [ "SELECT", "rank", ",", "company", ",", "market_value", "FROM", "company", "WHERE", "main_industry", "=", "'Banking", "'", "ORDER", "BY", "sales_billion", ",", "profits_billion" ], "query_toks_no_value": [ "select", "rank", ",", "company", ",", "market_value", "from", "company", "where", "main_industry", "=", "value", "order", "by", "sales_billion", ",", "profits_billion" ], "question": "What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits?", "question_toks": [ "what", "is", "rank", ",", "company", ",", "and", "market", "value", "of", "every", "comapny", "in", "banking", "industry", "ordered", "by", "sale", "and", "profit", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ], [ 0, [ 0, 7, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Banking\"", null ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "rank", ",", "company", ",", "and", "market", "value", "of", "every", "comapny", "in", "the", "banking", "industry", "ordered", "by", "sales", "and", "profits", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "rank" ], [ "," ], [ "company" ], [ "," ], [ "and" ], [ "market", "value" ], [ "of" ], [ "every" ], [ "comapny" ], [ "in" ], [ "banking" ], [ "industry" ], [ "ordered" ], [ "by" ], [ "sale" ], [ "and" ], [ "profit" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "rank", "NN" ], [ ",", "," ], [ "company", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "market", "NN" ], [ "value", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "comapny", "NN" ], [ "in", "IN" ], [ "banking", "NN" ], [ "industry", "NN" ], [ "ordered", "VBD" ], [ "by", "IN" ], [ "sale", "NN" ], [ "and", "CC" ], [ "profit", "NN" ], [ "?", "." ] ], "values": [ "Banking" ], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(0) C(9) T(0) Filter(2) A(0) C(5) T(0) V(0) Order(1) A(0) C(6) T(0)" }, { "db_id": "gas_company", "query": "SELECT T3.location , T3.Representative_Name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id ORDER BY T2.Assets_billion DESC LIMIT 3", "query_toks": [ "SELECT", "T3.location", ",", "T3.Representative_Name", "FROM", "station_company", "AS", "T1", "JOIN", "company", "AS", "T2", "ON", "T1.company_id", "=", "T2.company_id", "JOIN", "gas_station", "AS", "T3", "ON", "T1.station_id", "=", "T3.station_id", "ORDER", "BY", "T2.Assets_billion", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t3", ".", "location", ",", "t3", ".", "representative_name", "from", "station_company", "as", "t1", "join", "company", "as", "t2", "on", "t1", ".", "company_id", "=", "t2", ".", "company_id", "join", "gas_station", "as", "t3", "on", "t1", ".", "station_id", "=", "t3", ".", "station_id", "order", "by", "t2", ".", "assets_billion", "desc", "limit", "value" ], "question": "find the location and Representative name of the gas stations owned by the companies with top 3 Asset amounts.", "question_toks": [ "find", "location", "and", "representative", "name", "of", "gas", "station", "owned", "by", "company", "with", "top", "3", "asset", "amount", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "find", "the", "location", "and", "Representative", "name", "of", "the", "gas", "stations", "owned", "by", "the", "companies", "with", "top", "3", "Asset", "amounts", "." ], "question_arg": [ [ "find" ], [ "location" ], [ "and" ], [ "representative", "name" ], [ "of" ], [ "gas", "station" ], [ "owned" ], [ "by" ], [ "company" ], [ "with" ], [ "top" ], [ "3" ], [ "asset" ], [ "amount" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "location", "NN" ], [ "and", "CC" ], [ "representative", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "gas", "NN" ], [ "station", "NN" ], [ "owned", "VBN" ], [ "by", "IN" ], [ "company", "NN" ], [ "with", "IN" ], [ "top", "JJ" ], [ "3", "CD" ], [ "asset", "NN" ], [ "amount", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(12) T(1) A(0) C(15) T(1) Sup(0) A(0) C(8) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "gas_company", "query": "SELECT T3.location , T3.Representative_Name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id ORDER BY T2.Assets_billion DESC LIMIT 3", "query_toks": [ "SELECT", "T3.location", ",", "T3.Representative_Name", "FROM", "station_company", "AS", "T1", "JOIN", "company", "AS", "T2", "ON", "T1.company_id", "=", "T2.company_id", "JOIN", "gas_station", "AS", "T3", "ON", "T1.station_id", "=", "T3.station_id", "ORDER", "BY", "T2.Assets_billion", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t3", ".", "location", ",", "t3", ".", "representative_name", "from", "station_company", "as", "t1", "join", "company", "as", "t2", "on", "t1", ".", "company_id", "=", "t2", ".", "company_id", "join", "gas_station", "as", "t3", "on", "t1", ".", "station_id", "=", "t3", ".", "station_id", "order", "by", "t2", ".", "assets_billion", "desc", "limit", "value" ], "question": "What are the locations and representatives' names of the gas stations owned by the companies with the 3 largest amounts of assets?", "question_toks": [ "what", "are", "location", "and", "representative", "'", "name", "of", "gas", "station", "owned", "by", "company", "with", "3", "largest", "amount", "of", "asset", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "station id", "company id", "rank of the year" ], "table_names": [ "company", "gas station", "station company" ], "col_set": [ "*", "company id", "rank", "company", "headquarters", "main industry", "sales billion", "profits billion", "assets billion", "market value", "station id", "open year", "location", "manager name", "vice manager name", "representative name", "rank of the year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "17": 1, "1": 1, "16": 16, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "locations", "and", "representatives", "'", "names", "of", "the", "gas", "stations", "owned", "by", "the", "companies", "with", "the", "3", "largest", "amounts", "of", "assets", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "location" ], [ "and" ], [ "representative" ], [ "'" ], [ "name" ], [ "of" ], [ "gas", "station" ], [ "owned" ], [ "by" ], [ "company" ], [ "with" ], [ "3" ], [ "largest" ], [ "amount" ], [ "of" ], [ "asset" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "location", "JJ" ], [ "and", "CC" ], [ "representative", "JJ" ], [ "'", "''" ], [ "name", "NN" ], [ "of", "IN" ], [ "gas", "NN" ], [ "station", "NN" ], [ "owned", "VBN" ], [ "by", "IN" ], [ "company", "NN" ], [ "with", "IN" ], [ "3", "CD" ], [ "largest", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "asset", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(12) T(1) A(0) C(15) T(1) Sup(0) A(0) C(8) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "party_people", "query": "SELECT count(*) FROM region", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "region" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "region" ], "question": "How many regions do we have?", "question_toks": [ "how", "many", "region", "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": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "How", "many", "regions", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "region" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "region", "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": "party_people", "query": "SELECT count(*) FROM region", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "region" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "region" ], "question": "Count the number of regions.", "question_toks": [ "count", "number", "of", "region", "." ], "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": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Count", "the", "number", "of", "regions", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "region" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "region", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "party_people", "query": "SELECT DISTINCT region_name FROM region ORDER BY Label", "query_toks": [ "SELECT", "DISTINCT", "region_name", "FROM", "region", "ORDER", "BY", "Label" ], "query_toks_no_value": [ "select", "distinct", "region_name", "from", "region", "order", "by", "label" ], "question": "Show all distinct region names ordered by their labels.", "question_toks": [ "show", "all", "distinct", "region", "name", "ordered", "by", "their", "label", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Show", "all", "distinct", "region", "names", "ordered", "by", "their", "labels", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "distinct" ], [ "region", "name" ], [ "ordered" ], [ "by" ], [ "their" ], [ "label" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "region", "NN" ], [ "name", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "label", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(2) T(0) Order(1) A(0) C(4) T(0)" }, { "db_id": "party_people", "query": "SELECT DISTINCT region_name FROM region ORDER BY Label", "query_toks": [ "SELECT", "DISTINCT", "region_name", "FROM", "region", "ORDER", "BY", "Label" ], "query_toks_no_value": [ "select", "distinct", "region_name", "from", "region", "order", "by", "label" ], "question": "What are the different region names, ordered by labels?", "question_toks": [ "what", "are", "different", "region", "name", ",", "ordered", "by", "label", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "What", "are", "the", "different", "region", "names", ",", "ordered", "by", "labels", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "region", "name" ], [ "," ], [ "ordered" ], [ "by" ], [ "label" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "region", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "label", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(2) T(0) Order(1) A(0) C(4) T(0)" }, { "db_id": "party_people", "query": "SELECT count(DISTINCT party_name) FROM party", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "party_name", ")", "FROM", "party" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "party_name", ")", "from", "party" ], "question": "How many parties do we have?", "question_toks": [ "how", "many", "party", "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, 12, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "How", "many", "parties", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "party" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "party", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(11) T(1)" }, { "db_id": "party_people", "query": "SELECT count(DISTINCT party_name) FROM party", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "party_name", ")", "FROM", "party" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "party_name", ")", "from", "party" ], "question": "Count the number of different parties.", "question_toks": [ "count", "number", "of", "different", "party", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "parties", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "party", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(11) T(1)" }, { "db_id": "party_people", "query": "SELECT minister , took_office , left_office FROM party ORDER BY left_office", "query_toks": [ "SELECT", "minister", ",", "took_office", ",", "left_office", "FROM", "party", "ORDER", "BY", "left_office" ], "query_toks_no_value": [ "select", "minister", ",", "took_office", ",", "left_office", "from", "party", "order", "by", "left_office" ], "question": "Show the ministers and the time they took and left office, listed by the time they left office.", "question_toks": [ "show", "minister", "and", "time", "they", "took", "and", "left", "office", ",", "listed", "by", "time", "they", "left", "office", "." ], "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": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Show", "the", "ministers", "and", "the", "time", "they", "took", "and", "left", "office", ",", "listed", "by", "the", "time", "they", "left", "office", "." ], "question_arg": [ [ "show" ], [ "minister" ], [ "and" ], [ "time" ], [ "they" ], [ "took" ], [ "and" ], [ "left", "office" ], [ "," ], [ "listed" ], [ "by" ], [ "time" ], [ "they" ], [ "left", "office" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "minister", "NN" ], [ "and", "CC" ], [ "time", "NN" ], [ "they", "PRP" ], [ "took", "VBD" ], [ "and", "CC" ], [ "left", "JJ" ], [ "office", "NN" ], [ ",", "," ], [ "listed", "VBN" ], [ "by", "IN" ], [ "time", "NN" ], [ "they", "PRP" ], [ "left", "VBD" ], [ "office", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(8) T(1) A(0) C(9) T(1) A(0) C(10) T(1) Order(1) A(0) C(10) T(1)" }, { "db_id": "party_people", "query": "SELECT minister , took_office , left_office FROM party ORDER BY left_office", "query_toks": [ "SELECT", "minister", ",", "took_office", ",", "left_office", "FROM", "party", "ORDER", "BY", "left_office" ], "query_toks_no_value": [ "select", "minister", ",", "took_office", ",", "left_office", "from", "party", "order", "by", "left_office" ], "question": "Who are the ministers, when did they take office, and when did they leave office, ordered by when they left office?", "question_toks": [ "who", "are", "minister", ",", "when", "did", "they", "take", "office", ",", "and", "when", "did", "they", "leave", "office", ",", "ordered", "by", "when", "they", "left", "office", "?" ], "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": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Who", "are", "the", "ministers", ",", "when", "did", "they", "take", "office", ",", "and", "when", "did", "they", "leave", "office", ",", "ordered", "by", "when", "they", "left", "office", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "minister" ], [ "," ], [ "when" ], [ "did" ], [ "they" ], [ "take" ], [ "office" ], [ "," ], [ "and" ], [ "when" ], [ "did" ], [ "they" ], [ "leave" ], [ "office" ], [ "," ], [ "ordered" ], [ "by" ], [ "when" ], [ "they" ], [ "left", "office" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "minister", "NN" ], [ ",", "," ], [ "when", "WRB" ], [ "did", "VBD" ], [ "they", "PRP" ], [ "take", "VB" ], [ "office", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "when", "WRB" ], [ "did", "VBD" ], [ "they", "PRP" ], [ "leave", "VB" ], [ "office", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "when", "WRB" ], [ "they", "PRP" ], [ "left", "VBD" ], [ "office", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(8) T(1) A(0) C(9) T(1) A(0) C(10) T(1) Order(1) A(0) C(10) T(1)" }, { "db_id": "party_people", "query": "SELECT minister FROM party WHERE took_office > 1961 OR took_office < 1959", "query_toks": [ "SELECT", "minister", "FROM", "party", "WHERE", "took_office", ">", "1961", "OR", "took_office", "<", "1959" ], "query_toks_no_value": [ "select", "minister", "from", "party", "where", "took_office", ">", "value", "or", "took_office", "<", "value" ], "question": "Show the minister who took office after 1961 or before 1959.", "question_toks": [ "show", "minister", "who", "took", "office", "after", "year", "or", "before", "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 1961.0, null ], "or", [ false, 4, [ 0, [ 0, 9, false ], null ], 1959.0, null ] ] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Show", "the", "minister", "who", "took", "office", "after", "1961", "or", "before", "1959", "." ], "question_arg": [ [ "show" ], [ "minister" ], [ "who" ], [ "took", "office" ], [ "after" ], [ "year" ], [ "or" ], [ "before" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "minister", "NN" ], [ "who", "WP" ], [ "took", "VBD" ], [ "office", "NN" ], [ "after", "IN" ], [ "1961", "CD" ], [ "or", "CC" ], [ "before", "IN" ], [ "1959", "CD" ], [ ".", "." ] ], "values": [ "1959", "1961" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(1) Filter(5) A(0) C(9) T(1) V(1) Filter(4) A(0) C(9) T(1) V(0)" }, { "db_id": "party_people", "query": "SELECT minister FROM party WHERE took_office > 1961 OR took_office < 1959", "query_toks": [ "SELECT", "minister", "FROM", "party", "WHERE", "took_office", ">", "1961", "OR", "took_office", "<", "1959" ], "query_toks_no_value": [ "select", "minister", "from", "party", "where", "took_office", ">", "value", "or", "took_office", "<", "value" ], "question": "Who are the ministers who took office after 1961 or before 1959?", "question_toks": [ "who", "are", "minister", "who", "took", "office", "after", "year", "or", "before", "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 1961.0, null ], "or", [ false, 4, [ 0, [ 0, 9, false ], null ], 1959.0, null ] ] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Who", "are", "the", "ministers", "who", "took", "office", "after", "1961", "or", "before", "1959", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "minister" ], [ "who" ], [ "took", "office" ], [ "after" ], [ "year" ], [ "or" ], [ "before" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "minister", "NN" ], [ "who", "WP" ], [ "took", "VBD" ], [ "office", "NN" ], [ "after", "IN" ], [ "1961", "CD" ], [ "or", "CC" ], [ "before", "IN" ], [ "1959", "CD" ], [ "?", "." ] ], "values": [ "1961", "1959" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(1) Filter(5) A(0) C(9) T(1) V(0) Filter(4) A(0) C(9) T(1) V(1)" }, { "db_id": "party_people", "query": "SELECT minister FROM party WHERE party_name != 'Progress Party'", "query_toks": [ "SELECT", "minister", "FROM", "party", "WHERE", "party_name", "!", "=", "'Progress", "Party", "'" ], "query_toks_no_value": [ "select", "minister", "from", "party", "where", "party_name", "!", "=", "value" ], "question": "Show all ministers who do not belong to Progress Party.", "question_toks": [ "show", "all", "minister", "who", "do", "not", "belong", "to", "progress", "party", "." ], "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, 12, false ], null ], "\"Progress Party\"", null ] ] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Show", "all", "ministers", "who", "do", "not", "belong", "to", "Progress", "Party", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "minister" ], [ "who" ], [ "do" ], [ "not" ], [ "belong" ], [ "to" ], [ "progress" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "minister", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "belong", "VB" ], [ "to", "TO" ], [ "progress", "VB" ], [ "party", "NN" ], [ ".", "." ] ], "values": [ "Progress Party" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(3) A(0) C(11) T(1) V(0)" }, { "db_id": "party_people", "query": "SELECT minister FROM party WHERE party_name != 'Progress Party'", "query_toks": [ "SELECT", "minister", "FROM", "party", "WHERE", "party_name", "!", "=", "'Progress", "Party", "'" ], "query_toks_no_value": [ "select", "minister", "from", "party", "where", "party_name", "!", "=", "value" ], "question": "Which ministers are not a part of the Progress Party?", "question_toks": [ "which", "minister", "are", "not", "a", "part", "of", "progress", "party", "?" ], "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, 12, false ], null ], "\"Progress Party\"", null ] ] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Which", "ministers", "are", "not", "a", "part", "of", "the", "Progress", "Party", "?" ], "question_arg": [ [ "which" ], [ "minister" ], [ "are" ], [ "not" ], [ "a" ], [ "part" ], [ "of" ], [ "progress" ], [ "party" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "minister", "NN" ], [ "are", "VBP" ], [ "not", "RB" ], [ "a", "DT" ], [ "part", "NN" ], [ "of", "IN" ], [ "progress", "NN" ], [ "party", "NN" ], [ "?", "." ] ], "values": [ "Progress Party" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(3) A(0) C(11) T(1) V(0)" }, { "db_id": "party_people", "query": "SELECT minister , party_name FROM party ORDER BY took_office DESC", "query_toks": [ "SELECT", "minister", ",", "party_name", "FROM", "party", "ORDER", "BY", "took_office", "DESC" ], "query_toks_no_value": [ "select", "minister", ",", "party_name", "from", "party", "order", "by", "took_office", "desc" ], "question": "Show all ministers and parties they belong to in descending order of the time they took office.", "question_toks": [ "show", "all", "minister", "and", "party", "they", "belong", "to", "in", "descending", "order", "of", "time", "they", "took", "office", "." ], "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, 8, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Show", "all", "ministers", "and", "parties", "they", "belong", "to", "in", "descending", "order", "of", "the", "time", "they", "took", "office", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "minister" ], [ "and" ], [ "party" ], [ "they" ], [ "belong" ], [ "to" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "time" ], [ "they" ], [ "took", "office" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "minister", "NN" ], [ "and", "CC" ], [ "party", "NN" ], [ "they", "PRP" ], [ "belong", "VBP" ], [ "to", "TO" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "they", "PRP" ], [ "took", "VBD" ], [ "office", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(8) T(1) A(0) C(11) T(1) Order(0) A(0) C(9) T(1)" }, { "db_id": "party_people", "query": "SELECT minister , party_name FROM party ORDER BY took_office DESC", "query_toks": [ "SELECT", "minister", ",", "party_name", "FROM", "party", "ORDER", "BY", "took_office", "DESC" ], "query_toks_no_value": [ "select", "minister", ",", "party_name", "from", "party", "order", "by", "took_office", "desc" ], "question": "Who are the ministers and what parties do they belong to, listed descending by the times they took office?", "question_toks": [ "who", "are", "minister", "and", "what", "party", "do", "they", "belong", "to", ",", "listed", "descending", "by", "time", "they", "took", "office", "?" ], "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, 8, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Who", "are", "the", "ministers", "and", "what", "parties", "do", "they", "belong", "to", ",", "listed", "descending", "by", "the", "times", "they", "took", "office", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "minister" ], [ "and" ], [ "what" ], [ "party" ], [ "do" ], [ "they" ], [ "belong" ], [ "to" ], [ "," ], [ "listed" ], [ "descending" ], [ "by" ], [ "time" ], [ "they" ], [ "took", "office" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "minister", "NN" ], [ "and", "CC" ], [ "what", "WP" ], [ "party", "NN" ], [ "do", "VBP" ], [ "they", "PRP" ], [ "belong", "VB" ], [ "to", "TO" ], [ ",", "," ], [ "listed", "VBN" ], [ "descending", "NN" ], [ "by", "IN" ], [ "time", "NN" ], [ "they", "PRP" ], [ "took", "VBD" ], [ "office", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(8) T(1) A(0) C(11) T(1) Order(0) A(0) C(9) T(1)" }, { "db_id": "party_people", "query": "SELECT minister FROM party ORDER BY left_office DESC LIMIT 1", "query_toks": [ "SELECT", "minister", "FROM", "party", "ORDER", "BY", "left_office", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "minister", "from", "party", "order", "by", "left_office", "desc", "limit", "value" ], "question": "Return the minister who left office at the latest time.", "question_toks": [ "return", "minister", "who", "left", "office", "at", "latest", "time", "." ], "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, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Return", "the", "minister", "who", "left", "office", "at", "the", "latest", "time", "." ], "question_arg": [ [ "return" ], [ "minister" ], [ "who" ], [ "left", "office" ], [ "at" ], [ "latest" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "minister", "NN" ], [ "who", "WP" ], [ "left", "VBD" ], [ "office", "NN" ], [ "at", "IN" ], [ "latest", "JJS" ], [ "time", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(1) Sup(0) A(0) C(10) T(1)" }, { "db_id": "party_people", "query": "SELECT minister FROM party ORDER BY left_office DESC LIMIT 1", "query_toks": [ "SELECT", "minister", "FROM", "party", "ORDER", "BY", "left_office", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "minister", "from", "party", "order", "by", "left_office", "desc", "limit", "value" ], "question": "Which minister left office the latest?", "question_toks": [ "which", "minister", "left", "office", "latest", "?" ], "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, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Which", "minister", "left", "office", "the", "latest", "?" ], "question_arg": [ [ "which" ], [ "minister" ], [ "left", "office" ], [ "latest" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "col" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "minister", "NN" ], [ "left", "VBD" ], [ "office", "NN" ], [ "latest", "JJS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(1) Sup(0) A(0) C(10) T(1)" }, { "db_id": "party_people", "query": "SELECT T1.member_name , T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id", "query_toks": [ "SELECT", "T1.member_name", ",", "T2.party_name", "FROM", "Member", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.party_id", "=", "T2.party_id" ], "query_toks_no_value": [ "select", "t1", ".", "member_name", ",", "t2", ".", "party_name", "from", "member", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id" ], "question": "List member names and their party names.", "question_toks": [ "list", "member", "name", "and", "their", "party", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "List", "member", "names", "and", "their", "party", "names", "." ], "question_arg": [ [ "list" ], [ "member", "name" ], [ "and" ], [ "their" ], [ "party", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "member", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "party", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(2) A(0) C(11) T(1)" }, { "db_id": "party_people", "query": "SELECT T1.member_name , T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id", "query_toks": [ "SELECT", "T1.member_name", ",", "T2.party_name", "FROM", "Member", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.party_id", "=", "T2.party_id" ], "query_toks_no_value": [ "select", "t1", ".", "member_name", ",", "t2", ".", "party_name", "from", "member", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id" ], "question": "What are the names of members and their corresponding parties?", "question_toks": [ "what", "are", "name", "of", "member", "and", "their", "corresponding", "party", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "members", "and", "their", "corresponding", "parties", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "member" ], [ "and" ], [ "their" ], [ "corresponding" ], [ "party" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "corresponding", "NN" ], [ "party", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(2) A(0) C(11) T(1)" }, { "db_id": "party_people", "query": "SELECT T2.party_name , count(*) FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id", "query_toks": [ "SELECT", "T2.party_name", ",", "count", "(", "*", ")", "FROM", "Member", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.party_id", "=", "T2.party_id", "GROUP", "BY", "T1.party_id" ], "query_toks_no_value": [ "select", "t2", ".", "party_name", ",", "count", "(", "*", ")", "from", "member", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id", "group", "by", "t1", ".", "party_id" ], "question": "Show all party names and the number of members in each party.", "question_toks": [ "show", "all", "party", "name", "and", "number", "of", "member", "in", "each", "party", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 15, 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": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Show", "all", "party", "names", "and", "the", "number", "of", "members", "in", "each", "party", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "party", "name" ], [ "and" ], [ "number" ], [ "of" ], [ "member" ], [ "in" ], [ "each" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "party", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "party", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(1) A(3) C(0) T(2)" }, { "db_id": "party_people", "query": "SELECT T2.party_name , count(*) FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id", "query_toks": [ "SELECT", "T2.party_name", ",", "count", "(", "*", ")", "FROM", "Member", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.party_id", "=", "T2.party_id", "GROUP", "BY", "T1.party_id" ], "query_toks_no_value": [ "select", "t2", ".", "party_name", ",", "count", "(", "*", ")", "from", "member", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id", "group", "by", "t1", ".", "party_id" ], "question": "How many members are in each party?", "question_toks": [ "how", "many", "member", "are", "in", "each", "party", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 15, 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": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "How", "many", "members", "are", "in", "each", "party", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "member" ], [ "are" ], [ "in" ], [ "each" ], [ "party" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "member", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "each", "DT" ], [ "party", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(1) A(3) C(0) T(2)" }, { "db_id": "party_people", "query": "SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.party_name", "FROM", "Member", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.party_id", "=", "T2.party_id", "GROUP", "BY", "T1.party_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "party_name", "from", "member", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id", "group", "by", "t1", ".", "party_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of party with most number of members?", "question_toks": [ "what", "is", "name", "of", "party", "with", "most", "number", "of", "member", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "party", "with", "most", "number", "of", "members", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "party" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(11) T(1) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "party_people", "query": "SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.party_name", "FROM", "Member", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.party_id", "=", "T2.party_id", "GROUP", "BY", "T1.party_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "party_name", "from", "member", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id", "group", "by", "t1", ".", "party_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the name of the party with the most members.", "question_toks": [ "return", "name", "of", "party", "with", "most", "member", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Return", "the", "name", "of", "the", "party", "with", "the", "most", "members", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "party" ], [ "with" ], [ "most" ], [ "member" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "member", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(11) T(1) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "party_people", "query": "SELECT T1.party_name , T2.region_name FROM party AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id", "query_toks": [ "SELECT", "T1.party_name", ",", "T2.region_name", "FROM", "party", "AS", "T1", "JOIN", "region", "AS", "T2", "ON", "T1.region_id", "=", "T2.region_id" ], "query_toks_no_value": [ "select", "t1", ".", "party_name", ",", "t2", ".", "region_name", "from", "party", "as", "t1", "join", "region", "as", "t2", "on", "t1", ".", "region_id", "=", "t2", ".", "region_id" ], "question": "Show all party names and their region names.", "question_toks": [ "show", "all", "party", "name", "and", "their", "region", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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, 12, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Show", "all", "party", "names", "and", "their", "region", "names", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "party", "name" ], [ "and" ], [ "their" ], [ "region", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "party", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "region", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(1) A(0) C(2) T(0)" }, { "db_id": "party_people", "query": "SELECT T1.party_name , T2.region_name FROM party AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id", "query_toks": [ "SELECT", "T1.party_name", ",", "T2.region_name", "FROM", "party", "AS", "T1", "JOIN", "region", "AS", "T2", "ON", "T1.region_id", "=", "T2.region_id" ], "query_toks_no_value": [ "select", "t1", ".", "party_name", ",", "t2", ".", "region_name", "from", "party", "as", "t1", "join", "region", "as", "t2", "on", "t1", ".", "region_id", "=", "t2", ".", "region_id" ], "question": "What are the names of parties and their respective regions?", "question_toks": [ "what", "are", "name", "of", "party", "and", "their", "respective", "region", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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, 12, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "parties", "and", "their", "respective", "regions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "party" ], [ "and" ], [ "their" ], [ "respective" ], [ "region" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "respective", "JJ" ], [ "region", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(1) A(0) C(2) T(0)" }, { "db_id": "party_people", "query": "SELECT party_name FROM party WHERE party_id NOT IN (SELECT party_id FROM Member)", "query_toks": [ "SELECT", "party_name", "FROM", "party", "WHERE", "party_id", "NOT", "IN", "(", "SELECT", "party_id", "FROM", "Member", ")" ], "query_toks_no_value": [ "select", "party_name", "from", "party", "where", "party_id", "not", "in", "(", "select", "party_id", "from", "member", ")" ], "question": "Show names of parties that does not have any members.", "question_toks": [ "show", "name", "of", "party", "that", "doe", "not", "have", "any", "member", "." ], "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": [ [ true, 8, [ 0, [ 0, 7, 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": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Show", "names", "of", "parties", "that", "does", "not", "have", "any", "members", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "party" ], [ "that" ], [ "doe" ], [ "not" ], [ "have" ], [ "any" ], [ "member" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "that", "WDT" ], [ "doe", "VBZ" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "member", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(19) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "party_people", "query": "SELECT party_name FROM party WHERE party_id NOT IN (SELECT party_id FROM Member)", "query_toks": [ "SELECT", "party_name", "FROM", "party", "WHERE", "party_id", "NOT", "IN", "(", "SELECT", "party_id", "FROM", "Member", ")" ], "query_toks_no_value": [ "select", "party_name", "from", "party", "where", "party_id", "not", "in", "(", "select", "party_id", "from", "member", ")" ], "question": "What are the names of parties that have no members?", "question_toks": [ "what", "are", "name", "of", "party", "that", "have", "no", "member", "?" ], "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": [ [ true, 8, [ 0, [ 0, 7, 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": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "parties", "that", "have", "no", "members", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "party" ], [ "that" ], [ "have" ], [ "no" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "no", "DT" ], [ "member", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(19) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "party_people", "query": "SELECT member_name FROM member WHERE party_id = 3 INTERSECT SELECT member_name FROM member WHERE party_id = 1", "query_toks": [ "SELECT", "member_name", "FROM", "member", "WHERE", "party_id", "=", "3", "INTERSECT", "SELECT", "member_name", "FROM", "member", "WHERE", "party_id", "=", "1" ], "query_toks_no_value": [ "select", "member_name", "from", "member", "where", "party_id", "=", "value", "intersect", "select", "member_name", "from", "member", "where", "party_id", "=", "value" ], "question": "Show the member names which are in both the party with id 3 and the party with id 1.", "question_toks": [ "show", "member", "name", "which", "are", "in", "both", "party", "with", "id", "3", "and", "party", "with", "id", "1", "." ], "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, 15, false ], null ], 1.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], 3.0, null ] ] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Show", "the", "member", "names", "which", "are", "in", "both", "the", "party", "with", "id", "3", "and", "the", "party", "with", "id", "1", "." ], "question_arg": [ [ "show" ], [ "member", "name" ], [ "which" ], [ "are" ], [ "in" ], [ "both" ], [ "party" ], [ "with" ], [ "id" ], [ "3" ], [ "and" ], [ "party" ], [ "with" ], [ "id" ], [ "1" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "member", "NN" ], [ "name", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "both", "DT" ], [ "party", "NN" ], [ "with", "IN" ], [ "id", "JJ" ], [ "3", "CD" ], [ "and", "CC" ], [ "party", "NN" ], [ "with", "IN" ], [ "id", "JJ" ], [ "1", "CD" ], [ ".", "." ] ], "values": [ "3", "1" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(7) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(7) T(2) V(1)" }, { "db_id": "party_people", "query": "SELECT member_name FROM member WHERE party_id = 3 INTERSECT SELECT member_name FROM member WHERE party_id = 1", "query_toks": [ "SELECT", "member_name", "FROM", "member", "WHERE", "party_id", "=", "3", "INTERSECT", "SELECT", "member_name", "FROM", "member", "WHERE", "party_id", "=", "1" ], "query_toks_no_value": [ "select", "member_name", "from", "member", "where", "party_id", "=", "value", "intersect", "select", "member_name", "from", "member", "where", "party_id", "=", "value" ], "question": "Which member names are shared among members in the party with the id 3 and the party with the id 1?", "question_toks": [ "which", "member", "name", "are", "shared", "among", "member", "in", "party", "with", "id", "3", "and", "party", "with", "id", "1", "?" ], "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, 15, false ], null ], 1.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], 3.0, null ] ] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Which", "member", "names", "are", "shared", "among", "members", "in", "the", "party", "with", "the", "id", "3", "and", "the", "party", "with", "the", "id", "1", "?" ], "question_arg": [ [ "which" ], [ "member", "name" ], [ "are" ], [ "shared" ], [ "among" ], [ "member" ], [ "in" ], [ "party" ], [ "with" ], [ "id" ], [ "3" ], [ "and" ], [ "party" ], [ "with" ], [ "id" ], [ "1" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "member", "NN" ], [ "name", "NN" ], [ "are", "VBP" ], [ "shared", "VBN" ], [ "among", "IN" ], [ "member", "NN" ], [ "in", "IN" ], [ "party", "NN" ], [ "with", "IN" ], [ "id", "JJ" ], [ "3", "CD" ], [ "and", "CC" ], [ "party", "NN" ], [ "with", "IN" ], [ "id", "JJ" ], [ "1", "CD" ], [ "?", "." ] ], "values": [ "3", "1" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(7) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(7) T(2) V(1)" }, { "db_id": "party_people", "query": "SELECT T1.member_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id WHERE T2.Party_name != \"Progress Party\"", "query_toks": [ "SELECT", "T1.member_name", "FROM", "Member", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.party_id", "=", "T2.party_id", "WHERE", "T2.Party_name", "!", "=", "``", "Progress", "Party", "''" ], "query_toks_no_value": [ "select", "t1", ".", "member_name", "from", "member", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id", "where", "t2", ".", "party_name", "!", "=", "value" ], "question": "Show member names that are not in the Progress Party.", "question_toks": [ "show", "member", "name", "that", "are", "not", "in", "progress", "party", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 12, false ], null ], "\"Progress Party\"", null ] ] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Show", "member", "names", "that", "are", "not", "in", "the", "Progress", "Party", "." ], "question_arg": [ [ "show" ], [ "member", "name" ], [ "that" ], [ "are" ], [ "not" ], [ "in" ], [ "progress" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "member", "NN" ], [ "name", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "in", "IN" ], [ "progress", "NN" ], [ "party", "NN" ], [ ".", "." ] ], "values": [ "Progress Party" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(3) A(0) C(11) T(1) V(0)" }, { "db_id": "party_people", "query": "SELECT T1.member_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id WHERE T2.Party_name != \"Progress Party\"", "query_toks": [ "SELECT", "T1.member_name", "FROM", "Member", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.party_id", "=", "T2.party_id", "WHERE", "T2.Party_name", "!", "=", "``", "Progress", "Party", "''" ], "query_toks_no_value": [ "select", "t1", ".", "member_name", "from", "member", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id", "where", "t2", ".", "party_name", "!", "=", "value" ], "question": "Which member names corresponding to members who are not in the Progress Party?", "question_toks": [ "which", "member", "name", "corresponding", "to", "member", "who", "are", "not", "in", "progress", "party", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 12, false ], null ], "\"Progress Party\"", null ] ] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Which", "member", "names", "corresponding", "to", "members", "who", "are", "not", "in", "the", "Progress", "Party", "?" ], "question_arg": [ [ "which" ], [ "member", "name" ], [ "corresponding" ], [ "to" ], [ "member" ], [ "who" ], [ "are" ], [ "not" ], [ "in" ], [ "progress" ], [ "party" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "member", "NN" ], [ "name", "NN" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "member", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "in", "IN" ], [ "progress", "NN" ], [ "party", "NN" ], [ "?", "." ] ], "values": [ "Progress Party" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(3) A(0) C(11) T(1) V(0)" }, { "db_id": "party_people", "query": "SELECT count(*) FROM party_events", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "party_events" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "party_events" ], "question": "How many party events do we have?", "question_toks": [ "how", "many", "party", "event", "do", "we", "have", "?" ], "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": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "How", "many", "party", "events", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "party", "event" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "party", "NN" ], [ "event", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "party_people", "query": "SELECT count(*) FROM party_events", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "party_events" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "party_events" ], "question": "Count the number of party events.", "question_toks": [ "count", "number", "of", "party", "event", "." ], "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": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Count", "the", "number", "of", "party", "events", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "party", "event" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "event", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "party_people", "query": "SELECT T2.party_name , count(*) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id", "query_toks": [ "SELECT", "T2.party_name", ",", "count", "(", "*", ")", "FROM", "party_events", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.party_id", "=", "T2.party_id", "GROUP", "BY", "T1.party_id" ], "query_toks_no_value": [ "select", "t2", ".", "party_name", ",", "count", "(", "*", ")", "from", "party_events", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id", "group", "by", "t1", ".", "party_id" ], "question": "Show party names and the number of events for each party.", "question_toks": [ "show", "party", "name", "and", "number", "of", "event", "for", "each", "party", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 19, 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": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Show", "party", "names", "and", "the", "number", "of", "events", "for", "each", "party", "." ], "question_arg": [ [ "show" ], [ "party", "name" ], [ "and" ], [ "number" ], [ "of" ], [ "event" ], [ "for" ], [ "each" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "party", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "event", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "party", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(1) A(3) C(0) T(3)" }, { "db_id": "party_people", "query": "SELECT T2.party_name , count(*) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id", "query_toks": [ "SELECT", "T2.party_name", ",", "count", "(", "*", ")", "FROM", "party_events", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.party_id", "=", "T2.party_id", "GROUP", "BY", "T1.party_id" ], "query_toks_no_value": [ "select", "t2", ".", "party_name", ",", "count", "(", "*", ")", "from", "party_events", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id", "group", "by", "t1", ".", "party_id" ], "question": "How many events are there for each party?", "question_toks": [ "how", "many", "event", "are", "there", "for", "each", "party", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 19, 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": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "How", "many", "events", "are", "there", "for", "each", "party", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "event" ], [ "are" ], [ "there" ], [ "for" ], [ "each" ], [ "party" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "event", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "for", "IN" ], [ "each", "DT" ], [ "party", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(1) A(3) C(0) T(3)" }, { "db_id": "party_people", "query": "SELECT member_name FROM member EXCEPT SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id", "query_toks": [ "SELECT", "member_name", "FROM", "member", "EXCEPT", "SELECT", "T1.member_name", "FROM", "member", "AS", "T1", "JOIN", "party_events", "AS", "T2", "ON", "T1.member_id", "=", "T2.member_in_charge_id" ], "query_toks_no_value": [ "select", "member_name", "from", "member", "except", "select", "t1", ".", "member_name", "from", "member", "as", "t1", "join", "party_events", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_in_charge_id" ], "question": "Show all member names who are not in charge of any event.", "question_toks": [ "show", "all", "member", "name", "who", "are", "not", "in", "charge", "of", "any", "event", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, 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": [] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Show", "all", "member", "names", "who", "are", "not", "in", "charge", "of", "any", "event", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "member", "name" ], [ "who" ], [ "are" ], [ "not" ], [ "in" ], [ "charge" ], [ "of" ], [ "any" ], [ "event" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "member", "NN" ], [ "name", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "in", "IN" ], [ "charge", "NN" ], [ "of", "IN" ], [ "any", "DT" ], [ "event", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(13) T(2) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(18) A(0) C(12) T(2) Root(5) Sel(0) N(0) A(0) C(17) T(3)" }, { "db_id": "party_people", "query": "SELECT member_name FROM member EXCEPT SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id", "query_toks": [ "SELECT", "member_name", "FROM", "member", "EXCEPT", "SELECT", "T1.member_name", "FROM", "member", "AS", "T1", "JOIN", "party_events", "AS", "T2", "ON", "T1.member_id", "=", "T2.member_in_charge_id" ], "query_toks_no_value": [ "select", "member_name", "from", "member", "except", "select", "t1", ".", "member_name", "from", "member", "as", "t1", "join", "party_events", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_in_charge_id" ], "question": "What are the names of members who are not in charge of any events?", "question_toks": [ "what", "are", "name", "of", "member", "who", "are", "not", "in", "charge", "of", "any", "event", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, 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": [] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "members", "who", "are", "not", "in", "charge", "of", "any", "events", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "member" ], [ "who" ], [ "are" ], [ "not" ], [ "in" ], [ "charge" ], [ "of" ], [ "any" ], [ "event" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "in", "IN" ], [ "charge", "NN" ], [ "of", "IN" ], [ "any", "DT" ], [ "event", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(13) T(2) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(18) A(0) C(12) T(2) Root(5) Sel(0) N(0) A(0) C(17) T(3)" }, { "db_id": "party_people", "query": "SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.party_name", "FROM", "party_events", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.party_id", "=", "T2.party_id", "GROUP", "BY", "T1.party_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "party_name", "from", "party_events", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id", "group", "by", "t1", ".", "party_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the names of parties with at least 2 events?", "question_toks": [ "what", "are", "name", "of", "party", "with", "at", "least", "2", "event", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "parties", "with", "at", "least", "2", "events", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "party" ], [ "with" ], [ "at" ], [ "least" ], [ "2" ], [ "event" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "event", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(3) Filter(7) A(3) C(0) T(3) V(0)" }, { "db_id": "party_people", "query": "SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.party_name", "FROM", "party_events", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.party_id", "=", "T2.party_id", "GROUP", "BY", "T1.party_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "party_name", "from", "party_events", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id", "group", "by", "t1", ".", "party_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Return the names of parties that have two or more events.", "question_toks": [ "return", "name", "of", "party", "that", "have", "two", "or", "more", "event", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Return", "the", "names", "of", "parties", "that", "have", "two", "or", "more", "events", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "party" ], [ "that" ], [ "have" ], [ "two" ], [ "or" ], [ "more" ], [ "event" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "event", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(3) Filter(7) A(3) C(0) T(3) V(0)" }, { "db_id": "party_people", "query": "SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.member_name", "FROM", "member", "AS", "T1", "JOIN", "party_events", "AS", "T2", "ON", "T1.member_id", "=", "T2.member_in_charge_id", "GROUP", "BY", "T2.member_in_charge_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "member_name", "from", "member", "as", "t1", "join", "party_events", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_in_charge_id", "group", "by", "t2", ".", "member_in_charge_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of member in charge of greatest number of events?", "question_toks": [ "what", "is", "name", "of", "member", "in", "charge", "of", "greatest", "number", "of", "event", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "member", "in", "charge", "of", "greatest", "number", "of", "events", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "member" ], [ "in" ], [ "charge" ], [ "of" ], [ "greatest" ], [ "number" ], [ "of" ], [ "event" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "in", "IN" ], [ "charge", "NN" ], [ "of", "IN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "event", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(13) T(2) Sup(0) A(3) C(0) T(3) Filter(18) A(0) C(12) T(2) Root(5) Sel(0) N(0) A(0) C(17) T(3)" }, { "db_id": "party_people", "query": "SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.member_name", "FROM", "member", "AS", "T1", "JOIN", "party_events", "AS", "T2", "ON", "T1.member_id", "=", "T2.member_in_charge_id", "GROUP", "BY", "T2.member_in_charge_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "member_name", "from", "member", "as", "t1", "join", "party_events", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_in_charge_id", "group", "by", "t2", ".", "member_in_charge_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the name of the member who is in charge of the most events.", "question_toks": [ "return", "name", "of", "member", "who", "is", "in", "charge", "of", "most", "event", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Return", "the", "name", "of", "the", "member", "who", "is", "in", "charge", "of", "the", "most", "events", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "member" ], [ "who" ], [ "is" ], [ "in" ], [ "charge" ], [ "of" ], [ "most" ], [ "event" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "in", "IN" ], [ "charge", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "event", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(13) T(2) Sup(0) A(3) C(0) T(3) Filter(18) A(0) C(12) T(2) Root(5) Sel(0) N(0) A(0) C(17) T(3)" }, { "db_id": "party_people", "query": "SELECT event_name FROM party_events GROUP BY event_name HAVING count(*) > 2", "query_toks": [ "SELECT", "event_name", "FROM", "party_events", "GROUP", "BY", "event_name", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "event_name", "from", "party_events", "group", "by", "event_name", "having", "count", "(", "*", ")", ">", "value" ], "question": "find the event names that have more than 2 records.", "question_toks": [ "find", "event", "name", "that", "have", "more", "than", "2", "record", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "find", "the", "event", "names", "that", "have", "more", "than", "2", "records", "." ], "question_arg": [ [ "find" ], [ "event", "name" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "2" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "event", "NN" ], [ "name", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "record", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(5) A(3) C(0) T(3) V(0)" }, { "db_id": "party_people", "query": "SELECT event_name FROM party_events GROUP BY event_name HAVING count(*) > 2", "query_toks": [ "SELECT", "event_name", "FROM", "party_events", "GROUP", "BY", "event_name", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "event_name", "from", "party_events", "group", "by", "event_name", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which event names were used more than twice for party events?", "question_toks": [ "which", "event", "name", "were", "used", "more", "than", "twice", "for", "party", "event", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Which", "event", "names", "were", "used", "more", "than", "twice", "for", "party", "events", "?" ], "question_arg": [ [ "which" ], [ "event", "name" ], [ "were" ], [ "used" ], [ "more" ], [ "than" ], [ "twice" ], [ "for" ], [ "party", "event" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "event", "NN" ], [ "name", "NN" ], [ "were", "VBD" ], [ "used", "VBN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "twice", "RB" ], [ "for", "IN" ], [ "party", "NN" ], [ "event", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(5) A(3) C(0) T(3) V(0)" }, { "db_id": "party_people", "query": "SELECT count(*) FROM region AS t1 JOIN party AS t2 ON t1.region_id = t2.region_id JOIN party_events AS t3 ON t2.party_id = t3.party_id WHERE t1.region_name = \"United Kingdom\" AND t3.Event_Name = \"Annaual Meeting\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "region", "AS", "t1", "JOIN", "party", "AS", "t2", "ON", "t1.region_id", "=", "t2.region_id", "JOIN", "party_events", "AS", "t3", "ON", "t2.party_id", "=", "t3.party_id", "WHERE", "t1.region_name", "=", "``", "United", "Kingdom", "''", "AND", "t3.Event_Name", "=", "``", "Annaual", "Meeting", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "region", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "region_id", "=", "t2", ".", "region_id", "join", "party_events", "as", "t3", "on", "t2", ".", "party_id", "=", "t3", ".", "party_id", "where", "t1", ".", "region_name", "=", "value", "and", "t3", ".", "event_name", "=", "value" ], "question": "How many Annual Meeting events happened in the United Kingdom region?", "question_toks": [ "how", "many", "annual", "meeting", "event", "happened", "in", "united", "kingdom", "region", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, 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, 2, false ], null ], "\"United Kingdom\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Annaual Meeting\"", null ] ] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "How", "many", "Annual", "Meeting", "events", "happened", "in", "the", "United", "Kingdom", "region", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "annual" ], [ "meeting" ], [ "event" ], [ "happened" ], [ "in" ], [ "united" ], [ "kingdom" ], [ "region" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "annual", "JJ" ], [ "meeting", "NN" ], [ "event", "NN" ], [ "happened", "VBD" ], [ "in", "IN" ], [ "united", "JJ" ], [ "kingdom", "NN" ], [ "region", "NN" ], [ "?", "." ] ], "values": [ "United Kingdom", "Annaual Meeting" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(16) T(3) V(1)" }, { "db_id": "party_people", "query": "SELECT count(*) FROM region AS t1 JOIN party AS t2 ON t1.region_id = t2.region_id JOIN party_events AS t3 ON t2.party_id = t3.party_id WHERE t1.region_name = \"United Kingdom\" AND t3.Event_Name = \"Annaual Meeting\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "region", "AS", "t1", "JOIN", "party", "AS", "t2", "ON", "t1.region_id", "=", "t2.region_id", "JOIN", "party_events", "AS", "t3", "ON", "t2.party_id", "=", "t3.party_id", "WHERE", "t1.region_name", "=", "``", "United", "Kingdom", "''", "AND", "t3.Event_Name", "=", "``", "Annaual", "Meeting", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "region", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "region_id", "=", "t2", ".", "region_id", "join", "party_events", "as", "t3", "on", "t2", ".", "party_id", "=", "t3", ".", "party_id", "where", "t1", ".", "region_name", "=", "value", "and", "t3", ".", "event_name", "=", "value" ], "question": "Count the number of Annual Meeting events that took place in the region of the United Kingdom.", "question_toks": [ "count", "number", "of", "annual", "meeting", "event", "that", "took", "place", "in", "region", "of", "united", "kingdom", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, 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, 2, false ], null ], "\"United Kingdom\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Annaual Meeting\"", null ] ] }, "names": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "region id", "party name", "member id", "member name", "party id", "in office", "event id", "event name", "party id", "member in charge id" ], "table_names": [ "region", "party", "member", "party events" ], "col_set": [ "*", "region id", "region name", "date", "label", "format", "catalogue", "party id", "minister", "took office", "left office", "party name", "member id", "member name", "in office", "event id", "event name", "member in charge id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 1, "1": 1, "15": 7, "7": 7, "20": 13, "13": 13, "19": 7, "17": 17 }, "origin_question_toks": [ "Count", "the", "number", "of", "Annual", "Meeting", "events", "that", "took", "place", "in", "the", "region", "of", "the", "United", "Kingdom", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "annual" ], [ "meeting" ], [ "event" ], [ "that" ], [ "took" ], [ "place" ], [ "in" ], [ "region" ], [ "of" ], [ "united" ], [ "kingdom" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "annual", "JJ" ], [ "meeting", "NN" ], [ "event", "NN" ], [ "that", "WDT" ], [ "took", "VBD" ], [ "place", "NN" ], [ "in", "IN" ], [ "region", "NN" ], [ "of", "IN" ], [ "united", "JJ" ], [ "kingdom", "NN" ], [ ".", "." ] ], "values": [ "United Kingdom", "Annaual Meeting" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(16) T(3) V(1)" }, { "db_id": "pilot_record", "query": "SELECT count(*) FROM pilot", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "pilot" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "pilot" ], "question": "How many pilots are there?", "question_toks": [ "how", "many", "pilot", "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": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "pilot id", "aircraft id", "date" ], "table_names": [ "aircraft", "pilot", "pilot record" ], "col_set": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "17": 17, "8": 8 }, "origin_question_toks": [ "How", "many", "pilots", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "pilot" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "pilot", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "pilot_record", "query": "SELECT Pilot_name FROM pilot ORDER BY Rank ASC", "query_toks": [ "SELECT", "Pilot_name", "FROM", "pilot", "ORDER", "BY", "Rank", "ASC" ], "query_toks_no_value": [ "select", "pilot_name", "from", "pilot", "order", "by", "rank", "asc" ], "question": "List the names of pilots in ascending order of rank.", "question_toks": [ "list", "name", "of", "pilot", "in", "ascending", "order", "of", "rank", "." ], "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, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "pilot id", "aircraft id", "date" ], "table_names": [ "aircraft", "pilot", "pilot record" ], "col_set": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "17": 17, "8": 8 }, "origin_question_toks": [ "List", "the", "names", "of", "pilots", "in", "ascending", "order", "of", "rank", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "pilot" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "rank" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "rank", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(9) T(1) Order(1) A(0) C(10) T(1)" }, { "db_id": "pilot_record", "query": "SELECT POSITION , Team FROM pilot", "query_toks": [ "SELECT", "POSITION", ",", "Team", "FROM", "pilot" ], "query_toks_no_value": [ "select", "position", ",", "team", "from", "pilot" ], "question": "What are the positions and teams of pilots?", "question_toks": [ "what", "are", "position", "and", "team", "of", "pilot", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "pilot id", "aircraft id", "date" ], "table_names": [ "aircraft", "pilot", "pilot record" ], "col_set": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "17": 17, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "positions", "and", "teams", "of", "pilots", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "position" ], [ "and" ], [ "team" ], [ "of" ], [ "pilot" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "position", "NN" ], [ "and", "CC" ], [ "team", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(1) A(0) C(15) T(1)" }, { "db_id": "pilot_record", "query": "SELECT DISTINCT POSITION FROM pilot WHERE Age > 30", "query_toks": [ "SELECT", "DISTINCT", "POSITION", "FROM", "pilot", "WHERE", "Age", ">", "30" ], "query_toks_no_value": [ "select", "distinct", "position", "from", "pilot", "where", "age", ">", "value" ], "question": "List the distinct positions of pilots older than 30.", "question_toks": [ "list", "distinct", "position", "of", "pilot", "older", "than", "30", "." ], "sql": { "except": 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": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 30.0, null ] ] }, "names": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "pilot id", "aircraft id", "date" ], "table_names": [ "aircraft", "pilot", "pilot record" ], "col_set": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "17": 17, "8": 8 }, "origin_question_toks": [ "List", "the", "distinct", "positions", "of", "pilots", "older", "than", "30", "." ], "question_arg": [ [ "list" ], [ "distinct" ], [ "position" ], [ "of" ], [ "pilot" ], [ "older" ], [ "than" ], [ "30" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "distinct", "JJ" ], [ "position", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "older", "JJR" ], [ "than", "IN" ], [ "30", "CD" ], [ ".", "." ] ], "values": [ "30" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(13) T(1) Filter(5) A(0) C(11) T(1) V(0)" }, { "db_id": "pilot_record", "query": "SELECT Pilot_name FROM pilot WHERE Team = \"Bradley\" OR Team = \"Fordham\"", "query_toks": [ "SELECT", "Pilot_name", "FROM", "pilot", "WHERE", "Team", "=", "``", "Bradley", "''", "OR", "Team", "=", "``", "Fordham", "''" ], "query_toks_no_value": [ "select", "pilot_name", "from", "pilot", "where", "team", "=", "value", "or", "team", "=", "value" ], "question": "Show the names of pilots from team \"Bradley\" or \"Fordham\".", "question_toks": [ "show", "name", "of", "pilot", "from", "team", "'", "bradley", "'", "or", "'", "fordham", "'", "." ], "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, 15, false ], null ], "\"Bradley\"", null ], "or", [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Fordham\"", null ] ] }, "names": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "pilot id", "aircraft id", "date" ], "table_names": [ "aircraft", "pilot", "pilot record" ], "col_set": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "17": 17, "8": 8 }, "origin_question_toks": [ "Show", "the", "names", "of", "pilots", "from", "team", "``", "Bradley", "''", "or", "``", "Fordham", "''", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "pilot" ], [ "from" ], [ "team" ], [ "'" ], [ "bradley" ], [ "'" ], [ "or" ], [ "'" ], [ "fordham" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "from", "IN" ], [ "team", "NN" ], [ "'", "''" ], [ "bradley", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "fordham", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Bradley", "Fordham" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(1) Filter(2) A(0) C(15) T(1) V(0) Filter(2) A(0) C(15) T(1) V(1)" }, { "db_id": "pilot_record", "query": "SELECT Join_Year FROM pilot ORDER BY Rank ASC LIMIT 1", "query_toks": [ "SELECT", "Join_Year", "FROM", "pilot", "ORDER", "BY", "Rank", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "join_year", "from", "pilot", "order", "by", "rank", "asc", "limit", "value" ], "question": "What is the joined year of the pilot of the highest rank?", "question_toks": [ "what", "is", "joined", "year", "of", "pilot", "of", "highest", "rank", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "pilot id", "aircraft id", "date" ], "table_names": [ "aircraft", "pilot", "pilot record" ], "col_set": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "17": 17, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "joined", "year", "of", "the", "pilot", "of", "the", "highest", "rank", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "joined" ], [ "year" ], [ "of" ], [ "pilot" ], [ "of" ], [ "highest" ], [ "rank" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "joined", "JJ" ], [ "year", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "of", "IN" ], [ "highest", "JJS" ], [ "rank", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(14) T(1) Sup(1) A(0) C(10) T(1)" }, { "db_id": "pilot_record", "query": "SELECT Nationality , COUNT(*) FROM pilot GROUP BY Nationality", "query_toks": [ "SELECT", "Nationality", ",", "COUNT", "(", "*", ")", "FROM", "pilot", "GROUP", "BY", "Nationality" ], "query_toks_no_value": [ "select", "nationality", ",", "count", "(", "*", ")", "from", "pilot", "group", "by", "nationality" ], "question": "What are the different nationalities of pilots? Show each nationality and the number of pilots of each nationality.", "question_toks": [ "what", "are", "different", "nationality", "of", "pilot", "?", "show", "each", "nationality", "and", "number", "of", "pilot", "of", "each", "nationality", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "pilot id", "aircraft id", "date" ], "table_names": [ "aircraft", "pilot", "pilot record" ], "col_set": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "17": 17, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "different", "nationalities", "of", "pilots", "?", "Show", "each", "nationality", "and", "the", "number", "of", "pilots", "of", "each", "nationality", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "nationality" ], [ "of" ], [ "pilot" ], [ "?" ], [ "show" ], [ "each" ], [ "nationality" ], [ "and" ], [ "number" ], [ "of" ], [ "pilot" ], [ "of" ], [ "each" ], [ "nationality" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "nationality", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "?", "." ], [ "show", "VB" ], [ "each", "DT" ], [ "nationality", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "nationality", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(12) T(1) A(3) C(0) T(1)" }, { "db_id": "pilot_record", "query": "SELECT Nationality FROM pilot GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Nationality", "FROM", "pilot", "GROUP", "BY", "Nationality", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "nationality", "from", "pilot", "group", "by", "nationality", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the most common nationality of pilots.", "question_toks": [ "show", "most", "common", "nationality", "of", "pilot", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "pilot id", "aircraft id", "date" ], "table_names": [ "aircraft", "pilot", "pilot record" ], "col_set": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "17": 17, "8": 8 }, "origin_question_toks": [ "Show", "the", "most", "common", "nationality", "of", "pilots", "." ], "question_arg": [ [ "show" ], [ "most" ], [ "common" ], [ "nationality" ], [ "of" ], [ "pilot" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "nationality", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(12) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "pilot_record", "query": "SELECT POSITION FROM pilot WHERE Join_Year < 2000 INTERSECT SELECT POSITION FROM pilot WHERE Join_Year > 2005", "query_toks": [ "SELECT", "POSITION", "FROM", "pilot", "WHERE", "Join_Year", "<", "2000", "INTERSECT", "SELECT", "POSITION", "FROM", "pilot", "WHERE", "Join_Year", ">", "2005" ], "query_toks_no_value": [ "select", "position", "from", "pilot", "where", "join_year", "<", "value", "intersect", "select", "position", "from", "pilot", "where", "join_year", ">", "value" ], "question": "Show the pilot positions that have both pilots joining after year 2005 and pilots joining before 2000.", "question_toks": [ "show", "pilot", "position", "that", "have", "both", "pilot", "joining", "after", "year", "year", "and", "pilot", "joining", "before", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], 2005.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 14, false ], null ], 2000.0, null ] ] }, "names": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "pilot id", "aircraft id", "date" ], "table_names": [ "aircraft", "pilot", "pilot record" ], "col_set": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "17": 17, "8": 8 }, "origin_question_toks": [ "Show", "the", "pilot", "positions", "that", "have", "both", "pilots", "joining", "after", "year", "2005", "and", "pilots", "joining", "before", "2000", "." ], "question_arg": [ [ "show" ], [ "pilot" ], [ "position" ], [ "that" ], [ "have" ], [ "both" ], [ "pilot" ], [ "joining" ], [ "after" ], [ "year" ], [ "year" ], [ "and" ], [ "pilot" ], [ "joining" ], [ "before" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "pilot", "NN" ], [ "position", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "pilot", "NN" ], [ "joining", "NN" ], [ "after", "IN" ], [ "year", "NN" ], [ "2005", "CD" ], [ "and", "CC" ], [ "pilot", "NN" ], [ "joining", "NN" ], [ "before", "IN" ], [ "2000", "CD" ], [ ".", "." ] ], "values": [ "2005", "2000" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(13) T(1) Filter(4) A(0) C(14) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(13) T(1) Filter(5) A(0) C(14) T(1) V(0)" }, { "db_id": "pilot_record", "query": "SELECT T3.Pilot_name , T2.Model FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID", "query_toks": [ "SELECT", "T3.Pilot_name", ",", "T2.Model", "FROM", "pilot_record", "AS", "T1", "JOIN", "aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "pilot", "AS", "T3", "ON", "T1.Pilot_ID", "=", "T3.Pilot_ID" ], "query_toks_no_value": [ "select", "t3", ".", "pilot_name", ",", "t2", ".", "model", "from", "pilot_record", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "pilot", "as", "t3", "on", "t1", ".", "pilot_id", "=", "t3", ".", "pilot_id" ], "question": "Show the names of pilots and models of aircrafts they have flied with.", "question_toks": [ "show", "name", "of", "pilot", "and", "model", "of", "aircraft", "they", "have", "flied", "with", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "pilot id", "aircraft id", "date" ], "table_names": [ "aircraft", "pilot", "pilot record" ], "col_set": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "17": 17, "8": 8 }, "origin_question_toks": [ "Show", "the", "names", "of", "pilots", "and", "models", "of", "aircrafts", "they", "have", "flied", "with", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "pilot" ], [ "and" ], [ "model" ], [ "of" ], [ "aircraft" ], [ "they" ], [ "have" ], [ "flied" ], [ "with" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "and", "CC" ], [ "model", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "they", "PRP" ], [ "have", "VBP" ], [ "flied", "VBN" ], [ "with", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(1) 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": "pilot_record", "query": "SELECT T3.Pilot_name , T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID ORDER BY T3.Rank", "query_toks": [ "SELECT", "T3.Pilot_name", ",", "T2.Fleet_Series", "FROM", "pilot_record", "AS", "T1", "JOIN", "aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "pilot", "AS", "T3", "ON", "T1.Pilot_ID", "=", "T3.Pilot_ID", "ORDER", "BY", "T3.Rank" ], "query_toks_no_value": [ "select", "t3", ".", "pilot_name", ",", "t2", ".", "fleet_series", "from", "pilot_record", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "pilot", "as", "t3", "on", "t1", ".", "pilot_id", "=", "t3", ".", "pilot_id", "order", "by", "t3", ".", "rank" ], "question": "Show the names of pilots and fleet series of the aircrafts they have flied with in ascending order of the rank of the pilot.", "question_toks": [ "show", "name", "of", "pilot", "and", "fleet", "series", "of", "aircraft", "they", "have", "flied", "with", "in", "ascending", "order", "of", "rank", "of", "pilot", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "pilot id", "aircraft id", "date" ], "table_names": [ "aircraft", "pilot", "pilot record" ], "col_set": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "17": 17, "8": 8 }, "origin_question_toks": [ "Show", "the", "names", "of", "pilots", "and", "fleet", "series", "of", "the", "aircrafts", "they", "have", "flied", "with", "in", "ascending", "order", "of", "the", "rank", "of", "the", "pilot", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "pilot" ], [ "and" ], [ "fleet", "series" ], [ "of" ], [ "aircraft" ], [ "they" ], [ "have" ], [ "flied" ], [ "with" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "rank" ], [ "of" ], [ "pilot" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "and", "CC" ], [ "fleet", "JJ" ], [ "series", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "they", "PRP" ], [ "have", "VBP" ], [ "flied", "VBN" ], [ "with", "IN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "rank", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(9) T(1) A(0) C(5) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2) Order(1) A(0) C(10) T(1)" }, { "db_id": "pilot_record", "query": "SELECT T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID WHERE T3.Age < 34", "query_toks": [ "SELECT", "T2.Fleet_Series", "FROM", "pilot_record", "AS", "T1", "JOIN", "aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "pilot", "AS", "T3", "ON", "T1.Pilot_ID", "=", "T3.Pilot_ID", "WHERE", "T3.Age", "<", "34" ], "query_toks_no_value": [ "select", "t2", ".", "fleet_series", "from", "pilot_record", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "pilot", "as", "t3", "on", "t1", ".", "pilot_id", "=", "t3", ".", "pilot_id", "where", "t3", ".", "age", "<", "value" ], "question": "Show the fleet series of the aircrafts flied by pilots younger than 34", "question_toks": [ "show", "fleet", "series", "of", "aircraft", "flied", "by", "pilot", "younger", "than", "34" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 18, 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, 11, false ], null ], 34.0, null ] ] }, "names": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "pilot id", "aircraft id", "date" ], "table_names": [ "aircraft", "pilot", "pilot record" ], "col_set": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "17": 17, "8": 8 }, "origin_question_toks": [ "Show", "the", "fleet", "series", "of", "the", "aircrafts", "flied", "by", "pilots", "younger", "than", "34" ], "question_arg": [ [ "show" ], [ "fleet", "series" ], [ "of" ], [ "aircraft" ], [ "flied" ], [ "by" ], [ "pilot" ], [ "younger" ], [ "than" ], [ "34" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ] ], "nltk_pos": [ [ "show", "NN" ], [ "fleet", "JJ" ], [ "series", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "flied", "VBN" ], [ "by", "IN" ], [ "pilot", "NN" ], [ "younger", "JJR" ], [ "than", "IN" ], [ "34", "CD" ] ], "values": [ "34" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2) Filter(4) A(0) C(11) T(1) V(0)" }, { "db_id": "pilot_record", "query": "SELECT T2.Pilot_name , COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID = T2.pilot_ID GROUP BY T2.Pilot_name", "query_toks": [ "SELECT", "T2.Pilot_name", ",", "COUNT", "(", "*", ")", "FROM", "pilot_record", "AS", "T1", "JOIN", "pilot", "AS", "T2", "ON", "T1.pilot_ID", "=", "T2.pilot_ID", "GROUP", "BY", "T2.Pilot_name" ], "query_toks_no_value": [ "select", "t2", ".", "pilot_name", ",", "count", "(", "*", ")", "from", "pilot_record", "as", "t1", "join", "pilot", "as", "t2", "on", "t1", ".", "pilot_id", "=", "t2", ".", "pilot_id", "group", "by", "t2", ".", "pilot_name" ], "question": "Show the names of pilots and the number of records they have.", "question_toks": [ "show", "name", "of", "pilot", "and", "number", "of", "record", "they", "have", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "pilot id", "aircraft id", "date" ], "table_names": [ "aircraft", "pilot", "pilot record" ], "col_set": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "17": 17, "8": 8 }, "origin_question_toks": [ "Show", "the", "names", "of", "pilots", "and", "the", "number", "of", "records", "they", "have", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "pilot" ], [ "and" ], [ "number" ], [ "of" ], [ "record" ], [ "they" ], [ "have" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "record", "NN" ], [ "they", "PRP" ], [ "have", "VBP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(3) C(0) T(2)" }, { "db_id": "pilot_record", "query": "SELECT T2.Pilot_name , COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID = T2.pilot_ID GROUP BY T2.Pilot_name HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T2.Pilot_name", ",", "COUNT", "(", "*", ")", "FROM", "pilot_record", "AS", "T1", "JOIN", "pilot", "AS", "T2", "ON", "T1.pilot_ID", "=", "T2.pilot_ID", "GROUP", "BY", "T2.Pilot_name", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t2", ".", "pilot_name", ",", "count", "(", "*", ")", "from", "pilot_record", "as", "t1", "join", "pilot", "as", "t2", "on", "t1", ".", "pilot_id", "=", "t2", ".", "pilot_id", "group", "by", "t2", ".", "pilot_name", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show names of pilots that have more than one record.", "question_toks": [ "show", "name", "of", "pilot", "that", "have", "more", "than", "one", "record", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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 ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "pilot id", "aircraft id", "date" ], "table_names": [ "aircraft", "pilot", "pilot record" ], "col_set": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "17": 17, "8": 8 }, "origin_question_toks": [ "Show", "names", "of", "pilots", "that", "have", "more", "than", "one", "record", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "pilot" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "record", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(1) A(3) C(0) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "pilot_record", "query": "SELECT Pilot_name FROM pilot WHERE Pilot_ID NOT IN (SELECT Pilot_ID FROM pilot_record)", "query_toks": [ "SELECT", "Pilot_name", "FROM", "pilot", "WHERE", "Pilot_ID", "NOT", "IN", "(", "SELECT", "Pilot_ID", "FROM", "pilot_record", ")" ], "query_toks_no_value": [ "select", "pilot_name", "from", "pilot", "where", "pilot_id", "not", "in", "(", "select", "pilot_id", "from", "pilot_record", ")" ], "question": "List the names of pilots that do not have any record.", "question_toks": [ "list", "name", "of", "pilot", "that", "do", "not", "have", "any", "record", "." ], "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", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "pilot id", "aircraft id", "date" ], "table_names": [ "aircraft", "pilot", "pilot record" ], "col_set": [ "*", "aircraft id", "order year", "manufacturer", "model", "fleet series", "powertrain", "fuel propulsion", "pilot id", "pilot name", "rank", "age", "nationality", "position", "join year", "team", "record id", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "17": 17, "8": 8 }, "origin_question_toks": [ "List", "the", "names", "of", "pilots", "that", "do", "not", "have", "any", "record", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "pilot" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "record", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(19) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(2)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_status_code FROM Ref_Document_Status;", "query_toks": [ "SELECT", "document_status_code", "FROM", "Ref_Document_Status", ";" ], "query_toks_no_value": [ "select", "document_status_code", "from", "ref_document_status" ], "question": "What document status codes do we have?", "question_toks": [ "what", "document", "status", "code", "do", "we", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "What", "document", "status", "codes", "do", "we", "have", "?" ], "question_arg": [ [ "what" ], [ "document", "status", "code" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "document", "NN" ], [ "status", "NN" ], [ "code", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(7) T(3)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_status_description FROM Ref_Document_Status WHERE document_status_code = \"working\";", "query_toks": [ "SELECT", "document_status_description", "FROM", "Ref_Document_Status", "WHERE", "document_status_code", "=", "``", "working", "''", ";" ], "query_toks_no_value": [ "select", "document_status_description", "from", "ref_document_status", "where", "document_status_code", "=", "value" ], "question": "What is the description of document status code 'working'?", "question_toks": [ "what", "is", "description", "of", "document", "status", "code", "'", "working", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"working\"", null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "description", "of", "document", "status", "code", "'working", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "of" ], [ "document", "status", "code" ], [ "'" ], [ "working" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "status", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "working", "VBG" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "working" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(2) A(0) C(7) T(3) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_type_code FROM Ref_Document_Types;", "query_toks": [ "SELECT", "document_type_code", "FROM", "Ref_Document_Types", ";" ], "query_toks_no_value": [ "select", "document_type_code", "from", "ref_document_types" ], "question": "What document type codes do we have?", "question_toks": [ "what", "document", "type", "code", "do", "we", "have", "?" ], "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": [] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "What", "document", "type", "codes", "do", "we", "have", "?" ], "question_arg": [ [ "what" ], [ "document", "type", "code" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "document", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_type_description FROM Ref_Document_Types WHERE document_type_code = \"Paper\";", "query_toks": [ "SELECT", "document_type_description", "FROM", "Ref_Document_Types", "WHERE", "document_type_code", "=", "``", "Paper", "''", ";" ], "query_toks_no_value": [ "select", "document_type_description", "from", "ref_document_types", "where", "document_type_code", "=", "value" ], "question": "What is the description of document type 'Paper'?", "question_toks": [ "what", "is", "description", "of", "document", "type", "'", "paper", "'", "?" ], "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 ], "\"Paper\"", null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "description", "of", "document", "type", "'Paper", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "of" ], [ "document" ], [ "type" ], [ "'" ], [ "paper" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "type", "NN" ], [ "'", "''" ], [ "paper", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Paper" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(1) T(0) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT shipping_agent_name FROM Ref_Shipping_Agents;", "query_toks": [ "SELECT", "shipping_agent_name", "FROM", "Ref_Shipping_Agents", ";" ], "query_toks_no_value": [ "select", "shipping_agent_name", "from", "ref_shipping_agents" ], "question": "What are the shipping agent names?", "question_toks": [ "what", "are", "shipping", "agent", "name", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "What", "are", "the", "shipping", "agent", "names", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "shipping", "agent", "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "shipping", "VBG" ], [ "agent", "NN" ], [ "name", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(10) T(4)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name = \"UPS\";", "query_toks": [ "SELECT", "shipping_agent_code", "FROM", "Ref_Shipping_Agents", "WHERE", "shipping_agent_name", "=", "``", "UPS", "''", ";" ], "query_toks_no_value": [ "select", "shipping_agent_code", "from", "ref_shipping_agents", "where", "shipping_agent_name", "=", "value" ], "question": "What is the shipping agent code of shipping agent UPS?", "question_toks": [ "what", "is", "shipping", "agent", "code", "of", "shipping", "agent", "ups", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"UPS\"", null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "shipping", "agent", "code", "of", "shipping", "agent", "UPS", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "shipping", "agent", "code" ], [ "of" ], [ "shipping" ], [ "agent" ], [ "ups" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "shipping", "VBG" ], [ "agent", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "shipping", "VBG" ], [ "agent", "NN" ], [ "ups", "NNS" ], [ "?", "." ] ], "values": [ "UPS" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(4) Filter(2) A(0) C(10) T(4) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT role_code FROM ROLES;", "query_toks": [ "SELECT", "role_code", "FROM", "ROLES", ";" ], "query_toks_no_value": [ "select", "role_code", "from", "roles" ], "question": "What are all role codes?", "question_toks": [ "what", "are", "all", "role", "code", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "What", "are", "all", "role", "codes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "role", "code" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "role", "NN" ], [ "code", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(3) T(1)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT role_description FROM ROLES WHERE role_code = \"ED\";", "query_toks": [ "SELECT", "role_description", "FROM", "ROLES", "WHERE", "role_code", "=", "``", "ED", "''", ";" ], "query_toks_no_value": [ "select", "role_description", "from", "roles", "where", "role_code", "=", "value" ], "question": "What is the description of role code ED?", "question_toks": [ "what", "is", "description", "of", "role", "code", "ed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"ED\"", null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "description", "of", "role", "code", "ED", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "of" ], [ "role", "code" ], [ "ed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "of", "IN" ], [ "role", "NN" ], [ "code", "NN" ], [ "ed", "NN" ], [ "?", "." ] ], "values": [ "ED" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(3) T(1) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT count(*) FROM Employees;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Employees", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employees" ], "question": "How many employees do we have?", "question_toks": [ "how", "many", "employee", "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": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "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(6)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT T1.role_description FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code WHERE T2.employee_name = \"Koby\";", "query_toks": [ "SELECT", "T1.role_description", "FROM", "ROLES", "AS", "T1", "JOIN", "Employees", "AS", "T2", "ON", "T1.role_code", "=", "T2.role_code", "WHERE", "T2.employee_name", "=", "``", "Koby", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "role_description", "from", "roles", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "role_code", "=", "t2", ".", "role_code", "where", "t2", ".", "employee_name", "=", "value" ], "question": "What is the role of the employee named Koby?", "question_toks": [ "what", "is", "role", "of", "employee", "named", "koby", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Koby\"", null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "role", "of", "the", "employee", "named", "Koby", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "role" ], [ "of" ], [ "employee" ], [ "named" ], [ "koby" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "role", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "named", "VBN" ], [ "koby", "NN" ], [ "?", "." ] ], "values": [ "Koby" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(17) T(6) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_id , receipt_date FROM Documents;", "query_toks": [ "SELECT", "document_id", ",", "receipt_date", "FROM", "Documents", ";" ], "query_toks_no_value": [ "select", "document_id", ",", "receipt_date", "from", "documents" ], "question": "List all document ids and receipt dates of documents.", "question_toks": [ "list", "all", "document", "id", "and", "receipt", "date", "of", "document", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "List", "all", "document", "ids", "and", "receipt", "dates", "of", "documents", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "document", "id" ], [ "and" ], [ "receipt", "date" ], [ "of" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "document", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "receipt", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(12) T(5) A(0) C(13) T(5)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT T1.role_description , T2.role_code , count(*) FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code GROUP BY T2.role_code;", "query_toks": [ "SELECT", "T1.role_description", ",", "T2.role_code", ",", "count", "(", "*", ")", "FROM", "ROLES", "AS", "T1", "JOIN", "Employees", "AS", "T2", "ON", "T1.role_code", "=", "T2.role_code", "GROUP", "BY", "T2.role_code", ";" ], "query_toks_no_value": [ "select", "t1", ".", "role_description", ",", "t2", ".", "role_code", ",", "count", "(", "*", ")", "from", "roles", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "role_code", "=", "t2", ".", "role_code", "group", "by", "t2", ".", "role_code" ], "question": "How many employees does each role have? List role description, id and number of employees.", "question_toks": [ "how", "many", "employee", "doe", "each", "role", "have", "?", "list", "role", "description", ",", "id", "and", "number", "of", "employee", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "How", "many", "employees", "does", "each", "role", "have", "?", "List", "role", "description", ",", "id", "and", "number", "of", "employees", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "employee" ], [ "doe" ], [ "each" ], [ "role" ], [ "have" ], [ "?" ], [ "list" ], [ "role", "description" ], [ "," ], [ "id" ], [ "and" ], [ "number" ], [ "of" ], [ "employee" ], [ "." ] ], "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" ], [ "employee", "NN" ], [ "doe", "NNS" ], [ "each", "DT" ], [ "role", "NN" ], [ "have", "VBP" ], [ "?", "." ], [ "list", "JJ" ], [ "role", "NN" ], [ "description", "NN" ], [ ",", "," ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(4) T(1) A(0) C(3) T(6) A(3) C(0) T(6)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT Roles.role_description , count(Employees.employee_id) FROM ROLES JOIN Employees ON Employees.role_code = Roles.role_code GROUP BY Employees.role_code HAVING count(Employees.employee_id) > 1;", "query_toks": [ "SELECT", "Roles.role_description", ",", "count", "(", "Employees.employee_id", ")", "FROM", "ROLES", "JOIN", "Employees", "ON", "Employees.role_code", "=", "Roles.role_code", "GROUP", "BY", "Employees.role_code", "HAVING", "count", "(", "Employees.employee_id", ")", ">", "1", ";" ], "query_toks_no_value": [ "select", "roles.role_description", ",", "count", "(", "employees.employee_id", ")", "from", "roles", "join", "employees", "on", "employees.role_code", "=", "roles.role_code", "group", "by", "employees.role_code", "having", "count", "(", "employees.employee_id", ")", ">", "value" ], "question": "List roles that have more than one employee. List the role description and number of employees.", "question_toks": [ "list", "role", "that", "have", "more", "than", "one", "employee", ".", "list", "role", "description", "and", "number", "of", "employee", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [ [ false, 3, [ 0, [ 3, 19, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "List", "roles", "that", "have", "more", "than", "one", "employee", ".", "List", "the", "role", "description", "and", "number", "of", "employees", "." ], "question_arg": [ [ "list" ], [ "role" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "employee" ], [ "." ], [ "list" ], [ "role", "description" ], [ "and" ], [ "number" ], [ "of" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "role", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "employee", "NN" ], [ ".", "." ], [ "list", "NN" ], [ "role", "NN" ], [ "description", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(3) C(16) T(6) Filter(5) A(3) C(16) T(6) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT Ref_Document_Status.document_status_description FROM Ref_Document_Status JOIN Documents ON Documents.document_status_code = Ref_Document_Status.document_status_code WHERE Documents.document_id = 1;", "query_toks": [ "SELECT", "Ref_Document_Status.document_status_description", "FROM", "Ref_Document_Status", "JOIN", "Documents", "ON", "Documents.document_status_code", "=", "Ref_Document_Status.document_status_code", "WHERE", "Documents.document_id", "=", "1", ";" ], "query_toks_no_value": [ "select", "ref_document_status.document_status_description", "from", "ref_document_status", "join", "documents", "on", "documents.document_status_code", "=", "ref_document_status.document_status_code", "where", "documents.document_id", "=", "value" ], "question": "What is the document status description of the document with id 1?", "question_toks": [ "what", "is", "document", "status", "description", "of", "document", "with", "id", "1", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "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 ], 1.0, null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "document", "status", "description", "of", "the", "document", "with", "id", "1", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "document", "status", "description" ], [ "of" ], [ "document" ], [ "with" ], [ "id" ], [ "1" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "document", "JJ" ], [ "status", "NN" ], [ "description", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "id", "NN" ], [ "1", "CD" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(2) A(0) C(12) T(5) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT count(*) FROM Documents WHERE document_status_code = \"done\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Documents", "WHERE", "document_status_code", "=", "``", "done", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "documents", "where", "document_status_code", "=", "value" ], "question": "How many documents have the status code done?", "question_toks": [ "how", "many", "document", "have", "status", "code", "done", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"done\"", null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "How", "many", "documents", "have", "the", "status", "code", "done", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "document" ], [ "have" ], [ "document", "status", "code" ], [ "done" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "document", "NN" ], [ "have", "VBP" ], [ "status", "NN" ], [ "code", "NN" ], [ "done", "VBN" ], [ "?", "." ] ], "values": [ "done" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(7) T(5) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_type_code FROM Documents WHERE document_id = 2;", "query_toks": [ "SELECT", "document_type_code", "FROM", "Documents", "WHERE", "document_id", "=", "2", ";" ], "query_toks_no_value": [ "select", "document_type_code", "from", "documents", "where", "document_id", "=", "value" ], "question": "List the document type code for the document with the id 2.", "question_toks": [ "list", "document", "type", "code", "for", "document", "with", "id", "2", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], 2.0, null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "List", "the", "document", "type", "code", "for", "the", "document", "with", "the", "id", "2", "." ], "question_arg": [ [ "list" ], [ "document", "type", "code" ], [ "for" ], [ "document" ], [ "with" ], [ "id" ], [ "2" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "document", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "id", "JJ" ], [ "2", "CD" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(5) Filter(2) A(0) C(12) T(5) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_id FROM Documents WHERE document_status_code = \"done\" AND document_type_code = \"Paper\";", "query_toks": [ "SELECT", "document_id", "FROM", "Documents", "WHERE", "document_status_code", "=", "``", "done", "''", "AND", "document_type_code", "=", "``", "Paper", "''", ";" ], "query_toks_no_value": [ "select", "document_id", "from", "documents", "where", "document_status_code", "=", "value", "and", "document_type_code", "=", "value" ], "question": "List the document ids for any documents with the status code done and the type code paper.", "question_toks": [ "list", "document", "id", "for", "any", "document", "with", "status", "code", "done", "and", "type", "code", "paper", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"done\"", null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Paper\"", null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "List", "the", "document", "ids", "for", "any", "documents", "with", "the", "status", "code", "done", "and", "the", "type", "code", "paper", "." ], "question_arg": [ [ "list" ], [ "document", "id" ], [ "for" ], [ "any" ], [ "document" ], [ "with" ], [ "document", "status", "code" ], [ "done" ], [ "and" ], [ "document", "type", "code" ], [ "paper" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "document", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "any", "DT" ], [ "document", "NN" ], [ "with", "IN" ], [ "status", "NN" ], [ "code", "NN" ], [ "done", "VBN" ], [ "and", "CC" ], [ "type", "JJ" ], [ "code", "NN" ], [ "paper", "NN" ], [ ".", "." ] ], "values": [ "Paper", "done" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(5) Filter(0) Filter(2) A(0) C(7) T(5) V(1) Filter(2) A(0) C(1) T(5) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT Ref_Shipping_Agents.shipping_agent_name FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Documents.document_id = 2;", "query_toks": [ "SELECT", "Ref_Shipping_Agents.shipping_agent_name", "FROM", "Ref_Shipping_Agents", "JOIN", "Documents", "ON", "Documents.shipping_agent_code", "=", "Ref_Shipping_Agents.shipping_agent_code", "WHERE", "Documents.document_id", "=", "2", ";" ], "query_toks_no_value": [ "select", "ref_shipping_agents.shipping_agent_name", "from", "ref_shipping_agents", "join", "documents", "on", "documents.shipping_agent_code", "=", "ref_shipping_agents.shipping_agent_code", "where", "documents.document_id", "=", "value" ], "question": "What is the name of the shipping agent of the document with id 2?", "question_toks": [ "what", "is", "name", "of", "shipping", "agent", "of", "document", "with", "id", "2", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], 2.0, null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "shipping", "agent", "of", "the", "document", "with", "id", "2", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "shipping" ], [ "agent" ], [ "of" ], [ "document" ], [ "with" ], [ "id" ], [ "2" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "shipping", "VBG" ], [ "agent", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "id", "NN" ], [ "2", "CD" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(4) Filter(2) A(0) C(12) T(5) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT count(*) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Ref_Shipping_Agents", "JOIN", "Documents", "ON", "Documents.shipping_agent_code", "=", "Ref_Shipping_Agents.shipping_agent_code", "WHERE", "Ref_Shipping_Agents.shipping_agent_name", "=", "``", "USPS", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_shipping_agents", "join", "documents", "on", "documents.shipping_agent_code", "=", "ref_shipping_agents.shipping_agent_code", "where", "ref_shipping_agents.shipping_agent_name", "=", "value" ], "question": "How many documents were shipped by USPS?", "question_toks": [ "how", "many", "document", "were", "shipped", "by", "usps", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"USPS\"", null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "How", "many", "documents", "were", "shipped", "by", "USPS", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "document" ], [ "were" ], [ "shipped" ], [ "by" ], [ "usps" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "document", "NN" ], [ "were", "VBD" ], [ "shipped", "VBN" ], [ "by", "IN" ], [ "usps", "NN" ], [ "?", "." ] ], "values": [ "USPS", "US" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(10) T(4) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT Ref_Shipping_Agents.shipping_agent_name , count(Documents.document_id) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code GROUP BY Ref_Shipping_Agents.shipping_agent_code ORDER BY count(Documents.document_id) DESC LIMIT 1;", "query_toks": [ "SELECT", "Ref_Shipping_Agents.shipping_agent_name", ",", "count", "(", "Documents.document_id", ")", "FROM", "Ref_Shipping_Agents", "JOIN", "Documents", "ON", "Documents.shipping_agent_code", "=", "Ref_Shipping_Agents.shipping_agent_code", "GROUP", "BY", "Ref_Shipping_Agents.shipping_agent_code", "ORDER", "BY", "count", "(", "Documents.document_id", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "ref_shipping_agents.shipping_agent_name", ",", "count", "(", "documents.document_id", ")", "from", "ref_shipping_agents", "join", "documents", "on", "documents.shipping_agent_code", "=", "ref_shipping_agents.shipping_agent_code", "group", "by", "ref_shipping_agents.shipping_agent_code", "order", "by", "count", "(", "documents.document_id", ")", "desc", "limit", "value" ], "question": "Which shipping agent shipped the most documents? List the shipping agent name and the number of documents.", "question_toks": [ "which", "shipping", "agent", "shipped", "most", "document", "?", "list", "shipping", "agent", "name", "and", "number", "of", "document", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "Which", "shipping", "agent", "shipped", "the", "most", "documents", "?", "List", "the", "shipping", "agent", "name", "and", "the", "number", "of", "documents", "." ], "question_arg": [ [ "which" ], [ "shipping" ], [ "agent" ], [ "shipped" ], [ "most" ], [ "document" ], [ "?" ], [ "list" ], [ "shipping", "agent", "name" ], [ "and" ], [ "number" ], [ "of" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "shipping", "VBG" ], [ "agent", "NN" ], [ "shipped", "VBD" ], [ "most", "RBS" ], [ "document", "JJ" ], [ "?", "." ], [ "list", "NN" ], [ "shipping", "VBG" ], [ "agent", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(10) T(4) A(3) C(12) T(5) Sup(0) A(3) C(12) T(5)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT receipt_date FROM Documents WHERE document_id = 3;", "query_toks": [ "SELECT", "receipt_date", "FROM", "Documents", "WHERE", "document_id", "=", "3", ";" ], "query_toks_no_value": [ "select", "receipt_date", "from", "documents", "where", "document_id", "=", "value" ], "question": "What is the receipt date of the document with id 3?", "question_toks": [ "what", "is", "receipt", "date", "of", "document", "with", "id", "3", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], 3.0, null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "receipt", "date", "of", "the", "document", "with", "id", "3", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "receipt", "date" ], [ "of" ], [ "document" ], [ "with" ], [ "id" ], [ "3" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "receipt", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "id", "NN" ], [ "3", "CD" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(5) Filter(2) A(0) C(12) T(5) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT Addresses.address_details FROM Addresses JOIN Documents_Mailed ON Documents_Mailed.mailed_to_address_id = Addresses.address_id WHERE document_id = 4;", "query_toks": [ "SELECT", "Addresses.address_details", "FROM", "Addresses", "JOIN", "Documents_Mailed", "ON", "Documents_Mailed.mailed_to_address_id", "=", "Addresses.address_id", "WHERE", "document_id", "=", "4", ";" ], "query_toks_no_value": [ "select", "addresses.address_details", "from", "addresses", "join", "documents_mailed", "on", "documents_mailed.mailed_to_address_id", "=", "addresses.address_id", "where", "document_id", "=", "value" ], "question": "What address was the document with id 4 mailed to?", "question_toks": [ "what", "address", "wa", "document", "with", "id", "4", "mailed", "to", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 33, false ], null ], 4.0, null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "What", "address", "was", "the", "document", "with", "id", "4", "mailed", "to", "?" ], "question_arg": [ [ "what" ], [ "address" ], [ "wa" ], [ "document" ], [ "with" ], [ "id" ], [ "4" ], [ "mailed" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "address", "NN" ], [ "wa", "VBD" ], [ "document", "NN" ], [ "with", "IN" ], [ "id", "JJ" ], [ "4", "CD" ], [ "mailed", "VBN" ], [ "to", "TO" ], [ "?", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(2) A(0) C(12) T(10) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT mailing_date FROM Documents_Mailed WHERE document_id = 7;", "query_toks": [ "SELECT", "mailing_date", "FROM", "Documents_Mailed", "WHERE", "document_id", "=", "7", ";" ], "query_toks_no_value": [ "select", "mailing_date", "from", "documents_mailed", "where", "document_id", "=", "value" ], "question": "What is the mail date of the document with id 7?", "question_toks": [ "what", "is", "mail", "date", "of", "document", "with", "id", "7", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 33, false ], null ], 7.0, null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "mail", "date", "of", "the", "document", "with", "id", "7", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "mail" ], [ "date" ], [ "of" ], [ "document" ], [ "with" ], [ "id" ], [ "7" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "mail", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "id", "NN" ], [ "7", "CD" ], [ "?", "." ] ], "values": [ "7" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(22) T(10) Filter(2) A(0) C(12) T(10) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_id FROM Documents WHERE document_status_code = \"done\" AND document_type_code = \"Paper\" EXCEPT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\";", "query_toks": [ "SELECT", "document_id", "FROM", "Documents", "WHERE", "document_status_code", "=", "``", "done", "''", "AND", "document_type_code", "=", "``", "Paper", "''", "EXCEPT", "SELECT", "document_id", "FROM", "Documents", "JOIN", "Ref_Shipping_Agents", "ON", "Documents.shipping_agent_code", "=", "Ref_Shipping_Agents.shipping_agent_code", "WHERE", "Ref_Shipping_Agents.shipping_agent_name", "=", "``", "USPS", "''", ";" ], "query_toks_no_value": [ "select", "document_id", "from", "documents", "where", "document_status_code", "=", "value", "and", "document_type_code", "=", "value", "except", "select", "document_id", "from", "documents", "join", "ref_shipping_agents", "on", "documents.shipping_agent_code", "=", "ref_shipping_agents.shipping_agent_code", "where", "ref_shipping_agents.shipping_agent_name", "=", "value" ], "question": "List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS.", "question_toks": [ "list", "document", "id", "of", "document", "with", "status", "done", "and", "type", "paper", ",", "which", "not", "shipped", "by", "shipping", "agent", "named", "usps", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "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 ], "\"USPS\"", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"done\"", null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Paper\"", null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "List", "the", "document", "ids", "of", "documents", "with", "the", "status", "done", "and", "type", "Paper", ",", "which", "not", "shipped", "by", "the", "shipping", "agent", "named", "USPS", "." ], "question_arg": [ [ "list" ], [ "document", "id" ], [ "of" ], [ "document" ], [ "with" ], [ "status" ], [ "done" ], [ "and" ], [ "type" ], [ "paper" ], [ "," ], [ "which" ], [ "not" ], [ "shipped" ], [ "by" ], [ "shipping" ], [ "agent" ], [ "named" ], [ "usps" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "document", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "status", "NN" ], [ "done", "VBN" ], [ "and", "CC" ], [ "type", "JJ" ], [ "paper", "NN" ], [ ",", "," ], [ "which", "WDT" ], [ "not", "RB" ], [ "shipped", "VBN" ], [ "by", "IN" ], [ "shipping", "VBG" ], [ "agent", "NN" ], [ "named", "VBN" ], [ "usps", "NN" ], [ ".", "." ] ], "values": [ "Paper", "USPS", "US", "done" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(12) T(5) Filter(0) Filter(2) A(0) C(7) T(5) V(3) Filter(2) A(0) C(1) T(5) V(0) Root(3) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(10) T(4) V(1)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_id FROM Documents WHERE document_status_code = \"done\" AND document_type_code = \"Paper\" INTERSECT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\";", "query_toks": [ "SELECT", "document_id", "FROM", "Documents", "WHERE", "document_status_code", "=", "``", "done", "''", "AND", "document_type_code", "=", "``", "Paper", "''", "INTERSECT", "SELECT", "document_id", "FROM", "Documents", "JOIN", "Ref_Shipping_Agents", "ON", "Documents.shipping_agent_code", "=", "Ref_Shipping_Agents.shipping_agent_code", "WHERE", "Ref_Shipping_Agents.shipping_agent_name", "=", "``", "USPS", "''", ";" ], "query_toks_no_value": [ "select", "document_id", "from", "documents", "where", "document_status_code", "=", "value", "and", "document_type_code", "=", "value", "intersect", "select", "document_id", "from", "documents", "join", "ref_shipping_agents", "on", "documents.shipping_agent_code", "=", "ref_shipping_agents.shipping_agent_code", "where", "ref_shipping_agents.shipping_agent_name", "=", "value" ], "question": "List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS.", "question_toks": [ "list", "document", "id", "of", "document", "status", "is", "done", "and", "document", "type", "is", "paper", "and", "document", "is", "shipped", "by", "shipping", "agent", "named", "usps", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "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 ], "\"USPS\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"done\"", null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Paper\"", null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "List", "document", "id", "of", "documents", "status", "is", "done", "and", "document", "type", "is", "Paper", "and", "the", "document", "is", "shipped", "by", "shipping", "agent", "named", "USPS", "." ], "question_arg": [ [ "list" ], [ "document", "id" ], [ "of" ], [ "document" ], [ "status" ], [ "is" ], [ "done" ], [ "and" ], [ "document" ], [ "type" ], [ "is" ], [ "paper" ], [ "and" ], [ "document" ], [ "is" ], [ "shipped" ], [ "by" ], [ "shipping" ], [ "agent" ], [ "named" ], [ "usps" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "document", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "status", "NN" ], [ "is", "VBZ" ], [ "done", "VBN" ], [ "and", "CC" ], [ "document", "JJ" ], [ "type", "NN" ], [ "is", "VBZ" ], [ "paper", "NN" ], [ "and", "CC" ], [ "document", "NN" ], [ "is", "VBZ" ], [ "shipped", "VBN" ], [ "by", "IN" ], [ "shipping", "VBG" ], [ "agent", "NN" ], [ "named", "VBN" ], [ "usps", "NN" ], [ ".", "." ] ], "values": [ "Paper", "USPS", "US", "done" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(12) T(5) Filter(0) Filter(2) A(0) C(7) T(5) V(3) Filter(2) A(0) C(1) T(5) V(0) Root(3) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(10) T(4) V(1)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT draft_details FROM Document_Drafts WHERE document_id = 7;", "query_toks": [ "SELECT", "draft_details", "FROM", "Document_Drafts", "WHERE", "document_id", "=", "7", ";" ], "query_toks_no_value": [ "select", "draft_details", "from", "document_drafts", "where", "document_id", "=", "value" ], "question": "What is draft detail of the document with id 7?", "question_toks": [ "what", "is", "draft", "detail", "of", "document", "with", "id", "7", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], 7.0, null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "What", "is", "draft", "detail", "of", "the", "document", "with", "id", "7", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "draft", "detail" ], [ "of" ], [ "document" ], [ "with" ], [ "id" ], [ "7" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "draft", "JJ" ], [ "detail", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "id", "NN" ], [ "7", "CD" ], [ "?", "." ] ], "values": [ "7" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(7) Filter(2) A(0) C(12) T(7) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT count(*) FROM Draft_Copies WHERE document_id = 2;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Draft_Copies", "WHERE", "document_id", "=", "2", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "draft_copies", "where", "document_id", "=", "value" ], "question": "How many draft copies does the document with id 2 have?", "question_toks": [ "how", "many", "draft", "copy", "doe", "document", "with", "id", "2", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], 2.0, null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "How", "many", "draft", "copies", "does", "the", "document", "with", "id", "2", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "draft", "copy" ], [ "doe" ], [ "document" ], [ "with" ], [ "id" ], [ "2" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "draft", "NN" ], [ "copy", "NN" ], [ "doe", "NN" ], [ "document", "NN" ], [ "with", "IN" ], [ "id", "JJ" ], [ "2", "CD" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(8) Filter(2) A(0) C(12) T(8) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_id , count(copy_number) FROM Draft_Copies GROUP BY document_id ORDER BY count(copy_number) DESC LIMIT 1;", "query_toks": [ "SELECT", "document_id", ",", "count", "(", "copy_number", ")", "FROM", "Draft_Copies", "GROUP", "BY", "document_id", "ORDER", "BY", "count", "(", "copy_number", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "document_id", ",", "count", "(", "copy_number", ")", "from", "draft_copies", "group", "by", "document_id", "order", "by", "count", "(", "copy_number", ")", "desc", "limit", "value" ], "question": "Which document has the most draft copies? List its document id and number of draft copies.", "question_toks": [ "which", "document", "ha", "most", "draft", "copy", "?", "list", "it", "document", "id", "and", "number", "of", "draft", "copy", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 26, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 28, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 3, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "Which", "document", "has", "the", "most", "draft", "copies", "?", "List", "its", "document", "id", "and", "number", "of", "draft", "copies", "." ], "question_arg": [ [ "which" ], [ "document" ], [ "ha" ], [ "most" ], [ "draft", "copy" ], [ "?" ], [ "list" ], [ "it" ], [ "document", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "draft", "copy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "document", "NN" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "draft", "JJ" ], [ "copy", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "it", "PRP" ], [ "document", "VBD" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "draft", "NN" ], [ "copy", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(12) T(8) A(3) C(20) T(8) Sup(0) A(3) C(20) T(8)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_id , count(*) FROM Draft_Copies GROUP BY document_id HAVING count(*) > 1;", "query_toks": [ "SELECT", "document_id", ",", "count", "(", "*", ")", "FROM", "Draft_Copies", "GROUP", "BY", "document_id", "HAVING", "count", "(", "*", ")", ">", "1", ";" ], "query_toks_no_value": [ "select", "document_id", ",", "count", "(", "*", ")", "from", "draft_copies", "group", "by", "document_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which documents have more than 1 draft copies? List document id and number of draft copies.", "question_toks": [ "which", "document", "have", "more", "than", "1", "draft", "copy", "?", "list", "document", "id", "and", "number", "of", "draft", "copy", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 26, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "Which", "documents", "have", "more", "than", "1", "draft", "copies", "?", "List", "document", "id", "and", "number", "of", "draft", "copies", "." ], "question_arg": [ [ "which" ], [ "document" ], [ "have" ], [ "more" ], [ "than" ], [ "1" ], [ "draft", "copy" ], [ "?" ], [ "list" ], [ "document", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "draft", "copy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "document", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1", "CD" ], [ "draft", "NN" ], [ "copy", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "document", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "draft", "NN" ], [ "copy", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(12) T(8) A(3) C(0) T(8) Filter(5) A(3) C(0) T(8) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id WHERE Circulation_History.document_id = 1;", "query_toks": [ "SELECT", "Employees.employee_name", "FROM", "Employees", "JOIN", "Circulation_History", "ON", "Circulation_History.employee_id", "=", "Employees.employee_id", "WHERE", "Circulation_History.document_id", "=", "1", ";" ], "query_toks_no_value": [ "select", "employees.employee_name", "from", "employees", "join", "circulation_history", "on", "circulation_history.employee_id", "=", "employees.employee_id", "where", "circulation_history.document_id", "=", "value" ], "question": "List all employees in the circulation history of the document with id 1. List the employee's name.", "question_toks": [ "list", "all", "employee", "in", "circulation", "history", "of", "document", "with", "id", "1", ".", "list", "employee", "'s", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], 1.0, null ] ] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "List", "all", "employees", "in", "the", "circulation", "history", "of", "the", "document", "with", "id", "1", ".", "List", "the", "employee", "'s", "name", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "employee" ], [ "in" ], [ "circulation", "history" ], [ "of" ], [ "document" ], [ "with" ], [ "id" ], [ "1" ], [ "." ], [ "list" ], [ "employee" ], [ "'s" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "in", "IN" ], [ "circulation", "NN" ], [ "history", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "id", "JJ" ], [ "1", "CD" ], [ ".", "." ], [ "list", "NN" ], [ "employee", "NN" ], [ "'s", "POS" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(17) T(6) Filter(2) A(0) C(12) T(9) V(0)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT employee_name FROM Employees EXCEPT SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id", "query_toks": [ "SELECT", "employee_name", "FROM", "Employees", "EXCEPT", "SELECT", "Employees.employee_name", "FROM", "Employees", "JOIN", "Circulation_History", "ON", "Circulation_History.employee_id", "=", "Employees.employee_id" ], "query_toks_no_value": [ "select", "employee_name", "from", "employees", "except", "select", "employees.employee_name", "from", "employees", "join", "circulation_history", "on", "circulation_history.employee_id", "=", "employees.employee_id" ], "question": "List the employees who have not showed up in any circulation history of documents. List the employee's name.", "question_toks": [ "list", "employee", "who", "have", "not", "showed", "up", "in", "any", "circulation", "history", "of", "document", ".", "list", "employee", "'s", "name", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 19, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "List", "the", "employees", "who", "have", "not", "showed", "up", "in", "any", "circulation", "history", "of", "documents", ".", "List", "the", "employee", "'s", "name", "." ], "question_arg": [ [ "list" ], [ "employee" ], [ "who" ], [ "have" ], [ "not" ], [ "showed" ], [ "up" ], [ "in" ], [ "any" ], [ "circulation", "history" ], [ "of" ], [ "document" ], [ "." ], [ "list" ], [ "employee" ], [ "'s" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "not", "RB" ], [ "showed", "VBN" ], [ "up", "RP" ], [ "in", "IN" ], [ "any", "DT" ], [ "circulation", "NN" ], [ "history", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ ".", "." ], [ "list", "NN" ], [ "employee", "NN" ], [ "'s", "POS" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(17) T(6) Root(3) Sel(0) N(0) A(0) C(17) T(6) Filter(18) A(0) C(16) T(6) Root(5) Sel(0) N(0) A(0) C(16) T(9)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT Employees.employee_name , count(*) FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY Circulation_History.document_id , Circulation_History.draft_number , Circulation_History.copy_number ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "Employees.employee_name", ",", "count", "(", "*", ")", "FROM", "Employees", "JOIN", "Circulation_History", "ON", "Circulation_History.employee_id", "=", "Employees.employee_id", "GROUP", "BY", "Circulation_History.document_id", ",", "Circulation_History.draft_number", ",", "Circulation_History.copy_number", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "employees.employee_name", ",", "count", "(", "*", ")", "from", "employees", "join", "circulation_history", "on", "circulation_history.employee_id", "=", "employees.employee_id", "group", "by", "circulation_history.document_id", ",", "circulation_history.draft_number", ",", "circulation_history.copy_number", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which employee has showed up in most circulation history documents. List the employee's name and the number of drafts and copies.", "question_toks": [ "which", "employee", "ha", "showed", "up", "in", "most", "circulation", "history", "document", ".", "list", "employee", "'s", "name", "and", "number", "of", "draft", "and", "copy", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 29, false ], [ 0, 30, false ], [ 0, 31, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "Which", "employee", "has", "showed", "up", "in", "most", "circulation", "history", "documents", ".", "List", "the", "employee", "'s", "name", "and", "the", "number", "of", "drafts", "and", "copies", "." ], "question_arg": [ [ "which" ], [ "employee" ], [ "ha" ], [ "showed" ], [ "up" ], [ "in" ], [ "most" ], [ "circulation", "history" ], [ "document" ], [ "." ], [ "list" ], [ "employee" ], [ "'s" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "draft" ], [ "and" ], [ "copy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "employee", "NN" ], [ "ha", "NN" ], [ "showed", "VBD" ], [ "up", "RP" ], [ "in", "IN" ], [ "most", "JJS" ], [ "circulation", "NN" ], [ "history", "NN" ], [ "document", "NN" ], [ ".", "." ], [ "list", "NN" ], [ "employee", "NN" ], [ "'s", "POS" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "draft", "NN" ], [ "and", "CC" ], [ "copy", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(17) T(6) A(3) C(0) T(9) Sup(0) A(3) C(0) T(9)" }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_id , count(DISTINCT employee_id) FROM Circulation_History GROUP BY document_id;", "query_toks": [ "SELECT", "document_id", ",", "count", "(", "DISTINCT", "employee_id", ")", "FROM", "Circulation_History", "GROUP", "BY", "document_id", ";" ], "query_toks_no_value": [ "select", "document_id", ",", "count", "(", "distinct", "employee_id", ")", "from", "circulation_history", "group", "by", "document_id" ], "question": "For each document, list the number of employees who have showed up in the circulation history of that document. List the document ids and number of employees.", "question_toks": [ "for", "each", "document", ",", "list", "number", "of", "employee", "who", "have", "showed", "up", "in", "circulation", "history", "of", "that", "document", ".", "list", "document", "id", "and", "number", "of", "employee", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ], [ 3, [ 0, [ 0, 32, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "document status code", "document type code", "shipping agent code", "receipt date", "receipt number", "other details", "employee id", "role code", "employee name", "other details", "document id", "draft number", "draft details", "document id", "draft number", "copy number", "document id", "draft number", "copy number", "employee id", "document id", "mailed to address id", "mailing date" ], "table_names": [ "reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed" ], "col_set": [ "*", "document type code", "document type description", "role code", "role description", "address id", "address details", "document status code", "document status description", "shipping agent code", "shipping agent name", "shipping agent description", "document id", "receipt date", "receipt number", "other details", "employee id", "employee name", "draft number", "draft details", "copy number", "mailed to address id", "mailing date" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "15": 9, "9": 9, "13": 7, "7": 7, "14": 1, "1": 1, "20": 3, "3": 3, "23": 23, "12": 12, "26": 26, "27": 30, "24": 27, "32": 19, "19": 19, "29": 29, "30": 27, "31": 28, "28": 31, "34": 5, "5": 5, "33": 33 }, "origin_question_toks": [ "For", "each", "document", ",", "list", "the", "number", "of", "employees", "who", "have", "showed", "up", "in", "the", "circulation", "history", "of", "that", "document", ".", "List", "the", "document", "ids", "and", "number", "of", "employees", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "document" ], [ "," ], [ "list" ], [ "number" ], [ "of" ], [ "employee" ], [ "who" ], [ "have" ], [ "showed" ], [ "up" ], [ "in" ], [ "circulation", "history" ], [ "of" ], [ "that" ], [ "document" ], [ "." ], [ "list" ], [ "document", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "document", "NN" ], [ ",", "," ], [ "list", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "showed", "VBN" ], [ "up", "RP" ], [ "in", "IN" ], [ "circulation", "NN" ], [ "history", "NN" ], [ "of", "IN" ], [ "that", "DT" ], [ "document", "NN" ], [ ".", "." ], [ "list", "NN" ], [ "document", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(12) T(9) A(3) C(16) T(9)" }, { "db_id": "company_1", "query": "SELECT dname FROM department ORDER BY mgr_start_date", "query_toks": [ "SELECT", "dname", "FROM", "department", "ORDER", "BY", "mgr_start_date" ], "query_toks_no_value": [ "select", "dname", "from", "department", "order", "by", "mgr_start_date" ], "question": "List all department names ordered by their starting date.", "question_toks": [ "list", "all", "department", "name", "ordered", "by", "their", "starting", "date", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 17, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee ssn", "project number", "hours", "first name", "minit", "last name", "ssn", "birth date", "address", "sex", "salary", "super ssn", "department no", "department name", "department number", "manager ssn", "manager start date", "dependent name", "dependent number", "dependent location", "department number", "employee ssn", "dependent name", "sex", "birth date", "relationship", "department number", "department location" ], "table_names": [ "works on", "employee", "department", "project", "dependent", "department locations" ], "col_set": [ "*", "employee ssn", "project number", "hours", "first name", "minit", "last name", "ssn", "birth date", "address", "sex", "salary", "super ssn", "department no", "department name", "department number", "manager ssn", "manager start date", "dependent name", "dependent number", "dependent location", "relationship", "department location" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5 ], "keys": { "1": 1, "7": 7, "15": 15, "19": 19, "22": 22, "27": 27 }, "origin_question_toks": [ "List", "all", "department", "names", "ordered", "by", "their", "starting", "date", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "department", "name" ], [ "ordered" ], [ "by" ], [ "their" ], [ "starting" ], [ "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "department", "NN" ], [ "name", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "starting", "NN" ], [ "date", "NN" ], [ ".", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(14) T(2) Order(1) A(0) C(17) T(2)" }, { "db_id": "company_1", "query": "SELECT Dependent_name FROM dependent WHERE relationship = 'Spouse'", "query_toks": [ "SELECT", "Dependent_name", "FROM", "dependent", "WHERE", "relationship", "=", "'Spouse", "'" ], "query_toks_no_value": [ "select", "dependent_name", "from", "dependent", "where", "relationship", "=", "value" ], "question": "find all dependent names who have a spouse relation with some employee.", "question_toks": [ "find", "all", "dependent", "name", "who", "have", "a", "spouse", "relation", "with", "some", "employee", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], "\"Spouse\"", null ] ] }, "names": [ "*", "employee ssn", "project number", "hours", "first name", "minit", "last name", "ssn", "birth date", "address", "sex", "salary", "super ssn", "department no", "department name", "department number", "manager ssn", "manager start date", "dependent name", "dependent number", "dependent location", "department number", "employee ssn", "dependent name", "sex", "birth date", "relationship", "department number", "department location" ], "table_names": [ "works on", "employee", "department", "project", "dependent", "department locations" ], "col_set": [ "*", "employee ssn", "project number", "hours", "first name", "minit", "last name", "ssn", "birth date", "address", "sex", "salary", "super ssn", "department no", "department name", "department number", "manager ssn", "manager start date", "dependent name", "dependent number", "dependent location", "relationship", "department location" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5 ], "keys": { "1": 1, "7": 7, "15": 15, "19": 19, "22": 22, "27": 27 }, "origin_question_toks": [ "find", "all", "dependent", "names", "who", "have", "a", "spouse", "relation", "with", "some", "employee", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "dependent", "name" ], [ "who" ], [ "have" ], [ "a" ], [ "spouse" ], [ "relation" ], [ "with" ], [ "some" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "dependent", "JJ" ], [ "name", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "spouse", "NN" ], [ "relation", "NN" ], [ "with", "IN" ], [ "some", "DT" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [ "Spouse", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(4) Filter(2) A(0) C(21) T(4) V(0)" }, { "db_id": "company_1", "query": "SELECT count(*) FROM dependent WHERE sex = 'F'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "dependent", "WHERE", "sex", "=", "'F", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "dependent", "where", "sex", "=", "value" ], "question": "how many female dependents are there?", "question_toks": [ "how", "many", "female", "dependent", "are", "there", "?" ], "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, 24, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "employee ssn", "project number", "hours", "first name", "minit", "last name", "ssn", "birth date", "address", "sex", "salary", "super ssn", "department no", "department name", "department number", "manager ssn", "manager start date", "dependent name", "dependent number", "dependent location", "department number", "employee ssn", "dependent name", "sex", "birth date", "relationship", "department number", "department location" ], "table_names": [ "works on", "employee", "department", "project", "dependent", "department locations" ], "col_set": [ "*", "employee ssn", "project number", "hours", "first name", "minit", "last name", "ssn", "birth date", "address", "sex", "salary", "super ssn", "department no", "department name", "department number", "manager ssn", "manager start date", "dependent name", "dependent number", "dependent location", "relationship", "department location" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5 ], "keys": { "1": 1, "7": 7, "15": 15, "19": 19, "22": 22, "27": 27 }, "origin_question_toks": [ "how", "many", "female", "dependents", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "female" ], [ "dependent" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "female", "JJ" ], [ "dependent", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [ "F" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(2) A(0) C(10) T(4) V(0)" }, { "db_id": "company_1", "query": "SELECT t1.dname FROM department AS t1 JOIN dept_locations AS t2 ON t1.dnumber = t2.dnumber WHERE t2.dlocation = 'Houston'", "query_toks": [ "SELECT", "t1.dname", "FROM", "department", "AS", "t1", "JOIN", "dept_locations", "AS", "t2", "ON", "t1.dnumber", "=", "t2.dnumber", "WHERE", "t2.dlocation", "=", "'Houston", "'" ], "query_toks_no_value": [ "select", "t1", ".", "dname", "from", "department", "as", "t1", "join", "dept_locations", "as", "t2", "on", "t1", ".", "dnumber", "=", "t2", ".", "dnumber", "where", "t2", ".", "dlocation", "=", "value" ], "question": "Find the names of departments that are located in Houston.", "question_toks": [ "find", "name", "of", "department", "that", "are", "located", "in", "houston", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 28, false ], null ], "\"Houston\"", null ] ] }, "names": [ "*", "employee ssn", "project number", "hours", "first name", "minit", "last name", "ssn", "birth date", "address", "sex", "salary", "super ssn", "department no", "department name", "department number", "manager ssn", "manager start date", "dependent name", "dependent number", "dependent location", "department number", "employee ssn", "dependent name", "sex", "birth date", "relationship", "department number", "department location" ], "table_names": [ "works on", "employee", "department", "project", "dependent", "department locations" ], "col_set": [ "*", "employee ssn", "project number", "hours", "first name", "minit", "last name", "ssn", "birth date", "address", "sex", "salary", "super ssn", "department no", "department name", "department number", "manager ssn", "manager start date", "dependent name", "dependent number", "dependent location", "relationship", "department location" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5 ], "keys": { "1": 1, "7": 7, "15": 15, "19": 19, "22": 22, "27": 27 }, "origin_question_toks": [ "Find", "the", "names", "of", "departments", "that", "are", "located", "in", "Houston", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "department" ], [ "that" ], [ "are" ], [ "located" ], [ "in" ], [ "houston" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "in", "IN" ], [ "houston", "NN" ], [ ".", "." ] ], "values": [ "James", "Houston" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(2) A(0) C(22) T(5) V(1)" }, { "db_id": "company_1", "query": "SELECT fname , lname FROM employee WHERE salary > 30000", "query_toks": [ "SELECT", "fname", ",", "lname", "FROM", "employee", "WHERE", "salary", ">", "30000" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "employee", "where", "salary", ">", "value" ], "question": "Return the first names and last names of employees who earn more than 30000 in salary.", "question_toks": [ "return", "first", "name", "and", "last", "name", "of", "employee", "who", "earn", "more", "than", "30000", "in", "salary", "." ], "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, 11, false ], null ], 30000.0, null ] ] }, "names": [ "*", "employee ssn", "project number", "hours", "first name", "minit", "last name", "ssn", "birth date", "address", "sex", "salary", "super ssn", "department no", "department name", "department number", "manager ssn", "manager start date", "dependent name", "dependent number", "dependent location", "department number", "employee ssn", "dependent name", "sex", "birth date", "relationship", "department number", "department location" ], "table_names": [ "works on", "employee", "department", "project", "dependent", "department locations" ], "col_set": [ "*", "employee ssn", "project number", "hours", "first name", "minit", "last name", "ssn", "birth date", "address", "sex", "salary", "super ssn", "department no", "department name", "department number", "manager ssn", "manager start date", "dependent name", "dependent number", "dependent location", "relationship", "department location" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5 ], "keys": { "1": 1, "7": 7, "15": 15, "19": 19, "22": 22, "27": 27 }, "origin_question_toks": [ "Return", "the", "first", "names", "and", "last", "names", "of", "employees", "who", "earn", "more", "than", "30000", "in", "salary", "." ], "question_arg": [ [ "return" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "employee" ], [ "who" ], [ "earn" ], [ "more" ], [ "than" ], [ "30000" ], [ "in" ], [ "salary" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "earn", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "30000", "CD" ], [ "in", "IN" ], [ "salary", "NN" ], [ ".", "." ] ], "values": [ "James", "30000", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(0) C(6) T(1) Filter(5) A(0) C(11) T(1) V(1)" }, { "db_id": "company_1", "query": "SELECT count(*) , sex FROM employee WHERE salary < 50000 GROUP BY sex", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "sex", "FROM", "employee", "WHERE", "salary", "<", "50000", "GROUP", "BY", "sex" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "sex", "from", "employee", "where", "salary", "<", "value", "group", "by", "sex" ], "question": "Find the number of employees of each gender whose salary is lower than 50000.", "question_toks": [ "find", "number", "of", "employee", "of", "each", "gender", "whose", "salary", "is", "lower", "than", "50000", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 11, false ], null ], 50000.0, null ] ] }, "names": [ "*", "employee ssn", "project number", "hours", "first name", "minit", "last name", "ssn", "birth date", "address", "sex", "salary", "super ssn", "department no", "department name", "department number", "manager ssn", "manager start date", "dependent name", "dependent number", "dependent location", "department number", "employee ssn", "dependent name", "sex", "birth date", "relationship", "department number", "department location" ], "table_names": [ "works on", "employee", "department", "project", "dependent", "department locations" ], "col_set": [ "*", "employee ssn", "project number", "hours", "first name", "minit", "last name", "ssn", "birth date", "address", "sex", "salary", "super ssn", "department no", "department name", "department number", "manager ssn", "manager start date", "dependent name", "dependent number", "dependent location", "relationship", "department location" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5 ], "keys": { "1": 1, "7": 7, "15": 15, "19": 19, "22": 22, "27": 27 }, "origin_question_toks": [ "Find", "the", "number", "of", "employees", "of", "each", "gender", "whose", "salary", "is", "lower", "than", "50000", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "employee" ], [ "of" ], [ "each" ], [ "gender" ], [ "whose" ], [ "salary" ], [ "is" ], [ "lower" ], [ "than" ], [ "50000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "gender", "NN" ], [ "whose", "WP$" ], [ "salary", "NN" ], [ "is", "VBZ" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "50000", "CD" ], [ ".", "." ] ], "values": [ "50000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(1) A(0) C(10) T(1) Filter(4) A(0) C(11) T(1) V(0)" }, { "db_id": "company_1", "query": "SELECT fname , lname , address FROM employee ORDER BY Bdate", "query_toks": [ "SELECT", "fname", ",", "lname", ",", "address", "FROM", "employee", "ORDER", "BY", "Bdate" ], "query_toks_no_value": [ "select", "fname", ",", "lname", ",", "address", "from", "employee", "order", "by", "bdate" ], "question": "list the first and last names, and the addresses of all employees in the ascending order of their birth date.", "question_toks": [ "list", "first", "and", "last", "name", ",", "and", "address", "of", "all", "employee", "in", "ascending", "order", "of", "their", "birth", "date", "." ], "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, 4, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee ssn", "project number", "hours", "first name", "minit", "last name", "ssn", "birth date", "address", "sex", "salary", "super ssn", "department no", "department name", "department number", "manager ssn", "manager start date", "dependent name", "dependent number", "dependent location", "department number", "employee ssn", "dependent name", "sex", "birth date", "relationship", "department number", "department location" ], "table_names": [ "works on", "employee", "department", "project", "dependent", "department locations" ], "col_set": [ "*", "employee ssn", "project number", "hours", "first name", "minit", "last name", "ssn", "birth date", "address", "sex", "salary", "super ssn", "department no", "department name", "department number", "manager ssn", "manager start date", "dependent name", "dependent number", "dependent location", "relationship", "department location" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5 ], "keys": { "1": 1, "7": 7, "15": 15, "19": 19, "22": 22, "27": 27 }, "origin_question_toks": [ "list", "the", "first", "and", "last", "names", ",", "and", "the", "addresses", "of", "all", "employees", "in", "the", "ascending", "order", "of", "their", "birth", "date", "." ], "question_arg": [ [ "list" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "," ], [ "and" ], [ "address" ], [ "of" ], [ "all" ], [ "employee" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "their" ], [ "birth", "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "address", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "birth", "NN" ], [ "date", "NN" ], [ ".", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(4) T(1) A(0) C(6) T(1) A(0) C(9) T(1) Order(1) A(0) C(8) T(1)" }, { "db_id": "local_govt_in_alabama", "query": "SELECT T1.event_details FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID = T2.Service_ID WHERE T2.Service_Type_Code = 'Marriage'", "query_toks": [ "SELECT", "T1.event_details", "FROM", "EVENTS", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Service_ID", "=", "T2.Service_ID", "WHERE", "T2.Service_Type_Code", "=", "'Marriage", "'" ], "query_toks_no_value": [ "select", "t1", ".", "event_details", "from", "events", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_id", "=", "t2", ".", "service_id", "where", "t2", ".", "service_type_code", "=", "value" ], "question": "what are the event details of the services that have the type code 'Marriage'?", "question_toks": [ "what", "are", "event", "detail", "of", "service", "that", "have", "type", "code", "'", "marriage", "'", "?" ], "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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Marriage\"", null ] ] }, "names": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "service id", "event details", "event id", "participant id" ], "table_names": [ "services", "participants", "events", "participants in events" ], "col_set": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "event details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 9, "6": 6, "10": 3, "3": 3 }, "origin_question_toks": [ "what", "are", "the", "event", "details", "of", "the", "services", "that", "have", "the", "type", "code", "'Marriage", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "event", "detail" ], [ "of" ], [ "service" ], [ "that" ], [ "have" ], [ "type" ], [ "code" ], [ "'" ], [ "marriage" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "event", "NN" ], [ "detail", "NN" ], [ "of", "IN" ], [ "service", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "type", "VBN" ], [ "code", "NN" ], [ "'", "''" ], [ "marriage", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Marriage" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "local_govt_in_alabama", "query": "SELECT T1.event_id , T1.event_details FROM EVENTS AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY T1.Event_ID HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.event_id", ",", "T1.event_details", "FROM", "EVENTS", "AS", "T1", "JOIN", "Participants_in_Events", "AS", "T2", "ON", "T1.Event_ID", "=", "T2.Event_ID", "GROUP", "BY", "T1.Event_ID", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "event_id", ",", "t1", ".", "event_details", "from", "events", "as", "t1", "join", "participants_in_events", "as", "t2", "on", "t1", ".", "event_id", "=", "t2", ".", "event_id", "group", "by", "t1", ".", "event_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the ids and details of events that have more than one participants?", "question_toks": [ "what", "are", "id", "and", "detail", "of", "event", "that", "have", "more", "than", "one", "participant", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "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 ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "service id", "event details", "event id", "participant id" ], "table_names": [ "services", "participants", "events", "participants in events" ], "col_set": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "event details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 9, "6": 6, "10": 3, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "details", "of", "events", "that", "have", "more", "than", "one", "participants", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "detail" ], [ "of" ], [ "event" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "participant" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "detail", "NN" ], [ "of", "IN" ], [ "event", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "participant", "NN" ], [ "?", "." ] ], "values": [ "Participant", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(2) 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(3) Filter(5) A(3) C(0) T(3) V(1)" }, { "db_id": "local_govt_in_alabama", "query": "SELECT T1.Participant_ID , T1.Participant_Type_Code , count(*) FROM Participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID GROUP BY T1.Participant_ID", "query_toks": [ "SELECT", "T1.Participant_ID", ",", "T1.Participant_Type_Code", ",", "count", "(", "*", ")", "FROM", "Participants", "AS", "T1", "JOIN", "Participants_in_Events", "AS", "T2", "ON", "T1.Participant_ID", "=", "T2.Participant_ID", "GROUP", "BY", "T1.Participant_ID" ], "query_toks_no_value": [ "select", "t1", ".", "participant_id", ",", "t1", ".", "participant_type_code", ",", "count", "(", "*", ")", "from", "participants", "as", "t1", "join", "participants_in_events", "as", "t2", "on", "t1", ".", "participant_id", "=", "t2", ".", "participant_id", "group", "by", "t1", ".", "participant_id" ], "question": "How many events have each participants attended? List the participant id, type and the number.", "question_toks": [ "how", "many", "event", "have", "each", "participant", "attended", "?", "list", "participant", "id", ",", "type", "and", "number", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "service id", "event details", "event id", "participant id" ], "table_names": [ "services", "participants", "events", "participants in events" ], "col_set": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "event details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 9, "6": 6, "10": 3, "3": 3 }, "origin_question_toks": [ "How", "many", "events", "have", "each", "participants", "attended", "?", "List", "the", "participant", "id", ",", "type", "and", "the", "number", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "event" ], [ "have" ], [ "each" ], [ "participant" ], [ "attended" ], [ "?" ], [ "list" ], [ "participant", "id" ], [ "," ], [ "type" ], [ "and" ], [ "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "event", "NN" ], [ "have", "VBP" ], [ "each", "DT" ], [ "participant", "NN" ], [ "attended", "VBD" ], [ "?", "." ], [ "list", "NN" ], [ "participant", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "type", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ ".", "." ] ], "values": [ "Participant" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(3) T(1) A(0) C(4) T(1) A(3) C(0) T(3)" }, { "db_id": "local_govt_in_alabama", "query": "SELECT Participant_ID , Participant_Type_Code , Participant_Details FROM Participants", "query_toks": [ "SELECT", "Participant_ID", ",", "Participant_Type_Code", ",", "Participant_Details", "FROM", "Participants" ], "query_toks_no_value": [ "select", "participant_id", ",", "participant_type_code", ",", "participant_details", "from", "participants" ], "question": "What are all the the participant ids, type code and details?", "question_toks": [ "what", "are", "all", "participant", "id", ",", "type", "code", "and", "detail", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "service id", "event details", "event id", "participant id" ], "table_names": [ "services", "participants", "events", "participants in events" ], "col_set": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "event details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 9, "6": 6, "10": 3, "3": 3 }, "origin_question_toks": [ "What", "are", "all", "the", "the", "participant", "ids", ",", "type", "code", "and", "details", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "participant", "id" ], [ "," ], [ "type" ], [ "code" ], [ "and" ], [ "detail" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "participant", "JJ" ], [ "id", "NN" ], [ ",", "," ], [ "type", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ "?", "." ] ], "values": [ "Participant" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(3) T(1) A(0) C(4) T(1) A(0) C(5) T(1)" }, { "db_id": "local_govt_in_alabama", "query": "SELECT count(*) FROM participants WHERE participant_type_code = 'Organizer'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "participants", "WHERE", "participant_type_code", "=", "'Organizer", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "participants", "where", "participant_type_code", "=", "value" ], "question": "How many participants belong to the type 'Organizer'?", "question_toks": [ "how", "many", "participant", "belong", "to", "type", "'", "organizer", "'", "?" ], "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 ], "\"Organizer\"", null ] ] }, "names": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "service id", "event details", "event id", "participant id" ], "table_names": [ "services", "participants", "events", "participants in events" ], "col_set": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "event details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 9, "6": 6, "10": 3, "3": 3 }, "origin_question_toks": [ "How", "many", "participants", "belong", "to", "the", "type", "'Organizer", "'", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "participant" ], [ "belong" ], [ "to" ], [ "type" ], [ "'" ], [ "organizer" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "participant", "VBP" ], [ "belong", "JJ" ], [ "to", "TO" ], [ "type", "VB" ], [ "'", "''" ], [ "organizer", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Participant", "Organizer" ], "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(1)" }, { "db_id": "local_govt_in_alabama", "query": "SELECT service_type_code FROM services ORDER BY service_type_code", "query_toks": [ "SELECT", "service_type_code", "FROM", "services", "ORDER", "BY", "service_type_code" ], "query_toks_no_value": [ "select", "service_type_code", "from", "services", "order", "by", "service_type_code" ], "question": "List the type of the services in alphabetical order.", "question_toks": [ "list", "type", "of", "service", "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": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "service id", "event details", "event id", "participant id" ], "table_names": [ "services", "participants", "events", "participants in events" ], "col_set": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "event details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 9, "6": 6, "10": 3, "3": 3 }, "origin_question_toks": [ "List", "the", "type", "of", "the", "services", "in", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "type" ], [ "of" ], [ "service" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "type", "NN" ], [ "of", "IN" ], [ "service", "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": "local_govt_in_alabama", "query": "SELECT service_id , event_details FROM EVENTS", "query_toks": [ "SELECT", "service_id", ",", "event_details", "FROM", "EVENTS" ], "query_toks_no_value": [ "select", "service_id", ",", "event_details", "from", "events" ], "question": "List the service id and details for the events.", "question_toks": [ "list", "service", "id", "and", "detail", "for", "event", "." ], "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": [] }, "names": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "service id", "event details", "event id", "participant id" ], "table_names": [ "services", "participants", "events", "participants in events" ], "col_set": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "event details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 9, "6": 6, "10": 3, "3": 3 }, "origin_question_toks": [ "List", "the", "service", "id", "and", "details", "for", "the", "events", "." ], "question_arg": [ [ "list" ], [ "service", "id" ], [ "and" ], [ "detail" ], [ "for" ], [ "event" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "service", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ "for", "IN" ], [ "event", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(2) A(0) C(7) T(2)" }, { "db_id": "local_govt_in_alabama", "query": "SELECT count(*) FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE T1.participant_details LIKE '%Dr.%'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "participants", "AS", "T1", "JOIN", "Participants_in_Events", "AS", "T2", "ON", "T1.Participant_ID", "=", "T2.Participant_ID", "WHERE", "T1.participant_details", "LIKE", "'", "%", "Dr.", "%", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "participants", "as", "t1", "join", "participants_in_events", "as", "t2", "on", "t1", ".", "participant_id", "=", "t2", ".", "participant_id", "where", "t1", ".", "participant_details", "like", "value" ], "question": "How many events had participants whose details had the substring 'Dr.'", "question_toks": [ "how", "many", "event", "had", "participant", "whose", "detail", "had", "substring", "'", "dr", ".", "'" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 5, false ], null ], "\"%Dr.%\"", null ] ] }, "names": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "service id", "event details", "event id", "participant id" ], "table_names": [ "services", "participants", "events", "participants in events" ], "col_set": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "event details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 9, "6": 6, "10": 3, "3": 3 }, "origin_question_toks": [ "How", "many", "events", "had", "participants", "whose", "details", "had", "the", "substring", "'Dr", ".", "'" ], "question_arg": [ [ "how" ], [ "many" ], [ "event" ], [ "had" ], [ "participant" ], [ "whose" ], [ "detail" ], [ "had" ], [ "substring" ], [ "'" ], [ "dr" ], [ "." ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "event", "NN" ], [ "had", "VBD" ], [ "participant", "NN" ], [ "whose", "WP$" ], [ "detail", "NN" ], [ "had", "VBD" ], [ "substring", "VBG" ], [ "'", "''" ], [ "dr", "NN" ], [ ".", "." ], [ "'", "''" ] ], "values": [ "Dr.", "Participant" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(9) A(0) C(5) T(1) V(0)" }, { "db_id": "local_govt_in_alabama", "query": "SELECT participant_type_code FROM participants GROUP BY participant_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "participant_type_code", "FROM", "participants", "GROUP", "BY", "participant_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "participant_type_code", "from", "participants", "group", "by", "participant_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most common participant type?", "question_toks": [ "what", "is", "most", "common", "participant", "type", "?" ], "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": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "service id", "event details", "event id", "participant id" ], "table_names": [ "services", "participants", "events", "participants in events" ], "col_set": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "event details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 9, "6": 6, "10": 3, "3": 3 }, "origin_question_toks": [ "What", "is", "the", "most", "common", "participant", "type", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "common" ], [ "participant" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "participant", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [ "Participant" ], "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": "local_govt_in_alabama", "query": "SELECT T3.service_id , T4.Service_Type_Code FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID JOIN EVENTS AS T3 ON T2.Event_ID = T3.Event_ID JOIN services AS T4 ON T3.service_id = T4.service_id GROUP BY T3.service_id ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T3.service_id", ",", "T4.Service_Type_Code", "FROM", "participants", "AS", "T1", "JOIN", "Participants_in_Events", "AS", "T2", "ON", "T1.Participant_ID", "=", "T2.Participant_ID", "JOIN", "EVENTS", "AS", "T3", "ON", "T2.Event_ID", "=", "T3.Event_ID", "JOIN", "services", "AS", "T4", "ON", "T3.service_id", "=", "T4.service_id", "GROUP", "BY", "T3.service_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t3", ".", "service_id", ",", "t4", ".", "service_type_code", "from", "participants", "as", "t1", "join", "participants_in_events", "as", "t2", "on", "t1", ".", "participant_id", "=", "t2", ".", "participant_id", "join", "events", "as", "t3", "on", "t2", ".", "event_id", "=", "t3", ".", "event_id", "join", "services", "as", "t4", "on", "t3", ".", "service_id", "=", "t4", ".", "service_id", "group", "by", "t3", ".", "service_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Which service id and type has the least number of participants?", "question_toks": [ "which", "service", "id", "and", "type", "ha", "least", "number", "of", "participant", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "service id", "event details", "event id", "participant id" ], "table_names": [ "services", "participants", "events", "participants in events" ], "col_set": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "event details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 9, "6": 6, "10": 3, "3": 3 }, "origin_question_toks": [ "Which", "service", "id", "and", "type", "has", "the", "least", "number", "of", "participants", "?" ], "question_arg": [ [ "which" ], [ "service", "id" ], [ "and" ], [ "type" ], [ "ha" ], [ "least" ], [ "number" ], [ "of" ], [ "participant" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "service", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "type", "NN" ], [ "ha", "NN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "participant", "NN" ], [ "?", "." ] ], "values": [ "Participant" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(1) T(2) A(0) C(2) T(0) Sup(1) A(3) C(0) T(2) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(3) Filter(18) A(0) C(3) T(3) Root(5) Sel(0) N(0) A(0) C(3) T(1)" }, { "db_id": "local_govt_in_alabama", "query": "SELECT Event_ID FROM Participants_in_Events GROUP BY Event_ID ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Event_ID", "FROM", "Participants_in_Events", "GROUP", "BY", "Event_ID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "event_id", "from", "participants_in_events", "group", "by", "event_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the id of the event with the most participants?", "question_toks": [ "what", "is", "id", "of", "event", "with", "most", "participant", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "service id", "event details", "event id", "participant id" ], "table_names": [ "services", "participants", "events", "participants in events" ], "col_set": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "event details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 9, "6": 6, "10": 3, "3": 3 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "event", "with", "the", "most", "participants", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "event" ], [ "with" ], [ "most" ], [ "participant" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "event", "NN" ], [ "with", "IN" ], [ "most", "RBS" ], [ "participant", "JJ" ], [ "?", "." ] ], "values": [ "Participant" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "local_govt_in_alabama", "query": "SELECT event_id FROM EVENTS EXCEPT SELECT T1.event_id FROM Participants_in_Events AS T1 JOIN Participants AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE Participant_Details = 'Kenyatta Kuhn'", "query_toks": [ "SELECT", "event_id", "FROM", "EVENTS", "EXCEPT", "SELECT", "T1.event_id", "FROM", "Participants_in_Events", "AS", "T1", "JOIN", "Participants", "AS", "T2", "ON", "T1.Participant_ID", "=", "T2.Participant_ID", "WHERE", "Participant_Details", "=", "'Kenyatta", "Kuhn", "'" ], "query_toks_no_value": [ "select", "event_id", "from", "events", "except", "select", "t1", ".", "event_id", "from", "participants_in_events", "as", "t1", "join", "participants", "as", "t2", "on", "t1", ".", "participant_id", "=", "t2", ".", "participant_id", "where", "participant_details", "=", "value" ], "question": "Which events id does not have any participant with detail 'Kenyatta Kuhn'?", "question_toks": [ "which", "event", "id", "doe", "not", "have", "any", "participant", "with", "detail", "'", "kenyatta", "kuhn", "'", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Kenyatta Kuhn\"", 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": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "service id", "event details", "event id", "participant id" ], "table_names": [ "services", "participants", "events", "participants in events" ], "col_set": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "event details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 9, "6": 6, "10": 3, "3": 3 }, "origin_question_toks": [ "Which", "events", "id", "does", "not", "have", "any", "participant", "with", "detail", "'Kenyatta", "Kuhn", "'", "?" ], "question_arg": [ [ "which" ], [ "event", "id" ], [ "doe" ], [ "not" ], [ "have" ], [ "any" ], [ "participant" ], [ "with" ], [ "detail" ], [ "'" ], [ "kenyatta" ], [ "kuhn" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "event", "NN" ], [ "id", "NN" ], [ "doe", "NN" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "participant", "NN" ], [ "with", "IN" ], [ "detail", "NN" ], [ "'", "''" ], [ "kenyatta", "NN" ], [ "kuhn", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Kenyatta Kuhn" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(6) T(2) Root(3) Sel(0) N(0) A(0) C(6) T(3) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "local_govt_in_alabama", "query": "SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Success' INTERSECT SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Fail'", "query_toks": [ "SELECT", "T1.service_type_code", "FROM", "services", "AS", "T1", "JOIN", "EVENTS", "AS", "T2", "ON", "T1.service_id", "=", "T2.service_id", "WHERE", "T2.event_details", "=", "'Success", "'", "INTERSECT", "SELECT", "T1.service_type_code", "FROM", "services", "AS", "T1", "JOIN", "EVENTS", "AS", "T2", "ON", "T1.service_id", "=", "T2.service_id", "WHERE", "T2.event_details", "=", "'Fail", "'" ], "query_toks_no_value": [ "select", "t1", ".", "service_type_code", "from", "services", "as", "t1", "join", "events", "as", "t2", "on", "t1", ".", "service_id", "=", "t2", ".", "service_id", "where", "t2", ".", "event_details", "=", "value", "intersect", "select", "t1", ".", "service_type_code", "from", "services", "as", "t1", "join", "events", "as", "t2", "on", "t1", ".", "service_id", "=", "t2", ".", "service_id", "where", "t2", ".", "event_details", "=", "value" ], "question": "Which services type had both successful and failure event details?", "question_toks": [ "which", "service", "type", "had", "both", "successful", "and", "failure", "event", "detail", "?" ], "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": { "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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Fail\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Success\"", null ] ] }, "names": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "service id", "event details", "event id", "participant id" ], "table_names": [ "services", "participants", "events", "participants in events" ], "col_set": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "event details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 9, "6": 6, "10": 3, "3": 3 }, "origin_question_toks": [ "Which", "services", "type", "had", "both", "successful", "and", "failure", "event", "details", "?" ], "question_arg": [ [ "which" ], [ "service" ], [ "type" ], [ "had" ], [ "both" ], [ "successful" ], [ "and" ], [ "failure" ], [ "event", "detail" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "service", "NN" ], [ "type", "NN" ], [ "had", "VBD" ], [ "both", "DT" ], [ "successful", "JJ" ], [ "and", "CC" ], [ "failure", "JJ" ], [ "event", "NN" ], [ "detail", "NN" ], [ "?", "." ] ], "values": [ "Success", "Fail" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(7) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(7) T(2) V(1)" }, { "db_id": "local_govt_in_alabama", "query": "SELECT count(*) FROM EVENTS WHERE event_id NOT IN (SELECT event_id FROM Participants_in_Events)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "EVENTS", "WHERE", "event_id", "NOT", "IN", "(", "SELECT", "event_id", "FROM", "Participants_in_Events", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "events", "where", "event_id", "not", "in", "(", "select", "event_id", "from", "participants_in_events", ")" ], "question": "How many events did not have any participants?", "question_toks": [ "how", "many", "event", "did", "not", "have", "any", "participant", "?" ], "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, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "service id", "event details", "event id", "participant id" ], "table_names": [ "services", "participants", "events", "participants in events" ], "col_set": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "event details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 9, "6": 6, "10": 3, "3": 3 }, "origin_question_toks": [ "How", "many", "events", "did", "not", "have", "any", "participants", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "event" ], [ "did" ], [ "not" ], [ "have" ], [ "any" ], [ "participant" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "event", "NN" ], [ "did", "VBD" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "participant", "NN" ], [ "?", "." ] ], "values": [ "Participant" ], "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(3)" }, { "db_id": "local_govt_in_alabama", "query": "SELECT count(DISTINCT participant_id) FROM participants_in_Events", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "participant_id", ")", "FROM", "participants_in_Events" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "participant_id", ")", "from", "participants_in_events" ], "question": "What are all the distinct participant ids who attended any events?", "question_toks": [ "what", "are", "all", "distinct", "participant", "id", "who", "attended", "any", "event", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "service id", "event details", "event id", "participant id" ], "table_names": [ "services", "participants", "events", "participants in events" ], "col_set": [ "*", "service id", "service type code", "participant id", "participant type code", "participant details", "event id", "event details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 9, "6": 6, "10": 3, "3": 3 }, "origin_question_toks": [ "What", "are", "all", "the", "distinct", "participant", "ids", "who", "attended", "any", "events", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "distinct" ], [ "participant", "id" ], [ "who" ], [ "attended" ], [ "any" ], [ "event" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "participant", "JJ" ], [ "id", "NN" ], [ "who", "WP" ], [ "attended", "VBD" ], [ "any", "DT" ], [ "event", "NN" ], [ "?", "." ] ], "values": [ "Participant" ], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(3) T(3)" }, { "db_id": "formula_1", "query": "SELECT name FROM races ORDER BY date DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "races", "ORDER", "BY", "date", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "races", "order", "by", "date", "desc", "limit", "value" ], "question": "What is the name of the race held most recently?", "question_toks": [ "what", "is", "name", "of", "race", "held", "most", "recently", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "race", "held", "most", "recently", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "race" ], [ "held" ], [ "most" ], [ "recently" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "held", "VBD" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "?", "." ] ], "values": [ "Rae", "pace", "rae", "Pace" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(14) T(1) Sup(0) A(0) C(15) T(1)" }, { "db_id": "formula_1", "query": "SELECT name FROM races ORDER BY date DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "races", "ORDER", "BY", "date", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "races", "order", "by", "date", "desc", "limit", "value" ], "question": "What is the name of the race that occurred most recently?", "question_toks": [ "what", "is", "name", "of", "race", "that", "occurred", "most", "recently", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "race", "that", "occurred", "most", "recently", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "race" ], [ "that" ], [ "occurred" ], [ "most" ], [ "recently" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "that", "WDT" ], [ "occurred", "VBD" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "?", "." ] ], "values": [ "Rae", "pace", "rae", "Pace" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(14) T(1) Sup(0) A(0) C(15) T(1)" }, { "db_id": "formula_1", "query": "SELECT name , date FROM races ORDER BY date DESC LIMIT 1", "query_toks": [ "SELECT", "name", ",", "date", "FROM", "races", "ORDER", "BY", "date", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "date", "from", "races", "order", "by", "date", "desc", "limit", "value" ], "question": "What is the name and date of the most recent race?", "question_toks": [ "what", "is", "name", "and", "date", "of", "most", "recent", "race", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "date", "of", "the", "most", "recent", "race", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "date" ], [ "of" ], [ "most" ], [ "recent" ], [ "race" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "recent", "JJ" ], [ "race", "NN" ], [ "?", "." ] ], "values": [ "Rae", "pace", "rae", "Pace" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(14) T(1) A(0) C(15) T(1) Sup(0) A(0) C(15) T(1)" }, { "db_id": "formula_1", "query": "SELECT name , date FROM races ORDER BY date DESC LIMIT 1", "query_toks": [ "SELECT", "name", ",", "date", "FROM", "races", "ORDER", "BY", "date", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "date", "from", "races", "order", "by", "date", "desc", "limit", "value" ], "question": "What is the name and date of the race that occurred most recently?", "question_toks": [ "what", "is", "name", "and", "date", "of", "race", "that", "occurred", "most", "recently", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "date", "of", "the", "race", "that", "occurred", "most", "recently", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "date" ], [ "of" ], [ "race" ], [ "that" ], [ "occurred" ], [ "most" ], [ "recently" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "that", "WDT" ], [ "occurred", "VBD" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "?", "." ] ], "values": [ "Rae", "pace", "rae", "Pace" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(14) T(1) A(0) C(15) T(1) Sup(0) A(0) C(15) T(1)" }, { "db_id": "formula_1", "query": "SELECT name FROM races WHERE YEAR = 2017", "query_toks": [ "SELECT", "name", "FROM", "races", "WHERE", "YEAR", "=", "2017" ], "query_toks_no_value": [ "select", "name", "from", "races", "where", "year", "=", "value" ], "question": "Find the names of all races held in 2017.", "question_toks": [ "find", "name", "of", "all", "race", "held", "in", "year", "." ], "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, 2, [ 0, [ 0, 11, false ], null ], 2017.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "races", "held", "in", "2017", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "race" ], [ "held" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "race", "NN" ], [ "held", "VBN" ], [ "in", "IN" ], [ "2017", "CD" ], [ ".", "." ] ], "values": [ "James", "james", "2017" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(1) Filter(2) A(0) C(11) T(1) V(2)" }, { "db_id": "formula_1", "query": "SELECT name FROM races WHERE YEAR = 2017", "query_toks": [ "SELECT", "name", "FROM", "races", "WHERE", "YEAR", "=", "2017" ], "query_toks_no_value": [ "select", "name", "from", "races", "where", "year", "=", "value" ], "question": "What are the names of all the races that occurred in the year 2017?", "question_toks": [ "what", "are", "name", "of", "all", "race", "that", "occurred", "in", "year", "year", "?" ], "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, 2, [ 0, [ 0, 11, false ], null ], 2017.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "races", "that", "occurred", "in", "the", "year", "2017", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "race" ], [ "that" ], [ "occurred" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "race", "NN" ], [ "that", "WDT" ], [ "occurred", "VBD" ], [ "in", "IN" ], [ "year", "NN" ], [ "2017", "CD" ], [ "?", "." ] ], "values": [ "james", "2017", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(1) Filter(2) A(0) C(11) T(1) V(1)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT name FROM races WHERE YEAR BETWEEN 2014 AND 2017", "query_toks": [ "SELECT", "DISTINCT", "name", "FROM", "races", "WHERE", "YEAR", "BETWEEN", "2014", "AND", "2017" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "races", "where", "year", "between", "value", "and", "value" ], "question": "Find the distinct names of all races held between 2014 and 2017?", "question_toks": [ "find", "distinct", "name", "of", "all", "race", "held", "between", "year", "and", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 11, false ], null ], 2014.0, 2017.0 ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "Find", "the", "distinct", "names", "of", "all", "races", "held", "between", "2014", "and", "2017", "?" ], "question_arg": [ [ "find" ], [ "distinct" ], [ "name" ], [ "of" ], [ "all" ], [ "race" ], [ "held" ], [ "between" ], [ "year" ], [ "and" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "race", "NN" ], [ "held", "VBD" ], [ "between", "IN" ], [ "2014", "CD" ], [ "and", "CC" ], [ "2017", "CD" ], [ "?", "." ] ], "values": [ "james", "2017", "2014", "James" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(14) T(1) Filter(8) A(0) C(11) T(1) V(2) V(1)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT name FROM races WHERE YEAR BETWEEN 2014 AND 2017", "query_toks": [ "SELECT", "DISTINCT", "name", "FROM", "races", "WHERE", "YEAR", "BETWEEN", "2014", "AND", "2017" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "races", "where", "year", "between", "value", "and", "value" ], "question": "What are the unique names of all race held between 2014 and 2017?", "question_toks": [ "what", "are", "unique", "name", "of", "all", "race", "held", "between", "year", "and", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 11, false ], null ], 2014.0, 2017.0 ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "unique", "names", "of", "all", "race", "held", "between", "2014", "and", "2017", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "unique" ], [ "name" ], [ "of" ], [ "all" ], [ "race" ], [ "held" ], [ "between" ], [ "year" ], [ "and" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "unique", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "race", "NN" ], [ "held", "VBD" ], [ "between", "IN" ], [ "2014", "CD" ], [ "and", "CC" ], [ "2017", "CD" ], [ "?", "." ] ], "values": [ "2014", "Rae", "Pace", "James", "pace", "rae", "2017", "james" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(14) T(1) Filter(8) A(0) C(11) T(1) V(0) V(6)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000", "query_toks": [ "SELECT", "DISTINCT", "T1.forename", ",", "T1.surname", "FROM", "drivers", "AS", "T1", "JOIN", "laptimes", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "WHERE", "T2.milliseconds", "<", "93000" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "forename", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "laptimes", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "where", "t2", ".", "milliseconds", "<", "value" ], "question": "List the forename and surname of all distinct drivers who once had laptime less than 93000 milliseconds?", "question_toks": [ "list", "forename", "and", "surname", "of", "all", "distinct", "driver", "who", "once", "had", "laptime", "le", "than", "93000", "millisecond", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 90, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 90, 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 ], "and", [ false, 4, [ 0, [ 0, 94, false ], null ], 93000.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "List", "the", "forename", "and", "surname", "of", "all", "distinct", "drivers", "who", "once", "had", "laptime", "less", "than", "93000", "milliseconds", "?" ], "question_arg": [ [ "list" ], [ "forename" ], [ "and" ], [ "surname" ], [ "of" ], [ "all" ], [ "distinct" ], [ "driver" ], [ "who" ], [ "once" ], [ "had" ], [ "laptime" ], [ "le" ], [ "than" ], [ "93000" ], [ "millisecond" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "forename", "NN" ], [ "and", "CC" ], [ "surname", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "driver", "NN" ], [ "who", "WP" ], [ "once", "RB" ], [ "had", "VBD" ], [ "laptime", "NN" ], [ "le", "NN" ], [ "than", "IN" ], [ "93000", "CD" ], [ "millisecond", "NN" ], [ "?", "." ] ], "values": [ "1", "Driver", "driver", "93000" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(19) T(4) A(0) C(20) T(4) Filter(0) Filter(18) A(0) C(9) T(12) Root(5) Sel(0) N(0) A(0) C(17) T(2) Filter(4) A(0) C(30) T(12) V(3)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000", "query_toks": [ "SELECT", "DISTINCT", "T1.forename", ",", "T1.surname", "FROM", "drivers", "AS", "T1", "JOIN", "laptimes", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "WHERE", "T2.milliseconds", "<", "93000" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "forename", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "laptimes", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "where", "t2", ".", "milliseconds", "<", "value" ], "question": "What are the forenames and surnames of all unique drivers who had a lap time of less than 93000 milliseconds?", "question_toks": [ "what", "are", "forename", "and", "surname", "of", "all", "unique", "driver", "who", "had", "a", "lap", "time", "of", "le", "than", "93000", "millisecond", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 90, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 90, 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 ], "and", [ false, 4, [ 0, [ 0, 94, false ], null ], 93000.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "forenames", "and", "surnames", "of", "all", "unique", "drivers", "who", "had", "a", "lap", "time", "of", "less", "than", "93000", "milliseconds", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "forename" ], [ "and" ], [ "surname" ], [ "of" ], [ "all" ], [ "unique" ], [ "driver" ], [ "who" ], [ "had" ], [ "a" ], [ "lap" ], [ "time" ], [ "of" ], [ "le" ], [ "than" ], [ "93000" ], [ "millisecond" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "forename", "JJ" ], [ "and", "CC" ], [ "surname", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "unique", "JJ" ], [ "driver", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "a", "DT" ], [ "lap", "JJ" ], [ "time", "NN" ], [ "of", "IN" ], [ "le", "NN" ], [ "than", "IN" ], [ "93000", "CD" ], [ "millisecond", "NN" ], [ "?", "." ] ], "values": [ "Driver", "93000", "driver" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(19) T(4) A(0) C(20) T(4) Filter(0) Filter(18) A(0) C(9) T(12) Root(5) Sel(0) N(0) A(0) C(17) T(2) Filter(4) A(0) C(30) T(12) V(1)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT T1.driverid , T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds > 100000", "query_toks": [ "SELECT", "DISTINCT", "T1.driverid", ",", "T1.nationality", "FROM", "drivers", "AS", "T1", "JOIN", "laptimes", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "WHERE", "T2.milliseconds", ">", "100000" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "driverid", ",", "t1", ".", "nationality", "from", "drivers", "as", "t1", "join", "laptimes", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "where", "t2", ".", "milliseconds", ">", "value" ], "question": "Find all the distinct id and nationality of drivers who have had laptime more than 100000 milliseconds?", "question_toks": [ "find", "all", "distinct", "id", "and", "nationality", "of", "driver", "who", "have", "had", "laptime", "more", "than", "100000", "millisecond", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 90, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 94, false ], null ], 100000.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "Find", "all", "the", "distinct", "id", "and", "nationality", "of", "drivers", "who", "have", "had", "laptime", "more", "than", "100000", "milliseconds", "?" ], "question_arg": [ [ "find" ], [ "all" ], [ "distinct" ], [ "id" ], [ "and" ], [ "nationality" ], [ "of" ], [ "driver" ], [ "who" ], [ "have" ], [ "had" ], [ "laptime" ], [ "more" ], [ "than" ], [ "100000" ], [ "millisecond" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "id", "NN" ], [ "and", "CC" ], [ "nationality", "NN" ], [ "of", "IN" ], [ "driver", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "had", "VBN" ], [ "laptime", "RB" ], [ "more", "RBR" ], [ "than", "IN" ], [ "100000", "CD" ], [ "millisecond", "NN" ], [ "?", "." ] ], "values": [ "100000", "driver", "Driver" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(17) T(2) A(0) C(16) T(4) Filter(5) A(0) C(30) T(12) V(0)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT T1.driverid , T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds > 100000", "query_toks": [ "SELECT", "DISTINCT", "T1.driverid", ",", "T1.nationality", "FROM", "drivers", "AS", "T1", "JOIN", "laptimes", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "WHERE", "T2.milliseconds", ">", "100000" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "driverid", ",", "t1", ".", "nationality", "from", "drivers", "as", "t1", "join", "laptimes", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "where", "t2", ".", "milliseconds", ">", "value" ], "question": "What are the different driver ids and nationalities of all drivers who had a laptime of more than 100000 milliseconds?", "question_toks": [ "what", "are", "different", "driver", "id", "and", "nationality", "of", "all", "driver", "who", "had", "a", "laptime", "of", "more", "than", "100000", "millisecond", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 90, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 94, false ], null ], 100000.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "different", "driver", "ids", "and", "nationalities", "of", "all", "drivers", "who", "had", "a", "laptime", "of", "more", "than", "100000", "milliseconds", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "driver", "id" ], [ "and" ], [ "nationality" ], [ "of" ], [ "all" ], [ "driver" ], [ "who" ], [ "had" ], [ "a" ], [ "laptime" ], [ "of" ], [ "more" ], [ "than" ], [ "100000" ], [ "millisecond" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "driver", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "nationality", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "driver", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "a", "DT" ], [ "laptime", "NN" ], [ "of", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "100000", "CD" ], [ "millisecond", "NN" ], [ "?", "." ] ], "values": [ "Driver", "dryver", "driver", "100000" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(17) T(2) A(0) C(16) T(4) Filter(5) A(0) C(30) T(12) V(3)" }, { "db_id": "formula_1", "query": "SELECT T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds LIMIT 1", "query_toks": [ "SELECT", "T1.forename", ",", "T1.surname", "FROM", "drivers", "AS", "T1", "JOIN", "laptimes", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "ORDER", "BY", "T2.milliseconds", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "forename", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "laptimes", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "order", "by", "t2", ".", "milliseconds", "limit", "value" ], "question": "What are the forename and surname of the driver who has the smallest laptime?", "question_toks": [ "what", "are", "forename", "and", "surname", "of", "driver", "who", "ha", "smallest", "laptime", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 90, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 94, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 90, 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": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "forename", "and", "surname", "of", "the", "driver", "who", "has", "the", "smallest", "laptime", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "forename" ], [ "and" ], [ "surname" ], [ "of" ], [ "driver" ], [ "who" ], [ "ha" ], [ "smallest" ], [ "laptime" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "forename", "JJ" ], [ "and", "CC" ], [ "surname", "NN" ], [ "of", "IN" ], [ "driver", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "smallest", "JJS" ], [ "laptime", "NN" ], [ "?", "." ] ], "values": [ "Driver", "dryver", "driver" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(19) T(4) A(0) C(20) T(4) Sup(1) A(0) C(30) T(12) Filter(18) A(0) C(9) T(12) Root(5) Sel(0) N(0) A(0) C(17) T(2)" }, { "db_id": "formula_1", "query": "SELECT T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds LIMIT 1", "query_toks": [ "SELECT", "T1.forename", ",", "T1.surname", "FROM", "drivers", "AS", "T1", "JOIN", "laptimes", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "ORDER", "BY", "T2.milliseconds", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "forename", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "laptimes", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "order", "by", "t2", ".", "milliseconds", "limit", "value" ], "question": "What is the forename and surname of the driver with the shortest laptime?", "question_toks": [ "what", "is", "forename", "and", "surname", "of", "driver", "with", "shortest", "laptime", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 90, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 94, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 90, 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": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "forename", "and", "surname", "of", "the", "driver", "with", "the", "shortest", "laptime", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "forename" ], [ "and" ], [ "surname" ], [ "of" ], [ "driver" ], [ "with" ], [ "shortest" ], [ "laptime" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "forename", "JJ" ], [ "and", "CC" ], [ "surname", "NN" ], [ "of", "IN" ], [ "driver", "NN" ], [ "with", "IN" ], [ "shortest", "NN" ], [ "laptime", "NN" ], [ "?", "." ] ], "values": [ "driver", "Driver", "dryver" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(19) T(4) A(0) C(20) T(4) Sup(1) A(0) C(30) T(12) Filter(18) A(0) C(9) T(12) Root(5) Sel(0) N(0) A(0) C(17) T(2)" }, { "db_id": "formula_1", "query": "SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1", "query_toks": [ "SELECT", "T1.driverid", ",", "T1.surname", "FROM", "drivers", "AS", "T1", "JOIN", "laptimes", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "ORDER", "BY", "T2.milliseconds", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "driverid", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "laptimes", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "order", "by", "t2", ".", "milliseconds", "desc", "limit", "value" ], "question": "What is the id and family name of the driver who has the longest laptime?", "question_toks": [ "what", "is", "id", "and", "family", "name", "of", "driver", "who", "ha", "longest", "laptime", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 90, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 94, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "id", "and", "family", "name", "of", "the", "driver", "who", "has", "the", "longest", "laptime", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "and" ], [ "family" ], [ "name" ], [ "of" ], [ "driver" ], [ "who" ], [ "ha" ], [ "longest" ], [ "laptime" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "and", "CC" ], [ "family", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "driver", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "longest", "JJS" ], [ "laptime", "NN" ], [ "?", "." ] ], "values": [ "driver", "Driver", "dryver" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(17) T(2) A(0) C(20) T(4) Sup(0) A(0) C(30) T(12)" }, { "db_id": "formula_1", "query": "SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1", "query_toks": [ "SELECT", "T1.driverid", ",", "T1.surname", "FROM", "drivers", "AS", "T1", "JOIN", "laptimes", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "ORDER", "BY", "T2.milliseconds", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "driverid", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "laptimes", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "order", "by", "t2", ".", "milliseconds", "desc", "limit", "value" ], "question": "What is the id and last name of the driver with the longest laptime?", "question_toks": [ "what", "is", "id", "and", "last", "name", "of", "driver", "with", "longest", "laptime", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 90, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 94, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "id", "and", "last", "name", "of", "the", "driver", "with", "the", "longest", "laptime", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "and" ], [ "last" ], [ "name" ], [ "of" ], [ "driver" ], [ "with" ], [ "longest" ], [ "laptime" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "driver", "NN" ], [ "with", "IN" ], [ "longest", "JJS" ], [ "laptime", "NN" ], [ "?", "." ] ], "values": [ "Driver", "dryver", "driver" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(17) T(2) A(0) C(20) T(4) Sup(0) A(0) C(30) T(12)" }, { "db_id": "formula_1", "query": "SELECT T1.driverid , T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION = '1' GROUP BY T1.driverid HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.driverid", ",", "T1.forename", ",", "T1.surname", "FROM", "drivers", "AS", "T1", "JOIN", "laptimes", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "WHERE", "POSITION", "=", "'1", "'", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "driverid", ",", "t1", ".", "forename", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "laptimes", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "where", "position", "=", "value", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What is the id, forname and surname of the driver who had the first position in terms of laptime at least twice?", "question_toks": [ "what", "is", "id", ",", "forname", "and", "surname", "of", "driver", "who", "had", "first", "position", "in", "term", "of", "laptime", "at", "least", "twice", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 90, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 92, false ], null ], "\"1\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "id", ",", "forname", "and", "surname", "of", "the", "driver", "who", "had", "the", "first", "position", "in", "terms", "of", "laptime", "at", "least", "twice", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "," ], [ "forname" ], [ "and" ], [ "surname" ], [ "of" ], [ "driver" ], [ "who" ], [ "had" ], [ "first" ], [ "position" ], [ "in" ], [ "term" ], [ "of" ], [ "laptime" ], [ "at" ], [ "least" ], [ "twice" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ ",", "," ], [ "forname", "JJ" ], [ "and", "CC" ], [ "surname", "NN" ], [ "of", "IN" ], [ "driver", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "first", "JJ" ], [ "position", "NN" ], [ "in", "IN" ], [ "term", "NN" ], [ "of", "IN" ], [ "laptime", "NN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "twice", "RB" ], [ "?", "." ] ], "values": [ "Driver", "driver", "1", "dryver", "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(17) T(2) A(0) C(19) T(4) A(0) C(20) T(4) Filter(0) Filter(2) A(0) C(23) T(12) V(2) Filter(7) A(3) C(0) T(2) V(4)" }, { "db_id": "formula_1", "query": "SELECT T1.driverid , T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION = '1' GROUP BY T1.driverid HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.driverid", ",", "T1.forename", ",", "T1.surname", "FROM", "drivers", "AS", "T1", "JOIN", "laptimes", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "WHERE", "POSITION", "=", "'1", "'", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "driverid", ",", "t1", ".", "forename", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "laptimes", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "where", "position", "=", "value", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What is the id, first name, and last name of the driver who was in the first position for laptime at least twice?", "question_toks": [ "what", "is", "id", ",", "first", "name", ",", "and", "last", "name", "of", "driver", "who", "wa", "in", "first", "position", "for", "laptime", "at", "least", "twice", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 90, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 92, false ], null ], "\"1\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "id", ",", "first", "name", ",", "and", "last", "name", "of", "the", "driver", "who", "was", "in", "the", "first", "position", "for", "laptime", "at", "least", "twice", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "," ], [ "first" ], [ "name" ], [ "," ], [ "and" ], [ "last" ], [ "name" ], [ "of" ], [ "driver" ], [ "who" ], [ "wa" ], [ "in" ], [ "first" ], [ "position" ], [ "for" ], [ "laptime" ], [ "at" ], [ "least" ], [ "twice" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ ",", "," ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "driver", "NN" ], [ "who", "WP" ], [ "wa", "VBP" ], [ "in", "IN" ], [ "first", "JJ" ], [ "position", "NN" ], [ "for", "IN" ], [ "laptime", "NN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "twice", "RB" ], [ "?", "." ] ], "values": [ "2", "dryver", "1", "Driver", "driver" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(17) T(2) A(0) C(19) T(4) A(0) C(20) T(4) Filter(0) Filter(2) A(0) C(23) T(12) V(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "formula_1", "query": "SELECT count(*) FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid WHERE T2.name = \"Australian Grand Prix\" AND YEAR = 2009", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "results", "AS", "T1", "JOIN", "races", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "WHERE", "T2.name", "=", "``", "Australian", "Grand", "Prix", "''", "AND", "YEAR", "=", "2009" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "results", "as", "t1", "join", "races", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "where", "t2", ".", "name", "=", "value", "and", "year", "=", "value" ], "question": "How many drivers participated in the race Australian Grand Prix held in 2009?", "question_toks": [ "how", "many", "driver", "participated", "in", "race", "australian", "grand", "prix", "held", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 44, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "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, 14, false ], null ], "\"Australian Grand Prix\"", null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], 2009.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "How", "many", "drivers", "participated", "in", "the", "race", "Australian", "Grand", "Prix", "held", "in", "2009", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "driver" ], [ "participated" ], [ "in" ], [ "race" ], [ "australian" ], [ "grand" ], [ "prix" ], [ "held" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "driver", "RB" ], [ "participated", "VBN" ], [ "in", "IN" ], [ "race", "NN" ], [ "australian", "JJ" ], [ "grand", "JJ" ], [ "prix", "NN" ], [ "held", "VBN" ], [ "in", "IN" ], [ "2009", "CD" ], [ "?", "." ] ], "values": [ "Australian Grand Prix", "Austrian", "Driver", "2009", "driver", "Australia", "Australian", "Austrian Grand Prix", "Italian Grand Prix" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(7) Filter(0) Filter(2) A(0) C(14) T(1) V(0) Filter(2) A(0) C(11) T(1) V(3)" }, { "db_id": "formula_1", "query": "SELECT count(*) FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid WHERE T2.name = \"Australian Grand Prix\" AND YEAR = 2009", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "results", "AS", "T1", "JOIN", "races", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "WHERE", "T2.name", "=", "``", "Australian", "Grand", "Prix", "''", "AND", "YEAR", "=", "2009" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "results", "as", "t1", "join", "races", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "where", "t2", ".", "name", "=", "value", "and", "year", "=", "value" ], "question": "How many drivers were in the Australian Grand Prix held in 2009?", "question_toks": [ "how", "many", "driver", "were", "in", "australian", "grand", "prix", "held", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 44, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "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, 14, false ], null ], "\"Australian Grand Prix\"", null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], 2009.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "How", "many", "drivers", "were", "in", "the", "Australian", "Grand", "Prix", "held", "in", "2009", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "driver" ], [ "were" ], [ "in" ], [ "australian" ], [ "grand" ], [ "prix" ], [ "held" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "driver", "NN" ], [ "were", "VBD" ], [ "in", "IN" ], [ "australian", "JJ" ], [ "grand", "JJ" ], [ "prix", "NN" ], [ "held", "VBN" ], [ "in", "IN" ], [ "2009", "CD" ], [ "?", "." ] ], "values": [ "Austrian Grand Prix", "Austrian", "Australian", "Driver", "Australian Grand Prix", "driver", "Australia", "2009", "Italian Grand Prix" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(7) Filter(0) Filter(2) A(0) C(14) T(1) V(4) Filter(2) A(0) C(11) T(1) V(7)" }, { "db_id": "formula_1", "query": "SELECT count(DISTINCT driverId) FROM results WHERE raceId NOT IN( SELECT raceId FROM races WHERE YEAR != 2009 )", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "driverId", ")", "FROM", "results", "WHERE", "raceId", "NOT", "IN", "(", "SELECT", "raceId", "FROM", "races", "WHERE", "YEAR", "!", "=", "2009", ")" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "driverid", ")", "from", "results", "where", "raceid", "not", "in", "(", "select", "raceid", "from", "races", "where", "year", "!", "=", "value", ")" ], "question": "How many drivers did not participate in the races held in 2009?", "question_toks": [ "how", "many", "driver", "did", "not", "participate", "in", "race", "held", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 45, true ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 44, 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": [ [ false, 7, [ 0, [ 0, 11, false ], null ], 2009.0, null ] ] }, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "How", "many", "drivers", "did", "not", "participate", "in", "the", "races", "held", "in", "2009", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "driver" ], [ "did" ], [ "not" ], [ "participate" ], [ "in" ], [ "race" ], [ "held" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "driver", "RB" ], [ "did", "VBD" ], [ "not", "RB" ], [ "participate", "VB" ], [ "in", "IN" ], [ "race", "NN" ], [ "held", "VBN" ], [ "in", "IN" ], [ "2009", "CD" ], [ "?", "." ] ], "values": [ "2009", "driver", "Driver" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(7) T(6) Filter(19) A(0) C(29) T(6) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(3) A(0) C(11) T(1) V(0)" }, { "db_id": "formula_1", "query": "SELECT count(DISTINCT driverId) FROM results WHERE raceId NOT IN( SELECT raceId FROM races WHERE YEAR != 2009 )", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "driverId", ")", "FROM", "results", "WHERE", "raceId", "NOT", "IN", "(", "SELECT", "raceId", "FROM", "races", "WHERE", "YEAR", "!", "=", "2009", ")" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "driverid", ")", "from", "results", "where", "raceid", "not", "in", "(", "select", "raceid", "from", "races", "where", "year", "!", "=", "value", ")" ], "question": "How many drivers did not race in 2009?", "question_toks": [ "how", "many", "driver", "did", "not", "race", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 45, true ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 44, 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": [ [ false, 7, [ 0, [ 0, 11, false ], null ], 2009.0, null ] ] }, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "How", "many", "drivers", "did", "not", "race", "in", "2009", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "driver" ], [ "did" ], [ "not" ], [ "race" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "driver", "RB" ], [ "did", "VBD" ], [ "not", "RB" ], [ "race", "NN" ], [ "in", "IN" ], [ "2009", "CD" ], [ "?", "." ] ], "values": [ "Driver", "driver", "2009" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(7) T(6) Filter(19) A(0) C(29) T(6) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(3) A(0) C(11) T(1) V(2)" }, { "db_id": "formula_1", "query": "SELECT T2.name , T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = \"Lewis\"", "query_toks": [ "SELECT", "T2.name", ",", "T2.year", "FROM", "results", "AS", "T1", "JOIN", "races", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "JOIN", "drivers", "AS", "T3", "ON", "T1.driverid", "=", "T3.driverid", "WHERE", "T3.forename", "=", "``", "Lewis", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "year", "from", "results", "as", "t1", "join", "races", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t1", ".", "driverid", "=", "t3", ".", "driverid", "where", "t3", ".", "forename", "=", "value" ], "question": "Give me a list of names and years of races that had any driver whose forename is Lewis?", "question_toks": [ "give", "me", "a", "list", "of", "name", "and", "year", "of", "race", "that", "had", "any", "driver", "whose", "forename", "is", "lewis", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 44, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"Lewis\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "Give", "me", "a", "list", "of", "names", "and", "years", "of", "races", "that", "had", "any", "driver", "whose", "forename", "is", "Lewis", "?" ], "question_arg": [ [ "give" ], [ "me" ], [ "a" ], [ "list" ], [ "of" ], [ "name" ], [ "and" ], [ "year" ], [ "of" ], [ "race" ], [ "that" ], [ "had" ], [ "any" ], [ "driver" ], [ "whose" ], [ "forename" ], [ "is" ], [ "lewis" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "a", "DT" ], [ "list", "NN" ], [ "of", "IN" ], [ "name", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "any", "DT" ], [ "driver", "NN" ], [ "whose", "WP$" ], [ "forename", "NN" ], [ "is", "VBZ" ], [ "lewis", "VBN" ], [ "?", "." ] ], "values": [ "james", "lewis", "Driver", "Lewis", "dryver", "driver", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(1) A(0) C(11) T(1) Filter(2) A(0) C(19) T(4) V(3)" }, { "db_id": "formula_1", "query": "SELECT T2.name , T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = \"Lewis\"", "query_toks": [ "SELECT", "T2.name", ",", "T2.year", "FROM", "results", "AS", "T1", "JOIN", "races", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "JOIN", "drivers", "AS", "T3", "ON", "T1.driverid", "=", "T3.driverid", "WHERE", "T3.forename", "=", "``", "Lewis", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "year", "from", "results", "as", "t1", "join", "races", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t1", ".", "driverid", "=", "t3", ".", "driverid", "where", "t3", ".", "forename", "=", "value" ], "question": "What are the names and years of all races that had a driver with the last name Lewis?", "question_toks": [ "what", "are", "name", "and", "year", "of", "all", "race", "that", "had", "a", "driver", "with", "last", "name", "lewis", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 44, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"Lewis\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "years", "of", "all", "races", "that", "had", "a", "driver", "with", "the", "last", "name", "Lewis", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "year" ], [ "of" ], [ "all" ], [ "race" ], [ "that" ], [ "had" ], [ "a" ], [ "driver" ], [ "with" ], [ "last" ], [ "name" ], [ "lewis" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "race", "NN" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "a", "DT" ], [ "driver", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "lewis", "VBD" ], [ "?", "." ] ], "values": [ "dryver", "Lewis", "driver", "james", "Driver", "James", "lewis" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(1) A(0) C(11) T(1) Filter(2) A(0) C(19) T(4) V(1)" }, { "db_id": "formula_1", "query": "SELECT forename , surname FROM drivers WHERE nationality = \"German\"", "query_toks": [ "SELECT", "forename", ",", "surname", "FROM", "drivers", "WHERE", "nationality", "=", "``", "German", "''" ], "query_toks_no_value": [ "select", "forename", ",", "surname", "from", "drivers", "where", "nationality", "=", "value" ], "question": "Find the forename and surname of drivers whose nationality is German?", "question_toks": [ "find", "forename", "and", "surname", "of", "driver", "whose", "nationality", "is", "german", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"German\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "Find", "the", "forename", "and", "surname", "of", "drivers", "whose", "nationality", "is", "German", "?" ], "question_arg": [ [ "find" ], [ "forename" ], [ "and" ], [ "surname" ], [ "of" ], [ "driver" ], [ "whose" ], [ "nationality" ], [ "is" ], [ "german" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "forename", "NN" ], [ "and", "CC" ], [ "surname", "NN" ], [ "of", "IN" ], [ "driver", "NN" ], [ "whose", "WP$" ], [ "nationality", "NN" ], [ "is", "VBZ" ], [ "german", "JJ" ], [ "?", "." ] ], "values": [ "German", "Germany", "driver", "herman", "Driver", "Herman" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(4) A(0) C(20) T(4) Filter(2) A(0) C(16) T(4) V(0)" }, { "db_id": "formula_1", "query": "SELECT forename , surname FROM drivers WHERE nationality = \"German\"", "query_toks": [ "SELECT", "forename", ",", "surname", "FROM", "drivers", "WHERE", "nationality", "=", "``", "German", "''" ], "query_toks_no_value": [ "select", "forename", ",", "surname", "from", "drivers", "where", "nationality", "=", "value" ], "question": "What is the first and last name of all the German drivers?", "question_toks": [ "what", "is", "first", "and", "last", "name", "of", "all", "german", "driver", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"German\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "first", "and", "last", "name", "of", "all", "the", "German", "drivers", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "and" ], [ "last" ], [ "name" ], [ "of" ], [ "all" ], [ "german" ], [ "driver" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "german", "JJ" ], [ "driver", "NN" ], [ "?", "." ] ], "values": [ "1", "Germany", "herman", "German", "driver", "Herman", "Driver" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(4) A(0) C(20) T(4) Filter(2) A(0) C(16) T(4) V(3)" }, { "db_id": "formula_1", "query": "SELECT T2.driverid , T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Australian Grand Prix\" INTERSECT SELECT T2.driverid , T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Chinese Grand Prix\"", "query_toks": [ "SELECT", "T2.driverid", ",", "T3.forename", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2.driverid", "=", "T3.driverid", "WHERE", "T1.name", "=", "``", "Australian", "Grand", "Prix", "''", "INTERSECT", "SELECT", "T2.driverid", ",", "T3.forename", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2.driverid", "=", "T3.driverid", "WHERE", "T1.name", "=", "``", "Chinese", "Grand", "Prix", "''" ], "query_toks_no_value": [ "select", "t2", ".", "driverid", ",", "t3", ".", "forename", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "value", "intersect", "select", "t2", ".", "driverid", ",", "t3", ".", "forename", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "value" ], "question": "Find the id and forenames of drivers who participated both the races with name Australian Grand Prix and the races with name Chinese Grand Prix?", "question_toks": [ "find", "id", "and", "forename", "of", "driver", "who", "participated", "both", "race", "with", "name", "australian", "grand", "prix", "and", "race", "with", "name", "chinese", "grand", "prix", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 44, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 44, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Chinese Grand Prix\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Australian Grand Prix\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "Find", "the", "id", "and", "forenames", "of", "drivers", "who", "participated", "both", "the", "races", "with", "name", "Australian", "Grand", "Prix", "and", "the", "races", "with", "name", "Chinese", "Grand", "Prix", "?" ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "forename" ], [ "of" ], [ "driver" ], [ "who" ], [ "participated" ], [ "both" ], [ "race" ], [ "with" ], [ "name" ], [ "australian" ], [ "grand" ], [ "prix" ], [ "and" ], [ "race" ], [ "with" ], [ "name" ], [ "chinese" ], [ "grand" ], [ "prix" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "forename", "NN" ], [ "of", "IN" ], [ "driver", "NN" ], [ "who", "WP" ], [ "participated", "VBD" ], [ "both", "DT" ], [ "race", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "australian", "JJ" ], [ "grand", "JJ" ], [ "prix", "NN" ], [ "and", "CC" ], [ "race", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "chinese", "JJ" ], [ "grand", "JJ" ], [ "prix", "NN" ], [ "?", "." ] ], "values": [ "Australian Grand Prix", "Australian", "Australia", "Italian Grand Prix", "Chinese Grand Prix", "driver", "Austrian", "Driver", "Austrian Grand Prix" ], "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(7) T(6) A(0) C(19) T(4) Filter(2) A(0) C(14) T(1) V(0) Root(3) Sel(0) N(1) A(0) C(7) T(6) A(0) C(19) T(4) Filter(2) A(0) C(14) T(1) V(4)" }, { "db_id": "formula_1", "query": "SELECT T2.driverid , T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Australian Grand Prix\" INTERSECT SELECT T2.driverid , T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Chinese Grand Prix\"", "query_toks": [ "SELECT", "T2.driverid", ",", "T3.forename", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2.driverid", "=", "T3.driverid", "WHERE", "T1.name", "=", "``", "Australian", "Grand", "Prix", "''", "INTERSECT", "SELECT", "T2.driverid", ",", "T3.forename", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2.driverid", "=", "T3.driverid", "WHERE", "T1.name", "=", "``", "Chinese", "Grand", "Prix", "''" ], "query_toks_no_value": [ "select", "t2", ".", "driverid", ",", "t3", ".", "forename", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "value", "intersect", "select", "t2", ".", "driverid", ",", "t3", ".", "forename", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "value" ], "question": "What is the id and first name of all the drivers who participated in the Australian Grand Prix and the Chinese Grand Prix?", "question_toks": [ "what", "is", "id", "and", "first", "name", "of", "all", "driver", "who", "participated", "in", "australian", "grand", "prix", "and", "chinese", "grand", "prix", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 44, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 44, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Chinese Grand Prix\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Australian Grand Prix\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "id", "and", "first", "name", "of", "all", "the", "drivers", "who", "participated", "in", "the", "Australian", "Grand", "Prix", "and", "the", "Chinese", "Grand", "Prix", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "and" ], [ "first" ], [ "name" ], [ "of" ], [ "all" ], [ "driver" ], [ "who" ], [ "participated" ], [ "in" ], [ "australian" ], [ "grand" ], [ "prix" ], [ "and" ], [ "chinese" ], [ "grand" ], [ "prix" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "and", "CC" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "driver", "NN" ], [ "who", "WP" ], [ "participated", "VBD" ], [ "in", "IN" ], [ "australian", "JJ" ], [ "grand", "JJ" ], [ "prix", "NN" ], [ "and", "CC" ], [ "chinese", "JJ" ], [ "grand", "JJ" ], [ "prix", "NN" ], [ "?", "." ] ], "values": [ "Driver", "Australia", "Chinese Grand Prix", "Austrian Grand Prix", "Italian Grand Prix", "Australian Grand Prix", "driver", "1", "Austrian", "Australian" ], "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(7) T(6) A(0) C(19) T(4) Filter(2) A(0) C(14) T(1) V(5) Root(3) Sel(0) N(1) A(0) C(7) T(6) A(0) C(19) T(4) Filter(2) A(0) C(14) T(1) V(2)" }, { "db_id": "formula_1", "query": "SELECT T3.forename , T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Australian Grand Prix\" EXCEPT SELECT T3.forename , T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Chinese Grand Prix\"", "query_toks": [ "SELECT", "T3.forename", ",", "T3.surname", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2.driverid", "=", "T3.driverid", "WHERE", "T1.name", "=", "``", "Australian", "Grand", "Prix", "''", "EXCEPT", "SELECT", "T3.forename", ",", "T3.surname", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2.driverid", "=", "T3.driverid", "WHERE", "T1.name", "=", "``", "Chinese", "Grand", "Prix", "''" ], "query_toks_no_value": [ "select", "t3", ".", "forename", ",", "t3", ".", "surname", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "value", "except", "select", "t3", ".", "forename", ",", "t3", ".", "surname", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "value" ], "question": "What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix but not the races named Chinese Grand Prix?", "question_toks": [ "what", "are", "forename", "and", "surname", "of", "driver", "who", "participated", "in", "race", "named", "australian", "grand", "prix", "but", "not", "race", "named", "chinese", "grand", "prix", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 44, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Chinese Grand Prix\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 44, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Australian Grand Prix\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "forenames", "and", "surnames", "of", "drivers", "who", "participated", "in", "the", "races", "named", "Australian", "Grand", "Prix", "but", "not", "the", "races", "named", "Chinese", "Grand", "Prix", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "forename" ], [ "and" ], [ "surname" ], [ "of" ], [ "driver" ], [ "who" ], [ "participated" ], [ "in" ], [ "race" ], [ "named" ], [ "australian" ], [ "grand" ], [ "prix" ], [ "but" ], [ "not" ], [ "race" ], [ "named" ], [ "chinese" ], [ "grand" ], [ "prix" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "forename", "JJ" ], [ "and", "CC" ], [ "surname", "NN" ], [ "of", "IN" ], [ "driver", "NN" ], [ "who", "WP" ], [ "participated", "VBD" ], [ "in", "IN" ], [ "race", "NN" ], [ "named", "VBN" ], [ "australian", "JJ" ], [ "grand", "JJ" ], [ "prix", "NN" ], [ "but", "CC" ], [ "not", "RB" ], [ "race", "NN" ], [ "named", "VBN" ], [ "chinese", "JJ" ], [ "grand", "JJ" ], [ "prix", "NN" ], [ "?", "." ] ], "values": [ "Driver", "Australia", "Chinese Grand Prix", "Austrian Grand Prix", "Italian Grand Prix", "Australian Grand Prix", "driver", "Austrian", "Australian" ], "rule_label": "Root1(2) Root(3) Sel(0) N(1) A(0) C(19) T(4) A(0) C(20) T(4) Filter(2) A(0) C(14) T(1) V(5) Root(3) Sel(0) N(1) A(0) C(19) T(4) A(0) C(20) T(4) Filter(2) A(0) C(14) T(1) V(2)" }, { "db_id": "formula_1", "query": "SELECT T3.forename , T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Australian Grand Prix\" EXCEPT SELECT T3.forename , T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Chinese Grand Prix\"", "query_toks": [ "SELECT", "T3.forename", ",", "T3.surname", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2.driverid", "=", "T3.driverid", "WHERE", "T1.name", "=", "``", "Australian", "Grand", "Prix", "''", "EXCEPT", "SELECT", "T3.forename", ",", "T3.surname", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2.driverid", "=", "T3.driverid", "WHERE", "T1.name", "=", "``", "Chinese", "Grand", "Prix", "''" ], "query_toks_no_value": [ "select", "t3", ".", "forename", ",", "t3", ".", "surname", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "value", "except", "select", "t3", ".", "forename", ",", "t3", ".", "surname", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "value" ], "question": "What are the first and last names of all drivers who participated in the Australian Grand Prix but not the Chinese Grand Prix?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "all", "driver", "who", "participated", "in", "australian", "grand", "prix", "but", "not", "chinese", "grand", "prix", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 44, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Chinese Grand Prix\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 44, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Australian Grand Prix\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "of", "all", "drivers", "who", "participated", "in", "the", "Australian", "Grand", "Prix", "but", "not", "the", "Chinese", "Grand", "Prix", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last" ], [ "name" ], [ "of" ], [ "all" ], [ "driver" ], [ "who" ], [ "participated" ], [ "in" ], [ "australian" ], [ "grand" ], [ "prix" ], [ "but" ], [ "not" ], [ "chinese" ], [ "grand" ], [ "prix" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "driver", "NN" ], [ "who", "WP" ], [ "participated", "VBD" ], [ "in", "IN" ], [ "australian", "JJ" ], [ "grand", "JJ" ], [ "prix", "NN" ], [ "but", "CC" ], [ "not", "RB" ], [ "chinese", "JJ" ], [ "grand", "JJ" ], [ "prix", "NN" ], [ "?", "." ] ], "values": [ "driver", "Chinese Grand Prix", "Austrian Grand Prix", "Australian", "Driver", "Australia", "James", "Austrian", "1", "james", "Australian Grand Prix", "Italian Grand Prix" ], "rule_label": "Root1(2) Root(3) Sel(0) N(1) A(0) C(19) T(4) A(0) C(20) T(4) Filter(2) A(0) C(14) T(1) V(10) Root(3) Sel(0) N(1) A(0) C(19) T(4) A(0) C(20) T(4) Filter(2) A(0) C(14) T(1) V(1)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1", "query_toks": [ "SELECT", "DISTINCT", "T1.forename", "FROM", "drivers", "AS", "T1", "JOIN", "driverstandings", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "WHERE", "T2.position", "=", "1", "AND", "T2.wins", "=", "1" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "forename", "from", "drivers", "as", "t1", "join", "driverstandings", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "where", "t2", ".", "position", "=", "value", "and", "t2", ".", "wins", "=", "value" ], "question": "Find all the forenames of distinct drivers who was in position 1 as standing and won?", "question_toks": [ "find", "all", "forename", "of", "distinct", "driver", "who", "wa", "in", "position", "1", "a", "standing", "and", "won", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 63, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 63, 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 ], "and", [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 63, 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, 65, false ], null ], 1.0, null ], "and", [ false, 2, [ 0, [ 0, 67, false ], null ], 1.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "Find", "all", "the", "forenames", "of", "distinct", "drivers", "who", "was", "in", "position", "1", "as", "standing", "and", "won", "?" ], "question_arg": [ [ "find" ], [ "all" ], [ "forename" ], [ "of" ], [ "distinct" ], [ "driver" ], [ "who" ], [ "wa" ], [ "in" ], [ "position" ], [ "1" ], [ "a" ], [ "standing" ], [ "and" ], [ "won" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "forename", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "driver", "NN" ], [ "who", "WP" ], [ "wa", "VBZ" ], [ "in", "IN" ], [ "position", "NN" ], [ "1", "CD" ], [ "a", "DT" ], [ "standing", "NN" ], [ "and", "CC" ], [ "won", "VBD" ], [ "?", "." ] ], "values": [ "Driver", "1", "driver" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(19) T(4) Filter(0) Filter(18) A(0) C(18) T(8) Root(5) Sel(0) N(0) 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(8) Filter(2) A(0) C(1) T(9) V(1)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1", "query_toks": [ "SELECT", "DISTINCT", "T1.forename", "FROM", "drivers", "AS", "T1", "JOIN", "driverstandings", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "WHERE", "T2.position", "=", "1", "AND", "T2.wins", "=", "1" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "forename", "from", "drivers", "as", "t1", "join", "driverstandings", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "where", "t2", ".", "position", "=", "value", "and", "t2", ".", "wins", "=", "value" ], "question": "What are all the different first names of the drivers who are in position as standing and won?", "question_toks": [ "what", "are", "all", "different", "first", "name", "of", "driver", "who", "are", "in", "position", "a", "standing", "and", "won", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 63, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 63, 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 ], "and", [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 63, 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, 65, false ], null ], 1.0, null ], "and", [ false, 2, [ 0, [ 0, 67, false ], null ], 1.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "all", "the", "different", "first", "names", "of", "the", "drivers", "who", "are", "in", "position", "as", "standing", "and", "won", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "different" ], [ "first" ], [ "name" ], [ "of" ], [ "driver" ], [ "who" ], [ "are" ], [ "in" ], [ "position" ], [ "a" ], [ "standing" ], [ "and" ], [ "won" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "different", "JJ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "driver", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "in", "IN" ], [ "position", "NN" ], [ "a", "DT" ], [ "standing", "NN" ], [ "and", "CC" ], [ "won", "VBD" ], [ "?", "." ] ], "values": [ "james", "Driver", "driver", "James", "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(19) T(4) Filter(0) Filter(18) A(0) C(18) T(8) Root(5) Sel(0) N(0) 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(8) Filter(2) A(0) C(1) T(9) V(4)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20", "query_toks": [ "SELECT", "DISTINCT", "T1.forename", "FROM", "drivers", "AS", "T1", "JOIN", "driverstandings", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "WHERE", "T2.position", "=", "1", "AND", "T2.wins", "=", "1", "AND", "T2.points", ">", "20" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "forename", "from", "drivers", "as", "t1", "join", "driverstandings", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "where", "t2", ".", "position", "=", "value", "and", "t2", ".", "wins", "=", "value", "and", "t2", ".", "points", ">", "value" ], "question": "Find all the forenames of distinct drivers who won in position 1 as driver standing and had more than 20 points?", "question_toks": [ "find", "all", "forename", "of", "distinct", "driver", "who", "won", "in", "position", "1", "a", "driver", "standing", "and", "had", "more", "than", "20", "point", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 63, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 63, 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 ], "and", [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 63, 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, 65, false ], null ], 1.0, null ], "and", [ false, 2, [ 0, [ 0, 67, false ], null ], 1.0, null ], "and", [ false, 3, [ 0, [ 0, 64, false ], null ], 20.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "Find", "all", "the", "forenames", "of", "distinct", "drivers", "who", "won", "in", "position", "1", "as", "driver", "standing", "and", "had", "more", "than", "20", "points", "?" ], "question_arg": [ [ "find" ], [ "all" ], [ "forename" ], [ "of" ], [ "distinct" ], [ "driver" ], [ "who" ], [ "won" ], [ "in" ], [ "position" ], [ "1" ], [ "a" ], [ "driver", "standing" ], [ "and" ], [ "had" ], [ "more" ], [ "than" ], [ "20" ], [ "point" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "forename", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "driver", "NN" ], [ "who", "WP" ], [ "won", "VBD" ], [ "in", "IN" ], [ "position", "NN" ], [ "1", "CD" ], [ "a", "DT" ], [ "driver", "NN" ], [ "standing", "NN" ], [ "and", "CC" ], [ "had", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ "point", "NN" ], [ "?", "." ] ], "values": [ "Driver", "dryver", "driver", "20", "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(19) T(4) Filter(0) Filter(18) A(0) C(18) T(8) Root(5) Sel(0) N(0) 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(8) Filter(2) A(0) C(1) T(9) V(4)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20", "query_toks": [ "SELECT", "DISTINCT", "T1.forename", "FROM", "drivers", "AS", "T1", "JOIN", "driverstandings", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "WHERE", "T2.position", "=", "1", "AND", "T2.wins", "=", "1", "AND", "T2.points", ">", "20" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "forename", "from", "drivers", "as", "t1", "join", "driverstandings", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "where", "t2", ".", "position", "=", "value", "and", "t2", ".", "wins", "=", "value", "and", "t2", ".", "points", ">", "value" ], "question": "What are the first names of the different drivers who won in position 1 as driver standing and had more than 20 points?", "question_toks": [ "what", "are", "first", "name", "of", "different", "driver", "who", "won", "in", "position", "1", "a", "driver", "standing", "and", "had", "more", "than", "20", "point", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 63, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 63, 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 ], "and", [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 63, 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, 65, false ], null ], 1.0, null ], "and", [ false, 2, [ 0, [ 0, 67, false ], null ], 1.0, null ], "and", [ false, 3, [ 0, [ 0, 64, false ], null ], 20.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "the", "different", "drivers", "who", "won", "in", "position", "1", "as", "driver", "standing", "and", "had", "more", "than", "20", "points", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "of" ], [ "different" ], [ "driver" ], [ "who" ], [ "won" ], [ "in" ], [ "position" ], [ "1" ], [ "a" ], [ "driver", "standing" ], [ "and" ], [ "had" ], [ "more" ], [ "than" ], [ "20" ], [ "point" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "driver", "NN" ], [ "who", "WP" ], [ "won", "VBD" ], [ "in", "IN" ], [ "position", "NN" ], [ "1", "CD" ], [ "a", "DT" ], [ "driver", "NN" ], [ "standing", "NN" ], [ "and", "CC" ], [ "had", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ "point", "NN" ], [ "?", "." ] ], "values": [ "dryver", "20", "1", "driver", "james", "Driver", "James" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(19) T(4) Filter(0) Filter(18) A(0) C(18) T(8) Root(5) Sel(0) N(0) 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(8) Filter(2) A(0) C(1) T(9) V(2)" }, { "db_id": "formula_1", "query": "SELECT count(*) , nationality FROM constructors GROUP BY nationality", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "nationality", "FROM", "constructors", "GROUP", "BY", "nationality" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "nationality", "from", "constructors", "group", "by", "nationality" ], "question": "What are the numbers of constructors for different nationalities?", "question_toks": [ "what", "are", "number", "of", "constructor", "for", "different", "nationality", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 34, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "numbers", "of", "constructors", "for", "different", "nationalities", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "number" ], [ "of" ], [ "constructor" ], [ "for" ], [ "different" ], [ "nationality" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "constructor", "NN" ], [ "for", "IN" ], [ "different", "JJ" ], [ "nationality", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(5) A(0) C(26) T(6)" }, { "db_id": "formula_1", "query": "SELECT count(*) , nationality FROM constructors GROUP BY nationality", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "nationality", "FROM", "constructors", "GROUP", "BY", "nationality" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "nationality", "from", "constructors", "group", "by", "nationality" ], "question": "For each nationality, how many different constructors are there?", "question_toks": [ "for", "each", "nationality", ",", "how", "many", "different", "constructor", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 34, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "For", "each", "nationality", ",", "how", "many", "different", "constructors", "are", "there", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "nationality" ], [ "," ], [ "how" ], [ "many" ], [ "different" ], [ "constructor" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "nationality", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "constructor", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(5) A(0) C(26) T(6)" }, { "db_id": "formula_1", "query": "SELECT count(*) , constructorid FROM constructorStandings GROUP BY constructorid", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "constructorid", "FROM", "constructorStandings", "GROUP", "BY", "constructorid" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "constructorid", "from", "constructorstandings", "group", "by", "constructorid" ], "question": "What are the numbers of races for each constructor id?", "question_toks": [ "what", "are", "number", "of", "race", "for", "each", "constructor", "id", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 38, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "numbers", "of", "races", "for", "each", "constructor", "id", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "number" ], [ "of" ], [ "race" ], [ "for" ], [ "each" ], [ "constructor", "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "constructor", "NN" ], [ "id", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(6) A(0) C(11) T(6)" }, { "db_id": "formula_1", "query": "SELECT count(*) , constructorid FROM constructorStandings GROUP BY constructorid", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "constructorid", "FROM", "constructorStandings", "GROUP", "BY", "constructorid" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "constructorid", "from", "constructorstandings", "group", "by", "constructorid" ], "question": "For each constructor id, how many races are there?", "question_toks": [ "for", "each", "constructor", "id", ",", "how", "many", "race", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 38, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "For", "each", "constructor", "id", ",", "how", "many", "races", "are", "there", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "constructor", "id" ], [ "," ], [ "how" ], [ "many" ], [ "race" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "constructor", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "race", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(6) A(0) C(11) T(6)" }, { "db_id": "formula_1", "query": "SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2017", "query_toks": [ "SELECT", "T1.name", "FROM", "races", "AS", "T1", "JOIN", "circuits", "AS", "T2", "ON", "T1.circuitid", "=", "T2.circuitid", "WHERE", "T2.country", "=", "``", "Spain", "''", "AND", "T1.year", ">", "2017" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "races", "as", "t1", "join", "circuits", "as", "t2", "on", "t1", ".", "circuitid", "=", "t2", ".", "circuitid", "where", "t2", ".", "country", "=", "value", "and", "t1", ".", "year", ">", "value" ], "question": "What are the names of races that were held after 2017 and the circuits were in the country of Spain?", "question_toks": [ "what", "are", "name", "of", "race", "that", "were", "held", "after", "year", "and", "circuit", "were", "in", "country", "of", "spain", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, 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, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Spain\"", null ], "and", [ false, 3, [ 0, [ 0, 11, false ], null ], 2017.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "races", "that", "were", "held", "after", "2017", "and", "the", "circuits", "were", "in", "the", "country", "of", "Spain", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "race" ], [ "that" ], [ "were" ], [ "held" ], [ "after" ], [ "year" ], [ "and" ], [ "circuit" ], [ "were" ], [ "in" ], [ "country" ], [ "of" ], [ "spain" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "held", "VBN" ], [ "after", "IN" ], [ "2017", "CD" ], [ "and", "CC" ], [ "circuit", "NN" ], [ "were", "VBD" ], [ "in", "IN" ], [ "country", "NN" ], [ "of", "IN" ], [ "spain", "NN" ], [ "?", "." ] ], "values": [ "Spain", "James", "2017", "james" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(1) Filter(0) Filter(2) A(0) C(5) T(0) V(0) Filter(5) A(0) C(11) T(1) V(2)" }, { "db_id": "formula_1", "query": "SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2017", "query_toks": [ "SELECT", "T1.name", "FROM", "races", "AS", "T1", "JOIN", "circuits", "AS", "T2", "ON", "T1.circuitid", "=", "T2.circuitid", "WHERE", "T2.country", "=", "``", "Spain", "''", "AND", "T1.year", ">", "2017" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "races", "as", "t1", "join", "circuits", "as", "t2", "on", "t1", ".", "circuitid", "=", "t2", ".", "circuitid", "where", "t2", ".", "country", "=", "value", "and", "t1", ".", "year", ">", "value" ], "question": "What are the names of the races held after 2017 in Spain?", "question_toks": [ "what", "are", "name", "of", "race", "held", "after", "year", "in", "spain", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, 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, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Spain\"", null ], "and", [ false, 3, [ 0, [ 0, 11, false ], null ], 2017.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "races", "held", "after", "2017", "in", "Spain", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "race" ], [ "held" ], [ "after" ], [ "year" ], [ "in" ], [ "spain" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "held", "VBN" ], [ "after", "IN" ], [ "2017", "CD" ], [ "in", "IN" ], [ "spain", "NN" ], [ "?", "." ] ], "values": [ "Spain", "2017", "james", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(1) Filter(0) Filter(2) A(0) C(5) T(0) V(0) Filter(5) A(0) C(11) T(1) V(1)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2000", "query_toks": [ "SELECT", "DISTINCT", "T1.name", "FROM", "races", "AS", "T1", "JOIN", "circuits", "AS", "T2", "ON", "T1.circuitid", "=", "T2.circuitid", "WHERE", "T2.country", "=", "``", "Spain", "''", "AND", "T1.year", ">", "2000" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", "from", "races", "as", "t1", "join", "circuits", "as", "t2", "on", "t1", ".", "circuitid", "=", "t2", ".", "circuitid", "where", "t2", ".", "country", "=", "value", "and", "t1", ".", "year", ">", "value" ], "question": "What are the unique names of races that held after 2000 and the circuits were in Spain?", "question_toks": [ "what", "are", "unique", "name", "of", "race", "that", "held", "after", "year", "and", "circuit", "were", "in", "spain", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, 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, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Spain\"", null ], "and", [ false, 3, [ 0, [ 0, 11, false ], null ], 2000.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "unique", "names", "of", "races", "that", "held", "after", "2000", "and", "the", "circuits", "were", "in", "Spain", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "unique" ], [ "name" ], [ "of" ], [ "race" ], [ "that" ], [ "held" ], [ "after" ], [ "year" ], [ "and" ], [ "circuit" ], [ "were" ], [ "in" ], [ "spain" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "unique", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "that", "IN" ], [ "held", "VBD" ], [ "after", "IN" ], [ "2000", "CD" ], [ "and", "CC" ], [ "circuit", "NN" ], [ "were", "VBD" ], [ "in", "IN" ], [ "spain", "NN" ], [ "?", "." ] ], "values": [ "Spain", "2000", "james", "James" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(14) T(1) Filter(0) Filter(2) A(0) C(5) T(0) V(0) Filter(5) A(0) C(11) T(1) V(1)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2000", "query_toks": [ "SELECT", "DISTINCT", "T1.name", "FROM", "races", "AS", "T1", "JOIN", "circuits", "AS", "T2", "ON", "T1.circuitid", "=", "T2.circuitid", "WHERE", "T2.country", "=", "``", "Spain", "''", "AND", "T1.year", ">", "2000" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", "from", "races", "as", "t1", "join", "circuits", "as", "t2", "on", "t1", ".", "circuitid", "=", "t2", ".", "circuitid", "where", "t2", ".", "country", "=", "value", "and", "t1", ".", "year", ">", "value" ], "question": "What are the names of all races held after 2000 in Spain?", "question_toks": [ "what", "are", "name", "of", "all", "race", "held", "after", "year", "in", "spain", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, 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, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Spain\"", null ], "and", [ false, 3, [ 0, [ 0, 11, false ], null ], 2000.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "races", "held", "after", "2000", "in", "Spain", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "race" ], [ "held" ], [ "after" ], [ "year" ], [ "in" ], [ "spain" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "race", "NN" ], [ "held", "VBD" ], [ "after", "IN" ], [ "2000", "CD" ], [ "in", "IN" ], [ "spain", "NN" ], [ "?", "." ] ], "values": [ "James", "james", "Spain", "2000" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(14) T(1) Filter(0) Filter(2) A(0) C(5) T(0) V(2) Filter(5) A(0) C(11) T(1) V(3)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT driverid , STOP FROM pitstops WHERE duration < (SELECT max(duration) FROM pitstops WHERE raceid = 841)", "query_toks": [ "SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", "<", "(", "SELECT", "max", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "841", ")" ], "query_toks_no_value": [ "select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", "<", "(", "select", "max", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "value", ")" ], "question": "Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than some drivers in the race with id 841.", "question_toks": [ "find", "distinct", "driver", "id", "and", "stop", "number", "of", "all", "driver", "that", "have", "a", "shorter", "pit", "stop", "duration", "than", "some", "driver", "in", "race", "with", "id", "841", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 83, false ], null ] ], [ 0, [ 0, [ 0, 84, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 87, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 87, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 82, false ], null ], 841.0, null ] ] }, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "Find", "the", "distinct", "driver", "id", "and", "the", "stop", "number", "of", "all", "drivers", "that", "have", "a", "shorter", "pit", "stop", "duration", "than", "some", "drivers", "in", "the", "race", "with", "id", "841", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "driver", "id" ], [ "and" ], [ "stop" ], [ "number" ], [ "of" ], [ "all" ], [ "driver" ], [ "that" ], [ "have" ], [ "a" ], [ "shorter" ], [ "pit" ], [ "stop" ], [ "duration" ], [ "than" ], [ "some" ], [ "driver" ], [ "in" ], [ "race" ], [ "with" ], [ "id" ], [ "841" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "driver", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "stop", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "driver", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "shorter", "JJR" ], [ "pit", "NN" ], [ "stop", "NN" ], [ "duration", "NN" ], [ "than", "IN" ], [ "some", "DT" ], [ "driver", "NN" ], [ "in", "IN" ], [ "race", "NN" ], [ "with", "IN" ], [ "id", "JJ" ], [ "841", "CD" ], [ ".", "." ] ], "values": [ "driver", "Driver", "841", "pace", "Rae", "rae", "dryver", "Pace" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(9) T(11) A(0) C(47) T(11) Filter(12) A(0) C(49) T(11) Root(3) Sel(0) N(0) A(1) C(49) T(11) Filter(2) A(0) C(1) T(11) V(2)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT driverid , STOP FROM pitstops WHERE duration < (SELECT max(duration) FROM pitstops WHERE raceid = 841)", "query_toks": [ "SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", "<", "(", "SELECT", "max", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "841", ")" ], "query_toks_no_value": [ "select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", "<", "(", "select", "max", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "value", ")" ], "question": "What is the id and stop number for each driver that has a shorter pit stop than the driver in the race with id 841?", "question_toks": [ "what", "is", "id", "and", "stop", "number", "for", "each", "driver", "that", "ha", "a", "shorter", "pit", "stop", "than", "driver", "in", "race", "with", "id", "841", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 83, false ], null ] ], [ 0, [ 0, [ 0, 84, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 87, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 87, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 82, false ], null ], 841.0, null ] ] }, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "id", "and", "stop", "number", "for", "each", "driver", "that", "has", "a", "shorter", "pit", "stop", "than", "the", "driver", "in", "the", "race", "with", "id", "841", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "and" ], [ "stop" ], [ "number" ], [ "for" ], [ "each" ], [ "driver" ], [ "that" ], [ "ha" ], [ "a" ], [ "shorter" ], [ "pit" ], [ "stop" ], [ "than" ], [ "driver" ], [ "in" ], [ "race" ], [ "with" ], [ "id" ], [ "841" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "and", "CC" ], [ "stop", "JJ" ], [ "number", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "driver", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "a", "DT" ], [ "shorter", "NN" ], [ "pit", "NN" ], [ "stop", "NN" ], [ "than", "IN" ], [ "driver", "NN" ], [ "in", "IN" ], [ "race", "NN" ], [ "with", "IN" ], [ "id", "JJ" ], [ "841", "CD" ], [ "?", "." ] ], "values": [ "Rae", "Pace", "dryver", "driver", "pace", "841", "rae", "Driver" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(9) T(11) A(0) C(47) T(11) Filter(12) A(0) C(49) T(11) Root(3) Sel(0) N(0) A(1) C(49) T(11) Filter(2) A(0) C(1) T(11) V(5)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT driverid , STOP FROM pitstops WHERE duration > (SELECT min(duration) FROM pitstops WHERE raceid = 841)", "query_toks": [ "SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", ">", "(", "SELECT", "min", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "841", ")" ], "query_toks_no_value": [ "select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", ">", "(", "select", "min", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "value", ")" ], "question": "Find the distinct driver id of all drivers that have a longer stop duration than some drivers in the race whose id is 841?", "question_toks": [ "find", "distinct", "driver", "id", "of", "all", "driver", "that", "have", "a", "longer", "stop", "duration", "than", "some", "driver", "in", "race", "whose", "id", "is", "841", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 83, false ], null ] ], [ 0, [ 0, [ 0, 84, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 87, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 87, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 82, false ], null ], 841.0, null ] ] }, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "Find", "the", "distinct", "driver", "id", "of", "all", "drivers", "that", "have", "a", "longer", "stop", "duration", "than", "some", "drivers", "in", "the", "race", "whose", "id", "is", "841", "?" ], "question_arg": [ [ "find" ], [ "distinct" ], [ "driver", "id" ], [ "of" ], [ "all" ], [ "driver" ], [ "that" ], [ "have" ], [ "a" ], [ "longer" ], [ "stop" ], [ "duration" ], [ "than" ], [ "some" ], [ "driver" ], [ "in" ], [ "race" ], [ "whose" ], [ "id" ], [ "is" ], [ "841" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "driver", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "driver", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "longer", "JJR" ], [ "stop", "JJ" ], [ "duration", "NN" ], [ "than", "IN" ], [ "some", "DT" ], [ "driver", "NN" ], [ "in", "IN" ], [ "race", "NN" ], [ "whose", "WP$" ], [ "id", "NN" ], [ "is", "VBZ" ], [ "841", "CD" ], [ "?", "." ] ], "values": [ "Driver", "Pace", "Rae", "dryver", "rae", "841", "driver", "pace" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(9) T(11) A(0) C(47) T(11) Filter(13) A(0) C(49) T(11) Root(3) Sel(0) N(0) A(2) C(49) T(11) Filter(2) A(0) C(1) T(11) V(5)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT driverid , STOP FROM pitstops WHERE duration > (SELECT min(duration) FROM pitstops WHERE raceid = 841)", "query_toks": [ "SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", ">", "(", "SELECT", "min", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "841", ")" ], "query_toks_no_value": [ "select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", ">", "(", "select", "min", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "value", ")" ], "question": "What are the different ids and stop durations of all the drivers whose stop lasted longer than the driver in the race with the id 841?", "question_toks": [ "what", "are", "different", "id", "and", "stop", "duration", "of", "all", "driver", "whose", "stop", "lasted", "longer", "than", "driver", "in", "race", "with", "id", "841", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 83, false ], null ] ], [ 0, [ 0, [ 0, 84, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 87, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 87, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 82, false ], null ], 841.0, null ] ] }, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "different", "ids", "and", "stop", "durations", "of", "all", "the", "drivers", "whose", "stop", "lasted", "longer", "than", "the", "driver", "in", "the", "race", "with", "the", "id", "841", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "id" ], [ "and" ], [ "stop" ], [ "duration" ], [ "of" ], [ "all" ], [ "driver" ], [ "whose" ], [ "stop" ], [ "lasted" ], [ "longer" ], [ "than" ], [ "driver" ], [ "in" ], [ "race" ], [ "with" ], [ "id" ], [ "841" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "id", "NN" ], [ "and", "CC" ], [ "stop", "JJ" ], [ "duration", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "driver", "NN" ], [ "whose", "WP$" ], [ "stop", "NN" ], [ "lasted", "VBD" ], [ "longer", "JJR" ], [ "than", "IN" ], [ "driver", "NN" ], [ "in", "IN" ], [ "race", "NN" ], [ "with", "IN" ], [ "id", "JJ" ], [ "841", "CD" ], [ "?", "." ] ], "values": [ "841", "dryver", "Rae", "pace", "Pace", "Driver", "driver", "rae" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(9) T(11) A(0) C(47) T(11) Filter(13) A(0) C(49) T(11) Root(3) Sel(0) N(0) A(2) C(49) T(11) Filter(2) A(0) C(1) T(11) V(0)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT forename FROM drivers ORDER BY forename ASC", "query_toks": [ "SELECT", "DISTINCT", "forename", "FROM", "drivers", "ORDER", "BY", "forename", "ASC" ], "query_toks_no_value": [ "select", "distinct", "forename", "from", "drivers", "order", "by", "forename", "asc" ], "question": "List the forenames of all distinct drivers in alphabetical order?", "question_toks": [ "list", "forename", "of", "all", "distinct", "driver", "in", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 22, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "List", "the", "forenames", "of", "all", "distinct", "drivers", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "list" ], [ "forename" ], [ "of" ], [ "all" ], [ "distinct" ], [ "driver" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "forename", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "driver", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [ "driver", "Driver" ], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(19) T(4) Order(1) A(0) C(19) T(4)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT forename FROM drivers ORDER BY forename ASC", "query_toks": [ "SELECT", "DISTINCT", "forename", "FROM", "drivers", "ORDER", "BY", "forename", "ASC" ], "query_toks_no_value": [ "select", "distinct", "forename", "from", "drivers", "order", "by", "forename", "asc" ], "question": "What are the first names of all the different drivers in alphabetical order?", "question_toks": [ "what", "are", "first", "name", "of", "all", "different", "driver", "in", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 22, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "all", "the", "different", "drivers", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "of" ], [ "all" ], [ "different" ], [ "driver" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "different", "JJ" ], [ "driver", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [ "james", "Driver", "driver", "James", "1" ], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(19) T(4) Order(1) A(0) C(19) T(4)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT name FROM races ORDER BY name DESC", "query_toks": [ "SELECT", "DISTINCT", "name", "FROM", "races", "ORDER", "BY", "name", "DESC" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "races", "order", "by", "name", "desc" ], "question": "List the names of all distinct races in reversed lexicographic order?", "question_toks": [ "list", "name", "of", "all", "distinct", "race", "in", "reversed", "lexicographic", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "distinct", "races", "in", "reversed", "lexicographic", "order", "?" ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "distinct" ], [ "race" ], [ "in" ], [ "reversed" ], [ "lexicographic" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "race", "NN" ], [ "in", "IN" ], [ "reversed", "JJ" ], [ "lexicographic", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [ "James", "james" ], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(14) T(1) Order(0) A(0) C(14) T(1)" }, { "db_id": "formula_1", "query": "SELECT DISTINCT name FROM races ORDER BY name DESC", "query_toks": [ "SELECT", "DISTINCT", "name", "FROM", "races", "ORDER", "BY", "name", "DESC" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "races", "order", "by", "name", "desc" ], "question": "What are the different names of all the races in reverse alphabetical order?", "question_toks": [ "what", "are", "different", "name", "of", "all", "race", "in", "reverse", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "different", "names", "of", "all", "the", "races", "in", "reverse", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "name" ], [ "of" ], [ "all" ], [ "race" ], [ "in" ], [ "reverse" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "race", "NN" ], [ "in", "IN" ], [ "reverse", "JJ" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [ "James", "james" ], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(14) T(1) Order(0) A(0) C(14) T(1)" }, { "db_id": "formula_1", "query": "SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011", "query_toks": [ "SELECT", "name", "FROM", "races", "WHERE", "YEAR", "BETWEEN", "2009", "AND", "2011" ], "query_toks_no_value": [ "select", "name", "from", "races", "where", "year", "between", "value", "and", "value" ], "question": "What are the names of races held between 2009 and 2011?", "question_toks": [ "what", "are", "name", "of", "race", "held", "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, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 11, false ], null ], 2009.0, 2011.0 ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "races", "held", "between", "2009", "and", "2011", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "race" ], [ "held" ], [ "between" ], [ "year" ], [ "and" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "held", "VBN" ], [ "between", "IN" ], [ "2009", "CD" ], [ "and", "CC" ], [ "2011", "CD" ], [ "?", "." ] ], "values": [ "2009", "2011", "james", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(1) Filter(8) A(0) C(11) T(1) V(0) V(1)" }, { "db_id": "formula_1", "query": "SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011", "query_toks": [ "SELECT", "name", "FROM", "races", "WHERE", "YEAR", "BETWEEN", "2009", "AND", "2011" ], "query_toks_no_value": [ "select", "name", "from", "races", "where", "year", "between", "value", "and", "value" ], "question": "What are the names of all races held between 2009 and 2011?", "question_toks": [ "what", "are", "name", "of", "all", "race", "held", "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, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 11, false ], null ], 2009.0, 2011.0 ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "races", "held", "between", "2009", "and", "2011", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "race" ], [ "held" ], [ "between" ], [ "year" ], [ "and" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "race", "NN" ], [ "held", "VBD" ], [ "between", "IN" ], [ "2009", "CD" ], [ "and", "CC" ], [ "2011", "CD" ], [ "?", "." ] ], "values": [ "2011", "james", "2009", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(1) Filter(8) A(0) C(11) T(1) V(2) V(0)" }, { "db_id": "formula_1", "query": "SELECT name FROM races WHERE TIME > \"12:00:00\" OR TIME < \"09:00:00\"", "query_toks": [ "SELECT", "name", "FROM", "races", "WHERE", "TIME", ">", "``", "12:00:00", "''", "OR", "TIME", "<", "``", "09:00:00", "''" ], "query_toks_no_value": [ "select", "name", "from", "races", "where", "time", ">", "value", "or", "time", "<", "value" ], "question": "What are the names of races held after 12:00:00 or before 09:00:00?", "question_toks": [ "what", "are", "name", "of", "race", "held", "after", "12:00:00", "or", "before", "09:00:00", "?" ], "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 ], "\"12:00:00\"", null ], "or", [ false, 4, [ 0, [ 0, 16, false ], null ], "\"09:00:00\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "races", "held", "after", "12:00:00", "or", "before", "09:00:00", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "race" ], [ "held" ], [ "after" ], [ "12:00:00" ], [ "or" ], [ "before" ], [ "09:00:00" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "held", "VBN" ], [ "after", "IN" ], [ "12:00:00", "CD" ], [ "or", "CC" ], [ "before", "IN" ], [ "09:00:00", "CD" ], [ "?", "." ] ], "values": [ "9", "james", "12", "0", "James", "12:00:00", "09:00:00" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(1) Filter(1) Filter(5) A(0) C(16) T(1) V(5) Filter(4) A(0) C(16) T(1) V(6)" }, { "db_id": "formula_1", "query": "SELECT name FROM races WHERE TIME > \"12:00:00\" OR TIME < \"09:00:00\"", "query_toks": [ "SELECT", "name", "FROM", "races", "WHERE", "TIME", ">", "``", "12:00:00", "''", "OR", "TIME", "<", "``", "09:00:00", "''" ], "query_toks_no_value": [ "select", "name", "from", "races", "where", "time", ">", "value", "or", "time", "<", "value" ], "question": "What are the names of all races that occurred after 12:00:00 or before 09:00:00?", "question_toks": [ "what", "are", "name", "of", "all", "race", "that", "occurred", "after", "12:00:00", "or", "before", "09:00:00", "?" ], "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 ], "\"12:00:00\"", null ], "or", [ false, 4, [ 0, [ 0, 16, false ], null ], "\"09:00:00\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "races", "that", "occurred", "after", "12:00:00", "or", "before", "09:00:00", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "race" ], [ "that" ], [ "occurred" ], [ "after" ], [ "12:00:00" ], [ "or" ], [ "before" ], [ "09:00:00" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "race", "NN" ], [ "that", "WDT" ], [ "occurred", "VBD" ], [ "after", "IN" ], [ "12:00:00", "CD" ], [ "or", "CC" ], [ "before", "IN" ], [ "09:00:00", "CD" ], [ "?", "." ] ], "values": [ "james", "9", "12", "James", "0", "12:00:00", "09:00:00" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(1) Filter(1) Filter(5) A(0) C(16) T(1) V(5) Filter(4) A(0) C(16) T(1) V(6)" }, { "db_id": "formula_1", "query": "SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 8 UNION SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5", "query_toks": [ "SELECT", "T1.forename", ",", "T1.surname", ",", "T1.driverid", "FROM", "drivers", "AS", "T1", "JOIN", "pitstops", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "8", "UNION", "SELECT", "T1.forename", ",", "T1.surname", ",", "T1.driverid", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "5" ], "query_toks_no_value": [ "select", "t1", ".", "forename", ",", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "pitstops", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1", ".", "forename", ",", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the drivers' first, last names and id who had more than 8 pit stops or participated in more than 5 race results?", "question_toks": [ "what", "are", "driver", "'", "first", ",", "last", "name", "and", "id", "who", "had", "more", "than", "8", "pit", "stop", "or", "participated", "in", "more", "than", "5", "race", "result", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 8.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 5.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "drivers", "'", "first", ",", "last", "names", "and", "id", "who", "had", "more", "than", "8", "pit", "stops", "or", "participated", "in", "more", "than", "5", "race", "results", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "driver" ], [ "'" ], [ "first" ], [ "," ], [ "last" ], [ "name" ], [ "and" ], [ "id" ], [ "who" ], [ "had" ], [ "more" ], [ "than" ], [ "8" ], [ "pit" ], [ "stop" ], [ "or" ], [ "participated" ], [ "in" ], [ "more" ], [ "than" ], [ "5" ], [ "race" ], [ "result" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "driver", "VBG" ], [ "'", "''" ], [ "first", "RB" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "8", "CD" ], [ "pit", "JJ" ], [ "stop", "NN" ], [ "or", "CC" ], [ "participated", "VBN" ], [ "in", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5", "CD" ], [ "race", "NN" ], [ "result", "NN" ], [ "?", "." ] ], "values": [ "james", "James", "5", "Rae", "pace", "1", "Pace", "Driver", "8", "driver", "rae" ], "rule_label": "Root1(1) Root(3) Sel(0) N(2) A(0) C(19) T(4) A(0) C(20) T(4) A(0) C(17) T(2) Filter(5) A(3) C(0) T(11) V(8) Root(3) Sel(0) N(2) A(0) C(19) T(4) A(0) C(20) T(4) A(0) C(17) T(2) Filter(5) A(3) C(0) T(7) V(2)" }, { "db_id": "formula_1", "query": "SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 8 UNION SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5", "query_toks": [ "SELECT", "T1.forename", ",", "T1.surname", ",", "T1.driverid", "FROM", "drivers", "AS", "T1", "JOIN", "pitstops", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "8", "UNION", "SELECT", "T1.forename", ",", "T1.surname", ",", "T1.driverid", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "5" ], "query_toks_no_value": [ "select", "t1", ".", "forename", ",", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "pitstops", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1", ".", "forename", ",", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the drivers' first names,last names, and ids for all those that had more than 8 stops or participated in more than 5 races?", "question_toks": [ "what", "are", "driver", "'", "first", "name", ",", "last", "name", ",", "and", "id", "for", "all", "those", "that", "had", "more", "than", "8", "stop", "or", "participated", "in", "more", "than", "5", "race", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 8.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 5.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "drivers", "'", "first", "names", ",", "last", "names", ",", "and", "ids", "for", "all", "those", "that", "had", "more", "than", "8", "stops", "or", "participated", "in", "more", "than", "5", "races", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "driver" ], [ "'" ], [ "first" ], [ "name" ], [ "," ], [ "last" ], [ "name" ], [ "," ], [ "and" ], [ "id" ], [ "for" ], [ "all" ], [ "those" ], [ "that" ], [ "had" ], [ "more" ], [ "than" ], [ "8" ], [ "stop" ], [ "or" ], [ "participated" ], [ "in" ], [ "more" ], [ "than" ], [ "5" ], [ "race" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "driver", "VBG" ], [ "'", "POS" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "those", "DT" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "8", "CD" ], [ "stop", "NN" ], [ "or", "CC" ], [ "participated", "VBN" ], [ "in", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5", "CD" ], [ "race", "NN" ], [ "?", "." ] ], "values": [ "1", "5", "8", "driver", "james", "Driver", "James" ], "rule_label": "Root1(1) Root(3) Sel(0) N(2) A(0) C(19) T(4) A(0) C(20) T(4) A(0) C(17) T(2) Filter(5) A(3) C(0) T(11) V(2) Root(3) Sel(0) N(2) A(0) C(19) T(4) A(0) C(20) T(4) A(0) C(17) T(2) Filter(5) A(3) C(0) T(7) V(1)" }, { "db_id": "formula_1", "query": "SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) = 11 INTERSECT SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5", "query_toks": [ "SELECT", "T1.surname", ",", "T1.driverid", "FROM", "drivers", "AS", "T1", "JOIN", "pitstops", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", "=", "11", "INTERSECT", "SELECT", "T1.surname", ",", "T1.driverid", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "5" ], "query_toks_no_value": [ "select", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "pitstops", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", "=", "value", "intersect", "select", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the drivers' last names and id who had 11 pit stops and participated in more than 5 race results?", "question_toks": [ "what", "are", "driver", "'", "last", "name", "and", "id", "who", "had", "11", "pit", "stop", "and", "participated", "in", "more", "than", "5", "race", "result", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 11.0, null ] ], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 5.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "drivers", "'", "last", "names", "and", "id", "who", "had", "11", "pit", "stops", "and", "participated", "in", "more", "than", "5", "race", "results", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "driver" ], [ "'" ], [ "last" ], [ "name" ], [ "and" ], [ "id" ], [ "who" ], [ "had" ], [ "11" ], [ "pit" ], [ "stop" ], [ "and" ], [ "participated" ], [ "in" ], [ "more" ], [ "than" ], [ "5" ], [ "race" ], [ "result" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "driver", "VBN" ], [ "'", "''" ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "11", "CD" ], [ "pit", "NN" ], [ "stop", "NN" ], [ "and", "CC" ], [ "participated", "VBD" ], [ "in", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5", "CD" ], [ "race", "NN" ], [ "result", "NN" ], [ "?", "." ] ], "values": [ "5", "Driver", "pace", "driver", "james", "rae", "Pace", "James", "11", "Rae" ], "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(20) T(4) A(0) C(17) T(2) Filter(2) A(3) C(0) T(11) V(8) Root(3) Sel(0) N(1) A(0) C(20) T(4) A(0) C(17) T(2) Filter(5) A(3) C(0) T(7) V(0)" }, { "db_id": "formula_1", "query": "SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) = 11 INTERSECT SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5", "query_toks": [ "SELECT", "T1.surname", ",", "T1.driverid", "FROM", "drivers", "AS", "T1", "JOIN", "pitstops", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", "=", "11", "INTERSECT", "SELECT", "T1.surname", ",", "T1.driverid", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "5" ], "query_toks_no_value": [ "select", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "pitstops", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", "=", "value", "intersect", "select", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the last names and ids of all drivers who had 11 pit stops and participated in more than 5 races?", "question_toks": [ "what", "are", "last", "name", "and", "id", "of", "all", "driver", "who", "had", "11", "pit", "stop", "and", "participated", "in", "more", "than", "5", "race", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 11.0, null ] ], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 5.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "last", "names", "and", "ids", "of", "all", "drivers", "who", "had", "11", "pit", "stops", "and", "participated", "in", "more", "than", "5", "races", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "last" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "all" ], [ "driver" ], [ "who" ], [ "had" ], [ "11" ], [ "pit" ], [ "stop" ], [ "and" ], [ "participated" ], [ "in" ], [ "more" ], [ "than" ], [ "5" ], [ "race" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "driver", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "11", "CD" ], [ "pit", "NN" ], [ "stop", "NN" ], [ "and", "CC" ], [ "participated", "VBD" ], [ "in", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5", "CD" ], [ "race", "NN" ], [ "?", "." ] ], "values": [ "Driver", "James", "5", "driver", "james", "11" ], "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(20) T(4) A(0) C(17) T(2) Filter(2) A(3) C(0) T(11) V(5) Root(3) Sel(0) N(1) A(0) C(20) T(4) A(0) C(17) T(2) Filter(5) A(3) C(0) T(7) V(2)" }, { "db_id": "formula_1", "query": "SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.driverid", ",", "T1.surname", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "JOIN", "races", "AS", "T3", "ON", "T2.raceid", "=", "T3.raceid", "WHERE", "T3.year", ">", "2010", "GROUP", "BY", "T1.driverid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "driverid", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "join", "races", "as", "t3", "on", "t2", ".", "raceid", "=", "t3", ".", "raceid", "where", "t3", ".", "year", ">", "value", "group", "by", "t1", ".", "driverid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the id and last name of the driver who participated in the most races after 2010?", "question_toks": [ "what", "is", "id", "and", "last", "name", "of", "driver", "who", "participated", "in", "most", "race", "after", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 2010.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "id", "and", "last", "name", "of", "the", "driver", "who", "participated", "in", "the", "most", "races", "after", "2010", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "and" ], [ "last" ], [ "name" ], [ "of" ], [ "driver" ], [ "who" ], [ "participated" ], [ "in" ], [ "most" ], [ "race" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "driver", "NN" ], [ "who", "WP" ], [ "participated", "VBD" ], [ "in", "IN" ], [ "most", "JJS" ], [ "race", "NN" ], [ "after", "IN" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "2010", "Driver", "dryver", "driver" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(17) T(2) A(0) C(20) T(4) Sup(0) A(3) C(0) T(7) Filter(5) A(0) C(11) T(1) V(0)" }, { "db_id": "formula_1", "query": "SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.driverid", ",", "T1.surname", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "JOIN", "races", "AS", "T3", "ON", "T2.raceid", "=", "T3.raceid", "WHERE", "T3.year", ">", "2010", "GROUP", "BY", "T1.driverid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "driverid", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "join", "races", "as", "t3", "on", "t2", ".", "raceid", "=", "t3", ".", "raceid", "where", "t3", ".", "year", ">", "value", "group", "by", "t1", ".", "driverid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the id and last name of the driver who participated in the most races after 2010?", "question_toks": [ "what", "is", "id", "and", "last", "name", "of", "driver", "who", "participated", "in", "most", "race", "after", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 2010.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "id", "and", "last", "name", "of", "the", "driver", "who", "participated", "in", "the", "most", "races", "after", "2010", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "and" ], [ "last" ], [ "name" ], [ "of" ], [ "driver" ], [ "who" ], [ "participated" ], [ "in" ], [ "most" ], [ "race" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "driver", "NN" ], [ "who", "WP" ], [ "participated", "VBD" ], [ "in", "IN" ], [ "most", "JJS" ], [ "race", "NN" ], [ "after", "IN" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "driver", "Driver", "dryver", "2010" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(17) T(2) A(0) C(20) T(4) Sup(0) A(3) C(0) T(7) Filter(5) A(0) C(11) T(1) V(3)" }, { "db_id": "formula_1", "query": "SELECT name FROM circuits WHERE country = \"UK\" OR country = \"Malaysia\"", "query_toks": [ "SELECT", "name", "FROM", "circuits", "WHERE", "country", "=", "``", "UK", "''", "OR", "country", "=", "``", "Malaysia", "''" ], "query_toks_no_value": [ "select", "name", "from", "circuits", "where", "country", "=", "value", "or", "country", "=", "value" ], "question": "What are the names of circuits that belong to UK or Malaysia?", "question_toks": [ "what", "are", "name", "of", "circuit", "that", "belong", "to", "uk", "or", "malaysia", "?" ], "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 ], "\"UK\"", null ], "or", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Malaysia\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "circuits", "that", "belong", "to", "UK", "or", "Malaysia", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "circuit" ], [ "that" ], [ "belong" ], [ "to" ], [ "uk" ], [ "or" ], [ "malaysia" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "circuit", "NN" ], [ "that", "WDT" ], [ "belong", "VBP" ], [ "to", "TO" ], [ "uk", "VB" ], [ "or", "CC" ], [ "malaysia", "VB" ], [ "?", "." ] ], "values": [ "james", "UK", "Malaysia", "James", "England", "Malaysian", "england" ], "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(1) Filter(2) A(0) C(5) T(0) V(2)" }, { "db_id": "formula_1", "query": "SELECT name FROM circuits WHERE country = \"UK\" OR country = \"Malaysia\"", "query_toks": [ "SELECT", "name", "FROM", "circuits", "WHERE", "country", "=", "``", "UK", "''", "OR", "country", "=", "``", "Malaysia", "''" ], "query_toks_no_value": [ "select", "name", "from", "circuits", "where", "country", "=", "value", "or", "country", "=", "value" ], "question": "What are the names of all the circuits that are in the UK or Malaysia?", "question_toks": [ "what", "are", "name", "of", "all", "circuit", "that", "are", "in", "uk", "or", "malaysia", "?" ], "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 ], "\"UK\"", null ], "or", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Malaysia\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "circuits", "that", "are", "in", "the", "UK", "or", "Malaysia", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "circuit" ], [ "that" ], [ "are" ], [ "in" ], [ "uk" ], [ "or" ], [ "malaysia" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "circuit", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "uk", "JJ" ], [ "or", "CC" ], [ "malaysia", "NN" ], [ "?", "." ] ], "values": [ "england", "Malaysian", "UK", "james", "England", "Malaysia", "James" ], "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(2) Filter(2) A(0) C(5) T(0) V(5)" }, { "db_id": "formula_1", "query": "SELECT circuitid , LOCATION FROM circuits WHERE country = \"France\" OR country = \"Belgium\"", "query_toks": [ "SELECT", "circuitid", ",", "LOCATION", "FROM", "circuits", "WHERE", "country", "=", "``", "France", "''", "OR", "country", "=", "``", "Belgium", "''" ], "query_toks_no_value": [ "select", "circuitid", ",", "location", "from", "circuits", "where", "country", "=", "value", "or", "country", "=", "value" ], "question": "Find the id and location of circuits that belong to France or Belgium?", "question_toks": [ "find", "id", "and", "location", "of", "circuit", "that", "belong", "to", "france", "or", "belgium", "?" ], "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, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"France\"", null ], "or", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Belgium\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "Find", "the", "id", "and", "location", "of", "circuits", "that", "belong", "to", "France", "or", "Belgium", "?" ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "location" ], [ "of" ], [ "circuit" ], [ "that" ], [ "belong" ], [ "to" ], [ "france" ], [ "or" ], [ "belgium" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "circuit", "NN" ], [ "that", "WDT" ], [ "belong", "VBP" ], [ "to", "TO" ], [ "france", "VB" ], [ "or", "CC" ], [ "belgium", "VB" ], [ "?", "." ] ], "values": [ "Franco", "Belgium", "France", "Franck" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(0) A(0) C(4) T(0) Filter(1) Filter(2) A(0) C(5) T(0) V(2) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "formula_1", "query": "SELECT circuitid , LOCATION FROM circuits WHERE country = \"France\" OR country = \"Belgium\"", "query_toks": [ "SELECT", "circuitid", ",", "LOCATION", "FROM", "circuits", "WHERE", "country", "=", "``", "France", "''", "OR", "country", "=", "``", "Belgium", "''" ], "query_toks_no_value": [ "select", "circuitid", ",", "location", "from", "circuits", "where", "country", "=", "value", "or", "country", "=", "value" ], "question": "What are the ids and locations of all circuits in France or Belgium?", "question_toks": [ "what", "are", "id", "and", "location", "of", "all", "circuit", "in", "france", "or", "belgium", "?" ], "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, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"France\"", null ], "or", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Belgium\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "locations", "of", "all", "circuits", "in", "France", "or", "Belgium", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "location" ], [ "of" ], [ "all" ], [ "circuit" ], [ "in" ], [ "france" ], [ "or" ], [ "belgium" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "circuit", "NN" ], [ "in", "IN" ], [ "france", "NN" ], [ "or", "CC" ], [ "belgium", "NN" ], [ "?", "." ] ], "values": [ "France", "Franck", "Belgium", "Franco" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(0) A(0) C(4) T(0) Filter(1) Filter(2) A(0) C(5) T(0) V(0) Filter(2) A(0) C(5) T(0) V(2)" }, { "db_id": "formula_1", "query": "SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = \"Japanese\" AND T2.points > 5", "query_toks": [ "SELECT", "T1.name", "FROM", "constructors", "AS", "T1", "JOIN", "constructorstandings", "AS", "T2", "ON", "T1.constructorid", "=", "T2.constructorid", "WHERE", "T1.nationality", "=", "``", "Japanese", "''", "AND", "T2.points", ">", "5" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "constructors", "as", "t1", "join", "constructorstandings", "as", "t2", "on", "t1", ".", "constructorid", "=", "t2", ".", "constructorid", "where", "t1", ".", "nationality", "=", "value", "and", "t2", ".", "points", ">", "value" ], "question": "Find the names of Japanese constructors that have once earned more than 5 points?", "question_toks": [ "find", "name", "of", "japanese", "constructor", "that", "have", "once", "earned", "more", "than", "5", "point", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 31, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 34, false ], null ], "\"Japanese\"", null ], "and", [ false, 3, [ 0, [ 0, 39, false ], null ], 5.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "Find", "the", "names", "of", "Japanese", "constructors", "that", "have", "once", "earned", "more", "than", "5", "points", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "japanese" ], [ "constructor" ], [ "that" ], [ "have" ], [ "once" ], [ "earned" ], [ "more" ], [ "than" ], [ "5" ], [ "point" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "japanese", "JJ" ], [ "constructor", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "once", "RB" ], [ "earned", "VBN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5", "CD" ], [ "point", "NN" ], [ "?", "." ] ], "values": [ "James", "Japanese", "1", "james", "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(25) T(5) Filter(0) Filter(2) A(0) C(26) T(6) V(1) Filter(5) A(0) C(27) T(6) V(4)" }, { "db_id": "formula_1", "query": "SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = \"Japanese\" AND T2.points > 5", "query_toks": [ "SELECT", "T1.name", "FROM", "constructors", "AS", "T1", "JOIN", "constructorstandings", "AS", "T2", "ON", "T1.constructorid", "=", "T2.constructorid", "WHERE", "T1.nationality", "=", "``", "Japanese", "''", "AND", "T2.points", ">", "5" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "constructors", "as", "t1", "join", "constructorstandings", "as", "t2", "on", "t1", ".", "constructorid", "=", "t2", ".", "constructorid", "where", "t1", ".", "nationality", "=", "value", "and", "t2", ".", "points", ">", "value" ], "question": "What are the names of all the Japanese constructors that have earned more than 5 points?", "question_toks": [ "what", "are", "name", "of", "all", "japanese", "constructor", "that", "have", "earned", "more", "than", "5", "point", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 31, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 34, false ], null ], "\"Japanese\"", null ], "and", [ false, 3, [ 0, [ 0, 39, false ], null ], 5.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "Japanese", "constructors", "that", "have", "earned", "more", "than", "5", "points", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "japanese" ], [ "constructor" ], [ "that" ], [ "have" ], [ "earned" ], [ "more" ], [ "than" ], [ "5" ], [ "point" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "japanese", "JJ" ], [ "constructor", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "earned", "VBN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5", "CD" ], [ "point", "NN" ], [ "?", "." ] ], "values": [ "5", "Japanese", "james", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(25) T(5) Filter(0) Filter(2) A(0) C(26) T(6) V(1) Filter(5) A(0) C(27) T(6) V(0)" }, { "db_id": "formula_1", "query": "SELECT avg(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"", "query_toks": [ "SELECT", "avg", "(", "T2.fastestlapspeed", ")", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "WHERE", "T1.year", "=", "2008", "AND", "T1.name", "=", "``", "Monaco", "Grand", "Prix", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "fastestlapspeed", ")", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "where", "t1", ".", "year", "=", "value", "and", "t1", ".", "name", "=", "value" ], "question": "What is the average fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?", "question_toks": [ "what", "is", "average", "fastest", "lap", "speed", "in", "race", "named", "'", "monaco", "grand", "prix", "'", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 44, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 59, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], 2008.0, null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Monaco Grand Prix\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "average", "fastest", "lap", "speed", "in", "race", "named", "'Monaco", "Grand", "Prix", "'", "in", "2008", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "fastest", "lap", "speed" ], [ "in" ], [ "race" ], [ "named" ], [ "'" ], [ "monaco" ], [ "grand" ], [ "prix" ], [ "'" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "fastest", "JJS" ], [ "lap", "JJ" ], [ "speed", "NN" ], [ "in", "IN" ], [ "race", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "monaco", "NNS" ], [ "grand", "JJ" ], [ "prix", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "2008", "CD" ], [ "?", "." ] ], "values": [ "monaco", "speed", "Monaco Grand Prix", "Speed", "Rae", "pace", "rae", "Pace", "Monaco", "2008" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(36) T(8) Filter(0) Filter(2) A(0) C(11) T(1) V(9) Filter(2) A(0) C(14) T(1) V(2)" }, { "db_id": "formula_1", "query": "SELECT avg(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"", "query_toks": [ "SELECT", "avg", "(", "T2.fastestlapspeed", ")", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "WHERE", "T1.year", "=", "2008", "AND", "T1.name", "=", "``", "Monaco", "Grand", "Prix", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "fastestlapspeed", ")", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "where", "t1", ".", "year", "=", "value", "and", "t1", ".", "name", "=", "value" ], "question": "What is the average fastest lap speed for the Monaco Grand Prix in 2008?", "question_toks": [ "what", "is", "average", "fastest", "lap", "speed", "for", "monaco", "grand", "prix", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 44, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 59, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], 2008.0, null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Monaco Grand Prix\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "average", "fastest", "lap", "speed", "for", "the", "Monaco", "Grand", "Prix", "in", "2008", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "fastest", "lap", "speed" ], [ "for" ], [ "monaco" ], [ "grand" ], [ "prix" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "fastest", "JJS" ], [ "lap", "JJ" ], [ "speed", "NN" ], [ "for", "IN" ], [ "monaco", "JJ" ], [ "grand", "JJ" ], [ "prix", "NN" ], [ "in", "IN" ], [ "2008", "CD" ], [ "?", "." ] ], "values": [ "speed", "2008", "Speed", "Monaco Grand Prix", "Monaco", "monaco" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(36) T(8) Filter(0) Filter(2) A(0) C(11) T(1) V(1) Filter(2) A(0) C(14) T(1) V(3)" }, { "db_id": "formula_1", "query": "SELECT max(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"", "query_toks": [ "SELECT", "max", "(", "T2.fastestlapspeed", ")", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "WHERE", "T1.year", "=", "2008", "AND", "T1.name", "=", "``", "Monaco", "Grand", "Prix", "''" ], "query_toks_no_value": [ "select", "max", "(", "t2", ".", "fastestlapspeed", ")", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "where", "t1", ".", "year", "=", "value", "and", "t1", ".", "name", "=", "value" ], "question": "What is the maximum fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?", "question_toks": [ "what", "is", "maximum", "fastest", "lap", "speed", "in", "race", "named", "'", "monaco", "grand", "prix", "'", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 44, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 59, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], 2008.0, null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Monaco Grand Prix\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "maximum", "fastest", "lap", "speed", "in", "race", "named", "'Monaco", "Grand", "Prix", "'", "in", "2008", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "fastest", "lap", "speed" ], [ "in" ], [ "race" ], [ "named" ], [ "'" ], [ "monaco" ], [ "grand" ], [ "prix" ], [ "'" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "fastest", "JJS" ], [ "lap", "JJ" ], [ "speed", "NN" ], [ "in", "IN" ], [ "race", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "monaco", "NNS" ], [ "grand", "JJ" ], [ "prix", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "2008", "CD" ], [ "?", "." ] ], "values": [ "Speed", "pace", "speed", "Monaco Grand Prix", "2008", "monaco", "Monaco", "Rae", "rae", "Pace" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(1) C(36) T(8) Filter(0) Filter(2) A(0) C(11) T(1) V(4) Filter(2) A(0) C(14) T(1) V(3)" }, { "db_id": "formula_1", "query": "SELECT max(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"", "query_toks": [ "SELECT", "max", "(", "T2.fastestlapspeed", ")", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "WHERE", "T1.year", "=", "2008", "AND", "T1.name", "=", "``", "Monaco", "Grand", "Prix", "''" ], "query_toks_no_value": [ "select", "max", "(", "t2", ".", "fastestlapspeed", ")", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "where", "t1", ".", "year", "=", "value", "and", "t1", ".", "name", "=", "value" ], "question": "What is the maximum fastest lap speed in the Monaco Grand Prix in 2008?", "question_toks": [ "what", "is", "maximum", "fastest", "lap", "speed", "in", "monaco", "grand", "prix", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 44, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 59, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], 2008.0, null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Monaco Grand Prix\"", null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "maximum", "fastest", "lap", "speed", "in", "the", "Monaco", "Grand", "Prix", "in", "2008", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "fastest", "lap", "speed" ], [ "in" ], [ "monaco" ], [ "grand" ], [ "prix" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "fastest", "JJS" ], [ "lap", "JJ" ], [ "speed", "NN" ], [ "in", "IN" ], [ "monaco", "JJ" ], [ "grand", "JJ" ], [ "prix", "NN" ], [ "in", "IN" ], [ "2008", "CD" ], [ "?", "." ] ], "values": [ "Monaco Grand Prix", "Speed", "2008", "monaco", "Monaco", "speed" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(1) C(36) T(8) Filter(0) Filter(2) A(0) C(11) T(1) V(2) Filter(2) A(0) C(14) T(1) V(0)" }, { "db_id": "formula_1", "query": "SELECT max(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year", "query_toks": [ "SELECT", "max", "(", "T2.fastestlapspeed", ")", ",", "T1.name", ",", "T1.year", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "WHERE", "T1.year", ">", "2014", "GROUP", "BY", "T1.name", "ORDER", "BY", "T1.year" ], "query_toks_no_value": [ "select", "max", "(", "t2", ".", "fastestlapspeed", ")", ",", "t1", ".", "name", ",", "t1", ".", "year", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "where", "t1", ".", "year", ">", "value", "group", "by", "t1", ".", "name", "order", "by", "t1", ".", "year" ], "question": "What are the maximum fastest lap speed in races held after 2004 grouped by race name and ordered by year?", "question_toks": [ "what", "are", "maximum", "fastest", "lap", "speed", "in", "race", "held", "after", "year", "grouped", "by", "race", "name", "and", "ordered", "by", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 44, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 1, [ 0, [ 0, 59, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 2014.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "maximum", "fastest", "lap", "speed", "in", "races", "held", "after", "2004", "grouped", "by", "race", "name", "and", "ordered", "by", "year", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "fastest", "lap", "speed" ], [ "in" ], [ "race" ], [ "held" ], [ "after" ], [ "year" ], [ "grouped" ], [ "by" ], [ "race" ], [ "name" ], [ "and" ], [ "ordered" ], [ "by" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "fastest", "JJS" ], [ "lap", "JJ" ], [ "speed", "NN" ], [ "in", "IN" ], [ "race", "NN" ], [ "held", "VBN" ], [ "after", "IN" ], [ "2004", "CD" ], [ "grouped", "NN" ], [ "by", "IN" ], [ "race", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "year", "NN" ], [ "?", "." ] ], "values": [ "pace", "Pace", "rae", "Speed", "speed", "2004", "Rae", "2014" ], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(1) C(36) T(8) A(0) C(14) T(1) A(0) C(11) T(1) Filter(5) A(0) C(11) T(1) V(7) Order(1) A(0) C(11) T(1)" }, { "db_id": "formula_1", "query": "SELECT max(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year", "query_toks": [ "SELECT", "max", "(", "T2.fastestlapspeed", ")", ",", "T1.name", ",", "T1.year", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "WHERE", "T1.year", ">", "2014", "GROUP", "BY", "T1.name", "ORDER", "BY", "T1.year" ], "query_toks_no_value": [ "select", "max", "(", "t2", ".", "fastestlapspeed", ")", ",", "t1", ".", "name", ",", "t1", ".", "year", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "where", "t1", ".", "year", ">", "value", "group", "by", "t1", ".", "name", "order", "by", "t1", ".", "year" ], "question": "For each race name, What is the maximum fastest lap speed for races after 2004 ordered by year?", "question_toks": [ "for", "each", "race", "name", ",", "what", "is", "maximum", "fastest", "lap", "speed", "for", "race", "after", "year", "ordered", "by", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 44, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 1, [ 0, [ 0, 59, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 2014.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "For", "each", "race", "name", ",", "What", "is", "the", "maximum", "fastest", "lap", "speed", "for", "races", "after", "2004", "ordered", "by", "year", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "race" ], [ "name" ], [ "," ], [ "what" ], [ "is" ], [ "maximum" ], [ "fastest", "lap", "speed" ], [ "for" ], [ "race" ], [ "after" ], [ "year" ], [ "ordered" ], [ "by" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "race", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "fastest", "JJS" ], [ "lap", "NN" ], [ "speed", "NN" ], [ "for", "IN" ], [ "race", "NN" ], [ "after", "IN" ], [ "2004", "CD" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "year", "NN" ], [ "?", "." ] ], "values": [ "Rae", "Speed", "pace", "2004", "Pace", "speed", "rae", "2014" ], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(1) C(36) T(8) A(0) C(14) T(1) A(0) C(11) T(1) Filter(5) A(0) C(11) T(1) V(7) Order(1) A(0) C(11) T(1)" }, { "db_id": "formula_1", "query": "SELECT avg(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year", "query_toks": [ "SELECT", "avg", "(", "T2.fastestlapspeed", ")", ",", "T1.name", ",", "T1.year", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "WHERE", "T1.year", ">", "2014", "GROUP", "BY", "T1.name", "ORDER", "BY", "T1.year" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "fastestlapspeed", ")", ",", "t1", ".", "name", ",", "t1", ".", "year", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "where", "t1", ".", "year", ">", "value", "group", "by", "t1", ".", "name", "order", "by", "t1", ".", "year" ], "question": "What are the average fastest lap speed in races held after 2004 grouped by race name and ordered by year?", "question_toks": [ "what", "are", "average", "fastest", "lap", "speed", "in", "race", "held", "after", "year", "grouped", "by", "race", "name", "and", "ordered", "by", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 44, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 5, [ 0, [ 0, 59, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 2014.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "average", "fastest", "lap", "speed", "in", "races", "held", "after", "2004", "grouped", "by", "race", "name", "and", "ordered", "by", "year", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "fastest", "lap", "speed" ], [ "in" ], [ "race" ], [ "held" ], [ "after" ], [ "year" ], [ "grouped" ], [ "by" ], [ "race" ], [ "name" ], [ "and" ], [ "ordered" ], [ "by" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "fastest", "JJS" ], [ "lap", "JJ" ], [ "speed", "NN" ], [ "in", "IN" ], [ "race", "NN" ], [ "held", "VBN" ], [ "after", "IN" ], [ "2004", "CD" ], [ "grouped", "NN" ], [ "by", "IN" ], [ "race", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "year", "NN" ], [ "?", "." ] ], "values": [ "2004", "speed", "Rae", "pace", "rae", "Speed", "Pace", "2014" ], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(5) C(36) T(8) A(0) C(14) T(1) A(0) C(11) T(1) Filter(5) A(0) C(11) T(1) V(7) Order(1) A(0) C(11) T(1)" }, { "db_id": "formula_1", "query": "SELECT avg(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year", "query_toks": [ "SELECT", "avg", "(", "T2.fastestlapspeed", ")", ",", "T1.name", ",", "T1.year", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "WHERE", "T1.year", ">", "2014", "GROUP", "BY", "T1.name", "ORDER", "BY", "T1.year" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "fastestlapspeed", ")", ",", "t1", ".", "name", ",", "t1", ".", "year", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "where", "t1", ".", "year", ">", "value", "group", "by", "t1", ".", "name", "order", "by", "t1", ".", "year" ], "question": "What is the average fastest lap speed for races held after 2004, for each race, ordered by year?", "question_toks": [ "what", "is", "average", "fastest", "lap", "speed", "for", "race", "held", "after", "year", ",", "for", "each", "race", ",", "ordered", "by", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 44, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 5, [ 0, [ 0, 59, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 2014.0, null ] ] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "average", "fastest", "lap", "speed", "for", "races", "held", "after", "2004", ",", "for", "each", "race", ",", "ordered", "by", "year", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "fastest", "lap", "speed" ], [ "for" ], [ "race" ], [ "held" ], [ "after" ], [ "year" ], [ "," ], [ "for" ], [ "each" ], [ "race" ], [ "," ], [ "ordered" ], [ "by" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "fastest", "JJS" ], [ "lap", "JJ" ], [ "speed", "NN" ], [ "for", "IN" ], [ "race", "NN" ], [ "held", "VBN" ], [ "after", "IN" ], [ "2004", "CD" ], [ ",", "," ], [ "for", "IN" ], [ "each", "DT" ], [ "race", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "year", "NN" ], [ "?", "." ] ], "values": [ "Speed", "Rae", "speed", "2004", "Pace", "pace", "rae", "2014" ], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(5) C(36) T(8) A(0) C(14) T(1) A(0) C(11) T(1) Filter(5) A(0) C(11) T(1) V(7) Order(1) A(0) C(11) T(1)" }, { "db_id": "formula_1", "query": "SELECT T1.driverid , T1.forename , count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.driverid", ",", "T1.forename", ",", "count", "(", "*", ")", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "JOIN", "races", "AS", "T3", "ON", "T2.raceid", "=", "T3.raceid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "driverid", ",", "t1", ".", "forename", ",", "count", "(", "*", ")", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "join", "races", "as", "t3", "on", "t2", ".", "raceid", "=", "t3", ".", "raceid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Find the id, forename and number of races of all drivers who have at least participated in two races?", "question_toks": [ "find", "id", ",", "forename", "and", "number", "of", "race", "of", "all", "driver", "who", "have", "at", "least", "participated", "in", "two", "race", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "Find", "the", "id", ",", "forename", "and", "number", "of", "races", "of", "all", "drivers", "who", "have", "at", "least", "participated", "in", "two", "races", "?" ], "question_arg": [ [ "find" ], [ "id" ], [ "," ], [ "forename" ], [ "and" ], [ "number" ], [ "of" ], [ "race" ], [ "of" ], [ "all" ], [ "driver" ], [ "who" ], [ "have" ], [ "at" ], [ "least" ], [ "participated" ], [ "in" ], [ "two" ], [ "race" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ ",", "," ], [ "forename", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "driver", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "participated", "VBN" ], [ "in", "IN" ], [ "two", "CD" ], [ "race", "NN" ], [ "?", "." ] ], "values": [ "Driver", "2", "driver" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(17) T(2) A(0) C(19) T(4) A(3) C(0) T(7) Filter(7) A(3) C(0) T(7) V(1)" }, { "db_id": "formula_1", "query": "SELECT T1.driverid , T1.forename , count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.driverid", ",", "T1.forename", ",", "count", "(", "*", ")", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "JOIN", "races", "AS", "T3", "ON", "T2.raceid", "=", "T3.raceid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "driverid", ",", "t1", ".", "forename", ",", "count", "(", "*", ")", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "join", "races", "as", "t3", "on", "t2", ".", "raceid", "=", "t3", ".", "raceid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What is the id, forename, and number of races for all drivers that have participated in at least 2 races?", "question_toks": [ "what", "is", "id", ",", "forename", ",", "and", "number", "of", "race", "for", "all", "driver", "that", "have", "participated", "in", "at", "least", "2", "race", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "is", "the", "id", ",", "forename", ",", "and", "number", "of", "races", "for", "all", "drivers", "that", "have", "participated", "in", "at", "least", "2", "races", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "," ], [ "forename" ], [ "," ], [ "and" ], [ "number" ], [ "of" ], [ "race" ], [ "for" ], [ "all" ], [ "driver" ], [ "that" ], [ "have" ], [ "participated" ], [ "in" ], [ "at" ], [ "least" ], [ "2" ], [ "race" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ ",", "," ], [ "forename", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "driver", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "participated", "VBN" ], [ "in", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "race", "NN" ], [ "?", "." ] ], "values": [ "Driver", "2", "driver" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(17) T(2) A(0) C(19) T(4) A(3) C(0) T(7) Filter(7) A(3) C(0) T(7) V(1)" }, { "db_id": "formula_1", "query": "SELECT T1.driverid , count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*) <= 30", "query_toks": [ "SELECT", "T1.driverid", ",", "count", "(", "*", ")", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "JOIN", "races", "AS", "T3", "ON", "T2.raceid", "=", "T3.raceid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", "<", "=", "30" ], "query_toks_no_value": [ "select", "t1", ".", "driverid", ",", "count", "(", "*", ")", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "join", "races", "as", "t3", "on", "t2", ".", "raceid", "=", "t3", ".", "raceid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", "<", "=", "value" ], "question": "Find the driver id and number of races of all drivers who have at most participated in 30 races?", "question_toks": [ "find", "driver", "id", "and", "number", "of", "race", "of", "all", "driver", "who", "have", "at", "most", "participated", "in", "30", "race", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 6, [ 0, [ 3, 0, false ], null ], 30.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "Find", "the", "driver", "id", "and", "number", "of", "races", "of", "all", "drivers", "who", "have", "at", "most", "participated", "in", "30", "races", "?" ], "question_arg": [ [ "find" ], [ "driver", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "race" ], [ "of" ], [ "all" ], [ "driver" ], [ "who" ], [ "have" ], [ "at" ], [ "most" ], [ "participated" ], [ "in" ], [ "30" ], [ "race" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "driver", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "driver", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "at", "IN" ], [ "most", "RBS" ], [ "participated", "VBN" ], [ "in", "IN" ], [ "30", "CD" ], [ "race", "NN" ], [ "?", "." ] ], "values": [ "30", "driver", "Driver", "dryver" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(17) T(2) A(3) C(0) T(7) Filter(6) A(3) C(0) T(7) V(0)" }, { "db_id": "formula_1", "query": "SELECT T1.driverid , count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*) <= 30", "query_toks": [ "SELECT", "T1.driverid", ",", "count", "(", "*", ")", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "JOIN", "races", "AS", "T3", "ON", "T2.raceid", "=", "T3.raceid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", "<", "=", "30" ], "query_toks_no_value": [ "select", "t1", ".", "driverid", ",", "count", "(", "*", ")", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "join", "races", "as", "t3", "on", "t2", ".", "raceid", "=", "t3", ".", "raceid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", "<", "=", "value" ], "question": "For each id of a driver who participated in at most 30 races, how many races did they participate in?", "question_toks": [ "for", "each", "id", "of", "a", "driver", "who", "participated", "in", "at", "most", "30", "race", ",", "how", "many", "race", "did", "they", "participate", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 6, [ 0, [ 3, 0, false ], null ], 30.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "For", "each", "id", "of", "a", "driver", "who", "participated", "in", "at", "most", "30", "races", ",", "how", "many", "races", "did", "they", "participate", "in", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "id" ], [ "of" ], [ "a" ], [ "driver" ], [ "who" ], [ "participated" ], [ "in" ], [ "at" ], [ "most" ], [ "30" ], [ "race" ], [ "," ], [ "how" ], [ "many" ], [ "race" ], [ "did" ], [ "they" ], [ "participate" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "id", "NN" ], [ "of", "IN" ], [ "a", "DT" ], [ "driver", "NN" ], [ "who", "WP" ], [ "participated", "VBD" ], [ "in", "IN" ], [ "at", "IN" ], [ "most", "JJS" ], [ "30", "CD" ], [ "race", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "race", "NN" ], [ "did", "VBD" ], [ "they", "PRP" ], [ "participate", "VB" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "Driver", "dryver", "30", "driver" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(17) T(2) A(3) C(0) T(7) Filter(6) A(3) C(0) T(7) V(2)" }, { "db_id": "formula_1", "query": "SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.driverid", ",", "T1.surname", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "JOIN", "races", "AS", "T3", "ON", "T2.raceid", "=", "T3.raceid", "GROUP", "BY", "T1.driverid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "driverid", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "join", "races", "as", "t3", "on", "t2", ".", "raceid", "=", "t3", ".", "raceid", "group", "by", "t1", ".", "driverid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the id and surname of the driver who participated the most number of races?", "question_toks": [ "find", "id", "and", "surname", "of", "driver", "who", "participated", "most", "number", "of", "race", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "Find", "the", "id", "and", "surname", "of", "the", "driver", "who", "participated", "the", "most", "number", "of", "races", "?" ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "surname" ], [ "of" ], [ "driver" ], [ "who" ], [ "participated" ], [ "most" ], [ "number" ], [ "of" ], [ "race" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "surname", "NN" ], [ "of", "IN" ], [ "driver", "NN" ], [ "who", "WP" ], [ "participated", "VBD" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "?", "." ] ], "values": [ "Driver", "dryver", "driver" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(17) T(2) A(0) C(20) T(4) Sup(0) A(3) C(0) T(7)" }, { "db_id": "formula_1", "query": "SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.driverid", ",", "T1.surname", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "JOIN", "races", "AS", "T3", "ON", "T2.raceid", "=", "T3.raceid", "GROUP", "BY", "T1.driverid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "driverid", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "join", "races", "as", "t3", "on", "t2", ".", "raceid", "=", "t3", ".", "raceid", "group", "by", "t1", ".", "driverid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the ids and last names of all drivers who participated in the most races?", "question_toks": [ "what", "are", "id", "and", "last", "name", "of", "all", "driver", "who", "participated", "in", "most", "race", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "url", "status id", "status", "year", "url", "constructor id", "constructor reference", "name", "nationality", "url", "constructor standings id", "race id", "constructor id", "points", "position", "position text", "wins", "result id", "race id", "driver id", "constructor id", "number", "grid", "position", "position text", "position order", "points", "laps", "time", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "status id", "driver standings id", "race id", "driver id", "points", "position", "position text", "wins", "constructor results id", "race id", "constructor id", "points", "status", "qualify id", "race id", "driver id", "constructor id", "number", "position", "q1", "q2", "q3", "circuit id", "circuit reference", "name", "location", "country", "latitude", "longitude", "altitude", "url", "race id", "driver id", "stop", "lap", "time", "duration", "milliseconds", "race id", "driver id", "lap", "position", "time", "milliseconds" ], "table_names": [ "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "circuits", "pitstops", "laptimes" ], "col_set": [ "*", "race id", "year", "round", "circuit id", "name", "date", "time", "url", "driver id", "driver reference", "number", "code", "forename", "surname", "dob", "nationality", "status id", "status", "constructor id", "constructor reference", "constructor standings id", "points", "position", "position text", "wins", "result id", "grid", "position order", "laps", "milliseconds", "fastest lap", "rank", "fastest lap time", "fastest lap speed", "driver standings id", "constructor results id", "qualify id", "q1", "q2", "q3", "circuit reference", "location", "country", "latitude", "longitude", "altitude", "stop", "lap", "duration" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "13": 1, "1": 1, "37": 10, "10": 10, "38": 31, "31": 31, "45": 18, "18": 18, "44": 10, "46": 31, "63": 18, "62": 10, "69": 10, "70": 31, "75": 18, "74": 10, "76": 31, "83": 18, "82": 82, "90": 18, "89": 89, "27": 27, "29": 29, "36": 36, "43": 43, "61": 61, "68": 68, "73": 73 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "last", "names", "of", "all", "drivers", "who", "participated", "in", "the", "most", "races", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "last" ], [ "name" ], [ "of" ], [ "all" ], [ "driver" ], [ "who" ], [ "participated" ], [ "in" ], [ "most" ], [ "race" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "driver", "NN" ], [ "who", "WP" ], [ "participated", "VBD" ], [ "in", "IN" ], [ "most", "JJS" ], [ "race", "NN" ], [ "?", "." ] ], "values": [ "Driver", "James", "james", "driver" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(17) T(2) A(0) C(20) T(4) Sup(0) A(3) C(0) T(7)" }, { "db_id": "machine_repair", "query": "SELECT count(*) FROM technician", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "technician" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "technician" ], "question": "How many technicians are there?", "question_toks": [ "how", "many", "technician", "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": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "How", "many", "technicians", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "technician" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "technician", "JJ" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "machine_repair", "query": "SELECT count(*) FROM technician", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "technician" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "technician" ], "question": "What is the number of technicians?", "question_toks": [ "what", "is", "number", "of", "technician", "?" ], "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": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "technicians", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "technician" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "technician", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "machine_repair", "query": "SELECT Name FROM technician ORDER BY Age ASC", "query_toks": [ "SELECT", "Name", "FROM", "technician", "ORDER", "BY", "Age", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "technician", "order", "by", "age", "asc" ], "question": "List the names of technicians in ascending order of age.", "question_toks": [ "list", "name", "of", "technician", "in", "ascending", "order", "of", "age", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "List", "the", "names", "of", "technicians", "in", "ascending", "order", "of", "age", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "technician" ], [ "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" ], [ "technician", "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(2) T(2) Order(1) A(0) C(14) T(2)" }, { "db_id": "machine_repair", "query": "SELECT Name FROM technician ORDER BY Age ASC", "query_toks": [ "SELECT", "Name", "FROM", "technician", "ORDER", "BY", "Age", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "technician", "order", "by", "age", "asc" ], "question": "What are the names of the technicians by ascending order of age?", "question_toks": [ "what", "are", "name", "of", "technician", "by", "ascending", "order", "of", "age", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "technicians", "by", "ascending", "order", "of", "age", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "technician" ], [ "by" ], [ "ascending" ], [ "order" ], [ "of" ], [ "age" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "technician", "JJ" ], [ "by", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "age", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(2) Order(1) A(0) C(14) T(2)" }, { "db_id": "machine_repair", "query": "SELECT Team , Starting_Year FROM technician", "query_toks": [ "SELECT", "Team", ",", "Starting_Year", "FROM", "technician" ], "query_toks_no_value": [ "select", "team", ",", "starting_year", "from", "technician" ], "question": "What are the team and starting year of technicians?", "question_toks": [ "what", "are", "team", "and", "starting", "year", "of", "technician", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "team", "and", "starting", "year", "of", "technicians", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "team" ], [ "and" ], [ "starting", "year" ], [ "of" ], [ "technician" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "team", "JJ" ], [ "and", "CC" ], [ "starting", "VBG" ], [ "year", "NN" ], [ "of", "IN" ], [ "technician", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(2) A(0) C(13) T(2)" }, { "db_id": "machine_repair", "query": "SELECT Team , Starting_Year FROM technician", "query_toks": [ "SELECT", "Team", ",", "Starting_Year", "FROM", "technician" ], "query_toks_no_value": [ "select", "team", ",", "starting_year", "from", "technician" ], "question": "What is the team and starting year for each technician?", "question_toks": [ "what", "is", "team", "and", "starting", "year", "for", "each", "technician", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "team", "and", "starting", "year", "for", "each", "technician", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "team" ], [ "and" ], [ "starting", "year" ], [ "for" ], [ "each" ], [ "technician" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "team", "NN" ], [ "and", "CC" ], [ "starting", "VBG" ], [ "year", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "technician", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(2) A(0) C(13) T(2)" }, { "db_id": "machine_repair", "query": "SELECT Name FROM technician WHERE Team != \"NYY\"", "query_toks": [ "SELECT", "Name", "FROM", "technician", "WHERE", "Team", "!", "=", "``", "NYY", "''" ], "query_toks_no_value": [ "select", "name", "from", "technician", "where", "team", "!", "=", "value" ], "question": "List the name of technicians whose team is not \"NYY\".", "question_toks": [ "list", "name", "of", "technician", "whose", "team", "is", "not", "'", "nyy", "'", "." ], "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, 7, [ 0, [ 0, 14, false ], null ], "\"NYY\"", null ] ] }, "names": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "List", "the", "name", "of", "technicians", "whose", "team", "is", "not", "``", "NYY", "''", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "technician" ], [ "whose" ], [ "team" ], [ "is" ], [ "not" ], [ "'" ], [ "nyy" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "technician", "JJ" ], [ "whose", "WP$" ], [ "team", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "nyy", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "NYY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(3) A(0) C(8) T(2) V(0)" }, { "db_id": "machine_repair", "query": "SELECT Name FROM technician WHERE Team != \"NYY\"", "query_toks": [ "SELECT", "Name", "FROM", "technician", "WHERE", "Team", "!", "=", "``", "NYY", "''" ], "query_toks_no_value": [ "select", "name", "from", "technician", "where", "team", "!", "=", "value" ], "question": "What is the name of the technician whose team is not 'NYY'?", "question_toks": [ "what", "is", "name", "of", "technician", "whose", "team", "is", "not", "'", "nyy", "'", "?" ], "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, 7, [ 0, [ 0, 14, false ], null ], "\"NYY\"", null ] ] }, "names": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "technician", "whose", "team", "is", "not", "'NYY", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "technician" ], [ "whose" ], [ "team" ], [ "is" ], [ "not" ], [ "'" ], [ "nyy" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "technician", "JJ" ], [ "whose", "WP$" ], [ "team", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "nyy", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "NYY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(3) A(0) C(8) T(2) V(0)" }, { "db_id": "machine_repair", "query": "SELECT Name FROM technician WHERE Age = 36 OR Age = 37", "query_toks": [ "SELECT", "Name", "FROM", "technician", "WHERE", "Age", "=", "36", "OR", "Age", "=", "37" ], "query_toks_no_value": [ "select", "name", "from", "technician", "where", "age", "=", "value", "or", "age", "=", "value" ], "question": "Show the name of technicians aged either 36 or 37", "question_toks": [ "show", "name", "of", "technician", "aged", "either", "36", "or", "37" ], "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, 2, [ 0, [ 0, 16, false ], null ], 36.0, null ], "or", [ false, 2, [ 0, [ 0, 16, false ], null ], 37.0, null ] ] }, "names": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "Show", "the", "name", "of", "technicians", "aged", "either", "36", "or", "37" ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "technician" ], [ "aged" ], [ "either" ], [ "36" ], [ "or" ], [ "37" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "technician", "JJ" ], [ "aged", "VBN" ], [ "either", "RB" ], [ "36", "CD" ], [ "or", "CC" ], [ "37", "CD" ] ], "values": [ "37", "36" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(1) Filter(2) A(0) C(14) T(2) V(1) Filter(2) A(0) C(14) T(2) V(0)" }, { "db_id": "machine_repair", "query": "SELECT Name FROM technician WHERE Age = 36 OR Age = 37", "query_toks": [ "SELECT", "Name", "FROM", "technician", "WHERE", "Age", "=", "36", "OR", "Age", "=", "37" ], "query_toks_no_value": [ "select", "name", "from", "technician", "where", "age", "=", "value", "or", "age", "=", "value" ], "question": "What are the names of the technicians aged either 36 or 37?", "question_toks": [ "what", "are", "name", "of", "technician", "aged", "either", "36", "or", "37", "?" ], "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, 2, [ 0, [ 0, 16, false ], null ], 36.0, null ], "or", [ false, 2, [ 0, [ 0, 16, false ], null ], 37.0, null ] ] }, "names": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "technicians", "aged", "either", "36", "or", "37", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "technician" ], [ "aged" ], [ "either" ], [ "36" ], [ "or" ], [ "37" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "technician", "JJ" ], [ "aged", "VBN" ], [ "either", "RB" ], [ "36", "CD" ], [ "or", "CC" ], [ "37", "CD" ], [ "?", "." ] ], "values": [ "37", "36" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(1) Filter(2) A(0) C(14) T(2) V(1) Filter(2) A(0) C(14) T(2) V(0)" }, { "db_id": "machine_repair", "query": "SELECT Starting_Year FROM technician ORDER BY Age DESC LIMIT 1", "query_toks": [ "SELECT", "Starting_Year", "FROM", "technician", "ORDER", "BY", "Age", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "starting_year", "from", "technician", "order", "by", "age", "desc", "limit", "value" ], "question": "What is the starting year of the oldest technicians?", "question_toks": [ "what", "is", "starting", "year", "of", "oldest", "technician", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "starting", "year", "of", "the", "oldest", "technicians", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "starting", "year" ], [ "of" ], [ "oldest" ], [ "technician" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "starting", "VBG" ], [ "year", "NN" ], [ "of", "IN" ], [ "oldest", "JJS" ], [ "technician", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(13) T(2) Sup(0) A(0) C(14) T(2)" }, { "db_id": "machine_repair", "query": "SELECT Starting_Year FROM technician ORDER BY Age DESC LIMIT 1", "query_toks": [ "SELECT", "Starting_Year", "FROM", "technician", "ORDER", "BY", "Age", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "starting_year", "from", "technician", "order", "by", "age", "desc", "limit", "value" ], "question": "What is the starting year for the oldest technician?", "question_toks": [ "what", "is", "starting", "year", "for", "oldest", "technician", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "starting", "year", "for", "the", "oldest", "technician", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "starting", "year" ], [ "for" ], [ "oldest" ], [ "technician" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "starting", "VBG" ], [ "year", "NN" ], [ "for", "IN" ], [ "oldest", "JJS" ], [ "technician", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(13) T(2) Sup(0) A(0) C(14) T(2)" }, { "db_id": "machine_repair", "query": "SELECT Team , COUNT(*) FROM technician GROUP BY Team", "query_toks": [ "SELECT", "Team", ",", "COUNT", "(", "*", ")", "FROM", "technician", "GROUP", "BY", "Team" ], "query_toks_no_value": [ "select", "team", ",", "count", "(", "*", ")", "from", "technician", "group", "by", "team" ], "question": "Show different teams of technicians and the number of technicians in each team.", "question_toks": [ "show", "different", "team", "of", "technician", "and", "number", "of", "technician", "in", "each", "team", "." ], "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": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "Show", "different", "teams", "of", "technicians", "and", "the", "number", "of", "technicians", "in", "each", "team", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "team" ], [ "of" ], [ "technician" ], [ "and" ], [ "number" ], [ "of" ], [ "technician" ], [ "in" ], [ "each" ], [ "team" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "different", "JJ" ], [ "team", "NN" ], [ "of", "IN" ], [ "technician", "JJ" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "technician", "JJ" ], [ "in", "IN" ], [ "each", "DT" ], [ "team", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(2) A(3) C(0) T(2)" }, { "db_id": "machine_repair", "query": "SELECT Team , COUNT(*) FROM technician GROUP BY Team", "query_toks": [ "SELECT", "Team", ",", "COUNT", "(", "*", ")", "FROM", "technician", "GROUP", "BY", "Team" ], "query_toks_no_value": [ "select", "team", ",", "count", "(", "*", ")", "from", "technician", "group", "by", "team" ], "question": "For each team, how many technicians are there?", "question_toks": [ "for", "each", "team", ",", "how", "many", "technician", "are", "there", "?" ], "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": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "For", "each", "team", ",", "how", "many", "technicians", "are", "there", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "team" ], [ "," ], [ "how" ], [ "many" ], [ "technician" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "team", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "technician", "JJ" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(2) A(3) C(0) T(2)" }, { "db_id": "machine_repair", "query": "SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Team", "FROM", "technician", "GROUP", "BY", "Team", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "team", "from", "technician", "group", "by", "team", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Please show the team that has the most number of technicians.", "question_toks": [ "please", "show", "team", "that", "ha", "most", "number", "of", "technician", "." ], "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": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "Please", "show", "the", "team", "that", "has", "the", "most", "number", "of", "technicians", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "team" ], [ "that" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "technician" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "team", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "technician", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "machine_repair", "query": "SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Team", "FROM", "technician", "GROUP", "BY", "Team", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "team", "from", "technician", "group", "by", "team", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the teams with the most technicians?", "question_toks": [ "what", "are", "team", "with", "most", "technician", "?" ], "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": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "teams", "with", "the", "most", "technicians", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "team" ], [ "with" ], [ "most" ], [ "technician" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "team", "VBN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "technician", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "machine_repair", "query": "SELECT Team FROM technician GROUP BY Team HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Team", "FROM", "technician", "GROUP", "BY", "Team", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "team", "from", "technician", "group", "by", "team", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the team that have at least two technicians.", "question_toks": [ "show", "team", "that", "have", "at", "least", "two", "technician", "." ], "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": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "Show", "the", "team", "that", "have", "at", "least", "two", "technicians", "." ], "question_arg": [ [ "show" ], [ "team" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "technician" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "team", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "technician", "JJ" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "machine_repair", "query": "SELECT Team FROM technician GROUP BY Team HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Team", "FROM", "technician", "GROUP", "BY", "Team", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "team", "from", "technician", "group", "by", "team", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What is the team with at least 2 technicians?", "question_toks": [ "what", "is", "team", "with", "at", "least", "2", "technician", "?" ], "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": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "team", "with", "at", "least", "2", "technicians", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "team" ], [ "with" ], [ "at" ], [ "least" ], [ "2" ], [ "technician" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "team", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "technician", "JJ" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "machine_repair", "query": "SELECT T3.Name , T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID", "query_toks": [ "SELECT", "T3.Name", ",", "T2.Machine_series", "FROM", "repair_assignment", "AS", "T1", "JOIN", "machine", "AS", "T2", "ON", "T1.machine_id", "=", "T2.machine_id", "JOIN", "technician", "AS", "T3", "ON", "T1.technician_ID", "=", "T3.technician_ID" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "machine_series", "from", "repair_assignment", "as", "t1", "join", "machine", "as", "t2", "on", "t1", ".", "machine_id", "=", "t2", ".", "machine_id", "join", "technician", "as", "t3", "on", "t1", ".", "technician_id", "=", "t3", ".", "technician_id" ], "question": "Show names of technicians and series of machines they are assigned to repair.", "question_toks": [ "show", "name", "of", "technician", "and", "series", "of", "machine", "they", "are", "assigned", "to", "repair", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, 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, 13, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "Show", "names", "of", "technicians", "and", "series", "of", "machines", "they", "are", "assigned", "to", "repair", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "technician" ], [ "and" ], [ "series" ], [ "of" ], [ "machine" ], [ "they" ], [ "are" ], [ "assigned" ], [ "to" ], [ "repair" ], [ "." ] ], "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" ], [ "technician", "JJ" ], [ "and", "CC" ], [ "series", "NN" ], [ "of", "IN" ], [ "machine", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "repair", "VB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(2) A(0) C(9) T(1) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(3)" }, { "db_id": "machine_repair", "query": "SELECT T3.Name , T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID", "query_toks": [ "SELECT", "T3.Name", ",", "T2.Machine_series", "FROM", "repair_assignment", "AS", "T1", "JOIN", "machine", "AS", "T2", "ON", "T1.machine_id", "=", "T2.machine_id", "JOIN", "technician", "AS", "T3", "ON", "T1.technician_ID", "=", "T3.technician_ID" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "machine_series", "from", "repair_assignment", "as", "t1", "join", "machine", "as", "t2", "on", "t1", ".", "machine_id", "=", "t2", ".", "machine_id", "join", "technician", "as", "t3", "on", "t1", ".", "technician_id", "=", "t3", ".", "technician_id" ], "question": "What are the names of technicians and the machine series that they repair?", "question_toks": [ "what", "are", "name", "of", "technician", "and", "machine", "series", "that", "they", "repair", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, 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, 13, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "technicians", "and", "the", "machine", "series", "that", "they", "repair", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "technician" ], [ "and" ], [ "machine", "series" ], [ "that" ], [ "they" ], [ "repair" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "technician", "JJ" ], [ "and", "CC" ], [ "machine", "NN" ], [ "series", "NN" ], [ "that", "IN" ], [ "they", "PRP" ], [ "repair", "VBP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(2) A(0) C(9) T(1) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(3)" }, { "db_id": "machine_repair", "query": "SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank", "query_toks": [ "SELECT", "T3.Name", "FROM", "repair_assignment", "AS", "T1", "JOIN", "machine", "AS", "T2", "ON", "T1.machine_id", "=", "T2.machine_id", "JOIN", "technician", "AS", "T3", "ON", "T1.technician_ID", "=", "T3.technician_ID", "ORDER", "BY", "T2.quality_rank" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "repair_assignment", "as", "t1", "join", "machine", "as", "t2", "on", "t1", ".", "machine_id", "=", "t2", ".", "machine_id", "join", "technician", "as", "t3", "on", "t1", ".", "technician_id", "=", "t3", ".", "technician_id", "order", "by", "t2", ".", "quality_rank" ], "question": "Show names of technicians in ascending order of quality rank of the machine they are assigned.", "question_toks": [ "show", "name", "of", "technician", "in", "ascending", "order", "of", "quality", "rank", "of", "machine", "they", "are", "assigned", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "Show", "names", "of", "technicians", "in", "ascending", "order", "of", "quality", "rank", "of", "the", "machine", "they", "are", "assigned", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "technician" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "quality", "rank" ], [ "of" ], [ "machine" ], [ "they" ], [ "are" ], [ "assigned" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "technician", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "quality", "NN" ], [ "rank", "NN" ], [ "of", "IN" ], [ "machine", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "assigned", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(2) T(2) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(3) Order(1) A(0) C(11) T(1)" }, { "db_id": "machine_repair", "query": "SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank", "query_toks": [ "SELECT", "T3.Name", "FROM", "repair_assignment", "AS", "T1", "JOIN", "machine", "AS", "T2", "ON", "T1.machine_id", "=", "T2.machine_id", "JOIN", "technician", "AS", "T3", "ON", "T1.technician_ID", "=", "T3.technician_ID", "ORDER", "BY", "T2.quality_rank" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "repair_assignment", "as", "t1", "join", "machine", "as", "t2", "on", "t1", ".", "machine_id", "=", "t2", ".", "machine_id", "join", "technician", "as", "t3", "on", "t1", ".", "technician_id", "=", "t3", ".", "technician_id", "order", "by", "t2", ".", "quality_rank" ], "question": "What are the names of the technicians by ascending order of quality rank for the machine they are assigned?", "question_toks": [ "what", "are", "name", "of", "technician", "by", "ascending", "order", "of", "quality", "rank", "for", "machine", "they", "are", "assigned", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "technicians", "by", "ascending", "order", "of", "quality", "rank", "for", "the", "machine", "they", "are", "assigned", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "technician" ], [ "by" ], [ "ascending" ], [ "order" ], [ "of" ], [ "quality", "rank" ], [ "for" ], [ "machine" ], [ "they" ], [ "are" ], [ "assigned" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "technician", "JJ" ], [ "by", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "quality", "NN" ], [ "rank", "NN" ], [ "for", "IN" ], [ "machine", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "assigned", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(2) T(2) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(3) Order(1) A(0) C(11) T(1)" }, { "db_id": "machine_repair", "query": "SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID WHERE T2.value_points > 70", "query_toks": [ "SELECT", "T3.Name", "FROM", "repair_assignment", "AS", "T1", "JOIN", "machine", "AS", "T2", "ON", "T1.machine_id", "=", "T2.machine_id", "JOIN", "technician", "AS", "T3", "ON", "T1.technician_ID", "=", "T3.technician_ID", "WHERE", "T2.value_points", ">", "70" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "repair_assignment", "as", "t1", "join", "machine", "as", "t2", "on", "t1", ".", "machine_id", "=", "t2", ".", "machine_id", "join", "technician", "as", "t3", "on", "t1", ".", "technician_id", "=", "t3", ".", "technician_id", "where", "t2", ".", "value_points", ">", "value" ], "question": "Show names of technicians who are assigned to repair machines with value point more than 70.", "question_toks": [ "show", "name", "of", "technician", "who", "are", "assigned", "to", "repair", "machine", "with", "value", "point", "more", "than", "70", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, 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, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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, 3, [ 0, [ 0, 10, false ], null ], 70.0, null ] ] }, "names": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "Show", "names", "of", "technicians", "who", "are", "assigned", "to", "repair", "machines", "with", "value", "point", "more", "than", "70", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "technician" ], [ "who" ], [ "are" ], [ "assigned" ], [ "to" ], [ "repair" ], [ "machine" ], [ "with" ], [ "value", "point" ], [ "more" ], [ "than" ], [ "70" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "technician", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "repair", "VB" ], [ "machine", "NN" ], [ "with", "IN" ], [ "value", "NN" ], [ "point", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "70", "CD" ], [ ".", "." ] ], "values": [ "70" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(0) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(3) Filter(5) A(0) C(10) T(1) V(0)" }, { "db_id": "machine_repair", "query": "SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID WHERE T2.value_points > 70", "query_toks": [ "SELECT", "T3.Name", "FROM", "repair_assignment", "AS", "T1", "JOIN", "machine", "AS", "T2", "ON", "T1.machine_id", "=", "T2.machine_id", "JOIN", "technician", "AS", "T3", "ON", "T1.technician_ID", "=", "T3.technician_ID", "WHERE", "T2.value_points", ">", "70" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "repair_assignment", "as", "t1", "join", "machine", "as", "t2", "on", "t1", ".", "machine_id", "=", "t2", ".", "machine_id", "join", "technician", "as", "t3", "on", "t1", ".", "technician_id", "=", "t3", ".", "technician_id", "where", "t2", ".", "value_points", ">", "value" ], "question": "What are the names of the technicians that are assigned to repair machines with more point values than 70?", "question_toks": [ "what", "are", "name", "of", "technician", "that", "are", "assigned", "to", "repair", "machine", "with", "more", "point", "value", "than", "70", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, 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, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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, 3, [ 0, [ 0, 10, false ], null ], 70.0, null ] ] }, "names": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "technicians", "that", "are", "assigned", "to", "repair", "machines", "with", "more", "point", "values", "than", "70", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "technician" ], [ "that" ], [ "are" ], [ "assigned" ], [ "to" ], [ "repair" ], [ "machine" ], [ "with" ], [ "more" ], [ "value", "point" ], [ "than" ], [ "70" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "technician", "JJ" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "repair", "VB" ], [ "machine", "NN" ], [ "with", "IN" ], [ "more", "RBR" ], [ "point", "NN" ], [ "value", "NN" ], [ "than", "IN" ], [ "70", "CD" ], [ "?", "." ] ], "values": [ "70" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(0) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(3) Filter(5) A(0) C(10) T(1) V(0)" }, { "db_id": "machine_repair", "query": "SELECT T2.Name , COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID GROUP BY T2.Name", "query_toks": [ "SELECT", "T2.Name", ",", "COUNT", "(", "*", ")", "FROM", "repair_assignment", "AS", "T1", "JOIN", "technician", "AS", "T2", "ON", "T1.technician_ID", "=", "T2.technician_ID", "GROUP", "BY", "T2.Name" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "repair_assignment", "as", "t1", "join", "technician", "as", "t2", "on", "t1", ".", "technician_id", "=", "t2", ".", "technician_id", "group", "by", "t2", ".", "name" ], "question": "Show names of technicians and the number of machines they are assigned to repair.", "question_toks": [ "show", "name", "of", "technician", "and", "number", "of", "machine", "they", "are", "assigned", "to", "repair", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "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": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "Show", "names", "of", "technicians", "and", "the", "number", "of", "machines", "they", "are", "assigned", "to", "repair", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "technician" ], [ "and" ], [ "number" ], [ "of" ], [ "machine" ], [ "they" ], [ "are" ], [ "assigned" ], [ "to" ], [ "repair" ], [ "." ] ], "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" ], [ "technician", "JJ" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "machine", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "repair", "VB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(2) A(3) C(0) T(3)" }, { "db_id": "machine_repair", "query": "SELECT T2.Name , COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID GROUP BY T2.Name", "query_toks": [ "SELECT", "T2.Name", ",", "COUNT", "(", "*", ")", "FROM", "repair_assignment", "AS", "T1", "JOIN", "technician", "AS", "T2", "ON", "T1.technician_ID", "=", "T2.technician_ID", "GROUP", "BY", "T2.Name" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "repair_assignment", "as", "t1", "join", "technician", "as", "t2", "on", "t1", ".", "technician_id", "=", "t2", ".", "technician_id", "group", "by", "t2", ".", "name" ], "question": "What are the names of the technicians and how many machines are they assigned to repair?", "question_toks": [ "what", "are", "name", "of", "technician", "and", "how", "many", "machine", "are", "they", "assigned", "to", "repair", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "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": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "technicians", "and", "how", "many", "machines", "are", "they", "assigned", "to", "repair", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "technician" ], [ "and" ], [ "how" ], [ "many" ], [ "machine" ], [ "are" ], [ "they" ], [ "assigned" ], [ "to" ], [ "repair" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "technician", "JJ" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "machine", "NN" ], [ "are", "VBP" ], [ "they", "PRP" ], [ "assigned", "VBD" ], [ "to", "TO" ], [ "repair", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(2) A(3) C(0) T(3)" }, { "db_id": "machine_repair", "query": "SELECT Name FROM technician WHERE technician_id NOT IN (SELECT technician_id FROM repair_assignment)", "query_toks": [ "SELECT", "Name", "FROM", "technician", "WHERE", "technician_id", "NOT", "IN", "(", "SELECT", "technician_id", "FROM", "repair_assignment", ")" ], "query_toks_no_value": [ "select", "name", "from", "technician", "where", "technician_id", "not", "in", "(", "select", "technician_id", "from", "repair_assignment", ")" ], "question": "List the names of technicians who have not been assigned to repair machines.", "question_toks": [ "list", "name", "of", "technician", "who", "have", "not", "been", "assigned", "to", "repair", "machine", "." ], "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": [ [ true, 8, [ 0, [ 0, 12, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "List", "the", "names", "of", "technicians", "who", "have", "not", "been", "assigned", "to", "repair", "machines", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "technician" ], [ "who" ], [ "have" ], [ "not" ], [ "been" ], [ "assigned" ], [ "to" ], [ "repair" ], [ "machine" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "technician", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "not", "RB" ], [ "been", "VBN" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "repair", "VB" ], [ "machine", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(19) A(0) C(12) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(3)" }, { "db_id": "machine_repair", "query": "SELECT Name FROM technician WHERE technician_id NOT IN (SELECT technician_id FROM repair_assignment)", "query_toks": [ "SELECT", "Name", "FROM", "technician", "WHERE", "technician_id", "NOT", "IN", "(", "SELECT", "technician_id", "FROM", "repair_assignment", ")" ], "query_toks_no_value": [ "select", "name", "from", "technician", "where", "technician_id", "not", "in", "(", "select", "technician_id", "from", "repair_assignment", ")" ], "question": "What are the names of the technicians that have not been assigned to repair machines?", "question_toks": [ "what", "are", "name", "of", "technician", "that", "have", "not", "been", "assigned", "to", "repair", "machine", "?" ], "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": [ [ true, 8, [ 0, [ 0, 12, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "technicians", "that", "have", "not", "been", "assigned", "to", "repair", "machines", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "technician" ], [ "that" ], [ "have" ], [ "not" ], [ "been" ], [ "assigned" ], [ "to" ], [ "repair" ], [ "machine" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "technician", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "not", "RB" ], [ "been", "VBN" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "repair", "VB" ], [ "machine", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(19) A(0) C(12) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(3)" }, { "db_id": "machine_repair", "query": "SELECT Starting_Year FROM technician WHERE Team = \"CLE\" INTERSECT SELECT Starting_Year FROM technician WHERE Team = \"CWS\"", "query_toks": [ "SELECT", "Starting_Year", "FROM", "technician", "WHERE", "Team", "=", "``", "CLE", "''", "INTERSECT", "SELECT", "Starting_Year", "FROM", "technician", "WHERE", "Team", "=", "``", "CWS", "''" ], "query_toks_no_value": [ "select", "starting_year", "from", "technician", "where", "team", "=", "value", "intersect", "select", "starting_year", "from", "technician", "where", "team", "=", "value" ], "question": "Show the starting years shared by technicians from team \"CLE\" and \"CWS\".", "question_toks": [ "show", "starting", "year", "shared", "by", "technician", "from", "team", "'", "cle", "'", "and", "'", "cws", "'", "." ], "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, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"CWS\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"CLE\"", null ] ] }, "names": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "Show", "the", "starting", "years", "shared", "by", "technicians", "from", "team", "``", "CLE", "''", "and", "``", "CWS", "''", "." ], "question_arg": [ [ "show" ], [ "starting", "year" ], [ "shared" ], [ "by" ], [ "technician" ], [ "from" ], [ "team" ], [ "'" ], [ "cle" ], [ "'" ], [ "and" ], [ "'" ], [ "cws" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "starting", "VBG" ], [ "year", "NN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "technician", "NN" ], [ "from", "IN" ], [ "team", "NN" ], [ "'", "''" ], [ "cle", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "'", "POS" ], [ "cws", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "CWS", "CLE" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(8) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "machine_repair", "query": "SELECT Starting_Year FROM technician WHERE Team = \"CLE\" INTERSECT SELECT Starting_Year FROM technician WHERE Team = \"CWS\"", "query_toks": [ "SELECT", "Starting_Year", "FROM", "technician", "WHERE", "Team", "=", "``", "CLE", "''", "INTERSECT", "SELECT", "Starting_Year", "FROM", "technician", "WHERE", "Team", "=", "``", "CWS", "''" ], "query_toks_no_value": [ "select", "starting_year", "from", "technician", "where", "team", "=", "value", "intersect", "select", "starting_year", "from", "technician", "where", "team", "=", "value" ], "question": "What are the starting years shared by the technicians from the team \"CLE\" or \"CWS\"?", "question_toks": [ "what", "are", "starting", "year", "shared", "by", "technician", "from", "team", "'", "cle", "'", "or", "'", "cws", "'", "?" ], "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, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"CWS\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"CLE\"", null ] ] }, "names": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "name", "team", "starting year", "age", "technician id", "repair id", "machine id" ], "table_names": [ "repair", "machine", "technician", "repair assignment" ], "col_set": [ "*", "repair id", "name", "launch date", "notes", "machine id", "making year", "class", "team", "machine series", "value points", "quality rank", "technician id", "starting year", "age" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "19": 5, "5": 5, "18": 1, "1": 1, "17": 17, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "starting", "years", "shared", "by", "the", "technicians", "from", "the", "team", "``", "CLE", "''", "or", "``", "CWS", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "starting", "year" ], [ "shared" ], [ "by" ], [ "technician" ], [ "from" ], [ "team" ], [ "'" ], [ "cle" ], [ "'" ], [ "or" ], [ "'" ], [ "cws" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "starting", "VBG" ], [ "year", "NN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "technician", "NN" ], [ "from", "IN" ], [ "team", "NN" ], [ "'", "''" ], [ "cle", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "cws", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "CLE", "CWS" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(8) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(8) T(2) V(1)" }, { "db_id": "entrepreneur", "query": "SELECT count(*) FROM entrepreneur", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "entrepreneur" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "entrepreneur" ], "question": "How many entrepreneurs are there?", "question_toks": [ "how", "many", "entrepreneur", "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "How", "many", "entrepreneurs", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "entrepreneur" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "entrepreneur", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "entrepreneur", "query": "SELECT count(*) FROM entrepreneur", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "entrepreneur" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "entrepreneur" ], "question": "Count the number of entrepreneurs.", "question_toks": [ "count", "number", "of", "entrepreneur", "." ], "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "entrepreneurs", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "entrepreneur" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "entrepreneur", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "entrepreneur", "query": "SELECT Company FROM entrepreneur ORDER BY Money_Requested DESC", "query_toks": [ "SELECT", "Company", "FROM", "entrepreneur", "ORDER", "BY", "Money_Requested", "DESC" ], "query_toks_no_value": [ "select", "company", "from", "entrepreneur", "order", "by", "money_requested", "desc" ], "question": "List the companies of entrepreneurs in descending order of money requested.", "question_toks": [ "list", "company", "of", "entrepreneur", "in", "descending", "order", "of", "money", "requested", "." ], "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, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "the", "companies", "of", "entrepreneurs", "in", "descending", "order", "of", "money", "requested", "." ], "question_arg": [ [ "list" ], [ "company" ], [ "of" ], [ "entrepreneur" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "money", "requested" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "company", "NN" ], [ "of", "IN" ], [ "entrepreneur", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "money", "NN" ], [ "requested", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(0) A(0) C(4) T(0)" }, { "db_id": "entrepreneur", "query": "SELECT Company FROM entrepreneur ORDER BY Money_Requested DESC", "query_toks": [ "SELECT", "Company", "FROM", "entrepreneur", "ORDER", "BY", "Money_Requested", "DESC" ], "query_toks_no_value": [ "select", "company", "from", "entrepreneur", "order", "by", "money_requested", "desc" ], "question": "What are the companies of entrepreneurs, ordered descending by amount of money requested?", "question_toks": [ "what", "are", "company", "of", "entrepreneur", ",", "ordered", "descending", "by", "amount", "of", "money", "requested", "?" ], "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, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "companies", "of", "entrepreneurs", ",", "ordered", "descending", "by", "amount", "of", "money", "requested", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "company" ], [ "of" ], [ "entrepreneur" ], [ "," ], [ "ordered" ], [ "descending" ], [ "by" ], [ "amount" ], [ "of" ], [ "money", "requested" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "company", "NN" ], [ "of", "IN" ], [ "entrepreneur", "NN" ], [ ",", "," ], [ "ordered", "VBD" ], [ "descending", "NN" ], [ "by", "IN" ], [ "amount", "NN" ], [ "of", "IN" ], [ "money", "NN" ], [ "requested", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(0) A(0) C(4) T(0)" }, { "db_id": "entrepreneur", "query": "SELECT Company , Investor FROM entrepreneur", "query_toks": [ "SELECT", "Company", ",", "Investor", "FROM", "entrepreneur" ], "query_toks_no_value": [ "select", "company", ",", "investor", "from", "entrepreneur" ], "question": "List the companies and the investors of entrepreneurs.", "question_toks": [ "list", "company", "and", "investor", "of", "entrepreneur", "." ], "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "the", "companies", "and", "the", "investors", "of", "entrepreneurs", "." ], "question_arg": [ [ "list" ], [ "company" ], [ "and" ], [ "investor" ], [ "of" ], [ "entrepreneur" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "company", "NN" ], [ "and", "CC" ], [ "investor", "NN" ], [ "of", "IN" ], [ "entrepreneur", "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": "entrepreneur", "query": "SELECT Company , Investor FROM entrepreneur", "query_toks": [ "SELECT", "Company", ",", "Investor", "FROM", "entrepreneur" ], "query_toks_no_value": [ "select", "company", ",", "investor", "from", "entrepreneur" ], "question": "What are the companies and investors that correspond to each entrepreneur?", "question_toks": [ "what", "are", "company", "and", "investor", "that", "correspond", "to", "each", "entrepreneur", "?" ], "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "companies", "and", "investors", "that", "correspond", "to", "each", "entrepreneur", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "company" ], [ "and" ], [ "investor" ], [ "that" ], [ "correspond" ], [ "to" ], [ "each" ], [ "entrepreneur" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "company", "NN" ], [ "and", "CC" ], [ "investor", "NN" ], [ "that", "WDT" ], [ "correspond", "NN" ], [ "to", "TO" ], [ "each", "DT" ], [ "entrepreneur", "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": "entrepreneur", "query": "SELECT avg(Money_Requested) FROM entrepreneur", "query_toks": [ "SELECT", "avg", "(", "Money_Requested", ")", "FROM", "entrepreneur" ], "query_toks_no_value": [ "select", "avg", "(", "money_requested", ")", "from", "entrepreneur" ], "question": "What is the average money requested by all entrepreneurs?", "question_toks": [ "what", "is", "average", "money", "requested", "by", "all", "entrepreneur", "?" ], "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": [] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "money", "requested", "by", "all", "entrepreneurs", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "money", "requested" ], [ "by" ], [ "all" ], [ "entrepreneur" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "money", "NN" ], [ "requested", "VBN" ], [ "by", "IN" ], [ "all", "DT" ], [ "entrepreneur", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(4) T(0)" }, { "db_id": "entrepreneur", "query": "SELECT avg(Money_Requested) FROM entrepreneur", "query_toks": [ "SELECT", "avg", "(", "Money_Requested", ")", "FROM", "entrepreneur" ], "query_toks_no_value": [ "select", "avg", "(", "money_requested", ")", "from", "entrepreneur" ], "question": "Return the average money requested across all entrepreneurs.", "question_toks": [ "return", "average", "money", "requested", "across", "all", "entrepreneur", "." ], "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": [] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Return", "the", "average", "money", "requested", "across", "all", "entrepreneurs", "." ], "question_arg": [ [ "return" ], [ "average" ], [ "money", "requested" ], [ "across" ], [ "all" ], [ "entrepreneur" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "average", "JJ" ], [ "money", "NN" ], [ "requested", "VBN" ], [ "across", "IN" ], [ "all", "DT" ], [ "entrepreneur", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(4) T(0)" }, { "db_id": "entrepreneur", "query": "SELECT Name FROM People ORDER BY Weight ASC", "query_toks": [ "SELECT", "Name", "FROM", "People", "ORDER", "BY", "Weight", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "people", "order", "by", "weight", "asc" ], "question": "What are the names of people in ascending order of weight?", "question_toks": [ "what", "are", "name", "of", "people", "in", "ascending", "order", "of", "weight", "?" ], "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "people", "in", "ascending", "order", "of", "weight", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "people" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "weight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "weight", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(6) T(1) Order(1) A(0) C(8) T(1)" }, { "db_id": "entrepreneur", "query": "SELECT Name FROM People ORDER BY Weight ASC", "query_toks": [ "SELECT", "Name", "FROM", "People", "ORDER", "BY", "Weight", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "people", "order", "by", "weight", "asc" ], "question": "Return the names of people, ordered by weight ascending.", "question_toks": [ "return", "name", "of", "people", ",", "ordered", "by", "weight", "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Return", "the", "names", "of", "people", ",", "ordered", "by", "weight", "ascending", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "people" ], [ "," ], [ "ordered" ], [ "by" ], [ "weight" ], [ "ascending" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "weight", "NN" ], [ "ascending", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(6) T(1) Order(1) A(0) C(8) T(1)" }, { "db_id": "entrepreneur", "query": "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID", "query_toks": [ "SELECT", "T2.Name", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id" ], "question": "What are the names of entrepreneurs?", "question_toks": [ "what", "are", "name", "of", "entrepreneur", "?" ], "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "entrepreneurs", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "entrepreneur" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "entrepreneur", "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": "entrepreneur", "query": "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID", "query_toks": [ "SELECT", "T2.Name", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id" ], "question": "Return the names of entrepreneurs.", "question_toks": [ "return", "name", "of", "entrepreneur", "." ], "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Return", "the", "names", "of", "entrepreneurs", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "entrepreneur" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "entrepreneur", "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": "entrepreneur", "query": "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor != \"Rachel Elnaugh\"", "query_toks": [ "SELECT", "T2.Name", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Investor", "!", "=", "``", "Rachel", "Elnaugh", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "investor", "!", "=", "value" ], "question": "What are the names of entrepreneurs whose investor is not \"Rachel Elnaugh\"?", "question_toks": [ "what", "are", "name", "of", "entrepreneur", "whose", "investor", "is", "not", "'", "rachel", "elnaugh", "'", "?" ], "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, 7, [ 0, [ 0, 5, false ], null ], "\"Rachel Elnaugh\"", null ] ] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "entrepreneurs", "whose", "investor", "is", "not", "``", "Rachel", "Elnaugh", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "entrepreneur" ], [ "whose" ], [ "investor" ], [ "is" ], [ "not" ], [ "'" ], [ "rachel" ], [ "elnaugh" ], [ "'" ], [ "?" ] ], "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" ], [ "entrepreneur", "NN" ], [ "whose", "WP$" ], [ "investor", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "rachel", "JJ" ], [ "elnaugh", "IN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Rachel Elnaugh" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(3) A(0) C(5) T(0) V(0)" }, { "db_id": "entrepreneur", "query": "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor != \"Rachel Elnaugh\"", "query_toks": [ "SELECT", "T2.Name", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Investor", "!", "=", "``", "Rachel", "Elnaugh", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "investor", "!", "=", "value" ], "question": "Return the names of entrepreneurs do no not have the investor Rachel Elnaugh.", "question_toks": [ "return", "name", "of", "entrepreneur", "do", "no", "not", "have", "investor", "rachel", "elnaugh", "." ], "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, 7, [ 0, [ 0, 5, false ], null ], "\"Rachel Elnaugh\"", null ] ] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Return", "the", "names", "of", "entrepreneurs", "do", "no", "not", "have", "the", "investor", "Rachel", "Elnaugh", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "entrepreneur" ], [ "do" ], [ "no" ], [ "not" ], [ "have" ], [ "investor" ], [ "rachel" ], [ "elnaugh" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "entrepreneur", "NN" ], [ "do", "VBP" ], [ "no", "DT" ], [ "not", "RB" ], [ "have", "VB" ], [ "investor", "NN" ], [ "rachel", "NN" ], [ "elnaugh", "NN" ], [ ".", "." ] ], "values": [ "Rachel Elnaugh" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(3) A(0) C(5) T(0) V(0)" }, { "db_id": "entrepreneur", "query": "SELECT Weight FROM people ORDER BY Height ASC LIMIT 1", "query_toks": [ "SELECT", "Weight", "FROM", "people", "ORDER", "BY", "Height", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "weight", "from", "people", "order", "by", "height", "asc", "limit", "value" ], "question": "What is the weight of the shortest person?", "question_toks": [ "what", "is", "weight", "of", "shortest", "person", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "weight", "of", "the", "shortest", "person", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "weight" ], [ "of" ], [ "shortest" ], [ "person" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "weight", "NN" ], [ "of", "IN" ], [ "shortest", "JJS" ], [ "person", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(1) Sup(1) A(0) C(7) T(1)" }, { "db_id": "entrepreneur", "query": "SELECT Weight FROM people ORDER BY Height ASC LIMIT 1", "query_toks": [ "SELECT", "Weight", "FROM", "people", "ORDER", "BY", "Height", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "weight", "from", "people", "order", "by", "height", "asc", "limit", "value" ], "question": "Return the weight of the shortest person.", "question_toks": [ "return", "weight", "of", "shortest", "person", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Return", "the", "weight", "of", "the", "shortest", "person", "." ], "question_arg": [ [ "return" ], [ "weight" ], [ "of" ], [ "shortest" ], [ "person" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "weight", "NN" ], [ "of", "IN" ], [ "shortest", "JJS" ], [ "person", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(1) Sup(1) A(0) C(7) T(1)" }, { "db_id": "entrepreneur", "query": "SELECT T2.Name FROM entrepreneur 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", "entrepreneur", "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", "entrepreneur", "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 entrepreneur with the greatest weight?", "question_toks": [ "what", "is", "name", "of", "entrepreneur", "with", "greatest", "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "entrepreneur", "with", "the", "greatest", "weight", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "entrepreneur" ], [ "with" ], [ "greatest" ], [ "weight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "entrepreneur", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "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": "entrepreneur", "query": "SELECT T2.Name FROM entrepreneur 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", "entrepreneur", "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", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "weight", "desc", "limit", "value" ], "question": "Return the name of the heaviest entrepreneur.", "question_toks": [ "return", "name", "of", "heaviest", "entrepreneur", "." ], "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Return", "the", "name", "of", "the", "heaviest", "entrepreneur", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "heaviest" ], [ "entrepreneur" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "heaviest", "JJS" ], [ "entrepreneur", "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": "entrepreneur", "query": "SELECT sum(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 1.85", "query_toks": [ "SELECT", "sum", "(", "T1.Money_Requested", ")", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T2.Height", ">", "1.85" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "money_requested", ")", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "height", ">", "value" ], "question": "What is the total money requested by entrepreneurs with height more than 1.85?", "question_toks": [ "what", "is", "total", "money", "requested", "by", "entrepreneur", "with", "height", "more", "than", "1.85", "?" ], "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, [ [ 4, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 8, false ], null ], 1.85, null ] ] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "money", "requested", "by", "entrepreneurs", "with", "height", "more", "than", "1.85", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "money", "requested" ], [ "by" ], [ "entrepreneur" ], [ "with" ], [ "height" ], [ "more" ], [ "than" ], [ "1.85" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "money", "NN" ], [ "requested", "VBN" ], [ "by", "IN" ], [ "entrepreneur", "NN" ], [ "with", "IN" ], [ "height", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1.85", "CD" ], [ "?", "." ] ], "values": [ "1.85" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(4) T(0) Filter(5) A(0) C(7) T(1) V(0)" }, { "db_id": "entrepreneur", "query": "SELECT sum(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 1.85", "query_toks": [ "SELECT", "sum", "(", "T1.Money_Requested", ")", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T2.Height", ">", "1.85" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "money_requested", ")", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "height", ">", "value" ], "question": "Give the total money requested by entrepreneurs who are taller than 1.85.", "question_toks": [ "give", "total", "money", "requested", "by", "entrepreneur", "who", "are", "taller", "than", "1.85", "." ], "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, [ [ 4, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 8, false ], null ], 1.85, null ] ] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Give", "the", "total", "money", "requested", "by", "entrepreneurs", "who", "are", "taller", "than", "1.85", "." ], "question_arg": [ [ "give" ], [ "total" ], [ "money", "requested" ], [ "by" ], [ "entrepreneur" ], [ "who" ], [ "are" ], [ "taller" ], [ "than" ], [ "1.85" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "total", "JJ" ], [ "money", "NN" ], [ "requested", "VBN" ], [ "by", "IN" ], [ "entrepreneur", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "taller", "JJR" ], [ "than", "IN" ], [ "1.85", "CD" ], [ ".", "." ] ], "values": [ "1.85" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(4) T(0) Filter(5) A(0) C(7) T(1) V(0)" }, { "db_id": "entrepreneur", "query": "SELECT T2.Date_of_Birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = \"Simon Woodroffe\" OR T1.Investor = \"Peter Jones\"", "query_toks": [ "SELECT", "T2.Date_of_Birth", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Investor", "=", "``", "Simon", "Woodroffe", "''", "OR", "T1.Investor", "=", "``", "Peter", "Jones", "''" ], "query_toks_no_value": [ "select", "t2", ".", "date_of_birth", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "investor", "=", "value", "or", "t1", ".", "investor", "=", "value" ], "question": "What are the dates of birth of entrepreneurs with investor \"Simon Woodroffe\" or \"Peter Jones\"?", "question_toks": [ "what", "are", "date", "of", "birth", "of", "entrepreneur", "with", "investor", "'", "simon", "woodroffe", "'", "or", "'", "peter", "jones", "'", "?" ], "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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Simon Woodroffe\"", null ], "or", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Peter Jones\"", null ] ] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "dates", "of", "birth", "of", "entrepreneurs", "with", "investor", "``", "Simon", "Woodroffe", "''", "or", "``", "Peter", "Jones", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date", "of", "birth" ], [ "of" ], [ "entrepreneur" ], [ "with" ], [ "investor" ], [ "'" ], [ "simon" ], [ "woodroffe" ], [ "'" ], [ "or" ], [ "'" ], [ "peter" ], [ "jones" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "of", "IN" ], [ "birth", "NN" ], [ "of", "IN" ], [ "entrepreneur", "NN" ], [ "with", "IN" ], [ "investor", "NN" ], [ "'", "''" ], [ "simon", "JJ" ], [ "woodroffe", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "peter", "NN" ], [ "jones", "NNS" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Simon Woodroffe", "Peter Jones" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(1) Filter(2) A(0) C(5) T(0) V(0) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "entrepreneur", "query": "SELECT T2.Date_of_Birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = \"Simon Woodroffe\" OR T1.Investor = \"Peter Jones\"", "query_toks": [ "SELECT", "T2.Date_of_Birth", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Investor", "=", "``", "Simon", "Woodroffe", "''", "OR", "T1.Investor", "=", "``", "Peter", "Jones", "''" ], "query_toks_no_value": [ "select", "t2", ".", "date_of_birth", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "investor", "=", "value", "or", "t1", ".", "investor", "=", "value" ], "question": "Return the dates of birth for entrepreneurs who have either the investor Simon Woodroffe or Peter Jones.", "question_toks": [ "return", "date", "of", "birth", "for", "entrepreneur", "who", "have", "either", "investor", "simon", "woodroffe", "or", "peter", "jones", "." ], "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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Simon Woodroffe\"", null ], "or", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Peter Jones\"", null ] ] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Return", "the", "dates", "of", "birth", "for", "entrepreneurs", "who", "have", "either", "the", "investor", "Simon", "Woodroffe", "or", "Peter", "Jones", "." ], "question_arg": [ [ "return" ], [ "date", "of", "birth" ], [ "for" ], [ "entrepreneur" ], [ "who" ], [ "have" ], [ "either" ], [ "investor" ], [ "simon" ], [ "woodroffe" ], [ "or" ], [ "peter" ], [ "jones" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "birth", "NN" ], [ "for", "IN" ], [ "entrepreneur", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "either", "DT" ], [ "investor", "NN" ], [ "simon", "NN" ], [ "woodroffe", "NN" ], [ "or", "CC" ], [ "peter", "NN" ], [ "jones", "NNS" ], [ ".", "." ] ], "values": [ "Peter Jones", "Simon Woodroffe" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(1) Filter(2) A(0) C(5) T(0) V(1) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "entrepreneur", "query": "SELECT T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested DESC", "query_toks": [ "SELECT", "T2.Weight", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Money_Requested", "DESC" ], "query_toks_no_value": [ "select", "t2", ".", "weight", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "money_requested", "desc" ], "question": "What are the weights of entrepreneurs in descending order of money requested?", "question_toks": [ "what", "are", "weight", "of", "entrepreneur", "in", "descending", "order", "of", "money", "requested", "?" ], "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, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "weights", "of", "entrepreneurs", "in", "descending", "order", "of", "money", "requested", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "weight" ], [ "of" ], [ "entrepreneur" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "money", "requested" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "weight", "VBN" ], [ "of", "IN" ], [ "entrepreneur", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "money", "NN" ], [ "requested", "VBN" ], [ "?", "." ] ], "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": "entrepreneur", "query": "SELECT T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested DESC", "query_toks": [ "SELECT", "T2.Weight", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Money_Requested", "DESC" ], "query_toks_no_value": [ "select", "t2", ".", "weight", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "money_requested", "desc" ], "question": "Return the weights of entrepreneurs, ordered descending by amount of money requested.", "question_toks": [ "return", "weight", "of", "entrepreneur", ",", "ordered", "descending", "by", "amount", "of", "money", "requested", "." ], "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, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Return", "the", "weights", "of", "entrepreneurs", ",", "ordered", "descending", "by", "amount", "of", "money", "requested", "." ], "question_arg": [ [ "return" ], [ "weight" ], [ "of" ], [ "entrepreneur" ], [ "," ], [ "ordered" ], [ "descending" ], [ "by" ], [ "amount" ], [ "of" ], [ "money", "requested" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "weight", "NN" ], [ "of", "IN" ], [ "entrepreneur", "NN" ], [ ",", "," ], [ "ordered", "VBD" ], [ "descending", "NN" ], [ "by", "IN" ], [ "amount", "NN" ], [ "of", "IN" ], [ "money", "NN" ], [ "requested", "VBN" ], [ ".", "." ] ], "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": "entrepreneur", "query": "SELECT Investor , COUNT(*) FROM entrepreneur GROUP BY Investor", "query_toks": [ "SELECT", "Investor", ",", "COUNT", "(", "*", ")", "FROM", "entrepreneur", "GROUP", "BY", "Investor" ], "query_toks_no_value": [ "select", "investor", ",", "count", "(", "*", ")", "from", "entrepreneur", "group", "by", "investor" ], "question": "What are the investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor?", "question_toks": [ "what", "are", "investor", "of", "entrepreneur", "and", "corresponding", "number", "of", "entrepreneur", "invested", "by", "each", "investor", "?" ], "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "investors", "of", "entrepreneurs", "and", "the", "corresponding", "number", "of", "entrepreneurs", "invested", "by", "each", "investor", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "investor" ], [ "of" ], [ "entrepreneur" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "entrepreneur" ], [ "invested" ], [ "by" ], [ "each" ], [ "investor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "investor", "NN" ], [ "of", "IN" ], [ "entrepreneur", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "entrepreneur", "NN" ], [ "invested", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "investor", "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": "entrepreneur", "query": "SELECT Investor , COUNT(*) FROM entrepreneur GROUP BY Investor", "query_toks": [ "SELECT", "Investor", ",", "COUNT", "(", "*", ")", "FROM", "entrepreneur", "GROUP", "BY", "Investor" ], "query_toks_no_value": [ "select", "investor", ",", "count", "(", "*", ")", "from", "entrepreneur", "group", "by", "investor" ], "question": "How many entrepreneurs correspond to each investor?", "question_toks": [ "how", "many", "entrepreneur", "correspond", "to", "each", "investor", "?" ], "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "How", "many", "entrepreneurs", "correspond", "to", "each", "investor", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "entrepreneur" ], [ "correspond" ], [ "to" ], [ "each" ], [ "investor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "entrepreneur", "VBP" ], [ "correspond", "NN" ], [ "to", "TO" ], [ "each", "DT" ], [ "investor", "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": "entrepreneur", "query": "SELECT Investor FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Investor", "FROM", "entrepreneur", "GROUP", "BY", "Investor", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "investor", "from", "entrepreneur", "group", "by", "investor", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the investor that has invested in the most number of entrepreneurs?", "question_toks": [ "what", "is", "investor", "that", "ha", "invested", "in", "most", "number", "of", "entrepreneur", "?" ], "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "investor", "that", "has", "invested", "in", "the", "most", "number", "of", "entrepreneurs", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "investor" ], [ "that" ], [ "ha" ], [ "invested" ], [ "in" ], [ "most" ], [ "number" ], [ "of" ], [ "entrepreneur" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "investor", "NN" ], [ "that", "WDT" ], [ "ha", "NN" ], [ "invested", "VBN" ], [ "in", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "entrepreneur", "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": "entrepreneur", "query": "SELECT Investor FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Investor", "FROM", "entrepreneur", "GROUP", "BY", "Investor", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "investor", "from", "entrepreneur", "group", "by", "investor", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the investor who have invested in the greatest number of entrepreneurs.", "question_toks": [ "return", "investor", "who", "have", "invested", "in", "greatest", "number", "of", "entrepreneur", "." ], "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Return", "the", "investor", "who", "have", "invested", "in", "the", "greatest", "number", "of", "entrepreneurs", "." ], "question_arg": [ [ "return" ], [ "investor" ], [ "who" ], [ "have" ], [ "invested" ], [ "in" ], [ "greatest" ], [ "number" ], [ "of" ], [ "entrepreneur" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "investor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "invested", "VBN" ], [ "in", "IN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "entrepreneur", "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": "entrepreneur", "query": "SELECT Investor FROM entrepreneur GROUP BY Investor HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Investor", "FROM", "entrepreneur", "GROUP", "BY", "Investor", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "investor", "from", "entrepreneur", "group", "by", "investor", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the investors that have invested in at least two entrepreneurs?", "question_toks": [ "what", "are", "investor", "that", "have", "invested", "in", "at", "least", "two", "entrepreneur", "?" ], "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "investors", "that", "have", "invested", "in", "at", "least", "two", "entrepreneurs", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "investor" ], [ "that" ], [ "have" ], [ "invested" ], [ "in" ], [ "at" ], [ "least" ], [ "two" ], [ "entrepreneur" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "investor", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "invested", "VBN" ], [ "in", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "entrepreneur", "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": "entrepreneur", "query": "SELECT Investor FROM entrepreneur GROUP BY Investor HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Investor", "FROM", "entrepreneur", "GROUP", "BY", "Investor", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "investor", "from", "entrepreneur", "group", "by", "investor", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Return the investors who have invested in two or more entrepreneurs.", "question_toks": [ "return", "investor", "who", "have", "invested", "in", "two", "or", "more", "entrepreneur", "." ], "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Return", "the", "investors", "who", "have", "invested", "in", "two", "or", "more", "entrepreneurs", "." ], "question_arg": [ [ "return" ], [ "investor" ], [ "who" ], [ "have" ], [ "invested" ], [ "in" ], [ "two" ], [ "or" ], [ "more" ], [ "entrepreneur" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "investor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "invested", "VBN" ], [ "in", "IN" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "entrepreneur", "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": "entrepreneur", "query": "SELECT T2.Name , T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested", "query_toks": [ "SELECT", "T2.Name", ",", "T1.Company", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Money_Requested" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "company", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "money_requested" ], "question": "List the names of entrepreneurs and their companies in descending order of money requested?", "question_toks": [ "list", "name", "of", "entrepreneur", "and", "their", "company", "in", "descending", "order", "of", "money", "requested", "?" ], "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": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "of", "entrepreneurs", "and", "their", "companies", "in", "descending", "order", "of", "money", "requested", "?" ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "entrepreneur" ], [ "and" ], [ "their" ], [ "company" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "money", "requested" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "entrepreneur", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "company", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "money", "NN" ], [ "requested", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(6) T(1) A(0) C(3) T(0) Order(1) A(0) C(4) T(0)" }, { "db_id": "entrepreneur", "query": "SELECT T2.Name , T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested", "query_toks": [ "SELECT", "T2.Name", ",", "T1.Company", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Money_Requested" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "company", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "money_requested" ], "question": "What are the names of entrepreneurs and their corresponding investors, ordered descending by the amount of money requested?", "question_toks": [ "what", "are", "name", "of", "entrepreneur", "and", "their", "corresponding", "investor", ",", "ordered", "descending", "by", "amount", "of", "money", "requested", "?" ], "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": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "entrepreneurs", "and", "their", "corresponding", "investors", ",", "ordered", "descending", "by", "the", "amount", "of", "money", "requested", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "entrepreneur" ], [ "and" ], [ "their" ], [ "corresponding" ], [ "investor" ], [ "," ], [ "ordered" ], [ "descending" ], [ "by" ], [ "amount" ], [ "of" ], [ "money", "requested" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "entrepreneur", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "corresponding", "JJ" ], [ "investor", "NN" ], [ ",", "," ], [ "ordered", "VBD" ], [ "descending", "NN" ], [ "by", "IN" ], [ "amount", "NN" ], [ "of", "IN" ], [ "money", "NN" ], [ "requested", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(6) T(1) A(0) C(3) T(0) Order(1) A(0) C(4) T(0)" }, { "db_id": "entrepreneur", "query": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM entrepreneur)", "query_toks": [ "SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "entrepreneur", ")" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "entrepreneur", ")" ], "question": "List the names of people that are not entrepreneurs.", "question_toks": [ "list", "name", "of", "people", "that", "are", "not", "entrepreneur", "." ], "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "of", "people", "that", "are", "not", "entrepreneurs", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "people" ], [ "that" ], [ "are" ], [ "not" ], [ "entrepreneur" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "entrepreneur", "RB" ], [ ".", "." ] ], "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": "entrepreneur", "query": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM entrepreneur)", "query_toks": [ "SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "entrepreneur", ")" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "entrepreneur", ")" ], "question": "What are the names of people who are not entrepreneurs?", "question_toks": [ "what", "are", "name", "of", "people", "who", "are", "not", "entrepreneur", "?" ], "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "people", "who", "are", "not", "entrepreneurs", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "people" ], [ "who" ], [ "are" ], [ "not" ], [ "entrepreneur" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "entrepreneur", "RB" ], [ "?", "." ] ], "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": "entrepreneur", "query": "SELECT Investor FROM entrepreneur WHERE Money_Requested > 140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested < 120000", "query_toks": [ "SELECT", "Investor", "FROM", "entrepreneur", "WHERE", "Money_Requested", ">", "140000", "INTERSECT", "SELECT", "Investor", "FROM", "entrepreneur", "WHERE", "Money_Requested", "<", "120000" ], "query_toks_no_value": [ "select", "investor", "from", "entrepreneur", "where", "money_requested", ">", "value", "intersect", "select", "investor", "from", "entrepreneur", "where", "money_requested", "<", "value" ], "question": "Show the investors shared by entrepreneurs that requested more than 140000 and entrepreneurs that requested less than 120000.", "question_toks": [ "show", "investor", "shared", "by", "entrepreneur", "that", "requested", "more", "than", "140000", "and", "entrepreneur", "that", "requested", "le", "than", "120000", "." ], "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, 4, [ 0, [ 0, 4, false ], null ], 120000.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 140000.0, null ] ] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "the", "investors", "shared", "by", "entrepreneurs", "that", "requested", "more", "than", "140000", "and", "entrepreneurs", "that", "requested", "less", "than", "120000", "." ], "question_arg": [ [ "show" ], [ "investor" ], [ "shared" ], [ "by" ], [ "entrepreneur" ], [ "that" ], [ "requested" ], [ "more" ], [ "than" ], [ "140000" ], [ "and" ], [ "entrepreneur" ], [ "that" ], [ "requested" ], [ "le" ], [ "than" ], [ "120000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "investor", "NN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "entrepreneur", "NN" ], [ "that", "WDT" ], [ "requested", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "140000", "CD" ], [ "and", "CC" ], [ "entrepreneur", "NN" ], [ "that", "WDT" ], [ "requested", "VBD" ], [ "le", "JJR" ], [ "than", "IN" ], [ "120000", "CD" ], [ ".", "." ] ], "values": [ "120000", "140000" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(5) A(0) C(4) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(4) A(0) C(4) T(0) V(0)" }, { "db_id": "entrepreneur", "query": "SELECT Investor FROM entrepreneur WHERE Money_Requested > 140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested < 120000", "query_toks": [ "SELECT", "Investor", "FROM", "entrepreneur", "WHERE", "Money_Requested", ">", "140000", "INTERSECT", "SELECT", "Investor", "FROM", "entrepreneur", "WHERE", "Money_Requested", "<", "120000" ], "query_toks_no_value": [ "select", "investor", "from", "entrepreneur", "where", "money_requested", ">", "value", "intersect", "select", "investor", "from", "entrepreneur", "where", "money_requested", "<", "value" ], "question": "What are the investors who have invested in both entrepreneurs who requested more than 140000 and entrepreneurs who requested less than 120000?", "question_toks": [ "what", "are", "investor", "who", "have", "invested", "in", "both", "entrepreneur", "who", "requested", "more", "than", "140000", "and", "entrepreneur", "who", "requested", "le", "than", "120000", "?" ], "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, 4, [ 0, [ 0, 4, false ], null ], 120000.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 140000.0, null ] ] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "investors", "who", "have", "invested", "in", "both", "entrepreneurs", "who", "requested", "more", "than", "140000", "and", "entrepreneurs", "who", "requested", "less", "than", "120000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "investor" ], [ "who" ], [ "have" ], [ "invested" ], [ "in" ], [ "both" ], [ "entrepreneur" ], [ "who" ], [ "requested" ], [ "more" ], [ "than" ], [ "140000" ], [ "and" ], [ "entrepreneur" ], [ "who" ], [ "requested" ], [ "le" ], [ "than" ], [ "120000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "investor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "invested", "VBN" ], [ "in", "IN" ], [ "both", "DT" ], [ "entrepreneur", "NN" ], [ "who", "WP" ], [ "requested", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "140000", "CD" ], [ "and", "CC" ], [ "entrepreneur", "NN" ], [ "who", "WP" ], [ "requested", "VBD" ], [ "le", "JJR" ], [ "than", "IN" ], [ "120000", "CD" ], [ "?", "." ] ], "values": [ "140000", "120000" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(5) A(0) C(4) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(4) A(0) C(4) T(0) V(1)" }, { "db_id": "entrepreneur", "query": "SELECT count(DISTINCT Company) FROM entrepreneur", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Company", ")", "FROM", "entrepreneur" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "company", ")", "from", "entrepreneur" ], "question": "How many distinct companies are there?", "question_toks": [ "how", "many", "distinct", "company", "are", "there", "?" ], "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "How", "many", "distinct", "companies", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "company" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "company", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(3) T(0)" }, { "db_id": "entrepreneur", "query": "SELECT count(DISTINCT Company) FROM entrepreneur", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Company", ")", "FROM", "entrepreneur" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "company", ")", "from", "entrepreneur" ], "question": "Count the number of different companies.", "question_toks": [ "count", "number", "of", "different", "company", "." ], "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": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "companies", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "company" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "company", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(3) T(0)" }, { "db_id": "entrepreneur", "query": "SELECT T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Height DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Company", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Height", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "company", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "height", "desc", "limit", "value" ], "question": "Show the company of the tallest entrepreneur.", "question_toks": [ "show", "company", "of", "tallest", "entrepreneur", "." ], "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, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "the", "company", "of", "the", "tallest", "entrepreneur", "." ], "question_arg": [ [ "show" ], [ "company" ], [ "of" ], [ "tallest" ], [ "entrepreneur" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "company", "NN" ], [ "of", "IN" ], [ "tallest", "JJ" ], [ "entrepreneur", "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(1)" }, { "db_id": "entrepreneur", "query": "SELECT T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Height DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Company", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Height", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "company", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "height", "desc", "limit", "value" ], "question": "Which company was started by the entrepreneur with the greatest height?", "question_toks": [ "which", "company", "wa", "started", "by", "entrepreneur", "with", "greatest", "height", "?" ], "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, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "people id", "name", "height", "weight", "date of birth" ], "table_names": [ "entrepreneur", "people" ], "col_set": [ "*", "entrepreneur id", "people id", "company", "money requested", "investor", "name", "height", "weight", "date of birth" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Which", "company", "was", "started", "by", "the", "entrepreneur", "with", "the", "greatest", "height", "?" ], "question_arg": [ [ "which" ], [ "company" ], [ "wa" ], [ "started" ], [ "by" ], [ "entrepreneur" ], [ "with" ], [ "greatest" ], [ "height" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "company", "NN" ], [ "wa", "NN" ], [ "started", "VBN" ], [ "by", "IN" ], [ "entrepreneur", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "height", "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(1)" }, { "db_id": "perpetrator", "query": "SELECT count(*) FROM perpetrator", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "perpetrator" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "perpetrator" ], "question": "How many perpetrators are there?", "question_toks": [ "how", "many", "perpetrator", "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": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "perpetrators", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "perpetrator" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "perpetrator", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "perpetrator", "query": "SELECT Date FROM perpetrator ORDER BY Killed DESC", "query_toks": [ "SELECT", "Date", "FROM", "perpetrator", "ORDER", "BY", "Killed", "DESC" ], "query_toks_no_value": [ "select", "date", "from", "perpetrator", "order", "by", "killed", "desc" ], "question": "List the date of perpetrators in descending order of the number of people killed.", "question_toks": [ "list", "date", "of", "perpetrator", "in", "descending", "order", "of", "number", "of", "people", "killed", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 7, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "List", "the", "date", "of", "perpetrators", "in", "descending", "order", "of", "the", "number", "of", "people", "killed", "." ], "question_arg": [ [ "list" ], [ "date" ], [ "of" ], [ "perpetrator" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "number" ], [ "of" ], [ "people" ], [ "killed" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "perpetrator", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "killed", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(0) A(0) C(7) T(0)" }, { "db_id": "perpetrator", "query": "SELECT Injured FROM perpetrator ORDER BY Injured ASC", "query_toks": [ "SELECT", "Injured", "FROM", "perpetrator", "ORDER", "BY", "Injured", "ASC" ], "query_toks_no_value": [ "select", "injured", "from", "perpetrator", "order", "by", "injured", "asc" ], "question": "List the number of people injured by perpetrators in ascending order.", "question_toks": [ "list", "number", "of", "people", "injured", "by", "perpetrator", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "List", "the", "number", "of", "people", "injured", "by", "perpetrators", "in", "ascending", "order", "." ], "question_arg": [ [ "list" ], [ "number" ], [ "of" ], [ "people" ], [ "injured" ], [ "by" ], [ "perpetrator" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "injured", "VBN" ], [ "by", "IN" ], [ "perpetrator", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(0) Order(1) A(0) C(8) T(0)" }, { "db_id": "perpetrator", "query": "SELECT avg(Injured) FROM perpetrator", "query_toks": [ "SELECT", "avg", "(", "Injured", ")", "FROM", "perpetrator" ], "query_toks_no_value": [ "select", "avg", "(", "injured", ")", "from", "perpetrator" ], "question": "What is the average number of people injured by all perpetrators?", "question_toks": [ "what", "is", "average", "number", "of", "people", "injured", "by", "all", "perpetrator", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "people", "injured", "by", "all", "perpetrators", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "people" ], [ "injured" ], [ "by" ], [ "all" ], [ "perpetrator" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "injured", "VBN" ], [ "by", "IN" ], [ "all", "DT" ], [ "perpetrator", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(8) T(0)" }, { "db_id": "perpetrator", "query": "SELECT LOCATION FROM perpetrator ORDER BY Killed DESC LIMIT 1", "query_toks": [ "SELECT", "LOCATION", "FROM", "perpetrator", "ORDER", "BY", "Killed", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "location", "from", "perpetrator", "order", "by", "killed", "desc", "limit", "value" ], "question": "What is the location of the perpetrator with the largest kills.", "question_toks": [ "what", "is", "location", "of", "perpetrator", "with", "largest", "kill", "." ], "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, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "location", "of", "the", "perpetrator", "with", "the", "largest", "kills", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "location" ], [ "of" ], [ "perpetrator" ], [ "with" ], [ "largest" ], [ "kill" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "location", "NN" ], [ "of", "IN" ], [ "perpetrator", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "kill", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(0) Sup(0) A(0) C(7) T(0)" }, { "db_id": "perpetrator", "query": "SELECT Name FROM People ORDER BY Height ASC", "query_toks": [ "SELECT", "Name", "FROM", "People", "ORDER", "BY", "Height", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "people", "order", "by", "height", "asc" ], "question": "What are the names of people in ascending order of height?", "question_toks": [ "what", "are", "name", "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, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "people", "in", "ascending", "order", "of", "height", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "people" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "height" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "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(10) T(1)" }, { "db_id": "perpetrator", "query": "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID", "query_toks": [ "SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "perpetrator", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "perpetrator", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id" ], "question": "What are the names of perpetrators?", "question_toks": [ "what", "are", "name", "of", "perpetrator", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, 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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "perpetrators", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "perpetrator" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "perpetrator", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(18) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "perpetrator", "query": "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country != \"China\"", "query_toks": [ "SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "perpetrator", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T2.Country", "!", "=", "``", "China", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "perpetrator", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "country", "!", "=", "value" ], "question": "What are the names of perpetrators whose country is not \"China\"?", "question_toks": [ "what", "are", "name", "of", "perpetrator", "whose", "country", "is", "not", "'", "china", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, 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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 6, false ], null ], "\"China\"", null ] ] }, "names": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "perpetrators", "whose", "country", "is", "not", "``", "China", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "perpetrator" ], [ "whose" ], [ "country" ], [ "is" ], [ "not" ], [ "'" ], [ "china" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "perpetrator", "NN" ], [ "whose", "WP$" ], [ "country", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "china", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "China" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(3) A(0) C(6) T(0) V(0)" }, { "db_id": "perpetrator", "query": "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Weight DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "perpetrator", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Weight", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "perpetrator", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "weight", "desc", "limit", "value" ], "question": "What is the name of the perpetrator with the biggest weight.", "question_toks": [ "what", "is", "name", "of", "perpetrator", "with", "biggest", "weight", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 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, 2, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "perpetrator", "with", "the", "biggest", "weight", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "perpetrator" ], [ "with" ], [ "biggest" ], [ "weight" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "perpetrator", "NN" ], [ "with", "IN" ], [ "biggest", "JJS" ], [ "weight", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(9) T(1) Sup(0) A(0) C(11) T(1) Filter(18) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "perpetrator", "query": "SELECT sum(T2.Killed) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 1.84", "query_toks": [ "SELECT", "sum", "(", "T2.Killed", ")", "FROM", "people", "AS", "T1", "JOIN", "perpetrator", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Height", ">", "1.84" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "killed", ")", "from", "people", "as", "t1", "join", "perpetrator", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "height", ">", "value" ], "question": "What is the total kills of the perpetrators with height more than 1.84.", "question_toks": [ "what", "is", "total", "kill", "of", "perpetrator", "with", "height", "more", "than", "1.84", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 1.84, null ] ] }, "names": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "kills", "of", "the", "perpetrators", "with", "height", "more", "than", "1.84", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "kill" ], [ "of" ], [ "perpetrator" ], [ "with" ], [ "height" ], [ "more" ], [ "than" ], [ "1.84" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "kill", "NN" ], [ "of", "IN" ], [ "perpetrator", "NN" ], [ "with", "IN" ], [ "height", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1.84", "CD" ], [ ".", "." ] ], "values": [ "1.84" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(7) T(0) Filter(5) A(0) C(10) T(1) V(0)" }, { "db_id": "perpetrator", "query": "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country = \"China\" OR T2.Country = \"Japan\"", "query_toks": [ "SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "perpetrator", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T2.Country", "=", "``", "China", "''", "OR", "T2.Country", "=", "``", "Japan", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "perpetrator", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "country", "=", "value", "or", "t2", ".", "country", "=", "value" ], "question": "What are the names of perpetrators in country \"China\" or \"Japan\"?", "question_toks": [ "what", "are", "name", "of", "perpetrator", "in", "country", "'", "china", "'", "or", "'", "japan", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, 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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"China\"", null ], "or", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Japan\"", null ] ] }, "names": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "perpetrators", "in", "country", "``", "China", "''", "or", "``", "Japan", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "perpetrator" ], [ "in" ], [ "country" ], [ "'" ], [ "china" ], [ "'" ], [ "or" ], [ "'" ], [ "japan" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "perpetrator", "NN" ], [ "in", "IN" ], [ "country", "NN" ], [ "'", "''" ], [ "china", "NNS" ], [ "'", "POS" ], [ "or", "CC" ], [ "'", "POS" ], [ "japan", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Japan", "China" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(1) Filter(2) A(0) C(6) T(0) V(1) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "perpetrator", "query": "SELECT T1.Height FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Injured DESC", "query_toks": [ "SELECT", "T1.Height", "FROM", "people", "AS", "T1", "JOIN", "perpetrator", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Injured", "DESC" ], "query_toks_no_value": [ "select", "t1", ".", "height", "from", "people", "as", "t1", "join", "perpetrator", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "injured", "desc" ], "question": "What are the heights of perpetrators in descending order of the number of people they injured?", "question_toks": [ "what", "are", "height", "of", "perpetrator", "in", "descending", "order", "of", "number", "of", "people", "they", "injured", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "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": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "heights", "of", "perpetrators", "in", "descending", "order", "of", "the", "number", "of", "people", "they", "injured", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "height" ], [ "of" ], [ "perpetrator" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "number" ], [ "of" ], [ "people" ], [ "they" ], [ "injured" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "height", "VBN" ], [ "of", "IN" ], [ "perpetrator", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "they", "PRP" ], [ "injured", "VBD" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(10) T(1) Order(0) A(0) C(8) T(0)" }, { "db_id": "perpetrator", "query": "SELECT Country , COUNT(*) FROM perpetrator GROUP BY Country", "query_toks": [ "SELECT", "Country", ",", "COUNT", "(", "*", ")", "FROM", "perpetrator", "GROUP", "BY", "Country" ], "query_toks_no_value": [ "select", "country", ",", "count", "(", "*", ")", "from", "perpetrator", "group", "by", "country" ], "question": "What are the countries of perpetrators? Show each country and the corresponding number of perpetrators there.", "question_toks": [ "what", "are", "country", "of", "perpetrator", "?", "show", "each", "country", "and", "corresponding", "number", "of", "perpetrator", "there", "." ], "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": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "countries", "of", "perpetrators", "?", "Show", "each", "country", "and", "the", "corresponding", "number", "of", "perpetrators", "there", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "country" ], [ "of" ], [ "perpetrator" ], [ "?" ], [ "show" ], [ "each" ], [ "country" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "perpetrator" ], [ "there" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "of", "IN" ], [ "perpetrator", "NN" ], [ "?", "." ], [ "show", "VBP" ], [ "each", "DT" ], [ "country", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "perpetrator", "NN" ], [ "there", "RB" ], [ ".", "." ] ], "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": "perpetrator", "query": "SELECT Country , COUNT(*) FROM perpetrator GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Country", ",", "COUNT", "(", "*", ")", "FROM", "perpetrator", "GROUP", "BY", "Country", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "country", ",", "count", "(", "*", ")", "from", "perpetrator", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the country that has the most perpetrators?", "question_toks": [ "what", "is", "country", "that", "ha", "most", "perpetrator", "?" ], "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 ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "country", "that", "has", "the", "most", "perpetrators", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "country" ], [ "that" ], [ "ha" ], [ "most" ], [ "perpetrator" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "country", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "perpetrator", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(6) T(0) A(3) C(0) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "perpetrator", "query": "SELECT Country , COUNT(*) FROM perpetrator GROUP BY Country HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Country", ",", "COUNT", "(", "*", ")", "FROM", "perpetrator", "GROUP", "BY", "Country", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "country", ",", "count", "(", "*", ")", "from", "perpetrator", "group", "by", "country", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the countries that have at least two perpetrators?", "question_toks": [ "what", "are", "country", "that", "have", "at", "least", "two", "perpetrator", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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 ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "countries", "that", "have", "at", "least", "two", "perpetrators", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "country" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "perpetrator" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "perpetrator", "NN" ], [ "?", "." ] ], "values": [ "2" ], "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": "perpetrator", "query": "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Year DESC", "query_toks": [ "SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "perpetrator", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Year", "DESC" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "perpetrator", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "year", "desc" ], "question": "List the names of perpetrators in descending order of the year.", "question_toks": [ "list", "name", "of", "perpetrator", "in", "descending", "order", "of", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, 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, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "of", "perpetrators", "in", "descending", "order", "of", "the", "year", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "perpetrator" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "perpetrator", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "year", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(9) T(1) Order(0) A(0) C(4) T(0)" }, { "db_id": "perpetrator", "query": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM perpetrator)", "query_toks": [ "SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "perpetrator", ")" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "perpetrator", ")" ], "question": "List the names of people that are not perpetrators.", "question_toks": [ "list", "name", "of", "people", "that", "are", "not", "perpetrator", "." ], "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": [ [ true, 8, [ 0, [ 0, 9, 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": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "of", "people", "that", "are", "not", "perpetrators", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "people" ], [ "that" ], [ "are" ], [ "not" ], [ "perpetrator" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "perpetrator", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(19) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "perpetrator", "query": "SELECT Country FROM perpetrator WHERE Injured > 50 INTERSECT SELECT Country FROM perpetrator WHERE Injured < 20", "query_toks": [ "SELECT", "Country", "FROM", "perpetrator", "WHERE", "Injured", ">", "50", "INTERSECT", "SELECT", "Country", "FROM", "perpetrator", "WHERE", "Injured", "<", "20" ], "query_toks_no_value": [ "select", "country", "from", "perpetrator", "where", "injured", ">", "value", "intersect", "select", "country", "from", "perpetrator", "where", "injured", "<", "value" ], "question": "Show the countries that have both perpetrators with injures more than 50 and perpetrators with injures smaller than 20.", "question_toks": [ "show", "country", "that", "have", "both", "perpetrator", "with", "injures", "more", "than", "50", "and", "perpetrator", "with", "injures", "smaller", "than", "20", "." ], "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, 8, false ], null ], 20.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 8, false ], null ], 50.0, null ] ] }, "names": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "Show", "the", "countries", "that", "have", "both", "perpetrators", "with", "injures", "more", "than", "50", "and", "perpetrators", "with", "injures", "smaller", "than", "20", "." ], "question_arg": [ [ "show" ], [ "country" ], [ "that" ], [ "have" ], [ "both" ], [ "perpetrator" ], [ "with" ], [ "injures" ], [ "more" ], [ "than" ], [ "50" ], [ "and" ], [ "perpetrator" ], [ "with" ], [ "injures" ], [ "smaller" ], [ "than" ], [ "20" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "perpetrator", "NN" ], [ "with", "IN" ], [ "injures", "NNS" ], [ "more", "JJR" ], [ "than", "IN" ], [ "50", "CD" ], [ "and", "CC" ], [ "perpetrator", "NN" ], [ "with", "IN" ], [ "injures", "NNS" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ ".", "." ] ], "values": [ "20", "50" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(5) A(0) C(8) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(4) A(0) C(8) T(0) V(0)" }, { "db_id": "perpetrator", "query": "SELECT count(DISTINCT LOCATION) FROM perpetrator", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "LOCATION", ")", "FROM", "perpetrator" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "location", ")", "from", "perpetrator" ], "question": "How many distinct locations of perpetrators are there?", "question_toks": [ "how", "many", "distinct", "location", "of", "perpetrator", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 5, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "distinct", "locations", "of", "perpetrators", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "location" ], [ "of" ], [ "perpetrator" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "location", "NN" ], [ "of", "IN" ], [ "perpetrator", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(5) T(0)" }, { "db_id": "perpetrator", "query": "SELECT T2.Date FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Date", "FROM", "people", "AS", "T1", "JOIN", "perpetrator", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Height", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "date", "from", "people", "as", "t1", "join", "perpetrator", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "height", "desc", "limit", "value" ], "question": "Show the date of the tallest perpetrator.", "question_toks": [ "show", "date", "of", "tallest", "perpetrator", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "Show", "the", "date", "of", "the", "tallest", "perpetrator", "." ], "question_arg": [ [ "show" ], [ "date" ], [ "of" ], [ "tallest" ], [ "perpetrator" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "tallest", "JJ" ], [ "perpetrator", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(3) T(0) Sup(0) A(0) C(10) T(1)" }, { "db_id": "perpetrator", "query": "SELECT max(YEAR) FROM perpetrator;", "query_toks": [ "SELECT", "max", "(", "YEAR", ")", "FROM", "perpetrator", ";" ], "query_toks_no_value": [ "select", "max", "(", "year", ")", "from", "perpetrator" ], "question": "In which year did the most recent crime happen?", "question_toks": [ "in", "which", "year", "did", "most", "recent", "crime", "happen", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "people id", "name", "height", "weight", "home town" ], "table_names": [ "perpetrator", "people" ], "col_set": [ "*", "perpetrator id", "people id", "date", "year", "location", "country", "killed", "injured", "name", "height", "weight", "home town" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "In", "which", "year", "did", "the", "most", "recent", "crime", "happen", "?" ], "question_arg": [ [ "in" ], [ "which" ], [ "year" ], [ "did" ], [ "most" ], [ "recent" ], [ "crime" ], [ "happen" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "which", "WDT" ], [ "year", "NN" ], [ "did", "VBD" ], [ "most", "RBS" ], [ "recent", "JJ" ], [ "crime", "NN" ], [ "happen", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(1) C(4) T(0)" }, { "db_id": "csu_1", "query": "SELECT campus FROM campuses WHERE county = \"Los Angeles\"", "query_toks": [ "SELECT", "campus", "FROM", "campuses", "WHERE", "county", "=", "``", "Los", "Angeles", "''" ], "query_toks_no_value": [ "select", "campus", "from", "campuses", "where", "county", "=", "value" ], "question": "Report the name of all campuses in Los Angeles county.", "question_toks": [ "report", "name", "of", "all", "campus", "in", "los", "angeles", "county", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Los Angeles\"", null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "Report", "the", "name", "of", "all", "campuses", "in", "Los", "Angeles", "county", "." ], "question_arg": [ [ "report" ], [ "name" ], [ "of" ], [ "all" ], [ "campus" ], [ "in" ], [ "los" ], [ "angeles" ], [ "county" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "report", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "campus", "NN" ], [ "in", "IN" ], [ "los", "JJ" ], [ "angeles", "NNS" ], [ "county", "NN" ], [ ".", "." ] ], "values": [ "Los Angeles" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT campus FROM campuses WHERE county = \"Los Angeles\"", "query_toks": [ "SELECT", "campus", "FROM", "campuses", "WHERE", "county", "=", "``", "Los", "Angeles", "''" ], "query_toks_no_value": [ "select", "campus", "from", "campuses", "where", "county", "=", "value" ], "question": "What campuses are located in the county of Los Angeles?", "question_toks": [ "what", "campus", "are", "located", "in", "county", "of", "los", "angeles", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Los Angeles\"", null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "campuses", "are", "located", "in", "the", "county", "of", "Los", "Angeles", "?" ], "question_arg": [ [ "what" ], [ "campus" ], [ "are" ], [ "located" ], [ "in" ], [ "county" ], [ "of" ], [ "los" ], [ "angeles" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "campus", "NN" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "in", "IN" ], [ "county", "NN" ], [ "of", "IN" ], [ "los", "NN" ], [ "angeles", "NNS" ], [ "?", "." ] ], "values": [ "Los Angeles" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT campus FROM campuses WHERE LOCATION = \"Chico\"", "query_toks": [ "SELECT", "campus", "FROM", "campuses", "WHERE", "LOCATION", "=", "``", "Chico", "''" ], "query_toks_no_value": [ "select", "campus", "from", "campuses", "where", "location", "=", "value" ], "question": "What are the names of all campuses located at Chico?", "question_toks": [ "what", "are", "name", "of", "all", "campus", "located", "at", "chico", "?" ], "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 ], "\"Chico\"", null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "campuses", "located", "at", "Chico", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "campus" ], [ "located" ], [ "at" ], [ "chico" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "campus", "NN" ], [ "located", "VBN" ], [ "at", "IN" ], [ "chico", "NN" ], [ "?", "." ] ], "values": [ "Chico" ], "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": "csu_1", "query": "SELECT campus FROM campuses WHERE LOCATION = \"Chico\"", "query_toks": [ "SELECT", "campus", "FROM", "campuses", "WHERE", "LOCATION", "=", "``", "Chico", "''" ], "query_toks_no_value": [ "select", "campus", "from", "campuses", "where", "location", "=", "value" ], "question": "What campuses are located in Chico?", "question_toks": [ "what", "campus", "are", "located", "in", "chico", "?" ], "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 ], "\"Chico\"", null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "campuses", "are", "located", "in", "Chico", "?" ], "question_arg": [ [ "what" ], [ "campus" ], [ "are" ], [ "located" ], [ "in" ], [ "chico" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "campus", "NN" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "in", "IN" ], [ "chico", "NN" ], [ "?", "." ] ], "values": [ "Chico" ], "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": "csu_1", "query": "SELECT campus FROM campuses WHERE YEAR = 1958", "query_toks": [ "SELECT", "campus", "FROM", "campuses", "WHERE", "YEAR", "=", "1958" ], "query_toks_no_value": [ "select", "campus", "from", "campuses", "where", "year", "=", "value" ], "question": "Find all the campuses opened in 1958.", "question_toks": [ "find", "all", "campus", "opened", "in", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], 1958.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "Find", "all", "the", "campuses", "opened", "in", "1958", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "campus" ], [ "opened" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "campus", "NN" ], [ "opened", "VBN" ], [ "in", "IN" ], [ "1958", "CD" ], [ ".", "." ] ], "values": [ "1958" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT campus FROM campuses WHERE YEAR = 1958", "query_toks": [ "SELECT", "campus", "FROM", "campuses", "WHERE", "YEAR", "=", "1958" ], "query_toks_no_value": [ "select", "campus", "from", "campuses", "where", "year", "=", "value" ], "question": "What are the campuses that opened in 1958?", "question_toks": [ "what", "are", "campus", "that", "opened", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], 1958.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "campuses", "that", "opened", "in", "1958", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "campus" ], [ "that" ], [ "opened" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "campus", "JJ" ], [ "that", "IN" ], [ "opened", "VBD" ], [ "in", "IN" ], [ "1958", "CD" ], [ "?", "." ] ], "values": [ "1958" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT campus FROM campuses WHERE YEAR < 1800", "query_toks": [ "SELECT", "campus", "FROM", "campuses", "WHERE", "YEAR", "<", "1800" ], "query_toks_no_value": [ "select", "campus", "from", "campuses", "where", "year", "<", "value" ], "question": "Find the name of the campuses opened before 1800.", "question_toks": [ "find", "name", "of", "campus", "opened", "before", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 5, false ], null ], 1800.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "campuses", "opened", "before", "1800", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "campus" ], [ "opened" ], [ "before" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "campus", "NN" ], [ "opened", "VBN" ], [ "before", "IN" ], [ "1800", "CD" ], [ ".", "." ] ], "values": [ "1800" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(4) A(0) C(5) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT campus FROM campuses WHERE YEAR < 1800", "query_toks": [ "SELECT", "campus", "FROM", "campuses", "WHERE", "YEAR", "<", "1800" ], "query_toks_no_value": [ "select", "campus", "from", "campuses", "where", "year", "<", "value" ], "question": "What campuses opened before 1800?", "question_toks": [ "what", "campus", "opened", "before", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 5, false ], null ], 1800.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "campuses", "opened", "before", "1800", "?" ], "question_arg": [ [ "what" ], [ "campus" ], [ "opened" ], [ "before" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "campus", "NN" ], [ "opened", "VBD" ], [ "before", "IN" ], [ "1800", "CD" ], [ "?", "." ] ], "values": [ "1800" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(4) A(0) C(5) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT campus FROM campuses WHERE YEAR >= 1935 AND YEAR <= 1939", "query_toks": [ "SELECT", "campus", "FROM", "campuses", "WHERE", "YEAR", ">", "=", "1935", "AND", "YEAR", "<", "=", "1939" ], "query_toks_no_value": [ "select", "campus", "from", "campuses", "where", "year", ">", "=", "value", "and", "year", "<", "=", "value" ], "question": "Which campus was opened between 1935 and 1939?", "question_toks": [ "which", "campus", "wa", "opened", "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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 5, false ], null ], 1935.0, null ], "and", [ false, 6, [ 0, [ 0, 5, false ], null ], 1939.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "Which", "campus", "was", "opened", "between", "1935", "and", "1939", "?" ], "question_arg": [ [ "which" ], [ "campus" ], [ "wa" ], [ "opened" ], [ "between" ], [ "year" ], [ "and" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "campus", "NN" ], [ "wa", "NN" ], [ "opened", "VBD" ], [ "between", "IN" ], [ "1935", "CD" ], [ "and", "CC" ], [ "1939", "CD" ], [ "?", "." ] ], "values": [ "1939", "1935" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(7) A(0) C(5) T(0) V(1) Filter(6) A(0) C(5) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT campus FROM campuses WHERE YEAR >= 1935 AND YEAR <= 1939", "query_toks": [ "SELECT", "campus", "FROM", "campuses", "WHERE", "YEAR", ">", "=", "1935", "AND", "YEAR", "<", "=", "1939" ], "query_toks_no_value": [ "select", "campus", "from", "campuses", "where", "year", ">", "=", "value", "and", "year", "<", "=", "value" ], "question": "What campuses opened between 1935 and 1939?", "question_toks": [ "what", "campus", "opened", "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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 5, false ], null ], 1935.0, null ], "and", [ false, 6, [ 0, [ 0, 5, false ], null ], 1939.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "campuses", "opened", "between", "1935", "and", "1939", "?" ], "question_arg": [ [ "what" ], [ "campus" ], [ "opened" ], [ "between" ], [ "year" ], [ "and" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "campus", "NN" ], [ "opened", "VBD" ], [ "between", "IN" ], [ "1935", "CD" ], [ "and", "CC" ], [ "1939", "CD" ], [ "?", "." ] ], "values": [ "1939", "1935" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(7) A(0) C(5) T(0) V(1) Filter(6) A(0) C(5) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT campus FROM campuses WHERE LOCATION = \"Northridge\" AND county = \"Los Angeles\" UNION SELECT campus FROM campuses WHERE LOCATION = \"San Francisco\" AND county = \"San Francisco\"", "query_toks": [ "SELECT", "campus", "FROM", "campuses", "WHERE", "LOCATION", "=", "``", "Northridge", "''", "AND", "county", "=", "``", "Los", "Angeles", "''", "UNION", "SELECT", "campus", "FROM", "campuses", "WHERE", "LOCATION", "=", "``", "San", "Francisco", "''", "AND", "county", "=", "``", "San", "Francisco", "''" ], "query_toks_no_value": [ "select", "campus", "from", "campuses", "where", "location", "=", "value", "and", "county", "=", "value", "union", "select", "campus", "from", "campuses", "where", "location", "=", "value", "and", "county", "=", "value" ], "question": "Find the name of the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco.", "question_toks": [ "find", "name", "of", "campus", "that", "is", "in", "northridge", ",", "los", "angeles", "or", "in", "san", "francisco", ",", "san", "francisco", "." ], "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", 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 ], "\"San Francisco\"", null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"San Francisco\"", null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Northridge\"", null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Los Angeles\"", null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "campuses", "that", "is", "in", "Northridge", ",", "Los", "Angeles", "or", "in", "San", "Francisco", ",", "San", "Francisco", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "campus" ], [ "that" ], [ "is" ], [ "in" ], [ "northridge" ], [ "," ], [ "los" ], [ "angeles" ], [ "or" ], [ "in" ], [ "san" ], [ "francisco" ], [ "," ], [ "san" ], [ "francisco" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "campus", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "in", "IN" ], [ "northridge", "NN" ], [ ",", "," ], [ "los", "JJ" ], [ "angeles", "NNS" ], [ "or", "CC" ], [ "in", "IN" ], [ "san", "JJ" ], [ "francisco", "NN" ], [ ",", "," ], [ "san", "JJ" ], [ "francisco", "NN" ], [ ".", "." ] ], "values": [ "San Francisco", "Northridge", "Los Angeles" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(3) T(0) V(1) Filter(2) A(0) C(4) T(0) V(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(3) T(0) V(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT campus FROM campuses WHERE LOCATION = \"Northridge\" AND county = \"Los Angeles\" UNION SELECT campus FROM campuses WHERE LOCATION = \"San Francisco\" AND county = \"San Francisco\"", "query_toks": [ "SELECT", "campus", "FROM", "campuses", "WHERE", "LOCATION", "=", "``", "Northridge", "''", "AND", "county", "=", "``", "Los", "Angeles", "''", "UNION", "SELECT", "campus", "FROM", "campuses", "WHERE", "LOCATION", "=", "``", "San", "Francisco", "''", "AND", "county", "=", "``", "San", "Francisco", "''" ], "query_toks_no_value": [ "select", "campus", "from", "campuses", "where", "location", "=", "value", "and", "county", "=", "value", "union", "select", "campus", "from", "campuses", "where", "location", "=", "value", "and", "county", "=", "value" ], "question": "What campuses are located in Northridge, Los Angeles or in San Francisco, San Francisco?", "question_toks": [ "what", "campus", "are", "located", "in", "northridge", ",", "los", "angeles", "or", "in", "san", "francisco", ",", "san", "francisco", "?" ], "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", 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 ], "\"San Francisco\"", null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"San Francisco\"", null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Northridge\"", null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Los Angeles\"", null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "campuses", "are", "located", "in", "Northridge", ",", "Los", "Angeles", "or", "in", "San", "Francisco", ",", "San", "Francisco", "?" ], "question_arg": [ [ "what" ], [ "campus" ], [ "are" ], [ "located" ], [ "in" ], [ "northridge" ], [ "," ], [ "los" ], [ "angeles" ], [ "or" ], [ "in" ], [ "san" ], [ "francisco" ], [ "," ], [ "san" ], [ "francisco" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "campus", "NN" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "in", "IN" ], [ "northridge", "NN" ], [ ",", "," ], [ "los", "JJ" ], [ "angeles", "NNS" ], [ "or", "CC" ], [ "in", "IN" ], [ "san", "JJ" ], [ "francisco", "NN" ], [ ",", "," ], [ "san", "JJ" ], [ "francisco", "NN" ], [ "?", "." ] ], "values": [ "San Francisco", "Northridge", "Los Angeles" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(3) T(0) V(1) Filter(2) A(0) C(4) T(0) V(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(3) T(0) V(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = \"San Jose State University\" AND T2.year = 1996", "query_toks": [ "SELECT", "campusfee", "FROM", "campuses", "AS", "T1", "JOIN", "csu_fees", "AS", "T2", "ON", "T1.id", "=", "t2.campus", "WHERE", "t1.campus", "=", "``", "San", "Jose", "State", "University", "''", "AND", "T2.year", "=", "1996" ], "query_toks_no_value": [ "select", "campusfee", "from", "campuses", "as", "t1", "join", "csu_fees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t1", ".", "campus", "=", "value", "and", "t2", ".", "year", "=", "value" ], "question": "What is the campus fee of \"San Jose State University\" in year 1996?", "question_toks": [ "what", "is", "campus", "fee", "of", "'", "san", "jose", "state", "university", "'", "in", "year", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, 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, 2, [ 0, [ 0, 2, false ], null ], "\"San Jose State University\"", null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], 1996.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "campus", "fee", "of", "``", "San", "Jose", "State", "University", "''", "in", "year", "1996", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "campus", "fee" ], [ "of" ], [ "'" ], [ "san" ], [ "jose" ], [ "state" ], [ "university" ], [ "'" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "campus", "JJ" ], [ "fee", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "san", "JJ" ], [ "jose", "NN" ], [ "state", "NN" ], [ "university", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "year", "NN" ], [ "1996", "CD" ], [ "?", "." ] ], "values": [ "1996", "San Jose State University", "Fresno State University", "Sonoma State University", "San Jose" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "csu_1", "query": "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = \"San Jose State University\" AND T2.year = 1996", "query_toks": [ "SELECT", "campusfee", "FROM", "campuses", "AS", "T1", "JOIN", "csu_fees", "AS", "T2", "ON", "T1.id", "=", "t2.campus", "WHERE", "t1.campus", "=", "``", "San", "Jose", "State", "University", "''", "AND", "T2.year", "=", "1996" ], "query_toks_no_value": [ "select", "campusfee", "from", "campuses", "as", "t1", "join", "csu_fees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t1", ".", "campus", "=", "value", "and", "t2", ".", "year", "=", "value" ], "question": "What is the campus fee for San Jose State University in 1996?", "question_toks": [ "what", "is", "campus", "fee", "for", "san", "jose", "state", "university", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, 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, 2, [ 0, [ 0, 2, false ], null ], "\"San Jose State University\"", null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], 1996.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "campus", "fee", "for", "San", "Jose", "State", "University", "in", "1996", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "campus", "fee" ], [ "for" ], [ "san" ], [ "jose" ], [ "state" ], [ "university" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "campus", "JJ" ], [ "fee", "NN" ], [ "for", "IN" ], [ "san", "JJ" ], [ "jose", "JJ" ], [ "state", "NN" ], [ "university", "NN" ], [ "in", "IN" ], [ "1996", "CD" ], [ "?", "." ] ], "values": [ "1996", "San Jose State University", "San Diego State University", "Fresno State University", "Sonoma State University", "San Jose" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "csu_1", "query": "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = \"San Francisco State University\" AND T2.year = 1996", "query_toks": [ "SELECT", "campusfee", "FROM", "campuses", "AS", "T1", "JOIN", "csu_fees", "AS", "T2", "ON", "T1.id", "=", "t2.campus", "WHERE", "t1.campus", "=", "``", "San", "Francisco", "State", "University", "''", "AND", "T2.year", "=", "1996" ], "query_toks_no_value": [ "select", "campusfee", "from", "campuses", "as", "t1", "join", "csu_fees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t1", ".", "campus", "=", "value", "and", "t2", ".", "year", "=", "value" ], "question": "What is the campus fee of \"San Francisco State University\" in year 1996?", "question_toks": [ "what", "is", "campus", "fee", "of", "'", "san", "francisco", "state", "university", "'", "in", "year", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, 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, 2, [ 0, [ 0, 2, false ], null ], "\"San Francisco State University\"", null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], 1996.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "campus", "fee", "of", "``", "San", "Francisco", "State", "University", "''", "in", "year", "1996", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "campus", "fee" ], [ "of" ], [ "'" ], [ "san" ], [ "francisco" ], [ "state" ], [ "university" ], [ "'" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "campus", "JJ" ], [ "fee", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "san", "JJ" ], [ "francisco", "NN" ], [ "state", "NN" ], [ "university", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "year", "NN" ], [ "1996", "CD" ], [ "?", "." ] ], "values": [ "San Francisco State University", "1996", "San Diego State University", "Fresno State University", "San Francisco" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "csu_1", "query": "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = \"San Francisco State University\" AND T2.year = 1996", "query_toks": [ "SELECT", "campusfee", "FROM", "campuses", "AS", "T1", "JOIN", "csu_fees", "AS", "T2", "ON", "T1.id", "=", "t2.campus", "WHERE", "t1.campus", "=", "``", "San", "Francisco", "State", "University", "''", "AND", "T2.year", "=", "1996" ], "query_toks_no_value": [ "select", "campusfee", "from", "campuses", "as", "t1", "join", "csu_fees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t1", ".", "campus", "=", "value", "and", "t2", ".", "year", "=", "value" ], "question": "What is the campus fee for San Francisco State University in 1996?", "question_toks": [ "what", "is", "campus", "fee", "for", "san", "francisco", "state", "university", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, 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, 2, [ 0, [ 0, 2, false ], null ], "\"San Francisco State University\"", null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], 1996.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "campus", "fee", "for", "San", "Francisco", "State", "University", "in", "1996", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "campus", "fee" ], [ "for" ], [ "san" ], [ "francisco" ], [ "state" ], [ "university" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "campus", "JJ" ], [ "fee", "NN" ], [ "for", "IN" ], [ "san", "JJ" ], [ "francisco", "JJ" ], [ "state", "NN" ], [ "university", "NN" ], [ "in", "IN" ], [ "1996", "CD" ], [ "?", "." ] ], "values": [ "San Francisco State University", "1996", "San Diego State University", "Fresno State University", "San Francisco" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "csu_1", "query": "SELECT count(*) FROM csu_fees WHERE campusfee > (SELECT avg(campusfee) FROM csu_fees)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "csu_fees", "WHERE", "campusfee", ">", "(", "SELECT", "avg", "(", "campusfee", ")", "FROM", "csu_fees", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "csu_fees", "where", "campusfee", ">", "(", "select", "avg", "(", "campusfee", ")", "from", "csu_fees", ")" ], "question": "Find the count of universities whose campus fee is greater than the average campus fee.", "question_toks": [ "find", "count", "of", "university", "whose", "campus", "fee", "is", "greater", "than", "average", "campus", "fee", "." ], "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, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "Find", "the", "count", "of", "universities", "whose", "campus", "fee", "is", "greater", "than", "the", "average", "campus", "fee", "." ], "question_arg": [ [ "find" ], [ "count" ], [ "of" ], [ "university" ], [ "whose" ], [ "campus", "fee" ], [ "is" ], [ "greater" ], [ "than" ], [ "average" ], [ "campus", "fee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "count", "NN" ], [ "of", "IN" ], [ "university", "NN" ], [ "whose", "WP$" ], [ "campus", "NN" ], [ "fee", "NN" ], [ "is", "VBZ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "campus", "JJ" ], [ "fee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(13) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(5) C(6) T(1)" }, { "db_id": "csu_1", "query": "SELECT count(*) FROM csu_fees WHERE campusfee > (SELECT avg(campusfee) FROM csu_fees)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "csu_fees", "WHERE", "campusfee", ">", "(", "SELECT", "avg", "(", "campusfee", ")", "FROM", "csu_fees", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "csu_fees", "where", "campusfee", ">", "(", "select", "avg", "(", "campusfee", ")", "from", "csu_fees", ")" ], "question": "How many universities have a campus fee higher than average?", "question_toks": [ "how", "many", "university", "have", "a", "campus", "fee", "higher", "than", "average", "?" ], "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, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "universities", "have", "a", "campus", "fee", "higher", "than", "average", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "university" ], [ "have" ], [ "a" ], [ "campus", "fee" ], [ "higher" ], [ "than" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "university", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "campus", "NN" ], [ "fee", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(13) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(5) C(6) T(1)" }, { "db_id": "csu_1", "query": "SELECT count(*) FROM csu_fees WHERE campusfee > (SELECT avg(campusfee) FROM csu_fees)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "csu_fees", "WHERE", "campusfee", ">", "(", "SELECT", "avg", "(", "campusfee", ")", "FROM", "csu_fees", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "csu_fees", "where", "campusfee", ">", "(", "select", "avg", "(", "campusfee", ")", "from", "csu_fees", ")" ], "question": "Find the count of universities whose campus fee is greater than the average campus fee.", "question_toks": [ "find", "count", "of", "university", "whose", "campus", "fee", "is", "greater", "than", "average", "campus", "fee", "." ], "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, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "Find", "the", "count", "of", "universities", "whose", "campus", "fee", "is", "greater", "than", "the", "average", "campus", "fee", "." ], "question_arg": [ [ "find" ], [ "count" ], [ "of" ], [ "university" ], [ "whose" ], [ "campus", "fee" ], [ "is" ], [ "greater" ], [ "than" ], [ "average" ], [ "campus", "fee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "count", "NN" ], [ "of", "IN" ], [ "university", "NN" ], [ "whose", "WP$" ], [ "campus", "NN" ], [ "fee", "NN" ], [ "is", "VBZ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "campus", "JJ" ], [ "fee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(13) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(5) C(6) T(1)" }, { "db_id": "csu_1", "query": "SELECT count(*) FROM csu_fees WHERE campusfee > (SELECT avg(campusfee) FROM csu_fees)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "csu_fees", "WHERE", "campusfee", ">", "(", "SELECT", "avg", "(", "campusfee", ")", "FROM", "csu_fees", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "csu_fees", "where", "campusfee", ">", "(", "select", "avg", "(", "campusfee", ")", "from", "csu_fees", ")" ], "question": "How many universities have a campus fee greater than the average?", "question_toks": [ "how", "many", "university", "have", "a", "campus", "fee", "greater", "than", "average", "?" ], "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, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "universities", "have", "a", "campus", "fee", "greater", "than", "the", "average", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "university" ], [ "have" ], [ "a" ], [ "campus", "fee" ], [ "greater" ], [ "than" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "university", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "campus", "NN" ], [ "fee", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(13) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(5) C(6) T(1)" }, { "db_id": "csu_1", "query": "SELECT campus FROM campuses WHERE county = \"Los Angeles\" AND YEAR > 1950", "query_toks": [ "SELECT", "campus", "FROM", "campuses", "WHERE", "county", "=", "``", "Los", "Angeles", "''", "AND", "YEAR", ">", "1950" ], "query_toks_no_value": [ "select", "campus", "from", "campuses", "where", "county", "=", "value", "and", "year", ">", "value" ], "question": "Which university is in Los Angeles county and opened after 1950?", "question_toks": [ "which", "university", "is", "in", "los", "angeles", "county", "and", "opened", "after", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Los Angeles\"", null ], "and", [ false, 3, [ 0, [ 0, 5, false ], null ], 1950.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "Which", "university", "is", "in", "Los", "Angeles", "county", "and", "opened", "after", "1950", "?" ], "question_arg": [ [ "which" ], [ "university" ], [ "is" ], [ "in" ], [ "los" ], [ "angeles" ], [ "county" ], [ "and" ], [ "opened" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "university", "NN" ], [ "is", "VBZ" ], [ "in", "IN" ], [ "los", "JJ" ], [ "angeles", "NNS" ], [ "county", "NN" ], [ "and", "CC" ], [ "opened", "VBD" ], [ "after", "IN" ], [ "1950", "CD" ], [ "?", "." ] ], "values": [ "1950", "Los Angeles" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(4) T(0) V(1) Filter(5) A(0) C(5) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT campus FROM campuses WHERE county = \"Los Angeles\" AND YEAR > 1950", "query_toks": [ "SELECT", "campus", "FROM", "campuses", "WHERE", "county", "=", "``", "Los", "Angeles", "''", "AND", "YEAR", ">", "1950" ], "query_toks_no_value": [ "select", "campus", "from", "campuses", "where", "county", "=", "value", "and", "year", ">", "value" ], "question": "What campuses are located in Los Angeles county and opened after 1950?", "question_toks": [ "what", "campus", "are", "located", "in", "los", "angeles", "county", "and", "opened", "after", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Los Angeles\"", null ], "and", [ false, 3, [ 0, [ 0, 5, false ], null ], 1950.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "campuses", "are", "located", "in", "Los", "Angeles", "county", "and", "opened", "after", "1950", "?" ], "question_arg": [ [ "what" ], [ "campus" ], [ "are" ], [ "located" ], [ "in" ], [ "los" ], [ "angeles" ], [ "county" ], [ "and" ], [ "opened" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "campus", "NN" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "in", "IN" ], [ "los", "JJ" ], [ "angeles", "NNS" ], [ "county", "NN" ], [ "and", "CC" ], [ "opened", "VBD" ], [ "after", "IN" ], [ "1950", "CD" ], [ "?", "." ] ], "values": [ "1950", "Los Angeles" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(4) T(0) V(1) Filter(5) A(0) C(5) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY sum(degrees) DESC LIMIT 1", "query_toks": [ "SELECT", "YEAR", "FROM", "degrees", "GROUP", "BY", "YEAR", "ORDER", "BY", "sum", "(", "degrees", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "year", "from", "degrees", "group", "by", "year", "order", "by", "sum", "(", "degrees", ")", "desc", "limit", "value" ], "question": "Which year has the most degrees conferred?", "question_toks": [ "which", "year", "ha", "most", "degree", "conferred", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "Which", "year", "has", "the", "most", "degrees", "conferred", "?" ], "question_arg": [ [ "which" ], [ "year" ], [ "ha" ], [ "most" ], [ "degree" ], [ "conferred" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "year", "NN" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "degree", "JJ" ], [ "conferred", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(2) Sup(0) A(4) C(7) T(2)" }, { "db_id": "csu_1", "query": "SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY sum(degrees) DESC LIMIT 1", "query_toks": [ "SELECT", "YEAR", "FROM", "degrees", "GROUP", "BY", "YEAR", "ORDER", "BY", "sum", "(", "degrees", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "year", "from", "degrees", "group", "by", "year", "order", "by", "sum", "(", "degrees", ")", "desc", "limit", "value" ], "question": "In what year was the most degrees conferred?", "question_toks": [ "in", "what", "year", "wa", "most", "degree", "conferred", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "In", "what", "year", "was", "the", "most", "degrees", "conferred", "?" ], "question_arg": [ [ "in" ], [ "what" ], [ "year" ], [ "wa" ], [ "most" ], [ "degree" ], [ "conferred" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "what", "WP" ], [ "year", "NN" ], [ "wa", "VBZ" ], [ "most", "JJS" ], [ "degree", "JJ" ], [ "conferred", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(2) Sup(0) A(4) C(7) T(2)" }, { "db_id": "csu_1", "query": "SELECT campus FROM degrees GROUP BY campus ORDER BY sum(degrees) DESC LIMIT 1", "query_toks": [ "SELECT", "campus", "FROM", "degrees", "GROUP", "BY", "campus", "ORDER", "BY", "sum", "(", "degrees", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "campus", "from", "degrees", "group", "by", "campus", "order", "by", "sum", "(", "degrees", ")", "desc", "limit", "value" ], "question": "Which campus has the most degrees conferred in all times?", "question_toks": [ "which", "campus", "ha", "most", "degree", "conferred", "in", "all", "time", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "Which", "campus", "has", "the", "most", "degrees", "conferred", "in", "all", "times", "?" ], "question_arg": [ [ "which" ], [ "campus" ], [ "ha" ], [ "most" ], [ "degree" ], [ "conferred" ], [ "in" ], [ "all" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "campus", "VBP" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "degree", "JJ" ], [ "conferred", "VBN" ], [ "in", "IN" ], [ "all", "DT" ], [ "time", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(2) Sup(0) A(4) C(7) T(2)" }, { "db_id": "csu_1", "query": "SELECT campus FROM degrees GROUP BY campus ORDER BY sum(degrees) DESC LIMIT 1", "query_toks": [ "SELECT", "campus", "FROM", "degrees", "GROUP", "BY", "campus", "ORDER", "BY", "sum", "(", "degrees", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "campus", "from", "degrees", "group", "by", "campus", "order", "by", "sum", "(", "degrees", ")", "desc", "limit", "value" ], "question": "What campus has the most degrees conferrred over its entire existence?", "question_toks": [ "what", "campus", "ha", "most", "degree", "conferrred", "over", "it", "entire", "existence", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "campus", "has", "the", "most", "degrees", "conferrred", "over", "its", "entire", "existence", "?" ], "question_arg": [ [ "what" ], [ "campus" ], [ "ha" ], [ "most" ], [ "degree" ], [ "conferrred" ], [ "over" ], [ "it" ], [ "entire" ], [ "existence" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "campus", "NN" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "degree", "JJ" ], [ "conferrred", "VBN" ], [ "over", "IN" ], [ "it", "PRP" ], [ "entire", "JJ" ], [ "existence", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(2) Sup(0) A(4) C(7) T(2)" }, { "db_id": "csu_1", "query": "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2003 ORDER BY T2.faculty DESC LIMIT 1", "query_toks": [ "SELECT", "T1.campus", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "T2.campus", "WHERE", "T2.year", "=", "2003", "ORDER", "BY", "T2.faculty", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "campus", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", "=", "value", "order", "by", "t2", ".", "faculty", "desc", "limit", "value" ], "question": "Which campus has the most faculties in year 2003?", "question_toks": [ "which", "campus", "ha", "most", "faculty", "in", "year", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 23, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 2003.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "Which", "campus", "has", "the", "most", "faculties", "in", "year", "2003", "?" ], "question_arg": [ [ "which" ], [ "campus" ], [ "ha" ], [ "most" ], [ "faculty" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "campus", "VBP" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "faculty", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2003", "CD" ], [ "?", "." ] ], "values": [ "2003" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(13) T(5) Filter(2) A(0) C(5) T(5) V(0)" }, { "db_id": "csu_1", "query": "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2003 ORDER BY T2.faculty DESC LIMIT 1", "query_toks": [ "SELECT", "T1.campus", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "T2.campus", "WHERE", "T2.year", "=", "2003", "ORDER", "BY", "T2.faculty", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "campus", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", "=", "value", "order", "by", "t2", ".", "faculty", "desc", "limit", "value" ], "question": "What campus has the most faculties in 2003?", "question_toks": [ "what", "campus", "ha", "most", "faculty", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 23, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 2003.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "campus", "has", "the", "most", "faculties", "in", "2003", "?" ], "question_arg": [ [ "what" ], [ "campus" ], [ "ha" ], [ "most" ], [ "faculty" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "campus", "NN" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "faculty", "NN" ], [ "in", "IN" ], [ "2003", "CD" ], [ "?", "." ] ], "values": [ "2003" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(13) T(5) Filter(2) A(0) C(5) T(5) V(0)" }, { "db_id": "csu_1", "query": "SELECT avg(campusfee) FROM csu_fees WHERE YEAR = 1996", "query_toks": [ "SELECT", "avg", "(", "campusfee", ")", "FROM", "csu_fees", "WHERE", "YEAR", "=", "1996" ], "query_toks_no_value": [ "select", "avg", "(", "campusfee", ")", "from", "csu_fees", "where", "year", "=", "value" ], "question": "Find the average fee on a CSU campus in 1996", "question_toks": [ "find", "average", "fee", "on", "a", "csu", "campus", "in", "year" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], 1996.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "Find", "the", "average", "fee", "on", "a", "CSU", "campus", "in", "1996" ], "question_arg": [ [ "find" ], [ "average" ], [ "fee" ], [ "on" ], [ "a" ], [ "csu" ], [ "campus" ], [ "in" ], [ "year" ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "fee", "NN" ], [ "on", "IN" ], [ "a", "DT" ], [ "csu", "NN" ], [ "campus", "NN" ], [ "in", "IN" ], [ "1996", "CD" ] ], "values": [ "1996" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(6) T(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "csu_1", "query": "SELECT avg(campusfee) FROM csu_fees WHERE YEAR = 1996", "query_toks": [ "SELECT", "avg", "(", "campusfee", ")", "FROM", "csu_fees", "WHERE", "YEAR", "=", "1996" ], "query_toks_no_value": [ "select", "avg", "(", "campusfee", ")", "from", "csu_fees", "where", "year", "=", "value" ], "question": "What is the average fee for a CSU campus in the year of 1996?", "question_toks": [ "what", "is", "average", "fee", "for", "a", "csu", "campus", "in", "year", "of", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], 1996.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "average", "fee", "for", "a", "CSU", "campus", "in", "the", "year", "of", "1996", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "fee" ], [ "for" ], [ "a" ], [ "csu" ], [ "campus" ], [ "in" ], [ "year" ], [ "of" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "fee", "NN" ], [ "for", "IN" ], [ "a", "DT" ], [ "csu", "NN" ], [ "campus", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "1996", "CD" ], [ "?", "." ] ], "values": [ "1996" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(6) T(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "csu_1", "query": "SELECT avg(campusfee) FROM csu_fees WHERE YEAR = 2005", "query_toks": [ "SELECT", "avg", "(", "campusfee", ")", "FROM", "csu_fees", "WHERE", "YEAR", "=", "2005" ], "query_toks_no_value": [ "select", "avg", "(", "campusfee", ")", "from", "csu_fees", "where", "year", "=", "value" ], "question": "What is the average fee on a CSU campus in 2005?", "question_toks": [ "what", "is", "average", "fee", "on", "a", "csu", "campus", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], 2005.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "average", "fee", "on", "a", "CSU", "campus", "in", "2005", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "fee" ], [ "on" ], [ "a" ], [ "csu" ], [ "campus" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "fee", "NN" ], [ "on", "IN" ], [ "a", "DT" ], [ "csu", "NN" ], [ "campus", "NN" ], [ "in", "IN" ], [ "2005", "CD" ], [ "?", "." ] ], "values": [ "2005" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(6) T(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "csu_1", "query": "SELECT avg(campusfee) FROM csu_fees WHERE YEAR = 2005", "query_toks": [ "SELECT", "avg", "(", "campusfee", ")", "FROM", "csu_fees", "WHERE", "YEAR", "=", "2005" ], "query_toks_no_value": [ "select", "avg", "(", "campusfee", ")", "from", "csu_fees", "where", "year", "=", "value" ], "question": "What is the average fee for a CSU campus in the year of 2005?", "question_toks": [ "what", "is", "average", "fee", "for", "a", "csu", "campus", "in", "year", "of", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], 2005.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "average", "fee", "for", "a", "CSU", "campus", "in", "the", "year", "of", "2005", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "fee" ], [ "for" ], [ "a" ], [ "csu" ], [ "campus" ], [ "in" ], [ "year" ], [ "of" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "fee", "NN" ], [ "for", "IN" ], [ "a", "DT" ], [ "csu", "NN" ], [ "campus", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "2005", "CD" ], [ "?", "." ] ], "values": [ "2005" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(6) T(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "csu_1", "query": "SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T2.year >= 1998 AND T2.year <= 2002 GROUP BY T1.campus", "query_toks": [ "SELECT", "T1.campus", ",", "sum", "(", "T2.degrees", ")", "FROM", "campuses", "AS", "T1", "JOIN", "degrees", "AS", "T2", "ON", "T1.id", "=", "T2.campus", "WHERE", "T2.year", ">", "=", "1998", "AND", "T2.year", "<", "=", "2002", "GROUP", "BY", "T1.campus" ], "query_toks_no_value": [ "select", "t1", ".", "campus", ",", "sum", "(", "t2", ".", "degrees", ")", "from", "campuses", "as", "t1", "join", "degrees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", ">", "=", "value", "and", "t2", ".", "year", "<", "=", "value", "group", "by", "t1", ".", "campus" ], "question": "report the total number of degrees granted between 1998 and 2002.", "question_toks": [ "report", "total", "number", "of", "degree", "granted", "between", "year", "and", "year", "." ], "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 ] ], [ 4, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 9, false ], null ], 1998.0, null ], "and", [ false, 6, [ 0, [ 0, 9, false ], null ], 2002.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "report", "the", "total", "number", "of", "degrees", "granted", "between", "1998", "and", "2002", "." ], "question_arg": [ [ "report" ], [ "total" ], [ "number" ], [ "of" ], [ "degree" ], [ "granted" ], [ "between" ], [ "year" ], [ "and" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "report", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "degree", "NN" ], [ "granted", "VBN" ], [ "between", "IN" ], [ "1998", "CD" ], [ "and", "CC" ], [ "2002", "CD" ], [ ".", "." ] ], "values": [ "2002", "1998" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(4) C(7) T(2) Filter(0) Filter(7) A(0) C(5) T(2) V(1) Filter(6) A(0) C(5) T(2) V(0)" }, { "db_id": "csu_1", "query": "SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T2.year >= 1998 AND T2.year <= 2002 GROUP BY T1.campus", "query_toks": [ "SELECT", "T1.campus", ",", "sum", "(", "T2.degrees", ")", "FROM", "campuses", "AS", "T1", "JOIN", "degrees", "AS", "T2", "ON", "T1.id", "=", "T2.campus", "WHERE", "T2.year", ">", "=", "1998", "AND", "T2.year", "<", "=", "2002", "GROUP", "BY", "T1.campus" ], "query_toks_no_value": [ "select", "t1", ".", "campus", ",", "sum", "(", "t2", ".", "degrees", ")", "from", "campuses", "as", "t1", "join", "degrees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", ">", "=", "value", "and", "t2", ".", "year", "<", "=", "value", "group", "by", "t1", ".", "campus" ], "question": "how many degrees were conferred between 1998 and 2002?", "question_toks": [ "how", "many", "degree", "were", "conferred", "between", "year", "and", "year", "?" ], "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 ] ], [ 4, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 9, false ], null ], 1998.0, null ], "and", [ false, 6, [ 0, [ 0, 9, false ], null ], 2002.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "how", "many", "degrees", "were", "conferred", "between", "1998", "and", "2002", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "degree" ], [ "were" ], [ "conferred" ], [ "between" ], [ "year" ], [ "and" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "degree", "NN" ], [ "were", "VBD" ], [ "conferred", "VBN" ], [ "between", "IN" ], [ "1998", "CD" ], [ "and", "CC" ], [ "2002", "CD" ], [ "?", "." ] ], "values": [ "2002", "1998" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(4) C(7) T(2) Filter(0) Filter(7) A(0) C(5) T(2) V(1) Filter(6) A(0) C(5) T(2) V(0)" }, { "db_id": "csu_1", "query": "SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = \"Orange\" AND T2.year >= 2000 GROUP BY T1.campus", "query_toks": [ "SELECT", "T1.campus", ",", "sum", "(", "T2.degrees", ")", "FROM", "campuses", "AS", "T1", "JOIN", "degrees", "AS", "T2", "ON", "T1.id", "=", "T2.campus", "WHERE", "T1.county", "=", "``", "Orange", "''", "AND", "T2.year", ">", "=", "2000", "GROUP", "BY", "T1.campus" ], "query_toks_no_value": [ "select", "t1", ".", "campus", ",", "sum", "(", "t2", ".", "degrees", ")", "from", "campuses", "as", "t1", "join", "degrees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t1", ".", "county", "=", "value", "and", "t2", ".", "year", ">", "=", "value", "group", "by", "t1", ".", "campus" ], "question": "For each Orange county campus, report the number of degrees granted after 2000.", "question_toks": [ "for", "each", "orange", "county", "campus", ",", "report", "number", "of", "degree", "granted", "after", "year", "." ], "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 ] ], [ 4, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Orange\"", null ], "and", [ false, 5, [ 0, [ 0, 9, false ], null ], 2000.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "For", "each", "Orange", "county", "campus", ",", "report", "the", "number", "of", "degrees", "granted", "after", "2000", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "orange" ], [ "county" ], [ "campus" ], [ "," ], [ "report" ], [ "number" ], [ "of" ], [ "degree" ], [ "granted" ], [ "after" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "orange", "NN" ], [ "county", "NN" ], [ "campus", "NN" ], [ ",", "," ], [ "report", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "degree", "NN" ], [ "granted", "VBN" ], [ "after", "IN" ], [ "2000", "CD" ], [ ".", "." ] ], "values": [ "2000", "Orange" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(4) C(7) T(2) Filter(0) Filter(2) A(0) C(4) T(0) V(1) Filter(7) A(0) C(5) T(2) V(0)" }, { "db_id": "csu_1", "query": "SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = \"Orange\" AND T2.year >= 2000 GROUP BY T1.campus", "query_toks": [ "SELECT", "T1.campus", ",", "sum", "(", "T2.degrees", ")", "FROM", "campuses", "AS", "T1", "JOIN", "degrees", "AS", "T2", "ON", "T1.id", "=", "T2.campus", "WHERE", "T1.county", "=", "``", "Orange", "''", "AND", "T2.year", ">", "=", "2000", "GROUP", "BY", "T1.campus" ], "query_toks_no_value": [ "select", "t1", ".", "campus", ",", "sum", "(", "t2", ".", "degrees", ")", "from", "campuses", "as", "t1", "join", "degrees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t1", ".", "county", "=", "value", "and", "t2", ".", "year", ">", "=", "value", "group", "by", "t1", ".", "campus" ], "question": "What is the total number of degrees granted after 2000 for each Orange county campus?", "question_toks": [ "what", "is", "total", "number", "of", "degree", "granted", "after", "year", "for", "each", "orange", "county", "campus", "?" ], "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 ] ], [ 4, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Orange\"", null ], "and", [ false, 5, [ 0, [ 0, 9, false ], null ], 2000.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "degrees", "granted", "after", "2000", "for", "each", "Orange", "county", "campus", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "degree" ], [ "granted" ], [ "after" ], [ "year" ], [ "for" ], [ "each" ], [ "orange" ], [ "county" ], [ "campus" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "degree", "NN" ], [ "granted", "VBN" ], [ "after", "IN" ], [ "2000", "CD" ], [ "for", "IN" ], [ "each", "DT" ], [ "orange", "NN" ], [ "county", "NN" ], [ "campus", "NN" ], [ "?", "." ] ], "values": [ "2000", "Orange" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(4) C(7) T(2) Filter(0) Filter(2) A(0) C(4) T(0) V(1) Filter(7) A(0) C(5) T(2) V(0)" }, { "db_id": "csu_1", "query": "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT max(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = \"Orange\")", "query_toks": [ "SELECT", "T1.campus", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "T2.campus", "WHERE", "T2.year", "=", "2002", "AND", "faculty", ">", "(", "SELECT", "max", "(", "faculty", ")", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "T2.campus", "WHERE", "T2.year", "=", "2002", "AND", "T1.county", "=", "``", "Orange", "''", ")" ], "query_toks_no_value": [ "select", "t1", ".", "campus", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", "=", "value", "and", "faculty", ">", "(", "select", "max", "(", "faculty", ")", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", "=", "value", "and", "t1", ".", "county", "=", "value", ")" ], "question": "Find the names of the campus which has more faculties in 2002 than every campus in Orange county.", "question_toks": [ "find", "name", "of", "campus", "which", "ha", "more", "faculty", "in", "year", "than", "every", "campus", "in", "orange", "county", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 2002.0, null ], "and", [ false, 3, [ 0, [ 0, 23, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 2002.0, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Orange\"", null ] ] }, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "campus", "which", "has", "more", "faculties", "in", "2002", "than", "every", "campus", "in", "Orange", "county", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "campus" ], [ "which" ], [ "ha" ], [ "more" ], [ "faculty" ], [ "in" ], [ "year" ], [ "than" ], [ "every" ], [ "campus" ], [ "in" ], [ "orange" ], [ "county" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "campus", "NN" ], [ "which", "WDT" ], [ "ha", "VBZ" ], [ "more", "JJR" ], [ "faculty", "NN" ], [ "in", "IN" ], [ "2002", "CD" ], [ "than", "IN" ], [ "every", "DT" ], [ "campus", "NN" ], [ "in", "IN" ], [ "orange", "JJ" ], [ "county", "NN" ], [ ".", "." ] ], "values": [ "Orange", "2002" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(5) T(5) V(1) Filter(13) A(0) C(13) T(5) Root(3) Sel(0) N(0) A(1) C(13) T(5) Filter(0) Filter(2) A(0) C(5) T(5) V(1) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT max(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = \"Orange\")", "query_toks": [ "SELECT", "T1.campus", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "T2.campus", "WHERE", "T2.year", "=", "2002", "AND", "faculty", ">", "(", "SELECT", "max", "(", "faculty", ")", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "T2.campus", "WHERE", "T2.year", "=", "2002", "AND", "T1.county", "=", "``", "Orange", "''", ")" ], "query_toks_no_value": [ "select", "t1", ".", "campus", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", "=", "value", "and", "faculty", ">", "(", "select", "max", "(", "faculty", ")", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", "=", "value", "and", "t1", ".", "county", "=", "value", ")" ], "question": "What are the names of the campus that have more faculties in 2002 than the maximum number in Orange county?", "question_toks": [ "what", "are", "name", "of", "campus", "that", "have", "more", "faculty", "in", "year", "than", "maximum", "number", "in", "orange", "county", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 2002.0, null ], "and", [ false, 3, [ 0, [ 0, 23, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 2002.0, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Orange\"", null ] ] }, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "campus", "that", "have", "more", "faculties", "in", "2002", "than", "the", "maximum", "number", "in", "Orange", "county", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "campus" ], [ "that" ], [ "have" ], [ "more" ], [ "faculty" ], [ "in" ], [ "year" ], [ "than" ], [ "maximum" ], [ "number" ], [ "in" ], [ "orange" ], [ "county" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "campus", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "faculty", "NN" ], [ "in", "IN" ], [ "2002", "CD" ], [ "than", "IN" ], [ "maximum", "JJ" ], [ "number", "NN" ], [ "in", "IN" ], [ "orange", "JJ" ], [ "county", "NN" ], [ "?", "." ] ], "values": [ "Orange", "2002" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(5) T(5) V(1) Filter(13) A(0) C(13) T(5) Root(3) Sel(0) N(0) A(1) C(13) T(5) Filter(0) Filter(2) A(0) C(5) T(5) V(1) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AND totalenrollment_ay > 400 AND FTE_AY > 200", "query_toks": [ "SELECT", "T1.campus", "FROM", "campuses", "AS", "t1", "JOIN", "enrollments", "AS", "t2", "ON", "t1.id", "=", "t2.campus", "WHERE", "t2.year", "=", "1956", "AND", "totalenrollment_ay", ">", "400", "AND", "FTE_AY", ">", "200" ], "query_toks_no_value": [ "select", "t1", ".", "campus", "from", "campuses", "as", "t1", "join", "enrollments", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", "=", "value", "and", "totalenrollment_ay", ">", "value", "and", "fte_ay", ">", "value" ], "question": "What campus had more than 400 total enrollment but more than 200 full time enrollment in year 1956?", "question_toks": [ "what", "campus", "had", "more", "than", "400", "total", "enrollment", "but", "more", "than", "200", "full", "time", "enrollment", "in", "year", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, 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, 2, [ 0, [ 0, 18, false ], null ], 1956.0, null ], "and", [ false, 3, [ 0, [ 0, 19, false ], null ], 400.0, null ], "and", [ false, 3, [ 0, [ 0, 20, false ], null ], 200.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "campus", "had", "more", "than", "400", "total", "enrollment", "but", "more", "than", "200", "full", "time", "enrollment", "in", "year", "1956", "?" ], "question_arg": [ [ "what" ], [ "campus" ], [ "had" ], [ "more" ], [ "than" ], [ "400" ], [ "total" ], [ "enrollment" ], [ "but" ], [ "more" ], [ "than" ], [ "200" ], [ "full" ], [ "time" ], [ "enrollment" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "campus", "NN" ], [ "had", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "400", "CD" ], [ "total", "JJ" ], [ "enrollment", "NN" ], [ "but", "CC" ], [ "more", "JJR" ], [ "than", "IN" ], [ "200", "CD" ], [ "full", "JJ" ], [ "time", "NN" ], [ "enrollment", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "1956", "CD" ], [ "?", "." ] ], "values": [ "200", "400", "1956" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(5) T(4) V(2) Filter(0) Filter(5) A(0) C(11) T(4) V(1) Filter(5) A(0) C(12) T(4) V(0)" }, { "db_id": "csu_1", "query": "SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AND totalenrollment_ay > 400 AND FTE_AY > 200", "query_toks": [ "SELECT", "T1.campus", "FROM", "campuses", "AS", "t1", "JOIN", "enrollments", "AS", "t2", "ON", "t1.id", "=", "t2.campus", "WHERE", "t2.year", "=", "1956", "AND", "totalenrollment_ay", ">", "400", "AND", "FTE_AY", ">", "200" ], "query_toks_no_value": [ "select", "t1", ".", "campus", "from", "campuses", "as", "t1", "join", "enrollments", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", "=", "value", "and", "totalenrollment_ay", ">", "value", "and", "fte_ay", ">", "value" ], "question": "What campus started in year 1956, has more than 200 full time students, and more than 400 students enrolled?", "question_toks": [ "what", "campus", "started", "in", "year", "year", ",", "ha", "more", "than", "200", "full", "time", "student", ",", "and", "more", "than", "400", "student", "enrolled", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, 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, 2, [ 0, [ 0, 18, false ], null ], 1956.0, null ], "and", [ false, 3, [ 0, [ 0, 19, false ], null ], 400.0, null ], "and", [ false, 3, [ 0, [ 0, 20, false ], null ], 200.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "campus", "started", "in", "year", "1956", ",", "has", "more", "than", "200", "full", "time", "students", ",", "and", "more", "than", "400", "students", "enrolled", "?" ], "question_arg": [ [ "what" ], [ "campus" ], [ "started" ], [ "in" ], [ "year" ], [ "year" ], [ "," ], [ "ha" ], [ "more" ], [ "than" ], [ "200" ], [ "full" ], [ "time" ], [ "student" ], [ "," ], [ "and" ], [ "more" ], [ "than" ], [ "400" ], [ "student" ], [ "enrolled" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "campus", "NN" ], [ "started", "VBD" ], [ "in", "IN" ], [ "year", "NN" ], [ "1956", "CD" ], [ ",", "," ], [ "ha", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "200", "CD" ], [ "full", "JJ" ], [ "time", "NN" ], [ "student", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "more", "JJR" ], [ "than", "IN" ], [ "400", "CD" ], [ "student", "NN" ], [ "enrolled", "VBN" ], [ "?", "." ] ], "values": [ "200", "400", "1956" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(5) T(4) V(2) Filter(0) Filter(5) A(0) C(11) T(4) V(1) Filter(5) A(0) C(12) T(4) V(0)" }, { "db_id": "csu_1", "query": "SELECT count(*) FROM campuses WHERE county = \"Los Angeles\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "campuses", "WHERE", "county", "=", "``", "Los", "Angeles", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "campuses", "where", "county", "=", "value" ], "question": "How many campuses are there in Los Angeles county?", "question_toks": [ "how", "many", "campus", "are", "there", "in", "los", "angeles", "county", "?" ], "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 ], "\"Los Angeles\"", null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "campuses", "are", "there", "in", "Los", "Angeles", "county", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "campus" ], [ "are" ], [ "there" ], [ "in" ], [ "los" ], [ "angeles" ], [ "county" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "campus", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "los", "NN" ], [ "angeles", "NNS" ], [ "county", "NN" ], [ "?", "." ] ], "values": [ "Los Angeles" ], "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": "csu_1", "query": "SELECT count(*) FROM campuses WHERE county = \"Los Angeles\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "campuses", "WHERE", "county", "=", "``", "Los", "Angeles", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "campuses", "where", "county", "=", "value" ], "question": "How many campuses exist are in the county of LA?", "question_toks": [ "how", "many", "campus", "exist", "are", "in", "county", "of", "la", "?" ], "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 ], "\"Los Angeles\"", null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "campuses", "exist", "are", "in", "the", "county", "of", "LA", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "campus" ], [ "exist" ], [ "are" ], [ "in" ], [ "county" ], [ "of" ], [ "la" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "campus", "NNS" ], [ "exist", "VBP" ], [ "are", "VBP" ], [ "in", "IN" ], [ "county", "NN" ], [ "of", "IN" ], [ "la", "NN" ], [ "?", "." ] ], "values": [ "Los Angeles" ], "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": "csu_1", "query": "SELECT campus FROM campuses WHERE county = \"Los Angeles\"", "query_toks": [ "SELECT", "campus", "FROM", "campuses", "WHERE", "county", "=", "``", "Los", "Angeles", "''" ], "query_toks_no_value": [ "select", "campus", "from", "campuses", "where", "county", "=", "value" ], "question": "List the campuses in Los Angeles county.", "question_toks": [ "list", "campus", "in", "los", "angeles", "county", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Los Angeles\"", null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "List", "the", "campuses", "in", "Los", "Angeles", "county", "." ], "question_arg": [ [ "list" ], [ "campus" ], [ "in" ], [ "los" ], [ "angeles" ], [ "county" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "campus", "NN" ], [ "in", "IN" ], [ "los", "JJ" ], [ "angeles", "NNS" ], [ "county", "NN" ], [ ".", "." ] ], "values": [ "Los Angeles" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT campus FROM campuses WHERE county = \"Los Angeles\"", "query_toks": [ "SELECT", "campus", "FROM", "campuses", "WHERE", "county", "=", "``", "Los", "Angeles", "''" ], "query_toks_no_value": [ "select", "campus", "from", "campuses", "where", "county", "=", "value" ], "question": "What campuses are in Los Angeles county?", "question_toks": [ "what", "campus", "are", "in", "los", "angeles", "county", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Los Angeles\"", null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "campuses", "are", "in", "Los", "Angeles", "county", "?" ], "question_arg": [ [ "what" ], [ "campus" ], [ "are" ], [ "in" ], [ "los" ], [ "angeles" ], [ "county" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "campus", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "los", "JJ" ], [ "angeles", "NNS" ], [ "county", "NN" ], [ "?", "." ] ], "values": [ "Los Angeles" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = \"San Jose State University\" AND t2.year = 2000", "query_toks": [ "SELECT", "degrees", "FROM", "campuses", "AS", "T1", "JOIN", "degrees", "AS", "T2", "ON", "t1.id", "=", "t2.campus", "WHERE", "t1.campus", "=", "``", "San", "Jose", "State", "University", "''", "AND", "t2.year", "=", "2000" ], "query_toks_no_value": [ "select", "degrees", "from", "campuses", "as", "t1", "join", "degrees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t1", ".", "campus", "=", "value", "and", "t2", ".", "year", "=", "value" ], "question": "How many degrees were conferred in \"San Jose State University\" in 2000?", "question_toks": [ "how", "many", "degree", "were", "conferred", "in", "'", "san", "jose", "state", "university", "'", "in", "year", "?" ], "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, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"San Jose State University\"", null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], 2000.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "degrees", "were", "conferred", "in", "``", "San", "Jose", "State", "University", "''", "in", "2000", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "degree" ], [ "were" ], [ "conferred" ], [ "in" ], [ "'" ], [ "san" ], [ "jose" ], [ "state" ], [ "university" ], [ "'" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "degree", "NN" ], [ "were", "VBD" ], [ "conferred", "VBN" ], [ "in", "IN" ], [ "'", "''" ], [ "san", "JJ" ], [ "jose", "NN" ], [ "state", "NN" ], [ "university", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "2000", "CD" ], [ "?", "." ] ], "values": [ "2000", "San Jose", "Fresno State University", "Sonoma State University", "San Jose State University" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(0) Filter(2) A(0) C(2) T(0) V(4) Filter(2) A(0) C(5) T(2) V(0)" }, { "db_id": "csu_1", "query": "SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = \"San Jose State University\" AND t2.year = 2000", "query_toks": [ "SELECT", "degrees", "FROM", "campuses", "AS", "T1", "JOIN", "degrees", "AS", "T2", "ON", "t1.id", "=", "t2.campus", "WHERE", "t1.campus", "=", "``", "San", "Jose", "State", "University", "''", "AND", "t2.year", "=", "2000" ], "query_toks_no_value": [ "select", "degrees", "from", "campuses", "as", "t1", "join", "degrees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t1", ".", "campus", "=", "value", "and", "t2", ".", "year", "=", "value" ], "question": "How many degrees were conferred at San Jose State University in 2000?", "question_toks": [ "how", "many", "degree", "were", "conferred", "at", "san", "jose", "state", "university", "in", "year", "?" ], "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, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"San Jose State University\"", null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], 2000.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "degrees", "were", "conferred", "at", "San", "Jose", "State", "University", "in", "2000", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "degree" ], [ "were" ], [ "conferred" ], [ "at" ], [ "san" ], [ "jose" ], [ "state" ], [ "university" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "degree", "NN" ], [ "were", "VBD" ], [ "conferred", "VBN" ], [ "at", "IN" ], [ "san", "JJ" ], [ "jose", "JJ" ], [ "state", "NN" ], [ "university", "NN" ], [ "in", "IN" ], [ "2000", "CD" ], [ "?", "." ] ], "values": [ "2000", "San Diego State University", "San Jose", "Fresno State University", "Sonoma State University", "San Jose State University" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(0) Filter(2) A(0) C(2) T(0) V(5) Filter(2) A(0) C(5) T(2) V(0)" }, { "db_id": "csu_1", "query": "SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = \"San Francisco State University\" AND t2.year = 2001", "query_toks": [ "SELECT", "degrees", "FROM", "campuses", "AS", "T1", "JOIN", "degrees", "AS", "T2", "ON", "t1.id", "=", "t2.campus", "WHERE", "t1.campus", "=", "``", "San", "Francisco", "State", "University", "''", "AND", "t2.year", "=", "2001" ], "query_toks_no_value": [ "select", "degrees", "from", "campuses", "as", "t1", "join", "degrees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t1", ".", "campus", "=", "value", "and", "t2", ".", "year", "=", "value" ], "question": "What are the degrees conferred in \"San Francisco State University\" in 2001.", "question_toks": [ "what", "are", "degree", "conferred", "in", "'", "san", "francisco", "state", "university", "'", "in", "year", "." ], "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, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"San Francisco State University\"", null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], 2001.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "degrees", "conferred", "in", "``", "San", "Francisco", "State", "University", "''", "in", "2001", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "degree" ], [ "conferred" ], [ "in" ], [ "'" ], [ "san" ], [ "francisco" ], [ "state" ], [ "university" ], [ "'" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "degree", "JJ" ], [ "conferred", "VBN" ], [ "in", "IN" ], [ "'", "''" ], [ "san", "JJ" ], [ "francisco", "NN" ], [ "state", "NN" ], [ "university", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "2001", "CD" ], [ ".", "." ] ], "values": [ "San Diego State University", "2001", "Fresno State University", "San Francisco", "San Francisco State University" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(0) Filter(2) A(0) C(2) T(0) V(4) Filter(2) A(0) C(5) T(2) V(1)" }, { "db_id": "csu_1", "query": "SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = \"San Francisco State University\" AND t2.year = 2001", "query_toks": [ "SELECT", "degrees", "FROM", "campuses", "AS", "T1", "JOIN", "degrees", "AS", "T2", "ON", "t1.id", "=", "t2.campus", "WHERE", "t1.campus", "=", "``", "San", "Francisco", "State", "University", "''", "AND", "t2.year", "=", "2001" ], "query_toks_no_value": [ "select", "degrees", "from", "campuses", "as", "t1", "join", "degrees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t1", ".", "campus", "=", "value", "and", "t2", ".", "year", "=", "value" ], "question": "What degrees were conferred in San Francisco State University in the year 2001?", "question_toks": [ "what", "degree", "were", "conferred", "in", "san", "francisco", "state", "university", "in", "year", "year", "?" ], "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, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"San Francisco State University\"", null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], 2001.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "degrees", "were", "conferred", "in", "San", "Francisco", "State", "University", "in", "the", "year", "2001", "?" ], "question_arg": [ [ "what" ], [ "degree" ], [ "were" ], [ "conferred" ], [ "in" ], [ "san" ], [ "francisco" ], [ "state" ], [ "university" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "degree", "NN" ], [ "were", "VBD" ], [ "conferred", "VBN" ], [ "in", "IN" ], [ "san", "JJ" ], [ "francisco", "NN" ], [ "state", "NN" ], [ "university", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2001", "CD" ], [ "?", "." ] ], "values": [ "San Diego State University", "2001", "Fresno State University", "San Francisco", "San Francisco State University" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(0) Filter(2) A(0) C(2) T(0) V(4) Filter(2) A(0) C(5) T(2) V(1)" }, { "db_id": "csu_1", "query": "SELECT sum(faculty) FROM faculty WHERE YEAR = 2002", "query_toks": [ "SELECT", "sum", "(", "faculty", ")", "FROM", "faculty", "WHERE", "YEAR", "=", "2002" ], "query_toks_no_value": [ "select", "sum", "(", "faculty", ")", "from", "faculty", "where", "year", "=", "value" ], "question": "How many faculty is there in total in the year of 2002?", "question_toks": [ "how", "many", "faculty", "is", "there", "in", "total", "in", "year", "of", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 2002.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "faculty", "is", "there", "in", "total", "in", "the", "year", "of", "2002", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "faculty" ], [ "is" ], [ "there" ], [ "in" ], [ "total" ], [ "in" ], [ "year" ], [ "of" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "faculty", "NN" ], [ "is", "VBZ" ], [ "there", "RB" ], [ "in", "IN" ], [ "total", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "2002", "CD" ], [ "?", "." ] ], "values": [ "2002" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(13) T(5) Filter(2) A(0) C(5) T(5) V(0)" }, { "db_id": "csu_1", "query": "SELECT sum(faculty) FROM faculty WHERE YEAR = 2002", "query_toks": [ "SELECT", "sum", "(", "faculty", ")", "FROM", "faculty", "WHERE", "YEAR", "=", "2002" ], "query_toks_no_value": [ "select", "sum", "(", "faculty", ")", "from", "faculty", "where", "year", "=", "value" ], "question": "How many faculty, in total, are there in the year 2002?", "question_toks": [ "how", "many", "faculty", ",", "in", "total", ",", "are", "there", "in", "year", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 2002.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "faculty", ",", "in", "total", ",", "are", "there", "in", "the", "year", "2002", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "faculty" ], [ "," ], [ "in" ], [ "total" ], [ "," ], [ "are" ], [ "there" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "faculty", "NN" ], [ ",", "," ], [ "in", "IN" ], [ "total", "JJ" ], [ ",", "," ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "year", "NN" ], [ "2002", "CD" ], [ "?", "." ] ], "values": [ "2002" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(13) T(5) Filter(2) A(0) C(5) T(5) V(0)" }, { "db_id": "csu_1", "query": "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2002 AND T2.campus = \"Long Beach State University\"", "query_toks": [ "SELECT", "faculty", "FROM", "faculty", "AS", "T1", "JOIN", "campuses", "AS", "T2", "ON", "T1.campus", "=", "T2.id", "WHERE", "T1.year", "=", "2002", "AND", "T2.campus", "=", "``", "Long", "Beach", "State", "University", "''" ], "query_toks_no_value": [ "select", "faculty", "from", "faculty", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value" ], "question": "What is the number of faculty lines in campus \"Long Beach State University\" in 2002?", "question_toks": [ "what", "is", "number", "of", "faculty", "line", "in", "campus", "'", "long", "beach", "state", "university", "'", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 2002.0, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Long Beach State University\"", null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "faculty", "lines", "in", "campus", "``", "Long", "Beach", "State", "University", "''", "in", "2002", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "faculty" ], [ "line" ], [ "in" ], [ "campus" ], [ "'" ], [ "long" ], [ "beach" ], [ "state" ], [ "university" ], [ "'" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "line", "NN" ], [ "in", "IN" ], [ "campus", "NN" ], [ "'", "''" ], [ "long", "JJ" ], [ "beach", "NN" ], [ "state", "NN" ], [ "university", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "2002", "CD" ], [ "?", "." ] ], "values": [ "Fresno State University", "2002", "Long Beach", "Long Beach State University" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(5) Filter(0) Filter(2) A(0) C(5) T(5) V(1) Filter(2) A(0) C(2) T(0) V(3)" }, { "db_id": "csu_1", "query": "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2002 AND T2.campus = \"Long Beach State University\"", "query_toks": [ "SELECT", "faculty", "FROM", "faculty", "AS", "T1", "JOIN", "campuses", "AS", "T2", "ON", "T1.campus", "=", "T2.id", "WHERE", "T1.year", "=", "2002", "AND", "T2.campus", "=", "``", "Long", "Beach", "State", "University", "''" ], "query_toks_no_value": [ "select", "faculty", "from", "faculty", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value" ], "question": "What is the number of faculty at Long Beach State University in 2002?", "question_toks": [ "what", "is", "number", "of", "faculty", "at", "long", "beach", "state", "university", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 2002.0, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Long Beach State University\"", null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "faculty", "at", "Long", "Beach", "State", "University", "in", "2002", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "faculty" ], [ "at" ], [ "long" ], [ "beach" ], [ "state" ], [ "university" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "at", "IN" ], [ "long", "JJ" ], [ "beach", "NN" ], [ "state", "NN" ], [ "university", "NN" ], [ "in", "IN" ], [ "2002", "CD" ], [ "?", "." ] ], "values": [ "Fresno State University", "2002", "Long Beach", "Long Beach State University" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(5) Filter(0) Filter(2) A(0) C(5) T(5) V(1) Filter(2) A(0) C(2) T(0) V(3)" }, { "db_id": "csu_1", "query": "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2004 AND T2.campus = \"San Francisco State University\"", "query_toks": [ "SELECT", "faculty", "FROM", "faculty", "AS", "T1", "JOIN", "campuses", "AS", "T2", "ON", "T1.campus", "=", "T2.id", "WHERE", "T1.year", "=", "2004", "AND", "T2.campus", "=", "``", "San", "Francisco", "State", "University", "''" ], "query_toks_no_value": [ "select", "faculty", "from", "faculty", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value" ], "question": "How many faculty lines are there in \"San Francisco State University\" in year 2004?", "question_toks": [ "how", "many", "faculty", "line", "are", "there", "in", "'", "san", "francisco", "state", "university", "'", "in", "year", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 2004.0, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"San Francisco State University\"", null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "faculty", "lines", "are", "there", "in", "``", "San", "Francisco", "State", "University", "''", "in", "year", "2004", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "faculty" ], [ "line" ], [ "are" ], [ "there" ], [ "in" ], [ "'" ], [ "san" ], [ "francisco" ], [ "state" ], [ "university" ], [ "'" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "faculty", "NN" ], [ "line", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "'", "''" ], [ "san", "JJ" ], [ "francisco", "NN" ], [ "state", "NN" ], [ "university", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "year", "NN" ], [ "2004", "CD" ], [ "?", "." ] ], "values": [ "San Francisco State University", "2004", "San Diego State University", "Fresno State University", "San Francisco" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(5) Filter(0) Filter(2) A(0) C(5) T(5) V(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2004 AND T2.campus = \"San Francisco State University\"", "query_toks": [ "SELECT", "faculty", "FROM", "faculty", "AS", "T1", "JOIN", "campuses", "AS", "T2", "ON", "T1.campus", "=", "T2.id", "WHERE", "T1.year", "=", "2004", "AND", "T2.campus", "=", "``", "San", "Francisco", "State", "University", "''" ], "query_toks_no_value": [ "select", "faculty", "from", "faculty", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value" ], "question": "How many faculty lines are there at San Francisco State University in 2004?", "question_toks": [ "how", "many", "faculty", "line", "are", "there", "at", "san", "francisco", "state", "university", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 2004.0, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"San Francisco State University\"", null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "faculty", "lines", "are", "there", "at", "San", "Francisco", "State", "University", "in", "2004", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "faculty" ], [ "line" ], [ "are" ], [ "there" ], [ "at" ], [ "san" ], [ "francisco" ], [ "state" ], [ "university" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "faculty", "NN" ], [ "line", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "at", "IN" ], [ "san", "JJ" ], [ "francisco", "NN" ], [ "state", "NN" ], [ "university", "NN" ], [ "in", "IN" ], [ "2004", "CD" ], [ "?", "." ] ], "values": [ "2004", "San Francisco State University", "San Diego State University", "Fresno State University", "San Francisco" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(5) Filter(0) Filter(2) A(0) C(5) T(5) V(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "csu_1", "query": "SELECT T1.campus FROM campuses AS t1 JOIN faculty AS t2 ON t1.id = t2.campus WHERE t2.faculty >= 600 AND t2.faculty <= 1000 AND T1.year = 2004", "query_toks": [ "SELECT", "T1.campus", "FROM", "campuses", "AS", "t1", "JOIN", "faculty", "AS", "t2", "ON", "t1.id", "=", "t2.campus", "WHERE", "t2.faculty", ">", "=", "600", "AND", "t2.faculty", "<", "=", "1000", "AND", "T1.year", "=", "2004" ], "query_toks_no_value": [ "select", "t1", ".", "campus", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "faculty", ">", "=", "value", "and", "t2", ".", "faculty", "<", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "List the campus that have between 600 and 1000 faculty lines in year 2004.", "question_toks": [ "list", "campus", "that", "have", "between", "600", "and", "1000", "faculty", "line", "in", "year", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 23, false ], null ], 600.0, null ], "and", [ false, 6, [ 0, [ 0, 23, false ], null ], 1000.0, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], 2004.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "List", "the", "campus", "that", "have", "between", "600", "and", "1000", "faculty", "lines", "in", "year", "2004", "." ], "question_arg": [ [ "list" ], [ "campus" ], [ "that" ], [ "have" ], [ "between" ], [ "600" ], [ "and" ], [ "1000" ], [ "faculty" ], [ "line" ], [ "in" ], [ "year" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "campus", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "between", "IN" ], [ "600", "CD" ], [ "and", "CC" ], [ "1000", "CD" ], [ "faculty", "NN" ], [ "line", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2004", "CD" ], [ ".", "." ] ], "values": [ "2004", "600", "1000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(7) A(0) C(13) T(5) V(1) Filter(0) Filter(6) A(0) C(13) T(5) V(2) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT T1.campus FROM campuses AS t1 JOIN faculty AS t2 ON t1.id = t2.campus WHERE t2.faculty >= 600 AND t2.faculty <= 1000 AND T1.year = 2004", "query_toks": [ "SELECT", "T1.campus", "FROM", "campuses", "AS", "t1", "JOIN", "faculty", "AS", "t2", "ON", "t1.id", "=", "t2.campus", "WHERE", "t2.faculty", ">", "=", "600", "AND", "t2.faculty", "<", "=", "1000", "AND", "T1.year", "=", "2004" ], "query_toks_no_value": [ "select", "t1", ".", "campus", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "faculty", ">", "=", "value", "and", "t2", ".", "faculty", "<", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "What are the campuses that had between 600 and 1000 faculty members in 2004?", "question_toks": [ "what", "are", "campus", "that", "had", "between", "600", "and", "1000", "faculty", "member", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 23, false ], null ], 600.0, null ], "and", [ false, 6, [ 0, [ 0, 23, false ], null ], 1000.0, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], 2004.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "campuses", "that", "had", "between", "600", "and", "1000", "faculty", "members", "in", "2004", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "campus" ], [ "that" ], [ "had" ], [ "between" ], [ "600" ], [ "and" ], [ "1000" ], [ "faculty" ], [ "member" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "campus", "JJ" ], [ "that", "IN" ], [ "had", "VBD" ], [ "between", "IN" ], [ "600", "CD" ], [ "and", "CC" ], [ "1000", "CD" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "in", "IN" ], [ "2004", "CD" ], [ "?", "." ] ], "values": [ "2004", "600", "1000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(7) A(0) C(13) T(5) V(1) Filter(0) Filter(6) A(0) C(13) T(5) V(2) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "csu_1", "query": "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2002 ORDER BY t3.degrees DESC LIMIT 1", "query_toks": [ "SELECT", "T2.faculty", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "t2.campus", "JOIN", "degrees", "AS", "T3", "ON", "T1.id", "=", "t3.campus", "AND", "t2.year", "=", "t3.year", "WHERE", "t2.year", "=", "2002", "ORDER", "BY", "t3.degrees", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "faculty", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "join", "degrees", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "campus", "and", "t2", ".", "year", "=", "t3", ".", "year", "where", "t2", ".", "year", "=", "value", "order", "by", "t3", ".", "degrees", "desc", "limit", "value" ], "question": "How many faculty lines are there in the university that conferred the most number of degrees in year 2002?", "question_toks": [ "how", "many", "faculty", "line", "are", "there", "in", "university", "that", "conferred", "most", "number", "of", "degree", "in", "year", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 21, false ], null ], "and", [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 21, 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, 2, [ 0, [ 0, 22, false ], null ], 2002.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "faculty", "lines", "are", "there", "in", "the", "university", "that", "conferred", "the", "most", "number", "of", "degrees", "in", "year", "2002", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "faculty" ], [ "line" ], [ "are" ], [ "there" ], [ "in" ], [ "university" ], [ "that" ], [ "conferred" ], [ "most" ], [ "number" ], [ "of" ], [ "degree" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "faculty", "NN" ], [ "line", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "university", "NN" ], [ "that", "WDT" ], [ "conferred", "VBD" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "degree", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2002", "CD" ], [ "?", "." ] ], "values": [ "2002" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(13) T(5) Sup(0) A(0) C(7) T(2) Filter(0) Filter(18) A(0) C(2) T(5) Root(5) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(5) T(5) V(0)" }, { "db_id": "csu_1", "query": "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2002 ORDER BY t3.degrees DESC LIMIT 1", "query_toks": [ "SELECT", "T2.faculty", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "t2.campus", "JOIN", "degrees", "AS", "T3", "ON", "T1.id", "=", "t3.campus", "AND", "t2.year", "=", "t3.year", "WHERE", "t2.year", "=", "2002", "ORDER", "BY", "t3.degrees", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "faculty", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "join", "degrees", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "campus", "and", "t2", ".", "year", "=", "t3", ".", "year", "where", "t2", ".", "year", "=", "value", "order", "by", "t3", ".", "degrees", "desc", "limit", "value" ], "question": "How many faculty members did the university that conferred the most degrees in 2002 have?", "question_toks": [ "how", "many", "faculty", "member", "did", "university", "that", "conferred", "most", "degree", "in", "year", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 21, false ], null ], "and", [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 21, 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, 2, [ 0, [ 0, 22, false ], null ], 2002.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "faculty", "members", "did", "the", "university", "that", "conferred", "the", "most", "degrees", "in", "2002", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "faculty" ], [ "member" ], [ "did" ], [ "university" ], [ "that" ], [ "conferred" ], [ "most" ], [ "degree" ], [ "in" ], [ "year" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "did", "VBD" ], [ "university", "NN" ], [ "that", "IN" ], [ "conferred", "VBD" ], [ "most", "JJS" ], [ "degree", "NN" ], [ "in", "IN" ], [ "2002", "CD" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [ "2002" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(13) T(5) Sup(0) A(0) C(7) T(2) Filter(0) Filter(18) A(0) C(2) T(5) Root(5) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(5) T(5) V(0)" }, { "db_id": "csu_1", "query": "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2001 ORDER BY t3.degrees LIMIT 1", "query_toks": [ "SELECT", "T2.faculty", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "t2.campus", "JOIN", "degrees", "AS", "T3", "ON", "T1.id", "=", "t3.campus", "AND", "t2.year", "=", "t3.year", "WHERE", "t2.year", "=", "2001", "ORDER", "BY", "t3.degrees", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "faculty", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "join", "degrees", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "campus", "and", "t2", ".", "year", "=", "t3", ".", "year", "where", "t2", ".", "year", "=", "value", "order", "by", "t3", ".", "degrees", "limit", "value" ], "question": "How many faculty lines are there in the university that conferred the least number of degrees in year 2001?", "question_toks": [ "how", "many", "faculty", "line", "are", "there", "in", "university", "that", "conferred", "least", "number", "of", "degree", "in", "year", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 21, false ], null ], "and", [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 21, 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, 2, [ 0, [ 0, 22, false ], null ], 2001.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "faculty", "lines", "are", "there", "in", "the", "university", "that", "conferred", "the", "least", "number", "of", "degrees", "in", "year", "2001", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "faculty" ], [ "line" ], [ "are" ], [ "there" ], [ "in" ], [ "university" ], [ "that" ], [ "conferred" ], [ "least" ], [ "number" ], [ "of" ], [ "degree" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "faculty", "NN" ], [ "line", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "university", "NN" ], [ "that", "WDT" ], [ "conferred", "VBD" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "degree", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2001", "CD" ], [ "?", "." ] ], "values": [ "2001" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(13) T(5) Sup(1) A(0) C(7) T(2) Filter(0) Filter(18) A(0) C(2) T(5) Root(5) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(5) T(5) V(0)" }, { "db_id": "csu_1", "query": "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2001 ORDER BY t3.degrees LIMIT 1", "query_toks": [ "SELECT", "T2.faculty", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "t2.campus", "JOIN", "degrees", "AS", "T3", "ON", "T1.id", "=", "t3.campus", "AND", "t2.year", "=", "t3.year", "WHERE", "t2.year", "=", "2001", "ORDER", "BY", "t3.degrees", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "faculty", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "join", "degrees", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "campus", "and", "t2", ".", "year", "=", "t3", ".", "year", "where", "t2", ".", "year", "=", "value", "order", "by", "t3", ".", "degrees", "limit", "value" ], "question": "How many faculty members are at the university that gave the least number of degrees in 2001?", "question_toks": [ "how", "many", "faculty", "member", "are", "at", "university", "that", "gave", "least", "number", "of", "degree", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 21, false ], null ], "and", [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 21, 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, 2, [ 0, [ 0, 22, false ], null ], 2001.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "faculty", "members", "are", "at", "the", "university", "that", "gave", "the", "least", "number", "of", "degrees", "in", "2001", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "faculty" ], [ "member" ], [ "are" ], [ "at" ], [ "university" ], [ "that" ], [ "gave" ], [ "least" ], [ "number" ], [ "of" ], [ "degree" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "are", "VBP" ], [ "at", "IN" ], [ "university", "NN" ], [ "that", "WDT" ], [ "gave", "VBD" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "degree", "NN" ], [ "in", "IN" ], [ "2001", "CD" ], [ "?", "." ] ], "values": [ "2001" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(13) T(5) Sup(1) A(0) C(7) T(2) Filter(0) Filter(18) A(0) C(2) T(5) Root(5) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(5) T(5) V(0)" }, { "db_id": "csu_1", "query": "SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = \"San Jose State University\"", "query_toks": [ "SELECT", "sum", "(", "t1.undergraduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1.campus", "=", "t2.id", "WHERE", "t1.year", "=", "2004", "AND", "t2.campus", "=", "``", "San", "Jose", "State", "University", "''" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "undergraduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value" ], "question": "How many undergraduates are there in \"San Jose State University\" in year 2004?", "question_toks": [ "how", "many", "undergraduate", "are", "there", "in", "'", "san", "jose", "state", "university", "'", "in", "year", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], 2004.0, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"San Jose State University\"", null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "undergraduates", "are", "there", "in", "``", "San", "Jose", "State", "University", "''", "in", "year", "2004", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "undergraduate" ], [ "are" ], [ "there" ], [ "in" ], [ "'" ], [ "san" ], [ "jose" ], [ "state" ], [ "university" ], [ "'" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "undergraduate", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "'", "''" ], [ "san", "JJ" ], [ "jose", "NN" ], [ "state", "NN" ], [ "university", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "year", "NN" ], [ "2004", "CD" ], [ "?", "." ] ], "values": [ "Sonoma State University", "2004", "San Jose", "Fresno State University", "San Jose State University" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(9) T(3) Filter(0) Filter(2) A(0) C(5) T(3) V(1) Filter(2) A(0) C(2) T(0) V(4)" }, { "db_id": "csu_1", "query": "SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = \"San Jose State University\"", "query_toks": [ "SELECT", "sum", "(", "t1.undergraduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1.campus", "=", "t2.id", "WHERE", "t1.year", "=", "2004", "AND", "t2.campus", "=", "``", "San", "Jose", "State", "University", "''" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "undergraduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value" ], "question": "How many undergraduates are there at San Jose State", "question_toks": [ "how", "many", "undergraduate", "are", "there", "at", "san", "jose", "state" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], 2004.0, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"San Jose State University\"", null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "undergraduates", "are", "there", "at", "San", "Jose", "State" ], "question_arg": [ [ "how" ], [ "many" ], [ "undergraduate" ], [ "are" ], [ "there" ], [ "at" ], [ "san" ], [ "jose" ], [ "state" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "undergraduate", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "at", "IN" ], [ "san", "JJ" ], [ "jose", "JJ" ], [ "state", "NN" ] ], "values": [ "San Jose", "2004", "San Jose State University" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(9) T(3) Filter(0) Filter(2) A(0) C(5) T(3) V(1) Filter(2) A(0) C(2) T(0) V(2)" }, { "db_id": "csu_1", "query": "SELECT sum(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = \"San Francisco State University\"", "query_toks": [ "SELECT", "sum", "(", "t1.graduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1.campus", "=", "t2.id", "WHERE", "t1.year", "=", "2004", "AND", "t2.campus", "=", "``", "San", "Francisco", "State", "University", "''" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "graduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value" ], "question": "What is the number of graduates in \"San Francisco State University\" in year 2004?", "question_toks": [ "what", "is", "number", "of", "graduate", "in", "'", "san", "francisco", "state", "university", "'", "in", "year", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], 2004.0, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"San Francisco State University\"", null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "graduates", "in", "``", "San", "Francisco", "State", "University", "''", "in", "year", "2004", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "graduate" ], [ "in" ], [ "'" ], [ "san" ], [ "francisco" ], [ "state" ], [ "university" ], [ "'" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "graduate", "NN" ], [ "in", "IN" ], [ "'", "''" ], [ "san", "JJ" ], [ "francisco", "NN" ], [ "state", "NN" ], [ "university", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "year", "NN" ], [ "2004", "CD" ], [ "?", "." ] ], "values": [ "2004", "San Francisco", "San Diego State University", "San Francisco State University", "Fresno State University" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(10) T(3) Filter(0) Filter(2) A(0) C(5) T(3) V(0) Filter(2) A(0) C(2) T(0) V(3)" }, { "db_id": "csu_1", "query": "SELECT sum(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = \"San Francisco State University\"", "query_toks": [ "SELECT", "sum", "(", "t1.graduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1.campus", "=", "t2.id", "WHERE", "t1.year", "=", "2004", "AND", "t2.campus", "=", "``", "San", "Francisco", "State", "University", "''" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "graduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value" ], "question": "How many people graduated from San Francisco State University in 2004?", "question_toks": [ "how", "many", "people", "graduated", "from", "san", "francisco", "state", "university", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], 2004.0, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"San Francisco State University\"", null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "people", "graduated", "from", "San", "Francisco", "State", "University", "in", "2004", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "people" ], [ "graduated" ], [ "from" ], [ "san" ], [ "francisco" ], [ "state" ], [ "university" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "people", "NNS" ], [ "graduated", "VBD" ], [ "from", "IN" ], [ "san", "JJ" ], [ "francisco", "NN" ], [ "state", "NN" ], [ "university", "NN" ], [ "in", "IN" ], [ "2004", "CD" ], [ "?", "." ] ], "values": [ "2004", "San Francisco", "San Diego State University", "San Francisco State University", "Fresno State University" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(10) T(3) Filter(0) Filter(2) A(0) C(5) T(3) V(0) Filter(2) A(0) C(2) T(0) V(3)" }, { "db_id": "csu_1", "query": "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = \"San Francisco State University\" AND t1.year = 2000", "query_toks": [ "SELECT", "t1.campusfee", "FROM", "csu_fees", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1.campus", "=", "t2.id", "WHERE", "t2.campus", "=", "``", "San", "Francisco", "State", "University", "''", "AND", "t1.year", "=", "2000" ], "query_toks_no_value": [ "select", "t1", ".", "campusfee", "from", "csu_fees", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t2", ".", "campus", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "What is the campus fee of \"San Francisco State University\" in year 2000?", "question_toks": [ "what", "is", "campus", "fee", "of", "'", "san", "francisco", "state", "university", "'", "in", "year", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"San Francisco State University\"", null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], 2000.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "campus", "fee", "of", "``", "San", "Francisco", "State", "University", "''", "in", "year", "2000", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "campus", "fee" ], [ "of" ], [ "'" ], [ "san" ], [ "francisco" ], [ "state" ], [ "university" ], [ "'" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "campus", "JJ" ], [ "fee", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "san", "JJ" ], [ "francisco", "NN" ], [ "state", "NN" ], [ "university", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "year", "NN" ], [ "2000", "CD" ], [ "?", "." ] ], "values": [ "2000", "San Diego State University", "Fresno State University", "San Francisco", "San Francisco State University" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(4) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "csu_1", "query": "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = \"San Francisco State University\" AND t1.year = 2000", "query_toks": [ "SELECT", "t1.campusfee", "FROM", "csu_fees", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1.campus", "=", "t2.id", "WHERE", "t2.campus", "=", "``", "San", "Francisco", "State", "University", "''", "AND", "t1.year", "=", "2000" ], "query_toks_no_value": [ "select", "t1", ".", "campusfee", "from", "csu_fees", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t2", ".", "campus", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "In the year 2000, what is the campus fee for San Francisco State University?", "question_toks": [ "in", "year", "year", ",", "what", "is", "campus", "fee", "for", "san", "francisco", "state", "university", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"San Francisco State University\"", null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], 2000.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "In", "the", "year", "2000", ",", "what", "is", "the", "campus", "fee", "for", "San", "Francisco", "State", "University", "?" ], "question_arg": [ [ "in" ], [ "year" ], [ "year" ], [ "," ], [ "what" ], [ "is" ], [ "campus", "fee" ], [ "for" ], [ "san" ], [ "francisco" ], [ "state" ], [ "university" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "year", "NN" ], [ "2000", "CD" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "campus", "JJ" ], [ "fee", "NN" ], [ "for", "IN" ], [ "san", "JJ" ], [ "francisco", "JJ" ], [ "state", "NN" ], [ "university", "NN" ], [ "?", "." ] ], "values": [ "2000", "San Diego State University", "Fresno State University", "San Francisco", "San Francisco State University" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(4) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "csu_1", "query": "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = \"San Jose State University\" AND t1.year = 2000", "query_toks": [ "SELECT", "t1.campusfee", "FROM", "csu_fees", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1.campus", "=", "t2.id", "WHERE", "t2.campus", "=", "``", "San", "Jose", "State", "University", "''", "AND", "t1.year", "=", "2000" ], "query_toks_no_value": [ "select", "t1", ".", "campusfee", "from", "csu_fees", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t2", ".", "campus", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "Find the campus fee of \"San Jose State University\" in year 2000.", "question_toks": [ "find", "campus", "fee", "of", "'", "san", "jose", "state", "university", "'", "in", "year", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"San Jose State University\"", null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], 2000.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "Find", "the", "campus", "fee", "of", "``", "San", "Jose", "State", "University", "''", "in", "year", "2000", "." ], "question_arg": [ [ "find" ], [ "campus", "fee" ], [ "of" ], [ "'" ], [ "san" ], [ "jose" ], [ "state" ], [ "university" ], [ "'" ], [ "in" ], [ "year" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "campus", "JJ" ], [ "fee", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "san", "JJ" ], [ "jose", "NN" ], [ "state", "NN" ], [ "university", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "year", "NN" ], [ "2000", "CD" ], [ ".", "." ] ], "values": [ "2000", "San Jose", "Fresno State University", "Sonoma State University", "San Jose State University" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(4) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "csu_1", "query": "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = \"San Jose State University\" AND t1.year = 2000", "query_toks": [ "SELECT", "t1.campusfee", "FROM", "csu_fees", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1.campus", "=", "t2.id", "WHERE", "t2.campus", "=", "``", "San", "Jose", "State", "University", "''", "AND", "t1.year", "=", "2000" ], "query_toks_no_value": [ "select", "t1", ".", "campusfee", "from", "csu_fees", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t2", ".", "campus", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "What is the campus fee in the year 2000 for San Jose State University?", "question_toks": [ "what", "is", "campus", "fee", "in", "year", "year", "for", "san", "jose", "state", "university", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"San Jose State University\"", null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], 2000.0, null ] ] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "campus", "fee", "in", "the", "year", "2000", "for", "San", "Jose", "State", "University", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "campus", "fee" ], [ "in" ], [ "year" ], [ "year" ], [ "for" ], [ "san" ], [ "jose" ], [ "state" ], [ "university" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "campus", "JJ" ], [ "fee", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2000", "CD" ], [ "for", "IN" ], [ "san", "JJ" ], [ "jose", "JJ" ], [ "state", "NN" ], [ "university", "NN" ], [ "?", "." ] ], "values": [ "2000", "San Diego State University", "San Jose", "Fresno State University", "Sonoma State University", "San Jose State University" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(5) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "csu_1", "query": "SELECT count(*) FROM campuses", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "campuses" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "campuses" ], "question": "How many CSU campuses are there?", "question_toks": [ "how", "many", "csu", "campus", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "CSU", "campuses", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "csu" ], [ "campus" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "csu", "NN" ], [ "campus", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "csu_1", "query": "SELECT count(*) FROM campuses", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "campuses" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "campuses" ], "question": "What is the total number of campuses?", "question_toks": [ "what", "is", "total", "number", "of", "campus", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "campus", "location", "county", "year", "campus", "year", "campus fee", "year", "campus", "degrees", "campus", "discipline", "year", "undergraduate", "graduate", "campus", "year", "totalenrollment ay", "fte ay", "campus", "year", "faculty" ], "table_names": [ "campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty" ], "col_set": [ "*", "id", "campus", "location", "county", "year", "campus fee", "degrees", "discipline", "undergraduate", "graduate", "totalenrollment ay", "fte ay", "faculty" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "6": 6, "1": 1, "10": 1, "12": 12, "17": 17, "21": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "campuses", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "campus" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "campus", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "candidate_poll", "query": "SELECT count(*) FROM candidate", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "candidate" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "candidate" ], "question": "How many candidates are there?", "question_toks": [ "how", "many", "candidate", "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": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "candidates", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "candidate" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "candidate", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "candidate_poll", "query": "SELECT count(*) FROM candidate", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "candidate" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "candidate" ], "question": "Count the number of candidates.", "question_toks": [ "count", "number", "of", "candidate", "." ], "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": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "candidates", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "candidate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "candidate", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "candidate_poll", "query": "SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "poll_source", "FROM", "candidate", "GROUP", "BY", "poll_source", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "poll_source", "from", "candidate", "group", "by", "poll_source", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which poll resource provided the most number of candidate information?", "question_toks": [ "which", "poll", "resource", "provided", "most", "number", "of", "candidate", "information", "?" ], "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": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "Which", "poll", "resource", "provided", "the", "most", "number", "of", "candidate", "information", "?" ], "question_arg": [ [ "which" ], [ "poll" ], [ "resource" ], [ "provided" ], [ "most" ], [ "number" ], [ "of" ], [ "candidate" ], [ "information" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "poll", "NN" ], [ "resource", "NN" ], [ "provided", "VBD" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "candidate", "NN" ], [ "information", "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": "candidate_poll", "query": "SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "poll_source", "FROM", "candidate", "GROUP", "BY", "poll_source", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "poll_source", "from", "candidate", "group", "by", "poll_source", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the poll resource associated with the most candidates.", "question_toks": [ "return", "poll", "resource", "associated", "with", "most", "candidate", "." ], "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": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "Return", "the", "poll", "resource", "associated", "with", "the", "most", "candidates", "." ], "question_arg": [ [ "return" ], [ "poll" ], [ "resource" ], [ "associated" ], [ "with" ], [ "most" ], [ "candidate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "poll", "NN" ], [ "resource", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "candidate", "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": "candidate_poll", "query": "SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3", "query_toks": [ "SELECT", "support_rate", "FROM", "candidate", "ORDER", "BY", "support_rate", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "support_rate", "from", "candidate", "order", "by", "support_rate", "desc", "limit", "value" ], "question": "what are the top 3 highest support rates?", "question_toks": [ "what", "are", "top", "3", "highest", "support", "rate", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "what", "are", "the", "top", "3", "highest", "support", "rates", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "top" ], [ "3" ], [ "highest" ], [ "support", "rate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "top", "JJ" ], [ "3", "CD" ], [ "highest", "JJS" ], [ "support", "NN" ], [ "rate", "NN" ], [ "?", "." ] ], "values": [ "3" ], "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": "candidate_poll", "query": "SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3", "query_toks": [ "SELECT", "support_rate", "FROM", "candidate", "ORDER", "BY", "support_rate", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "support_rate", "from", "candidate", "order", "by", "support_rate", "desc", "limit", "value" ], "question": "Return the top 3 greatest support rates.", "question_toks": [ "return", "top", "3", "greatest", "support", "rate", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "Return", "the", "top", "3", "greatest", "support", "rates", "." ], "question_arg": [ [ "return" ], [ "top" ], [ "3" ], [ "greatest" ], [ "support", "rate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "top", "JJ" ], [ "3", "CD" ], [ "greatest", "JJS" ], [ "support", "NN" ], [ "rate", "NN" ], [ ".", "." ] ], "values": [ "3" ], "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": "candidate_poll", "query": "SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1", "query_toks": [ "SELECT", "Candidate_ID", "FROM", "candidate", "ORDER", "BY", "oppose_rate", "LIMIT", "1" ], "query_toks_no_value": [ "select", "candidate_id", "from", "candidate", "order", "by", "oppose_rate", "limit", "value" ], "question": "Find the id of the candidate who got the lowest oppose rate.", "question_toks": [ "find", "id", "of", "candidate", "who", "got", "lowest", "oppose", "rate", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 7, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "id", "of", "the", "candidate", "who", "got", "the", "lowest", "oppose", "rate", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "candidate" ], [ "who" ], [ "got" ], [ "lowest" ], [ "oppose", "rate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "candidate", "NN" ], [ "who", "WP" ], [ "got", "VBD" ], [ "lowest", "JJS" ], [ "oppose", "JJ" ], [ "rate", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(1) T(0) Sup(1) A(0) C(7) T(0)" }, { "db_id": "candidate_poll", "query": "SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1", "query_toks": [ "SELECT", "Candidate_ID", "FROM", "candidate", "ORDER", "BY", "oppose_rate", "LIMIT", "1" ], "query_toks_no_value": [ "select", "candidate_id", "from", "candidate", "order", "by", "oppose_rate", "limit", "value" ], "question": "What is the id of the candidate with the lowest oppose rate?", "question_toks": [ "what", "is", "id", "of", "candidate", "with", "lowest", "oppose", "rate", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 7, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "candidate", "with", "the", "lowest", "oppose", "rate", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "candidate" ], [ "with" ], [ "lowest" ], [ "oppose", "rate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "candidate", "NN" ], [ "with", "IN" ], [ "lowest", "JJS" ], [ "oppose", "NN" ], [ "rate", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(1) T(0) Sup(1) A(0) C(7) T(0)" }, { "db_id": "candidate_poll", "query": "SELECT Support_rate , Consider_rate , Oppose_rate FROM candidate ORDER BY unsure_rate", "query_toks": [ "SELECT", "Support_rate", ",", "Consider_rate", ",", "Oppose_rate", "FROM", "candidate", "ORDER", "BY", "unsure_rate" ], "query_toks_no_value": [ "select", "support_rate", ",", "consider_rate", ",", "oppose_rate", "from", "candidate", "order", "by", "unsure_rate" ], "question": "Please list support, consider, and oppose rates for each candidate in ascending order by unsure rate.", "question_toks": [ "please", "list", "support", ",", "consider", ",", "and", "oppose", "rate", "for", "each", "candidate", "in", "ascending", "order", "by", "unsure", "rate", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "Please", "list", "support", ",", "consider", ",", "and", "oppose", "rates", "for", "each", "candidate", "in", "ascending", "order", "by", "unsure", "rate", "." ], "question_arg": [ [ "please" ], [ "list" ], [ "support" ], [ "," ], [ "consider" ], [ "," ], [ "and" ], [ "oppose", "rate" ], [ "for" ], [ "each" ], [ "candidate" ], [ "in" ], [ "ascending" ], [ "order" ], [ "by" ], [ "unsure", "rate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "NN" ], [ "list", "NN" ], [ "support", "NN" ], [ ",", "," ], [ "consider", "VB" ], [ ",", "," ], [ "and", "CC" ], [ "oppose", "JJ" ], [ "rate", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "candidate", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "by", "IN" ], [ "unsure", "JJ" ], [ "rate", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(5) T(0) A(0) C(6) T(0) A(0) C(7) T(0) Order(1) A(0) C(8) T(0)" }, { "db_id": "candidate_poll", "query": "SELECT Support_rate , Consider_rate , Oppose_rate FROM candidate ORDER BY unsure_rate", "query_toks": [ "SELECT", "Support_rate", ",", "Consider_rate", ",", "Oppose_rate", "FROM", "candidate", "ORDER", "BY", "unsure_rate" ], "query_toks_no_value": [ "select", "support_rate", ",", "consider_rate", ",", "oppose_rate", "from", "candidate", "order", "by", "unsure_rate" ], "question": "What are the support, consider, and oppose rates of each candidate, ordered ascending by their unsure rate?", "question_toks": [ "what", "are", "support", ",", "consider", ",", "and", "oppose", "rate", "of", "each", "candidate", ",", "ordered", "ascending", "by", "their", "unsure", "rate", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "support", ",", "consider", ",", "and", "oppose", "rates", "of", "each", "candidate", ",", "ordered", "ascending", "by", "their", "unsure", "rate", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "support" ], [ "," ], [ "consider" ], [ "," ], [ "and" ], [ "oppose", "rate" ], [ "of" ], [ "each" ], [ "candidate" ], [ "," ], [ "ordered" ], [ "ascending" ], [ "by" ], [ "their" ], [ "unsure", "rate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "support", "NN" ], [ ",", "," ], [ "consider", "VB" ], [ ",", "," ], [ "and", "CC" ], [ "oppose", "JJ" ], [ "rate", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "candidate", "NN" ], [ ",", "," ], [ "ordered", "VBD" ], [ "ascending", "VBG" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "unsure", "NN" ], [ "rate", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(5) T(0) A(0) C(6) T(0) A(0) C(7) T(0) Order(1) A(0) C(8) T(0)" }, { "db_id": "candidate_poll", "query": "SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1", "query_toks": [ "SELECT", "poll_source", "FROM", "candidate", "ORDER", "BY", "oppose_rate", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "poll_source", "from", "candidate", "order", "by", "oppose_rate", "desc", "limit", "value" ], "question": "which poll source does the highest oppose rate come from?", "question_toks": [ "which", "poll", "source", "doe", "highest", "oppose", "rate", "come", "from", "?" ], "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": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "which", "poll", "source", "does", "the", "highest", "oppose", "rate", "come", "from", "?" ], "question_arg": [ [ "which" ], [ "poll", "source" ], [ "doe" ], [ "highest" ], [ "oppose", "rate" ], [ "come" ], [ "from" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "poll", "NN" ], [ "source", "NN" ], [ "doe", "NN" ], [ "highest", "JJS" ], [ "oppose", "JJ" ], [ "rate", "NN" ], [ "come", "VBN" ], [ "from", "IN" ], [ "?", "." ] ], "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": "candidate_poll", "query": "SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1", "query_toks": [ "SELECT", "poll_source", "FROM", "candidate", "ORDER", "BY", "oppose_rate", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "poll_source", "from", "candidate", "order", "by", "oppose_rate", "desc", "limit", "value" ], "question": "Return the poll source corresponding to the candidate who has the oppose rate.", "question_toks": [ "return", "poll", "source", "corresponding", "to", "candidate", "who", "ha", "oppose", "rate", "." ], "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": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "Return", "the", "poll", "source", "corresponding", "to", "the", "candidate", "who", "has", "the", "oppose", "rate", "." ], "question_arg": [ [ "return" ], [ "poll", "source" ], [ "corresponding" ], [ "to" ], [ "candidate" ], [ "who" ], [ "ha" ], [ "oppose", "rate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "poll", "NN" ], [ "source", "NN" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "candidate", "VB" ], [ "who", "WP" ], [ "ha", "VBP" ], [ "oppose", "JJ" ], [ "rate", "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": "candidate_poll", "query": "SELECT name FROM people ORDER BY date_of_birth", "query_toks": [ "SELECT", "name", "FROM", "people", "ORDER", "BY", "date_of_birth" ], "query_toks_no_value": [ "select", "name", "from", "people", "order", "by", "date_of_birth" ], "question": "List all people names in the order of their date of birth from old to young.", "question_toks": [ "list", "all", "people", "name", "in", "order", "of", "their", "date", "of", "birth", "from", "old", "to", "young", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "List", "all", "people", "names", "in", "the", "order", "of", "their", "date", "of", "birth", "from", "old", "to", "young", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "people" ], [ "name" ], [ "in" ], [ "order" ], [ "of" ], [ "their" ], [ "date", "of", "birth" ], [ "from" ], [ "old" ], [ "to" ], [ "young" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "people", "NNS" ], [ "name", "VBP" ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "date", "NN" ], [ "of", "IN" ], [ "birth", "NN" ], [ "from", "IN" ], [ "old", "JJ" ], [ "to", "TO" ], [ "young", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(10) T(1) Order(1) A(0) C(11) T(1)" }, { "db_id": "candidate_poll", "query": "SELECT name FROM people ORDER BY date_of_birth", "query_toks": [ "SELECT", "name", "FROM", "people", "ORDER", "BY", "date_of_birth" ], "query_toks_no_value": [ "select", "name", "from", "people", "order", "by", "date_of_birth" ], "question": "What are the names of all people, ordered by their date of birth?", "question_toks": [ "what", "are", "name", "of", "all", "people", ",", "ordered", "by", "their", "date", "of", "birth", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "people", ",", "ordered", "by", "their", "date", "of", "birth", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "people" ], [ "," ], [ "ordered" ], [ "by" ], [ "their" ], [ "date", "of", "birth" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "people", "NNS" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "date", "NN" ], [ "of", "IN" ], [ "birth", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(10) T(1) Order(1) A(0) C(11) T(1)" }, { "db_id": "candidate_poll", "query": "SELECT avg(height) , avg(weight) FROM people WHERE sex = 'M'", "query_toks": [ "SELECT", "avg", "(", "height", ")", ",", "avg", "(", "weight", ")", "FROM", "people", "WHERE", "sex", "=", "'M", "'" ], "query_toks_no_value": [ "select", "avg", "(", "height", ")", ",", "avg", "(", "weight", ")", "from", "people", "where", "sex", "=", "value" ], "question": "Find the average height and weight for all males (sex is M).", "question_toks": [ "find", "average", "height", "and", "weight", "for", "all", "male", "(", "sex", "is", "m", ")", "." ], "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 ] ], [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"M\"", null ] ] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "average", "height", "and", "weight", "for", "all", "males", "(", "sex", "is", "M", ")", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "height" ], [ "and" ], [ "weight" ], [ "for" ], [ "all" ], [ "male" ], [ "(" ], [ "sex" ], [ "is" ], [ "m" ], [ ")" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "height", "NN" ], [ "and", "CC" ], [ "weight", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "male", "NN" ], [ "(", "(" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "m", "VBN" ], [ ")", ")" ], [ ".", "." ] ], "values": [ "M" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(12) T(1) A(5) C(13) T(1) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "candidate_poll", "query": "SELECT avg(height) , avg(weight) FROM people WHERE sex = 'M'", "query_toks": [ "SELECT", "avg", "(", "height", ")", ",", "avg", "(", "weight", ")", "FROM", "people", "WHERE", "sex", "=", "'M", "'" ], "query_toks_no_value": [ "select", "avg", "(", "height", ")", ",", "avg", "(", "weight", ")", "from", "people", "where", "sex", "=", "value" ], "question": "What are the average height and weight across males (sex is M)?", "question_toks": [ "what", "are", "average", "height", "and", "weight", "across", "male", "(", "sex", "is", "m", ")", "?" ], "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 ] ], [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"M\"", null ] ] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "average", "height", "and", "weight", "across", "males", "(", "sex", "is", "M", ")", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "height" ], [ "and" ], [ "weight" ], [ "across" ], [ "male" ], [ "(" ], [ "sex" ], [ "is" ], [ "m" ], [ ")" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "height", "JJ" ], [ "and", "CC" ], [ "weight", "JJ" ], [ "across", "IN" ], [ "male", "NN" ], [ "(", "(" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "m", "VBN" ], [ ")", ")" ], [ "?", "." ] ], "values": [ "M" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(12) T(1) A(5) C(13) T(1) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "candidate_poll", "query": "SELECT name FROM people WHERE height > 200 OR height < 190", "query_toks": [ "SELECT", "name", "FROM", "people", "WHERE", "height", ">", "200", "OR", "height", "<", "190" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "height", ">", "value", "or", "height", "<", "value" ], "question": "find the names of people who are taller than 200 or lower than 190.", "question_toks": [ "find", "name", "of", "people", "who", "are", "taller", "than", "200", "or", "lower", "than", "190", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 200.0, null ], "or", [ false, 4, [ 0, [ 0, 13, false ], null ], 190.0, null ] ] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "find", "the", "names", "of", "people", "who", "are", "taller", "than", "200", "or", "lower", "than", "190", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "people" ], [ "who" ], [ "are" ], [ "taller" ], [ "than" ], [ "200" ], [ "or" ], [ "lower" ], [ "than" ], [ "190" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "who", "WP" ], [ "are", "VBP" ], [ "taller", "JJR" ], [ "than", "IN" ], [ "200", "CD" ], [ "or", "CC" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "190", "CD" ], [ ".", "." ] ], "values": [ "200", "190" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(1) Filter(5) A(0) C(12) T(1) V(0) Filter(4) A(0) C(12) T(1) V(1)" }, { "db_id": "candidate_poll", "query": "SELECT name FROM people WHERE height > 200 OR height < 190", "query_toks": [ "SELECT", "name", "FROM", "people", "WHERE", "height", ">", "200", "OR", "height", "<", "190" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "height", ">", "value", "or", "height", "<", "value" ], "question": "What are the names of people who have a height greater than 200 or less than 190?", "question_toks": [ "what", "are", "name", "of", "people", "who", "have", "a", "height", "greater", "than", "200", "or", "le", "than", "190", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 200.0, null ], "or", [ false, 4, [ 0, [ 0, 13, false ], null ], 190.0, null ] ] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "people", "who", "have", "a", "height", "greater", "than", "200", "or", "less", "than", "190", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "people" ], [ "who" ], [ "have" ], [ "a" ], [ "height" ], [ "greater" ], [ "than" ], [ "200" ], [ "or" ], [ "le" ], [ "than" ], [ "190" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "who", "WP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "height", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "200", "CD" ], [ "or", "CC" ], [ "le", "JJR" ], [ "than", "IN" ], [ "190", "CD" ], [ "?", "." ] ], "values": [ "200", "190" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(1) Filter(5) A(0) C(12) T(1) V(0) Filter(4) A(0) C(12) T(1) V(1)" }, { "db_id": "candidate_poll", "query": "SELECT avg(weight) , min(weight) , sex FROM people GROUP BY sex", "query_toks": [ "SELECT", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "FROM", "people", "GROUP", "BY", "sex" ], "query_toks_no_value": [ "select", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "from", "people", "group", "by", "sex" ], "question": "Find the average and minimum weight for each gender.", "question_toks": [ "find", "average", "and", "minimum", "weight", "for", "each", "gender", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ], [ 2, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "average", "and", "minimum", "weight", "for", "each", "gender", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "and" ], [ "minimum" ], [ "weight" ], [ "for" ], [ "each" ], [ "gender" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "weight", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "gender", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(5) C(13) T(1) A(2) C(13) T(1) A(0) C(9) T(1)" }, { "db_id": "candidate_poll", "query": "SELECT avg(weight) , min(weight) , sex FROM people GROUP BY sex", "query_toks": [ "SELECT", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "FROM", "people", "GROUP", "BY", "sex" ], "query_toks_no_value": [ "select", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "from", "people", "group", "by", "sex" ], "question": "What are the average and minimum weights for people of each sex?", "question_toks": [ "what", "are", "average", "and", "minimum", "weight", "for", "people", "of", "each", "sex", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ], [ 2, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "average", "and", "minimum", "weights", "for", "people", "of", "each", "sex", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "and" ], [ "minimum" ], [ "weight" ], [ "for" ], [ "people" ], [ "of" ], [ "each" ], [ "sex" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "weight", "NN" ], [ "for", "IN" ], [ "people", "NNS" ], [ "of", "IN" ], [ "each", "DT" ], [ "sex", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(5) C(13) T(1) A(2) C(13) T(1) A(0) C(9) T(1)" }, { "db_id": "candidate_poll", "query": "SELECT t1.name , t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id ORDER BY t2.support_rate DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", ",", "t1.sex", "FROM", "people", "AS", "t1", "JOIN", "candidate", "AS", "t2", "ON", "t1.people_id", "=", "t2.people_id", "ORDER", "BY", "t2.support_rate", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "sex", "from", "people", "as", "t1", "join", "candidate", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "support_rate", "desc", "limit", "value" ], "question": "Find the name and gender of the candidate who got the highest support rate.", "question_toks": [ "find", "name", "and", "gender", "of", "candidate", "who", "got", "highest", "support", "rate", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "gender", "of", "the", "candidate", "who", "got", "the", "highest", "support", "rate", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "gender" ], [ "of" ], [ "candidate" ], [ "who" ], [ "got" ], [ "highest" ], [ "support", "rate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "gender", "NN" ], [ "of", "IN" ], [ "candidate", "NN" ], [ "who", "WP" ], [ "got", "VBD" ], [ "highest", "JJS" ], [ "support", "NN" ], [ "rate", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(10) T(1) A(0) C(9) T(1) Sup(0) A(0) C(5) T(0)" }, { "db_id": "candidate_poll", "query": "SELECT t1.name , t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id ORDER BY t2.support_rate DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", ",", "t1.sex", "FROM", "people", "AS", "t1", "JOIN", "candidate", "AS", "t2", "ON", "t1.people_id", "=", "t2.people_id", "ORDER", "BY", "t2.support_rate", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "sex", "from", "people", "as", "t1", "join", "candidate", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "support_rate", "desc", "limit", "value" ], "question": "What is the name and sex of the candidate with the highest support rate?", "question_toks": [ "what", "is", "name", "and", "sex", "of", "candidate", "with", "highest", "support", "rate", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "sex", "of", "the", "candidate", "with", "the", "highest", "support", "rate", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "sex" ], [ "of" ], [ "candidate" ], [ "with" ], [ "highest" ], [ "support", "rate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "sex", "NN" ], [ "of", "IN" ], [ "candidate", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "support", "NN" ], [ "rate", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(10) T(1) A(0) C(9) T(1) Sup(0) A(0) C(5) T(0)" }, { "db_id": "candidate_poll", "query": "SELECT t1.name , t1.sex , min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex", "query_toks": [ "SELECT", "t1.name", ",", "t1.sex", ",", "min", "(", "oppose_rate", ")", "FROM", "people", "AS", "t1", "JOIN", "candidate", "AS", "t2", "ON", "t1.people_id", "=", "t2.people_id", "GROUP", "BY", "t1.sex" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "sex", ",", "min", "(", "oppose_rate", ")", "from", "people", "as", "t1", "join", "candidate", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "group", "by", "t1", ".", "sex" ], "question": "Find the name of the candidates whose oppose percentage is the lowest for each sex.", "question_toks": [ "find", "name", "of", "candidate", "whose", "oppose", "percentage", "is", "lowest", "for", "each", "sex", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, 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, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 2, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "candidates", "whose", "oppose", "percentage", "is", "the", "lowest", "for", "each", "sex", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "candidate" ], [ "whose" ], [ "oppose" ], [ "percentage" ], [ "is" ], [ "lowest" ], [ "for" ], [ "each" ], [ "sex" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "candidate", "NN" ], [ "whose", "WP$" ], [ "oppose", "JJ" ], [ "percentage", "NN" ], [ "is", "VBZ" ], [ "lowest", "JJS" ], [ "for", "IN" ], [ "each", "DT" ], [ "sex", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(10) T(1) A(0) C(9) T(1) A(2) C(7) T(0)" }, { "db_id": "candidate_poll", "query": "SELECT t1.name , t1.sex , min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex", "query_toks": [ "SELECT", "t1.name", ",", "t1.sex", ",", "min", "(", "oppose_rate", ")", "FROM", "people", "AS", "t1", "JOIN", "candidate", "AS", "t2", "ON", "t1.people_id", "=", "t2.people_id", "GROUP", "BY", "t1.sex" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "sex", ",", "min", "(", "oppose_rate", ")", "from", "people", "as", "t1", "join", "candidate", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "group", "by", "t1", ".", "sex" ], "question": "For each sex, what is the name and sex of the candidate with the oppose rate for their sex?", "question_toks": [ "for", "each", "sex", ",", "what", "is", "name", "and", "sex", "of", "candidate", "with", "oppose", "rate", "for", "their", "sex", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, 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, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 2, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "For", "each", "sex", ",", "what", "is", "the", "name", "and", "sex", "of", "the", "candidate", "with", "the", "oppose", "rate", "for", "their", "sex", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "sex" ], [ "," ], [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "sex" ], [ "of" ], [ "candidate" ], [ "with" ], [ "oppose", "rate" ], [ "for" ], [ "their" ], [ "sex" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "sex", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "sex", "NN" ], [ "of", "IN" ], [ "candidate", "NN" ], [ "with", "IN" ], [ "oppose", "JJ" ], [ "rate", "NN" ], [ "for", "IN" ], [ "their", "PRP$" ], [ "sex", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(10) T(1) A(0) C(9) T(1) A(2) C(7) T(0)" }, { "db_id": "candidate_poll", "query": "SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.sex", "FROM", "people", "AS", "t1", "JOIN", "candidate", "AS", "t2", "ON", "t1.people_id", "=", "t2.people_id", "GROUP", "BY", "t1.sex", "ORDER", "BY", "avg", "(", "t2.unsure_rate", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "sex", "from", "people", "as", "t1", "join", "candidate", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "group", "by", "t1", ".", "sex", "order", "by", "avg", "(", "t2", ".", "unsure_rate", ")", "desc", "limit", "value" ], "question": "which gender got the highest average uncertain ratio.", "question_toks": [ "which", "gender", "got", "highest", "average", "uncertain", "ratio", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "which", "gender", "got", "the", "highest", "average", "uncertain", "ratio", "." ], "question_arg": [ [ "which" ], [ "gender" ], [ "got" ], [ "highest" ], [ "average" ], [ "uncertain" ], [ "ratio" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "gender", "NN" ], [ "got", "VBD" ], [ "highest", "JJS" ], [ "average", "JJ" ], [ "uncertain", "JJ" ], [ "ratio", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(1) Sup(0) A(5) C(8) T(0)" }, { "db_id": "candidate_poll", "query": "SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.sex", "FROM", "people", "AS", "t1", "JOIN", "candidate", "AS", "t2", "ON", "t1.people_id", "=", "t2.people_id", "GROUP", "BY", "t1.sex", "ORDER", "BY", "avg", "(", "t2.unsure_rate", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "sex", "from", "people", "as", "t1", "join", "candidate", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "group", "by", "t1", ".", "sex", "order", "by", "avg", "(", "t2", ".", "unsure_rate", ")", "desc", "limit", "value" ], "question": "What is the sex of the candidate who had the highest unsure rate?", "question_toks": [ "what", "is", "sex", "of", "candidate", "who", "had", "highest", "unsure", "rate", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "sex", "of", "the", "candidate", "who", "had", "the", "highest", "unsure", "rate", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "sex" ], [ "of" ], [ "candidate" ], [ "who" ], [ "had" ], [ "highest" ], [ "unsure", "rate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "sex", "NN" ], [ "of", "IN" ], [ "candidate", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "highest", "JJS" ], [ "unsure", "JJ" ], [ "rate", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(1) Sup(0) A(5) C(8) T(0)" }, { "db_id": "candidate_poll", "query": "SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate)", "query_toks": [ "SELECT", "name", "FROM", "people", "WHERE", "people_id", "NOT", "IN", "(", "SELECT", "people_id", "FROM", "candidate", ")" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "candidate", ")" ], "question": "what are the names of people who did not participate in the candidate election.", "question_toks": [ "what", "are", "name", "of", "people", "who", "did", "not", "participate", "in", "candidate", "election", "." ], "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": [ [ true, 8, [ 0, [ 0, 9, 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": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "what", "are", "the", "names", "of", "people", "who", "did", "not", "participate", "in", "the", "candidate", "election", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "people" ], [ "who" ], [ "did" ], [ "not" ], [ "participate" ], [ "in" ], [ "candidate" ], [ "election" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "participate", "VB" ], [ "in", "IN" ], [ "candidate", "JJ" ], [ "election", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(19) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "candidate_poll", "query": "SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate)", "query_toks": [ "SELECT", "name", "FROM", "people", "WHERE", "people_id", "NOT", "IN", "(", "SELECT", "people_id", "FROM", "candidate", ")" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "candidate", ")" ], "question": "Give the names of people who did not participate in the candidate election.", "question_toks": [ "give", "name", "of", "people", "who", "did", "not", "participate", "in", "candidate", "election", "." ], "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": [ [ true, 8, [ 0, [ 0, 9, 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": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "Give", "the", "names", "of", "people", "who", "did", "not", "participate", "in", "the", "candidate", "election", "." ], "question_arg": [ [ "give" ], [ "name" ], [ "of" ], [ "people" ], [ "who" ], [ "did" ], [ "not" ], [ "participate" ], [ "in" ], [ "candidate" ], [ "election" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "participate", "VB" ], [ "in", "IN" ], [ "candidate", "JJ" ], [ "election", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(19) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "candidate_poll", "query": "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t2.support_rate < t2.oppose_rate", "query_toks": [ "SELECT", "t1.name", "FROM", "people", "AS", "t1", "JOIN", "candidate", "AS", "t2", "ON", "t1.people_id", "=", "t2.people_id", "WHERE", "t2.support_rate", "<", "t2.oppose_rate" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "candidate", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "support_rate", "<", "t2", ".", "oppose_rate" ], "question": "Find the names of the candidates whose support percentage is lower than their oppose rate.", "question_toks": [ "find", "name", "of", "candidate", "whose", "support", "percentage", "is", "lower", "than", "their", "oppose", "rate", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, 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, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 5, false ], null ], [ 0, 7, false ], null ] ] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "candidates", "whose", "support", "percentage", "is", "lower", "than", "their", "oppose", "rate", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "candidate" ], [ "whose" ], [ "support" ], [ "percentage" ], [ "is" ], [ "lower" ], [ "than" ], [ "their" ], [ "oppose", "rate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "candidate", "NN" ], [ "whose", "WP$" ], [ "support", "NN" ], [ "percentage", "NN" ], [ "is", "VBZ" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "their", "PRP$" ], [ "oppose", "JJ" ], [ "rate", "NN" ], [ ".", "." ] ], "values": [ "[0, 7, False]" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(4) A(0) C(5) T(0) V(0)" }, { "db_id": "candidate_poll", "query": "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t2.support_rate < t2.oppose_rate", "query_toks": [ "SELECT", "t1.name", "FROM", "people", "AS", "t1", "JOIN", "candidate", "AS", "t2", "ON", "t1.people_id", "=", "t2.people_id", "WHERE", "t2.support_rate", "<", "t2.oppose_rate" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "candidate", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "support_rate", "<", "t2", ".", "oppose_rate" ], "question": "What are the names of candidates who have a lower support rate than oppose rate?", "question_toks": [ "what", "are", "name", "of", "candidate", "who", "have", "a", "lower", "support", "rate", "than", "oppose", "rate", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, 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, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 5, false ], null ], [ 0, 7, false ], null ] ] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "candidates", "who", "have", "a", "lower", "support", "rate", "than", "oppose", "rate", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "candidate" ], [ "who" ], [ "have" ], [ "a" ], [ "lower" ], [ "support", "rate" ], [ "than" ], [ "oppose", "rate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "candidate", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "lower", "JJR" ], [ "support", "NN" ], [ "rate", "NN" ], [ "than", "IN" ], [ "oppose", "JJ" ], [ "rate", "NN" ], [ "?", "." ] ], "values": [ "[0, 7, False]" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(4) A(0) C(5) T(0) V(0)" }, { "db_id": "candidate_poll", "query": "SELECT count(*) , sex FROM people WHERE weight > 85 GROUP BY sex", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "sex", "FROM", "people", "WHERE", "weight", ">", "85", "GROUP", "BY", "sex" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "sex", "from", "people", "where", "weight", ">", "value", "group", "by", "sex" ], "question": "how many people are there whose weight is higher than 85 for each gender?", "question_toks": [ "how", "many", "people", "are", "there", "whose", "weight", "is", "higher", "than", "85", "for", "each", "gender", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], 85.0, null ] ] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "how", "many", "people", "are", "there", "whose", "weight", "is", "higher", "than", "85", "for", "each", "gender", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "people" ], [ "are" ], [ "there" ], [ "whose" ], [ "weight" ], [ "is" ], [ "higher" ], [ "than" ], [ "85" ], [ "for" ], [ "each" ], [ "gender" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "people", "NNS" ], [ "are", "VBP" ], [ "there", "RB" ], [ "whose", "WP$" ], [ "weight", "NN" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "85", "CD" ], [ "for", "IN" ], [ "each", "DT" ], [ "gender", "NN" ], [ "?", "." ] ], "values": [ "85" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(1) A(0) C(9) T(1) Filter(5) A(0) C(13) T(1) V(0)" }, { "db_id": "candidate_poll", "query": "SELECT count(*) , sex FROM people WHERE weight > 85 GROUP BY sex", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "sex", "FROM", "people", "WHERE", "weight", ">", "85", "GROUP", "BY", "sex" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "sex", "from", "people", "where", "weight", ">", "value", "group", "by", "sex" ], "question": "Count the number of people of each sex who have a weight higher than 85.", "question_toks": [ "count", "number", "of", "people", "of", "each", "sex", "who", "have", "a", "weight", "higher", "than", "85", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], 85.0, null ] ] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "people", "of", "each", "sex", "who", "have", "a", "weight", "higher", "than", "85", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "people" ], [ "of" ], [ "each" ], [ "sex" ], [ "who" ], [ "have" ], [ "a" ], [ "weight" ], [ "higher" ], [ "than" ], [ "85" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "of", "IN" ], [ "each", "DT" ], [ "sex", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "weight", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "85", "CD" ], [ ".", "." ] ], "values": [ "85" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(1) A(0) C(9) T(1) Filter(5) A(0) C(13) T(1) V(0)" }, { "db_id": "candidate_poll", "query": "SELECT max(support_rate) , min(consider_rate) , min(oppose_rate) FROM candidate", "query_toks": [ "SELECT", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "FROM", "candidate" ], "query_toks_no_value": [ "select", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "from", "candidate" ], "question": "find the highest support percentage, lowest consider rate and oppose rate of all candidates.", "question_toks": [ "find", "highest", "support", "percentage", ",", "lowest", "consider", "rate", "and", "oppose", "rate", "of", "all", "candidate", "." ], "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, 6, false ], null ] ], [ 2, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "find", "the", "highest", "support", "percentage", ",", "lowest", "consider", "rate", "and", "oppose", "rate", "of", "all", "candidates", "." ], "question_arg": [ [ "find" ], [ "highest" ], [ "support" ], [ "percentage" ], [ "," ], [ "lowest" ], [ "consider", "rate" ], [ "and" ], [ "oppose", "rate" ], [ "of" ], [ "all" ], [ "candidate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "highest", "JJS" ], [ "support", "NN" ], [ "percentage", "NN" ], [ ",", "," ], [ "lowest", "JJS" ], [ "consider", "NN" ], [ "rate", "NN" ], [ "and", "CC" ], [ "oppose", "JJ" ], [ "rate", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "candidate", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(1) C(5) T(0) A(2) C(6) T(0) A(2) C(7) T(0)" }, { "db_id": "candidate_poll", "query": "SELECT max(support_rate) , min(consider_rate) , min(oppose_rate) FROM candidate", "query_toks": [ "SELECT", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "FROM", "candidate" ], "query_toks_no_value": [ "select", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "from", "candidate" ], "question": "Return the maximum support rate, minimum consider rate, and minimum oppose rate across all candidates?", "question_toks": [ "return", "maximum", "support", "rate", ",", "minimum", "consider", "rate", ",", "and", "minimum", "oppose", "rate", "across", "all", "candidate", "?" ], "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, 6, false ], null ] ], [ 2, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "Return", "the", "maximum", "support", "rate", ",", "minimum", "consider", "rate", ",", "and", "minimum", "oppose", "rate", "across", "all", "candidates", "?" ], "question_arg": [ [ "return" ], [ "maximum" ], [ "support", "rate" ], [ "," ], [ "minimum" ], [ "consider", "rate" ], [ "," ], [ "and" ], [ "minimum" ], [ "oppose", "rate" ], [ "across" ], [ "all" ], [ "candidate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "maximum", "JJ" ], [ "support", "NN" ], [ "rate", "NN" ], [ ",", "," ], [ "minimum", "JJ" ], [ "consider", "NN" ], [ "rate", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "oppose", "JJ" ], [ "rate", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "candidate", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(1) C(5) T(0) A(2) C(6) T(0) A(2) C(7) T(0)" }, { "db_id": "candidate_poll", "query": "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t1.sex = 'F' ORDER BY t1.name", "query_toks": [ "SELECT", "t1.name", "FROM", "people", "AS", "t1", "JOIN", "candidate", "AS", "t2", "ON", "t1.people_id", "=", "t2.people_id", "WHERE", "t1.sex", "=", "'F", "'", "ORDER", "BY", "t1.name" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "candidate", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "sex", "=", "value", "order", "by", "t1", ".", "name" ], "question": "list all female (sex is F) candidate names in the alphabetical order.", "question_toks": [ "list", "all", "female", "(", "sex", "is", "f", ")", "candidate", "name", "in", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "list", "all", "female", "(", "sex", "is", "F", ")", "candidate", "names", "in", "the", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "female" ], [ "(" ], [ "sex" ], [ "is" ], [ "f" ], [ ")" ], [ "candidate" ], [ "name" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "female", "NN" ], [ "(", "(" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "f", "VBN" ], [ ")", ")" ], [ "candidate", "NN" ], [ "name", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "F" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(10) T(1) Filter(0) Filter(18) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(9) T(1) V(0) Order(1) A(0) C(10) T(1)" }, { "db_id": "candidate_poll", "query": "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t1.sex = 'F' ORDER BY t1.name", "query_toks": [ "SELECT", "t1.name", "FROM", "people", "AS", "t1", "JOIN", "candidate", "AS", "t2", "ON", "t1.people_id", "=", "t2.people_id", "WHERE", "t1.sex", "=", "'F", "'", "ORDER", "BY", "t1.name" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "candidate", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "sex", "=", "value", "order", "by", "t1", ".", "name" ], "question": "What are the names of all female candidates in alphabetical order (sex is F)?", "question_toks": [ "what", "are", "name", "of", "all", "female", "candidate", "in", "alphabetical", "order", "(", "sex", "is", "f", ")", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "female", "candidates", "in", "alphabetical", "order", "(", "sex", "is", "F", ")", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "female" ], [ "candidate" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "(" ], [ "sex" ], [ "is" ], [ "f" ], [ ")" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "female", "JJ" ], [ "candidate", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "(", "(" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "f", "VBN" ], [ ")", ")" ], [ "?", "." ] ], "values": [ "F" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(10) T(1) Filter(0) Filter(18) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(9) T(1) V(0) Order(1) A(0) C(10) T(1)" }, { "db_id": "candidate_poll", "query": "SELECT name FROM people WHERE height < (SELECT avg(height) FROM people)", "query_toks": [ "SELECT", "name", "FROM", "people", "WHERE", "height", "<", "(", "SELECT", "avg", "(", "height", ")", "FROM", "people", ")" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "height", "<", "(", "select", "avg", "(", "height", ")", "from", "people", ")" ], "question": "find the name of people whose height is lower than the average.", "question_toks": [ "find", "name", "of", "people", "whose", "height", "is", "lower", "than", "average", "." ], "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, 4, [ 0, [ 0, 13, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "find", "the", "name", "of", "people", "whose", "height", "is", "lower", "than", "the", "average", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "people" ], [ "whose" ], [ "height" ], [ "is" ], [ "lower" ], [ "than" ], [ "average" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "whose", "WP$" ], [ "height", "NN" ], [ "is", "VBZ" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(12) A(0) C(12) T(1) Root(5) Sel(0) N(0) A(5) C(12) T(1)" }, { "db_id": "candidate_poll", "query": "SELECT name FROM people WHERE height < (SELECT avg(height) FROM people)", "query_toks": [ "SELECT", "name", "FROM", "people", "WHERE", "height", "<", "(", "SELECT", "avg", "(", "height", ")", "FROM", "people", ")" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "height", "<", "(", "select", "avg", "(", "height", ")", "from", "people", ")" ], "question": "What are the names of people who are shorter than average?", "question_toks": [ "what", "are", "name", "of", "people", "who", "are", "shorter", "than", "average", "?" ], "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, 4, [ 0, [ 0, 13, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "people", "who", "are", "shorter", "than", "average", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "people" ], [ "who" ], [ "are" ], [ "shorter" ], [ "than" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "who", "WP" ], [ "are", "VBP" ], [ "shorter", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(12) A(0) C(12) T(1) Root(5) Sel(0) N(0) A(5) C(12) T(1)" }, { "db_id": "candidate_poll", "query": "SELECT * FROM people", "query_toks": [ "SELECT", "*", "FROM", "people" ], "query_toks_no_value": [ "select", "*", "from", "people" ], "question": "List all info about all people.", "question_toks": [ "list", "all", "info", "about", "all", "people", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "List", "all", "info", "about", "all", "people", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "info" ], [ "about" ], [ "all" ], [ "people" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "info", "VBP" ], [ "about", "IN" ], [ "all", "DT" ], [ "people", "NNS" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(0) T(1)" }, { "db_id": "candidate_poll", "query": "SELECT * FROM people", "query_toks": [ "SELECT", "*", "FROM", "people" ], "query_toks_no_value": [ "select", "*", "from", "people" ], "question": "What is all the information about all people?", "question_toks": [ "what", "is", "all", "information", "about", "all", "people", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "people id", "sex", "name", "date of birth", "height", "weight" ], "table_names": [ "candidate", "people" ], "col_set": [ "*", "candidate id", "people id", "poll source", "date", "support rate", "consider rate", "oppose rate", "unsure rate", "sex", "name", "date of birth", "height", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 9, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "all", "the", "information", "about", "all", "people", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "all" ], [ "information" ], [ "about" ], [ "all" ], [ "people" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "all", "DT" ], [ "people", "NNS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(0) T(1)" }, { "db_id": "movie_1", "query": "SELECT title FROM Movie WHERE director = 'Steven Spielberg'", "query_toks": [ "SELECT", "title", "FROM", "Movie", "WHERE", "director", "=", "'Steven", "Spielberg", "'" ], "query_toks_no_value": [ "select", "title", "from", "movie", "where", "director", "=", "value" ], "question": "Find the titles of all movies directed by steven spielberg.", "question_toks": [ "find", "title", "of", "all", "movie", "directed", "by", "steven", "spielberg", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Steven Spielberg\"", null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "titles", "of", "all", "movies", "directed", "by", "steven", "spielberg", "." ], "question_arg": [ [ "find" ], [ "title" ], [ "of" ], [ "all" ], [ "movie" ], [ "directed" ], [ "by" ], [ "steven" ], [ "spielberg" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "directed", "VBN" ], [ "by", "IN" ], [ "steven", "JJ" ], [ "spielberg", "NN" ], [ ".", "." ] ], "values": [ "Steven Spielberg" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "movie_1", "query": "SELECT title FROM Movie WHERE director = 'Steven Spielberg'", "query_toks": [ "SELECT", "title", "FROM", "Movie", "WHERE", "director", "=", "'Steven", "Spielberg", "'" ], "query_toks_no_value": [ "select", "title", "from", "movie", "where", "director", "=", "value" ], "question": "What are the names of all movies directed by Steven Spielberg?", "question_toks": [ "what", "are", "name", "of", "all", "movie", "directed", "by", "steven", "spielberg", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Steven Spielberg\"", null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "movies", "directed", "by", "Steven", "Spielberg", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "movie" ], [ "directed" ], [ "by" ], [ "steven" ], [ "spielberg" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "directed", "VBN" ], [ "by", "IN" ], [ "steven", "JJ" ], [ "spielberg", "NNS" ], [ "?", "." ] ], "values": [ "Steven Spielberg" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "movie_1", "query": "SELECT title FROM Movie WHERE director = 'James Cameron' AND YEAR > 2000", "query_toks": [ "SELECT", "title", "FROM", "Movie", "WHERE", "director", "=", "'James", "Cameron", "'", "AND", "YEAR", ">", "2000" ], "query_toks_no_value": [ "select", "title", "from", "movie", "where", "director", "=", "value", "and", "year", ">", "value" ], "question": "What is the name of the movie produced after 2000 and directed by James Cameron?", "question_toks": [ "what", "is", "name", "of", "movie", "produced", "after", "year", "and", "directed", "by", "james", "cameron", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"James Cameron\"", null ], "and", [ false, 3, [ 0, [ 0, 3, false ], null ], 2000.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "movie", "produced", "after", "2000", "and", "directed", "by", "James", "Cameron", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "movie" ], [ "produced" ], [ "after" ], [ "year" ], [ "and" ], [ "directed" ], [ "by" ], [ "james" ], [ "cameron" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ "produced", "VBN" ], [ "after", "IN" ], [ "2000", "CD" ], [ "and", "CC" ], [ "directed", "VBN" ], [ "by", "IN" ], [ "james", "NNS" ], [ "cameron", "NNS" ], [ "?", "." ] ], "values": [ "James Cameron", "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(4) T(0) V(0) Filter(5) A(0) C(3) T(0) V(1)" }, { "db_id": "movie_1", "query": "SELECT title FROM Movie WHERE director = 'James Cameron' AND YEAR > 2000", "query_toks": [ "SELECT", "title", "FROM", "Movie", "WHERE", "director", "=", "'James", "Cameron", "'", "AND", "YEAR", ">", "2000" ], "query_toks_no_value": [ "select", "title", "from", "movie", "where", "director", "=", "value", "and", "year", ">", "value" ], "question": "What are the titles of all movies that James Cameron directed after 2000?", "question_toks": [ "what", "are", "title", "of", "all", "movie", "that", "james", "cameron", "directed", "after", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"James Cameron\"", null ], "and", [ false, 3, [ 0, [ 0, 3, false ], null ], 2000.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "all", "movies", "that", "James", "Cameron", "directed", "after", "2000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "all" ], [ "movie" ], [ "that" ], [ "james" ], [ "cameron" ], [ "directed" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "that", "IN" ], [ "james", "VBZ" ], [ "cameron", "RB" ], [ "directed", "VBN" ], [ "after", "IN" ], [ "2000", "CD" ], [ "?", "." ] ], "values": [ "James Cameron", "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(4) T(0) V(0) Filter(5) A(0) C(3) T(0) V(1)" }, { "db_id": "movie_1", "query": "SELECT count(*) FROM Movie WHERE YEAR < 2000", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Movie", "WHERE", "YEAR", "<", "2000" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "movie", "where", "year", "<", "value" ], "question": "How many movies were made before 2000?", "question_toks": [ "how", "many", "movie", "were", "made", "before", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 3, false ], null ], 2000.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "movies", "were", "made", "before", "2000", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "movie" ], [ "were" ], [ "made" ], [ "before" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "movie", "NN" ], [ "were", "VBD" ], [ "made", "VBN" ], [ "before", "IN" ], [ "2000", "CD" ], [ "?", "." ] ], "values": [ "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(4) A(0) C(3) T(0) V(0)" }, { "db_id": "movie_1", "query": "SELECT count(*) FROM Movie WHERE YEAR < 2000", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Movie", "WHERE", "YEAR", "<", "2000" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "movie", "where", "year", "<", "value" ], "question": "How many movies were made before 2000?", "question_toks": [ "how", "many", "movie", "were", "made", "before", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 3, false ], null ], 2000.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "movies", "were", "made", "before", "2000", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "movie" ], [ "were" ], [ "made" ], [ "before" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "movie", "NN" ], [ "were", "VBD" ], [ "made", "VBN" ], [ "before", "IN" ], [ "2000", "CD" ], [ "?", "." ] ], "values": [ "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(4) A(0) C(3) T(0) V(0)" }, { "db_id": "movie_1", "query": "SELECT director FROM Movie WHERE title = 'Avatar'", "query_toks": [ "SELECT", "director", "FROM", "Movie", "WHERE", "title", "=", "'Avatar", "'" ], "query_toks_no_value": [ "select", "director", "from", "movie", "where", "title", "=", "value" ], "question": "Who is the director of movie Avatar?", "question_toks": [ "who", "is", "director", "of", "movie", "avatar", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Avatar\"", null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Who", "is", "the", "director", "of", "movie", "Avatar", "?" ], "question_arg": [ [ "who" ], [ "is" ], [ "director" ], [ "of" ], [ "movie" ], [ "avatar" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "director", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ "avatar", "NN" ], [ "?", "." ] ], "values": [ "Avatar" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "movie_1", "query": "SELECT director FROM Movie WHERE title = 'Avatar'", "query_toks": [ "SELECT", "director", "FROM", "Movie", "WHERE", "title", "=", "'Avatar", "'" ], "query_toks_no_value": [ "select", "director", "from", "movie", "where", "title", "=", "value" ], "question": "Who directed Avatar?", "question_toks": [ "who", "directed", "avatar", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Avatar\"", null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Who", "directed", "Avatar", "?" ], "question_arg": [ [ "who" ], [ "directed" ], [ "avatar" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "directed", "VBD" ], [ "avatar", "NN" ], [ "?", "." ] ], "values": [ "Avatar" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "movie_1", "query": "SELECT count(*) FROM Reviewer", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Reviewer" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "reviewer" ], "question": "How many reviewers listed?", "question_toks": [ "how", "many", "reviewer", "listed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "reviewers", "listed", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "reviewer" ], [ "listed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "reviewer", "NN" ], [ "listed", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "movie_1", "query": "SELECT count(*) FROM Reviewer", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Reviewer" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "reviewer" ], "question": "How many reviewers are there?", "question_toks": [ "how", "many", "reviewer", "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": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "reviewers", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "reviewer" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "reviewer", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "movie_1", "query": "SELECT rID FROM Reviewer WHERE name LIKE \"%Mike%\"", "query_toks": [ "SELECT", "rID", "FROM", "Reviewer", "WHERE", "name", "LIKE", "``", "%", "Mike", "%", "''" ], "query_toks_no_value": [ "select", "rid", "from", "reviewer", "where", "name", "like", "value" ], "question": "What is the id of the reviewer whose name has substring \u201cMike\u201d?", "question_toks": [ "what", "is", "id", "of", "reviewer", "whose", "name", "ha", "substring", "\u201cmike\u201d", "?" ], "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, 6, false ], null ], "\"%Mike%\"", null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "reviewer", "whose", "name", "has", "substring", "\u201cMike\u201d", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "reviewer" ], [ "whose" ], [ "name" ], [ "ha" ], [ "substring" ], [ "\u201cmike\u201d" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "reviewer", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "ha", "NN" ], [ "substring", "VBG" ], [ "\u201cmike\u201d", "NNS" ], [ "?", "." ] ], "values": [ "Mike" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(9) A(0) C(6) T(1) V(0)" }, { "db_id": "movie_1", "query": "SELECT rID FROM Reviewer WHERE name LIKE \"%Mike%\"", "query_toks": [ "SELECT", "rID", "FROM", "Reviewer", "WHERE", "name", "LIKE", "``", "%", "Mike", "%", "''" ], "query_toks_no_value": [ "select", "rid", "from", "reviewer", "where", "name", "like", "value" ], "question": "What is the id of the reviewer whose name includes the word \"Mike\"?", "question_toks": [ "what", "is", "id", "of", "reviewer", "whose", "name", "includes", "word", "'", "mike", "'", "?" ], "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, 6, false ], null ], "\"%Mike%\"", null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "reviewer", "whose", "name", "includes", "the", "word", "``", "Mike", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "reviewer" ], [ "whose" ], [ "name" ], [ "includes" ], [ "word" ], [ "'" ], [ "mike" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "reviewer", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "includes", "VBZ" ], [ "word", "NN" ], [ "'", "''" ], [ "mike", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Mike" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(9) A(0) C(6) T(1) V(0)" }, { "db_id": "movie_1", "query": "SELECT rID FROM Reviewer WHERE name = \"Daniel Lewis\"", "query_toks": [ "SELECT", "rID", "FROM", "Reviewer", "WHERE", "name", "=", "``", "Daniel", "Lewis", "''" ], "query_toks_no_value": [ "select", "rid", "from", "reviewer", "where", "name", "=", "value" ], "question": "What is the reviewer id of Daniel Lewis?", "question_toks": [ "what", "is", "reviewer", "id", "of", "daniel", "lewis", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Daniel Lewis\"", null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "reviewer", "id", "of", "Daniel", "Lewis", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "reviewer", "id" ], [ "of" ], [ "daniel" ], [ "lewis" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "reviewer", "JJR" ], [ "id", "NN" ], [ "of", "IN" ], [ "daniel", "NN" ], [ "lewis", "NN" ], [ "?", "." ] ], "values": [ "Daniel Lewis" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "movie_1", "query": "SELECT rID FROM Reviewer WHERE name = \"Daniel Lewis\"", "query_toks": [ "SELECT", "rID", "FROM", "Reviewer", "WHERE", "name", "=", "``", "Daniel", "Lewis", "''" ], "query_toks_no_value": [ "select", "rid", "from", "reviewer", "where", "name", "=", "value" ], "question": "What is the id of the reviewer named Daniel Lewis?", "question_toks": [ "what", "is", "id", "of", "reviewer", "named", "daniel", "lewis", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Daniel Lewis\"", null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "reviewer", "named", "Daniel", "Lewis", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "reviewer" ], [ "named" ], [ "daniel" ], [ "lewis" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "reviewer", "NN" ], [ "named", "VBN" ], [ "daniel", "NN" ], [ "lewis", "NN" ], [ "?", "." ] ], "values": [ "Daniel Lewis" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "movie_1", "query": "SELECT count(*) FROM Rating WHERE stars > 3", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Rating", "WHERE", "stars", ">", "3" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "rating", "where", "stars", ">", "value" ], "question": "What is the total number of ratings that has more than 3 stars?", "question_toks": [ "what", "is", "total", "number", "of", "rating", "that", "ha", "more", "than", "3", "star", "?" ], "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, 9, false ], null ], 3.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "ratings", "that", "has", "more", "than", "3", "stars", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "rating" ], [ "that" ], [ "ha" ], [ "more" ], [ "than" ], [ "3" ], [ "star" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "rating", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "star", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(5) A(0) C(7) T(2) V(0)" }, { "db_id": "movie_1", "query": "SELECT count(*) FROM Rating WHERE stars > 3", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Rating", "WHERE", "stars", ">", "3" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "rating", "where", "stars", ">", "value" ], "question": "How many movie ratings have more than 3 stars?", "question_toks": [ "how", "many", "movie", "rating", "have", "more", "than", "3", "star", "?" ], "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, 9, false ], null ], 3.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "movie", "ratings", "have", "more", "than", "3", "stars", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "movie" ], [ "rating" ], [ "have" ], [ "more" ], [ "than" ], [ "3" ], [ "star" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "movie", "NN" ], [ "rating", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "star", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(5) A(0) C(7) T(2) V(0)" }, { "db_id": "movie_1", "query": "SELECT max(stars) , min(stars) FROM Rating", "query_toks": [ "SELECT", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "FROM", "Rating" ], "query_toks_no_value": [ "select", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "from", "rating" ], "question": "What is the lowest and highest rating star?", "question_toks": [ "what", "is", "lowest", "and", "highest", "rating", "star", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 9, false ], null ] ], [ 2, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "lowest", "and", "highest", "rating", "star", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "lowest" ], [ "and" ], [ "highest" ], [ "rating", "star" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "lowest", "JJS" ], [ "and", "CC" ], [ "highest", "JJS" ], [ "rating", "NN" ], [ "star", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(7) T(2) A(2) C(7) T(2)" }, { "db_id": "movie_1", "query": "SELECT max(stars) , min(stars) FROM Rating", "query_toks": [ "SELECT", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "FROM", "Rating" ], "query_toks_no_value": [ "select", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "from", "rating" ], "question": "What is the maximum and mininum number of stars a rating can receive?", "question_toks": [ "what", "is", "maximum", "and", "mininum", "number", "of", "star", "a", "rating", "can", "receive", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 9, false ], null ] ], [ 2, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "maximum", "and", "mininum", "number", "of", "stars", "a", "rating", "can", "receive", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "and" ], [ "mininum" ], [ "number" ], [ "of" ], [ "star" ], [ "a" ], [ "rating" ], [ "can" ], [ "receive" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "mininum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "star", "NN" ], [ "a", "DT" ], [ "rating", "NN" ], [ "can", "MD" ], [ "receive", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(7) T(2) A(2) C(7) T(2)" }, { "db_id": "movie_1", "query": "SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year", "query_toks": [ "SELECT", "DISTINCT", "YEAR", "FROM", "Movie", "AS", "T1", "JOIN", "Rating", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.stars", ">", "=", "4", "ORDER", "BY", "T1.year" ], "query_toks_no_value": [ "select", "distinct", "year", "from", "movie", "as", "t1", "join", "rating", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "stars", ">", "=", "value", "order", "by", "t1", ".", "year" ], "question": "Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year.", "question_toks": [ "find", "all", "year", "that", "have", "a", "movie", "that", "received", "a", "rating", "of", "4", "or", "5", ",", "and", "sort", "them", "in", "increasing", "order", "of", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 9, false ], null ], 4.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Find", "all", "years", "that", "have", "a", "movie", "that", "received", "a", "rating", "of", "4", "or", "5", ",", "and", "sort", "them", "in", "increasing", "order", "of", "year", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "year" ], [ "that" ], [ "have" ], [ "a" ], [ "movie" ], [ "that" ], [ "received" ], [ "a" ], [ "rating" ], [ "of" ], [ "4" ], [ "or" ], [ "5" ], [ "," ], [ "and" ], [ "sort" ], [ "them" ], [ "in" ], [ "increasing" ], [ "order" ], [ "of" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "year", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "received", "VBD" ], [ "a", "DT" ], [ "rating", "NN" ], [ "of", "IN" ], [ "4", "CD" ], [ "or", "CC" ], [ "5", "CD" ], [ ",", "," ], [ "and", "CC" ], [ "sort", "VB" ], [ "them", "PRP" ], [ "in", "IN" ], [ "increasing", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "year", "NN" ], [ ".", "." ] ], "values": [ "4", "5" ], "rule_label": "Root1(3) Root(1) Sel(1) N(0) A(0) C(3) T(0) Filter(7) A(0) C(7) T(2) V(0) Order(1) A(0) C(3) T(0)" }, { "db_id": "movie_1", "query": "SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year", "query_toks": [ "SELECT", "DISTINCT", "YEAR", "FROM", "Movie", "AS", "T1", "JOIN", "Rating", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.stars", ">", "=", "4", "ORDER", "BY", "T1.year" ], "query_toks_no_value": [ "select", "distinct", "year", "from", "movie", "as", "t1", "join", "rating", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "stars", ">", "=", "value", "order", "by", "t1", ".", "year" ], "question": "In what years did a movie receive a 4 or 5 star rating, and list the years from oldest to most recently?", "question_toks": [ "in", "what", "year", "did", "a", "movie", "receive", "a", "4", "or", "5", "star", "rating", ",", "and", "list", "year", "from", "oldest", "to", "most", "recently", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 9, false ], null ], 4.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "In", "what", "years", "did", "a", "movie", "receive", "a", "4", "or", "5", "star", "rating", ",", "and", "list", "the", "years", "from", "oldest", "to", "most", "recently", "?" ], "question_arg": [ [ "in" ], [ "what" ], [ "year" ], [ "did" ], [ "a" ], [ "movie" ], [ "receive" ], [ "a" ], [ "4" ], [ "or" ], [ "5" ], [ "rating", "star" ], [ "," ], [ "and" ], [ "list" ], [ "year" ], [ "from" ], [ "oldest" ], [ "to" ], [ "most" ], [ "recently" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "what", "WP" ], [ "year", "NN" ], [ "did", "VBD" ], [ "a", "DT" ], [ "movie", "NN" ], [ "receive", "VBP" ], [ "a", "DT" ], [ "4", "CD" ], [ "or", "CC" ], [ "5", "CD" ], [ "star", "NN" ], [ "rating", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "list", "JJ" ], [ "year", "NN" ], [ "from", "IN" ], [ "oldest", "JJS" ], [ "to", "TO" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "?", "." ] ], "values": [ "4", "5" ], "rule_label": "Root1(3) Root(1) Sel(1) N(0) A(0) C(3) T(0) Filter(7) A(0) C(7) T(2) V(0) Order(1) A(0) C(3) T(0)" }, { "db_id": "movie_1", "query": "SELECT T1.director , T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars = 5", "query_toks": [ "SELECT", "T1.director", ",", "T1.title", "FROM", "Movie", "AS", "T1", "JOIN", "Rating", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.stars", "=", "5" ], "query_toks_no_value": [ "select", "t1", ".", "director", ",", "t1", ".", "title", "from", "movie", "as", "t1", "join", "rating", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "stars", "=", "value" ], "question": "What are the names of directors who directed movies with 5 star rating? Also return the title of these movies.", "question_toks": [ "what", "are", "name", "of", "director", "who", "directed", "movie", "with", "5", "star", "rating", "?", "also", "return", "title", "of", "these", "movie", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, 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 ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], 5.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "directors", "who", "directed", "movies", "with", "5", "star", "rating", "?", "Also", "return", "the", "title", "of", "these", "movies", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "director" ], [ "who" ], [ "directed" ], [ "movie" ], [ "with" ], [ "5" ], [ "rating", "star" ], [ "?" ], [ "also" ], [ "return" ], [ "title" ], [ "of" ], [ "these" ], [ "movie" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "director", "NN" ], [ "who", "WP" ], [ "directed", "VBD" ], [ "movie", "NN" ], [ "with", "IN" ], [ "5", "CD" ], [ "star", "NN" ], [ "rating", "NN" ], [ "?", "." ], [ "also", "RB" ], [ "return", "VBP" ], [ "title", "NN" ], [ "of", "IN" ], [ "these", "DT" ], [ "movie", "NN" ], [ ".", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(0) A(0) C(2) T(0) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "movie_1", "query": "SELECT T1.director , T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars = 5", "query_toks": [ "SELECT", "T1.director", ",", "T1.title", "FROM", "Movie", "AS", "T1", "JOIN", "Rating", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.stars", "=", "5" ], "query_toks_no_value": [ "select", "t1", ".", "director", ",", "t1", ".", "title", "from", "movie", "as", "t1", "join", "rating", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "stars", "=", "value" ], "question": "What are the names of the directors who created a movie with a 5 star rating, and what was the name of those movies?", "question_toks": [ "what", "are", "name", "of", "director", "who", "created", "a", "movie", "with", "a", "5", "star", "rating", ",", "and", "what", "wa", "name", "of", "those", "movie", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, 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 ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], 5.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "directors", "who", "created", "a", "movie", "with", "a", "5", "star", "rating", ",", "and", "what", "was", "the", "name", "of", "those", "movies", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "director" ], [ "who" ], [ "created" ], [ "a" ], [ "movie" ], [ "with" ], [ "a" ], [ "5" ], [ "rating", "star" ], [ "," ], [ "and" ], [ "what" ], [ "wa" ], [ "name" ], [ "of" ], [ "those" ], [ "movie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "director", "NN" ], [ "who", "WP" ], [ "created", "VBD" ], [ "a", "DT" ], [ "movie", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "5", "CD" ], [ "star", "NN" ], [ "rating", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "what", "WP" ], [ "wa", "VBD" ], [ "name", "NN" ], [ "of", "IN" ], [ "those", "DT" ], [ "movie", "NN" ], [ "?", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(0) A(0) C(2) T(0) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "movie_1", "query": "SELECT T2.name , avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name", "query_toks": [ "SELECT", "T2.name", ",", "avg", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "GROUP", "BY", "T2.name" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "avg", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "group", "by", "t2", ".", "name" ], "question": "What is the average rating star for each reviewer?", "question_toks": [ "what", "is", "average", "rating", "star", "for", "each", "reviewer", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 5, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "rating", "star", "for", "each", "reviewer", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "rating", "star" ], [ "for" ], [ "each" ], [ "reviewer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "rating", "NN" ], [ "star", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "reviewer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(1) A(5) C(7) T(2)" }, { "db_id": "movie_1", "query": "SELECT T2.name , avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name", "query_toks": [ "SELECT", "T2.name", ",", "avg", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "GROUP", "BY", "T2.name" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "avg", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "group", "by", "t2", ".", "name" ], "question": "What is the average number of stars that each reviewer awards for a movie?", "question_toks": [ "what", "is", "average", "number", "of", "star", "that", "each", "reviewer", "award", "for", "a", "movie", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 5, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "stars", "that", "each", "reviewer", "awards", "for", "a", "movie", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "star" ], [ "that" ], [ "each" ], [ "reviewer" ], [ "award" ], [ "for" ], [ "a" ], [ "movie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "star", "NN" ], [ "that", "IN" ], [ "each", "DT" ], [ "reviewer", "JJR" ], [ "award", "NN" ], [ "for", "IN" ], [ "a", "DT" ], [ "movie", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(1) A(5) C(7) T(2)" }, { "db_id": "movie_1", "query": "SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating)", "query_toks": [ "SELECT", "title", "FROM", "Movie", "WHERE", "mID", "NOT", "IN", "(", "SELECT", "mID", "FROM", "Rating", ")" ], "query_toks_no_value": [ "select", "title", "from", "movie", "where", "mid", "not", "in", "(", "select", "mid", "from", "rating", ")" ], "question": "Find the titles of all movies that have no ratings.", "question_toks": [ "find", "title", "of", "all", "movie", "that", "have", "no", "rating", "." ], "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, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "titles", "of", "all", "movies", "that", "have", "no", "ratings", "." ], "question_arg": [ [ "find" ], [ "title" ], [ "of" ], [ "all" ], [ "movie" ], [ "that" ], [ "have" ], [ "no" ], [ "rating" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "no", "DT" ], [ "rating", "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": "movie_1", "query": "SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating)", "query_toks": [ "SELECT", "title", "FROM", "Movie", "WHERE", "mID", "NOT", "IN", "(", "SELECT", "mID", "FROM", "Rating", ")" ], "query_toks_no_value": [ "select", "title", "from", "movie", "where", "mid", "not", "in", "(", "select", "mid", "from", "rating", ")" ], "question": "What are the titles of all movies that have not been rated?", "question_toks": [ "what", "are", "title", "of", "all", "movie", "that", "have", "not", "been", "rated", "?" ], "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, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "all", "movies", "that", "have", "not", "been", "rated", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "all" ], [ "movie" ], [ "that" ], [ "have" ], [ "not" ], [ "been" ], [ "rated" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "not", "RB" ], [ "been", "VBN" ], [ "rated", "VBN" ], [ "?", "." ] ], "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": "movie_1", "query": "SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID WHERE ratingDate = \"null\"", "query_toks": [ "SELECT", "DISTINCT", "name", "FROM", "Reviewer", "AS", "T1", "JOIN", "Rating", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "ratingDate", "=", "``", "null", "''" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "reviewer", "as", "t1", "join", "rating", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "ratingdate", "=", "value" ], "question": "Find the names of all reviewers who have ratings with a NULL value for the date.", "question_toks": [ "find", "name", "of", "all", "reviewer", "who", "have", "rating", "with", "a", "null", "value", "for", "date", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 7, 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"null\"", null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "reviewers", "who", "have", "ratings", "with", "a", "NULL", "value", "for", "the", "date", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "reviewer" ], [ "who" ], [ "have" ], [ "rating" ], [ "with" ], [ "a" ], [ "null" ], [ "value" ], [ "for" ], [ "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "reviewer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "rating", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "null", "JJ" ], [ "value", "NN" ], [ "for", "IN" ], [ "date", "NN" ], [ ".", "." ] ], "values": [ "null" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(1) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "movie_1", "query": "SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID WHERE ratingDate = \"null\"", "query_toks": [ "SELECT", "DISTINCT", "name", "FROM", "Reviewer", "AS", "T1", "JOIN", "Rating", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "ratingDate", "=", "``", "null", "''" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "reviewer", "as", "t1", "join", "rating", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "ratingdate", "=", "value" ], "question": "What are the different names of all reviewers whose ratings do not have a date field?", "question_toks": [ "what", "are", "different", "name", "of", "all", "reviewer", "whose", "rating", "do", "not", "have", "a", "date", "field", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 7, 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"null\"", null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "different", "names", "of", "all", "reviewers", "whose", "ratings", "do", "not", "have", "a", "date", "field", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "name" ], [ "of" ], [ "all" ], [ "reviewer" ], [ "whose" ], [ "rating" ], [ "do" ], [ "not" ], [ "have" ], [ "a" ], [ "date" ], [ "field" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "reviewer", "JJR" ], [ "whose", "WP$" ], [ "rating", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "date", "NN" ], [ "field", "NN" ], [ "?", "." ] ], "values": [ "null" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(1) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "movie_1", "query": "SELECT avg(T1.stars) , T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT min(YEAR) FROM Movie)", "query_toks": [ "SELECT", "avg", "(", "T1.stars", ")", ",", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.year", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "Movie", ")" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "stars", ")", ",", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "(", "select", "min", "(", "year", ")", "from", "movie", ")" ], "question": "What is the average rating stars and title for the oldest movie?", "question_toks": [ "what", "is", "average", "rating", "star", "and", "title", "for", "oldest", "movie", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ 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, [ [ 2, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "rating", "stars", "and", "title", "for", "the", "oldest", "movie", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "rating", "star" ], [ "and" ], [ "title" ], [ "for" ], [ "oldest" ], [ "movie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "rating", "NN" ], [ "star", "NN" ], [ "and", "CC" ], [ "title", "NN" ], [ "for", "IN" ], [ "oldest", "JJS" ], [ "movie", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(7) T(2) A(0) C(2) T(0) Filter(11) A(0) C(3) T(0) Root(5) Sel(0) N(0) A(2) C(3) T(0)" }, { "db_id": "movie_1", "query": "SELECT avg(T1.stars) , T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT min(YEAR) FROM Movie)", "query_toks": [ "SELECT", "avg", "(", "T1.stars", ")", ",", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.year", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "Movie", ")" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "stars", ")", ",", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "(", "select", "min", "(", "year", ")", "from", "movie", ")" ], "question": "For the oldest movie listed, what is its average rating and title?", "question_toks": [ "for", "oldest", "movie", "listed", ",", "what", "is", "it", "average", "rating", "and", "title", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ 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, [ [ 2, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "For", "the", "oldest", "movie", "listed", ",", "what", "is", "its", "average", "rating", "and", "title", "?" ], "question_arg": [ [ "for" ], [ "oldest" ], [ "movie" ], [ "listed" ], [ "," ], [ "what" ], [ "is" ], [ "it" ], [ "average" ], [ "rating" ], [ "and" ], [ "title" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "oldest", "JJS" ], [ "movie", "NN" ], [ "listed", "VBN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "it", "PRP" ], [ "average", "JJ" ], [ "rating", "NN" ], [ "and", "CC" ], [ "title", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(7) T(2) A(0) C(2) T(0) Filter(11) A(0) C(3) T(0) Root(5) Sel(0) N(0) A(2) C(3) T(0)" }, { "db_id": "movie_1", "query": "SELECT title FROM Movie WHERE YEAR = (SELECT max(YEAR) FROM Movie)", "query_toks": [ "SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")" ], "query_toks_no_value": [ "select", "title", "from", "movie", "where", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")" ], "question": "What is the name of the most recent movie?", "question_toks": [ "what", "is", "name", "of", "most", "recent", "movie", "?" ], "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 ], { "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": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "most", "recent", "movie", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "most" ], [ "recent" ], [ "movie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "recent", "JJ" ], [ "movie", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(11) A(0) C(3) T(0) Root(5) Sel(0) N(0) A(1) C(3) T(0)" }, { "db_id": "movie_1", "query": "SELECT title FROM Movie WHERE YEAR = (SELECT max(YEAR) FROM Movie)", "query_toks": [ "SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")" ], "query_toks_no_value": [ "select", "title", "from", "movie", "where", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")" ], "question": "What is the title of the newest movie?", "question_toks": [ "what", "is", "title", "of", "newest", "movie", "?" ], "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 ], { "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": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "title", "of", "the", "newest", "movie", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "title" ], [ "of" ], [ "newest" ], [ "movie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "title", "NN" ], [ "of", "IN" ], [ "newest", "JJS" ], [ "movie", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(11) A(0) C(3) T(0) Root(5) Sel(0) N(0) A(1) C(3) T(0)" }, { "db_id": "movie_1", "query": "SELECT max(T1.stars) , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT max(YEAR) FROM Movie)", "query_toks": [ "SELECT", "max", "(", "T1.stars", ")", ",", "T2.year", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")" ], "query_toks_no_value": [ "select", "max", "(", "t1", ".", "stars", ")", ",", "t2", ".", "year", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")" ], "question": "What is the maximum stars and year for the most recent movie?", "question_toks": [ "what", "is", "maximum", "star", "and", "year", "for", "most", "recent", "movie", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ 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": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "maximum", "stars", "and", "year", "for", "the", "most", "recent", "movie", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "star" ], [ "and" ], [ "year" ], [ "for" ], [ "most" ], [ "recent" ], [ "movie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "star", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "for", "IN" ], [ "most", "JJS" ], [ "recent", "JJ" ], [ "movie", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(7) T(2) A(0) C(3) T(0) Filter(11) A(0) C(3) T(0) Root(5) Sel(0) N(0) A(1) C(3) T(0)" }, { "db_id": "movie_1", "query": "SELECT max(T1.stars) , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT max(YEAR) FROM Movie)", "query_toks": [ "SELECT", "max", "(", "T1.stars", ")", ",", "T2.year", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")" ], "query_toks_no_value": [ "select", "max", "(", "t1", ".", "stars", ")", ",", "t2", ".", "year", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")" ], "question": "What is highest rating for the most recent movie and when was it released?", "question_toks": [ "what", "is", "highest", "rating", "for", "most", "recent", "movie", "and", "when", "wa", "it", "released", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ 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": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "highest", "rating", "for", "the", "most", "recent", "movie", "and", "when", "was", "it", "released", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "highest" ], [ "rating" ], [ "for" ], [ "most" ], [ "recent" ], [ "movie" ], [ "and" ], [ "when" ], [ "wa" ], [ "it" ], [ "released" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "highest", "JJS" ], [ "rating", "NN" ], [ "for", "IN" ], [ "most", "JJS" ], [ "recent", "JJ" ], [ "movie", "NN" ], [ "and", "CC" ], [ "when", "WRB" ], [ "wa", "NN" ], [ "it", "PRP" ], [ "released", "VBD" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(7) T(2) A(0) C(3) T(0) Filter(11) A(0) C(3) T(0) Root(5) Sel(0) N(0) A(1) C(3) T(0)" }, { "db_id": "movie_1", "query": "SELECT title FROM Movie WHERE YEAR > (SELECT max(YEAR) FROM Movie WHERE director = \"Steven Spielberg\")", "query_toks": [ "SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", ">", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", "WHERE", "director", "=", "``", "Steven", "Spielberg", "''", ")" ], "query_toks_no_value": [ "select", "title", "from", "movie", "where", "year", ">", "(", "select", "max", "(", "year", ")", "from", "movie", "where", "director", "=", "value", ")" ], "question": "What is the names of movies whose created year is after all movies directed by Steven Spielberg?", "question_toks": [ "what", "is", "name", "of", "movie", "whose", "created", "year", "is", "after", "all", "movie", "directed", "by", "steven", "spielberg", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Steven Spielberg\"", null ] ] }, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "names", "of", "movies", "whose", "created", "year", "is", "after", "all", "movies", "directed", "by", "Steven", "Spielberg", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "movie" ], [ "whose" ], [ "created" ], [ "year" ], [ "is" ], [ "after" ], [ "all" ], [ "movie" ], [ "directed" ], [ "by" ], [ "steven" ], [ "spielberg" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ "whose", "WP$" ], [ "created", "JJ" ], [ "year", "NN" ], [ "is", "VBZ" ], [ "after", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "directed", "VBN" ], [ "by", "IN" ], [ "steven", "JJ" ], [ "spielberg", "NNS" ], [ "?", "." ] ], "values": [ "Steven Spielberg" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(13) A(0) C(3) T(0) Root(3) Sel(0) N(0) A(1) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "movie_1", "query": "SELECT title FROM Movie WHERE YEAR > (SELECT max(YEAR) FROM Movie WHERE director = \"Steven Spielberg\")", "query_toks": [ "SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", ">", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", "WHERE", "director", "=", "``", "Steven", "Spielberg", "''", ")" ], "query_toks_no_value": [ "select", "title", "from", "movie", "where", "year", ">", "(", "select", "max", "(", "year", ")", "from", "movie", "where", "director", "=", "value", ")" ], "question": "What are the names of all movies that were created after the most recent Steven Spielberg film?", "question_toks": [ "what", "are", "name", "of", "all", "movie", "that", "were", "created", "after", "most", "recent", "steven", "spielberg", "film", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Steven Spielberg\"", null ] ] }, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "movies", "that", "were", "created", "after", "the", "most", "recent", "Steven", "Spielberg", "film", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "movie" ], [ "that" ], [ "were" ], [ "created" ], [ "after" ], [ "most" ], [ "recent" ], [ "steven" ], [ "spielberg" ], [ "film" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "created", "VBN" ], [ "after", "IN" ], [ "most", "RBS" ], [ "recent", "JJ" ], [ "steven", "JJ" ], [ "spielberg", "NN" ], [ "film", "NN" ], [ "?", "." ] ], "values": [ "Steven Spielberg" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(13) A(0) C(3) T(0) Root(3) Sel(0) N(0) A(1) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "movie_1", "query": "SELECT T2.title , T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars > (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = \"James Cameron\")", "query_toks": [ "SELECT", "T2.title", ",", "T2.director", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T1.stars", ">", "(", "SELECT", "avg", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.director", "=", "``", "James", "Cameron", "''", ")" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "t2", ".", "director", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t1", ".", "stars", ">", "(", "select", "avg", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "director", "=", "value", ")" ], "question": "What are the titles and directors of the movies whose star is greater than the average stars of the movies directed by James Cameron?", "question_toks": [ "what", "are", "title", "and", "director", "of", "movie", "whose", "star", "is", "greater", "than", "average", "star", "of", "movie", "directed", "by", "james", "cameron", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"James Cameron\"", null ] ] }, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "titles", "and", "directors", "of", "the", "movies", "whose", "star", "is", "greater", "than", "the", "average", "stars", "of", "the", "movies", "directed", "by", "James", "Cameron", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "and" ], [ "director" ], [ "of" ], [ "movie" ], [ "whose" ], [ "star" ], [ "is" ], [ "greater" ], [ "than" ], [ "average" ], [ "star" ], [ "of" ], [ "movie" ], [ "directed" ], [ "by" ], [ "james" ], [ "cameron" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "and", "CC" ], [ "director", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ "whose", "WP$" ], [ "star", "NN" ], [ "is", "VBZ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "star", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ "directed", "VBN" ], [ "by", "IN" ], [ "james", "NNS" ], [ "cameron", "NNS" ], [ "?", "." ] ], "values": [ "James Cameron" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(4) T(0) Filter(13) A(0) C(7) T(2) Root(3) Sel(0) N(0) A(5) C(7) T(2) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "movie_1", "query": "SELECT T2.title , T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars > (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = \"James Cameron\")", "query_toks": [ "SELECT", "T2.title", ",", "T2.director", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T1.stars", ">", "(", "SELECT", "avg", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.director", "=", "``", "James", "Cameron", "''", ")" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "t2", ".", "director", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t1", ".", "stars", ">", "(", "select", "avg", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "director", "=", "value", ")" ], "question": "What are the titles and directors of all movies that have a rating higher than the average James Cameron film rating?", "question_toks": [ "what", "are", "title", "and", "director", "of", "all", "movie", "that", "have", "a", "rating", "higher", "than", "average", "james", "cameron", "film", "rating", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"James Cameron\"", null ] ] }, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "titles", "and", "directors", "of", "all", "movies", "that", "have", "a", "rating", "higher", "than", "the", "average", "James", "Cameron", "film", "rating", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "and" ], [ "director" ], [ "of" ], [ "all" ], [ "movie" ], [ "that" ], [ "have" ], [ "a" ], [ "rating" ], [ "higher" ], [ "than" ], [ "average" ], [ "james" ], [ "cameron" ], [ "film" ], [ "rating" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "and", "CC" ], [ "director", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "rating", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "james", "NNS" ], [ "cameron", "VBP" ], [ "film", "NN" ], [ "rating", "NN" ], [ "?", "." ] ], "values": [ "James Cameron" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(4) T(0) Filter(13) A(0) C(7) T(2) Root(3) Sel(0) N(0) A(5) C(7) T(2) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "movie_1", "query": "SELECT T3.name , T2.title , T1.stars , T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID ORDER BY T3.name , T2.title , T1.stars", "query_toks": [ "SELECT", "T3.name", ",", "T2.title", ",", "T1.stars", ",", "T1.ratingDate", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "JOIN", "Reviewer", "AS", "T3", "ON", "T1.rID", "=", "T3.rID", "ORDER", "BY", "T3.name", ",", "T2.title", ",", "T1.stars" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t1", ".", "ratingdate", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "join", "reviewer", "as", "t3", "on", "t1", ".", "rid", "=", "t3", ".", "rid", "order", "by", "t3", ".", "name", ",", "t2", ".", "title", ",", "t1", ".", "stars" ], "question": "Return reviewer name, movie title, stars, and ratingDate. And sort the data first by reviewer name, then by movie title, and lastly by number of stars.", "question_toks": [ "return", "reviewer", "name", ",", "movie", "title", ",", "star", ",", "and", "ratingdate", ".", "and", "sort", "data", "first", "by", "reviewer", "name", ",", "then", "by", "movie", "title", ",", "and", "lastly", "by", "number", "of", "star", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ], [ 0, [ 0, 2, false ], null ], [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Return", "reviewer", "name", ",", "movie", "title", ",", "stars", ",", "and", "ratingDate", ".", "And", "sort", "the", "data", "first", "by", "reviewer", "name", ",", "then", "by", "movie", "title", ",", "and", "lastly", "by", "number", "of", "stars", "." ], "question_arg": [ [ "return" ], [ "reviewer" ], [ "name" ], [ "," ], [ "movie" ], [ "title" ], [ "," ], [ "star" ], [ "," ], [ "and" ], [ "ratingdate" ], [ "." ], [ "and" ], [ "sort" ], [ "data" ], [ "first" ], [ "by" ], [ "reviewer" ], [ "name" ], [ "," ], [ "then" ], [ "by" ], [ "movie" ], [ "title" ], [ "," ], [ "and" ], [ "lastly" ], [ "by" ], [ "number" ], [ "of" ], [ "star" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "reviewer", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "movie", "NN" ], [ "title", "NN" ], [ ",", "," ], [ "star", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "ratingdate", "NN" ], [ ".", "." ], [ "and", "CC" ], [ "sort", "NN" ], [ "data", "NNS" ], [ "first", "RB" ], [ "by", "IN" ], [ "reviewer", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "then", "RB" ], [ "by", "IN" ], [ "movie", "NN" ], [ "title", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "lastly", "RB" ], [ "by", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "star", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(4) Sel(0) N(3) A(0) C(6) T(1) A(0) C(2) T(0) A(0) C(7) T(2) A(0) C(8) T(2) Order(1) A(0) C(6) T(1)" }, { "db_id": "movie_1", "query": "SELECT T3.name , T2.title , T1.stars , T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID ORDER BY T3.name , T2.title , T1.stars", "query_toks": [ "SELECT", "T3.name", ",", "T2.title", ",", "T1.stars", ",", "T1.ratingDate", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "JOIN", "Reviewer", "AS", "T3", "ON", "T1.rID", "=", "T3.rID", "ORDER", "BY", "T3.name", ",", "T2.title", ",", "T1.stars" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t1", ".", "ratingdate", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "join", "reviewer", "as", "t3", "on", "t1", ".", "rid", "=", "t3", ".", "rid", "order", "by", "t3", ".", "name", ",", "t2", ".", "title", ",", "t1", ".", "stars" ], "question": "What is the reviewer name, film title, movie rating, and rating date for every movie ordered by reviewer name, movie title, then finally rating?", "question_toks": [ "what", "is", "reviewer", "name", ",", "film", "title", ",", "movie", "rating", ",", "and", "rating", "date", "for", "every", "movie", "ordered", "by", "reviewer", "name", ",", "movie", "title", ",", "then", "finally", "rating", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ], [ 0, [ 0, 2, false ], null ], [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "reviewer", "name", ",", "film", "title", ",", "movie", "rating", ",", "and", "rating", "date", "for", "every", "movie", "ordered", "by", "reviewer", "name", ",", "movie", "title", ",", "then", "finally", "rating", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "reviewer" ], [ "name" ], [ "," ], [ "film" ], [ "title" ], [ "," ], [ "movie" ], [ "rating" ], [ "," ], [ "and" ], [ "rating", "date" ], [ "for" ], [ "every" ], [ "movie" ], [ "ordered" ], [ "by" ], [ "reviewer" ], [ "name" ], [ "," ], [ "movie" ], [ "title" ], [ "," ], [ "then" ], [ "finally" ], [ "rating" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "reviewer", "JJR" ], [ "name", "NN" ], [ ",", "," ], [ "film", "NN" ], [ "title", "NN" ], [ ",", "," ], [ "movie", "NN" ], [ "rating", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "rating", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "every", "DT" ], [ "movie", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "reviewer", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "movie", "NN" ], [ "title", "NN" ], [ ",", "," ], [ "then", "RB" ], [ "finally", "RB" ], [ "rating", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(3) A(0) C(6) T(1) A(0) C(2) T(0) A(0) C(7) T(2) A(0) C(8) T(2) Order(1) A(0) C(6) T(1)" }, { "db_id": "movie_1", "query": "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T1.rID HAVING COUNT(*) >= 3", "query_toks": [ "SELECT", "T2.name", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "GROUP", "BY", "T1.rID", "HAVING", "COUNT", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "group", "by", "t1", ".", "rid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Find the names of all reviewers who have contributed three or more ratings.", "question_toks": [ "find", "name", "of", "all", "reviewer", "who", "have", "contributed", "three", "or", "more", "rating", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.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, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "reviewers", "who", "have", "contributed", "three", "or", "more", "ratings", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "reviewer" ], [ "who" ], [ "have" ], [ "contributed" ], [ "three" ], [ "or" ], [ "more" ], [ "rating" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "reviewer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "contributed", "VBN" ], [ "three", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "rating", "NN" ], [ ".", "." ] ], "values": [ "3" ], "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": "movie_1", "query": "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T1.rID HAVING COUNT(*) >= 3", "query_toks": [ "SELECT", "T2.name", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "GROUP", "BY", "T1.rID", "HAVING", "COUNT", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "group", "by", "t1", ".", "rid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the names of all reviewers that have rated 3 or more movies?", "question_toks": [ "what", "are", "name", "of", "all", "reviewer", "that", "have", "rated", "3", "or", "more", "movie", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.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, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "reviewers", "that", "have", "rated", "3", "or", "more", "movies", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "reviewer" ], [ "that" ], [ "have" ], [ "rated" ], [ "3" ], [ "or" ], [ "more" ], [ "movie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "reviewer", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "rated", "VBN" ], [ "3", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "movie", "NN" ], [ "?", "." ] ], "values": [ "3" ], "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": "movie_1", "query": "SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.title = 'Gone with the Wind'", "query_toks": [ "SELECT", "DISTINCT", "T3.name", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "JOIN", "Reviewer", "AS", "T3", "ON", "T1.rID", "=", "T3.rID", "WHERE", "T2.title", "=", "'Gone", "with", "the", "Wind", "'" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "name", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "join", "reviewer", "as", "t3", "on", "t1", ".", "rid", "=", "t3", ".", "rid", "where", "t2", ".", "title", "=", "value" ], "question": "Find the names of all reviewers who rated Gone with the Wind.", "question_toks": [ "find", "name", "of", "all", "reviewer", "who", "rated", "gone", "with", "wind", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ 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", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Gone with the Wind\"", null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "reviewers", "who", "rated", "Gone", "with", "the", "Wind", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "reviewer" ], [ "who" ], [ "rated" ], [ "gone" ], [ "with" ], [ "wind" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "reviewer", "NN" ], [ "who", "WP" ], [ "rated", "VBD" ], [ "gone", "VBN" ], [ "with", "IN" ], [ "wind", "NN" ], [ ".", "." ] ], "values": [ "Gone with the Wind" ], "rule_label": "Root1(3) Root(3) Sel(1) 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(2) T(0) V(0)" }, { "db_id": "movie_1", "query": "SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.title = 'Gone with the Wind'", "query_toks": [ "SELECT", "DISTINCT", "T3.name", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "JOIN", "Reviewer", "AS", "T3", "ON", "T1.rID", "=", "T3.rID", "WHERE", "T2.title", "=", "'Gone", "with", "the", "Wind", "'" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "name", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "join", "reviewer", "as", "t3", "on", "t1", ".", "rid", "=", "t3", ".", "rid", "where", "t2", ".", "title", "=", "value" ], "question": "What are the names of all the different reviewers who rates Gone with the Wind?", "question_toks": [ "what", "are", "name", "of", "all", "different", "reviewer", "who", "rate", "gone", "with", "wind", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ 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", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Gone with the Wind\"", null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "different", "reviewers", "who", "rates", "Gone", "with", "the", "Wind", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "different" ], [ "reviewer" ], [ "who" ], [ "rate" ], [ "gone" ], [ "with" ], [ "wind" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "different", "JJ" ], [ "reviewer", "NN" ], [ "who", "WP" ], [ "rate", "NN" ], [ "gone", "VBN" ], [ "with", "IN" ], [ "wind", "NN" ], [ "?", "." ] ], "values": [ "Gone with the Wind" ], "rule_label": "Root1(3) Root(3) Sel(1) 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(2) T(0) V(0)" }, { "db_id": "movie_1", "query": "SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Sarah Martinez'", "query_toks": [ "SELECT", "DISTINCT", "T2.director", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "JOIN", "Reviewer", "AS", "T3", "ON", "T1.rID", "=", "T3.rID", "WHERE", "T3.name", "=", "'Sarah", "Martinez", "'" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "director", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "join", "reviewer", "as", "t3", "on", "t1", ".", "rid", "=", "t3", ".", "rid", "where", "t3", ".", "name", "=", "value" ], "question": "Find the names of all directors whose movies are rated by Sarah Martinez.", "question_toks": [ "find", "name", "of", "all", "director", "whose", "movie", "are", "rated", "by", "sarah", "martinez", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Sarah Martinez\"", null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "directors", "whose", "movies", "are", "rated", "by", "Sarah", "Martinez", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "director" ], [ "whose" ], [ "movie" ], [ "are" ], [ "rated" ], [ "by" ], [ "sarah" ], [ "martinez" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "director", "NN" ], [ "whose", "WP$" ], [ "movie", "NN" ], [ "are", "VBP" ], [ "rated", "VBN" ], [ "by", "IN" ], [ "sarah", "JJ" ], [ "martinez", "NN" ], [ ".", "." ] ], "values": [ "Sarah Martinez" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(4) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "movie_1", "query": "SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Sarah Martinez'", "query_toks": [ "SELECT", "DISTINCT", "T2.director", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "JOIN", "Reviewer", "AS", "T3", "ON", "T1.rID", "=", "T3.rID", "WHERE", "T3.name", "=", "'Sarah", "Martinez", "'" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "director", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "join", "reviewer", "as", "t3", "on", "t1", ".", "rid", "=", "t3", ".", "rid", "where", "t3", ".", "name", "=", "value" ], "question": "What are the names of all directors whose movies have been reviewed by Sarah Martinez?", "question_toks": [ "what", "are", "name", "of", "all", "director", "whose", "movie", "have", "been", "reviewed", "by", "sarah", "martinez", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Sarah Martinez\"", null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "directors", "whose", "movies", "have", "been", "reviewed", "by", "Sarah", "Martinez", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "director" ], [ "whose" ], [ "movie" ], [ "have" ], [ "been" ], [ "reviewed" ], [ "by" ], [ "sarah" ], [ "martinez" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "director", "NN" ], [ "whose", "WP$" ], [ "movie", "NN" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "reviewed", "VBN" ], [ "by", "IN" ], [ "sarah", "NN" ], [ "martinez", "NN" ], [ "?", "." ] ], "values": [ "Sarah Martinez" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(4) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "movie_1", "query": "SELECT DISTINCT T3.name , T2.title , T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name", "query_toks": [ "SELECT", "DISTINCT", "T3.name", ",", "T2.title", ",", "T1.stars", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "JOIN", "Reviewer", "AS", "T3", "ON", "T1.rID", "=", "T3.rID", "WHERE", "T2.director", "=", "T3.name" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "name", ",", "t2", ".", "title", ",", "t1", ".", "stars", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "join", "reviewer", "as", "t3", "on", "t1", ".", "rid", "=", "t3", ".", "rid", "where", "t2", ".", "director", "=", "t3", ".", "name" ], "question": "For any rating where the name of reviewer is the same as the director of the movie, return the reviewer name, movie title, and number of stars.", "question_toks": [ "for", "any", "rating", "where", "name", "of", "reviewer", "is", "same", "a", "director", "of", "movie", ",", "return", "reviewer", "name", ",", "movie", "title", ",", "and", "number", "of", "star", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 6, false ], null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "For", "any", "rating", "where", "the", "name", "of", "reviewer", "is", "the", "same", "as", "the", "director", "of", "the", "movie", ",", "return", "the", "reviewer", "name", ",", "movie", "title", ",", "and", "number", "of", "stars", "." ], "question_arg": [ [ "for" ], [ "any" ], [ "rating" ], [ "where" ], [ "name" ], [ "of" ], [ "reviewer" ], [ "is" ], [ "same" ], [ "a" ], [ "director" ], [ "of" ], [ "movie" ], [ "," ], [ "return" ], [ "reviewer" ], [ "name" ], [ "," ], [ "movie" ], [ "title" ], [ "," ], [ "and" ], [ "number" ], [ "of" ], [ "star" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "any", "DT" ], [ "rating", "NN" ], [ "where", "WRB" ], [ "name", "NN" ], [ "of", "IN" ], [ "reviewer", "NN" ], [ "is", "VBZ" ], [ "same", "JJ" ], [ "a", "DT" ], [ "director", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ ",", "," ], [ "return", "VB" ], [ "reviewer", "JJR" ], [ "name", "NN" ], [ ",", "," ], [ "movie", "NN" ], [ "title", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "star", "NN" ], [ ".", "." ] ], "values": [ "[0, 6, False]" ], "rule_label": "Root1(3) Root(3) Sel(1) N(2) A(0) C(6) T(1) A(0) C(2) T(0) A(0) C(7) T(2) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "movie_1", "query": "SELECT DISTINCT T3.name , T2.title , T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name", "query_toks": [ "SELECT", "DISTINCT", "T3.name", ",", "T2.title", ",", "T1.stars", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "JOIN", "Reviewer", "AS", "T3", "ON", "T1.rID", "=", "T3.rID", "WHERE", "T2.director", "=", "T3.name" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "name", ",", "t2", ".", "title", ",", "t1", ".", "stars", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "join", "reviewer", "as", "t3", "on", "t1", ".", "rid", "=", "t3", ".", "rid", "where", "t2", ".", "director", "=", "t3", ".", "name" ], "question": "What are the different reviewer names, movie titles, and stars for every rating where the reviewer had the same name as the director?", "question_toks": [ "what", "are", "different", "reviewer", "name", ",", "movie", "title", ",", "and", "star", "for", "every", "rating", "where", "reviewer", "had", "same", "name", "a", "director", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 6, false ], null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "different", "reviewer", "names", ",", "movie", "titles", ",", "and", "stars", "for", "every", "rating", "where", "the", "reviewer", "had", "the", "same", "name", "as", "the", "director", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "reviewer" ], [ "name" ], [ "," ], [ "movie" ], [ "title" ], [ "," ], [ "and" ], [ "star" ], [ "for" ], [ "every" ], [ "rating" ], [ "where" ], [ "reviewer" ], [ "had" ], [ "same" ], [ "name" ], [ "a" ], [ "director" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "reviewer", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "movie", "NN" ], [ "title", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "star", "NN" ], [ "for", "IN" ], [ "every", "DT" ], [ "rating", "NN" ], [ "where", "WRB" ], [ "reviewer", "NN" ], [ "had", "VBD" ], [ "same", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "director", "NN" ], [ "?", "." ] ], "values": [ "[0, 6, False]" ], "rule_label": "Root1(3) Root(3) Sel(1) N(2) A(0) C(6) T(1) A(0) C(2) T(0) A(0) C(7) T(2) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "movie_1", "query": "SELECT name FROM Reviewer UNION SELECT title FROM Movie", "query_toks": [ "SELECT", "name", "FROM", "Reviewer", "UNION", "SELECT", "title", "FROM", "Movie" ], "query_toks_no_value": [ "select", "name", "from", "reviewer", "union", "select", "title", "from", "movie" ], "question": "Return all reviewer names and movie names together in a single list.", "question_toks": [ "return", "all", "reviewer", "name", "and", "movie", "name", "together", "in", "a", "single", "list", "." ], "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": { "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": [] }, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Return", "all", "reviewer", "names", "and", "movie", "names", "together", "in", "a", "single", "list", "." ], "question_arg": [ [ "return" ], [ "all" ], [ "reviewer" ], [ "name" ], [ "and" ], [ "movie" ], [ "name" ], [ "together" ], [ "in" ], [ "a" ], [ "single" ], [ "list" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "all", "DT" ], [ "reviewer", "JJR" ], [ "name", "NN" ], [ "and", "CC" ], [ "movie", "NN" ], [ "name", "NN" ], [ "together", "RB" ], [ "in", "IN" ], [ "a", "DT" ], [ "single", "JJ" ], [ "list", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(1) Root(5) Sel(0) N(0) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "movie_1", "query": "SELECT name FROM Reviewer UNION SELECT title FROM Movie", "query_toks": [ "SELECT", "name", "FROM", "Reviewer", "UNION", "SELECT", "title", "FROM", "Movie" ], "query_toks_no_value": [ "select", "name", "from", "reviewer", "union", "select", "title", "from", "movie" ], "question": "What are the names of all the reviewers and movie names?", "question_toks": [ "what", "are", "name", "of", "all", "reviewer", "and", "movie", "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": { "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": [] }, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "reviewers", "and", "movie", "names", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "reviewer" ], [ "and" ], [ "movie" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "reviewer", "NN" ], [ "and", "CC" ], [ "movie", "NN" ], [ "name", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(1) Root(5) Sel(0) N(0) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "movie_1", "query": "SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson'", "query_toks": [ "SELECT", "DISTINCT", "title", "FROM", "Movie", "EXCEPT", "SELECT", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "JOIN", "Reviewer", "AS", "T3", "ON", "T1.rID", "=", "T3.rID", "WHERE", "T3.name", "=", "'Chris", "Jackson", "'" ], "query_toks_no_value": [ "select", "distinct", "title", "from", "movie", "except", "select", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "join", "reviewer", "as", "t3", "on", "t1", ".", "rid", "=", "t3", ".", "rid", "where", "t3", ".", "name", "=", "value" ], "question": "Find the titles of all movies not reviewed by Chris Jackson.", "question_toks": [ "find", "title", "of", "all", "movie", "not", "reviewed", "by", "chris", "jackson", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 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", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Chris Jackson\"", 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": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "titles", "of", "all", "movies", "not", "reviewed", "by", "Chris", "Jackson", "." ], "question_arg": [ [ "find" ], [ "title" ], [ "of" ], [ "all" ], [ "movie" ], [ "not" ], [ "reviewed" ], [ "by" ], [ "chris" ], [ "jackson" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "not", "RB" ], [ "reviewed", "VBN" ], [ "by", "IN" ], [ "chris", "NN" ], [ "jackson", "NN" ], [ ".", "." ] ], "values": [ "Chris Jackson" ], "rule_label": "Root1(2) Root(5) Sel(1) N(0) A(0) C(2) T(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(2) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "movie_1", "query": "SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson'", "query_toks": [ "SELECT", "DISTINCT", "title", "FROM", "Movie", "EXCEPT", "SELECT", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "JOIN", "Reviewer", "AS", "T3", "ON", "T1.rID", "=", "T3.rID", "WHERE", "T3.name", "=", "'Chris", "Jackson", "'" ], "query_toks_no_value": [ "select", "distinct", "title", "from", "movie", "except", "select", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "join", "reviewer", "as", "t3", "on", "t1", ".", "rid", "=", "t3", ".", "rid", "where", "t3", ".", "name", "=", "value" ], "question": "What are the titles of all movies that were not reviewed by Chris Jackson?", "question_toks": [ "what", "are", "title", "of", "all", "movie", "that", "were", "not", "reviewed", "by", "chris", "jackson", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 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", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Chris Jackson\"", 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": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "all", "movies", "that", "were", "not", "reviewed", "by", "Chris", "Jackson", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "all" ], [ "movie" ], [ "that" ], [ "were" ], [ "not" ], [ "reviewed" ], [ "by" ], [ "chris" ], [ "jackson" ], [ "?" ] ], "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" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "not", "RB" ], [ "reviewed", "VBN" ], [ "by", "IN" ], [ "chris", "NN" ], [ "jackson", "NN" ], [ "?", "." ] ], "values": [ "Chris Jackson" ], "rule_label": "Root1(2) Root(5) Sel(1) N(0) A(0) C(2) T(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(2) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "movie_1", "query": "SELECT T1.title , T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title ORDER BY T1.director , T1.title", "query_toks": [ "SELECT", "T1.title", ",", "T1.director", "FROM", "Movie", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.director", "=", "T2.director", "WHERE", "T1.title", "!", "=", "T2.title", "ORDER", "BY", "T1.director", ",", "T1.title" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t1", ".", "director", "from", "movie", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "director", "=", "t2", ".", "director", "where", "t1", ".", "title", "!", "=", "t2", ".", "title", "order", "by", "t1", ".", "director", ",", "t1", ".", "title" ], "question": "For all directors who directed more than one movie, return the titles of all movies directed by them, along with the director name. Sort by director name, then movie title.", "question_toks": [ "for", "all", "director", "who", "directed", "more", "than", "one", "movie", ",", "return", "title", "of", "all", "movie", "directed", "by", "them", ",", "along", "with", "director", "name", ".", "sort", "by", "director", "name", ",", "then", "movie", "title", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ], [ 0, [ 0, 2, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 2, false ], null ], [ 0, 2, false ], null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "For", "all", "directors", "who", "directed", "more", "than", "one", "movie", ",", "return", "the", "titles", "of", "all", "movies", "directed", "by", "them", ",", "along", "with", "the", "director", "name", ".", "Sort", "by", "director", "name", ",", "then", "movie", "title", "." ], "question_arg": [ [ "for" ], [ "all" ], [ "director" ], [ "who" ], [ "directed" ], [ "more" ], [ "than" ], [ "one" ], [ "movie" ], [ "," ], [ "return" ], [ "title" ], [ "of" ], [ "all" ], [ "movie" ], [ "directed" ], [ "by" ], [ "them" ], [ "," ], [ "along" ], [ "with" ], [ "director" ], [ "name" ], [ "." ], [ "sort" ], [ "by" ], [ "director" ], [ "name" ], [ "," ], [ "then" ], [ "movie" ], [ "title" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "all", "DT" ], [ "director", "NN" ], [ "who", "WP" ], [ "directed", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "movie", "NN" ], [ ",", "," ], [ "return", "VBP" ], [ "title", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "directed", "VBN" ], [ "by", "IN" ], [ "them", "PRP" ], [ ",", "," ], [ "along", "IN" ], [ "with", "IN" ], [ "director", "NN" ], [ "name", "NN" ], [ ".", "." ], [ "sort", "NN" ], [ "by", "IN" ], [ "director", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "then", "RB" ], [ "movie", "NN" ], [ "title", "NN" ], [ ".", "." ] ], "values": [ "1", "[0, 2, False]" ], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(2) T(0) A(0) C(4) T(0) Filter(3) A(0) C(2) T(0) V(1) Order(1) A(0) C(4) T(0)" }, { "db_id": "movie_1", "query": "SELECT T1.title , T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title ORDER BY T1.director , T1.title", "query_toks": [ "SELECT", "T1.title", ",", "T1.director", "FROM", "Movie", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.director", "=", "T2.director", "WHERE", "T1.title", "!", "=", "T2.title", "ORDER", "BY", "T1.director", ",", "T1.title" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t1", ".", "director", "from", "movie", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "director", "=", "t2", ".", "director", "where", "t1", ".", "title", "!", "=", "t2", ".", "title", "order", "by", "t1", ".", "director", ",", "t1", ".", "title" ], "question": "For all directors who have directed more than one movie, what movies have they directed and what are their names?", "question_toks": [ "for", "all", "director", "who", "have", "directed", "more", "than", "one", "movie", ",", "what", "movie", "have", "they", "directed", "and", "what", "are", "their", "name", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ], [ 0, [ 0, 2, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 2, false ], null ], [ 0, 2, false ], null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "For", "all", "directors", "who", "have", "directed", "more", "than", "one", "movie", ",", "what", "movies", "have", "they", "directed", "and", "what", "are", "their", "names", "?" ], "question_arg": [ [ "for" ], [ "all" ], [ "director" ], [ "who" ], [ "have" ], [ "directed" ], [ "more" ], [ "than" ], [ "one" ], [ "movie" ], [ "," ], [ "what" ], [ "movie" ], [ "have" ], [ "they" ], [ "directed" ], [ "and" ], [ "what" ], [ "are" ], [ "their" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "all", "DT" ], [ "director", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "directed", "VBN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "movie", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "movie", "NN" ], [ "have", "VBP" ], [ "they", "PRP" ], [ "directed", "VBN" ], [ "and", "CC" ], [ "what", "WDT" ], [ "are", "VBP" ], [ "their", "PRP$" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "1", "[0, 2, False]" ], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(2) T(0) A(0) C(4) T(0) Filter(3) A(0) C(2) T(0) V(1) Order(1) A(0) C(4) T(0)" }, { "db_id": "movie_1", "query": "SELECT T1.title , T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title", "query_toks": [ "SELECT", "T1.title", ",", "T1.year", "FROM", "Movie", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.director", "=", "T2.director", "WHERE", "T1.title", "!", "=", "T2.title" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t1", ".", "year", "from", "movie", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "director", "=", "t2", ".", "director", "where", "t1", ".", "title", "!", "=", "t2", ".", "title" ], "question": "For directors who had more than one movie, return the titles and produced years of all movies directed by them.", "question_toks": [ "for", "director", "who", "had", "more", "than", "one", "movie", ",", "return", "title", "and", "produced", "year", "of", "all", "movie", "directed", "by", "them", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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, 2, false ], null ], [ 0, 2, false ], null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "For", "directors", "who", "had", "more", "than", "one", "movie", ",", "return", "the", "titles", "and", "produced", "years", "of", "all", "movies", "directed", "by", "them", "." ], "question_arg": [ [ "for" ], [ "director" ], [ "who" ], [ "had" ], [ "more" ], [ "than" ], [ "one" ], [ "movie" ], [ "," ], [ "return" ], [ "title" ], [ "and" ], [ "produced" ], [ "year" ], [ "of" ], [ "all" ], [ "movie" ], [ "directed" ], [ "by" ], [ "them" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "director", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "movie", "NN" ], [ ",", "," ], [ "return", "VB" ], [ "title", "NN" ], [ "and", "CC" ], [ "produced", "VBD" ], [ "year", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "directed", "VBN" ], [ "by", "IN" ], [ "them", "PRP" ], [ ".", "." ] ], "values": [ "1", "[0, 2, False]" ], "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(2) T(0) V(1)" }, { "db_id": "movie_1", "query": "SELECT T1.title , T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title", "query_toks": [ "SELECT", "T1.title", ",", "T1.year", "FROM", "Movie", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.director", "=", "T2.director", "WHERE", "T1.title", "!", "=", "T2.title" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t1", ".", "year", "from", "movie", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "director", "=", "t2", ".", "director", "where", "t1", ".", "title", "!", "=", "t2", ".", "title" ], "question": "For each director who directed more than one movie, what are the titles and dates of release for all those movies?", "question_toks": [ "for", "each", "director", "who", "directed", "more", "than", "one", "movie", ",", "what", "are", "title", "and", "date", "of", "release", "for", "all", "those", "movie", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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, 2, false ], null ], [ 0, 2, false ], null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "For", "each", "director", "who", "directed", "more", "than", "one", "movie", ",", "what", "are", "the", "titles", "and", "dates", "of", "release", "for", "all", "those", "movies", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "director" ], [ "who" ], [ "directed" ], [ "more" ], [ "than" ], [ "one" ], [ "movie" ], [ "," ], [ "what" ], [ "are" ], [ "title" ], [ "and" ], [ "date" ], [ "of" ], [ "release" ], [ "for" ], [ "all" ], [ "those" ], [ "movie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "director", "NN" ], [ "who", "WP" ], [ "directed", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "movie", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "release", "NN" ], [ "for", "IN" ], [ "all", "PDT" ], [ "those", "DT" ], [ "movie", "NN" ], [ "?", "." ] ], "values": [ "1", "[0, 2, False]" ], "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(2) T(0) V(1)" }, { "db_id": "movie_1", "query": "SELECT director FROM Movie GROUP BY director HAVING count(*) = 1", "query_toks": [ "SELECT", "director", "FROM", "Movie", "GROUP", "BY", "director", "HAVING", "count", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "director", "from", "movie", "group", "by", "director", "having", "count", "(", "*", ")", "=", "value" ], "question": "What are the names of the directors who made exactly one movie?", "question_toks": [ "what", "are", "name", "of", "director", "who", "made", "exactly", "one", "movie", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "directors", "who", "made", "exactly", "one", "movie", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "director" ], [ "who" ], [ "made" ], [ "exactly" ], [ "one" ], [ "movie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "director", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "exactly", "RB" ], [ "one", "CD" ], [ "movie", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(3) C(0) T(0) V(0)" }, { "db_id": "movie_1", "query": "SELECT director FROM Movie GROUP BY director HAVING count(*) = 1", "query_toks": [ "SELECT", "director", "FROM", "Movie", "GROUP", "BY", "director", "HAVING", "count", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "director", "from", "movie", "group", "by", "director", "having", "count", "(", "*", ")", "=", "value" ], "question": "What are the names of all directors who made one movie?", "question_toks": [ "what", "are", "name", "of", "all", "director", "who", "made", "one", "movie", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "directors", "who", "made", "one", "movie", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "director" ], [ "who" ], [ "made" ], [ "one" ], [ "movie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "director", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "one", "CD" ], [ "movie", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(3) C(0) T(0) V(0)" }, { "db_id": "movie_1", "query": "SELECT director FROM Movie WHERE director != \"null\" GROUP BY director HAVING count(*) = 1", "query_toks": [ "SELECT", "director", "FROM", "Movie", "WHERE", "director", "!", "=", "``", "null", "''", "GROUP", "BY", "director", "HAVING", "count", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "director", "from", "movie", "where", "director", "!", "=", "value", "group", "by", "director", "having", "count", "(", "*", ")", "=", "value" ], "question": "What are the names of the directors who made exactly one movie excluding director NULL?", "question_toks": [ "what", "are", "name", "of", "director", "who", "made", "exactly", "one", "movie", "excluding", "director", "null", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 4, false ], null ], "\"null\"", null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "directors", "who", "made", "exactly", "one", "movie", "excluding", "director", "NULL", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "director" ], [ "who" ], [ "made" ], [ "exactly" ], [ "one" ], [ "movie" ], [ "excluding" ], [ "director" ], [ "null" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "director", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "exactly", "RB" ], [ "one", "CD" ], [ "movie", "NN" ], [ "excluding", "VBG" ], [ "director", "NN" ], [ "null", "NN" ], [ "?", "." ] ], "values": [ "null", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(0) Filter(3) A(0) C(4) T(0) V(0) Filter(2) A(3) C(0) T(0) V(1)" }, { "db_id": "movie_1", "query": "SELECT director FROM Movie WHERE director != \"null\" GROUP BY director HAVING count(*) = 1", "query_toks": [ "SELECT", "director", "FROM", "Movie", "WHERE", "director", "!", "=", "``", "null", "''", "GROUP", "BY", "director", "HAVING", "count", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "director", "from", "movie", "where", "director", "!", "=", "value", "group", "by", "director", "having", "count", "(", "*", ")", "=", "value" ], "question": "What are the names of all directors who have made one movie except for the director named NULL?", "question_toks": [ "what", "are", "name", "of", "all", "director", "who", "have", "made", "one", "movie", "except", "for", "director", "named", "null", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 4, false ], null ], "\"null\"", null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "directors", "who", "have", "made", "one", "movie", "except", "for", "the", "director", "named", "NULL", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "director" ], [ "who" ], [ "have" ], [ "made" ], [ "one" ], [ "movie" ], [ "except" ], [ "for" ], [ "director" ], [ "named" ], [ "null" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "director", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "made", "VBN" ], [ "one", "CD" ], [ "movie", "NN" ], [ "except", "IN" ], [ "for", "IN" ], [ "director", "NN" ], [ "named", "VBN" ], [ "null", "NN" ], [ "?", "." ] ], "values": [ "null", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(0) Filter(3) A(0) C(4) T(0) V(0) Filter(2) A(3) C(0) T(0) V(1)" }, { "db_id": "movie_1", "query": "SELECT count(*) , T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.director", "FROM", "Movie", "AS", "T1", "JOIN", "Rating", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T1.director" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "director", "from", "movie", "as", "t1", "join", "rating", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t1", ".", "director" ], "question": "How many movie reviews does each director get?", "question_toks": [ "how", "many", "movie", "review", "doe", "each", "director", "get", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "movie", "reviews", "does", "each", "director", "get", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "movie" ], [ "review" ], [ "doe" ], [ "each" ], [ "director" ], [ "get" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "movie", "NN" ], [ "review", "NN" ], [ "doe", "VBP" ], [ "each", "DT" ], [ "director", "NN" ], [ "get", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(2) A(0) C(4) T(0)" }, { "db_id": "movie_1", "query": "SELECT count(*) , T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.director", "FROM", "Movie", "AS", "T1", "JOIN", "Rating", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T1.director" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "director", "from", "movie", "as", "t1", "join", "rating", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t1", ".", "director" ], "question": "For each director, how many reviews have they received?", "question_toks": [ "for", "each", "director", ",", "how", "many", "review", "have", "they", "received", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "For", "each", "director", ",", "how", "many", "reviews", "have", "they", "received", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "director" ], [ "," ], [ "how" ], [ "many" ], [ "review" ], [ "have" ], [ "they" ], [ "received" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "director", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "review", "VBP" ], [ "have", "VBP" ], [ "they", "PRP" ], [ "received", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(2) A(0) C(4) T(0)" }, { "db_id": "movie_1", "query": "SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.title", ",", "avg", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T1.mID", "ORDER", "BY", "avg", "(", "T1.stars", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "avg", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t1", ".", "mid", "order", "by", "avg", "(", "t1", ".", "stars", ")", "desc", "limit", "value" ], "question": "Find the movies with the highest average rating. Return the movie titles and average rating.", "question_toks": [ "find", "movie", "with", "highest", "average", "rating", ".", "return", "movie", "title", "and", "average", "rating", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 5, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "movies", "with", "the", "highest", "average", "rating", ".", "Return", "the", "movie", "titles", "and", "average", "rating", "." ], "question_arg": [ [ "find" ], [ "movie" ], [ "with" ], [ "highest" ], [ "average" ], [ "rating" ], [ "." ], [ "return" ], [ "movie" ], [ "title" ], [ "and" ], [ "average" ], [ "rating" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "movie", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "average", "NN" ], [ "rating", "NN" ], [ ".", "." ], [ "return", "VB" ], [ "movie", "NN" ], [ "title", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "rating", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(5) C(7) T(2) Sup(0) A(5) C(7) T(2)" }, { "db_id": "movie_1", "query": "SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.title", ",", "avg", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T1.mID", "ORDER", "BY", "avg", "(", "T1.stars", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "avg", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t1", ".", "mid", "order", "by", "avg", "(", "t1", ".", "stars", ")", "desc", "limit", "value" ], "question": "What are the movie titles with the highest average rating and what are those ratings?", "question_toks": [ "what", "are", "movie", "title", "with", "highest", "average", "rating", "and", "what", "are", "those", "rating", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 5, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "movie", "titles", "with", "the", "highest", "average", "rating", "and", "what", "are", "those", "ratings", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "movie" ], [ "title" ], [ "with" ], [ "highest" ], [ "average" ], [ "rating" ], [ "and" ], [ "what" ], [ "are" ], [ "those" ], [ "rating" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "movie", "NN" ], [ "title", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "average", "NN" ], [ "rating", "NN" ], [ "and", "CC" ], [ "what", "WDT" ], [ "are", "VBP" ], [ "those", "DT" ], [ "rating", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(5) C(7) T(2) Sup(0) A(5) C(7) T(2)" }, { "db_id": "movie_1", "query": "SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) LIMIT 1", "query_toks": [ "SELECT", "T2.title", ",", "avg", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T1.mID", "ORDER", "BY", "avg", "(", "T1.stars", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "avg", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t1", ".", "mid", "order", "by", "avg", "(", "t1", ".", "stars", ")", "limit", "value" ], "question": "What are the movie titles and average rating of the movies with the lowest average rating?", "question_toks": [ "what", "are", "movie", "title", "and", "average", "rating", "of", "movie", "with", "lowest", "average", "rating", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 5, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 5, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "movie", "titles", "and", "average", "rating", "of", "the", "movies", "with", "the", "lowest", "average", "rating", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "movie" ], [ "title" ], [ "and" ], [ "average" ], [ "rating" ], [ "of" ], [ "movie" ], [ "with" ], [ "lowest" ], [ "average" ], [ "rating" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "movie", "NN" ], [ "title", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "rating", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ "with", "IN" ], [ "lowest", "JJ" ], [ "average", "NN" ], [ "rating", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(5) C(7) T(2) Sup(1) A(5) C(7) T(2)" }, { "db_id": "movie_1", "query": "SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) LIMIT 1", "query_toks": [ "SELECT", "T2.title", ",", "avg", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T1.mID", "ORDER", "BY", "avg", "(", "T1.stars", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "avg", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t1", ".", "mid", "order", "by", "avg", "(", "t1", ".", "stars", ")", "limit", "value" ], "question": "What are the titles and average ratings for all movies that have the lowest average rating?", "question_toks": [ "what", "are", "title", "and", "average", "rating", "for", "all", "movie", "that", "have", "lowest", "average", "rating", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 5, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 5, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "titles", "and", "average", "ratings", "for", "all", "movies", "that", "have", "the", "lowest", "average", "rating", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "and" ], [ "average" ], [ "rating" ], [ "for" ], [ "all" ], [ "movie" ], [ "that" ], [ "have" ], [ "lowest" ], [ "average" ], [ "rating" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "and", "CC" ], [ "average", "JJ" ], [ "rating", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "lowest", "JJS" ], [ "average", "NN" ], [ "rating", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(5) C(7) T(2) Sup(1) A(5) C(7) T(2)" }, { "db_id": "movie_1", "query": "SELECT T2.title , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3", "query_toks": [ "SELECT", "T2.title", ",", "T2.year", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "ORDER", "BY", "T1.stars", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "t2", ".", "year", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "order", "by", "t1", ".", "stars", "desc", "limit", "value" ], "question": "What are the names and years of the movies that has the top 3 highest rating star?", "question_toks": [ "what", "are", "name", "and", "year", "of", "movie", "that", "ha", "top", "3", "highest", "rating", "star", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "years", "of", "the", "movies", "that", "has", "the", "top", "3", "highest", "rating", "star", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "year" ], [ "of" ], [ "movie" ], [ "that" ], [ "ha" ], [ "top" ], [ "3" ], [ "highest" ], [ "rating", "star" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "top", "JJ" ], [ "3", "CD" ], [ "highest", "JJS" ], [ "rating", "NN" ], [ "star", "NN" ], [ "?", "." ] ], "values": [ "3" ], "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(7) T(2)" }, { "db_id": "movie_1", "query": "SELECT T2.title , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3", "query_toks": [ "SELECT", "T2.title", ",", "T2.year", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "ORDER", "BY", "T1.stars", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "t2", ".", "year", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "order", "by", "t1", ".", "stars", "desc", "limit", "value" ], "question": "What are the names and years released for the movies with the top 3 highest ratings?", "question_toks": [ "what", "are", "name", "and", "year", "released", "for", "movie", "with", "top", "3", "highest", "rating", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "years", "released", "for", "the", "movies", "with", "the", "top", "3", "highest", "ratings", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "year" ], [ "released" ], [ "for" ], [ "movie" ], [ "with" ], [ "top" ], [ "3" ], [ "highest" ], [ "rating" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "released", "VBN" ], [ "for", "IN" ], [ "movie", "NN" ], [ "with", "IN" ], [ "top", "JJ" ], [ "3", "CD" ], [ "highest", "JJS" ], [ "rating", "NN" ], [ "?", "." ] ], "values": [ "3" ], "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(7) T(2)" }, { "db_id": "movie_1", "query": "SELECT T2.title , T1.stars , T2.director , max(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE director != \"null\" GROUP BY director", "query_toks": [ "SELECT", "T2.title", ",", "T1.stars", ",", "T2.director", ",", "max", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "director", "!", "=", "``", "null", "''", "GROUP", "BY", "director" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "max", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "director", "!", "=", "value", "group", "by", "director" ], "question": "For each director, return the director's name together with the title of the movie they directed that received the highest rating among all of their movies, and the value of that rating. Ignore movies whose director is NULL.", "question_toks": [ "for", "each", "director", ",", "return", "director", "'s", "name", "together", "with", "title", "of", "movie", "they", "directed", "that", "received", "highest", "rating", "among", "all", "of", "their", "movie", ",", "and", "value", "of", "that", "rating", ".", "ignore", "movie", "whose", "director", "is", "null", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 1, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 4, false ], null ], "\"null\"", null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "For", "each", "director", ",", "return", "the", "director", "'s", "name", "together", "with", "the", "title", "of", "the", "movie", "they", "directed", "that", "received", "the", "highest", "rating", "among", "all", "of", "their", "movies", ",", "and", "the", "value", "of", "that", "rating", ".", "Ignore", "movies", "whose", "director", "is", "NULL", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "director" ], [ "," ], [ "return" ], [ "director" ], [ "'s" ], [ "name" ], [ "together" ], [ "with" ], [ "title" ], [ "of" ], [ "movie" ], [ "they" ], [ "directed" ], [ "that" ], [ "received" ], [ "highest" ], [ "rating" ], [ "among" ], [ "all" ], [ "of" ], [ "their" ], [ "movie" ], [ "," ], [ "and" ], [ "value" ], [ "of" ], [ "that" ], [ "rating" ], [ "." ], [ "ignore" ], [ "movie" ], [ "whose" ], [ "director" ], [ "is" ], [ "null" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "director", "NN" ], [ ",", "," ], [ "return", "VBP" ], [ "director", "NN" ], [ "'s", "POS" ], [ "name", "NN" ], [ "together", "RB" ], [ "with", "IN" ], [ "title", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ "they", "PRP" ], [ "directed", "VBD" ], [ "that", "IN" ], [ "received", "VBD" ], [ "highest", "JJS" ], [ "rating", "NN" ], [ "among", "IN" ], [ "all", "DT" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "movie", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "value", "NN" ], [ "of", "IN" ], [ "that", "DT" ], [ "rating", "NN" ], [ ".", "." ], [ "ignore", "VB" ], [ "movie", "NN" ], [ "whose", "WP$" ], [ "director", "NN" ], [ "is", "VBZ" ], [ "null", "JJ" ], [ ".", "." ] ], "values": [ "null" ], "rule_label": "Root1(3) Root(3) Sel(0) N(3) A(0) C(2) T(0) A(0) C(7) T(2) A(0) C(4) T(0) A(1) C(7) T(2) Filter(3) A(0) C(4) T(0) V(0)" }, { "db_id": "movie_1", "query": "SELECT T2.title , T1.stars , T2.director , max(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE director != \"null\" GROUP BY director", "query_toks": [ "SELECT", "T2.title", ",", "T1.stars", ",", "T2.director", ",", "max", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "director", "!", "=", "``", "null", "''", "GROUP", "BY", "director" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "max", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "director", "!", "=", "value", "group", "by", "director" ], "question": "For each director, what are the titles and ratings for all the movies they reviewed?", "question_toks": [ "for", "each", "director", ",", "what", "are", "title", "and", "rating", "for", "all", "movie", "they", "reviewed", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 1, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 4, false ], null ], "\"null\"", null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "For", "each", "director", ",", "what", "are", "the", "titles", "and", "ratings", "for", "all", "the", "movies", "they", "reviewed", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "director" ], [ "," ], [ "what" ], [ "are" ], [ "title" ], [ "and" ], [ "rating" ], [ "for" ], [ "all" ], [ "movie" ], [ "they" ], [ "reviewed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "director", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "and", "CC" ], [ "rating", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "they", "PRP" ], [ "reviewed", "VBD" ], [ "?", "." ] ], "values": [ "null" ], "rule_label": "Root1(3) Root(3) Sel(0) N(3) A(0) C(2) T(0) A(0) C(7) T(2) A(0) C(4) T(0) A(1) C(7) T(2) Filter(3) A(0) C(4) T(0) V(0)" }, { "db_id": "movie_1", "query": "SELECT T2.title , T1.rID , T1.stars , min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.rID", "query_toks": [ "SELECT", "T2.title", ",", "T1.rID", ",", "T1.stars", ",", "min", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T1.rID" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "t1", ".", "rid", ",", "t1", ".", "stars", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t1", ".", "rid" ], "question": "Find the title and star rating of the movie that got the least rating star for each reviewer.", "question_toks": [ "find", "title", "and", "star", "rating", "of", "movie", "that", "got", "least", "rating", "star", "for", "each", "reviewer", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 2, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "title", "and", "star", "rating", "of", "the", "movie", "that", "got", "the", "least", "rating", "star", "for", "each", "reviewer", "." ], "question_arg": [ [ "find" ], [ "title" ], [ "and" ], [ "rating", "star" ], [ "of" ], [ "movie" ], [ "that" ], [ "got" ], [ "least" ], [ "rating", "star" ], [ "for" ], [ "each" ], [ "reviewer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "and", "CC" ], [ "star", "NN" ], [ "rating", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ "that", "IN" ], [ "got", "VBD" ], [ "least", "JJS" ], [ "rating", "NN" ], [ "star", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "reviewer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(2) T(0) A(0) C(5) T(2) A(0) C(7) T(2) A(2) C(7) T(2)" }, { "db_id": "movie_1", "query": "SELECT T2.title , T1.rID , T1.stars , min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.rID", "query_toks": [ "SELECT", "T2.title", ",", "T1.rID", ",", "T1.stars", ",", "min", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T1.rID" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "t1", ".", "rid", ",", "t1", ".", "stars", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t1", ".", "rid" ], "question": "For each reviewer id, what is the title and rating for the movie with the smallest rating?", "question_toks": [ "for", "each", "reviewer", "id", ",", "what", "is", "title", "and", "rating", "for", "movie", "with", "smallest", "rating", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 2, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "For", "each", "reviewer", "id", ",", "what", "is", "the", "title", "and", "rating", "for", "the", "movie", "with", "the", "smallest", "rating", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "reviewer", "id" ], [ "," ], [ "what" ], [ "is" ], [ "title" ], [ "and" ], [ "rating" ], [ "for" ], [ "movie" ], [ "with" ], [ "smallest" ], [ "rating" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "reviewer", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "title", "JJ" ], [ "and", "CC" ], [ "rating", "NN" ], [ "for", "IN" ], [ "movie", "NN" ], [ "with", "IN" ], [ "smallest", "NN" ], [ "rating", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(2) T(0) A(0) C(5) T(2) A(0) C(7) T(2) A(2) C(7) T(2)" }, { "db_id": "movie_1", "query": "SELECT T2.title , T1.stars , T2.director , min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.director", "query_toks": [ "SELECT", "T2.title", ",", "T1.stars", ",", "T2.director", ",", "min", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T2.director" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t2", ".", "director" ], "question": "Find the title and score of the movie with the lowest rating among all movies directed by each director.", "question_toks": [ "find", "title", "and", "score", "of", "movie", "with", "lowest", "rating", "among", "all", "movie", "directed", "by", "each", "director", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 2, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "title", "and", "score", "of", "the", "movie", "with", "the", "lowest", "rating", "among", "all", "movies", "directed", "by", "each", "director", "." ], "question_arg": [ [ "find" ], [ "title" ], [ "and" ], [ "score" ], [ "of" ], [ "movie" ], [ "with" ], [ "lowest" ], [ "rating" ], [ "among" ], [ "all" ], [ "movie" ], [ "directed" ], [ "by" ], [ "each" ], [ "director" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "and", "CC" ], [ "score", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ "with", "IN" ], [ "lowest", "JJS" ], [ "rating", "NN" ], [ "among", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "directed", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "director", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(2) T(0) A(0) C(7) T(2) A(0) C(4) T(0) A(2) C(7) T(2)" }, { "db_id": "movie_1", "query": "SELECT T2.title , T1.stars , T2.director , min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.director", "query_toks": [ "SELECT", "T2.title", ",", "T1.stars", ",", "T2.director", ",", "min", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T2.director" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t2", ".", "director" ], "question": "For each director, what is the title and score of their most poorly rated movie?", "question_toks": [ "for", "each", "director", ",", "what", "is", "title", "and", "score", "of", "their", "most", "poorly", "rated", "movie", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 2, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "For", "each", "director", ",", "what", "is", "the", "title", "and", "score", "of", "their", "most", "poorly", "rated", "movie", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "director" ], [ "," ], [ "what" ], [ "is" ], [ "title" ], [ "and" ], [ "score" ], [ "of" ], [ "their" ], [ "most" ], [ "poorly" ], [ "rated" ], [ "movie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "director", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "title", "JJ" ], [ "and", "CC" ], [ "score", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "most", "JJS" ], [ "poorly", "RB" ], [ "rated", "VBN" ], [ "movie", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(2) T(0) A(0) C(7) T(2) A(0) C(4) T(0) A(2) C(7) T(2)" }, { "db_id": "movie_1", "query": "SELECT T2.title , T1.mID FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.title", ",", "T1.mID", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T1.mID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "t1", ".", "mid", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t1", ".", "mid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the movie that is rated by most of times?", "question_toks": [ "what", "is", "name", "of", "movie", "that", "is", "rated", "by", "most", "of", "time", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "movie", "that", "is", "rated", "by", "most", "of", "times", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "movie" ], [ "that" ], [ "is" ], [ "rated" ], [ "by" ], [ "most" ], [ "of" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "rated", "VBN" ], [ "by", "IN" ], [ "most", "JJS" ], [ "of", "IN" ], [ "time", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "movie_1", "query": "SELECT T2.title , T1.mID FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.title", ",", "T1.mID", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T1.mID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "t1", ".", "mid", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t1", ".", "mid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the movie that has been reviewed the most?", "question_toks": [ "what", "is", "name", "of", "movie", "that", "ha", "been", "reviewed", "most", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "movie", "that", "has", "been", "reviewed", "the", "most", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "movie" ], [ "that" ], [ "ha" ], [ "been" ], [ "reviewed" ], [ "most" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "ha", "VBD" ], [ "been", "VBN" ], [ "reviewed", "VBN" ], [ "most", "JJS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "movie_1", "query": "SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars BETWEEN 3 AND 5", "query_toks": [ "SELECT", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T1.stars", "BETWEEN", "3", "AND", "5" ], "query_toks_no_value": [ "select", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t1", ".", "stars", "between", "value", "and", "value" ], "question": "What are the titles of all movies that have rating star is between 3 and 5?", "question_toks": [ "what", "are", "title", "of", "all", "movie", "that", "have", "rating", "star", "is", "between", "3", "and", "5", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 9, false ], null ], 3.0, 5.0 ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "all", "movies", "that", "have", "rating", "star", "is", "between", "3", "and", "5", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "all" ], [ "movie" ], [ "that" ], [ "have" ], [ "rating", "star" ], [ "is" ], [ "between" ], [ "3" ], [ "and" ], [ "5" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "rating", "NN" ], [ "star", "NN" ], [ "is", "VBZ" ], [ "between", "IN" ], [ "3", "CD" ], [ "and", "CC" ], [ "5", "CD" ], [ "?", "." ] ], "values": [ "3", "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(8) A(0) C(7) T(2) V(0) V(1)" }, { "db_id": "movie_1", "query": "SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars BETWEEN 3 AND 5", "query_toks": [ "SELECT", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T1.stars", "BETWEEN", "3", "AND", "5" ], "query_toks_no_value": [ "select", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t1", ".", "stars", "between", "value", "and", "value" ], "question": "What are the titles of all movies that have between 3 and 5 stars?", "question_toks": [ "what", "are", "title", "of", "all", "movie", "that", "have", "between", "3", "and", "5", "star", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 9, false ], null ], 3.0, 5.0 ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "all", "movies", "that", "have", "between", "3", "and", "5", "stars", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "all" ], [ "movie" ], [ "that" ], [ "have" ], [ "between" ], [ "3" ], [ "and" ], [ "5" ], [ "star" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "between", "IN" ], [ "3", "CD" ], [ "and", "CC" ], [ "5", "CD" ], [ "star", "NN" ], [ "?", "." ] ], "values": [ "3", "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(8) A(0) C(7) T(2) V(0) V(1)" }, { "db_id": "movie_1", "query": "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars > 3", "query_toks": [ "SELECT", "T2.name", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "T1.stars", ">", "3" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "t1", ".", "stars", ">", "value" ], "question": "Find the names of reviewers who had given higher than 3 star ratings.", "question_toks": [ "find", "name", "of", "reviewer", "who", "had", "given", "higher", "than", "3", "star", "rating", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, 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, 3, [ 0, [ 0, 9, false ], null ], 3.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "reviewers", "who", "had", "given", "higher", "than", "3", "star", "ratings", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "reviewer" ], [ "who" ], [ "had" ], [ "given" ], [ "higher" ], [ "than" ], [ "3" ], [ "rating", "star" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "reviewer", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "given", "VBN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "star", "NN" ], [ "rating", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(5) A(0) C(7) T(2) V(0)" }, { "db_id": "movie_1", "query": "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars > 3", "query_toks": [ "SELECT", "T2.name", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "T1.stars", ">", "3" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "t1", ".", "stars", ">", "value" ], "question": "What are the names of the reviewers who have rated a movie more than 3 stars before?", "question_toks": [ "what", "are", "name", "of", "reviewer", "who", "have", "rated", "a", "movie", "more", "than", "3", "star", "before", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, 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, 3, [ 0, [ 0, 9, false ], null ], 3.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "reviewers", "who", "have", "rated", "a", "movie", "more", "than", "3", "stars", "before", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "reviewer" ], [ "who" ], [ "have" ], [ "rated" ], [ "a" ], [ "movie" ], [ "more" ], [ "than" ], [ "3" ], [ "star" ], [ "before" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "reviewer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "rated", "VBN" ], [ "a", "DT" ], [ "movie", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "star", "NN" ], [ "before", "IN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(5) A(0) C(7) T(2) V(0)" }, { "db_id": "movie_1", "query": "SELECT mID , avg(stars) FROM Rating WHERE mID NOT IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = \"Brittany Harris\") GROUP BY mID", "query_toks": [ "SELECT", "mID", ",", "avg", "(", "stars", ")", "FROM", "Rating", "WHERE", "mID", "NOT", "IN", "(", "SELECT", "T1.mID", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "T2.name", "=", "``", "Brittany", "Harris", "''", ")", "GROUP", "BY", "mID" ], "query_toks_no_value": [ "select", "mid", ",", "avg", "(", "stars", ")", "from", "rating", "where", "mid", "not", "in", "(", "select", "t1", ".", "mid", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "t2", ".", "name", "=", "value", ")", "group", "by", "mid" ], "question": "Find the average rating star for each movie that are not reviewed by Brittany Harris.", "question_toks": [ "find", "average", "rating", "star", "for", "each", "movie", "that", "are", "not", "reviewed", "by", "brittany", "harris", "." ], "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 ] ], [ 5, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 8, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, 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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Brittany Harris\"", null ] ] }, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "average", "rating", "star", "for", "each", "movie", "that", "are", "not", "reviewed", "by", "Brittany", "Harris", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "rating", "star" ], [ "for" ], [ "each" ], [ "movie" ], [ "that" ], [ "are" ], [ "not" ], [ "reviewed" ], [ "by" ], [ "brittany" ], [ "harris" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "rating", "NN" ], [ "star", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "reviewed", "VBN" ], [ "by", "IN" ], [ "brittany", "JJ" ], [ "harris", "NN" ], [ ".", "." ] ], "values": [ "Brittany Harris" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(2) A(5) C(7) T(2) Filter(19) A(0) C(1) T(2) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "movie_1", "query": "SELECT mID , avg(stars) FROM Rating WHERE mID NOT IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = \"Brittany Harris\") GROUP BY mID", "query_toks": [ "SELECT", "mID", ",", "avg", "(", "stars", ")", "FROM", "Rating", "WHERE", "mID", "NOT", "IN", "(", "SELECT", "T1.mID", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "T2.name", "=", "``", "Brittany", "Harris", "''", ")", "GROUP", "BY", "mID" ], "query_toks_no_value": [ "select", "mid", ",", "avg", "(", "stars", ")", "from", "rating", "where", "mid", "not", "in", "(", "select", "t1", ".", "mid", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "t2", ".", "name", "=", "value", ")", "group", "by", "mid" ], "question": "What is the average rating for each movie that has never been reviewed by Brittany Harris?", "question_toks": [ "what", "is", "average", "rating", "for", "each", "movie", "that", "ha", "never", "been", "reviewed", "by", "brittany", "harris", "?" ], "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 ] ], [ 5, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 8, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, 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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Brittany Harris\"", null ] ] }, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "rating", "for", "each", "movie", "that", "has", "never", "been", "reviewed", "by", "Brittany", "Harris", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "rating" ], [ "for" ], [ "each" ], [ "movie" ], [ "that" ], [ "ha" ], [ "never" ], [ "been" ], [ "reviewed" ], [ "by" ], [ "brittany" ], [ "harris" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "rating", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "movie", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "never", "RB" ], [ "been", "VBN" ], [ "reviewed", "VBN" ], [ "by", "IN" ], [ "brittany", "NN" ], [ "harris", "NN" ], [ "?", "." ] ], "values": [ "Brittany Harris" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(2) A(5) C(7) T(2) Filter(19) A(0) C(1) T(2) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "movie_1", "query": "SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = \"Brittany Harris\"", "query_toks": [ "SELECT", "mID", "FROM", "Rating", "EXCEPT", "SELECT", "T1.mID", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "T2.name", "=", "``", "Brittany", "Harris", "''" ], "query_toks_no_value": [ "select", "mid", "from", "rating", "except", "select", "t1", ".", "mid", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "t2", ".", "name", "=", "value" ], "question": "What are the ids of the movies that are not reviewed by Brittany Harris.", "question_toks": [ "what", "are", "id", "of", "movie", "that", "are", "not", "reviewed", "by", "brittany", "harris", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, 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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Brittany Harris\"", 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": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "movies", "that", "are", "not", "reviewed", "by", "Brittany", "Harris", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "movie" ], [ "that" ], [ "are" ], [ "not" ], [ "reviewed" ], [ "by" ], [ "brittany" ], [ "harris" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "reviewed", "VBN" ], [ "by", "IN" ], [ "brittany", "JJ" ], [ "harris", "NN" ], [ ".", "." ] ], "values": [ "Brittany Harris" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(1) T(2) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "movie_1", "query": "SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = \"Brittany Harris\"", "query_toks": [ "SELECT", "mID", "FROM", "Rating", "EXCEPT", "SELECT", "T1.mID", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "T2.name", "=", "``", "Brittany", "Harris", "''" ], "query_toks_no_value": [ "select", "mid", "from", "rating", "except", "select", "t1", ".", "mid", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "t2", ".", "name", "=", "value" ], "question": "What are the ids of all moviest hat have not been reviewed by Britanny Harris?", "question_toks": [ "what", "are", "id", "of", "all", "moviest", "hat", "have", "not", "been", "reviewed", "by", "britanny", "harris", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, 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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Brittany Harris\"", 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": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "moviest", "hat", "have", "not", "been", "reviewed", "by", "Britanny", "Harris", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "moviest" ], [ "hat" ], [ "have" ], [ "not" ], [ "been" ], [ "reviewed" ], [ "by" ], [ "britanny" ], [ "harris" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "moviest", "JJS" ], [ "hat", "NNS" ], [ "have", "VBP" ], [ "not", "RB" ], [ "been", "VBN" ], [ "reviewed", "VBN" ], [ "by", "IN" ], [ "britanny", "NN" ], [ "harris", "NN" ], [ "?", "." ] ], "values": [ "Brittany Harris" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(1) T(2) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "movie_1", "query": "SELECT mID , avg(stars) FROM Rating GROUP BY mID HAVING count(*) >= 2", "query_toks": [ "SELECT", "mID", ",", "avg", "(", "stars", ")", "FROM", "Rating", "GROUP", "BY", "mID", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "mid", ",", "avg", "(", "stars", ")", "from", "rating", "group", "by", "mid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Find the average rating star for each movie that received at least 2 ratings.", "question_toks": [ "find", "average", "rating", "star", "for", "each", "movie", "that", "received", "at", "least", "2", "rating", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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 ] ], [ 5, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "average", "rating", "star", "for", "each", "movie", "that", "received", "at", "least", "2", "ratings", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "rating", "star" ], [ "for" ], [ "each" ], [ "movie" ], [ "that" ], [ "received" ], [ "at" ], [ "least" ], [ "2" ], [ "rating" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "rating", "NN" ], [ "star", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "received", "VBD" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "rating", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(2) A(5) C(7) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "movie_1", "query": "SELECT mID , avg(stars) FROM Rating GROUP BY mID HAVING count(*) >= 2", "query_toks": [ "SELECT", "mID", ",", "avg", "(", "stars", ")", "FROM", "Rating", "GROUP", "BY", "mID", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "mid", ",", "avg", "(", "stars", ")", "from", "rating", "group", "by", "mid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "For each movie that received more than 3 reviews, what is the average rating?", "question_toks": [ "for", "each", "movie", "that", "received", "more", "than", "3", "review", ",", "what", "is", "average", "rating", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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 ] ], [ 5, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "For", "each", "movie", "that", "received", "more", "than", "3", "reviews", ",", "what", "is", "the", "average", "rating", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "movie" ], [ "that" ], [ "received" ], [ "more" ], [ "than" ], [ "3" ], [ "review" ], [ "," ], [ "what" ], [ "is" ], [ "average" ], [ "rating" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "received", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "review", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "rating", "NN" ], [ "?", "." ] ], "values": [ "3", "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(2) A(5) C(7) T(2) Filter(7) A(3) C(0) T(2) V(1)" }, { "db_id": "movie_1", "query": "SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars = 4", "query_toks": [ "SELECT", "rID", "FROM", "Rating", "EXCEPT", "SELECT", "rID", "FROM", "Rating", "WHERE", "stars", "=", "4" ], "query_toks_no_value": [ "select", "rid", "from", "rating", "except", "select", "rid", "from", "rating", "where", "stars", "=", "value" ], "question": "find the ids of reviewers who did not give 4 star.", "question_toks": [ "find", "id", "of", "reviewer", "who", "did", "not", "give", "4", "star", "." ], "sql": { "except": { "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, 9, false ], null ], 4.0, 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": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "find", "the", "ids", "of", "reviewers", "who", "did", "not", "give", "4", "star", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "reviewer" ], [ "who" ], [ "did" ], [ "not" ], [ "give" ], [ "4" ], [ "star" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "reviewer", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "give", "VB" ], [ "4", "CD" ], [ "star", "NN" ], [ ".", "." ] ], "values": [ "4" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(5) T(2) Root(3) Sel(0) N(0) A(0) C(5) T(2) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "movie_1", "query": "SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars = 4", "query_toks": [ "SELECT", "rID", "FROM", "Rating", "EXCEPT", "SELECT", "rID", "FROM", "Rating", "WHERE", "stars", "=", "4" ], "query_toks_no_value": [ "select", "rid", "from", "rating", "except", "select", "rid", "from", "rating", "where", "stars", "=", "value" ], "question": "What are the ids of all reviewers who did not give 4 stars?", "question_toks": [ "what", "are", "id", "of", "all", "reviewer", "who", "did", "not", "give", "4", "star", "?" ], "sql": { "except": { "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, 9, false ], null ], 4.0, 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": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "reviewers", "who", "did", "not", "give", "4", "stars", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "reviewer" ], [ "who" ], [ "did" ], [ "not" ], [ "give" ], [ "4" ], [ "star" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "reviewer", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "give", "VB" ], [ "4", "CD" ], [ "star", "NN" ], [ "?", "." ] ], "values": [ "4" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(5) T(2) Root(3) Sel(0) N(0) A(0) C(5) T(2) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "movie_1", "query": "SELECT rID FROM Rating WHERE stars != 4", "query_toks": [ "SELECT", "rID", "FROM", "Rating", "WHERE", "stars", "!", "=", "4" ], "query_toks_no_value": [ "select", "rid", "from", "rating", "where", "stars", "!", "=", "value" ], "question": "Find the ids of reviewers who didn't only give 4 star.", "question_toks": [ "find", "id", "of", "reviewer", "who", "did", "n't", "only", "give", "4", "star", "." ], "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, 7, [ 0, [ 0, 9, false ], null ], 4.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "ids", "of", "reviewers", "who", "did", "n't", "only", "give", "4", "star", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "reviewer" ], [ "who" ], [ "did" ], [ "n't" ], [ "only" ], [ "give" ], [ "4" ], [ "star" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "reviewer", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "n't", "RB" ], [ "only", "RB" ], [ "give", "VB" ], [ "4", "CD" ], [ "star", "NN" ], [ ".", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(2) Filter(3) A(0) C(7) T(2) V(0)" }, { "db_id": "movie_1", "query": "SELECT rID FROM Rating WHERE stars != 4", "query_toks": [ "SELECT", "rID", "FROM", "Rating", "WHERE", "stars", "!", "=", "4" ], "query_toks_no_value": [ "select", "rid", "from", "rating", "where", "stars", "!", "=", "value" ], "question": "What are the ids of all reviewers who have not given 4 stars at least once?", "question_toks": [ "what", "are", "id", "of", "all", "reviewer", "who", "have", "not", "given", "4", "star", "at", "least", "once", "?" ], "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, 7, [ 0, [ 0, 9, false ], null ], 4.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "reviewers", "who", "have", "not", "given", "4", "stars", "at", "least", "once", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "reviewer" ], [ "who" ], [ "have" ], [ "not" ], [ "given" ], [ "4" ], [ "star" ], [ "at" ], [ "least" ], [ "once" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "reviewer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "not", "RB" ], [ "given", "VBN" ], [ "4", "CD" ], [ "star", "NN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "once", "RB" ], [ "?", "." ] ], "values": [ "1", "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(2) Filter(3) A(0) C(7) T(2) V(1)" }, { "db_id": "movie_1", "query": "SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Brittany Harris' OR T2.year > 2000", "query_toks": [ "SELECT", "DISTINCT", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "JOIN", "Reviewer", "AS", "T3", "ON", "T1.rID", "=", "T3.rID", "WHERE", "T3.name", "=", "'Brittany", "Harris", "'", "OR", "T2.year", ">", "2000" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "join", "reviewer", "as", "t3", "on", "t1", ".", "rid", "=", "t3", ".", "rid", "where", "t3", ".", "name", "=", "value", "or", "t2", ".", "year", ">", "value" ], "question": "What are names of the movies that are either made after 2000 or reviewed by Brittany Harris?", "question_toks": [ "what", "are", "name", "of", "movie", "that", "are", "either", "made", "after", "year", "or", "reviewed", "by", "brittany", "harris", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 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", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Brittany Harris\"", null ], "or", [ false, 3, [ 0, [ 0, 3, false ], null ], 2000.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "names", "of", "the", "movies", "that", "are", "either", "made", "after", "2000", "or", "reviewed", "by", "Brittany", "Harris", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "movie" ], [ "that" ], [ "are" ], [ "either" ], [ "made" ], [ "after" ], [ "year" ], [ "or" ], [ "reviewed" ], [ "by" ], [ "brittany" ], [ "harris" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "either", "DT" ], [ "made", "VBN" ], [ "after", "IN" ], [ "2000", "CD" ], [ "or", "CC" ], [ "reviewed", "VBN" ], [ "by", "IN" ], [ "brittany", "NN" ], [ "harris", "NN" ], [ "?", "." ] ], "values": [ "Brittany Harris", "2000" ], "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(1) T(2) Filter(1) Filter(2) A(0) C(6) T(1) V(0) Filter(5) A(0) C(3) T(0) V(1)" }, { "db_id": "movie_1", "query": "SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Brittany Harris' OR T2.year > 2000", "query_toks": [ "SELECT", "DISTINCT", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "JOIN", "Reviewer", "AS", "T3", "ON", "T1.rID", "=", "T3.rID", "WHERE", "T3.name", "=", "'Brittany", "Harris", "'", "OR", "T2.year", ">", "2000" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "join", "reviewer", "as", "t3", "on", "t1", ".", "rid", "=", "t3", ".", "rid", "where", "t3", ".", "name", "=", "value", "or", "t2", ".", "year", ">", "value" ], "question": "What are the names of all movies that were made after 2000 or reviewed by Brittany Harris?", "question_toks": [ "what", "are", "name", "of", "all", "movie", "that", "were", "made", "after", "year", "or", "reviewed", "by", "brittany", "harris", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 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", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Brittany Harris\"", null ], "or", [ false, 3, [ 0, [ 0, 3, false ], null ], 2000.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "movies", "that", "were", "made", "after", "2000", "or", "reviewed", "by", "Brittany", "Harris", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "movie" ], [ "that" ], [ "were" ], [ "made" ], [ "after" ], [ "year" ], [ "or" ], [ "reviewed" ], [ "by" ], [ "brittany" ], [ "harris" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "made", "VBN" ], [ "after", "IN" ], [ "2000", "CD" ], [ "or", "CC" ], [ "reviewed", "VBN" ], [ "by", "IN" ], [ "brittany", "NN" ], [ "harris", "NN" ], [ "?", "." ] ], "values": [ "Brittany Harris", "2000" ], "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(1) T(2) Filter(1) Filter(2) A(0) C(6) T(1) V(0) Filter(5) A(0) C(3) T(0) V(1)" }, { "db_id": "movie_1", "query": "SELECT title FROM Movie WHERE director = \"James Cameron\" OR YEAR < 1980", "query_toks": [ "SELECT", "title", "FROM", "Movie", "WHERE", "director", "=", "``", "James", "Cameron", "''", "OR", "YEAR", "<", "1980" ], "query_toks_no_value": [ "select", "title", "from", "movie", "where", "director", "=", "value", "or", "year", "<", "value" ], "question": "What are names of the movies that are either made before 1980 or directed by James Cameron?", "question_toks": [ "what", "are", "name", "of", "movie", "that", "are", "either", "made", "before", "year", "or", "directed", "by", "james", "cameron", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"James Cameron\"", null ], "or", [ false, 4, [ 0, [ 0, 3, false ], null ], 1980.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "names", "of", "the", "movies", "that", "are", "either", "made", "before", "1980", "or", "directed", "by", "James", "Cameron", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "movie" ], [ "that" ], [ "are" ], [ "either" ], [ "made" ], [ "before" ], [ "year" ], [ "or" ], [ "directed" ], [ "by" ], [ "james" ], [ "cameron" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "either", "DT" ], [ "made", "VBN" ], [ "before", "IN" ], [ "1980", "CD" ], [ "or", "CC" ], [ "directed", "VBN" ], [ "by", "IN" ], [ "james", "NNS" ], [ "cameron", "NNS" ], [ "?", "." ] ], "values": [ "James Cameron", "1980" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(1) Filter(2) A(0) C(4) T(0) V(0) Filter(4) A(0) C(3) T(0) V(1)" }, { "db_id": "movie_1", "query": "SELECT title FROM Movie WHERE director = \"James Cameron\" OR YEAR < 1980", "query_toks": [ "SELECT", "title", "FROM", "Movie", "WHERE", "director", "=", "``", "James", "Cameron", "''", "OR", "YEAR", "<", "1980" ], "query_toks_no_value": [ "select", "title", "from", "movie", "where", "director", "=", "value", "or", "year", "<", "value" ], "question": "What are the names of all movies made before 1980 or had James Cameron as the director?", "question_toks": [ "what", "are", "name", "of", "all", "movie", "made", "before", "year", "or", "had", "james", "cameron", "a", "director", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"James Cameron\"", null ], "or", [ false, 4, [ 0, [ 0, 3, false ], null ], 1980.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "movies", "made", "before", "1980", "or", "had", "James", "Cameron", "as", "the", "director", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "movie" ], [ "made" ], [ "before" ], [ "year" ], [ "or" ], [ "had" ], [ "james" ], [ "cameron" ], [ "a" ], [ "director" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "made", "VBN" ], [ "before", "IN" ], [ "1980", "CD" ], [ "or", "CC" ], [ "had", "VBD" ], [ "james", "NNS" ], [ "cameron", "VB" ], [ "a", "DT" ], [ "director", "NN" ], [ "?", "." ] ], "values": [ "James Cameron", "1980" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(1) Filter(2) A(0) C(4) T(0) V(0) Filter(4) A(0) C(3) T(0) V(1)" }, { "db_id": "movie_1", "query": "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 4", "query_toks": [ "SELECT", "T2.name", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "T1.stars", "=", "3", "INTERSECT", "SELECT", "T2.name", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "T1.stars", "=", "4" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "t1", ".", "stars", "=", "value", "intersect", "select", "t2", ".", "name", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "t1", ".", "stars", "=", "value" ], "question": "What are the names of reviewers who had rated 3 star and 4 star?", "question_toks": [ "what", "are", "name", "of", "reviewer", "who", "had", "rated", "3", "star", "and", "4", "star", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, 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, 2, [ 0, [ 0, 9, false ], null ], 4.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], 3.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "reviewers", "who", "had", "rated", "3", "star", "and", "4", "star", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "reviewer" ], [ "who" ], [ "had" ], [ "rated" ], [ "3" ], [ "star" ], [ "and" ], [ "4" ], [ "star" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "reviewer", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "rated", "VBN" ], [ "3", "CD" ], [ "star", "NN" ], [ "and", "CC" ], [ "4", "CD" ], [ "star", "NN" ], [ "?", "." ] ], "values": [ "4", "3" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(2) A(0) C(7) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "movie_1", "query": "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 4", "query_toks": [ "SELECT", "T2.name", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "T1.stars", "=", "3", "INTERSECT", "SELECT", "T2.name", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "T1.stars", "=", "4" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "t1", ".", "stars", "=", "value", "intersect", "select", "t2", ".", "name", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "t1", ".", "stars", "=", "value" ], "question": "What are the names of all reviewers that have given 3 or 4 stars for reviews?", "question_toks": [ "what", "are", "name", "of", "all", "reviewer", "that", "have", "given", "3", "or", "4", "star", "for", "review", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, 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, 2, [ 0, [ 0, 9, false ], null ], 4.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], 3.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "reviewers", "that", "have", "given", "3", "or", "4", "stars", "for", "reviews", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "reviewer" ], [ "that" ], [ "have" ], [ "given" ], [ "3" ], [ "or" ], [ "4" ], [ "star" ], [ "for" ], [ "review" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "reviewer", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "given", "VBN" ], [ "3", "CD" ], [ "or", "CC" ], [ "4", "CD" ], [ "star", "NN" ], [ "for", "IN" ], [ "review", "NN" ], [ "?", "." ] ], "values": [ "4", "3" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(2) A(0) C(7) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "movie_1", "query": "SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 4", "query_toks": [ "SELECT", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T1.stars", "=", "3", "INTERSECT", "SELECT", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T1.stars", "=", "4" ], "query_toks_no_value": [ "select", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t1", ".", "stars", "=", "value", "intersect", "select", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t1", ".", "stars", "=", "value" ], "question": "What are the names of movies that get 3 star and 4 star?", "question_toks": [ "what", "are", "name", "of", "movie", "that", "get", "3", "star", "and", "4", "star", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], 4.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], 3.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "movies", "that", "get", "3", "star", "and", "4", "star", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "movie" ], [ "that" ], [ "get" ], [ "3" ], [ "star" ], [ "and" ], [ "4" ], [ "star" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ "that", "IN" ], [ "get", "VBP" ], [ "3", "CD" ], [ "star", "NN" ], [ "and", "CC" ], [ "4", "CD" ], [ "star", "NN" ], [ "?", "." ] ], "values": [ "4", "3" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(7) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "movie_1", "query": "SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 4", "query_toks": [ "SELECT", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T1.stars", "=", "3", "INTERSECT", "SELECT", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T1.stars", "=", "4" ], "query_toks_no_value": [ "select", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t1", ".", "stars", "=", "value", "intersect", "select", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t1", ".", "stars", "=", "value" ], "question": "What are the names of all movies that received 3 or 4 stars?", "question_toks": [ "what", "are", "name", "of", "all", "movie", "that", "received", "3", "or", "4", "star", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], 4.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], 3.0, null ] ] }, "names": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "reviewer id", "movie id", "rating stars", "rating date" ], "table_names": [ "movie", "reviewer", "rating" ], "col_set": [ "*", "movie id", "title", "year", "director", "reviewer id", "name", "rating stars", "rating date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "7": 5, "5": 5, "8": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "movies", "that", "received", "3", "or", "4", "stars", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "movie" ], [ "that" ], [ "received" ], [ "3" ], [ "or" ], [ "4" ], [ "star" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "that", "WDT" ], [ "received", "VBD" ], [ "3", "CD" ], [ "or", "CC" ], [ "4", "CD" ], [ "star", "NN" ], [ "?", "." ] ], "values": [ "4", "3" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(7) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "county_public_safety", "query": "SELECT count(*) FROM county_public_safety", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "county_public_safety" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "county_public_safety" ], "question": "How many counties are there?", "question_toks": [ "how", "many", "county", "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": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "How", "many", "counties", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "county" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "county", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "county_public_safety", "query": "SELECT count(*) FROM county_public_safety", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "county_public_safety" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "county_public_safety" ], "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": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "Count", "the", "number", "of", "countries", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "country" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "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": "county_public_safety", "query": "SELECT Name FROM county_public_safety ORDER BY Population DESC", "query_toks": [ "SELECT", "Name", "FROM", "county_public_safety", "ORDER", "BY", "Population", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "county_public_safety", "order", "by", "population", "desc" ], "question": "List the names of counties in descending order of population.", "question_toks": [ "list", "name", "of", "county", "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, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "List", "the", "names", "of", "counties", "in", "descending", "order", "of", "population", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "county" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "population" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "county", "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(3) T(0)" }, { "db_id": "county_public_safety", "query": "SELECT Name FROM county_public_safety ORDER BY Population DESC", "query_toks": [ "SELECT", "Name", "FROM", "county_public_safety", "ORDER", "BY", "Population", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "county_public_safety", "order", "by", "population", "desc" ], "question": "What are the names of the counties of public safety, ordered by population descending?", "question_toks": [ "what", "are", "name", "of", "county", "of", "public", "safety", ",", "ordered", "by", "population", "descending", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "counties", "of", "public", "safety", ",", "ordered", "by", "population", "descending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "county" ], [ "of" ], [ "public" ], [ "safety" ], [ "," ], [ "ordered" ], [ "by" ], [ "population" ], [ "descending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "of", "IN" ], [ "public", "JJ" ], [ "safety", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "population", "NN" ], [ "descending", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(0) A(0) C(3) T(0)" }, { "db_id": "county_public_safety", "query": "SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION != \"East\"", "query_toks": [ "SELECT", "DISTINCT", "Police_force", "FROM", "county_public_safety", "WHERE", "LOCATION", "!", "=", "``", "East", "''" ], "query_toks_no_value": [ "select", "distinct", "police_force", "from", "county_public_safety", "where", "location", "!", "=", "value" ], "question": "List the distinct police forces of counties whose location is not on east side.", "question_toks": [ "list", "distinct", "police", "force", "of", "county", "whose", "location", "is", "not", "on", "east", "side", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 9, false ], null ], "\"East\"", null ] ] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "List", "the", "distinct", "police", "forces", "of", "counties", "whose", "location", "is", "not", "on", "east", "side", "." ], "question_arg": [ [ "list" ], [ "distinct" ], [ "police", "force" ], [ "of" ], [ "county" ], [ "whose" ], [ "location" ], [ "is" ], [ "not" ], [ "on" ], [ "east" ], [ "side" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "distinct", "JJ" ], [ "police", "NN" ], [ "force", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "whose", "WP$" ], [ "location", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "on", "IN" ], [ "east", "JJ" ], [ "side", "NN" ], [ ".", "." ] ], "values": [ "East" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(8) T(0) Filter(3) A(0) C(9) T(0) V(0)" }, { "db_id": "county_public_safety", "query": "SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION != \"East\"", "query_toks": [ "SELECT", "DISTINCT", "Police_force", "FROM", "county_public_safety", "WHERE", "LOCATION", "!", "=", "``", "East", "''" ], "query_toks_no_value": [ "select", "distinct", "police_force", "from", "county_public_safety", "where", "location", "!", "=", "value" ], "question": "What are the different police forces of counties that are not located in the East?", "question_toks": [ "what", "are", "different", "police", "force", "of", "county", "that", "are", "not", "located", "in", "east", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 9, false ], null ], "\"East\"", null ] ] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "different", "police", "forces", "of", "counties", "that", "are", "not", "located", "in", "the", "East", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "police", "force" ], [ "of" ], [ "county" ], [ "that" ], [ "are" ], [ "not" ], [ "located" ], [ "in" ], [ "east" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "location" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "police", "NNS" ], [ "force", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "located", "VBN" ], [ "in", "IN" ], [ "east", "NN" ], [ "?", "." ] ], "values": [ "East" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(8) T(0) Filter(3) A(0) C(9) T(0) V(0)" }, { "db_id": "county_public_safety", "query": "SELECT min(Crime_rate) , max(Crime_rate) FROM county_public_safety", "query_toks": [ "SELECT", "min", "(", "Crime_rate", ")", ",", "max", "(", "Crime_rate", ")", "FROM", "county_public_safety" ], "query_toks_no_value": [ "select", "min", "(", "crime_rate", ")", ",", "max", "(", "crime_rate", ")", "from", "county_public_safety" ], "question": "What are the minimum and maximum crime rate of counties?", "question_toks": [ "what", "are", "minimum", "and", "maximum", "crime", "rate", "of", "county", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 7, false ], null ] ], [ 1, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "minimum", "and", "maximum", "crime", "rate", "of", "counties", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "minimum" ], [ "and" ], [ "maximum" ], [ "crime", "rate" ], [ "of" ], [ "county" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "minimum", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "crime", "NN" ], [ "rate", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(2) C(7) T(0) A(1) C(7) T(0)" }, { "db_id": "county_public_safety", "query": "SELECT min(Crime_rate) , max(Crime_rate) FROM county_public_safety", "query_toks": [ "SELECT", "min", "(", "Crime_rate", ")", ",", "max", "(", "Crime_rate", ")", "FROM", "county_public_safety" ], "query_toks_no_value": [ "select", "min", "(", "crime_rate", ")", ",", "max", "(", "crime_rate", ")", "from", "county_public_safety" ], "question": "Return the minimum and maximum crime rates across all counties.", "question_toks": [ "return", "minimum", "and", "maximum", "crime", "rate", "across", "all", "county", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 7, false ], null ] ], [ 1, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "Return", "the", "minimum", "and", "maximum", "crime", "rates", "across", "all", "counties", "." ], "question_arg": [ [ "return" ], [ "minimum" ], [ "and" ], [ "maximum" ], [ "crime", "rate" ], [ "across" ], [ "all" ], [ "county" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "minimum", "NN" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "crime", "NN" ], [ "rate", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "county", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(2) C(7) T(0) A(1) C(7) T(0)" }, { "db_id": "county_public_safety", "query": "SELECT Crime_rate FROM county_public_safety ORDER BY Police_officers ASC", "query_toks": [ "SELECT", "Crime_rate", "FROM", "county_public_safety", "ORDER", "BY", "Police_officers", "ASC" ], "query_toks_no_value": [ "select", "crime_rate", "from", "county_public_safety", "order", "by", "police_officers", "asc" ], "question": "Show the crime rates of counties in ascending order of number of police officers.", "question_toks": [ "show", "crime", "rate", "of", "county", "in", "ascending", "order", "of", "number", "of", "police", "officer", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "Show", "the", "crime", "rates", "of", "counties", "in", "ascending", "order", "of", "number", "of", "police", "officers", "." ], "question_arg": [ [ "show" ], [ "crime", "rate" ], [ "of" ], [ "county" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "number" ], [ "of" ], [ "police", "officer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "crime", "NN" ], [ "rate", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "police", "JJ" ], [ "officer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(7) T(0) Order(1) A(0) C(4) T(0)" }, { "db_id": "county_public_safety", "query": "SELECT Crime_rate FROM county_public_safety ORDER BY Police_officers ASC", "query_toks": [ "SELECT", "Crime_rate", "FROM", "county_public_safety", "ORDER", "BY", "Police_officers", "ASC" ], "query_toks_no_value": [ "select", "crime_rate", "from", "county_public_safety", "order", "by", "police_officers", "asc" ], "question": "What are the crime rates of counties sorted by number of offices ascending?", "question_toks": [ "what", "are", "crime", "rate", "of", "county", "sorted", "by", "number", "of", "office", "ascending", "?" ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "crime", "rates", "of", "counties", "sorted", "by", "number", "of", "offices", "ascending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "crime", "rate" ], [ "of" ], [ "county" ], [ "sorted" ], [ "by" ], [ "number" ], [ "of" ], [ "office" ], [ "ascending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "crime", "NN" ], [ "rate", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "office", "NN" ], [ "ascending", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(7) T(0) Order(1) A(0) C(4) T(0)" }, { "db_id": "county_public_safety", "query": "SELECT Name FROM city ORDER BY Name ASC", "query_toks": [ "SELECT", "Name", "FROM", "city", "ORDER", "BY", "Name", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "city", "order", "by", "name", "asc" ], "question": "What are the names of cities in ascending alphabetical order?", "question_toks": [ "what", "are", "name", "of", "city", "in", "ascending", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "cities", "in", "ascending", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "city" ], [ "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" ], [ "city", "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": "county_public_safety", "query": "SELECT Name FROM city ORDER BY Name ASC", "query_toks": [ "SELECT", "Name", "FROM", "city", "ORDER", "BY", "Name", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "city", "order", "by", "name", "asc" ], "question": "Return the names of cities, ordered alphabetically.", "question_toks": [ "return", "name", "of", "city", ",", "ordered", "alphabetically", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "Return", "the", "names", "of", "cities", ",", "ordered", "alphabetically", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "city" ], [ "," ], [ "ordered" ], [ "alphabetically" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "city", "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": "county_public_safety", "query": "SELECT Hispanic FROM city WHERE Black > 10", "query_toks": [ "SELECT", "Hispanic", "FROM", "city", "WHERE", "Black", ">", "10" ], "query_toks_no_value": [ "select", "hispanic", "from", "city", "where", "black", ">", "value" ], "question": "What are the percentage of hispanics in cities with the black percentage higher than 10?", "question_toks": [ "what", "are", "percentage", "of", "hispanic", "in", "city", "with", "black", "percentage", "higher", "than", "10", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], 10.0, null ] ] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "percentage", "of", "hispanics", "in", "cities", "with", "the", "black", "percentage", "higher", "than", "10", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "percentage" ], [ "of" ], [ "hispanic" ], [ "in" ], [ "city" ], [ "with" ], [ "black" ], [ "percentage" ], [ "higher" ], [ "than" ], [ "10" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "percentage", "NN" ], [ "of", "IN" ], [ "hispanic", "JJ" ], [ "in", "IN" ], [ "city", "NN" ], [ "with", "IN" ], [ "black", "JJ" ], [ "percentage", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "?", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(1) Filter(5) A(0) C(12) T(1) V(0)" }, { "db_id": "county_public_safety", "query": "SELECT Hispanic FROM city WHERE Black > 10", "query_toks": [ "SELECT", "Hispanic", "FROM", "city", "WHERE", "Black", ">", "10" ], "query_toks_no_value": [ "select", "hispanic", "from", "city", "where", "black", ">", "value" ], "question": "Return the hispanic percentage for cities in which the black percentage is greater than 10.", "question_toks": [ "return", "hispanic", "percentage", "for", "city", "in", "which", "black", "percentage", "is", "greater", "than", "10", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], 10.0, null ] ] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "Return", "the", "hispanic", "percentage", "for", "cities", "in", "which", "the", "black", "percentage", "is", "greater", "than", "10", "." ], "question_arg": [ [ "return" ], [ "hispanic" ], [ "percentage" ], [ "for" ], [ "city" ], [ "in" ], [ "which" ], [ "black" ], [ "percentage" ], [ "is" ], [ "greater" ], [ "than" ], [ "10" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "hispanic", "JJ" ], [ "percentage", "NN" ], [ "for", "IN" ], [ "city", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "black", "JJ" ], [ "percentage", "NN" ], [ "is", "VBZ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ ".", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(1) Filter(5) A(0) C(12) T(1) V(0)" }, { "db_id": "county_public_safety", "query": "SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "county_public_safety", "ORDER", "BY", "Population", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "county_public_safety", "order", "by", "population", "desc", "limit", "value" ], "question": "List the name of the county with the largest population.", "question_toks": [ "list", "name", "of", "county", "with", "largest", "population", "." ], "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": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "List", "the", "name", "of", "the", "county", "with", "the", "largest", "population", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "county" ], [ "with" ], [ "largest" ], [ "population" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "population", "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": "county_public_safety", "query": "SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "county_public_safety", "ORDER", "BY", "Population", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "county_public_safety", "order", "by", "population", "desc", "limit", "value" ], "question": "What is the name of the county with the greatest population?", "question_toks": [ "what", "is", "name", "of", "county", "with", "greatest", "population", "?" ], "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": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "county", "with", "the", "greatest", "population", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "county" ], [ "with" ], [ "greatest" ], [ "population" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "population", "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": "county_public_safety", "query": "SELECT Name FROM city ORDER BY White DESC LIMIT 5", "query_toks": [ "SELECT", "Name", "FROM", "city", "ORDER", "BY", "White", "DESC", "LIMIT", "5" ], "query_toks_no_value": [ "select", "name", "from", "city", "order", "by", "white", "desc", "limit", "value" ], "question": "List the names of the city with the top 5 white percentages.", "question_toks": [ "list", "name", "of", "city", "with", "top", "5", "white", "percentage", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "List", "the", "names", "of", "the", "city", "with", "the", "top", "5", "white", "percentages", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "city" ], [ "with" ], [ "top" ], [ "5" ], [ "white" ], [ "percentage" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "with", "IN" ], [ "top", "JJ" ], [ "5", "CD" ], [ "white", "JJ" ], [ "percentage", "NN" ], [ ".", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(1) Sup(0) A(0) C(11) T(1)" }, { "db_id": "county_public_safety", "query": "SELECT Name FROM city ORDER BY White DESC LIMIT 5", "query_toks": [ "SELECT", "Name", "FROM", "city", "ORDER", "BY", "White", "DESC", "LIMIT", "5" ], "query_toks_no_value": [ "select", "name", "from", "city", "order", "by", "white", "desc", "limit", "value" ], "question": "What are the names of the five cities with the greatest proportion of white people?", "question_toks": [ "what", "are", "name", "of", "five", "city", "with", "greatest", "proportion", "of", "white", "people", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "five", "cities", "with", "the", "greatest", "proportion", "of", "white", "people", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "five" ], [ "city" ], [ "with" ], [ "greatest" ], [ "proportion" ], [ "of" ], [ "white" ], [ "people" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "five", "CD" ], [ "city", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "proportion", "NN" ], [ "of", "IN" ], [ "white", "JJ" ], [ "people", "NNS" ], [ "?", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(1) Sup(0) A(0) C(11) T(1)" }, { "db_id": "county_public_safety", "query": "SELECT T1.Name , T2.Name FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID", "query_toks": [ "SELECT", "T1.Name", ",", "T2.Name", "FROM", "city", "AS", "T1", "JOIN", "county_public_safety", "AS", "T2", "ON", "T1.County_ID", "=", "T2.County_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "name", "from", "city", "as", "t1", "join", "county_public_safety", "as", "t2", "on", "t1", ".", "county_id", "=", "t2", ".", "county_id" ], "question": "Show names of cities and names of counties they are in.", "question_toks": [ "show", "name", "of", "city", "and", "name", "of", "county", "they", "are", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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, 12, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "Show", "names", "of", "cities", "and", "names", "of", "counties", "they", "are", "in", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "city" ], [ "and" ], [ "name" ], [ "of" ], [ "county" ], [ "they" ], [ "are" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "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": "county_public_safety", "query": "SELECT T1.Name , T2.Name FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID", "query_toks": [ "SELECT", "T1.Name", ",", "T2.Name", "FROM", "city", "AS", "T1", "JOIN", "county_public_safety", "AS", "T2", "ON", "T1.County_ID", "=", "T2.County_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "name", "from", "city", "as", "t1", "join", "county_public_safety", "as", "t2", "on", "t1", ".", "county_id", "=", "t2", ".", "county_id" ], "question": "What are the names of cities, as well as the names of the counties they correspond to?", "question_toks": [ "what", "are", "name", "of", "city", ",", "a", "well", "a", "name", "of", "county", "they", "correspond", "to", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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, 12, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "cities", ",", "as", "well", "as", "the", "names", "of", "the", "counties", "they", "correspond", "to", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "city" ], [ "," ], [ "a" ], [ "well" ], [ "a" ], [ "name" ], [ "of" ], [ "county" ], [ "they" ], [ "correspond" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ ",", "," ], [ "a", "DT" ], [ "well", "RB" ], [ "a", "DT" ], [ "name", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "they", "PRP" ], [ "correspond", "VBP" ], [ "to", "TO" ], [ "?", "." ] ], "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": "county_public_safety", "query": "SELECT T1.White , T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID", "query_toks": [ "SELECT", "T1.White", ",", "T2.Crime_rate", "FROM", "city", "AS", "T1", "JOIN", "county_public_safety", "AS", "T2", "ON", "T1.County_ID", "=", "T2.County_ID" ], "query_toks_no_value": [ "select", "t1", ".", "white", ",", "t2", ".", "crime_rate", "from", "city", "as", "t1", "join", "county_public_safety", "as", "t2", "on", "t1", ".", "county_id", "=", "t2", ".", "county_id" ], "question": "Show white percentages of cities and the crime rates of counties they are in.", "question_toks": [ "show", "white", "percentage", "of", "city", "and", "crime", "rate", "of", "county", "they", "are", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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, 13, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "Show", "white", "percentages", "of", "cities", "and", "the", "crime", "rates", "of", "counties", "they", "are", "in", "." ], "question_arg": [ [ "show" ], [ "white" ], [ "percentage" ], [ "of" ], [ "city" ], [ "and" ], [ "crime", "rate" ], [ "of" ], [ "county" ], [ "they" ], [ "are" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "white", "JJ" ], [ "percentage", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "and", "CC" ], [ "crime", "NN" ], [ "rate", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "in", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(1) A(0) C(7) T(0)" }, { "db_id": "county_public_safety", "query": "SELECT T1.White , T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID", "query_toks": [ "SELECT", "T1.White", ",", "T2.Crime_rate", "FROM", "city", "AS", "T1", "JOIN", "county_public_safety", "AS", "T2", "ON", "T1.County_ID", "=", "T2.County_ID" ], "query_toks_no_value": [ "select", "t1", ".", "white", ",", "t2", ".", "crime_rate", "from", "city", "as", "t1", "join", "county_public_safety", "as", "t2", "on", "t1", ".", "county_id", "=", "t2", ".", "county_id" ], "question": "What are the white percentages of cities, and the corresponding crime rates of the counties they correspond to?", "question_toks": [ "what", "are", "white", "percentage", "of", "city", ",", "and", "corresponding", "crime", "rate", "of", "county", "they", "correspond", "to", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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, 13, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "white", "percentages", "of", "cities", ",", "and", "the", "corresponding", "crime", "rates", "of", "the", "counties", "they", "correspond", "to", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "white" ], [ "percentage" ], [ "of" ], [ "city" ], [ "," ], [ "and" ], [ "corresponding" ], [ "crime", "rate" ], [ "of" ], [ "county" ], [ "they" ], [ "correspond" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "white", "JJ" ], [ "percentage", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "crime", "NN" ], [ "rate", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "they", "PRP" ], [ "correspond", "VBP" ], [ "to", "TO" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(1) A(0) C(7) T(0)" }, { "db_id": "county_public_safety", "query": "SELECT name FROM city WHERE county_ID = (SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1)", "query_toks": [ "SELECT", "name", "FROM", "city", "WHERE", "county_ID", "=", "(", "SELECT", "county_ID", "FROM", "county_public_safety", "ORDER", "BY", "Police_officers", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "name", "from", "city", "where", "county_id", "=", "(", "select", "county_id", "from", "county_public_safety", "order", "by", "police_officers", "desc", "limit", "value", ")" ], "question": "Show the name of cities in the county that has the largest number of police officers.", "question_toks": [ "show", "name", "of", "city", "in", "county", "that", "ha", "largest", "number", "of", "police", "officer", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], { "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, 1, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "Show", "the", "name", "of", "cities", "in", "the", "county", "that", "has", "the", "largest", "number", "of", "police", "officers", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "city" ], [ "in" ], [ "county" ], [ "that" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "police", "officer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "in", "IN" ], [ "county", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "police", "JJ" ], [ "officer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(11) A(0) C(1) T(1) Root(2) Sel(0) N(0) A(0) C(1) T(0) Sup(0) A(0) C(4) T(0)" }, { "db_id": "county_public_safety", "query": "SELECT name FROM city WHERE county_ID = (SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1)", "query_toks": [ "SELECT", "name", "FROM", "city", "WHERE", "county_ID", "=", "(", "SELECT", "county_ID", "FROM", "county_public_safety", "ORDER", "BY", "Police_officers", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "name", "from", "city", "where", "county_id", "=", "(", "select", "county_id", "from", "county_public_safety", "order", "by", "police_officers", "desc", "limit", "value", ")" ], "question": "What are the names of cities that are in the county with the most police officers?", "question_toks": [ "what", "are", "name", "of", "city", "that", "are", "in", "county", "with", "most", "police", "officer", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], { "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, 1, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "cities", "that", "are", "in", "the", "county", "with", "the", "most", "police", "officers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "city" ], [ "that" ], [ "are" ], [ "in" ], [ "county" ], [ "with" ], [ "most" ], [ "police", "officer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "county", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "police", "NNS" ], [ "officer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(11) A(0) C(1) T(1) Root(2) Sel(0) N(0) A(0) C(1) T(0) Sup(0) A(0) C(4) T(0)" }, { "db_id": "county_public_safety", "query": "SELECT count(*) FROM city WHERE county_ID IN (SELECT county_ID FROM county_public_safety WHERE population > 20000)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "city", "WHERE", "county_ID", "IN", "(", "SELECT", "county_ID", "FROM", "county_public_safety", "WHERE", "population", ">", "20000", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "city", "where", "county_id", "in", "(", "select", "county_id", "from", "county_public_safety", "where", "population", ">", "value", ")" ], "question": "Show the number of cities in counties that have a population more than 20000.", "question_toks": [ "show", "number", "of", "city", "in", "county", "that", "have", "a", "population", "more", "than", "20000", "." ], "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, 8, [ 0, [ 0, 11, 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, 3, [ 0, [ 0, 3, false ], null ], 20000.0, null ] ] }, null ] ] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "Show", "the", "number", "of", "cities", "in", "counties", "that", "have", "a", "population", "more", "than", "20000", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "of" ], [ "city" ], [ "in" ], [ "county" ], [ "that" ], [ "have" ], [ "a" ], [ "population" ], [ "more" ], [ "than" ], [ "20000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "in", "IN" ], [ "county", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "population", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "20000", "CD" ], [ ".", "." ] ], "values": [ "20000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(18) A(0) C(1) T(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(5) A(0) C(3) T(0) V(0)" }, { "db_id": "county_public_safety", "query": "SELECT count(*) FROM city WHERE county_ID IN (SELECT county_ID FROM county_public_safety WHERE population > 20000)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "city", "WHERE", "county_ID", "IN", "(", "SELECT", "county_ID", "FROM", "county_public_safety", "WHERE", "population", ">", "20000", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "city", "where", "county_id", "in", "(", "select", "county_id", "from", "county_public_safety", "where", "population", ">", "value", ")" ], "question": "How many cities are in counties that have populations of over 20000?", "question_toks": [ "how", "many", "city", "are", "in", "county", "that", "have", "population", "of", "over", "20000", "?" ], "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, 8, [ 0, [ 0, 11, 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, 3, [ 0, [ 0, 3, false ], null ], 20000.0, null ] ] }, null ] ] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "How", "many", "cities", "are", "in", "counties", "that", "have", "populations", "of", "over", "20000", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "city" ], [ "are" ], [ "in" ], [ "county" ], [ "that" ], [ "have" ], [ "population" ], [ "of" ], [ "over" ], [ "20000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "city", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "county", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "population", "NN" ], [ "of", "IN" ], [ "over", "IN" ], [ "20000", "CD" ], [ "?", "." ] ], "values": [ "20000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(18) A(0) C(1) T(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(5) A(0) C(3) T(0) V(0)" }, { "db_id": "county_public_safety", "query": "SELECT T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID WHERE T1.White > 90", "query_toks": [ "SELECT", "T2.Crime_rate", "FROM", "city", "AS", "T1", "JOIN", "county_public_safety", "AS", "T2", "ON", "T1.County_ID", "=", "T2.County_ID", "WHERE", "T1.White", ">", "90" ], "query_toks_no_value": [ "select", "t2", ".", "crime_rate", "from", "city", "as", "t1", "join", "county_public_safety", "as", "t2", "on", "t1", ".", "county_id", "=", "t2", ".", "county_id", "where", "t1", ".", "white", ">", "value" ], "question": "Show the crime rate of counties with a city having white percentage more than 90.", "question_toks": [ "show", "crime", "rate", "of", "county", "with", "a", "city", "having", "white", "percentage", "more", "than", "90", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 90.0, null ] ] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "Show", "the", "crime", "rate", "of", "counties", "with", "a", "city", "having", "white", "percentage", "more", "than", "90", "." ], "question_arg": [ [ "show" ], [ "crime", "rate" ], [ "of" ], [ "county" ], [ "with" ], [ "a" ], [ "city" ], [ "having" ], [ "white" ], [ "percentage" ], [ "more" ], [ "than" ], [ "90" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "crime", "NN" ], [ "rate", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "city", "NN" ], [ "having", "VBG" ], [ "white", "JJ" ], [ "percentage", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "90", "CD" ], [ ".", "." ] ], "values": [ "90" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(0) Filter(5) A(0) C(11) T(1) V(0)" }, { "db_id": "county_public_safety", "query": "SELECT T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID WHERE T1.White > 90", "query_toks": [ "SELECT", "T2.Crime_rate", "FROM", "city", "AS", "T1", "JOIN", "county_public_safety", "AS", "T2", "ON", "T1.County_ID", "=", "T2.County_ID", "WHERE", "T1.White", ">", "90" ], "query_toks_no_value": [ "select", "t2", ".", "crime_rate", "from", "city", "as", "t1", "join", "county_public_safety", "as", "t2", "on", "t1", ".", "county_id", "=", "t2", ".", "county_id", "where", "t1", ".", "white", ">", "value" ], "question": "What are the crime rates of counties that contain cities that have white percentages of over 90?", "question_toks": [ "what", "are", "crime", "rate", "of", "county", "that", "contain", "city", "that", "have", "white", "percentage", "of", "over", "90", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 90.0, null ] ] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "crime", "rates", "of", "counties", "that", "contain", "cities", "that", "have", "white", "percentages", "of", "over", "90", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "crime", "rate" ], [ "of" ], [ "county" ], [ "that" ], [ "contain" ], [ "city" ], [ "that" ], [ "have" ], [ "white" ], [ "percentage" ], [ "of" ], [ "over" ], [ "90" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "crime", "NN" ], [ "rate", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "that", "WDT" ], [ "contain", "VBP" ], [ "city", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "white", "JJ" ], [ "percentage", "NN" ], [ "of", "IN" ], [ "over", "IN" ], [ "90", "CD" ], [ "?", "." ] ], "values": [ "90" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(0) Filter(5) A(0) C(11) T(1) V(0)" }, { "db_id": "county_public_safety", "query": "SELECT Police_force , COUNT(*) FROM county_public_safety GROUP BY Police_force", "query_toks": [ "SELECT", "Police_force", ",", "COUNT", "(", "*", ")", "FROM", "county_public_safety", "GROUP", "BY", "Police_force" ], "query_toks_no_value": [ "select", "police_force", ",", "count", "(", "*", ")", "from", "county_public_safety", "group", "by", "police_force" ], "question": "Please show the police forces and the number of counties with each police force.", "question_toks": [ "please", "show", "police", "force", "and", "number", "of", "county", "with", "each", "police", "force", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "Please", "show", "the", "police", "forces", "and", "the", "number", "of", "counties", "with", "each", "police", "force", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "police", "force" ], [ "and" ], [ "number" ], [ "of" ], [ "county" ], [ "with" ], [ "each" ], [ "police", "force" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "VB" ], [ "police", "JJ" ], [ "force", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "with", "IN" ], [ "each", "DT" ], [ "police", "NN" ], [ "force", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(0) A(3) C(0) T(0)" }, { "db_id": "county_public_safety", "query": "SELECT Police_force , COUNT(*) FROM county_public_safety GROUP BY Police_force", "query_toks": [ "SELECT", "Police_force", ",", "COUNT", "(", "*", ")", "FROM", "county_public_safety", "GROUP", "BY", "Police_force" ], "query_toks_no_value": [ "select", "police_force", ",", "count", "(", "*", ")", "from", "county_public_safety", "group", "by", "police_force" ], "question": "How many counties correspond to each police force?", "question_toks": [ "how", "many", "county", "correspond", "to", "each", "police", "force", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "How", "many", "counties", "correspond", "to", "each", "police", "force", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "county" ], [ "correspond" ], [ "to" ], [ "each" ], [ "police", "force" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "county", "NN" ], [ "correspond", "NN" ], [ "to", "TO" ], [ "each", "DT" ], [ "police", "NN" ], [ "force", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(0) A(3) C(0) T(0)" }, { "db_id": "county_public_safety", "query": "SELECT LOCATION FROM county_public_safety GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "LOCATION", "FROM", "county_public_safety", "GROUP", "BY", "LOCATION", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "location", "from", "county_public_safety", "group", "by", "location", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the location shared by most counties?", "question_toks": [ "what", "is", "location", "shared", "by", "most", "county", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "location", "shared", "by", "most", "counties", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "location" ], [ "shared" ], [ "by" ], [ "most" ], [ "county" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "location", "NN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "most", "JJS" ], [ "county", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "county_public_safety", "query": "SELECT LOCATION FROM county_public_safety GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "LOCATION", "FROM", "county_public_safety", "GROUP", "BY", "LOCATION", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "location", "from", "county_public_safety", "group", "by", "location", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which location has the most corresponding counties?", "question_toks": [ "which", "location", "ha", "most", "corresponding", "county", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "Which", "location", "has", "the", "most", "corresponding", "counties", "?" ], "question_arg": [ [ "which" ], [ "location" ], [ "ha" ], [ "most" ], [ "corresponding" ], [ "county" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "location", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "corresponding", "JJ" ], [ "county", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "county_public_safety", "query": "SELECT Name FROM county_public_safety WHERE County_ID NOT IN (SELECT County_ID FROM city)", "query_toks": [ "SELECT", "Name", "FROM", "county_public_safety", "WHERE", "County_ID", "NOT", "IN", "(", "SELECT", "County_ID", "FROM", "city", ")" ], "query_toks_no_value": [ "select", "name", "from", "county_public_safety", "where", "county_id", "not", "in", "(", "select", "county_id", "from", "city", ")" ], "question": "List the names of counties that do not have any cities.", "question_toks": [ "list", "name", "of", "county", "that", "do", "not", "have", "any", "city", "." ], "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, 11, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "List", "the", "names", "of", "counties", "that", "do", "not", "have", "any", "cities", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "county" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "city", "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": "county_public_safety", "query": "SELECT Name FROM county_public_safety WHERE County_ID NOT IN (SELECT County_ID FROM city)", "query_toks": [ "SELECT", "Name", "FROM", "county_public_safety", "WHERE", "County_ID", "NOT", "IN", "(", "SELECT", "County_ID", "FROM", "city", ")" ], "query_toks_no_value": [ "select", "name", "from", "county_public_safety", "where", "county_id", "not", "in", "(", "select", "county_id", "from", "city", ")" ], "question": "What are the names of counties that do not contain any cities?", "question_toks": [ "what", "are", "name", "of", "county", "that", "do", "not", "contain", "any", "city", "?" ], "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, 11, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "counties", "that", "do", "not", "contain", "any", "cities", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "county" ], [ "that" ], [ "do" ], [ "not" ], [ "contain" ], [ "any" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "contain", "VB" ], [ "any", "DT" ], [ "city", "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": "county_public_safety", "query": "SELECT Police_force FROM county_public_safety WHERE LOCATION = \"East\" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION = \"West\"", "query_toks": [ "SELECT", "Police_force", "FROM", "county_public_safety", "WHERE", "LOCATION", "=", "``", "East", "''", "INTERSECT", "SELECT", "Police_force", "FROM", "county_public_safety", "WHERE", "LOCATION", "=", "``", "West", "''" ], "query_toks_no_value": [ "select", "police_force", "from", "county_public_safety", "where", "location", "=", "value", "intersect", "select", "police_force", "from", "county_public_safety", "where", "location", "=", "value" ], "question": "Show the police force shared by counties with location on the east and west.", "question_toks": [ "show", "police", "force", "shared", "by", "county", "with", "location", "on", "east", "and", "west", "." ], "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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"West\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"East\"", null ] ] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "Show", "the", "police", "force", "shared", "by", "counties", "with", "location", "on", "the", "east", "and", "west", "." ], "question_arg": [ [ "show" ], [ "police", "force" ], [ "shared" ], [ "by" ], [ "county" ], [ "with" ], [ "location" ], [ "on" ], [ "east" ], [ "and" ], [ "west" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "police", "NN" ], [ "force", "NN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "county", "NN" ], [ "with", "IN" ], [ "location", "NN" ], [ "on", "IN" ], [ "east", "NN" ], [ "and", "CC" ], [ "west", "NN" ], [ ".", "." ] ], "values": [ "West", "East" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(8) T(0) Filter(2) A(0) C(9) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(8) T(0) Filter(2) A(0) C(9) T(0) V(0)" }, { "db_id": "county_public_safety", "query": "SELECT Police_force FROM county_public_safety WHERE LOCATION = \"East\" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION = \"West\"", "query_toks": [ "SELECT", "Police_force", "FROM", "county_public_safety", "WHERE", "LOCATION", "=", "``", "East", "''", "INTERSECT", "SELECT", "Police_force", "FROM", "county_public_safety", "WHERE", "LOCATION", "=", "``", "West", "''" ], "query_toks_no_value": [ "select", "police_force", "from", "county_public_safety", "where", "location", "=", "value", "intersect", "select", "police_force", "from", "county_public_safety", "where", "location", "=", "value" ], "question": "Which police forces operate in both counties that are located in the East and in the West?", "question_toks": [ "which", "police", "force", "operate", "in", "both", "county", "that", "are", "located", "in", "east", "and", "in", "west", "?" ], "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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"West\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"East\"", null ] ] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "Which", "police", "forces", "operate", "in", "both", "counties", "that", "are", "located", "in", "the", "East", "and", "in", "the", "West", "?" ], "question_arg": [ [ "which" ], [ "police", "force" ], [ "operate" ], [ "in" ], [ "both" ], [ "county" ], [ "that" ], [ "are" ], [ "located" ], [ "in" ], [ "east" ], [ "and" ], [ "in" ], [ "west" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "location" ], [ "NONE" ], [ "NONE" ], [ "location" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "police", "NN" ], [ "force", "NN" ], [ "operate", "NN" ], [ "in", "IN" ], [ "both", "DT" ], [ "county", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "in", "IN" ], [ "east", "NN" ], [ "and", "CC" ], [ "in", "IN" ], [ "west", "NN" ], [ "?", "." ] ], "values": [ "West", "East" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(8) T(0) Filter(2) A(0) C(9) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(8) T(0) Filter(2) A(0) C(9) T(0) V(0)" }, { "db_id": "county_public_safety", "query": "SELECT name FROM city WHERE county_id IN (SELECT county_id FROM county_public_safety WHERE Crime_rate < 100)", "query_toks": [ "SELECT", "name", "FROM", "city", "WHERE", "county_id", "IN", "(", "SELECT", "county_id", "FROM", "county_public_safety", "WHERE", "Crime_rate", "<", "100", ")" ], "query_toks_no_value": [ "select", "name", "from", "city", "where", "county_id", "in", "(", "select", "county_id", "from", "county_public_safety", "where", "crime_rate", "<", "value", ")" ], "question": "Show the names of cities in counties that have a crime rate less than 100.", "question_toks": [ "show", "name", "of", "city", "in", "county", "that", "have", "a", "crime", "rate", "le", "than", "100", "." ], "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, 8, [ 0, [ 0, 11, 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, 4, [ 0, [ 0, 7, false ], null ], 100.0, null ] ] }, null ] ] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "Show", "the", "names", "of", "cities", "in", "counties", "that", "have", "a", "crime", "rate", "less", "than", "100", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "city" ], [ "in" ], [ "county" ], [ "that" ], [ "have" ], [ "a" ], [ "crime", "rate" ], [ "le" ], [ "than" ], [ "100" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "in", "IN" ], [ "county", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "crime", "NN" ], [ "rate", "NN" ], [ "le", "NNS" ], [ "than", "IN" ], [ "100", "CD" ], [ ".", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(18) A(0) C(1) T(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(4) A(0) C(7) T(0) V(0)" }, { "db_id": "county_public_safety", "query": "SELECT name FROM city WHERE county_id IN (SELECT county_id FROM county_public_safety WHERE Crime_rate < 100)", "query_toks": [ "SELECT", "name", "FROM", "city", "WHERE", "county_id", "IN", "(", "SELECT", "county_id", "FROM", "county_public_safety", "WHERE", "Crime_rate", "<", "100", ")" ], "query_toks_no_value": [ "select", "name", "from", "city", "where", "county_id", "in", "(", "select", "county_id", "from", "county_public_safety", "where", "crime_rate", "<", "value", ")" ], "question": "What are the names of cities that are in counties that have a crime rate below 100?", "question_toks": [ "what", "are", "name", "of", "city", "that", "are", "in", "county", "that", "have", "a", "crime", "rate", "below", "100", "?" ], "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, 8, [ 0, [ 0, 11, 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, 4, [ 0, [ 0, 7, false ], null ], 100.0, null ] ] }, null ] ] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "cities", "that", "are", "in", "counties", "that", "have", "a", "crime", "rate", "below", "100", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "city" ], [ "that" ], [ "are" ], [ "in" ], [ "county" ], [ "that" ], [ "have" ], [ "a" ], [ "crime", "rate" ], [ "below" ], [ "100" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "county", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "crime", "NN" ], [ "rate", "NN" ], [ "below", "IN" ], [ "100", "CD" ], [ "?", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(18) A(0) C(1) T(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(4) A(0) C(7) T(0) V(0)" }, { "db_id": "county_public_safety", "query": "SELECT Case_burden FROM county_public_safety ORDER BY Population DESC", "query_toks": [ "SELECT", "Case_burden", "FROM", "county_public_safety", "ORDER", "BY", "Population", "DESC" ], "query_toks_no_value": [ "select", "case_burden", "from", "county_public_safety", "order", "by", "population", "desc" ], "question": "Show the case burden of counties in descending order of population.", "question_toks": [ "show", "case", "burden", "of", "county", "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, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "Show", "the", "case", "burden", "of", "counties", "in", "descending", "order", "of", "population", "." ], "question_arg": [ [ "show" ], [ "case", "burden" ], [ "of" ], [ "county" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "population" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "case", "NN" ], [ "burden", "NN" ], [ "of", "IN" ], [ "county", "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(6) T(0) Order(0) A(0) C(3) T(0)" }, { "db_id": "county_public_safety", "query": "SELECT Case_burden FROM county_public_safety ORDER BY Population DESC", "query_toks": [ "SELECT", "Case_burden", "FROM", "county_public_safety", "ORDER", "BY", "Population", "DESC" ], "query_toks_no_value": [ "select", "case_burden", "from", "county_public_safety", "order", "by", "population", "desc" ], "question": "What are the case burdens of counties, ordered descending by population?", "question_toks": [ "what", "are", "case", "burden", "of", "county", ",", "ordered", "descending", "by", "population", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "county id", "name", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "table_names": [ "county public safety", "city" ], "col_set": [ "*", "county id", "name", "population", "police officers", "residents per officer", "case burden", "crime rate", "police force", "location", "city id", "white", "black", "amerindian", "asian", "multiracial", "hispanic" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "11": 1, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "case", "burdens", "of", "counties", ",", "ordered", "descending", "by", "population", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "case", "burden" ], [ "of" ], [ "county" ], [ "," ], [ "ordered" ], [ "descending" ], [ "by" ], [ "population" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "case", "NN" ], [ "burden", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ ",", "," ], [ "ordered", "VBD" ], [ "descending", "NN" ], [ "by", "IN" ], [ "population", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(6) T(0) Order(0) A(0) C(3) T(0)" }, { "db_id": "inn_1", "query": "SELECT roomName FROM Rooms WHERE basePrice < 160 AND beds = 2 AND decor = 'modern';", "query_toks": [ "SELECT", "roomName", "FROM", "Rooms", "WHERE", "basePrice", "<", "160", "AND", "beds", "=", "2", "AND", "decor", "=", "'modern", "'", ";" ], "query_toks_no_value": [ "select", "roomname", "from", "rooms", "where", "baseprice", "<", "value", "and", "beds", "=", "value", "and", "decor", "=", "value" ], "question": "Find the names of all modern rooms with a base price below $160 and two beds.", "question_toks": [ "find", "name", "of", "all", "modern", "room", "with", "a", "base", "price", "below", "$", "160", "and", "two", "bed", "." ], "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, 6, false ], null ], 160.0, null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], 2.0, null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"modern\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "modern", "rooms", "with", "a", "base", "price", "below", "$", "160", "and", "two", "beds", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "modern" ], [ "room" ], [ "with" ], [ "a" ], [ "base", "price" ], [ "below" ], [ "$" ], [ "160" ], [ "and" ], [ "two" ], [ "bed" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "modern", "JJ" ], [ "room", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "base", "JJ" ], [ "price", "NN" ], [ "below", "IN" ], [ "$", "$" ], [ "160", "CD" ], [ "and", "CC" ], [ "two", "CD" ], [ "bed", "NN" ], [ ".", "." ] ], "values": [ "PRINCE", "2", "160", "BERS", "160.000000", "BOSE", "modern" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(4) A(0) C(6) T(0) V(2) Filter(0) Filter(2) A(0) C(3) T(0) V(1) Filter(2) A(0) C(7) T(0) V(6)" }, { "db_id": "inn_1", "query": "SELECT roomName FROM Rooms WHERE basePrice < 160 AND beds = 2 AND decor = 'modern';", "query_toks": [ "SELECT", "roomName", "FROM", "Rooms", "WHERE", "basePrice", "<", "160", "AND", "beds", "=", "2", "AND", "decor", "=", "'modern", "'", ";" ], "query_toks_no_value": [ "select", "roomname", "from", "rooms", "where", "baseprice", "<", "value", "and", "beds", "=", "value", "and", "decor", "=", "value" ], "question": "What are the names of modern rooms that have a base price lower than $160 and two beds.", "question_toks": [ "what", "are", "name", "of", "modern", "room", "that", "have", "a", "base", "price", "lower", "than", "$", "160", "and", "two", "bed", "." ], "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, 6, false ], null ], 160.0, null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], 2.0, null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"modern\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "modern", "rooms", "that", "have", "a", "base", "price", "lower", "than", "$", "160", "and", "two", "beds", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "modern" ], [ "room" ], [ "that" ], [ "have" ], [ "a" ], [ "base", "price" ], [ "lower" ], [ "than" ], [ "$" ], [ "160" ], [ "and" ], [ "two" ], [ "bed" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "modern", "JJ" ], [ "room", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "base", "JJ" ], [ "price", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "$", "$" ], [ "160", "CD" ], [ "and", "CC" ], [ "two", "CD" ], [ "bed", "NN" ], [ ".", "." ] ], "values": [ "PRINCE", "2", "160", "BERS", "160.000000", "BOSE", "modern" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(4) A(0) C(6) T(0) V(2) Filter(0) Filter(2) A(0) C(3) T(0) V(1) Filter(2) A(0) C(7) T(0) V(6)" }, { "db_id": "inn_1", "query": "SELECT roomName , RoomId FROM Rooms WHERE basePrice > 160 AND maxOccupancy > 2;", "query_toks": [ "SELECT", "roomName", ",", "RoomId", "FROM", "Rooms", "WHERE", "basePrice", ">", "160", "AND", "maxOccupancy", ">", "2", ";" ], "query_toks_no_value": [ "select", "roomname", ",", "roomid", "from", "rooms", "where", "baseprice", ">", "value", "and", "maxoccupancy", ">", "value" ], "question": "Find all the rooms that have a price higher than 160 and can accommodate more than 2 people. Report room names and ids.", "question_toks": [ "find", "all", "room", "that", "have", "a", "price", "higher", "than", "160", "and", "can", "accommodate", "more", "than", "2", "people", ".", "report", "room", "name", "and", "id", "." ], "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, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], 160.0, null ], "and", [ false, 3, [ 0, [ 0, 5, false ], null ], 2.0, null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "all", "the", "rooms", "that", "have", "a", "price", "higher", "than", "160", "and", "can", "accommodate", "more", "than", "2", "people", ".", "Report", "room", "names", "and", "ids", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "room" ], [ "that" ], [ "have" ], [ "a" ], [ "price" ], [ "higher" ], [ "than" ], [ "160" ], [ "and" ], [ "can" ], [ "accommodate" ], [ "more" ], [ "than" ], [ "2" ], [ "people" ], [ "." ], [ "report" ], [ "room", "name" ], [ "and" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "room", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "160", "CD" ], [ "and", "CC" ], [ "can", "MD" ], [ "accommodate", "VB" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "people", "NNS" ], [ ".", "." ], [ "report", "NN" ], [ "room", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "PRINCE", "2", "160" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Filter(0) Filter(5) A(0) C(6) T(0) V(2) Filter(5) A(0) C(5) T(0) V(1)" }, { "db_id": "inn_1", "query": "SELECT roomName , RoomId FROM Rooms WHERE basePrice > 160 AND maxOccupancy > 2;", "query_toks": [ "SELECT", "roomName", ",", "RoomId", "FROM", "Rooms", "WHERE", "basePrice", ">", "160", "AND", "maxOccupancy", ">", "2", ";" ], "query_toks_no_value": [ "select", "roomname", ",", "roomid", "from", "rooms", "where", "baseprice", ">", "value", "and", "maxoccupancy", ">", "value" ], "question": "What are the room names and ids of all the rooms that cost more than 160 and can accommodate more than two people.", "question_toks": [ "what", "are", "room", "name", "and", "id", "of", "all", "room", "that", "cost", "more", "than", "160", "and", "can", "accommodate", "more", "than", "two", "people", "." ], "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, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], 160.0, null ], "and", [ false, 3, [ 0, [ 0, 5, false ], null ], 2.0, null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "room", "names", "and", "ids", "of", "all", "the", "rooms", "that", "cost", "more", "than", "160", "and", "can", "accommodate", "more", "than", "two", "people", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "room", "name" ], [ "and" ], [ "id" ], [ "of" ], [ "all" ], [ "room" ], [ "that" ], [ "cost" ], [ "more" ], [ "than" ], [ "160" ], [ "and" ], [ "can" ], [ "accommodate" ], [ "more" ], [ "than" ], [ "two" ], [ "people" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "room", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "room", "NN" ], [ "that", "IN" ], [ "cost", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "160", "CD" ], [ "and", "CC" ], [ "can", "MD" ], [ "accommodate", "VB" ], [ "more", "JJR" ], [ "than", "IN" ], [ "two", "CD" ], [ "people", "NNS" ], [ ".", "." ] ], "values": [ "2", "160" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Filter(0) Filter(5) A(0) C(6) T(0) V(1) Filter(5) A(0) C(5) T(0) V(0)" }, { "db_id": "inn_1", "query": "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.roomName", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "GROUP", "BY", "T1.Room", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "roomname", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "group", "by", "t1", ".", "room", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the most popular room in the hotel. The most popular room is the room that had seen the largest number of reservations.", "question_toks": [ "find", "most", "popular", "room", "in", "hotel", ".", "most", "popular", "room", "is", "room", "that", "had", "seen", "largest", "number", "of", "reservation", "." ], "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 ] ] ] ], "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": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "most", "popular", "room", "in", "the", "hotel", ".", "The", "most", "popular", "room", "is", "the", "room", "that", "had", "seen", "the", "largest", "number", "of", "reservations", "." ], "question_arg": [ [ "find" ], [ "most" ], [ "popular" ], [ "room" ], [ "in" ], [ "hotel" ], [ "." ], [ "most" ], [ "popular" ], [ "room" ], [ "is" ], [ "room" ], [ "that" ], [ "had" ], [ "seen" ], [ "largest" ], [ "number" ], [ "of" ], [ "reservation" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "most", "RBS" ], [ "popular", "JJ" ], [ "room", "NN" ], [ "in", "IN" ], [ "hotel", "NN" ], [ ".", "." ], [ "most", "RBS" ], [ "popular", "JJ" ], [ "room", "NN" ], [ "is", "VBZ" ], [ "room", "NN" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "seen", "VBN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "reservation", "NN" ], [ ".", "." ] ], "values": [ "NUMBERS" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(3) C(0) T(1) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(9) T(1)" }, { "db_id": "inn_1", "query": "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.roomName", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "GROUP", "BY", "T1.Room", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "roomname", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "group", "by", "t1", ".", "room", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which room has the largest number of reservations?", "question_toks": [ "which", "room", "ha", "largest", "number", "of", "reservation", "?" ], "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 ] ] ] ], "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": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Which", "room", "has", "the", "largest", "number", "of", "reservations", "?" ], "question_arg": [ [ "which" ], [ "room" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "reservation" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "room", "NN" ], [ "ha", "NN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "reservation", "NN" ], [ "?", "." ] ], "values": [ "NUMBERS" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(3) C(0) T(1) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(9) T(1)" }, { "db_id": "inn_1", "query": "SELECT kids FROM Reservations WHERE FirstName = \"ROY\" AND LastName = \"SWEAZY\";", "query_toks": [ "SELECT", "kids", "FROM", "Reservations", "WHERE", "FirstName", "=", "``", "ROY", "''", "AND", "LastName", "=", "``", "SWEAZY", "''", ";" ], "query_toks_no_value": [ "select", "kids", "from", "reservations", "where", "firstname", "=", "value", "and", "lastname", "=", "value" ], "question": "How many kids stay in the rooms reserved by ROY SWEAZY?", "question_toks": [ "how", "many", "kid", "stay", "in", "room", "reserved", "by", "roy", "sweazy", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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 ], "\"ROY\"", null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"SWEAZY\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "How", "many", "kids", "stay", "in", "the", "rooms", "reserved", "by", "ROY", "SWEAZY", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "kid" ], [ "stay" ], [ "in" ], [ "room" ], [ "reserved" ], [ "by" ], [ "roy" ], [ "sweazy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "kid", "VBP" ], [ "stay", "VBP" ], [ "in", "IN" ], [ "room", "NN" ], [ "reserved", "VBN" ], [ "by", "IN" ], [ "roy", "NN" ], [ "sweazy", "NN" ], [ "?", "." ] ], "values": [ "ROY", "SWEAZY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(1) Filter(0) Filter(2) A(0) C(14) T(1) V(0) Filter(2) A(0) C(13) T(1) V(1)" }, { "db_id": "inn_1", "query": "SELECT kids FROM Reservations WHERE FirstName = \"ROY\" AND LastName = \"SWEAZY\";", "query_toks": [ "SELECT", "kids", "FROM", "Reservations", "WHERE", "FirstName", "=", "``", "ROY", "''", "AND", "LastName", "=", "``", "SWEAZY", "''", ";" ], "query_toks_no_value": [ "select", "kids", "from", "reservations", "where", "firstname", "=", "value", "and", "lastname", "=", "value" ], "question": "Find the number of kids staying in the rooms reserved by a person called ROY SWEAZ.", "question_toks": [ "find", "number", "of", "kid", "staying", "in", "room", "reserved", "by", "a", "person", "called", "roy", "sweaz", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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 ], "\"ROY\"", null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"SWEAZY\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "number", "of", "kids", "staying", "in", "the", "rooms", "reserved", "by", "a", "person", "called", "ROY", "SWEAZ", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "kid" ], [ "staying" ], [ "in" ], [ "room" ], [ "reserved" ], [ "by" ], [ "a" ], [ "person" ], [ "called" ], [ "roy" ], [ "sweaz" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "kid", "NN" ], [ "staying", "VBG" ], [ "in", "IN" ], [ "room", "NN" ], [ "reserved", "VBN" ], [ "by", "IN" ], [ "a", "DT" ], [ "person", "NN" ], [ "called", "VBN" ], [ "roy", "NN" ], [ "sweaz", "NN" ], [ ".", "." ] ], "values": [ "PETERSON", "ROY", "NUMBERS", "PEDERSON", "SWEAZY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(1) Filter(0) Filter(2) A(0) C(14) T(1) V(1) Filter(2) A(0) C(13) T(1) V(4)" }, { "db_id": "inn_1", "query": "SELECT count(*) FROM Reservations WHERE FirstName = \"ROY\" AND LastName = \"SWEAZY\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Reservations", "WHERE", "FirstName", "=", "``", "ROY", "''", "AND", "LastName", "=", "``", "SWEAZY", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "reservations", "where", "firstname", "=", "value", "and", "lastname", "=", "value" ], "question": "How many times does ROY SWEAZY has reserved a room.", "question_toks": [ "how", "many", "time", "doe", "roy", "sweazy", "ha", "reserved", "a", "room", "." ], "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, 14, false ], null ], "\"ROY\"", null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"SWEAZY\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "How", "many", "times", "does", "ROY", "SWEAZY", "has", "reserved", "a", "room", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "time" ], [ "doe" ], [ "roy" ], [ "sweazy" ], [ "ha" ], [ "reserved" ], [ "a" ], [ "room" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "time", "NN" ], [ "doe", "JJ" ], [ "roy", "NN" ], [ "sweazy", "NN" ], [ "ha", "NN" ], [ "reserved", "VBD" ], [ "a", "DT" ], [ "room", "NN" ], [ ".", "." ] ], "values": [ "ROY", "SWEAZY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(0) Filter(2) A(0) C(14) T(1) V(0) Filter(2) A(0) C(13) T(1) V(1)" }, { "db_id": "inn_1", "query": "SELECT count(*) FROM Reservations WHERE FirstName = \"ROY\" AND LastName = \"SWEAZY\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Reservations", "WHERE", "FirstName", "=", "``", "ROY", "''", "AND", "LastName", "=", "``", "SWEAZY", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "reservations", "where", "firstname", "=", "value", "and", "lastname", "=", "value" ], "question": "Find the number of times ROY SWEAZY has reserved a room.", "question_toks": [ "find", "number", "of", "time", "roy", "sweazy", "ha", "reserved", "a", "room", "." ], "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, 14, false ], null ], "\"ROY\"", null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"SWEAZY\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "number", "of", "times", "ROY", "SWEAZY", "has", "reserved", "a", "room", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "time" ], [ "roy" ], [ "sweazy" ], [ "ha" ], [ "reserved" ], [ "a" ], [ "room" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "roy", "NN" ], [ "sweazy", "JJ" ], [ "ha", "NN" ], [ "reserved", "VBD" ], [ "a", "DT" ], [ "room", "NN" ], [ ".", "." ] ], "values": [ "ROY", "NUMBERS", "SWEAZY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(0) Filter(2) A(0) C(14) T(1) V(0) Filter(2) A(0) C(13) T(1) V(2)" }, { "db_id": "inn_1", "query": "SELECT T2.roomName , T1.Rate , T1.CheckIn , T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.roomName", ",", "T1.Rate", ",", "T1.CheckIn", ",", "T1.CheckOut", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "GROUP", "BY", "T1.Room", "ORDER", "BY", "T1.Rate", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "roomname", ",", "t1", ".", "rate", ",", "t1", ".", "checkin", ",", "t1", ".", "checkout", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "group", "by", "t1", ".", "room", "order", "by", "t1", ".", "rate", "desc", "limit", "value" ], "question": "Which room has the highest rate? List the room's full name, rate, check in and check out date.", "question_toks": [ "which", "room", "ha", "highest", "rate", "?", "list", "room", "'s", "full", "name", ",", "rate", ",", "check", "in", "and", "check", "out", "date", "." ], "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, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Which", "room", "has", "the", "highest", "rate", "?", "List", "the", "room", "'s", "full", "name", ",", "rate", ",", "check", "in", "and", "check", "out", "date", "." ], "question_arg": [ [ "which" ], [ "room" ], [ "ha" ], [ "highest" ], [ "rate" ], [ "?" ], [ "list" ], [ "room" ], [ "'s" ], [ "full" ], [ "name" ], [ "," ], [ "rate" ], [ "," ], [ "check", "in" ], [ "and" ], [ "check", "out" ], [ "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "room", "NN" ], [ "ha", "NN" ], [ "highest", "JJS" ], [ "rate", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "room", "NN" ], [ "'s", "POS" ], [ "full", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "rate", "NN" ], [ ",", "," ], [ "check", "NN" ], [ "in", "IN" ], [ "and", "CC" ], [ "check", "VB" ], [ "out", "RP" ], [ "date", "NN" ], [ ".", "." ] ], "values": [ "RTE" ], "rule_label": "Root1(3) Root(2) Sel(0) N(3) A(0) C(2) T(0) A(0) C(12) T(1) A(0) C(10) T(1) A(0) C(11) T(1) Sup(0) A(0) C(12) T(1)" }, { "db_id": "inn_1", "query": "SELECT T2.roomName , T1.Rate , T1.CheckIn , T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.roomName", ",", "T1.Rate", ",", "T1.CheckIn", ",", "T1.CheckOut", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "GROUP", "BY", "T1.Room", "ORDER", "BY", "T1.Rate", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "roomname", ",", "t1", ".", "rate", ",", "t1", ".", "checkin", ",", "t1", ".", "checkout", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "group", "by", "t1", ".", "room", "order", "by", "t1", ".", "rate", "desc", "limit", "value" ], "question": "Return the name, rate, check in and check out date for the room with the highest rate.", "question_toks": [ "return", "name", ",", "rate", ",", "check", "in", "and", "check", "out", "date", "for", "room", "with", "highest", "rate", "." ], "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, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Return", "the", "name", ",", "rate", ",", "check", "in", "and", "check", "out", "date", "for", "the", "room", "with", "the", "highest", "rate", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "," ], [ "rate" ], [ "," ], [ "check", "in" ], [ "and" ], [ "check", "out" ], [ "date" ], [ "for" ], [ "room" ], [ "with" ], [ "highest" ], [ "rate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "rate", "NN" ], [ ",", "," ], [ "check", "NN" ], [ "in", "IN" ], [ "and", "CC" ], [ "check", "VB" ], [ "out", "RP" ], [ "date", "NN" ], [ "for", "IN" ], [ "room", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "rate", "NN" ], [ ".", "." ] ], "values": [ "RTE" ], "rule_label": "Root1(3) Root(2) Sel(0) N(3) A(0) C(2) T(0) A(0) C(12) T(1) A(0) C(10) T(1) A(0) C(11) T(1) Sup(0) A(0) C(12) T(1)" }, { "db_id": "inn_1", "query": "SELECT Adults FROM Reservations WHERE CheckIn = \"2010-10-23\" AND FirstName = \"CONRAD\" AND LastName = \"SELBIG\";", "query_toks": [ "SELECT", "Adults", "FROM", "Reservations", "WHERE", "CheckIn", "=", "``", "2010-10-23", "''", "AND", "FirstName", "=", "``", "CONRAD", "''", "AND", "LastName", "=", "``", "SELBIG", "''", ";" ], "query_toks_no_value": [ "select", "adults", "from", "reservations", "where", "checkin", "=", "value", "and", "firstname", "=", "value", "and", "lastname", "=", "value" ], "question": "How many adults stay in the room CONRAD SELBIG checked in on Oct 23, 2010?", "question_toks": [ "how", "many", "adult", "stay", "in", "room", "conrad", "selbig", "checked", "in", "on", "oct", "23", ",", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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 ], "\"2010-10-23\"", null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"CONRAD\"", null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"SELBIG\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "How", "many", "adults", "stay", "in", "the", "room", "CONRAD", "SELBIG", "checked", "in", "on", "Oct", "23", ",", "2010", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "adult" ], [ "stay" ], [ "in" ], [ "room" ], [ "conrad" ], [ "selbig" ], [ "checked" ], [ "in" ], [ "on" ], [ "oct" ], [ "23" ], [ "," ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "adult", "NN" ], [ "stay", "NN" ], [ "in", "IN" ], [ "room", "NN" ], [ "conrad", "NN" ], [ "selbig", "NN" ], [ "checked", "VBN" ], [ "in", "IN" ], [ "on", "IN" ], [ "oct", "NN" ], [ "23", "CD" ], [ ",", "," ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "Oct 23, 2010", "23", "2010", "SELBIG", "2010-10-23", "CONRAD" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(1) Filter(0) Filter(2) A(0) C(10) T(1) V(4) Filter(0) Filter(2) A(0) C(14) T(1) V(5) Filter(2) A(0) C(13) T(1) V(3)" }, { "db_id": "inn_1", "query": "SELECT Adults FROM Reservations WHERE CheckIn = \"2010-10-23\" AND FirstName = \"CONRAD\" AND LastName = \"SELBIG\";", "query_toks": [ "SELECT", "Adults", "FROM", "Reservations", "WHERE", "CheckIn", "=", "``", "2010-10-23", "''", "AND", "FirstName", "=", "``", "CONRAD", "''", "AND", "LastName", "=", "``", "SELBIG", "''", ";" ], "query_toks_no_value": [ "select", "adults", "from", "reservations", "where", "checkin", "=", "value", "and", "firstname", "=", "value", "and", "lastname", "=", "value" ], "question": "Find the number of adults for the room reserved and checked in by CONRAD SELBIG on Oct 23, 2010.", "question_toks": [ "find", "number", "of", "adult", "for", "room", "reserved", "and", "checked", "in", "by", "conrad", "selbig", "on", "oct", "23", ",", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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 ], "\"2010-10-23\"", null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"CONRAD\"", null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"SELBIG\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "number", "of", "adults", "for", "the", "room", "reserved", "and", "checked", "in", "by", "CONRAD", "SELBIG", "on", "Oct", "23", ",", "2010", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "adult" ], [ "for" ], [ "room" ], [ "reserved" ], [ "and" ], [ "checked" ], [ "in" ], [ "by" ], [ "conrad" ], [ "selbig" ], [ "on" ], [ "oct" ], [ "23" ], [ "," ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "adult", "NN" ], [ "for", "IN" ], [ "room", "NN" ], [ "reserved", "VBN" ], [ "and", "CC" ], [ "checked", "VBN" ], [ "in", "IN" ], [ "by", "IN" ], [ "conrad", "NN" ], [ "selbig", "NN" ], [ "on", "IN" ], [ "oct", "NN" ], [ "23", "CD" ], [ ",", "," ], [ "2010", "CD" ], [ ".", "." ] ], "values": [ "Oct 23, 2010", "23", "2010", "SELBIG", "2010-10-23", "CONRAD", "NUMBERS" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(1) Filter(0) Filter(2) A(0) C(10) T(1) V(4) Filter(0) Filter(2) A(0) C(14) T(1) V(5) Filter(2) A(0) C(13) T(1) V(3)" }, { "db_id": "inn_1", "query": "SELECT Kids FROM Reservations WHERE CheckIn = \"2010-09-21\" AND FirstName = \"DAMIEN\" AND LastName = \"TRACHSEL\";", "query_toks": [ "SELECT", "Kids", "FROM", "Reservations", "WHERE", "CheckIn", "=", "``", "2010-09-21", "''", "AND", "FirstName", "=", "``", "DAMIEN", "''", "AND", "LastName", "=", "``", "TRACHSEL", "''", ";" ], "query_toks_no_value": [ "select", "kids", "from", "reservations", "where", "checkin", "=", "value", "and", "firstname", "=", "value", "and", "lastname", "=", "value" ], "question": "How many kids stay in the room DAMIEN TRACHSEL checked in on Sep 21, 2010?", "question_toks": [ "how", "many", "kid", "stay", "in", "room", "damien", "trachsel", "checked", "in", "on", "sep", "21", ",", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"2010-09-21\"", null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"DAMIEN\"", null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"TRACHSEL\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "How", "many", "kids", "stay", "in", "the", "room", "DAMIEN", "TRACHSEL", "checked", "in", "on", "Sep", "21", ",", "2010", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "kid" ], [ "stay" ], [ "in" ], [ "room" ], [ "damien" ], [ "trachsel" ], [ "checked" ], [ "in" ], [ "on" ], [ "sep" ], [ "21" ], [ "," ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "kid", "VBP" ], [ "stay", "VBP" ], [ "in", "IN" ], [ "room", "NN" ], [ "damien", "NN" ], [ "trachsel", "NN" ], [ "checked", "VBN" ], [ "in", "IN" ], [ "on", "IN" ], [ "sep", "NN" ], [ "21", "CD" ], [ ",", "," ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "DAMIEN", "21", "2010", "Sep 21, 2010", "TRACHSEL", "2010-09-21" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(1) Filter(0) Filter(2) A(0) C(10) T(1) V(5) Filter(0) Filter(2) A(0) C(14) T(1) V(0) Filter(2) A(0) C(13) T(1) V(4)" }, { "db_id": "inn_1", "query": "SELECT Kids FROM Reservations WHERE CheckIn = \"2010-09-21\" AND FirstName = \"DAMIEN\" AND LastName = \"TRACHSEL\";", "query_toks": [ "SELECT", "Kids", "FROM", "Reservations", "WHERE", "CheckIn", "=", "``", "2010-09-21", "''", "AND", "FirstName", "=", "``", "DAMIEN", "''", "AND", "LastName", "=", "``", "TRACHSEL", "''", ";" ], "query_toks_no_value": [ "select", "kids", "from", "reservations", "where", "checkin", "=", "value", "and", "firstname", "=", "value", "and", "lastname", "=", "value" ], "question": "Return the number of kids for the room reserved and checked in by DAMIEN TRACHSEL on Sep 21, 2010.", "question_toks": [ "return", "number", "of", "kid", "for", "room", "reserved", "and", "checked", "in", "by", "damien", "trachsel", "on", "sep", "21", ",", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"2010-09-21\"", null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"DAMIEN\"", null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"TRACHSEL\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Return", "the", "number", "of", "kids", "for", "the", "room", "reserved", "and", "checked", "in", "by", "DAMIEN", "TRACHSEL", "on", "Sep", "21", ",", "2010", "." ], "question_arg": [ [ "return" ], [ "number" ], [ "of" ], [ "kid" ], [ "for" ], [ "room" ], [ "reserved" ], [ "and" ], [ "checked" ], [ "in" ], [ "by" ], [ "damien" ], [ "trachsel" ], [ "on" ], [ "sep" ], [ "21" ], [ "," ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "kid", "NN" ], [ "for", "IN" ], [ "room", "NN" ], [ "reserved", "VBN" ], [ "and", "CC" ], [ "checked", "VBN" ], [ "in", "IN" ], [ "by", "IN" ], [ "damien", "JJ" ], [ "trachsel", "NN" ], [ "on", "IN" ], [ "sep", "NN" ], [ "21", "CD" ], [ ",", "," ], [ "2010", "CD" ], [ ".", "." ] ], "values": [ "DAMIEN", "21", "2010", "Sep 21, 2010", "TRACHSEL", "NUMBERS", "2010-09-21" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(1) Filter(0) Filter(2) A(0) C(10) T(1) V(6) Filter(0) Filter(2) A(0) C(14) T(1) V(0) Filter(2) A(0) C(13) T(1) V(4)" }, { "db_id": "inn_1", "query": "SELECT sum(beds) FROM Rooms WHERE bedtype = 'King';", "query_toks": [ "SELECT", "sum", "(", "beds", ")", "FROM", "Rooms", "WHERE", "bedtype", "=", "'King", "'", ";" ], "query_toks_no_value": [ "select", "sum", "(", "beds", ")", "from", "rooms", "where", "bedtype", "=", "value" ], "question": "How many king beds are there?", "question_toks": [ "how", "many", "king", "bed", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"King\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "How", "many", "king", "beds", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "king" ], [ "bed" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "king", "NN" ], [ "bed", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [ "King", "BERS" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "inn_1", "query": "SELECT sum(beds) FROM Rooms WHERE bedtype = 'King';", "query_toks": [ "SELECT", "sum", "(", "beds", ")", "FROM", "Rooms", "WHERE", "bedtype", "=", "'King", "'", ";" ], "query_toks_no_value": [ "select", "sum", "(", "beds", ")", "from", "rooms", "where", "bedtype", "=", "value" ], "question": "Find the total number of king beds available.", "question_toks": [ "find", "total", "number", "of", "king", "bed", "available", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"King\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "total", "number", "of", "king", "beds", "available", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "number" ], [ "of" ], [ "king" ], [ "bed" ], [ "available" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "king", "VBG" ], [ "bed", "NN" ], [ "available", "JJ" ], [ ".", "." ] ], "values": [ "King", "BERS", "NUMBERS" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "inn_1", "query": "SELECT roomName , decor FROM Rooms WHERE bedtype = 'King' ORDER BY basePrice;", "query_toks": [ "SELECT", "roomName", ",", "decor", "FROM", "Rooms", "WHERE", "bedtype", "=", "'King", "'", "ORDER", "BY", "basePrice", ";" ], "query_toks_no_value": [ "select", "roomname", ",", "decor", "from", "rooms", "where", "bedtype", "=", "value", "order", "by", "baseprice" ], "question": "List the names and decor of rooms that have a king bed. Sort the list by their price.", "question_toks": [ "list", "name", "and", "decor", "of", "room", "that", "have", "a", "king", "bed", ".", "sort", "list", "by", "their", "price", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"King\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "List", "the", "names", "and", "decor", "of", "rooms", "that", "have", "a", "king", "bed", ".", "Sort", "the", "list", "by", "their", "price", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "decor" ], [ "of" ], [ "room" ], [ "that" ], [ "have" ], [ "a" ], [ "king" ], [ "bed" ], [ "." ], [ "sort" ], [ "list" ], [ "by" ], [ "their" ], [ "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "decor", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "king", "NN" ], [ "bed", "NN" ], [ ".", "." ], [ "sort", "NN" ], [ "list", "NN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "price", "NN" ], [ ".", "." ] ], "values": [ "King", "PRINCE" ], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(2) T(0) A(0) C(7) T(0) Filter(2) A(0) C(4) T(0) V(0) Order(1) A(0) C(6) T(0)" }, { "db_id": "inn_1", "query": "SELECT roomName , decor FROM Rooms WHERE bedtype = 'King' ORDER BY basePrice;", "query_toks": [ "SELECT", "roomName", ",", "decor", "FROM", "Rooms", "WHERE", "bedtype", "=", "'King", "'", "ORDER", "BY", "basePrice", ";" ], "query_toks_no_value": [ "select", "roomname", ",", "decor", "from", "rooms", "where", "bedtype", "=", "value", "order", "by", "baseprice" ], "question": "What are the names and decor of rooms with a king bed? Sort them by their price", "question_toks": [ "what", "are", "name", "and", "decor", "of", "room", "with", "a", "king", "bed", "?", "sort", "them", "by", "their", "price" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"King\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "decor", "of", "rooms", "with", "a", "king", "bed", "?", "Sort", "them", "by", "their", "price" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "decor" ], [ "of" ], [ "room" ], [ "with" ], [ "a" ], [ "king" ], [ "bed" ], [ "?" ], [ "sort" ], [ "them" ], [ "by" ], [ "their" ], [ "price" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "decor", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "king", "NN" ], [ "bed", "NN" ], [ "?", "." ], [ "sort", "VB" ], [ "them", "PRP" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "price", "NN" ] ], "values": [ "King", "PRINCE" ], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(2) T(0) A(0) C(7) T(0) Filter(2) A(0) C(4) T(0) V(0) Order(1) A(0) C(6) T(0)" }, { "db_id": "inn_1", "query": "SELECT roomName , basePrice FROM Rooms ORDER BY basePrice ASC LIMIT 1;", "query_toks": [ "SELECT", "roomName", ",", "basePrice", "FROM", "Rooms", "ORDER", "BY", "basePrice", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "roomname", ",", "baseprice", "from", "rooms", "order", "by", "baseprice", "asc", "limit", "value" ], "question": "Which room has cheapest base price? List the room's name and the base price.", "question_toks": [ "which", "room", "ha", "cheapest", "base", "price", "?", "list", "room", "'s", "name", "and", "base", "price", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Which", "room", "has", "cheapest", "base", "price", "?", "List", "the", "room", "'s", "name", "and", "the", "base", "price", "." ], "question_arg": [ [ "which" ], [ "room" ], [ "ha" ], [ "cheapest" ], [ "base", "price" ], [ "?" ], [ "list" ], [ "room" ], [ "'s" ], [ "name" ], [ "and" ], [ "base", "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "room", "NN" ], [ "ha", "NN" ], [ "cheapest", "JJS" ], [ "base", "NN" ], [ "price", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "room", "NN" ], [ "'s", "POS" ], [ "name", "NN" ], [ "and", "CC" ], [ "base", "NN" ], [ "price", "NN" ], [ ".", "." ] ], "values": [ "BOSE", "PRINCE" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(0) C(6) T(0) Sup(1) A(0) C(6) T(0)" }, { "db_id": "inn_1", "query": "SELECT roomName , basePrice FROM Rooms ORDER BY basePrice ASC LIMIT 1;", "query_toks": [ "SELECT", "roomName", ",", "basePrice", "FROM", "Rooms", "ORDER", "BY", "basePrice", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "roomname", ",", "baseprice", "from", "rooms", "order", "by", "baseprice", "asc", "limit", "value" ], "question": "What are the room name and base price of the room with the lowest base price?", "question_toks": [ "what", "are", "room", "name", "and", "base", "price", "of", "room", "with", "lowest", "base", "price", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "room", "name", "and", "base", "price", "of", "the", "room", "with", "the", "lowest", "base", "price", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "room", "name" ], [ "and" ], [ "base", "price" ], [ "of" ], [ "room" ], [ "with" ], [ "lowest" ], [ "base", "price" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "room", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "base", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "with", "IN" ], [ "lowest", "JJ" ], [ "base", "NN" ], [ "price", "NN" ], [ "?", "." ] ], "values": [ "BOSE", "PRINCE" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(0) C(6) T(0) Sup(1) A(0) C(6) T(0)" }, { "db_id": "inn_1", "query": "SELECT decor FROM Rooms WHERE roomName = \"Recluse and defiance\";", "query_toks": [ "SELECT", "decor", "FROM", "Rooms", "WHERE", "roomName", "=", "``", "Recluse", "and", "defiance", "''", ";" ], "query_toks_no_value": [ "select", "decor", "from", "rooms", "where", "roomname", "=", "value" ], "question": "What is the decor of room Recluse and defiance?", "question_toks": [ "what", "is", "decor", "of", "room", "recluse", "and", "defiance", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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 ], "\"Recluse and defiance\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "decor", "of", "room", "Recluse", "and", "defiance", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "decor" ], [ "of" ], [ "room" ], [ "recluse" ], [ "and" ], [ "defiance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "decor", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "recluse", "NN" ], [ "and", "CC" ], [ "defiance", "NN" ], [ "?", "." ] ], "values": [ "Recluse and defiance" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "inn_1", "query": "SELECT decor FROM Rooms WHERE roomName = \"Recluse and defiance\";", "query_toks": [ "SELECT", "decor", "FROM", "Rooms", "WHERE", "roomName", "=", "``", "Recluse", "and", "defiance", "''", ";" ], "query_toks_no_value": [ "select", "decor", "from", "rooms", "where", "roomname", "=", "value" ], "question": "Return the decor of the room named \"Recluse and defiance\".", "question_toks": [ "return", "decor", "of", "room", "named", "'", "recluse", "and", "defiance", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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 ], "\"Recluse and defiance\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Return", "the", "decor", "of", "the", "room", "named", "``", "Recluse", "and", "defiance", "''", "." ], "question_arg": [ [ "return" ], [ "decor" ], [ "of" ], [ "room" ], [ "named" ], [ "'" ], [ "recluse" ], [ "and" ], [ "defiance" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "decor", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "recluse", "NN" ], [ "and", "CC" ], [ "defiance", "NN" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "Recluse and defiance" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "inn_1", "query": "SELECT bedType , avg(basePrice) FROM Rooms GROUP BY bedType;", "query_toks": [ "SELECT", "bedType", ",", "avg", "(", "basePrice", ")", "FROM", "Rooms", "GROUP", "BY", "bedType", ";" ], "query_toks_no_value": [ "select", "bedtype", ",", "avg", "(", "baseprice", ")", "from", "rooms", "group", "by", "bedtype" ], "question": "What is the average base price of different bed type? List bed type and average base price.", "question_toks": [ "what", "is", "average", "base", "price", "of", "different", "bed", "type", "?", "list", "bed", "type", "and", "average", "base", "price", "." ], "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 ] ], [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "average", "base", "price", "of", "different", "bed", "type", "?", "List", "bed", "type", "and", "average", "base", "price", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "base", "price" ], [ "of" ], [ "different" ], [ "bed", "type" ], [ "?" ], [ "list" ], [ "bed", "type" ], [ "and" ], [ "average" ], [ "base", "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "base", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "bed", "NN" ], [ "type", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "bed", "VBD" ], [ "type", "JJ" ], [ "and", "CC" ], [ "average", "JJ" ], [ "base", "JJ" ], [ "price", "NN" ], [ ".", "." ] ], "values": [ "BOSE", "PRINCE" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(0) A(5) C(6) T(0)" }, { "db_id": "inn_1", "query": "SELECT bedType , avg(basePrice) FROM Rooms GROUP BY bedType;", "query_toks": [ "SELECT", "bedType", ",", "avg", "(", "basePrice", ")", "FROM", "Rooms", "GROUP", "BY", "bedType", ";" ], "query_toks_no_value": [ "select", "bedtype", ",", "avg", "(", "baseprice", ")", "from", "rooms", "group", "by", "bedtype" ], "question": "For each bed type, find the average base price of different bed type.", "question_toks": [ "for", "each", "bed", "type", ",", "find", "average", "base", "price", "of", "different", "bed", "type", "." ], "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 ] ], [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "For", "each", "bed", "type", ",", "find", "the", "average", "base", "price", "of", "different", "bed", "type", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "bed", "type" ], [ "," ], [ "find" ], [ "average" ], [ "base", "price" ], [ "of" ], [ "different" ], [ "bed", "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "bed", "NN" ], [ "type", "NN" ], [ ",", "," ], [ "find", "VBP" ], [ "average", "JJ" ], [ "base", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "bed", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "BOSE", "PRINCE" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(0) A(5) C(6) T(0)" }, { "db_id": "inn_1", "query": "SELECT sum(maxOccupancy) FROM Rooms WHERE decor = 'modern';", "query_toks": [ "SELECT", "sum", "(", "maxOccupancy", ")", "FROM", "Rooms", "WHERE", "decor", "=", "'modern", "'", ";" ], "query_toks_no_value": [ "select", "sum", "(", "maxoccupancy", ")", "from", "rooms", "where", "decor", "=", "value" ], "question": "What is the total number of people who could stay in the modern rooms in this inn?", "question_toks": [ "what", "is", "total", "number", "of", "people", "who", "could", "stay", "in", "modern", "room", "in", "this", "inn", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"modern\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "people", "who", "could", "stay", "in", "the", "modern", "rooms", "in", "this", "inn", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "people" ], [ "who" ], [ "could" ], [ "stay" ], [ "in" ], [ "modern" ], [ "room" ], [ "in" ], [ "this" ], [ "inn" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "who", "WP" ], [ "could", "MD" ], [ "stay", "VB" ], [ "in", "IN" ], [ "modern", "JJ" ], [ "room", "NN" ], [ "in", "IN" ], [ "this", "DT" ], [ "inn", "NN" ], [ "?", "." ] ], "values": [ "NUMBERS", "modern" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(5) T(0) Filter(2) A(0) C(7) T(0) V(1)" }, { "db_id": "inn_1", "query": "SELECT sum(maxOccupancy) FROM Rooms WHERE decor = 'modern';", "query_toks": [ "SELECT", "sum", "(", "maxOccupancy", ")", "FROM", "Rooms", "WHERE", "decor", "=", "'modern", "'", ";" ], "query_toks_no_value": [ "select", "sum", "(", "maxoccupancy", ")", "from", "rooms", "where", "decor", "=", "value" ], "question": "How many people in total can stay in the modern rooms of this inn?", "question_toks": [ "how", "many", "people", "in", "total", "can", "stay", "in", "modern", "room", "of", "this", "inn", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"modern\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "How", "many", "people", "in", "total", "can", "stay", "in", "the", "modern", "rooms", "of", "this", "inn", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "people" ], [ "in" ], [ "total" ], [ "can" ], [ "stay" ], [ "in" ], [ "modern" ], [ "room" ], [ "of" ], [ "this" ], [ "inn" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "people", "NNS" ], [ "in", "IN" ], [ "total", "JJ" ], [ "can", "MD" ], [ "stay", "VB" ], [ "in", "IN" ], [ "modern", "JJ" ], [ "room", "NN" ], [ "of", "IN" ], [ "this", "DT" ], [ "inn", "NN" ], [ "?", "." ] ], "values": [ "modern" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(5) T(0) Filter(2) A(0) C(7) T(0) V(0)" }, { "db_id": "inn_1", "query": "SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T2.decor ORDER BY count(T2.decor) ASC LIMIT 1;", "query_toks": [ "SELECT", "T2.decor", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "GROUP", "BY", "T2.decor", "ORDER", "BY", "count", "(", "T2.decor", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "decor", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "group", "by", "t2", ".", "decor", "order", "by", "count", "(", "t2", ".", "decor", ")", "asc", "limit", "value" ], "question": "What kind of decor has the least number of reservations?", "question_toks": [ "what", "kind", "of", "decor", "ha", "least", "number", "of", "reservation", "?" ], "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, 7, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 7, false ], null ] ] ], "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", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "kind", "of", "decor", "has", "the", "least", "number", "of", "reservations", "?" ], "question_arg": [ [ "what" ], [ "kind" ], [ "of" ], [ "decor" ], [ "ha" ], [ "least" ], [ "number" ], [ "of" ], [ "reservation" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "kind", "NN" ], [ "of", "IN" ], [ "decor", "NN" ], [ "ha", "NN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "reservation", "NN" ], [ "?", "." ] ], "values": [ "NUMBERS", "King" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(7) T(0) Sup(1) A(3) C(7) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(9) T(1)" }, { "db_id": "inn_1", "query": "SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T2.decor ORDER BY count(T2.decor) ASC LIMIT 1;", "query_toks": [ "SELECT", "T2.decor", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "GROUP", "BY", "T2.decor", "ORDER", "BY", "count", "(", "T2.decor", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "decor", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "group", "by", "t2", ".", "decor", "order", "by", "count", "(", "t2", ".", "decor", ")", "asc", "limit", "value" ], "question": "What is the least popular kind of decor?", "question_toks": [ "what", "is", "least", "popular", "kind", "of", "decor", "?" ], "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, 7, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 7, false ], null ] ] ], "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", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "least", "popular", "kind", "of", "decor", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "least" ], [ "popular" ], [ "kind" ], [ "of" ], [ "decor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "least", "RBS" ], [ "popular", "JJ" ], [ "kind", "NN" ], [ "of", "IN" ], [ "decor", "NN" ], [ "?", "." ] ], "values": [ "King" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(7) T(0) Sup(1) A(3) C(7) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(9) T(1)" }, { "db_id": "inn_1", "query": "SELECT count(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T2.maxOccupancy = T1.Adults + T1.Kids;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "WHERE", "T2.maxOccupancy", "=", "T1.Adults", "+", "T1.Kids", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "where", "t2", ".", "maxoccupancy", "=", "t1", ".", "adults", "+", "t1", ".", "kids" ], "question": "List how many times the number of people in the room reached the maximum occupancy of the room. The number of people include adults and kids.", "question_toks": [ "list", "how", "many", "time", "number", "of", "people", "in", "room", "reached", "maximum", "occupancy", "of", "room", ".", "number", "of", "people", "include", "adult", "and", "kid", "." ], "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, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 15, false ], null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "List", "how", "many", "times", "the", "number", "of", "people", "in", "the", "room", "reached", "the", "maximum", "occupancy", "of", "the", "room", ".", "The", "number", "of", "people", "include", "adults", "and", "kids", "." ], "question_arg": [ [ "list" ], [ "how" ], [ "many" ], [ "time" ], [ "number" ], [ "of" ], [ "people" ], [ "in" ], [ "room" ], [ "reached" ], [ "maximum" ], [ "occupancy" ], [ "of" ], [ "room" ], [ "." ], [ "number" ], [ "of" ], [ "people" ], [ "include" ], [ "adult" ], [ "and" ], [ "kid" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "time", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "in", "IN" ], [ "room", "NN" ], [ "reached", "VBD" ], [ "maximum", "JJ" ], [ "occupancy", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ ".", "." ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "include", "VBP" ], [ "adult", "NN" ], [ "and", "CC" ], [ "kid", "NN" ], [ ".", "." ] ], "values": [ "NUMBERS", "[0, 15, False]" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "inn_1", "query": "SELECT count(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T2.maxOccupancy = T1.Adults + T1.Kids;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "WHERE", "T2.maxOccupancy", "=", "T1.Adults", "+", "T1.Kids", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "where", "t2", ".", "maxoccupancy", "=", "t1", ".", "adults", "+", "t1", ".", "kids" ], "question": "How many times the number of adults and kids staying in a room reached the maximum capacity of the room?", "question_toks": [ "how", "many", "time", "number", "of", "adult", "and", "kid", "staying", "in", "a", "room", "reached", "maximum", "capacity", "of", "room", "?" ], "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, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 15, false ], null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "How", "many", "times", "the", "number", "of", "adults", "and", "kids", "staying", "in", "a", "room", "reached", "the", "maximum", "capacity", "of", "the", "room", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "time" ], [ "number" ], [ "of" ], [ "adult" ], [ "and" ], [ "kid" ], [ "staying" ], [ "in" ], [ "a" ], [ "room" ], [ "reached" ], [ "maximum" ], [ "capacity" ], [ "of" ], [ "room" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "time", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "adult", "NN" ], [ "and", "CC" ], [ "kid", "NN" ], [ "staying", "NN" ], [ "in", "IN" ], [ "a", "DT" ], [ "room", "NN" ], [ "reached", "VBN" ], [ "maximum", "JJ" ], [ "capacity", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "?", "." ] ], "values": [ "NUMBERS", "[0, 15, False]" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "inn_1", "query": "SELECT T1.firstname , T1.lastname FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T1.Rate - T2.basePrice > 0", "query_toks": [ "SELECT", "T1.firstname", ",", "T1.lastname", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "WHERE", "T1.Rate", "-", "T2.basePrice", ">", "0" ], "query_toks_no_value": [ "select", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "where", "t1", ".", "rate", "-", "t2", ".", "baseprice", ">", "value" ], "question": "Find the first and last names of people who payed more than the rooms' base prices.", "question_toks": [ "find", "first", "and", "last", "name", "of", "people", "who", "payed", "more", "than", "room", "'", "base", "price", "." ], "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, 14, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 1, [ 0, 12, false ], [ 0, 6, false ] ], 0.0, null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "first", "and", "last", "names", "of", "people", "who", "payed", "more", "than", "the", "rooms", "'", "base", "prices", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "people" ], [ "who" ], [ "payed" ], [ "more" ], [ "than" ], [ "room" ], [ "'" ], [ "base", "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "who", "WP" ], [ "payed", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "room", "NN" ], [ "'", "''" ], [ "base", "JJ" ], [ "price", "NN" ], [ ".", "." ] ], "values": [ "1", "BOSE", "0" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(1) A(0) C(13) T(1) Filter(5) A(0) C(12) T(1) V(2)" }, { "db_id": "inn_1", "query": "SELECT T1.firstname , T1.lastname FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T1.Rate - T2.basePrice > 0", "query_toks": [ "SELECT", "T1.firstname", ",", "T1.lastname", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "WHERE", "T1.Rate", "-", "T2.basePrice", ">", "0" ], "query_toks_no_value": [ "select", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "where", "t1", ".", "rate", "-", "t2", ".", "baseprice", ">", "value" ], "question": "What are the first and last names of people who payed more than the rooms' base prices?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "people", "who", "payed", "more", "than", "room", "'", "base", "price", "?" ], "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, 14, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 1, [ 0, 12, false ], [ 0, 6, false ] ], 0.0, null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "of", "people", "who", "payed", "more", "than", "the", "rooms", "'", "base", "prices", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "people" ], [ "who" ], [ "payed" ], [ "more" ], [ "than" ], [ "room" ], [ "'" ], [ "base", "price" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "who", "WP" ], [ "payed", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "room", "NN" ], [ "'", "''" ], [ "base", "JJ" ], [ "price", "NN" ], [ "?", "." ] ], "values": [ "1", "BOSE", "0" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(1) A(0) C(13) T(1) Filter(5) A(0) C(12) T(1) V(2)" }, { "db_id": "inn_1", "query": "SELECT count(*) FROM Rooms;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Rooms", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "rooms" ], "question": "How many rooms are there?", "question_toks": [ "how", "many", "room", "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": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "How", "many", "rooms", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "room" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "room", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "inn_1", "query": "SELECT count(*) FROM Rooms;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Rooms", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "rooms" ], "question": "What is the total number of rooms available in this inn?", "question_toks": [ "what", "is", "total", "number", "of", "room", "available", "in", "this", "inn", "?" ], "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": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "rooms", "available", "in", "this", "inn", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "room" ], [ "available" ], [ "in" ], [ "this" ], [ "inn" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "available", "JJ" ], [ "in", "IN" ], [ "this", "DT" ], [ "inn", "NN" ], [ "?", "." ] ], "values": [ "NUMBERS" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "inn_1", "query": "SELECT count(*) FROM Rooms WHERE bedType = \"King\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Rooms", "WHERE", "bedType", "=", "``", "King", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "rooms", "where", "bedtype", "=", "value" ], "question": "Find the number of rooms with a king bed.", "question_toks": [ "find", "number", "of", "room", "with", "a", "king", "bed", "." ], "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 ], "\"King\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "number", "of", "rooms", "with", "a", "king", "bed", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "room" ], [ "with" ], [ "a" ], [ "king" ], [ "bed" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "king", "NN" ], [ "bed", "NN" ], [ ".", "." ] ], "values": [ "NUMBERS", "King" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(4) T(0) V(1)" }, { "db_id": "inn_1", "query": "SELECT count(*) FROM Rooms WHERE bedType = \"King\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Rooms", "WHERE", "bedType", "=", "``", "King", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "rooms", "where", "bedtype", "=", "value" ], "question": "How many rooms have a king bed?", "question_toks": [ "how", "many", "room", "have", "a", "king", "bed", "?" ], "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 ], "\"King\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "How", "many", "rooms", "have", "a", "king", "bed", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "room" ], [ "have" ], [ "a" ], [ "king" ], [ "bed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "room", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "king", "NN" ], [ "bed", "NN" ], [ "?", "." ] ], "values": [ "King" ], "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": "inn_1", "query": "SELECT bedType , count(*) FROM Rooms GROUP BY bedType;", "query_toks": [ "SELECT", "bedType", ",", "count", "(", "*", ")", "FROM", "Rooms", "GROUP", "BY", "bedType", ";" ], "query_toks_no_value": [ "select", "bedtype", ",", "count", "(", "*", ")", "from", "rooms", "group", "by", "bedtype" ], "question": "Find the number of rooms for each bed type.", "question_toks": [ "find", "number", "of", "room", "for", "each", "bed", "type", "." ], "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": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "number", "of", "rooms", "for", "each", "bed", "type", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "room" ], [ "for" ], [ "each" ], [ "bed", "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "bed", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "NUMBERS" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(0) A(3) C(0) T(0)" }, { "db_id": "inn_1", "query": "SELECT bedType , count(*) FROM Rooms GROUP BY bedType;", "query_toks": [ "SELECT", "bedType", ",", "count", "(", "*", ")", "FROM", "Rooms", "GROUP", "BY", "bedType", ";" ], "query_toks_no_value": [ "select", "bedtype", ",", "count", "(", "*", ")", "from", "rooms", "group", "by", "bedtype" ], "question": "What are the number of rooms for each bed type?", "question_toks": [ "what", "are", "number", "of", "room", "for", "each", "bed", "type", "?" ], "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": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "number", "of", "rooms", "for", "each", "bed", "type", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "number" ], [ "of" ], [ "room" ], [ "for" ], [ "each" ], [ "bed", "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "bed", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [ "NUMBERS" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(0) A(3) C(0) T(0)" }, { "db_id": "inn_1", "query": "SELECT roomName FROM Rooms ORDER BY maxOccupancy DESC LIMIT 1;", "query_toks": [ "SELECT", "roomName", "FROM", "Rooms", "ORDER", "BY", "maxOccupancy", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "roomname", "from", "rooms", "order", "by", "maxoccupancy", "desc", "limit", "value" ], "question": "Find the name of the room with the maximum occupancy.", "question_toks": [ "find", "name", "of", "room", "with", "maximum", "occupancy", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "room", "with", "the", "maximum", "occupancy", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "room" ], [ "with" ], [ "maximum" ], [ "occupancy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "with", "IN" ], [ "maximum", "JJ" ], [ "occupancy", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "inn_1", "query": "SELECT roomName FROM Rooms ORDER BY maxOccupancy DESC LIMIT 1;", "query_toks": [ "SELECT", "roomName", "FROM", "Rooms", "ORDER", "BY", "maxOccupancy", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "roomname", "from", "rooms", "order", "by", "maxoccupancy", "desc", "limit", "value" ], "question": "What is the name of the room that can accommodate the most people?", "question_toks": [ "what", "is", "name", "of", "room", "that", "can", "accommodate", "most", "people", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "room", "that", "can", "accommodate", "the", "most", "people", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "room" ], [ "that" ], [ "can" ], [ "accommodate" ], [ "most" ], [ "people" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "accommodate", "VB" ], [ "most", "JJS" ], [ "people", "NNS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "inn_1", "query": "SELECT RoomId , roomName FROM Rooms ORDER BY basePrice DESC LIMIT 1;", "query_toks": [ "SELECT", "RoomId", ",", "roomName", "FROM", "Rooms", "ORDER", "BY", "basePrice", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "roomid", ",", "roomname", "from", "rooms", "order", "by", "baseprice", "desc", "limit", "value" ], "question": "Find the id and name of the most expensive base price room.", "question_toks": [ "find", "id", "and", "name", "of", "most", "expensive", "base", "price", "room", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "id", "and", "name", "of", "the", "most", "expensive", "base", "price", "room", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "most" ], [ "expensive" ], [ "base", "price" ], [ "room" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "expensive", "JJ" ], [ "base", "NN" ], [ "price", "NN" ], [ "room", "NN" ], [ ".", "." ] ], "values": [ "BOSE", "PRINCE" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Sup(0) A(0) C(6) T(0)" }, { "db_id": "inn_1", "query": "SELECT RoomId , roomName FROM Rooms ORDER BY basePrice DESC LIMIT 1;", "query_toks": [ "SELECT", "RoomId", ",", "roomName", "FROM", "Rooms", "ORDER", "BY", "basePrice", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "roomid", ",", "roomname", "from", "rooms", "order", "by", "baseprice", "desc", "limit", "value" ], "question": "Which room has the highest base price?", "question_toks": [ "which", "room", "ha", "highest", "base", "price", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Which", "room", "has", "the", "highest", "base", "price", "?" ], "question_arg": [ [ "which" ], [ "room" ], [ "ha" ], [ "highest" ], [ "base", "price" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "room", "NN" ], [ "ha", "NN" ], [ "highest", "JJS" ], [ "base", "NN" ], [ "price", "NN" ], [ "?", "." ] ], "values": [ "BOSE", "PRINCE" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Sup(0) A(0) C(6) T(0)" }, { "db_id": "inn_1", "query": "SELECT roomName , bedType FROM Rooms WHERE decor = \"traditional\";", "query_toks": [ "SELECT", "roomName", ",", "bedType", "FROM", "Rooms", "WHERE", "decor", "=", "``", "traditional", "''", ";" ], "query_toks_no_value": [ "select", "roomname", ",", "bedtype", "from", "rooms", "where", "decor", "=", "value" ], "question": "List the type of bed and name of all traditional rooms.", "question_toks": [ "list", "type", "of", "bed", "and", "name", "of", "all", "traditional", "room", "." ], "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, 2, [ 0, [ 0, 7, false ], null ], "\"traditional\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "List", "the", "type", "of", "bed", "and", "name", "of", "all", "traditional", "rooms", "." ], "question_arg": [ [ "list" ], [ "type" ], [ "of" ], [ "bed" ], [ "and" ], [ "name" ], [ "of" ], [ "all" ], [ "traditional" ], [ "room" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "type", "NN" ], [ "of", "IN" ], [ "bed", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "traditional", "JJ" ], [ "room", "NN" ], [ ".", "." ] ], "values": [ "traditional" ], "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(7) T(0) V(0)" }, { "db_id": "inn_1", "query": "SELECT roomName , bedType FROM Rooms WHERE decor = \"traditional\";", "query_toks": [ "SELECT", "roomName", ",", "bedType", "FROM", "Rooms", "WHERE", "decor", "=", "``", "traditional", "''", ";" ], "query_toks_no_value": [ "select", "roomname", ",", "bedtype", "from", "rooms", "where", "decor", "=", "value" ], "question": "What are the bed type and name of all the rooms with traditional decor?", "question_toks": [ "what", "are", "bed", "type", "and", "name", "of", "all", "room", "with", "traditional", "decor", "?" ], "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, 2, [ 0, [ 0, 7, false ], null ], "\"traditional\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "bed", "type", "and", "name", "of", "all", "the", "rooms", "with", "traditional", "decor", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "bed", "type" ], [ "and" ], [ "name" ], [ "of" ], [ "all" ], [ "room" ], [ "with" ], [ "traditional" ], [ "decor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "bed", "VBN" ], [ "type", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "room", "NN" ], [ "with", "IN" ], [ "traditional", "JJ" ], [ "decor", "NN" ], [ "?", "." ] ], "values": [ "traditional" ], "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(7) T(0) V(0)" }, { "db_id": "inn_1", "query": "SELECT decor , count(*) FROM Rooms WHERE bedType = \"King\" GROUP BY decor;", "query_toks": [ "SELECT", "decor", ",", "count", "(", "*", ")", "FROM", "Rooms", "WHERE", "bedType", "=", "``", "King", "''", "GROUP", "BY", "decor", ";" ], "query_toks_no_value": [ "select", "decor", ",", "count", "(", "*", ")", "from", "rooms", "where", "bedtype", "=", "value", "group", "by", "decor" ], "question": "Find the number of rooms with king bed for each decor type.", "question_toks": [ "find", "number", "of", "room", "with", "king", "bed", "for", "each", "decor", "type", "." ], "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, 2, [ 0, [ 0, 4, false ], null ], "\"King\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "number", "of", "rooms", "with", "king", "bed", "for", "each", "decor", "type", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "room" ], [ "with" ], [ "king" ], [ "bed" ], [ "for" ], [ "each" ], [ "decor" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "with", "IN" ], [ "king", "NN" ], [ "bed", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "decor", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "King", "NUMBERS" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(0) A(3) C(0) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "inn_1", "query": "SELECT decor , count(*) FROM Rooms WHERE bedType = \"King\" GROUP BY decor;", "query_toks": [ "SELECT", "decor", ",", "count", "(", "*", ")", "FROM", "Rooms", "WHERE", "bedType", "=", "``", "King", "''", "GROUP", "BY", "decor", ";" ], "query_toks_no_value": [ "select", "decor", ",", "count", "(", "*", ")", "from", "rooms", "where", "bedtype", "=", "value", "group", "by", "decor" ], "question": "How many rooms have king beds? Report the number for each decor type.", "question_toks": [ "how", "many", "room", "have", "king", "bed", "?", "report", "number", "for", "each", "decor", "type", "." ], "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, 2, [ 0, [ 0, 4, false ], null ], "\"King\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "How", "many", "rooms", "have", "king", "beds", "?", "Report", "the", "number", "for", "each", "decor", "type", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "room" ], [ "have" ], [ "king" ], [ "bed" ], [ "?" ], [ "report" ], [ "number" ], [ "for" ], [ "each" ], [ "decor" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "room", "NN" ], [ "have", "VBP" ], [ "king", "VBG" ], [ "bed", "VBN" ], [ "?", "." ], [ "report", "NN" ], [ "number", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "decor", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "King", "BERS", "NUMBERS" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(0) A(3) C(0) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "inn_1", "query": "SELECT decor , avg(basePrice) , min(basePrice) FROM Rooms GROUP BY decor;", "query_toks": [ "SELECT", "decor", ",", "avg", "(", "basePrice", ")", ",", "min", "(", "basePrice", ")", "FROM", "Rooms", "GROUP", "BY", "decor", ";" ], "query_toks_no_value": [ "select", "decor", ",", "avg", "(", "baseprice", ")", ",", "min", "(", "baseprice", ")", "from", "rooms", "group", "by", "decor" ], "question": "Find the average and minimum price of the rooms in different decor.", "question_toks": [ "find", "average", "and", "minimum", "price", "of", "room", "in", "different", "decor", "." ], "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, 6, false ], null ] ], [ 2, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "average", "and", "minimum", "price", "of", "the", "rooms", "in", "different", "decor", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "and" ], [ "minimum" ], [ "price" ], [ "of" ], [ "room" ], [ "in" ], [ "different" ], [ "decor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "in", "IN" ], [ "different", "JJ" ], [ "decor", "NN" ], [ ".", "." ] ], "values": [ "PRINCE" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(7) T(0) A(5) C(6) T(0) A(2) C(6) T(0)" }, { "db_id": "inn_1", "query": "SELECT decor , avg(basePrice) , min(basePrice) FROM Rooms GROUP BY decor;", "query_toks": [ "SELECT", "decor", ",", "avg", "(", "basePrice", ")", ",", "min", "(", "basePrice", ")", "FROM", "Rooms", "GROUP", "BY", "decor", ";" ], "query_toks_no_value": [ "select", "decor", ",", "avg", "(", "baseprice", ")", ",", "min", "(", "baseprice", ")", "from", "rooms", "group", "by", "decor" ], "question": "What is the average minimum and price of the rooms for each different decor.", "question_toks": [ "what", "is", "average", "minimum", "and", "price", "of", "room", "for", "each", "different", "decor", "." ], "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, 6, false ], null ] ], [ 2, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "average", "minimum", "and", "price", "of", "the", "rooms", "for", "each", "different", "decor", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "minimum" ], [ "and" ], [ "price" ], [ "of" ], [ "room" ], [ "for" ], [ "each" ], [ "different" ], [ "decor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "minimum", "JJ" ], [ "and", "CC" ], [ "price", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "different", "JJ" ], [ "decor", "NN" ], [ ".", "." ] ], "values": [ "PRINCE" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(7) T(0) A(5) C(6) T(0) A(2) C(6) T(0)" }, { "db_id": "inn_1", "query": "SELECT roomName FROM Rooms ORDER BY basePrice;", "query_toks": [ "SELECT", "roomName", "FROM", "Rooms", "ORDER", "BY", "basePrice", ";" ], "query_toks_no_value": [ "select", "roomname", "from", "rooms", "order", "by", "baseprice" ], "question": "List the name of all rooms sorted by their prices.", "question_toks": [ "list", "name", "of", "all", "room", "sorted", "by", "their", "price", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "List", "the", "name", "of", "all", "rooms", "sorted", "by", "their", "prices", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "room" ], [ "sorted" ], [ "by" ], [ "their" ], [ "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "room", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "price", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(6) T(0)" }, { "db_id": "inn_1", "query": "SELECT roomName FROM Rooms ORDER BY basePrice;", "query_toks": [ "SELECT", "roomName", "FROM", "Rooms", "ORDER", "BY", "basePrice", ";" ], "query_toks_no_value": [ "select", "roomname", "from", "rooms", "order", "by", "baseprice" ], "question": "Sort all the rooms according to the price. Just report the room names.", "question_toks": [ "sort", "all", "room", "according", "to", "price", ".", "just", "report", "room", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Sort", "all", "the", "rooms", "according", "to", "the", "price", ".", "Just", "report", "the", "room", "names", "." ], "question_arg": [ [ "sort" ], [ "all" ], [ "room" ], [ "according" ], [ "to" ], [ "price" ], [ "." ], [ "just" ], [ "report" ], [ "room", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "sort", "NN" ], [ "all", "DT" ], [ "room", "NN" ], [ "according", "VBG" ], [ "to", "TO" ], [ "price", "NN" ], [ ".", "." ], [ "just", "RB" ], [ "report", "NN" ], [ "room", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "PRINCE" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(6) T(0)" }, { "db_id": "inn_1", "query": "SELECT decor , count(*) FROM Rooms WHERE basePrice > 120 GROUP BY decor;", "query_toks": [ "SELECT", "decor", ",", "count", "(", "*", ")", "FROM", "Rooms", "WHERE", "basePrice", ">", "120", "GROUP", "BY", "decor", ";" ], "query_toks_no_value": [ "select", "decor", ",", "count", "(", "*", ")", "from", "rooms", "where", "baseprice", ">", "value", "group", "by", "decor" ], "question": "Find the number of rooms with price higher than 120 for different decor.", "question_toks": [ "find", "number", "of", "room", "with", "price", "higher", "than", "120", "for", "different", "decor", "." ], "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, 6, false ], null ], 120.0, null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "number", "of", "rooms", "with", "price", "higher", "than", "120", "for", "different", "decor", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "room" ], [ "with" ], [ "price" ], [ "higher" ], [ "than" ], [ "120" ], [ "for" ], [ "different" ], [ "decor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "120", "CD" ], [ "for", "IN" ], [ "different", "JJ" ], [ "decor", "NN" ], [ ".", "." ] ], "values": [ "PRINCE", "120", "NUMBERS" ], "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(6) T(0) V(1)" }, { "db_id": "inn_1", "query": "SELECT decor , count(*) FROM Rooms WHERE basePrice > 120 GROUP BY decor;", "query_toks": [ "SELECT", "decor", ",", "count", "(", "*", ")", "FROM", "Rooms", "WHERE", "basePrice", ">", "120", "GROUP", "BY", "decor", ";" ], "query_toks_no_value": [ "select", "decor", ",", "count", "(", "*", ")", "from", "rooms", "where", "baseprice", ">", "value", "group", "by", "decor" ], "question": "How many rooms cost more than 120, for each different decor?", "question_toks": [ "how", "many", "room", "cost", "more", "than", "120", ",", "for", "each", "different", "decor", "?" ], "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, 6, false ], null ], 120.0, null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "How", "many", "rooms", "cost", "more", "than", "120", ",", "for", "each", "different", "decor", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "room" ], [ "cost" ], [ "more" ], [ "than" ], [ "120" ], [ "," ], [ "for" ], [ "each" ], [ "different" ], [ "decor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "room", "NN" ], [ "cost", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "120", "CD" ], [ ",", "," ], [ "for", "IN" ], [ "each", "DT" ], [ "different", "JJ" ], [ "decor", "NN" ], [ "?", "." ] ], "values": [ "120" ], "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(6) T(0) V(0)" }, { "db_id": "inn_1", "query": "SELECT bedType , avg(basePrice) FROM Rooms GROUP BY bedType;", "query_toks": [ "SELECT", "bedType", ",", "avg", "(", "basePrice", ")", "FROM", "Rooms", "GROUP", "BY", "bedType", ";" ], "query_toks_no_value": [ "select", "bedtype", ",", "avg", "(", "baseprice", ")", "from", "rooms", "group", "by", "bedtype" ], "question": "For each bed type, find the average room price.", "question_toks": [ "for", "each", "bed", "type", ",", "find", "average", "room", "price", "." ], "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 ] ], [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "For", "each", "bed", "type", ",", "find", "the", "average", "room", "price", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "bed", "type" ], [ "," ], [ "find" ], [ "average" ], [ "room" ], [ "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "bed", "NN" ], [ "type", "NN" ], [ ",", "," ], [ "find", "VBP" ], [ "average", "JJ" ], [ "room", "NN" ], [ "price", "NN" ], [ ".", "." ] ], "values": [ "PRINCE" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(0) A(5) C(6) T(0)" }, { "db_id": "inn_1", "query": "SELECT bedType , avg(basePrice) FROM Rooms GROUP BY bedType;", "query_toks": [ "SELECT", "bedType", ",", "avg", "(", "basePrice", ")", "FROM", "Rooms", "GROUP", "BY", "bedType", ";" ], "query_toks_no_value": [ "select", "bedtype", ",", "avg", "(", "baseprice", ")", "from", "rooms", "group", "by", "bedtype" ], "question": "What is the average base price of rooms, for each bed type?", "question_toks": [ "what", "is", "average", "base", "price", "of", "room", ",", "for", "each", "bed", "type", "?" ], "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 ] ], [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "average", "base", "price", "of", "rooms", ",", "for", "each", "bed", "type", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "base", "price" ], [ "of" ], [ "room" ], [ "," ], [ "for" ], [ "each" ], [ "bed", "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "base", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ ",", "," ], [ "for", "IN" ], [ "each", "DT" ], [ "bed", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [ "PRINCE", "BOSE" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(0) A(5) C(6) T(0)" }, { "db_id": "inn_1", "query": "SELECT roomName FROM Rooms WHERE bedType = \"King\" OR bedType = \"Queen\";", "query_toks": [ "SELECT", "roomName", "FROM", "Rooms", "WHERE", "bedType", "=", "``", "King", "''", "OR", "bedType", "=", "``", "Queen", "''", ";" ], "query_toks_no_value": [ "select", "roomname", "from", "rooms", "where", "bedtype", "=", "value", "or", "bedtype", "=", "value" ], "question": "List the name of rooms with king or queen bed.", "question_toks": [ "list", "name", "of", "room", "with", "king", "or", "queen", "bed", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"King\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Queen\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "List", "the", "name", "of", "rooms", "with", "king", "or", "queen", "bed", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "room" ], [ "with" ], [ "king" ], [ "or" ], [ "queen" ], [ "bed" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "with", "IN" ], [ "king", "NN" ], [ "or", "CC" ], [ "queen", "JJ" ], [ "bed", "NN" ], [ ".", "." ] ], "values": [ "QUEEN", "King", "Queen" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(1) Filter(2) A(0) C(4) T(0) V(1) Filter(2) A(0) C(4) T(0) V(2)" }, { "db_id": "inn_1", "query": "SELECT roomName FROM Rooms WHERE bedType = \"King\" OR bedType = \"Queen\";", "query_toks": [ "SELECT", "roomName", "FROM", "Rooms", "WHERE", "bedType", "=", "``", "King", "''", "OR", "bedType", "=", "``", "Queen", "''", ";" ], "query_toks_no_value": [ "select", "roomname", "from", "rooms", "where", "bedtype", "=", "value", "or", "bedtype", "=", "value" ], "question": "What are the names of rooms that have either king or queen bed?", "question_toks": [ "what", "are", "name", "of", "room", "that", "have", "either", "king", "or", "queen", "bed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"King\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Queen\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "rooms", "that", "have", "either", "king", "or", "queen", "bed", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "room" ], [ "that" ], [ "have" ], [ "either" ], [ "king" ], [ "or" ], [ "queen" ], [ "bed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "either", "DT" ], [ "king", "NN" ], [ "or", "CC" ], [ "queen", "VB" ], [ "bed", "VBN" ], [ "?", "." ] ], "values": [ "QUEEN", "King", "Queen" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(1) Filter(2) A(0) C(4) T(0) V(1) Filter(2) A(0) C(4) T(0) V(2)" }, { "db_id": "inn_1", "query": "SELECT count(DISTINCT bedType) FROM Rooms;", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "bedType", ")", "FROM", "Rooms", ";" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "bedtype", ")", "from", "rooms" ], "question": "How many different types of beds are there?", "question_toks": [ "how", "many", "different", "type", "of", "bed", "are", "there", "?" ], "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": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "How", "many", "different", "types", "of", "beds", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "type" ], [ "of" ], [ "bed" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "bed", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [ "BERS" ], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(4) T(0)" }, { "db_id": "inn_1", "query": "SELECT count(DISTINCT bedType) FROM Rooms;", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "bedType", ")", "FROM", "Rooms", ";" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "bedtype", ")", "from", "rooms" ], "question": "Find the number of distinct bed types available in this inn.", "question_toks": [ "find", "number", "of", "distinct", "bed", "type", "available", "in", "this", "inn", "." ], "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": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "number", "of", "distinct", "bed", "types", "available", "in", "this", "inn", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "distinct" ], [ "bed", "type" ], [ "available" ], [ "in" ], [ "this" ], [ "inn" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "bed", "NN" ], [ "type", "NN" ], [ "available", "JJ" ], [ "in", "IN" ], [ "this", "DT" ], [ "inn", "NN" ], [ ".", "." ] ], "values": [ "NUMBERS" ], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(4) T(0)" }, { "db_id": "inn_1", "query": "SELECT RoomId , roomName FROM Rooms ORDER BY basePrice DESC LIMIT 3;", "query_toks": [ "SELECT", "RoomId", ",", "roomName", "FROM", "Rooms", "ORDER", "BY", "basePrice", "DESC", "LIMIT", "3", ";" ], "query_toks_no_value": [ "select", "roomid", ",", "roomname", "from", "rooms", "order", "by", "baseprice", "desc", "limit", "value" ], "question": "Find the name and id of the top 3 expensive rooms.", "question_toks": [ "find", "name", "and", "id", "of", "top", "3", "expensive", "room", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "name", "and", "id", "of", "the", "top", "3", "expensive", "rooms", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "top" ], [ "3" ], [ "expensive" ], [ "room" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "top", "JJ" ], [ "3", "CD" ], [ "expensive", "JJ" ], [ "room", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Sup(0) A(0) C(6) T(0)" }, { "db_id": "inn_1", "query": "SELECT RoomId , roomName FROM Rooms ORDER BY basePrice DESC LIMIT 3;", "query_toks": [ "SELECT", "RoomId", ",", "roomName", "FROM", "Rooms", "ORDER", "BY", "basePrice", "DESC", "LIMIT", "3", ";" ], "query_toks_no_value": [ "select", "roomid", ",", "roomname", "from", "rooms", "order", "by", "baseprice", "desc", "limit", "value" ], "question": "What are the name and id of the three highest priced rooms?", "question_toks": [ "what", "are", "name", "and", "id", "of", "three", "highest", "priced", "room", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "id", "of", "the", "three", "highest", "priced", "rooms", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "three" ], [ "highest" ], [ "priced" ], [ "room" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "three", "CD" ], [ "highest", "JJS" ], [ "priced", "VBN" ], [ "room", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Sup(0) A(0) C(6) T(0)" }, { "db_id": "inn_1", "query": "SELECT roomName FROM Rooms WHERE basePrice > ( SELECT avg(basePrice) FROM Rooms );", "query_toks": [ "SELECT", "roomName", "FROM", "Rooms", "WHERE", "basePrice", ">", "(", "SELECT", "avg", "(", "basePrice", ")", "FROM", "Rooms", ")", ";" ], "query_toks_no_value": [ "select", "roomname", "from", "rooms", "where", "baseprice", ">", "(", "select", "avg", "(", "baseprice", ")", "from", "rooms", ")" ], "question": "Find the name of rooms whose price is higher than the average price.", "question_toks": [ "find", "name", "of", "room", "whose", "price", "is", "higher", "than", "average", "price", "." ], "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, 6, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "name", "of", "rooms", "whose", "price", "is", "higher", "than", "the", "average", "price", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "room" ], [ "whose" ], [ "price" ], [ "is" ], [ "higher" ], [ "than" ], [ "average" ], [ "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "whose", "WP$" ], [ "price", "NN" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "price", "NN" ], [ ".", "." ] ], "values": [ "PRINCE" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(13) A(0) C(6) T(0) Root(5) Sel(0) N(0) A(5) C(6) T(0)" }, { "db_id": "inn_1", "query": "SELECT roomName FROM Rooms WHERE basePrice > ( SELECT avg(basePrice) FROM Rooms );", "query_toks": [ "SELECT", "roomName", "FROM", "Rooms", "WHERE", "basePrice", ">", "(", "SELECT", "avg", "(", "basePrice", ")", "FROM", "Rooms", ")", ";" ], "query_toks_no_value": [ "select", "roomname", "from", "rooms", "where", "baseprice", ">", "(", "select", "avg", "(", "baseprice", ")", "from", "rooms", ")" ], "question": "What are the name of rooms that cost more than the average.", "question_toks": [ "what", "are", "name", "of", "room", "that", "cost", "more", "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "name", "of", "rooms", "that", "cost", "more", "than", "the", "average", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "room" ], [ "that" ], [ "cost" ], [ "more" ], [ "than" ], [ "average" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "that", "IN" ], [ "cost", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(13) A(0) C(6) T(0) Root(5) Sel(0) N(0) A(5) C(6) T(0)" }, { "db_id": "inn_1", "query": "SELECT count(*) FROM rooms WHERE roomid NOT IN (SELECT DISTINCT room FROM reservations)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "rooms", "WHERE", "roomid", "NOT", "IN", "(", "SELECT", "DISTINCT", "room", "FROM", "reservations", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "rooms", "where", "roomid", "not", "in", "(", "select", "distinct", "room", "from", "reservations", ")" ], "question": "Find the number of rooms that do not have any reservation.", "question_toks": [ "find", "number", "of", "room", "that", "do", "not", "have", "any", "reservation", "." ], "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": [ true, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "number", "of", "rooms", "that", "do", "not", "have", "any", "reservation", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "room" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "reservation" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "reservation", "NN" ], [ ".", "." ] ], "values": [ "NUMBERS" ], "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(1) N(0) A(0) C(9) T(1)" }, { "db_id": "inn_1", "query": "SELECT count(*) FROM rooms WHERE roomid NOT IN (SELECT DISTINCT room FROM reservations)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "rooms", "WHERE", "roomid", "NOT", "IN", "(", "SELECT", "DISTINCT", "room", "FROM", "reservations", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "rooms", "where", "roomid", "not", "in", "(", "select", "distinct", "room", "from", "reservations", ")" ], "question": "How many rooms have not had any reservation yet?", "question_toks": [ "how", "many", "room", "have", "not", "had", "any", "reservation", "yet", "?" ], "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": [ true, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "How", "many", "rooms", "have", "not", "had", "any", "reservation", "yet", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "room" ], [ "have" ], [ "not" ], [ "had" ], [ "any" ], [ "reservation" ], [ "yet" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "room", "NN" ], [ "have", "VBP" ], [ "not", "RB" ], [ "had", "VBN" ], [ "any", "DT" ], [ "reservation", "NN" ], [ "yet", "RB" ], [ "?", "." ] ], "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(1) N(0) A(0) C(9) T(1)" }, { "db_id": "inn_1", "query": "SELECT T2.roomName , count(*) , T1.Room FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room", "query_toks": [ "SELECT", "T2.roomName", ",", "count", "(", "*", ")", ",", "T1.Room", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "GROUP", "BY", "T1.Room" ], "query_toks_no_value": [ "select", "t2", ".", "roomname", ",", "count", "(", "*", ")", ",", "t1", ".", "room", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "group", "by", "t1", ".", "room" ], "question": "Return the name and number of reservations made for each of the rooms.", "question_toks": [ "return", "name", "and", "number", "of", "reservation", "made", "for", "each", "of", "room", "." ], "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 ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Return", "the", "name", "and", "number", "of", "reservations", "made", "for", "each", "of", "the", "rooms", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "reservation" ], [ "made" ], [ "for" ], [ "each" ], [ "of" ], [ "room" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "reservation", "NN" ], [ "made", "VBN" ], [ "for", "IN" ], [ "each", "DT" ], [ "of", "IN" ], [ "room", "NN" ], [ ".", "." ] ], "values": [ "NUMBERS" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(3) C(0) T(1) A(0) C(9) T(1)" }, { "db_id": "inn_1", "query": "SELECT T2.roomName , count(*) , T1.Room FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room", "query_toks": [ "SELECT", "T2.roomName", ",", "count", "(", "*", ")", ",", "T1.Room", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "GROUP", "BY", "T1.Room" ], "query_toks_no_value": [ "select", "t2", ".", "roomname", ",", "count", "(", "*", ")", ",", "t1", ".", "room", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "group", "by", "t1", ".", "room" ], "question": "For each room, find its name and the number of times reservations were made for it.", "question_toks": [ "for", "each", "room", ",", "find", "it", "name", "and", "number", "of", "time", "reservation", "were", "made", "for", "it", "." ], "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 ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "For", "each", "room", ",", "find", "its", "name", "and", "the", "number", "of", "times", "reservations", "were", "made", "for", "it", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "room" ], [ "," ], [ "find" ], [ "it" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "time" ], [ "reservation" ], [ "were" ], [ "made" ], [ "for" ], [ "it" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "room", "NN" ], [ ",", "," ], [ "find", "VB" ], [ "it", "PRP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "reservation", "NN" ], [ "were", "VBD" ], [ "made", "VBN" ], [ "for", "IN" ], [ "it", "PRP" ], [ ".", "." ] ], "values": [ "NUMBERS" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(3) C(0) T(1) A(0) C(9) T(1)" }, { "db_id": "inn_1", "query": "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room HAVING count(*) > 60", "query_toks": [ "SELECT", "T2.roomName", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "GROUP", "BY", "T1.Room", "HAVING", "count", "(", "*", ")", ">", "60" ], "query_toks_no_value": [ "select", "t2", ".", "roomname", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "group", "by", "t1", ".", "room", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the names of rooms that have been reserved for more than 60 times.", "question_toks": [ "find", "name", "of", "room", "that", "have", "been", "reserved", "for", "more", "than", "60", "time", "." ], "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": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 60.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, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "names", "of", "rooms", "that", "have", "been", "reserved", "for", "more", "than", "60", "times", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "room" ], [ "that" ], [ "have" ], [ "been" ], [ "reserved" ], [ "for" ], [ "more" ], [ "than" ], [ "60" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "reserved", "VBN" ], [ "for", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "60", "CD" ], [ "time", "NN" ], [ ".", "." ] ], "values": [ "60" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(9) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "inn_1", "query": "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room HAVING count(*) > 60", "query_toks": [ "SELECT", "T2.roomName", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "GROUP", "BY", "T1.Room", "HAVING", "count", "(", "*", ")", ">", "60" ], "query_toks_no_value": [ "select", "t2", ".", "roomname", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "group", "by", "t1", ".", "room", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the names of rooms whose reservation frequency exceeds 60 times?", "question_toks": [ "what", "are", "name", "of", "room", "whose", "reservation", "frequency", "exceeds", "60", "time", "?" ], "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": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 60.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, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "rooms", "whose", "reservation", "frequency", "exceeds", "60", "times", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "room" ], [ "whose" ], [ "reservation" ], [ "frequency" ], [ "exceeds" ], [ "60" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "whose", "WP$" ], [ "reservation", "NN" ], [ "frequency", "NN" ], [ "exceeds", "VBZ" ], [ "60", "CD" ], [ "time", "NN" ], [ "?", "." ] ], "values": [ "60" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(9) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "inn_1", "query": "SELECT roomname FROM rooms WHERE baseprice BETWEEN 120 AND 150", "query_toks": [ "SELECT", "roomname", "FROM", "rooms", "WHERE", "baseprice", "BETWEEN", "120", "AND", "150" ], "query_toks_no_value": [ "select", "roomname", "from", "rooms", "where", "baseprice", "between", "value", "and", "value" ], "question": "Find the name of rooms whose base price is between 120 and 150.", "question_toks": [ "find", "name", "of", "room", "whose", "base", "price", "is", "between", "120", "and", "150", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 6, false ], null ], 120.0, 150.0 ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "name", "of", "rooms", "whose", "base", "price", "is", "between", "120", "and", "150", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "room" ], [ "whose" ], [ "base", "price" ], [ "is" ], [ "between" ], [ "120" ], [ "and" ], [ "150" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "whose", "WP$" ], [ "base", "JJ" ], [ "price", "NN" ], [ "is", "VBZ" ], [ "between", "IN" ], [ "120", "CD" ], [ "and", "CC" ], [ "150", "CD" ], [ ".", "." ] ], "values": [ "PRINCE", "150", "BOSE", "120" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(8) A(0) C(6) T(0) V(3) V(1)" }, { "db_id": "inn_1", "query": "SELECT roomname FROM rooms WHERE baseprice BETWEEN 120 AND 150", "query_toks": [ "SELECT", "roomname", "FROM", "rooms", "WHERE", "baseprice", "BETWEEN", "120", "AND", "150" ], "query_toks_no_value": [ "select", "roomname", "from", "rooms", "where", "baseprice", "between", "value", "and", "value" ], "question": "Which rooms cost between 120 and 150? Give me the room names.", "question_toks": [ "which", "room", "cost", "between", "120", "and", "150", "?", "give", "me", "room", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 6, false ], null ], 120.0, 150.0 ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Which", "rooms", "cost", "between", "120", "and", "150", "?", "Give", "me", "the", "room", "names", "." ], "question_arg": [ [ "which" ], [ "room" ], [ "cost" ], [ "between" ], [ "120" ], [ "and" ], [ "150" ], [ "?" ], [ "give" ], [ "me" ], [ "room", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "room", "NN" ], [ "cost", "NN" ], [ "between", "IN" ], [ "120", "CD" ], [ "and", "CC" ], [ "150", "CD" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "room", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "150", "120" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(8) A(0) C(6) T(0) V(1) V(0)" }, { "db_id": "inn_1", "query": "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE firstname LIKE '%ROY%'", "query_toks": [ "SELECT", "T2.roomName", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "WHERE", "firstname", "LIKE", "'", "%", "ROY", "%", "'" ], "query_toks_no_value": [ "select", "t2", ".", "roomname", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "where", "firstname", "like", "value" ], "question": "Find the name of rooms booked by some customers whose first name contains ROY.", "question_toks": [ "find", "name", "of", "room", "booked", "by", "some", "customer", "whose", "first", "name", "contains", "roy", "." ], "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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 14, false ], null ], "\"%ROY%\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "Find", "the", "name", "of", "rooms", "booked", "by", "some", "customers", "whose", "first", "name", "contains", "ROY", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "room" ], [ "booked" ], [ "by" ], [ "some" ], [ "customer" ], [ "whose" ], [ "first", "name" ], [ "contains" ], [ "roy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "booked", "VBN" ], [ "by", "IN" ], [ "some", "DT" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "roy", "NN" ], [ ".", "." ] ], "values": [ "1", "ROY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(9) A(0) C(14) T(1) V(1)" }, { "db_id": "inn_1", "query": "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE firstname LIKE '%ROY%'", "query_toks": [ "SELECT", "T2.roomName", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "WHERE", "firstname", "LIKE", "'", "%", "ROY", "%", "'" ], "query_toks_no_value": [ "select", "t2", ".", "roomname", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "where", "firstname", "like", "value" ], "question": "What are the name of rooms booked by customers whose first name has \"ROY\" in part?", "question_toks": [ "what", "are", "name", "of", "room", "booked", "by", "customer", "whose", "first", "name", "ha", "'", "roy", "'", "in", "part", "?" ], "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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 14, false ], null ], "\"%ROY%\"", null ] ] }, "names": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "table_names": [ "rooms", "reservations" ], "col_set": [ "*", "room id", "room name", "beds", "bed type", "max occupancy", "base price", "decor", "code", "room", "check in", "check out", "rate", "last name", "first name", "adults", "kids" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "name", "of", "rooms", "booked", "by", "customers", "whose", "first", "name", "has", "``", "ROY", "''", "in", "part", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "room" ], [ "booked" ], [ "by" ], [ "customer" ], [ "whose" ], [ "first", "name" ], [ "ha" ], [ "'" ], [ "roy" ], [ "'" ], [ "in" ], [ "part" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "booked", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "ha", "NN" ], [ "'", "''" ], [ "roy", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "part", "NN" ], [ "?", "." ] ], "values": [ "1", "ROY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(9) A(0) C(14) T(1) V(1)" }, { "db_id": "local_govt_mdm", "query": "SELECT T1.cmi_details FROM Customer_Master_Index AS T1 JOIN CMI_Cross_References AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T2.source_system_code = 'Tax'", "query_toks": [ "SELECT", "T1.cmi_details", "FROM", "Customer_Master_Index", "AS", "T1", "JOIN", "CMI_Cross_References", "AS", "T2", "ON", "T1.master_customer_id", "=", "T2.master_customer_id", "WHERE", "T2.source_system_code", "=", "'Tax", "'" ], "query_toks_no_value": [ "select", "t1", ".", "cmi_details", "from", "customer_master_index", "as", "t1", "join", "cmi_cross_references", "as", "t2", "on", "t1", ".", "master_customer_id", "=", "t2", ".", "master_customer_id", "where", "t2", ".", "source_system_code", "=", "value" ], "question": "what are the details of the cmi masters that have the cross reference code 'Tax'?", "question_toks": [ "what", "are", "detail", "of", "cmi", "master", "that", "have", "cross", "reference", "code", "'", "tax", "'", "?" ], "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": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Tax\"", null ] ] }, "names": [ "*", "master customer id", "cmi details", "cmi cross reference id", "master customer id", "source system code", "council tax id", "cmi cross reference id", "business rates id", "cmi cross reference id", "council tax id", "cmi cross ref id", "council tax id", "cmi cross reference id", "council tax id", "cmi cross reference id", "electoral register id", "cmi cross reference id" ], "table_names": [ "customer master index", "cmi cross references", "council tax", "business rates", "benefits overpayments", "parking fines", "rent arrears", "electoral register" ], "col_set": [ "*", "master customer id", "cmi details", "cmi cross reference id", "source system code", "council tax id", "business rates id", "cmi cross ref id", "electoral register id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 ], "keys": { "4": 1, "1": 1, "7": 3, "3": 3, "9": 3, "11": 3, "13": 3, "15": 3, "17": 3, "6": 6, "8": 8, "10": 10, "12": 12, "14": 14, "16": 16 }, "origin_question_toks": [ "what", "are", "the", "details", "of", "the", "cmi", "masters", "that", "have", "the", "cross", "reference", "code", "'Tax", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "of" ], [ "cmi" ], [ "master" ], [ "that" ], [ "have" ], [ "cross" ], [ "reference" ], [ "code" ], [ "'" ], [ "tax" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "NN" ], [ "of", "IN" ], [ "cmi", "NN" ], [ "master", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "cross", "VBN" ], [ "reference", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "tax", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Tax" ], "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": "local_govt_mdm", "query": "SELECT T1.cmi_cross_ref_id , T1.source_system_code FROM CMI_Cross_References AS T1 JOIN Council_Tax AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id GROUP BY T1.cmi_cross_ref_id HAVING count(*) >= 1", "query_toks": [ "SELECT", "T1.cmi_cross_ref_id", ",", "T1.source_system_code", "FROM", "CMI_Cross_References", "AS", "T1", "JOIN", "Council_Tax", "AS", "T2", "ON", "T1.cmi_cross_ref_id", "=", "T2.cmi_cross_ref_id", "GROUP", "BY", "T1.cmi_cross_ref_id", "HAVING", "count", "(", "*", ")", ">", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "cmi_cross_ref_id", ",", "t1", ".", "source_system_code", "from", "cmi_cross_references", "as", "t1", "join", "council_tax", "as", "t2", "on", "t1", ".", "cmi_cross_ref_id", "=", "t2", ".", "cmi_cross_ref_id", "group", "by", "t1", ".", "cmi_cross_ref_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What is the cmi cross reference id that is related to at least one council tax entry? List the cross reference id and source system code.", "question_toks": [ "what", "is", "cmi", "cross", "reference", "id", "that", "is", "related", "to", "at", "least", "one", "council", "tax", "entry", "?", "list", "cross", "reference", "id", "and", "source", "system", "code", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "master customer id", "cmi details", "cmi cross reference id", "master customer id", "source system code", "council tax id", "cmi cross reference id", "business rates id", "cmi cross reference id", "council tax id", "cmi cross ref id", "council tax id", "cmi cross reference id", "council tax id", "cmi cross reference id", "electoral register id", "cmi cross reference id" ], "table_names": [ "customer master index", "cmi cross references", "council tax", "business rates", "benefits overpayments", "parking fines", "rent arrears", "electoral register" ], "col_set": [ "*", "master customer id", "cmi details", "cmi cross reference id", "source system code", "council tax id", "business rates id", "cmi cross ref id", "electoral register id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 ], "keys": { "4": 1, "1": 1, "7": 3, "3": 3, "9": 3, "11": 3, "13": 3, "15": 3, "17": 3, "6": 6, "8": 8, "10": 10, "12": 12, "14": 14, "16": 16 }, "origin_question_toks": [ "What", "is", "the", "cmi", "cross", "reference", "id", "that", "is", "related", "to", "at", "least", "one", "council", "tax", "entry", "?", "List", "the", "cross", "reference", "id", "and", "source", "system", "code", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "cmi", "cross", "reference", "id" ], [ "that" ], [ "is" ], [ "related" ], [ "to" ], [ "at" ], [ "least" ], [ "one" ], [ "council", "tax" ], [ "entry" ], [ "?" ], [ "list" ], [ "cross" ], [ "reference" ], [ "id" ], [ "and" ], [ "source", "system", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "cmi", "JJ" ], [ "cross", "JJ" ], [ "reference", "NN" ], [ "id", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "related", "VBN" ], [ "to", "TO" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "council", "NN" ], [ "tax", "NN" ], [ "entry", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "cross", "NN" ], [ "reference", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "source", "NN" ], [ "system", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [ "1", "Tax" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(0) C(4) T(1) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "local_govt_mdm", "query": "SELECT T2.cmi_cross_ref_id , T2.master_customer_id , count(*) FROM Business_Rates AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id GROUP BY T2.cmi_cross_ref_id", "query_toks": [ "SELECT", "T2.cmi_cross_ref_id", ",", "T2.master_customer_id", ",", "count", "(", "*", ")", "FROM", "Business_Rates", "AS", "T1", "JOIN", "CMI_Cross_References", "AS", "T2", "ON", "T1.cmi_cross_ref_id", "=", "T2.cmi_cross_ref_id", "GROUP", "BY", "T2.cmi_cross_ref_id" ], "query_toks_no_value": [ "select", "t2", ".", "cmi_cross_ref_id", ",", "t2", ".", "master_customer_id", ",", "count", "(", "*", ")", "from", "business_rates", "as", "t1", "join", "cmi_cross_references", "as", "t2", "on", "t1", ".", "cmi_cross_ref_id", "=", "t2", ".", "cmi_cross_ref_id", "group", "by", "t2", ".", "cmi_cross_ref_id" ], "question": "How many business rates are related to each cmi cross reference? List cross reference id, master customer id and the n", "question_toks": [ "how", "many", "business", "rate", "are", "related", "to", "each", "cmi", "cross", "reference", "?", "list", "cross", "reference", "id", ",", "master", "customer", "id", "and", "n" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "master customer id", "cmi details", "cmi cross reference id", "master customer id", "source system code", "council tax id", "cmi cross reference id", "business rates id", "cmi cross reference id", "council tax id", "cmi cross ref id", "council tax id", "cmi cross reference id", "council tax id", "cmi cross reference id", "electoral register id", "cmi cross reference id" ], "table_names": [ "customer master index", "cmi cross references", "council tax", "business rates", "benefits overpayments", "parking fines", "rent arrears", "electoral register" ], "col_set": [ "*", "master customer id", "cmi details", "cmi cross reference id", "source system code", "council tax id", "business rates id", "cmi cross ref id", "electoral register id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 ], "keys": { "4": 1, "1": 1, "7": 3, "3": 3, "9": 3, "11": 3, "13": 3, "15": 3, "17": 3, "6": 6, "8": 8, "10": 10, "12": 12, "14": 14, "16": 16 }, "origin_question_toks": [ "How", "many", "business", "rates", "are", "related", "to", "each", "cmi", "cross", "reference", "?", "List", "cross", "reference", "id", ",", "master", "customer", "id", "and", "the", "n" ], "question_arg": [ [ "how" ], [ "many" ], [ "business", "rate" ], [ "are" ], [ "related" ], [ "to" ], [ "each" ], [ "cmi", "cross", "reference" ], [ "?" ], [ "list" ], [ "cross" ], [ "reference" ], [ "id" ], [ "," ], [ "master", "customer", "id" ], [ "and" ], [ "n" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "business", "NN" ], [ "rate", "NN" ], [ "are", "VBP" ], [ "related", "VBN" ], [ "to", "TO" ], [ "each", "DT" ], [ "cmi", "NN" ], [ "cross", "NN" ], [ "reference", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "cross", "NN" ], [ "reference", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "master", "NN" ], [ "customer", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "n", "NN" ] ], "values": [ "Business" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(3) T(1) A(0) C(1) T(1) A(3) C(0) T(3)" }, { "db_id": "local_govt_mdm", "query": "SELECT T1.source_system_code , T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Benefits_Overpayments AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id ORDER BY T2.council_tax_id", "query_toks": [ "SELECT", "T1.source_system_code", ",", "T2.council_tax_id", "FROM", "CMI_Cross_References", "AS", "T1", "JOIN", "Benefits_Overpayments", "AS", "T2", "ON", "T1.cmi_cross_ref_id", "=", "T2.cmi_cross_ref_id", "ORDER", "BY", "T2.council_tax_id" ], "query_toks_no_value": [ "select", "t1", ".", "source_system_code", ",", "t2", ".", "council_tax_id", "from", "cmi_cross_references", "as", "t1", "join", "benefits_overpayments", "as", "t2", "on", "t1", ".", "cmi_cross_ref_id", "=", "t2", ".", "cmi_cross_ref_id", "order", "by", "t2", ".", "council_tax_id" ], "question": "What is the tax source system code related to the benefits and overpayments? List the code and the benifit id, order by benifit id.", "question_toks": [ "what", "is", "tax", "source", "system", "code", "related", "to", "benefit", "and", "overpayment", "?", "list", "code", "and", "benifit", "id", ",", "order", "by", "benifit", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "master customer id", "cmi details", "cmi cross reference id", "master customer id", "source system code", "council tax id", "cmi cross reference id", "business rates id", "cmi cross reference id", "council tax id", "cmi cross ref id", "council tax id", "cmi cross reference id", "council tax id", "cmi cross reference id", "electoral register id", "cmi cross reference id" ], "table_names": [ "customer master index", "cmi cross references", "council tax", "business rates", "benefits overpayments", "parking fines", "rent arrears", "electoral register" ], "col_set": [ "*", "master customer id", "cmi details", "cmi cross reference id", "source system code", "council tax id", "business rates id", "cmi cross ref id", "electoral register id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 ], "keys": { "4": 1, "1": 1, "7": 3, "3": 3, "9": 3, "11": 3, "13": 3, "15": 3, "17": 3, "6": 6, "8": 8, "10": 10, "12": 12, "14": 14, "16": 16 }, "origin_question_toks": [ "What", "is", "the", "tax", "source", "system", "code", "related", "to", "the", "benefits", "and", "overpayments", "?", "List", "the", "code", "and", "the", "benifit", "id", ",", "order", "by", "benifit", "id", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "tax" ], [ "source", "system", "code" ], [ "related" ], [ "to" ], [ "benefit" ], [ "and" ], [ "overpayment" ], [ "?" ], [ "list" ], [ "code" ], [ "and" ], [ "benifit" ], [ "id" ], [ "," ], [ "order" ], [ "by" ], [ "benifit" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "tax", "NN" ], [ "source", "NN" ], [ "system", "NN" ], [ "code", "NN" ], [ "related", "VBN" ], [ "to", "TO" ], [ "benefit", "VB" ], [ "and", "CC" ], [ "overpayment", "VB" ], [ "?", "." ], [ "list", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "benifit", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "order", "NN" ], [ "by", "IN" ], [ "benifit", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "Tax", "Benefits" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(4) T(1) A(0) C(5) T(4) Order(1) A(0) C(5) T(4)" }, { "db_id": "local_govt_mdm", "query": "SELECT T1.source_system_code , T1.master_customer_id , T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Parking_Fines AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id", "query_toks": [ "SELECT", "T1.source_system_code", ",", "T1.master_customer_id", ",", "T2.council_tax_id", "FROM", "CMI_Cross_References", "AS", "T1", "JOIN", "Parking_Fines", "AS", "T2", "ON", "T1.cmi_cross_ref_id", "=", "T2.cmi_cross_ref_id" ], "query_toks_no_value": [ "select", "t1", ".", "source_system_code", ",", "t1", ".", "master_customer_id", ",", "t2", ".", "council_tax_id", "from", "cmi_cross_references", "as", "t1", "join", "parking_fines", "as", "t2", "on", "t1", ".", "cmi_cross_ref_id", "=", "t2", ".", "cmi_cross_ref_id" ], "question": "Wat is the tax source system code and master customer id of the taxes related to each parking fine id?", "question_toks": [ "wat", "is", "tax", "source", "system", "code", "and", "master", "customer", "id", "of", "tax", "related", "to", "each", "parking", "fine", "id", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "master customer id", "cmi details", "cmi cross reference id", "master customer id", "source system code", "council tax id", "cmi cross reference id", "business rates id", "cmi cross reference id", "council tax id", "cmi cross ref id", "council tax id", "cmi cross reference id", "council tax id", "cmi cross reference id", "electoral register id", "cmi cross reference id" ], "table_names": [ "customer master index", "cmi cross references", "council tax", "business rates", "benefits overpayments", "parking fines", "rent arrears", "electoral register" ], "col_set": [ "*", "master customer id", "cmi details", "cmi cross reference id", "source system code", "council tax id", "business rates id", "cmi cross ref id", "electoral register id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 ], "keys": { "4": 1, "1": 1, "7": 3, "3": 3, "9": 3, "11": 3, "13": 3, "15": 3, "17": 3, "6": 6, "8": 8, "10": 10, "12": 12, "14": 14, "16": 16 }, "origin_question_toks": [ "Wat", "is", "the", "tax", "source", "system", "code", "and", "master", "customer", "id", "of", "the", "taxes", "related", "to", "each", "parking", "fine", "id", "?" ], "question_arg": [ [ "wat" ], [ "is" ], [ "tax" ], [ "source", "system", "code" ], [ "and" ], [ "master", "customer", "id" ], [ "of" ], [ "tax" ], [ "related" ], [ "to" ], [ "each" ], [ "parking", "fine" ], [ "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "wat", "NN" ], [ "is", "VBZ" ], [ "tax", "NN" ], [ "source", "NN" ], [ "system", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "master", "NN" ], [ "customer", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "tax", "NN" ], [ "related", "VBN" ], [ "to", "TO" ], [ "each", "DT" ], [ "parking", "VBG" ], [ "fine", "JJ" ], [ "id", "NN" ], [ "?", "." ] ], "values": [ "Tax", "Parking" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(4) T(1) A(0) C(1) T(1) A(0) C(5) T(5)" }, { "db_id": "local_govt_mdm", "query": "SELECT T1.council_tax_id FROM Rent_Arrears AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id JOIN Customer_Master_Index AS T3 ON T3.master_customer_id = T2.master_customer_id WHERE T3.cmi_details != 'Schmidt , Kertzmann and Lubowitz'", "query_toks": [ "SELECT", "T1.council_tax_id", "FROM", "Rent_Arrears", "AS", "T1", "JOIN", "CMI_Cross_References", "AS", "T2", "ON", "T1.cmi_cross_ref_id", "=", "T2.cmi_cross_ref_id", "JOIN", "Customer_Master_Index", "AS", "T3", "ON", "T3.master_customer_id", "=", "T2.master_customer_id", "WHERE", "T3.cmi_details", "!", "=", "'Schmidt", ",", "Kertzmann", "and", "Lubowitz", "'" ], "query_toks_no_value": [ "select", "t1", ".", "council_tax_id", "from", "rent_arrears", "as", "t1", "join", "cmi_cross_references", "as", "t2", "on", "t1", ".", "cmi_cross_ref_id", "=", "t2", ".", "cmi_cross_ref_id", "join", "customer_master_index", "as", "t3", "on", "t3", ".", "master_customer_id", "=", "t2", ".", "master_customer_id", "where", "t3", ".", "cmi_details", "!", "=", "value" ], "question": "What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'?", "question_toks": [ "what", "are", "renting", "arrears", "tax", "id", "related", "to", "customer", "master", "index", "whose", "detail", "is", "not", "'", "schmidt", ",", "kertzmann", "and", "lubowitz", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 7, [ 0, [ 0, 2, false ], null ], "\"Schmidt , Kertzmann and Lubowitz\"", null ] ] }, "names": [ "*", "master customer id", "cmi details", "cmi cross reference id", "master customer id", "source system code", "council tax id", "cmi cross reference id", "business rates id", "cmi cross reference id", "council tax id", "cmi cross ref id", "council tax id", "cmi cross reference id", "council tax id", "cmi cross reference id", "electoral register id", "cmi cross reference id" ], "table_names": [ "customer master index", "cmi cross references", "council tax", "business rates", "benefits overpayments", "parking fines", "rent arrears", "electoral register" ], "col_set": [ "*", "master customer id", "cmi details", "cmi cross reference id", "source system code", "council tax id", "business rates id", "cmi cross ref id", "electoral register id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 ], "keys": { "4": 1, "1": 1, "7": 3, "3": 3, "9": 3, "11": 3, "13": 3, "15": 3, "17": 3, "6": 6, "8": 8, "10": 10, "12": 12, "14": 14, "16": 16 }, "origin_question_toks": [ "What", "are", "the", "renting", "arrears", "tax", "ids", "related", "to", "the", "customer", "master", "index", "whose", "detail", "is", "not", "'Schmidt", ",", "Kertzmann", "and", "Lubowitz", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "renting" ], [ "arrears" ], [ "council", "tax", "id" ], [ "related" ], [ "to" ], [ "customer", "master", "index" ], [ "whose" ], [ "detail" ], [ "is" ], [ "not" ], [ "'" ], [ "schmidt" ], [ "," ], [ "kertzmann" ], [ "and" ], [ "lubowitz" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "renting", "VBG" ], [ "arrears", "NNS" ], [ "tax", "NN" ], [ "id", "NN" ], [ "related", "VBN" ], [ "to", "TO" ], [ "customer", "NN" ], [ "master", "NN" ], [ "index", "NN" ], [ "whose", "WP$" ], [ "detail", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "schmidt", "NN" ], [ ",", "," ], [ "kertzmann", "NN" ], [ "and", "CC" ], [ "lubowitz", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Tax", "Schmidt, Kertzmann and Lubowitz", "Schmidt , Kertzmann and Lubowitz" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(6) Filter(0) Filter(18) A(0) C(3) T(6) Root(5) Sel(0) N(0) A(0) C(3) T(1) Filter(3) A(0) C(2) T(0) V(2)" }, { "db_id": "local_govt_mdm", "query": "SELECT T1.electoral_register_id FROM Electoral_Register AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id WHERE T2.source_system_code = 'Electoral' OR T2.source_system_code = 'Tax'", "query_toks": [ "SELECT", "T1.electoral_register_id", "FROM", "Electoral_Register", "AS", "T1", "JOIN", "CMI_Cross_References", "AS", "T2", "ON", "T1.cmi_cross_ref_id", "=", "T2.cmi_cross_ref_id", "WHERE", "T2.source_system_code", "=", "'Electoral", "'", "OR", "T2.source_system_code", "=", "'Tax", "'" ], "query_toks_no_value": [ "select", "t1", ".", "electoral_register_id", "from", "electoral_register", "as", "t1", "join", "cmi_cross_references", "as", "t2", "on", "t1", ".", "cmi_cross_ref_id", "=", "t2", ".", "cmi_cross_ref_id", "where", "t2", ".", "source_system_code", "=", "value", "or", "t2", ".", "source_system_code", "=", "value" ], "question": "What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'?", "question_toks": [ "what", "are", "register", "id", "of", "electoral", "registry", "that", "have", "cross", "reference", "source", "system", "code", "'", "electoral", "'", "or", "'", "tax", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Electoral\"", null ], "or", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Tax\"", null ] ] }, "names": [ "*", "master customer id", "cmi details", "cmi cross reference id", "master customer id", "source system code", "council tax id", "cmi cross reference id", "business rates id", "cmi cross reference id", "council tax id", "cmi cross ref id", "council tax id", "cmi cross reference id", "council tax id", "cmi cross reference id", "electoral register id", "cmi cross reference id" ], "table_names": [ "customer master index", "cmi cross references", "council tax", "business rates", "benefits overpayments", "parking fines", "rent arrears", "electoral register" ], "col_set": [ "*", "master customer id", "cmi details", "cmi cross reference id", "source system code", "council tax id", "business rates id", "cmi cross ref id", "electoral register id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 ], "keys": { "4": 1, "1": 1, "7": 3, "3": 3, "9": 3, "11": 3, "13": 3, "15": 3, "17": 3, "6": 6, "8": 8, "10": 10, "12": 12, "14": 14, "16": 16 }, "origin_question_toks": [ "What", "are", "the", "register", "ids", "of", "electoral", "registries", "that", "have", "the", "cross", "reference", "source", "system", "code", "'Electoral", "'", "or", "'Tax", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "electoral", "register", "id" ], [ "of" ], [ "electoral" ], [ "registry" ], [ "that" ], [ "have" ], [ "cross" ], [ "reference" ], [ "source", "system", "code" ], [ "'" ], [ "electoral" ], [ "'" ], [ "or" ], [ "'" ], [ "tax" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "register", "JJ" ], [ "id", "NN" ], [ "of", "IN" ], [ "electoral", "JJ" ], [ "registry", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "cross", "VBN" ], [ "reference", "NN" ], [ "source", "NN" ], [ "system", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "electoral", "JJ" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "tax", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Tax", "Electoral" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(7) Filter(1) Filter(2) A(0) C(4) T(1) V(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "local_govt_mdm", "query": "SELECT count(DISTINCT source_system_code) FROM CMI_cross_references", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "source_system_code", ")", "FROM", "CMI_cross_references" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "source_system_code", ")", "from", "cmi_cross_references" ], "question": "How many different source system code for the cmi cross references are there?", "question_toks": [ "how", "many", "different", "source", "system", "code", "for", "cmi", "cross", "reference", "are", "there", "?" ], "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": [ "*", "master customer id", "cmi details", "cmi cross reference id", "master customer id", "source system code", "council tax id", "cmi cross reference id", "business rates id", "cmi cross reference id", "council tax id", "cmi cross ref id", "council tax id", "cmi cross reference id", "council tax id", "cmi cross reference id", "electoral register id", "cmi cross reference id" ], "table_names": [ "customer master index", "cmi cross references", "council tax", "business rates", "benefits overpayments", "parking fines", "rent arrears", "electoral register" ], "col_set": [ "*", "master customer id", "cmi details", "cmi cross reference id", "source system code", "council tax id", "business rates id", "cmi cross ref id", "electoral register id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 ], "keys": { "4": 1, "1": 1, "7": 3, "3": 3, "9": 3, "11": 3, "13": 3, "15": 3, "17": 3, "6": 6, "8": 8, "10": 10, "12": 12, "14": 14, "16": 16 }, "origin_question_toks": [ "How", "many", "different", "source", "system", "code", "for", "the", "cmi", "cross", "references", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "source", "system", "code" ], [ "for" ], [ "cmi", "cross", "reference" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "source", "NN" ], [ "system", "NN" ], [ "code", "NN" ], [ "for", "IN" ], [ "cmi", "NN" ], [ "cross", "NN" ], [ "reference", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(4) T(1)" }, { "db_id": "local_govt_mdm", "query": "SELECT * FROM customer_master_index ORDER BY cmi_details DESC", "query_toks": [ "SELECT", "*", "FROM", "customer_master_index", "ORDER", "BY", "cmi_details", "DESC" ], "query_toks_no_value": [ "select", "*", "from", "customer_master_index", "order", "by", "cmi_details", "desc" ], "question": "List all information about customer master index, and sort them by details in descending order.", "question_toks": [ "list", "all", "information", "about", "customer", "master", "index", ",", "and", "sort", "them", "by", "detail", "in", "descending", "order", "." ], "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, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "master customer id", "cmi details", "cmi cross reference id", "master customer id", "source system code", "council tax id", "cmi cross reference id", "business rates id", "cmi cross reference id", "council tax id", "cmi cross ref id", "council tax id", "cmi cross reference id", "council tax id", "cmi cross reference id", "electoral register id", "cmi cross reference id" ], "table_names": [ "customer master index", "cmi cross references", "council tax", "business rates", "benefits overpayments", "parking fines", "rent arrears", "electoral register" ], "col_set": [ "*", "master customer id", "cmi details", "cmi cross reference id", "source system code", "council tax id", "business rates id", "cmi cross ref id", "electoral register id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 ], "keys": { "4": 1, "1": 1, "7": 3, "3": 3, "9": 3, "11": 3, "13": 3, "15": 3, "17": 3, "6": 6, "8": 8, "10": 10, "12": 12, "14": 14, "16": 16 }, "origin_question_toks": [ "List", "all", "information", "about", "customer", "master", "index", ",", "and", "sort", "them", "by", "details", "in", "descending", "order", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "information" ], [ "about" ], [ "customer", "master", "index" ], [ "," ], [ "and" ], [ "sort" ], [ "them" ], [ "by" ], [ "detail" ], [ "in" ], [ "descending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "customer", "NN" ], [ "master", "NN" ], [ "index", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "sort", "VB" ], [ "them", "PRP" ], [ "by", "IN" ], [ "detail", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(0) T(0) Order(0) A(0) C(2) T(0)" }, { "db_id": "local_govt_mdm", "query": "SELECT council_tax_id , cmi_cross_ref_id FROM parking_fines", "query_toks": [ "SELECT", "council_tax_id", ",", "cmi_cross_ref_id", "FROM", "parking_fines" ], "query_toks_no_value": [ "select", "council_tax_id", ",", "cmi_cross_ref_id", "from", "parking_fines" ], "question": "List the council tax ids and their related cmi cross references of all the parking fines.", "question_toks": [ "list", "council", "tax", "id", "and", "their", "related", "cmi", "cross", "reference", "of", "all", "parking", "fine", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "master customer id", "cmi details", "cmi cross reference id", "master customer id", "source system code", "council tax id", "cmi cross reference id", "business rates id", "cmi cross reference id", "council tax id", "cmi cross ref id", "council tax id", "cmi cross reference id", "council tax id", "cmi cross reference id", "electoral register id", "cmi cross reference id" ], "table_names": [ "customer master index", "cmi cross references", "council tax", "business rates", "benefits overpayments", "parking fines", "rent arrears", "electoral register" ], "col_set": [ "*", "master customer id", "cmi details", "cmi cross reference id", "source system code", "council tax id", "business rates id", "cmi cross ref id", "electoral register id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 ], "keys": { "4": 1, "1": 1, "7": 3, "3": 3, "9": 3, "11": 3, "13": 3, "15": 3, "17": 3, "6": 6, "8": 8, "10": 10, "12": 12, "14": 14, "16": 16 }, "origin_question_toks": [ "List", "the", "council", "tax", "ids", "and", "their", "related", "cmi", "cross", "references", "of", "all", "the", "parking", "fines", "." ], "question_arg": [ [ "list" ], [ "council", "tax", "id" ], [ "and" ], [ "their" ], [ "related" ], [ "cmi", "cross", "reference" ], [ "of" ], [ "all" ], [ "parking", "fine" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "council", "NN" ], [ "tax", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "related", "JJ" ], [ "cmi", "NN" ], [ "cross", "NN" ], [ "reference", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "parking", "VBG" ], [ "fine", "NN" ], [ ".", "." ] ], "values": [ "Tax", "Parking" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(5) T(5) A(0) C(3) T(5)" }, { "db_id": "local_govt_mdm", "query": "SELECT count(*) FROM rent_arrears", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "rent_arrears" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "rent_arrears" ], "question": "How many council taxes are collected for renting arrears ?", "question_toks": [ "how", "many", "council", "tax", "are", "collected", "for", "renting", "arrears", "?" ], "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": [ "*", "master customer id", "cmi details", "cmi cross reference id", "master customer id", "source system code", "council tax id", "cmi cross reference id", "business rates id", "cmi cross reference id", "council tax id", "cmi cross ref id", "council tax id", "cmi cross reference id", "council tax id", "cmi cross reference id", "electoral register id", "cmi cross reference id" ], "table_names": [ "customer master index", "cmi cross references", "council tax", "business rates", "benefits overpayments", "parking fines", "rent arrears", "electoral register" ], "col_set": [ "*", "master customer id", "cmi details", "cmi cross reference id", "source system code", "council tax id", "business rates id", "cmi cross ref id", "electoral register id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 ], "keys": { "4": 1, "1": 1, "7": 3, "3": 3, "9": 3, "11": 3, "13": 3, "15": 3, "17": 3, "6": 6, "8": 8, "10": 10, "12": 12, "14": 14, "16": 16 }, "origin_question_toks": [ "How", "many", "council", "taxes", "are", "collected", "for", "renting", "arrears", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "council", "tax" ], [ "are" ], [ "collected" ], [ "for" ], [ "renting" ], [ "arrears" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "council", "NN" ], [ "tax", "NN" ], [ "are", "VBP" ], [ "collected", "VBN" ], [ "for", "IN" ], [ "renting", "VBG" ], [ "arrears", "NNS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(6)" }, { "db_id": "local_govt_mdm", "query": "SELECT DISTINCT T2.source_system_code FROM customer_master_index AS T1 JOIN cmi_cross_references AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T1.cmi_details = 'Gottlieb , Becker and Wyman'", "query_toks": [ "SELECT", "DISTINCT", "T2.source_system_code", "FROM", "customer_master_index", "AS", "T1", "JOIN", "cmi_cross_references", "AS", "T2", "ON", "T1.master_customer_id", "=", "T2.master_customer_id", "WHERE", "T1.cmi_details", "=", "'Gottlieb", ",", "Becker", "and", "Wyman", "'" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "source_system_code", "from", "customer_master_index", "as", "t1", "join", "cmi_cross_references", "as", "t2", "on", "t1", ".", "master_customer_id", "=", "t2", ".", "master_customer_id", "where", "t1", ".", "cmi_details", "=", "value" ], "question": "What are the distinct cross reference source system codes which are related to the master customer details 'Gottlieb, Becker and Wyman'?", "question_toks": [ "what", "are", "distinct", "cross", "reference", "source", "system", "code", "which", "are", "related", "to", "master", "customer", "detail", "'", "gottlieb", ",", "becker", "and", "wyman", "'", "?" ], "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": [], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Gottlieb , Becker and Wyman\"", null ] ] }, "names": [ "*", "master customer id", "cmi details", "cmi cross reference id", "master customer id", "source system code", "council tax id", "cmi cross reference id", "business rates id", "cmi cross reference id", "council tax id", "cmi cross ref id", "council tax id", "cmi cross reference id", "council tax id", "cmi cross reference id", "electoral register id", "cmi cross reference id" ], "table_names": [ "customer master index", "cmi cross references", "council tax", "business rates", "benefits overpayments", "parking fines", "rent arrears", "electoral register" ], "col_set": [ "*", "master customer id", "cmi details", "cmi cross reference id", "source system code", "council tax id", "business rates id", "cmi cross ref id", "electoral register id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 ], "keys": { "4": 1, "1": 1, "7": 3, "3": 3, "9": 3, "11": 3, "13": 3, "15": 3, "17": 3, "6": 6, "8": 8, "10": 10, "12": 12, "14": 14, "16": 16 }, "origin_question_toks": [ "What", "are", "the", "distinct", "cross", "reference", "source", "system", "codes", "which", "are", "related", "to", "the", "master", "customer", "details", "'Gottlieb", ",", "Becker", "and", "Wyman", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "cross" ], [ "reference" ], [ "source", "system", "code" ], [ "which" ], [ "are" ], [ "related" ], [ "to" ], [ "master", "customer", "id" ], [ "detail" ], [ "'" ], [ "gottlieb" ], [ "," ], [ "becker" ], [ "and" ], [ "wyman" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "cross", "JJ" ], [ "reference", "NN" ], [ "source", "NN" ], [ "system", "NN" ], [ "code", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "related", "VBN" ], [ "to", "TO" ], [ "master", "VB" ], [ "customer", "NN" ], [ "detail", "NN" ], [ "'", "''" ], [ "gottlieb", "NN" ], [ ",", "," ], [ "becker", "NN" ], [ "and", "CC" ], [ "wyman", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Gottlieb, Becker and Wyman", "Gottlieb , Becker and Wyman" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(4) T(1) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "local_govt_mdm", "query": "SELECT cmi_cross_ref_id FROM cmi_cross_references EXCEPT SELECT cmi_cross_ref_id FROM parking_fines", "query_toks": [ "SELECT", "cmi_cross_ref_id", "FROM", "cmi_cross_references", "EXCEPT", "SELECT", "cmi_cross_ref_id", "FROM", "parking_fines" ], "query_toks_no_value": [ "select", "cmi_cross_ref_id", "from", "cmi_cross_references", "except", "select", "cmi_cross_ref_id", "from", "parking_fines" ], "question": "Which cmi cross reference id is not related to any parking taxes?", "question_toks": [ "which", "cmi", "cross", "reference", "id", "is", "not", "related", "to", "any", "parking", "tax", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "master customer id", "cmi details", "cmi cross reference id", "master customer id", "source system code", "council tax id", "cmi cross reference id", "business rates id", "cmi cross reference id", "council tax id", "cmi cross ref id", "council tax id", "cmi cross reference id", "council tax id", "cmi cross reference id", "electoral register id", "cmi cross reference id" ], "table_names": [ "customer master index", "cmi cross references", "council tax", "business rates", "benefits overpayments", "parking fines", "rent arrears", "electoral register" ], "col_set": [ "*", "master customer id", "cmi details", "cmi cross reference id", "source system code", "council tax id", "business rates id", "cmi cross ref id", "electoral register id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 ], "keys": { "4": 1, "1": 1, "7": 3, "3": 3, "9": 3, "11": 3, "13": 3, "15": 3, "17": 3, "6": 6, "8": 8, "10": 10, "12": 12, "14": 14, "16": 16 }, "origin_question_toks": [ "Which", "cmi", "cross", "reference", "id", "is", "not", "related", "to", "any", "parking", "taxes", "?" ], "question_arg": [ [ "which" ], [ "cmi", "cross", "reference", "id" ], [ "is" ], [ "not" ], [ "related" ], [ "to" ], [ "any" ], [ "parking" ], [ "tax" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "cmi", "VBP" ], [ "cross", "NN" ], [ "reference", "NN" ], [ "id", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "related", "VBN" ], [ "to", "TO" ], [ "any", "DT" ], [ "parking", "VBG" ], [ "tax", "NN" ], [ "?", "." ] ], "values": [ "Parking" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(5)" }, { "db_id": "local_govt_mdm", "query": "SELECT DISTINCT source_system_code FROM cmi_cross_references WHERE source_system_code LIKE '%en%'", "query_toks": [ "SELECT", "DISTINCT", "source_system_code", "FROM", "cmi_cross_references", "WHERE", "source_system_code", "LIKE", "'", "%", "en", "%", "'" ], "query_toks_no_value": [ "select", "distinct", "source_system_code", "from", "cmi_cross_references", "where", "source_system_code", "like", "value" ], "question": "Which distinct source system code includes the substring 'en'?", "question_toks": [ "which", "distinct", "source", "system", "code", "includes", "substring", "'", "en", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 5, false ], null ], "\"%en%\"", null ] ] }, "names": [ "*", "master customer id", "cmi details", "cmi cross reference id", "master customer id", "source system code", "council tax id", "cmi cross reference id", "business rates id", "cmi cross reference id", "council tax id", "cmi cross ref id", "council tax id", "cmi cross reference id", "council tax id", "cmi cross reference id", "electoral register id", "cmi cross reference id" ], "table_names": [ "customer master index", "cmi cross references", "council tax", "business rates", "benefits overpayments", "parking fines", "rent arrears", "electoral register" ], "col_set": [ "*", "master customer id", "cmi details", "cmi cross reference id", "source system code", "council tax id", "business rates id", "cmi cross ref id", "electoral register id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 ], "keys": { "4": 1, "1": 1, "7": 3, "3": 3, "9": 3, "11": 3, "13": 3, "15": 3, "17": 3, "6": 6, "8": 8, "10": 10, "12": 12, "14": 14, "16": 16 }, "origin_question_toks": [ "Which", "distinct", "source", "system", "code", "includes", "the", "substring", "'en", "'", "?" ], "question_arg": [ [ "which" ], [ "distinct" ], [ "source", "system", "code" ], [ "includes" ], [ "substring" ], [ "'" ], [ "en" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "distinct", "VBZ" ], [ "source", "NN" ], [ "system", "NN" ], [ "code", "NN" ], [ "includes", "VBZ" ], [ "substring", "VBG" ], [ "'", "''" ], [ "en", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "en" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(4) T(1) Filter(9) A(0) C(4) T(1) V(0)" }, { "db_id": "party_host", "query": "SELECT count(*) FROM party", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "party" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "party" ], "question": "How many parties are there?", "question_toks": [ "how", "many", "party", "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": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "How", "many", "parties", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "party" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "party", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "party_host", "query": "SELECT count(*) FROM party", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "party" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "party" ], "question": "Count the number of parties.", "question_toks": [ "count", "number", "of", "party", "." ], "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": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "Count", "the", "number", "of", "parties", "." ], "question_arg": [ [ "count" ], [ "number", "of", "host" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "party_host", "query": "SELECT Party_Theme FROM party ORDER BY Number_of_hosts ASC", "query_toks": [ "SELECT", "Party_Theme", "FROM", "party", "ORDER", "BY", "Number_of_hosts", "ASC" ], "query_toks_no_value": [ "select", "party_theme", "from", "party", "order", "by", "number_of_hosts", "asc" ], "question": "List the themes of parties in ascending order of number of hosts.", "question_toks": [ "list", "theme", "of", "party", "in", "ascending", "order", "of", "number", "of", "host", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "List", "the", "themes", "of", "parties", "in", "ascending", "order", "of", "number", "of", "hosts", "." ], "question_arg": [ [ "list" ], [ "theme" ], [ "of" ], [ "party" ], [ "in" ], [ "ascending" ], [ "order" ], [ "number", "of", "host" ], [ "number", "of", "host" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "theme", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "host", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(6) T(0)" }, { "db_id": "party_host", "query": "SELECT Party_Theme FROM party ORDER BY Number_of_hosts ASC", "query_toks": [ "SELECT", "Party_Theme", "FROM", "party", "ORDER", "BY", "Number_of_hosts", "ASC" ], "query_toks_no_value": [ "select", "party_theme", "from", "party", "order", "by", "number_of_hosts", "asc" ], "question": "What are the themes of parties ordered by the number of hosts in ascending manner?", "question_toks": [ "what", "are", "theme", "of", "party", "ordered", "by", "number", "of", "host", "in", "ascending", "manner", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "themes", "of", "parties", "ordered", "by", "the", "number", "of", "hosts", "in", "ascending", "manner", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "theme" ], [ "of" ], [ "party" ], [ "ordered" ], [ "by" ], [ "number", "of", "host" ], [ "in" ], [ "ascending" ], [ "manner" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "theme", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "host", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "manner", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(6) T(0)" }, { "db_id": "party_host", "query": "SELECT Party_Theme , LOCATION FROM party", "query_toks": [ "SELECT", "Party_Theme", ",", "LOCATION", "FROM", "party" ], "query_toks_no_value": [ "select", "party_theme", ",", "location", "from", "party" ], "question": "What are the themes and locations of parties?", "question_toks": [ "what", "are", "theme", "and", "location", "of", "party", "?" ], "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": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "themes", "and", "locations", "of", "parties", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "theme" ], [ "and" ], [ "location" ], [ "of" ], [ "party" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "theme", "JJ" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "party", "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": "party_host", "query": "SELECT Party_Theme , LOCATION FROM party", "query_toks": [ "SELECT", "Party_Theme", ",", "LOCATION", "FROM", "party" ], "query_toks_no_value": [ "select", "party_theme", ",", "location", "from", "party" ], "question": "Give me the theme and location of each party.", "question_toks": [ "give", "me", "theme", "and", "location", "of", "each", "party", "." ], "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": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "Give", "me", "the", "theme", "and", "location", "of", "each", "party", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "theme" ], [ "and" ], [ "location" ], [ "of" ], [ "each" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "theme", "JJ" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "party", "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": "party_host", "query": "SELECT First_year , Last_year FROM party WHERE Party_Theme = \"Spring\" OR Party_Theme = \"Teqnology\"", "query_toks": [ "SELECT", "First_year", ",", "Last_year", "FROM", "party", "WHERE", "Party_Theme", "=", "``", "Spring", "''", "OR", "Party_Theme", "=", "``", "Teqnology", "''" ], "query_toks_no_value": [ "select", "first_year", ",", "last_year", "from", "party", "where", "party_theme", "=", "value", "or", "party_theme", "=", "value" ], "question": "Show the first year and last year of parties with theme \"Spring\" or \"Teqnology\".", "question_toks": [ "show", "first", "year", "and", "last", "year", "of", "party", "with", "theme", "'", "spring", "'", "or", "'", "teqnology", "'", "." ], "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, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Spring\"", null ], "or", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Teqnology\"", null ] ] }, "names": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "Show", "the", "first", "year", "and", "last", "year", "of", "parties", "with", "theme", "``", "Spring", "''", "or", "``", "Teqnology", "''", "." ], "question_arg": [ [ "show" ], [ "first", "year" ], [ "and" ], [ "last", "year" ], [ "of" ], [ "party" ], [ "with" ], [ "theme" ], [ "'" ], [ "spring" ], [ "'" ], [ "or" ], [ "'" ], [ "teqnology" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "first", "JJ" ], [ "year", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "year", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "with", "IN" ], [ "theme", "NN" ], [ "'", "''" ], [ "spring", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "teqnology", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Spring", "1", "Teqnology" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(0) A(0) C(5) T(0) Filter(1) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(2) T(0) V(2)" }, { "db_id": "party_host", "query": "SELECT First_year , Last_year FROM party WHERE Party_Theme = \"Spring\" OR Party_Theme = \"Teqnology\"", "query_toks": [ "SELECT", "First_year", ",", "Last_year", "FROM", "party", "WHERE", "Party_Theme", "=", "``", "Spring", "''", "OR", "Party_Theme", "=", "``", "Teqnology", "''" ], "query_toks_no_value": [ "select", "first_year", ",", "last_year", "from", "party", "where", "party_theme", "=", "value", "or", "party_theme", "=", "value" ], "question": "What are the first year and last year of the parties whose theme is \"Spring\" or \"Teqnology\"?", "question_toks": [ "what", "are", "first", "year", "and", "last", "year", "of", "party", "whose", "theme", "is", "'", "spring", "'", "or", "'", "teqnology", "'", "?" ], "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, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Spring\"", null ], "or", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Teqnology\"", null ] ] }, "names": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "first", "year", "and", "last", "year", "of", "the", "parties", "whose", "theme", "is", "``", "Spring", "''", "or", "``", "Teqnology", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "year" ], [ "and" ], [ "last", "year" ], [ "of" ], [ "party" ], [ "whose" ], [ "theme" ], [ "is" ], [ "'" ], [ "spring" ], [ "'" ], [ "or" ], [ "'" ], [ "teqnology" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "year", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "year", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "whose", "WP$" ], [ "theme", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "spring", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "teqnology", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Spring", "1", "Teqnology" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(0) A(0) C(5) T(0) Filter(1) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(2) T(0) V(2)" }, { "db_id": "party_host", "query": "SELECT avg(Number_of_hosts) FROM party", "query_toks": [ "SELECT", "avg", "(", "Number_of_hosts", ")", "FROM", "party" ], "query_toks_no_value": [ "select", "avg", "(", "number_of_hosts", ")", "from", "party" ], "question": "What is the average number of hosts for parties?", "question_toks": [ "what", "is", "average", "number", "of", "host", "for", "party", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "hosts", "for", "parties", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number", "of", "host" ], [ "for" ], [ "party" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "host", "NN" ], [ "for", "IN" ], [ "party", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(6) T(0)" }, { "db_id": "party_host", "query": "SELECT avg(Number_of_hosts) FROM party", "query_toks": [ "SELECT", "avg", "(", "Number_of_hosts", ")", "FROM", "party" ], "query_toks_no_value": [ "select", "avg", "(", "number_of_hosts", ")", "from", "party" ], "question": "Compute the average number of hosts for parties.", "question_toks": [ "compute", "average", "number", "of", "host", "for", "party", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "Compute", "the", "average", "number", "of", "hosts", "for", "parties", "." ], "question_arg": [ [ "compute" ], [ "average" ], [ "number", "of", "host" ], [ "for" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "compute", "JJ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "host", "NN" ], [ "for", "IN" ], [ "party", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(6) T(0)" }, { "db_id": "party_host", "query": "SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1", "query_toks": [ "SELECT", "LOCATION", "FROM", "party", "ORDER", "BY", "Number_of_hosts", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "location", "from", "party", "order", "by", "number_of_hosts", "desc", "limit", "value" ], "question": "What is the location of the party with the most hosts?", "question_toks": [ "what", "is", "location", "of", "party", "with", "most", "host", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "What", "is", "the", "location", "of", "the", "party", "with", "the", "most", "hosts", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "location" ], [ "of" ], [ "party" ], [ "with" ], [ "most" ], [ "host" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "location", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "host", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(3) T(0) Sup(0) A(0) C(6) T(0)" }, { "db_id": "party_host", "query": "SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1", "query_toks": [ "SELECT", "LOCATION", "FROM", "party", "ORDER", "BY", "Number_of_hosts", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "location", "from", "party", "order", "by", "number_of_hosts", "desc", "limit", "value" ], "question": "Which party had the most hosts? Give me the party location.", "question_toks": [ "which", "party", "had", "most", "host", "?", "give", "me", "party", "location", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "Which", "party", "had", "the", "most", "hosts", "?", "Give", "me", "the", "party", "location", "." ], "question_arg": [ [ "which" ], [ "party" ], [ "had" ], [ "most" ], [ "host" ], [ "?" ], [ "give" ], [ "me" ], [ "party" ], [ "location" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "party", "NN" ], [ "had", "VBD" ], [ "most", "RBS" ], [ "host", "VBN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "party", "NN" ], [ "location", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(3) T(0) Sup(0) A(0) C(6) T(0)" }, { "db_id": "party_host", "query": "SELECT Nationality , COUNT(*) FROM HOST GROUP BY Nationality", "query_toks": [ "SELECT", "Nationality", ",", "COUNT", "(", "*", ")", "FROM", "HOST", "GROUP", "BY", "Nationality" ], "query_toks_no_value": [ "select", "nationality", ",", "count", "(", "*", ")", "from", "host", "group", "by", "nationality" ], "question": "Show different nationalities along with the number of hosts of each nationality.", "question_toks": [ "show", "different", "nationality", "along", "with", "number", "of", "host", "of", "each", "nationality", "." ], "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": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "Show", "different", "nationalities", "along", "with", "the", "number", "of", "hosts", "of", "each", "nationality", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "nationality" ], [ "along" ], [ "with" ], [ "number", "of", "host" ], [ "of" ], [ "each" ], [ "nationality" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "different", "JJ" ], [ "nationality", "NN" ], [ "along", "IN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "host", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "nationality", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(3) C(0) T(1)" }, { "db_id": "party_host", "query": "SELECT Nationality , COUNT(*) FROM HOST GROUP BY Nationality", "query_toks": [ "SELECT", "Nationality", ",", "COUNT", "(", "*", ")", "FROM", "HOST", "GROUP", "BY", "Nationality" ], "query_toks_no_value": [ "select", "nationality", ",", "count", "(", "*", ")", "from", "host", "group", "by", "nationality" ], "question": "How many hosts does each nationality have? List the nationality and the count.", "question_toks": [ "how", "many", "host", "doe", "each", "nationality", "have", "?", "list", "nationality", "and", "count", "." ], "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": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "How", "many", "hosts", "does", "each", "nationality", "have", "?", "List", "the", "nationality", "and", "the", "count", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "host" ], [ "doe" ], [ "each" ], [ "nationality" ], [ "have" ], [ "?" ], [ "list" ], [ "nationality" ], [ "and" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "host", "NN" ], [ "doe", "NNS" ], [ "each", "DT" ], [ "nationality", "NN" ], [ "have", "VBP" ], [ "?", "." ], [ "list", "NN" ], [ "nationality", "NN" ], [ "and", "CC" ], [ "count", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(3) C(0) T(1)" }, { "db_id": "party_host", "query": "SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Nationality", "FROM", "HOST", "GROUP", "BY", "Nationality", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "nationality", "from", "host", "group", "by", "nationality", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the most common nationality of hosts.", "question_toks": [ "show", "most", "common", "nationality", "of", "host", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "Show", "the", "most", "common", "nationality", "of", "hosts", "." ], "question_arg": [ [ "show" ], [ "most" ], [ "common" ], [ "nationality" ], [ "number", "of", "host" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "nationality", "NN" ], [ "of", "IN" ], [ "host", "NN" ], [ ".", "." ] ], "values": [], "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": "party_host", "query": "SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Nationality", "FROM", "HOST", "GROUP", "BY", "Nationality", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "nationality", "from", "host", "group", "by", "nationality", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which nationality has the most hosts?", "question_toks": [ "which", "nationality", "ha", "most", "host", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "Which", "nationality", "has", "the", "most", "hosts", "?" ], "question_arg": [ [ "which" ], [ "nationality" ], [ "ha" ], [ "most" ], [ "host" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "nationality", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "host", "NN" ], [ "?", "." ] ], "values": [], "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": "party_host", "query": "SELECT Nationality FROM HOST WHERE Age > 45 INTERSECT SELECT Nationality FROM HOST WHERE Age < 35", "query_toks": [ "SELECT", "Nationality", "FROM", "HOST", "WHERE", "Age", ">", "45", "INTERSECT", "SELECT", "Nationality", "FROM", "HOST", "WHERE", "Age", "<", "35" ], "query_toks_no_value": [ "select", "nationality", "from", "host", "where", "age", ">", "value", "intersect", "select", "nationality", "from", "host", "where", "age", "<", "value" ], "question": "Show the nations that have both hosts older than 45 and hosts younger than 35.", "question_toks": [ "show", "nation", "that", "have", "both", "host", "older", "than", "45", "and", "host", "younger", "than", "35", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 10, false ], null ], 35.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 45.0, null ] ] }, "names": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "Show", "the", "nations", "that", "have", "both", "hosts", "older", "than", "45", "and", "hosts", "younger", "than", "35", "." ], "question_arg": [ [ "show" ], [ "nation" ], [ "that" ], [ "have" ], [ "both" ], [ "host" ], [ "older" ], [ "than" ], [ "45" ], [ "and" ], [ "host" ], [ "younger" ], [ "than" ], [ "35" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "nation", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "host", "NN" ], [ "older", "JJR" ], [ "than", "IN" ], [ "45", "CD" ], [ "and", "CC" ], [ "host", "NN" ], [ "younger", "JJR" ], [ "than", "IN" ], [ "35", "CD" ], [ ".", "." ] ], "values": [ "45", "35" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(5) A(0) C(10) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(4) A(0) C(10) T(1) V(1)" }, { "db_id": "party_host", "query": "SELECT Nationality FROM HOST WHERE Age > 45 INTERSECT SELECT Nationality FROM HOST WHERE Age < 35", "query_toks": [ "SELECT", "Nationality", "FROM", "HOST", "WHERE", "Age", ">", "45", "INTERSECT", "SELECT", "Nationality", "FROM", "HOST", "WHERE", "Age", "<", "35" ], "query_toks_no_value": [ "select", "nationality", "from", "host", "where", "age", ">", "value", "intersect", "select", "nationality", "from", "host", "where", "age", "<", "value" ], "question": "Which nations have both hosts of age above 45 and hosts of age below 35?", "question_toks": [ "which", "nation", "have", "both", "host", "of", "age", "above", "45", "and", "host", "of", "age", "below", "35", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 10, false ], null ], 35.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 45.0, null ] ] }, "names": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "Which", "nations", "have", "both", "hosts", "of", "age", "above", "45", "and", "hosts", "of", "age", "below", "35", "?" ], "question_arg": [ [ "which" ], [ "nation" ], [ "have" ], [ "both" ], [ "host" ], [ "of" ], [ "age" ], [ "above" ], [ "45" ], [ "and" ], [ "host" ], [ "of" ], [ "age" ], [ "below" ], [ "35" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "nation", "NN" ], [ "have", "VBP" ], [ "both", "DT" ], [ "host", "NN" ], [ "of", "IN" ], [ "age", "NN" ], [ "above", "IN" ], [ "45", "CD" ], [ "and", "CC" ], [ "host", "NN" ], [ "of", "IN" ], [ "age", "NN" ], [ "below", "IN" ], [ "35", "CD" ], [ "?", "." ] ], "values": [ "45", "35" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(5) A(0) C(10) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(4) A(0) C(10) T(1) V(1)" }, { "db_id": "party_host", "query": "SELECT T3.Party_Theme , T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID", "query_toks": [ "SELECT", "T3.Party_Theme", ",", "T2.Name", "FROM", "party_host", "AS", "T1", "JOIN", "HOST", "AS", "T2", "ON", "T1.Host_ID", "=", "T2.Host_ID", "JOIN", "party", "AS", "T3", "ON", "T1.Party_ID", "=", "T3.Party_ID" ], "query_toks_no_value": [ "select", "t3", ".", "party_theme", ",", "t2", ".", "name", "from", "party_host", "as", "t1", "join", "host", "as", "t2", "on", "t1", ".", "host_id", "=", "t2", ".", "host_id", "join", "party", "as", "t3", "on", "t1", ".", "party_id", "=", "t3", ".", "party_id" ], "question": "Show the themes of parties and the names of the party hosts.", "question_toks": [ "show", "theme", "of", "party", "and", "name", "of", "party", "host", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "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, 7, 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": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "Show", "the", "themes", "of", "parties", "and", "the", "names", "of", "the", "party", "hosts", "." ], "question_arg": [ [ "show" ], [ "theme" ], [ "of" ], [ "party" ], [ "and" ], [ "name" ], [ "of" ], [ "party", "host" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "theme", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "host", "NN" ], [ ".", "." ] ], "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(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "party_host", "query": "SELECT T3.Party_Theme , T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID", "query_toks": [ "SELECT", "T3.Party_Theme", ",", "T2.Name", "FROM", "party_host", "AS", "T1", "JOIN", "HOST", "AS", "T2", "ON", "T1.Host_ID", "=", "T2.Host_ID", "JOIN", "party", "AS", "T3", "ON", "T1.Party_ID", "=", "T3.Party_ID" ], "query_toks_no_value": [ "select", "t3", ".", "party_theme", ",", "t2", ".", "name", "from", "party_host", "as", "t1", "join", "host", "as", "t2", "on", "t1", ".", "host_id", "=", "t2", ".", "host_id", "join", "party", "as", "t3", "on", "t1", ".", "party_id", "=", "t3", ".", "party_id" ], "question": "For each party, return its theme and the name of its host.", "question_toks": [ "for", "each", "party", ",", "return", "it", "theme", "and", "name", "of", "it", "host", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "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, 7, 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": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "For", "each", "party", ",", "return", "its", "theme", "and", "the", "name", "of", "its", "host", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "party" ], [ "," ], [ "return" ], [ "it" ], [ "theme" ], [ "and" ], [ "name" ], [ "of" ], [ "it" ], [ "host" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "party", "NN" ], [ ",", "," ], [ "return", "VB" ], [ "it", "PRP" ], [ "theme", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "it", "PRP" ], [ "host", "NN" ], [ ".", "." ] ], "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(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "party_host", "query": "SELECT T3.Location , T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID ORDER BY T2.Age", "query_toks": [ "SELECT", "T3.Location", ",", "T2.Name", "FROM", "party_host", "AS", "T1", "JOIN", "HOST", "AS", "T2", "ON", "T1.Host_ID", "=", "T2.Host_ID", "JOIN", "party", "AS", "T3", "ON", "T1.Party_ID", "=", "T3.Party_ID", "ORDER", "BY", "T2.Age" ], "query_toks_no_value": [ "select", "t3", ".", "location", ",", "t2", ".", "name", "from", "party_host", "as", "t1", "join", "host", "as", "t2", "on", "t1", ".", "host_id", "=", "t2", ".", "host_id", "join", "party", "as", "t3", "on", "t1", ".", "party_id", "=", "t3", ".", "party_id", "order", "by", "t2", ".", "age" ], "question": "Show the locations of parties and the names of the party hosts in ascending order of the age of the host.", "question_toks": [ "show", "location", "of", "party", "and", "name", "of", "party", "host", "in", "ascending", "order", "of", "age", "of", "host", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "Show", "the", "locations", "of", "parties", "and", "the", "names", "of", "the", "party", "hosts", "in", "ascending", "order", "of", "the", "age", "of", "the", "host", "." ], "question_arg": [ [ "show" ], [ "location" ], [ "of" ], [ "party" ], [ "and" ], [ "name" ], [ "of" ], [ "party", "host" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "age" ], [ "number", "of", "host" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "location", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "host", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "age", "NN" ], [ "of", "IN" ], [ "host", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(3) T(0) A(0) C(8) T(1) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Order(1) A(0) C(10) T(1)" }, { "db_id": "party_host", "query": "SELECT T3.Location , T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID ORDER BY T2.Age", "query_toks": [ "SELECT", "T3.Location", ",", "T2.Name", "FROM", "party_host", "AS", "T1", "JOIN", "HOST", "AS", "T2", "ON", "T1.Host_ID", "=", "T2.Host_ID", "JOIN", "party", "AS", "T3", "ON", "T1.Party_ID", "=", "T3.Party_ID", "ORDER", "BY", "T2.Age" ], "query_toks_no_value": [ "select", "t3", ".", "location", ",", "t2", ".", "name", "from", "party_host", "as", "t1", "join", "host", "as", "t2", "on", "t1", ".", "host_id", "=", "t2", ".", "host_id", "join", "party", "as", "t3", "on", "t1", ".", "party_id", "=", "t3", ".", "party_id", "order", "by", "t2", ".", "age" ], "question": "For each party, find its location and the name of its host. Sort the result in ascending order of the age of the host.", "question_toks": [ "for", "each", "party", ",", "find", "it", "location", "and", "name", "of", "it", "host", ".", "sort", "result", "in", "ascending", "order", "of", "age", "of", "host", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "For", "each", "party", ",", "find", "its", "location", "and", "the", "name", "of", "its", "host", ".", "Sort", "the", "result", "in", "ascending", "order", "of", "the", "age", "of", "the", "host", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "party" ], [ "," ], [ "find" ], [ "it" ], [ "location" ], [ "and" ], [ "name" ], [ "of" ], [ "it" ], [ "host" ], [ "." ], [ "sort" ], [ "result" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "age" ], [ "number", "of", "host" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "party", "NN" ], [ ",", "," ], [ "find", "VB" ], [ "it", "PRP" ], [ "location", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "it", "PRP" ], [ "host", "NN" ], [ ".", "." ], [ "sort", "NN" ], [ "result", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "age", "NN" ], [ "of", "IN" ], [ "host", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(3) T(0) A(0) C(8) T(1) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Order(1) A(0) C(10) T(1)" }, { "db_id": "party_host", "query": "SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T2.Age > 50", "query_toks": [ "SELECT", "T3.Location", "FROM", "party_host", "AS", "T1", "JOIN", "HOST", "AS", "T2", "ON", "T1.Host_ID", "=", "T2.Host_ID", "JOIN", "party", "AS", "T3", "ON", "T1.Party_ID", "=", "T3.Party_ID", "WHERE", "T2.Age", ">", "50" ], "query_toks_no_value": [ "select", "t3", ".", "location", "from", "party_host", "as", "t1", "join", "host", "as", "t2", "on", "t1", ".", "host_id", "=", "t2", ".", "host_id", "join", "party", "as", "t3", "on", "t1", ".", "party_id", "=", "t3", ".", "party_id", "where", "t2", ".", "age", ">", "value" ], "question": "Show the locations of parties with hosts older than 50.", "question_toks": [ "show", "location", "of", "party", "with", "host", "older", "than", "50", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 7, 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, 7, 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, 10, false ], null ], 50.0, null ] ] }, "names": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "Show", "the", "locations", "of", "parties", "with", "hosts", "older", "than", "50", "." ], "question_arg": [ [ "show" ], [ "location" ], [ "of" ], [ "party" ], [ "with" ], [ "host" ], [ "older" ], [ "than" ], [ "50" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "location", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "with", "IN" ], [ "host", "NN" ], [ "older", "JJR" ], [ "than", "IN" ], [ "50", "CD" ], [ ".", "." ] ], "values": [ "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(5) A(0) C(10) T(1) V(0)" }, { "db_id": "party_host", "query": "SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T2.Age > 50", "query_toks": [ "SELECT", "T3.Location", "FROM", "party_host", "AS", "T1", "JOIN", "HOST", "AS", "T2", "ON", "T1.Host_ID", "=", "T2.Host_ID", "JOIN", "party", "AS", "T3", "ON", "T1.Party_ID", "=", "T3.Party_ID", "WHERE", "T2.Age", ">", "50" ], "query_toks_no_value": [ "select", "t3", ".", "location", "from", "party_host", "as", "t1", "join", "host", "as", "t2", "on", "t1", ".", "host_id", "=", "t2", ".", "host_id", "join", "party", "as", "t3", "on", "t1", ".", "party_id", "=", "t3", ".", "party_id", "where", "t2", ".", "age", ">", "value" ], "question": "Which parties have hosts of age above 50? Give me the party locations.", "question_toks": [ "which", "party", "have", "host", "of", "age", "above", "50", "?", "give", "me", "party", "location", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 7, 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, 7, 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, 10, false ], null ], 50.0, null ] ] }, "names": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "Which", "parties", "have", "hosts", "of", "age", "above", "50", "?", "Give", "me", "the", "party", "locations", "." ], "question_arg": [ [ "which" ], [ "party" ], [ "have" ], [ "host" ], [ "of" ], [ "age" ], [ "above" ], [ "50" ], [ "?" ], [ "give" ], [ "me" ], [ "party" ], [ "location" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "party", "NN" ], [ "have", "VBP" ], [ "host", "NN" ], [ "of", "IN" ], [ "age", "NN" ], [ "above", "IN" ], [ "50", "CD" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "party", "NN" ], [ "location", "NN" ], [ ".", "." ] ], "values": [ "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(5) A(0) C(10) T(1) V(0)" }, { "db_id": "party_host", "query": "SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T3.Number_of_hosts > 20", "query_toks": [ "SELECT", "T2.Name", "FROM", "party_host", "AS", "T1", "JOIN", "HOST", "AS", "T2", "ON", "T1.Host_ID", "=", "T2.Host_ID", "JOIN", "party", "AS", "T3", "ON", "T1.Party_ID", "=", "T3.Party_ID", "WHERE", "T3.Number_of_hosts", ">", "20" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "party_host", "as", "t1", "join", "host", "as", "t2", "on", "t1", ".", "host_id", "=", "t2", ".", "host_id", "join", "party", "as", "t3", "on", "t1", ".", "party_id", "=", "t3", ".", "party_id", "where", "t3", ".", "number_of_hosts", ">", "value" ], "question": "Show the host names for parties with number of hosts greater than 20.", "question_toks": [ "show", "host", "name", "for", "party", "with", "number", "of", "host", "greater", "than", "20", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 7, 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, 8, [ 0, [ 0, 7, 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, 6, false ], null ], 20.0, null ] ] }, "names": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "Show", "the", "host", "names", "for", "parties", "with", "number", "of", "hosts", "greater", "than", "20", "." ], "question_arg": [ [ "show" ], [ "host" ], [ "name" ], [ "for" ], [ "party" ], [ "with" ], [ "number", "of", "host" ], [ "greater" ], [ "than" ], [ "20" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "host", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "party", "NN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "host", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ ".", "." ] ], "values": [ "20" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(5) A(0) C(6) T(0) V(0)" }, { "db_id": "party_host", "query": "SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T3.Number_of_hosts > 20", "query_toks": [ "SELECT", "T2.Name", "FROM", "party_host", "AS", "T1", "JOIN", "HOST", "AS", "T2", "ON", "T1.Host_ID", "=", "T2.Host_ID", "JOIN", "party", "AS", "T3", "ON", "T1.Party_ID", "=", "T3.Party_ID", "WHERE", "T3.Number_of_hosts", ">", "20" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "party_host", "as", "t1", "join", "host", "as", "t2", "on", "t1", ".", "host_id", "=", "t2", ".", "host_id", "join", "party", "as", "t3", "on", "t1", ".", "party_id", "=", "t3", ".", "party_id", "where", "t3", ".", "number_of_hosts", ">", "value" ], "question": "Which parties have more than 20 hosts? Give me the host names for these parties.", "question_toks": [ "which", "party", "have", "more", "than", "20", "host", "?", "give", "me", "host", "name", "for", "these", "party", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 7, 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, 8, [ 0, [ 0, 7, 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, 6, false ], null ], 20.0, null ] ] }, "names": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "Which", "parties", "have", "more", "than", "20", "hosts", "?", "Give", "me", "the", "host", "names", "for", "these", "parties", "." ], "question_arg": [ [ "which" ], [ "party" ], [ "have" ], [ "more" ], [ "than" ], [ "20" ], [ "host" ], [ "?" ], [ "give" ], [ "me" ], [ "host" ], [ "name" ], [ "for" ], [ "these" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "party", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ "host", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "host", "JJS" ], [ "name", "NN" ], [ "for", "IN" ], [ "these", "DT" ], [ "party", "NN" ], [ ".", "." ] ], "values": [ "20" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(5) A(0) C(6) T(0) V(0)" }, { "db_id": "party_host", "query": "SELECT Name , Nationality FROM HOST ORDER BY Age DESC LIMIT 1", "query_toks": [ "SELECT", "Name", ",", "Nationality", "FROM", "HOST", "ORDER", "BY", "Age", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "nationality", "from", "host", "order", "by", "age", "desc", "limit", "value" ], "question": "Show the name and the nationality of the oldest host.", "question_toks": [ "show", "name", "and", "nationality", "of", "oldest", "host", "." ], "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, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "Show", "the", "name", "and", "the", "nationality", "of", "the", "oldest", "host", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "nationality" ], [ "of" ], [ "oldest" ], [ "host" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "nationality", "NN" ], [ "of", "IN" ], [ "oldest", "JJS" ], [ "host", "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(10) T(1)" }, { "db_id": "party_host", "query": "SELECT Name , Nationality FROM HOST ORDER BY Age DESC LIMIT 1", "query_toks": [ "SELECT", "Name", ",", "Nationality", "FROM", "HOST", "ORDER", "BY", "Age", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "nationality", "from", "host", "order", "by", "age", "desc", "limit", "value" ], "question": "What are the name and the nationality of the host of the highest age?", "question_toks": [ "what", "are", "name", "and", "nationality", "of", "host", "of", "highest", "age", "?" ], "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, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "the", "nationality", "of", "the", "host", "of", "the", "highest", "age", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "nationality" ], [ "number", "of", "host" ], [ "of" ], [ "highest" ], [ "age" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "nationality", "NN" ], [ "of", "IN" ], [ "host", "NN" ], [ "of", "IN" ], [ "highest", "JJS" ], [ "age", "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(10) T(1)" }, { "db_id": "party_host", "query": "SELECT Name FROM HOST WHERE Host_ID NOT IN (SELECT Host_ID FROM party_host)", "query_toks": [ "SELECT", "Name", "FROM", "HOST", "WHERE", "Host_ID", "NOT", "IN", "(", "SELECT", "Host_ID", "FROM", "party_host", ")" ], "query_toks_no_value": [ "select", "name", "from", "host", "where", "host_id", "not", "in", "(", "select", "host_id", "from", "party_host", ")" ], "question": "List the names of hosts who did not serve as a host of any party in our record.", "question_toks": [ "list", "name", "of", "host", "who", "did", "not", "serve", "a", "a", "host", "of", "any", "party", "in", "our", "record", "." ], "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": [ [ true, 8, [ 0, [ 0, 7, 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": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "List", "the", "names", "of", "hosts", "who", "did", "not", "serve", "as", "a", "host", "of", "any", "party", "in", "our", "record", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "number", "of", "host" ], [ "who" ], [ "did" ], [ "not" ], [ "serve" ], [ "a" ], [ "a" ], [ "host" ], [ "of" ], [ "any" ], [ "party" ], [ "in" ], [ "our" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "host", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "serve", "VB" ], [ "a", "DT" ], [ "a", "DT" ], [ "host", "NN" ], [ "of", "IN" ], [ "any", "DT" ], [ "party", "NN" ], [ "in", "IN" ], [ "our", "PRP$" ], [ "record", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(19) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "party_host", "query": "SELECT Name FROM HOST WHERE Host_ID NOT IN (SELECT Host_ID FROM party_host)", "query_toks": [ "SELECT", "Name", "FROM", "HOST", "WHERE", "Host_ID", "NOT", "IN", "(", "SELECT", "Host_ID", "FROM", "party_host", ")" ], "query_toks_no_value": [ "select", "name", "from", "host", "where", "host_id", "not", "in", "(", "select", "host_id", "from", "party_host", ")" ], "question": "What are the names of hosts who did not host any party in our record?", "question_toks": [ "what", "are", "name", "of", "host", "who", "did", "not", "host", "any", "party", "in", "our", "record", "?" ], "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": [ [ true, 8, [ 0, [ 0, 7, 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": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "party id", "host id", "is main in charge" ], "table_names": [ "party", "host", "party host" ], "col_set": [ "*", "party id", "party theme", "location", "first year", "last year", "number of hosts", "host id", "name", "nationality", "age", "is main in charge" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 11, "1": 1, "12": 7, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "hosts", "who", "did", "not", "host", "any", "party", "in", "our", "record", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "number", "of", "host" ], [ "who" ], [ "did" ], [ "not" ], [ "host" ], [ "any" ], [ "party" ], [ "in" ], [ "our" ], [ "record" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "host", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "host", "VB" ], [ "any", "DT" ], [ "party", "NN" ], [ "in", "IN" ], [ "our", "PRP$" ], [ "record", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(19) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "storm_record", "query": "SELECT count(*) FROM region", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "region" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "region" ], "question": "How many regions do we have?", "question_toks": [ "how", "many", "region", "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": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "How", "many", "regions", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "region" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "region", "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": "storm_record", "query": "SELECT count(*) FROM region", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "region" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "region" ], "question": "Count the number of regions.", "question_toks": [ "count", "number", "of", "region", "." ], "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": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Count", "the", "number", "of", "regions", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "region" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "region", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "storm_record", "query": "SELECT region_code , region_name FROM region ORDER BY region_code", "query_toks": [ "SELECT", "region_code", ",", "region_name", "FROM", "region", "ORDER", "BY", "region_code" ], "query_toks_no_value": [ "select", "region_code", ",", "region_name", "from", "region", "order", "by", "region_code" ], "question": "Show all region code and region name sorted by the codes.", "question_toks": [ "show", "all", "region", "code", "and", "region", "name", "sorted", "by", "code", "." ], "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, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Show", "all", "region", "code", "and", "region", "name", "sorted", "by", "the", "codes", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "region", "code" ], [ "and" ], [ "region", "name" ], [ "sorted" ], [ "by" ], [ "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "region", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "region", "NN" ], [ "name", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(8) T(1) A(0) C(9) T(1) Order(1) A(0) C(8) T(1)" }, { "db_id": "storm_record", "query": "SELECT region_code , region_name FROM region ORDER BY region_code", "query_toks": [ "SELECT", "region_code", ",", "region_name", "FROM", "region", "ORDER", "BY", "region_code" ], "query_toks_no_value": [ "select", "region_code", ",", "region_name", "from", "region", "order", "by", "region_code" ], "question": "What are the codes and names for all regions, sorted by codes?", "question_toks": [ "what", "are", "code", "and", "name", "for", "all", "region", ",", "sorted", "by", "code", "?" ], "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, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "codes", "and", "names", "for", "all", "regions", ",", "sorted", "by", "codes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "code" ], [ "and" ], [ "name" ], [ "for" ], [ "all" ], [ "region" ], [ "," ], [ "sorted" ], [ "by" ], [ "code" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "code", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "region", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "code", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(8) T(1) A(0) C(9) T(1) Order(1) A(0) C(8) T(1)" }, { "db_id": "storm_record", "query": "SELECT region_name FROM region ORDER BY region_name", "query_toks": [ "SELECT", "region_name", "FROM", "region", "ORDER", "BY", "region_name" ], "query_toks_no_value": [ "select", "region_name", "from", "region", "order", "by", "region_name" ], "question": "List all region names in alphabetical order.", "question_toks": [ "list", "all", "region", "name", "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": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "List", "all", "region", "names", "in", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "region", "name" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "region", "NN" ], [ "name", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "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": "storm_record", "query": "SELECT region_name FROM region ORDER BY region_name", "query_toks": [ "SELECT", "region_name", "FROM", "region", "ORDER", "BY", "region_name" ], "query_toks_no_value": [ "select", "region_name", "from", "region", "order", "by", "region_name" ], "question": "What are the names of the regions in alphabetical order?", "question_toks": [ "what", "are", "name", "of", "region", "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": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "regions", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "region" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "region", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "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": "storm_record", "query": "SELECT region_name FROM region WHERE region_name != 'Denmark'", "query_toks": [ "SELECT", "region_name", "FROM", "region", "WHERE", "region_name", "!", "=", "'Denmark", "'" ], "query_toks_no_value": [ "select", "region_name", "from", "region", "where", "region_name", "!", "=", "value" ], "question": "Show names for all regions except for Denmark.", "question_toks": [ "show", "name", "for", "all", "region", "except", "for", "denmark", "." ], "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, 9, false ], null ], "\"Denmark\"", null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Show", "names", "for", "all", "regions", "except", "for", "Denmark", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "for" ], [ "all" ], [ "region" ], [ "except" ], [ "for" ], [ "denmark" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "region", "NN" ], [ "except", "IN" ], [ "for", "IN" ], [ "denmark", "NN" ], [ ".", "." ] ], "values": [ "Denmark" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(3) A(0) C(9) T(1) V(0)" }, { "db_id": "storm_record", "query": "SELECT region_name FROM region WHERE region_name != 'Denmark'", "query_toks": [ "SELECT", "region_name", "FROM", "region", "WHERE", "region_name", "!", "=", "'Denmark", "'" ], "query_toks_no_value": [ "select", "region_name", "from", "region", "where", "region_name", "!", "=", "value" ], "question": "Return the names of all regions other than Denmark.", "question_toks": [ "return", "name", "of", "all", "region", "other", "than", "denmark", "." ], "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, 9, false ], null ], "\"Denmark\"", null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Return", "the", "names", "of", "all", "regions", "other", "than", "Denmark", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "all" ], [ "region" ], [ "other" ], [ "than" ], [ "denmark" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "region", "NN" ], [ "other", "JJ" ], [ "than", "IN" ], [ "denmark", "NN" ], [ ".", "." ] ], "values": [ "Denmark" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(3) A(0) C(9) T(1) V(0)" }, { "db_id": "storm_record", "query": "SELECT count(*) FROM storm WHERE Number_Deaths > 0", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "storm", "WHERE", "Number_Deaths", ">", "0" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "storm", "where", "number_deaths", ">", "value" ], "question": "How many storms had death records?", "question_toks": [ "how", "many", "storm", "had", "death", "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, 3, [ 0, [ 0, 6, false ], null ], 0.0, null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "How", "many", "storms", "had", "death", "records", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "storm" ], [ "had" ], [ "death" ], [ "record" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "storm", "NN" ], [ "had", "VBD" ], [ "death", "NN" ], [ "record", "NN" ], [ "?", "." ] ], "values": [ "0" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(5) A(0) C(6) T(0) V(0)" }, { "db_id": "storm_record", "query": "SELECT count(*) FROM storm WHERE Number_Deaths > 0", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "storm", "WHERE", "Number_Deaths", ">", "0" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "storm", "where", "number_deaths", ">", "value" ], "question": "Count the number of storms in which at least 1 person died.", "question_toks": [ "count", "number", "of", "storm", "in", "which", "at", "least", "1", "person", "died", "." ], "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, 6, false ], null ], 0.0, null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Count", "the", "number", "of", "storms", "in", "which", "at", "least", "1", "person", "died", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "storm" ], [ "in" ], [ "which" ], [ "at" ], [ "least" ], [ "1" ], [ "person" ], [ "died" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "storm", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "at", "IN" ], [ "least", "JJS" ], [ "1", "CD" ], [ "person", "NN" ], [ "died", "VBD" ], [ ".", "." ] ], "values": [ "1", "0" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(5) A(0) C(6) T(0) V(1)" }, { "db_id": "storm_record", "query": "SELECT name , dates_active , number_deaths FROM storm WHERE number_deaths >= 1", "query_toks": [ "SELECT", "name", ",", "dates_active", ",", "number_deaths", "FROM", "storm", "WHERE", "number_deaths", ">", "=", "1" ], "query_toks_no_value": [ "select", "name", ",", "dates_active", ",", "number_deaths", "from", "storm", "where", "number_deaths", ">", "=", "value" ], "question": "List name, dates active, and number of deaths for all storms with at least 1 death.", "question_toks": [ "list", "name", ",", "date", "active", ",", "and", "number", "of", "death", "for", "all", "storm", "with", "at", "least", "1", "death", "." ], "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, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 6, false ], null ], 1.0, null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "List", "name", ",", "dates", "active", ",", "and", "number", "of", "deaths", "for", "all", "storms", "with", "at", "least", "1", "death", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "," ], [ "date", "active" ], [ "," ], [ "and" ], [ "number" ], [ "of" ], [ "death" ], [ "for" ], [ "all" ], [ "storm" ], [ "with" ], [ "at" ], [ "least" ], [ "1" ], [ "death" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "date", "NN" ], [ "active", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "death", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "storm", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "1", "CD" ], [ "death", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(0) C(6) T(0) Filter(7) A(0) C(6) T(0) V(0)" }, { "db_id": "storm_record", "query": "SELECT name , dates_active , number_deaths FROM storm WHERE number_deaths >= 1", "query_toks": [ "SELECT", "name", ",", "dates_active", ",", "number_deaths", "FROM", "storm", "WHERE", "number_deaths", ">", "=", "1" ], "query_toks_no_value": [ "select", "name", ",", "dates_active", ",", "number_deaths", "from", "storm", "where", "number_deaths", ">", "=", "value" ], "question": "What are the names, dates active, and number of deaths for storms that had 1 or more death?", "question_toks": [ "what", "are", "name", ",", "date", "active", ",", "and", "number", "of", "death", "for", "storm", "that", "had", "1", "or", "more", "death", "?" ], "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, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 6, false ], null ], 1.0, null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", ",", "dates", "active", ",", "and", "number", "of", "deaths", "for", "storms", "that", "had", "1", "or", "more", "death", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "date", "active" ], [ "," ], [ "and" ], [ "number" ], [ "of" ], [ "death" ], [ "for" ], [ "storm" ], [ "that" ], [ "had" ], [ "1" ], [ "or" ], [ "more" ], [ "death" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "date", "NN" ], [ "active", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "death", "NN" ], [ "for", "IN" ], [ "storm", "NN" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "1", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "death", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(0) C(6) T(0) Filter(7) A(0) C(6) T(0) V(0)" }, { "db_id": "storm_record", "query": "SELECT avg(damage_millions_USD) , max(damage_millions_USD) FROM storm WHERE max_speed > 1000", "query_toks": [ "SELECT", "avg", "(", "damage_millions_USD", ")", ",", "max", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "1000" ], "query_toks_no_value": [ "select", "avg", "(", "damage_millions_usd", ")", ",", "max", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "value" ], "question": "Show the average and maximum damage for all storms with max speed higher than 1000.", "question_toks": [ "show", "average", "and", "maximum", "damage", "for", "all", "storm", "with", "max", "speed", "higher", "than", "1000", "." ], "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 ] ], [ 1, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 1000.0, null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Show", "the", "average", "and", "maximum", "damage", "for", "all", "storms", "with", "max", "speed", "higher", "than", "1000", "." ], "question_arg": [ [ "show" ], [ "average" ], [ "and" ], [ "maximum" ], [ "damage" ], [ "for" ], [ "all" ], [ "storm" ], [ "with" ], [ "max", "speed" ], [ "higher" ], [ "than" ], [ "1000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "average", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "damage", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "storm", "NN" ], [ "with", "IN" ], [ "max", "NNS" ], [ "speed", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ ".", "." ] ], "values": [ "1000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(5) T(0) A(1) C(5) T(0) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "storm_record", "query": "SELECT avg(damage_millions_USD) , max(damage_millions_USD) FROM storm WHERE max_speed > 1000", "query_toks": [ "SELECT", "avg", "(", "damage_millions_USD", ")", ",", "max", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "1000" ], "query_toks_no_value": [ "select", "avg", "(", "damage_millions_usd", ")", ",", "max", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "value" ], "question": "What is the average and maximum damage in millions for storms that had a max speed over 1000?", "question_toks": [ "what", "is", "average", "and", "maximum", "damage", "in", "million", "for", "storm", "that", "had", "a", "max", "speed", "over", "1000", "?" ], "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 ] ], [ 1, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 1000.0, null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "is", "the", "average", "and", "maximum", "damage", "in", "millions", "for", "storms", "that", "had", "a", "max", "speed", "over", "1000", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "and" ], [ "maximum" ], [ "damage" ], [ "in" ], [ "million" ], [ "for" ], [ "storm" ], [ "that" ], [ "had" ], [ "a" ], [ "max", "speed" ], [ "over" ], [ "1000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "damage", "NN" ], [ "in", "IN" ], [ "million", "CD" ], [ "for", "IN" ], [ "storm", "NN" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "a", "DT" ], [ "max", "JJ" ], [ "speed", "NN" ], [ "over", "IN" ], [ "1000", "CD" ], [ "?", "." ] ], "values": [ "1000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(5) T(0) A(1) C(5) T(0) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "storm_record", "query": "SELECT sum(number_deaths) , sum(damage_millions_USD) FROM storm WHERE max_speed > (SELECT avg(max_speed) FROM storm)", "query_toks": [ "SELECT", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "(", "SELECT", "avg", "(", "max_speed", ")", "FROM", "storm", ")" ], "query_toks_no_value": [ "select", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "(", "select", "avg", "(", "max_speed", ")", "from", "storm", ")" ], "question": "What is the total number of deaths and damage for all storms with a max speed greater than the average?", "question_toks": [ "what", "is", "total", "number", "of", "death", "and", "damage", "for", "all", "storm", "with", "a", "max", "speed", "greater", "than", "average", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 6, false ], null ] ], [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 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": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "deaths", "and", "damage", "for", "all", "storms", "with", "a", "max", "speed", "greater", "than", "the", "average", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "death" ], [ "and" ], [ "damage" ], [ "for" ], [ "all" ], [ "storm" ], [ "with" ], [ "a" ], [ "max", "speed" ], [ "greater" ], [ "than" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "death", "NN" ], [ "and", "CC" ], [ "damage", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "storm", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "max", "NN" ], [ "speed", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(4) C(6) T(0) A(4) C(5) T(0) Filter(13) A(0) C(4) T(0) Root(5) Sel(0) N(0) A(5) C(4) T(0)" }, { "db_id": "storm_record", "query": "SELECT sum(number_deaths) , sum(damage_millions_USD) FROM storm WHERE max_speed > (SELECT avg(max_speed) FROM storm)", "query_toks": [ "SELECT", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "(", "SELECT", "avg", "(", "max_speed", ")", "FROM", "storm", ")" ], "query_toks_no_value": [ "select", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "(", "select", "avg", "(", "max_speed", ")", "from", "storm", ")" ], "question": "Return the total number of deaths and total damange in millions for storms that had a max speed greater than the average.", "question_toks": [ "return", "total", "number", "of", "death", "and", "total", "damange", "in", "million", "for", "storm", "that", "had", "a", "max", "speed", "greater", "than", "average", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 6, false ], null ] ], [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 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": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Return", "the", "total", "number", "of", "deaths", "and", "total", "damange", "in", "millions", "for", "storms", "that", "had", "a", "max", "speed", "greater", "than", "the", "average", "." ], "question_arg": [ [ "return" ], [ "total" ], [ "number" ], [ "of" ], [ "death" ], [ "and" ], [ "total" ], [ "damange" ], [ "in" ], [ "million" ], [ "for" ], [ "storm" ], [ "that" ], [ "had" ], [ "a" ], [ "max", "speed" ], [ "greater" ], [ "than" ], [ "average" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "death", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "damange", "NN" ], [ "in", "IN" ], [ "million", "CD" ], [ "for", "IN" ], [ "storm", "NN" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "a", "DT" ], [ "max", "NN" ], [ "speed", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(4) C(6) T(0) A(4) C(5) T(0) Filter(13) A(0) C(4) T(0) Root(5) Sel(0) N(0) A(5) C(4) T(0)" }, { "db_id": "storm_record", "query": "SELECT name , damage_millions_USD FROM storm ORDER BY max_speed DESC", "query_toks": [ "SELECT", "name", ",", "damage_millions_USD", "FROM", "storm", "ORDER", "BY", "max_speed", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "damage_millions_usd", "from", "storm", "order", "by", "max_speed", "desc" ], "question": "List name and damage for all storms in a descending order of max speed.", "question_toks": [ "list", "name", "and", "damage", "for", "all", "storm", "in", "a", "descending", "order", "of", "max", "speed", "." ], "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 ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "List", "name", "and", "damage", "for", "all", "storms", "in", "a", "descending", "order", "of", "max", "speed", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "damage" ], [ "for" ], [ "all" ], [ "storm" ], [ "in" ], [ "a" ], [ "descending" ], [ "order" ], [ "of" ], [ "max", "speed" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "damage", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "storm", "NN" ], [ "in", "IN" ], [ "a", "DT" ], [ "descending", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "max", "NN" ], [ "speed", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(0) A(0) C(5) T(0) Order(0) A(0) C(4) T(0)" }, { "db_id": "storm_record", "query": "SELECT name , damage_millions_USD FROM storm ORDER BY max_speed DESC", "query_toks": [ "SELECT", "name", ",", "damage_millions_USD", "FROM", "storm", "ORDER", "BY", "max_speed", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "damage_millions_usd", "from", "storm", "order", "by", "max_speed", "desc" ], "question": "What are the names and damage in millions for storms, ordered by their max speeds descending?", "question_toks": [ "what", "are", "name", "and", "damage", "in", "million", "for", "storm", ",", "ordered", "by", "their", "max", "speed", "descending", "?" ], "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 ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "damage", "in", "millions", "for", "storms", ",", "ordered", "by", "their", "max", "speeds", "descending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "damage" ], [ "in" ], [ "million" ], [ "for" ], [ "storm" ], [ "," ], [ "ordered" ], [ "by" ], [ "their" ], [ "max", "speed" ], [ "descending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "damage", "NN" ], [ "in", "IN" ], [ "million", "CD" ], [ "for", "IN" ], [ "storm", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "max", "NNS" ], [ "speed", "VB" ], [ "descending", "VBG" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(0) A(0) C(5) T(0) Order(0) A(0) C(4) T(0)" }, { "db_id": "storm_record", "query": "SELECT count(DISTINCT region_id) FROM affected_region", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "region_id", ")", "FROM", "affected_region" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "region_id", ")", "from", "affected_region" ], "question": "How many regions are affected?", "question_toks": [ "how", "many", "region", "are", "affected", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "How", "many", "regions", "are", "affected", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "region" ], [ "are" ], [ "affected" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "region", "NN" ], [ "are", "VBP" ], [ "affected", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(7) T(2)" }, { "db_id": "storm_record", "query": "SELECT count(DISTINCT region_id) FROM affected_region", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "region_id", ")", "FROM", "affected_region" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "region_id", ")", "from", "affected_region" ], "question": "Count the number of different affected regions.", "question_toks": [ "count", "number", "of", "different", "affected", "region", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "affected", "regions", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "affected", "region" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "affected", "JJ" ], [ "region", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(7) T(2)" }, { "db_id": "storm_record", "query": "SELECT region_name FROM region WHERE region_id NOT IN (SELECT region_id FROM affected_region)", "query_toks": [ "SELECT", "region_name", "FROM", "region", "WHERE", "region_id", "NOT", "IN", "(", "SELECT", "region_id", "FROM", "affected_region", ")" ], "query_toks_no_value": [ "select", "region_name", "from", "region", "where", "region_id", "not", "in", "(", "select", "region_id", "from", "affected_region", ")" ], "question": "Show the name for regions not affected.", "question_toks": [ "show", "name", "for", "region", "not", "affected", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Show", "the", "name", "for", "regions", "not", "affected", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "for" ], [ "region" ], [ "not" ], [ "affected" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "region", "NN" ], [ "not", "RB" ], [ "affected", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(19) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "storm_record", "query": "SELECT region_name FROM region WHERE region_id NOT IN (SELECT region_id FROM affected_region)", "query_toks": [ "SELECT", "region_name", "FROM", "region", "WHERE", "region_id", "NOT", "IN", "(", "SELECT", "region_id", "FROM", "affected_region", ")" ], "query_toks_no_value": [ "select", "region_name", "from", "region", "where", "region_id", "not", "in", "(", "select", "region_id", "from", "affected_region", ")" ], "question": "What are the names of regions that were not affected?", "question_toks": [ "what", "are", "name", "of", "region", "that", "were", "not", "affected", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "regions", "that", "were", "not", "affected", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "region" ], [ "that" ], [ "were" ], [ "not" ], [ "affected" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "region", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "not", "RB" ], [ "affected", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(19) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "storm_record", "query": "SELECT T1.region_name , count(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id", "query_toks": [ "SELECT", "T1.region_name", ",", "count", "(", "*", ")", "FROM", "region", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.region_id", "=", "T2.region_id", "GROUP", "BY", "T1.region_id" ], "query_toks_no_value": [ "select", "t1", ".", "region_name", ",", "count", "(", "*", ")", "from", "region", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "region_id", "=", "t2", ".", "region_id", "group", "by", "t1", ".", "region_id" ], "question": "Show the name for regions and the number of storms for each region.", "question_toks": [ "show", "name", "for", "region", "and", "number", "of", "storm", "for", "each", "region", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, 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": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Show", "the", "name", "for", "regions", "and", "the", "number", "of", "storms", "for", "each", "region", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "for" ], [ "region" ], [ "and" ], [ "number" ], [ "of" ], [ "storm" ], [ "for" ], [ "each" ], [ "region" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "region", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "storm", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "region", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(3) C(0) T(2)" }, { "db_id": "storm_record", "query": "SELECT T1.region_name , count(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id", "query_toks": [ "SELECT", "T1.region_name", ",", "count", "(", "*", ")", "FROM", "region", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.region_id", "=", "T2.region_id", "GROUP", "BY", "T1.region_id" ], "query_toks_no_value": [ "select", "t1", ".", "region_name", ",", "count", "(", "*", ")", "from", "region", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "region_id", "=", "t2", ".", "region_id", "group", "by", "t1", ".", "region_id" ], "question": "How many storms occured in each region?", "question_toks": [ "how", "many", "storm", "occured", "in", "each", "region", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, 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": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "How", "many", "storms", "occured", "in", "each", "region", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "storm" ], [ "occured" ], [ "in" ], [ "each" ], [ "region" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "storm", "NN" ], [ "occured", "VBN" ], [ "in", "IN" ], [ "each", "DT" ], [ "region", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(3) C(0) T(2)" }, { "db_id": "storm_record", "query": "SELECT T1.name , count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id", "query_toks": [ "SELECT", "T1.name", ",", "count", "(", "*", ")", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id" ], "question": "List the name for storms and the number of affected regions for each storm.", "question_toks": [ "list", "name", "for", "storm", "and", "number", "of", "affected", "region", "for", "each", "storm", "." ], "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": [ [ 0, 1, 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": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "List", "the", "name", "for", "storms", "and", "the", "number", "of", "affected", "regions", "for", "each", "storm", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "for" ], [ "storm" ], [ "and" ], [ "number" ], [ "of" ], [ "affected", "region" ], [ "for" ], [ "each" ], [ "storm" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "storm", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "affected", "JJ" ], [ "region", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "storm", "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": "storm_record", "query": "SELECT T1.name , count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id", "query_toks": [ "SELECT", "T1.name", ",", "count", "(", "*", ")", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id" ], "question": "How many regions were affected by each storm?", "question_toks": [ "how", "many", "region", "were", "affected", "by", "each", "storm", "?" ], "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": [ [ 0, 1, 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": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "How", "many", "regions", "were", "affected", "by", "each", "storm", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "region" ], [ "were" ], [ "affected" ], [ "by" ], [ "each" ], [ "storm" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "region", "NN" ], [ "were", "VBD" ], [ "affected", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "storm", "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": "storm_record", "query": "SELECT T1.name , T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", ",", "T1.max_speed", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "max_speed", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the storm name and max speed which affected the greatest number of regions?", "question_toks": [ "what", "is", "storm", "name", "and", "max", "speed", "which", "affected", "greatest", "number", "of", "region", "?" ], "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": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 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, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "is", "the", "storm", "name", "and", "max", "speed", "which", "affected", "the", "greatest", "number", "of", "regions", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "storm" ], [ "name" ], [ "and" ], [ "max", "speed" ], [ "which" ], [ "affected" ], [ "greatest" ], [ "number" ], [ "of" ], [ "region" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "storm", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "max", "NNS" ], [ "speed", "NN" ], [ "which", "WDT" ], [ "affected", "VBD" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "region", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(2) T(0) A(0) C(4) 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": "storm_record", "query": "SELECT T1.name , T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", ",", "T1.max_speed", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "max_speed", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the name and max speed of the storm that affected the most regions.", "question_toks": [ "return", "name", "and", "max", "speed", "of", "storm", "that", "affected", "most", "region", "." ], "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": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 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, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Return", "the", "name", "and", "max", "speed", "of", "the", "storm", "that", "affected", "the", "most", "regions", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "and" ], [ "max", "speed" ], [ "of" ], [ "storm" ], [ "that" ], [ "affected" ], [ "most" ], [ "region" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "max", "JJ" ], [ "speed", "NN" ], [ "of", "IN" ], [ "storm", "NN" ], [ "that", "WDT" ], [ "affected", "VBD" ], [ "most", "RBS" ], [ "region", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(2) T(0) A(0) C(4) 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": "storm_record", "query": "SELECT name FROM storm WHERE storm_id NOT IN (SELECT storm_id FROM affected_region)", "query_toks": [ "SELECT", "name", "FROM", "storm", "WHERE", "storm_id", "NOT", "IN", "(", "SELECT", "storm_id", "FROM", "affected_region", ")" ], "query_toks_no_value": [ "select", "name", "from", "storm", "where", "storm_id", "not", "in", "(", "select", "storm_id", "from", "affected_region", ")" ], "question": "Show the name of storms which don't have affected region in record.", "question_toks": [ "show", "name", "of", "storm", "which", "do", "n't", "have", "affected", "region", "in", "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 ] ] ] ], "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": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Show", "the", "name", "of", "storms", "which", "do", "n't", "have", "affected", "region", "in", "record", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "storm" ], [ "which" ], [ "do" ], [ "n't" ], [ "have" ], [ "affected", "region" ], [ "in" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "storm", "NN" ], [ "which", "WDT" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "have", "VB" ], [ "affected", "VBN" ], [ "region", "NN" ], [ "in", "IN" ], [ "record", "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": "storm_record", "query": "SELECT name FROM storm WHERE storm_id NOT IN (SELECT storm_id FROM affected_region)", "query_toks": [ "SELECT", "name", "FROM", "storm", "WHERE", "storm_id", "NOT", "IN", "(", "SELECT", "storm_id", "FROM", "affected_region", ")" ], "query_toks_no_value": [ "select", "name", "from", "storm", "where", "storm_id", "not", "in", "(", "select", "storm_id", "from", "affected_region", ")" ], "question": "What are the names of storms that did not affect any regions?", "question_toks": [ "what", "are", "name", "of", "storm", "that", "did", "not", "affect", "any", "region", "?" ], "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, 11, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "storms", "that", "did", "not", "affect", "any", "regions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "storm" ], [ "that" ], [ "did" ], [ "not" ], [ "affect" ], [ "any" ], [ "region" ], [ "?" ] ], "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" ], [ "storm", "NN" ], [ "that", "WDT" ], [ "did", "VBD" ], [ "not", "RB" ], [ "affect", "VB" ], [ "any", "DT" ], [ "region", "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": "storm_record", "query": "SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING sum(T2.number_city_affected) >= 10", "query_toks": [ "SELECT", "T1.name", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "HAVING", "count", "(", "*", ")", ">", "=", "2", "INTERSECT", "SELECT", "T1.name", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "HAVING", "sum", "(", "T2.number_city_affected", ")", ">", "=", "10" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "having", "count", "(", "*", ")", ">", "=", "value", "intersect", "select", "t1", ".", "name", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "having", "sum", "(", "t2", ".", "number_city_affected", ")", ">", "=", "value" ], "question": "Show storm name with at least two regions and 10 cities affected.", "question_toks": [ "show", "storm", "name", "with", "at", "least", "two", "region", "and", "10", "city", "affected", "." ], "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": [ [ 0, 1, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "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": [ [ 0, 1, false ] ], "having": [ [ false, 5, [ 0, [ 4, 12, 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, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ 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 ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Show", "storm", "name", "with", "at", "least", "two", "regions", "and", "10", "cities", "affected", "." ], "question_arg": [ [ "show" ], [ "storm" ], [ "name" ], [ "with" ], [ "at" ], [ "least" ], [ "two" ], [ "region" ], [ "and" ], [ "10" ], [ "number", "city", "affected" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "storm", "NN" ], [ "name", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "region", "NN" ], [ "and", "CC" ], [ "10", "CD" ], [ "city", "NN" ], [ "affected", "VBN" ], [ ".", "." ] ], "values": [ "10", "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(1) T(2) Filter(7) A(3) C(0) T(2) 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(2) Filter(7) A(4) C(10) T(2) V(0)" }, { "db_id": "storm_record", "query": "SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING sum(T2.number_city_affected) >= 10", "query_toks": [ "SELECT", "T1.name", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "HAVING", "count", "(", "*", ")", ">", "=", "2", "INTERSECT", "SELECT", "T1.name", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "HAVING", "sum", "(", "T2.number_city_affected", ")", ">", "=", "10" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "having", "count", "(", "*", ")", ">", "=", "value", "intersect", "select", "t1", ".", "name", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "having", "sum", "(", "t2", ".", "number_city_affected", ")", ">", "=", "value" ], "question": "What are the names of storms that both affected two or more regions and affected a total of 10 or more cities?", "question_toks": [ "what", "are", "name", "of", "storm", "that", "both", "affected", "two", "or", "more", "region", "and", "affected", "a", "total", "of", "10", "or", "more", "city", "?" ], "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": [ [ 0, 1, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "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": [ [ 0, 1, false ] ], "having": [ [ false, 5, [ 0, [ 4, 12, 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, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ 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 ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "storms", "that", "both", "affected", "two", "or", "more", "regions", "and", "affected", "a", "total", "of", "10", "or", "more", "cities", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "storm" ], [ "that" ], [ "both" ], [ "affected" ], [ "two" ], [ "or" ], [ "more" ], [ "region" ], [ "and" ], [ "affected" ], [ "a" ], [ "total" ], [ "of" ], [ "10" ], [ "or" ], [ "more" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "storm", "NN" ], [ "that", "IN" ], [ "both", "DT" ], [ "affected", "JJ" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "region", "NN" ], [ "and", "CC" ], [ "affected", "VBD" ], [ "a", "DT" ], [ "total", "NN" ], [ "of", "IN" ], [ "10", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "10", "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(1) T(2) Filter(7) A(3) C(0) T(2) 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(2) Filter(7) A(4) C(10) T(2) V(0)" }, { "db_id": "storm_record", "query": "SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "name", "FROM", "storm", "EXCEPT", "SELECT", "T1.name", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "name", "from", "storm", "except", "select", "t1", ".", "name", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show all storm names except for those with at least two affected regions.", "question_toks": [ "show", "all", "storm", "name", "except", "for", "those", "with", "at", "least", "two", "affected", "region", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, 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, 2, 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 ] ] }, "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": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Show", "all", "storm", "names", "except", "for", "those", "with", "at", "least", "two", "affected", "regions", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "storm" ], [ "name" ], [ "except" ], [ "for" ], [ "those" ], [ "with" ], [ "at" ], [ "least" ], [ "two" ], [ "affected", "region" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "storm", "NN" ], [ "name", "NN" ], [ "except", "IN" ], [ "for", "IN" ], [ "those", "DT" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "affected", "JJ" ], [ "region", "NN" ], [ ".", "." ] ], "values": [ "2" ], "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(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "storm_record", "query": "SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "name", "FROM", "storm", "EXCEPT", "SELECT", "T1.name", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "name", "from", "storm", "except", "select", "t1", ".", "name", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the names of storms that did not affect two or more regions?", "question_toks": [ "what", "are", "name", "of", "storm", "that", "did", "not", "affect", "two", "or", "more", "region", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, 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, 2, 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 ] ] }, "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": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "storms", "that", "did", "not", "affect", "two", "or", "more", "regions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "storm" ], [ "that" ], [ "did" ], [ "not" ], [ "affect" ], [ "two" ], [ "or" ], [ "more" ], [ "region" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "storm", "NN" ], [ "that", "WDT" ], [ "did", "VBD" ], [ "not", "RB" ], [ "affect", "VB" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "region", "NN" ], [ "?", "." ] ], "values": [ "2" ], "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(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "storm_record", "query": "SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10", "query_toks": [ "SELECT", "T2.region_name", "FROM", "affected_region", "AS", "T1", "JOIN", "region", "AS", "T2", "ON", "T1.region_id", "=", "T2.region_id", "JOIN", "storm", "AS", "T3", "ON", "T1.storm_id", "=", "T3.storm_id", "WHERE", "T3.number_deaths", ">", "=", "10" ], "query_toks_no_value": [ "select", "t2", ".", "region_name", "from", "affected_region", "as", "t1", "join", "region", "as", "t2", "on", "t1", ".", "region_id", "=", "t2", ".", "region_id", "join", "storm", "as", "t3", "on", "t1", ".", "storm_id", "=", "t3", ".", "storm_id", "where", "t3", ".", "number_deaths", ">", "=", "value" ], "question": "What are the region names affected by the storm with a number of deaths of least 10?", "question_toks": [ "what", "are", "region", "name", "affected", "by", "storm", "with", "a", "number", "of", "death", "of", "least", "10", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 7, 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, 8, [ 0, [ 0, 7, 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, 5, [ 0, [ 0, 6, false ], null ], 10.0, null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "region", "names", "affected", "by", "the", "storm", "with", "a", "number", "of", "deaths", "of", "least", "10", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "region", "name" ], [ "affected" ], [ "by" ], [ "storm" ], [ "with" ], [ "a" ], [ "number" ], [ "of" ], [ "death" ], [ "of" ], [ "least" ], [ "10" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "region", "NN" ], [ "name", "NN" ], [ "affected", "VBN" ], [ "by", "IN" ], [ "storm", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "number", "NN" ], [ "of", "IN" ], [ "death", "NN" ], [ "of", "IN" ], [ "least", "JJS" ], [ "10", "CD" ], [ "?", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(7) A(0) C(6) T(0) V(0)" }, { "db_id": "storm_record", "query": "SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10", "query_toks": [ "SELECT", "T2.region_name", "FROM", "affected_region", "AS", "T1", "JOIN", "region", "AS", "T2", "ON", "T1.region_id", "=", "T2.region_id", "JOIN", "storm", "AS", "T3", "ON", "T1.storm_id", "=", "T3.storm_id", "WHERE", "T3.number_deaths", ">", "=", "10" ], "query_toks_no_value": [ "select", "t2", ".", "region_name", "from", "affected_region", "as", "t1", "join", "region", "as", "t2", "on", "t1", ".", "region_id", "=", "t2", ".", "region_id", "join", "storm", "as", "t3", "on", "t1", ".", "storm_id", "=", "t3", ".", "storm_id", "where", "t3", ".", "number_deaths", ">", "=", "value" ], "question": "Return the names of the regions affected by storms that had a death count of at least 10.", "question_toks": [ "return", "name", "of", "region", "affected", "by", "storm", "that", "had", "a", "death", "count", "of", "at", "least", "10", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 7, 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, 8, [ 0, [ 0, 7, 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, 5, [ 0, [ 0, 6, false ], null ], 10.0, null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Return", "the", "names", "of", "the", "regions", "affected", "by", "storms", "that", "had", "a", "death", "count", "of", "at", "least", "10", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "region" ], [ "affected" ], [ "by" ], [ "storm" ], [ "that" ], [ "had" ], [ "a" ], [ "death" ], [ "count" ], [ "of" ], [ "at" ], [ "least" ], [ "10" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "region", "NN" ], [ "affected", "VBN" ], [ "by", "IN" ], [ "storm", "NN" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "a", "DT" ], [ "death", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "10", "CD" ], [ ".", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(7) A(0) C(6) T(0) V(0)" }, { "db_id": "storm_record", "query": "SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark'", "query_toks": [ "SELECT", "T3.name", "FROM", "affected_region", "AS", "T1", "JOIN", "region", "AS", "T2", "ON", "T1.region_id", "=", "T2.region_id", "JOIN", "storm", "AS", "T3", "ON", "T1.storm_id", "=", "T3.storm_id", "WHERE", "T2.region_name", "=", "'Denmark", "'" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "affected_region", "as", "t1", "join", "region", "as", "t2", "on", "t1", ".", "region_id", "=", "t2", ".", "region_id", "join", "storm", "as", "t3", "on", "t1", ".", "storm_id", "=", "t3", ".", "storm_id", "where", "t2", ".", "region_name", "=", "value" ], "question": "Show all storm names affecting region \"Denmark\".", "question_toks": [ "show", "all", "storm", "name", "affecting", "region", "'", "denmark", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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, 9, false ], null ], "\"Denmark\"", null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Show", "all", "storm", "names", "affecting", "region", "``", "Denmark", "''", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "storm" ], [ "name" ], [ "affecting" ], [ "region" ], [ "'" ], [ "denmark" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "storm", "NN" ], [ "name", "NN" ], [ "affecting", "VBG" ], [ "region", "NN" ], [ "'", "''" ], [ "denmark", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Denmark" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "storm_record", "query": "SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark'", "query_toks": [ "SELECT", "T3.name", "FROM", "affected_region", "AS", "T1", "JOIN", "region", "AS", "T2", "ON", "T1.region_id", "=", "T2.region_id", "JOIN", "storm", "AS", "T3", "ON", "T1.storm_id", "=", "T3.storm_id", "WHERE", "T2.region_name", "=", "'Denmark", "'" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "affected_region", "as", "t1", "join", "region", "as", "t2", "on", "t1", ".", "region_id", "=", "t2", ".", "region_id", "join", "storm", "as", "t3", "on", "t1", ".", "storm_id", "=", "t3", ".", "storm_id", "where", "t2", ".", "region_name", "=", "value" ], "question": "What are the names of the storms that affected Denmark?", "question_toks": [ "what", "are", "name", "of", "storm", "that", "affected", "denmark", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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, 9, false ], null ], "\"Denmark\"", null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "storms", "that", "affected", "Denmark", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "storm" ], [ "that" ], [ "affected" ], [ "denmark" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "storm", "NN" ], [ "that", "WDT" ], [ "affected", "VBD" ], [ "denmark", "NN" ], [ "?", "." ] ], "values": [ "Denmark" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "storm_record", "query": "SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.region_name", "FROM", "region", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.region_id", "=", "T2.region_id", "GROUP", "BY", "T1.region_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "region_name", "from", "region", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "region_id", "=", "t2", ".", "region_id", "group", "by", "t1", ".", "region_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the region name with at least two storms.", "question_toks": [ "show", "region", "name", "with", "at", "least", "two", "storm", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Show", "the", "region", "name", "with", "at", "least", "two", "storms", "." ], "question_arg": [ [ "show" ], [ "region", "name" ], [ "with" ], [ "at" ], [ "least" ], [ "two" ], [ "storm" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "region", "NN" ], [ "name", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "storm", "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(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "storm_record", "query": "SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.region_name", "FROM", "region", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.region_id", "=", "T2.region_id", "GROUP", "BY", "T1.region_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "region_name", "from", "region", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "region_id", "=", "t2", ".", "region_id", "group", "by", "t1", ".", "region_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the names of regions with two or more storms?", "question_toks": [ "what", "are", "name", "of", "region", "with", "two", "or", "more", "storm", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "regions", "with", "two", "or", "more", "storms", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "region" ], [ "with" ], [ "two" ], [ "or" ], [ "more" ], [ "storm" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "region", "NN" ], [ "with", "IN" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "storm", "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(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "storm_record", "query": "SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1", "query_toks": [ "SELECT", "T2.region_name", "FROM", "affected_region", "AS", "T1", "JOIN", "region", "AS", "T2", "ON", "T1.region_id", "=", "T2.region_id", "JOIN", "storm", "AS", "T3", "ON", "T1.storm_id", "=", "T3.storm_id", "ORDER", "BY", "T3.Number_Deaths", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "region_name", "from", "affected_region", "as", "t1", "join", "region", "as", "t2", "on", "t1", ".", "region_id", "=", "t2", ".", "region_id", "join", "storm", "as", "t3", "on", "t1", ".", "storm_id", "=", "t3", ".", "storm_id", "order", "by", "t3", ".", "number_deaths", "desc", "limit", "value" ], "question": "Find the names of the regions which were affected by the storm that killed the greatest number of people.", "question_toks": [ "find", "name", "of", "region", "which", "were", "affected", "by", "storm", "that", "killed", "greatest", "number", "of", "people", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 7, 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": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "regions", "which", "were", "affected", "by", "the", "storm", "that", "killed", "the", "greatest", "number", "of", "people", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "region" ], [ "which" ], [ "were" ], [ "affected" ], [ "by" ], [ "storm" ], [ "that" ], [ "killed" ], [ "greatest" ], [ "number" ], [ "of" ], [ "people" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "region", "NN" ], [ "which", "WDT" ], [ "were", "VBD" ], [ "affected", "VBN" ], [ "by", "IN" ], [ "storm", "NN" ], [ "that", "WDT" ], [ "killed", "VBD" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(9) T(1) Sup(0) A(0) C(6) T(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "storm_record", "query": "SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1", "query_toks": [ "SELECT", "T2.region_name", "FROM", "affected_region", "AS", "T1", "JOIN", "region", "AS", "T2", "ON", "T1.region_id", "=", "T2.region_id", "JOIN", "storm", "AS", "T3", "ON", "T1.storm_id", "=", "T3.storm_id", "ORDER", "BY", "T3.Number_Deaths", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "region_name", "from", "affected_region", "as", "t1", "join", "region", "as", "t2", "on", "t1", ".", "region_id", "=", "t2", ".", "region_id", "join", "storm", "as", "t3", "on", "t1", ".", "storm_id", "=", "t3", ".", "storm_id", "order", "by", "t3", ".", "number_deaths", "desc", "limit", "value" ], "question": "What are the names of regions that were affected by the storm in which the most people died?", "question_toks": [ "what", "are", "name", "of", "region", "that", "were", "affected", "by", "storm", "in", "which", "most", "people", "died", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 7, 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": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "regions", "that", "were", "affected", "by", "the", "storm", "in", "which", "the", "most", "people", "died", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "region" ], [ "that" ], [ "were" ], [ "affected" ], [ "by" ], [ "storm" ], [ "in" ], [ "which" ], [ "most" ], [ "people" ], [ "died" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "region", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "affected", "VBN" ], [ "by", "IN" ], [ "storm", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "most", "JJS" ], [ "people", "NNS" ], [ "died", "VBD" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(9) T(1) Sup(0) A(0) C(6) T(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "storm_record", "query": "SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Albania'", "query_toks": [ "SELECT", "T3.Name", "FROM", "affected_region", "AS", "T1", "JOIN", "region", "AS", "T2", "ON", "T1.region_id", "=", "T2.region_id", "JOIN", "storm", "AS", "T3", "ON", "T1.storm_id", "=", "T3.storm_id", "WHERE", "T2.Region_name", "=", "'Afghanistan", "'", "INTERSECT", "SELECT", "T3.Name", "FROM", "affected_region", "AS", "T1", "JOIN", "region", "AS", "T2", "ON", "T1.region_id", "=", "T2.region_id", "JOIN", "storm", "AS", "T3", "ON", "T1.storm_id", "=", "T3.storm_id", "WHERE", "T2.Region_name", "=", "'Albania", "'" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "affected_region", "as", "t1", "join", "region", "as", "t2", "on", "t1", ".", "region_id", "=", "t2", ".", "region_id", "join", "storm", "as", "t3", "on", "t1", ".", "storm_id", "=", "t3", ".", "storm_id", "where", "t2", ".", "region_name", "=", "value", "intersect", "select", "t3", ".", "name", "from", "affected_region", "as", "t1", "join", "region", "as", "t2", "on", "t1", ".", "region_id", "=", "t2", ".", "region_id", "join", "storm", "as", "t3", "on", "t1", ".", "storm_id", "=", "t3", ".", "storm_id", "where", "t2", ".", "region_name", "=", "value" ], "question": "Find the name of the storm that affected both Afghanistan and Albania regions.", "question_toks": [ "find", "name", "of", "storm", "that", "affected", "both", "afghanistan", "and", "albania", "region", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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, 9, false ], null ], "\"Albania\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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, 9, false ], null ], "\"Afghanistan\"", null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "storm", "that", "affected", "both", "Afghanistan", "and", "Albania", "regions", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "storm" ], [ "that" ], [ "affected" ], [ "both" ], [ "afghanistan" ], [ "and" ], [ "albania" ], [ "region" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "storm", "NN" ], [ "that", "WDT" ], [ "affected", "VBD" ], [ "both", "DT" ], [ "afghanistan", "NNS" ], [ "and", "CC" ], [ "albania", "JJ" ], [ "region", "NN" ], [ ".", "." ] ], "values": [ "Afghanistan", "Albania" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(9) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(9) T(1) V(1)" }, { "db_id": "storm_record", "query": "SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Albania'", "query_toks": [ "SELECT", "T3.Name", "FROM", "affected_region", "AS", "T1", "JOIN", "region", "AS", "T2", "ON", "T1.region_id", "=", "T2.region_id", "JOIN", "storm", "AS", "T3", "ON", "T1.storm_id", "=", "T3.storm_id", "WHERE", "T2.Region_name", "=", "'Afghanistan", "'", "INTERSECT", "SELECT", "T3.Name", "FROM", "affected_region", "AS", "T1", "JOIN", "region", "AS", "T2", "ON", "T1.region_id", "=", "T2.region_id", "JOIN", "storm", "AS", "T3", "ON", "T1.storm_id", "=", "T3.storm_id", "WHERE", "T2.Region_name", "=", "'Albania", "'" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "affected_region", "as", "t1", "join", "region", "as", "t2", "on", "t1", ".", "region_id", "=", "t2", ".", "region_id", "join", "storm", "as", "t3", "on", "t1", ".", "storm_id", "=", "t3", ".", "storm_id", "where", "t2", ".", "region_name", "=", "value", "intersect", "select", "t3", ".", "name", "from", "affected_region", "as", "t1", "join", "region", "as", "t2", "on", "t1", ".", "region_id", "=", "t2", ".", "region_id", "join", "storm", "as", "t3", "on", "t1", ".", "storm_id", "=", "t3", ".", "storm_id", "where", "t2", ".", "region_name", "=", "value" ], "question": "What are the names of the storms that affected both the regions of Afghanistan and Albania?", "question_toks": [ "what", "are", "name", "of", "storm", "that", "affected", "both", "region", "of", "afghanistan", "and", "albania", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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, 9, false ], null ], "\"Albania\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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, 9, false ], null ], "\"Afghanistan\"", null ] ] }, "names": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "region id", "storm id", "number city affected" ], "table_names": [ "storm", "region", "affected region" ], "col_set": [ "*", "storm id", "name", "dates active", "max speed", "damage millions usd", "number deaths", "region id", "region code", "region name", "number city affected" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "storms", "that", "affected", "both", "the", "regions", "of", "Afghanistan", "and", "Albania", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "storm" ], [ "that" ], [ "affected" ], [ "both" ], [ "region" ], [ "of" ], [ "afghanistan" ], [ "and" ], [ "albania" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "storm", "NN" ], [ "that", "WDT" ], [ "affected", "VBD" ], [ "both", "DT" ], [ "region", "NN" ], [ "of", "IN" ], [ "afghanistan", "NN" ], [ "and", "CC" ], [ "albania", "NN" ], [ "?", "." ] ], "values": [ "Afghanistan", "Albania" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(9) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(9) T(1) V(1)" }, { "db_id": "election", "query": "SELECT count(*) FROM county", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "county" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "county" ], "question": "How many counties are there in total?", "question_toks": [ "how", "many", "county", "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": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "How", "many", "counties", "are", "there", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "county" ], [ "are" ], [ "there" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "county", "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": "election", "query": "SELECT count(*) FROM county", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "county" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "county" ], "question": "Count the total number of counties.", "question_toks": [ "count", "total", "number", "of", "county", "." ], "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": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Count", "the", "total", "number", "of", "counties", "." ], "question_arg": [ [ "count" ], [ "total" ], [ "number" ], [ "of" ], [ "county" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "election", "query": "SELECT County_name , Population FROM county", "query_toks": [ "SELECT", "County_name", ",", "Population", "FROM", "county" ], "query_toks_no_value": [ "select", "county_name", ",", "population", "from", "county" ], "question": "Show the county name and population of all counties.", "question_toks": [ "show", "county", "name", "and", "population", "of", "all", "county", "." ], "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": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "the", "county", "name", "and", "population", "of", "all", "counties", "." ], "question_arg": [ [ "show" ], [ "county", "name" ], [ "and" ], [ "population" ], [ "of" ], [ "all" ], [ "county" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "county", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "population", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "county", "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": "election", "query": "SELECT County_name , Population FROM county", "query_toks": [ "SELECT", "County_name", ",", "Population", "FROM", "county" ], "query_toks_no_value": [ "select", "county_name", ",", "population", "from", "county" ], "question": "What are the name and population of each county?", "question_toks": [ "what", "are", "name", "and", "population", "of", "each", "county", "?" ], "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": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "population", "of", "each", "county", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "population" ], [ "of" ], [ "each" ], [ "county" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "population", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "county", "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": "election", "query": "SELECT avg(Population) FROM county", "query_toks": [ "SELECT", "avg", "(", "Population", ")", "FROM", "county" ], "query_toks_no_value": [ "select", "avg", "(", "population", ")", "from", "county" ], "question": "Show the average population of all counties.", "question_toks": [ "show", "average", "population", "of", "all", "county", "." ], "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": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "the", "average", "population", "of", "all", "counties", "." ], "question_arg": [ [ "show" ], [ "average" ], [ "population" ], [ "of" ], [ "all" ], [ "county" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "average", "JJ" ], [ "population", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "county", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(3) T(0)" }, { "db_id": "election", "query": "SELECT avg(Population) FROM county", "query_toks": [ "SELECT", "avg", "(", "Population", ")", "FROM", "county" ], "query_toks_no_value": [ "select", "avg", "(", "population", ")", "from", "county" ], "question": "On average how large is the population of the counties?", "question_toks": [ "on", "average", "how", "large", "is", "population", "of", "county", "?" ], "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": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "On", "average", "how", "large", "is", "the", "population", "of", "the", "counties", "?" ], "question_arg": [ [ "on" ], [ "average" ], [ "how" ], [ "large" ], [ "is" ], [ "population" ], [ "of" ], [ "county" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "on", "IN" ], [ "average", "JJ" ], [ "how", "WRB" ], [ "large", "JJ" ], [ "is", "VBZ" ], [ "population", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(3) T(0)" }, { "db_id": "election", "query": "SELECT max(Population) , min(Population) FROM county", "query_toks": [ "SELECT", "max", "(", "Population", ")", ",", "min", "(", "Population", ")", "FROM", "county" ], "query_toks_no_value": [ "select", "max", "(", "population", ")", ",", "min", "(", "population", ")", "from", "county" ], "question": "Return the maximum and minimum population among all counties.", "question_toks": [ "return", "maximum", "and", "minimum", "population", "among", "all", "county", "." ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Return", "the", "maximum", "and", "minimum", "population", "among", "all", "counties", "." ], "question_arg": [ [ "return" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "population" ], [ "among" ], [ "all" ], [ "county" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "maximum", "NN" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "population", "NN" ], [ "among", "IN" ], [ "all", "DT" ], [ "county", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(3) T(0) A(2) C(3) T(0)" }, { "db_id": "election", "query": "SELECT max(Population) , min(Population) FROM county", "query_toks": [ "SELECT", "max", "(", "Population", ")", ",", "min", "(", "Population", ")", "FROM", "county" ], "query_toks_no_value": [ "select", "max", "(", "population", ")", ",", "min", "(", "population", ")", "from", "county" ], "question": "What are the maximum and minimum population of the counties?", "question_toks": [ "what", "are", "maximum", "and", "minimum", "population", "of", "county", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "maximum", "and", "minimum", "population", "of", "the", "counties", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "population" ], [ "of" ], [ "county" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "population", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(3) T(0) A(2) C(3) T(0)" }, { "db_id": "election", "query": "SELECT DISTINCT District FROM election", "query_toks": [ "SELECT", "DISTINCT", "District", "FROM", "election" ], "query_toks_no_value": [ "select", "distinct", "district", "from", "election" ], "question": "Show all the distinct districts for elections.", "question_toks": [ "show", "all", "distinct", "district", "for", "election", "." ], "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": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "all", "the", "distinct", "districts", "for", "elections", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "distinct" ], [ "district" ], [ "for" ], [ "election" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "district", "NN" ], [ "for", "IN" ], [ "election", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(15) T(2)" }, { "db_id": "election", "query": "SELECT DISTINCT District FROM election", "query_toks": [ "SELECT", "DISTINCT", "District", "FROM", "election" ], "query_toks_no_value": [ "select", "distinct", "district", "from", "election" ], "question": "What are the distinct districts for elections?", "question_toks": [ "what", "are", "distinct", "district", "for", "election", "?" ], "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": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "distinct", "districts", "for", "elections", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "district" ], [ "for" ], [ "election" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "district", "NN" ], [ "for", "IN" ], [ "election", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(15) T(2)" }, { "db_id": "election", "query": "SELECT Zip_code FROM county WHERE County_name = \"Howard\"", "query_toks": [ "SELECT", "Zip_code", "FROM", "county", "WHERE", "County_name", "=", "``", "Howard", "''" ], "query_toks_no_value": [ "select", "zip_code", "from", "county", "where", "county_name", "=", "value" ], "question": "Show the zip code of the county with name \"Howard\".", "question_toks": [ "show", "zip", "code", "of", "county", "with", "name", "'", "howard", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Howard\"", null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "the", "zip", "code", "of", "the", "county", "with", "name", "``", "Howard", "''", "." ], "question_arg": [ [ "show" ], [ "zip", "code" ], [ "of" ], [ "county" ], [ "with" ], [ "name" ], [ "'" ], [ "howard" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "zip", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "howard", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Howard" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "election", "query": "SELECT Zip_code FROM county WHERE County_name = \"Howard\"", "query_toks": [ "SELECT", "Zip_code", "FROM", "county", "WHERE", "County_name", "=", "``", "Howard", "''" ], "query_toks_no_value": [ "select", "zip_code", "from", "county", "where", "county_name", "=", "value" ], "question": "What is the zip code the county named \"Howard\" is located in?", "question_toks": [ "what", "is", "zip", "code", "county", "named", "'", "howard", "'", "is", "located", "in", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Howard\"", null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "zip", "code", "the", "county", "named", "``", "Howard", "''", "is", "located", "in", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "zip", "code" ], [ "county" ], [ "named" ], [ "'" ], [ "howard" ], [ "'" ], [ "is" ], [ "located" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "zip", "JJ" ], [ "code", "NN" ], [ "county", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "howard", "NN" ], [ "'", "''" ], [ "is", "VBZ" ], [ "located", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "Howard" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "election", "query": "SELECT Delegate FROM election WHERE District = 1", "query_toks": [ "SELECT", "Delegate", "FROM", "election", "WHERE", "District", "=", "1" ], "query_toks_no_value": [ "select", "delegate", "from", "election", "where", "district", "=", "value" ], "question": "Show the delegate from district 1 in election.", "question_toks": [ "show", "delegate", "from", "district", "1", "in", "election", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], 1.0, null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "the", "delegate", "from", "district", "1", "in", "election", "." ], "question_arg": [ [ "show" ], [ "delegate" ], [ "from" ], [ "district" ], [ "1" ], [ "in" ], [ "election" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "delegate", "NN" ], [ "from", "IN" ], [ "district", "NN" ], [ "1", "CD" ], [ "in", "IN" ], [ "election", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(2) A(0) C(15) T(2) V(0)" }, { "db_id": "election", "query": "SELECT Delegate FROM election WHERE District = 1", "query_toks": [ "SELECT", "Delegate", "FROM", "election", "WHERE", "District", "=", "1" ], "query_toks_no_value": [ "select", "delegate", "from", "election", "where", "district", "=", "value" ], "question": "Who is the delegate of district 1 in the elections?", "question_toks": [ "who", "is", "delegate", "of", "district", "1", "in", "election", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], 1.0, null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Who", "is", "the", "delegate", "of", "district", "1", "in", "the", "elections", "?" ], "question_arg": [ [ "who" ], [ "is" ], [ "delegate" ], [ "of" ], [ "district" ], [ "1" ], [ "in" ], [ "election" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "delegate", "NN" ], [ "of", "IN" ], [ "district", "NN" ], [ "1", "CD" ], [ "in", "IN" ], [ "election", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(2) A(0) C(15) T(2) V(0)" }, { "db_id": "election", "query": "SELECT Delegate , Committee FROM election", "query_toks": [ "SELECT", "Delegate", ",", "Committee", "FROM", "election" ], "query_toks_no_value": [ "select", "delegate", ",", "committee", "from", "election" ], "question": "Show the delegate and committee information of elections.", "question_toks": [ "show", "delegate", "and", "committee", "information", "of", "election", "." ], "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, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "the", "delegate", "and", "committee", "information", "of", "elections", "." ], "question_arg": [ [ "show" ], [ "delegate" ], [ "and" ], [ "committee" ], [ "information" ], [ "of" ], [ "election" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "delegate", "NN" ], [ "and", "CC" ], [ "committee", "NN" ], [ "information", "NN" ], [ "of", "IN" ], [ "election", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(16) T(2) A(0) C(18) T(2)" }, { "db_id": "election", "query": "SELECT Delegate , Committee FROM election", "query_toks": [ "SELECT", "Delegate", ",", "Committee", "FROM", "election" ], "query_toks_no_value": [ "select", "delegate", ",", "committee", "from", "election" ], "question": "What are the delegate and committee information for each election record?", "question_toks": [ "what", "are", "delegate", "and", "committee", "information", "for", "each", "election", "record", "?" ], "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, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "delegate", "and", "committee", "information", "for", "each", "election", "record", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "delegate" ], [ "and" ], [ "committee" ], [ "information" ], [ "for" ], [ "each" ], [ "election" ], [ "record" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "delegate", "JJ" ], [ "and", "CC" ], [ "committee", "NN" ], [ "information", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "election", "NN" ], [ "record", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(16) T(2) A(0) C(18) T(2)" }, { "db_id": "election", "query": "SELECT count(DISTINCT Governor) FROM party", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Governor", ")", "FROM", "party" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "governor", ")", "from", "party" ], "question": "How many distinct governors are there?", "question_toks": [ "how", "many", "distinct", "governor", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 8, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "How", "many", "distinct", "governors", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "governor" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "governor", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(8) T(1)" }, { "db_id": "election", "query": "SELECT count(DISTINCT Governor) FROM party", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Governor", ")", "FROM", "party" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "governor", ")", "from", "party" ], "question": "Count the number of distinct governors.", "question_toks": [ "count", "number", "of", "distinct", "governor", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 8, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Count", "the", "number", "of", "distinct", "governors", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "distinct" ], [ "governor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "governor", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(8) T(1)" }, { "db_id": "election", "query": "SELECT Lieutenant_Governor , Comptroller FROM party WHERE Party = \"Democratic\"", "query_toks": [ "SELECT", "Lieutenant_Governor", ",", "Comptroller", "FROM", "party", "WHERE", "Party", "=", "``", "Democratic", "''" ], "query_toks_no_value": [ "select", "lieutenant_governor", ",", "comptroller", "from", "party", "where", "party", "=", "value" ], "question": "Show the lieutenant governor and comptroller from the democratic party.", "question_toks": [ "show", "lieutenant", "governor", "and", "comptroller", "from", "democratic", "party", "." ], "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, 7, false ], null ], "\"Democratic\"", null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "the", "lieutenant", "governor", "and", "comptroller", "from", "the", "democratic", "party", "." ], "question_arg": [ [ "show" ], [ "lieutenant", "governor" ], [ "and" ], [ "comptroller" ], [ "from" ], [ "democratic" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "lieutenant", "JJ" ], [ "governor", "NN" ], [ "and", "CC" ], [ "comptroller", "NN" ], [ "from", "IN" ], [ "democratic", "JJ" ], [ "party", "NN" ], [ ".", "." ] ], "values": [ "Democratic" ], "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(7) T(1) V(0)" }, { "db_id": "election", "query": "SELECT Lieutenant_Governor , Comptroller FROM party WHERE Party = \"Democratic\"", "query_toks": [ "SELECT", "Lieutenant_Governor", ",", "Comptroller", "FROM", "party", "WHERE", "Party", "=", "``", "Democratic", "''" ], "query_toks_no_value": [ "select", "lieutenant_governor", ",", "comptroller", "from", "party", "where", "party", "=", "value" ], "question": "Who are the lieutenant governor and comptroller from the democratic party?", "question_toks": [ "who", "are", "lieutenant", "governor", "and", "comptroller", "from", "democratic", "party", "?" ], "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, 7, false ], null ], "\"Democratic\"", null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Who", "are", "the", "lieutenant", "governor", "and", "comptroller", "from", "the", "democratic", "party", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "lieutenant", "governor" ], [ "and" ], [ "comptroller" ], [ "from" ], [ "democratic" ], [ "party" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "lieutenant", "JJ" ], [ "governor", "NN" ], [ "and", "CC" ], [ "comptroller", "NN" ], [ "from", "IN" ], [ "democratic", "JJ" ], [ "party", "NN" ], [ "?", "." ] ], "values": [ "Democratic" ], "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(7) T(1) V(0)" }, { "db_id": "election", "query": "SELECT DISTINCT YEAR FROM party WHERE Governor = \"Eliot Spitzer\"", "query_toks": [ "SELECT", "DISTINCT", "YEAR", "FROM", "party", "WHERE", "Governor", "=", "``", "Eliot", "Spitzer", "''" ], "query_toks_no_value": [ "select", "distinct", "year", "from", "party", "where", "governor", "=", "value" ], "question": "In which distinct years was the governor \"Eliot Spitzer\"?", "question_toks": [ "in", "which", "distinct", "year", "wa", "governor", "'", "eliot", "spitzer", "'", "?" ], "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, 2, [ 0, [ 0, 8, false ], null ], "\"Eliot Spitzer\"", null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "In", "which", "distinct", "years", "was", "the", "governor", "``", "Eliot", "Spitzer", "''", "?" ], "question_arg": [ [ "in" ], [ "which" ], [ "distinct" ], [ "year" ], [ "wa" ], [ "governor" ], [ "'" ], [ "eliot" ], [ "spitzer" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "which", "WDT" ], [ "distinct", "JJ" ], [ "year", "NN" ], [ "wa", "RB" ], [ "governor", "NN" ], [ "'", "''" ], [ "eliot", "JJ" ], [ "spitzer", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Eliot Spitzer" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "election", "query": "SELECT DISTINCT YEAR FROM party WHERE Governor = \"Eliot Spitzer\"", "query_toks": [ "SELECT", "DISTINCT", "YEAR", "FROM", "party", "WHERE", "Governor", "=", "``", "Eliot", "Spitzer", "''" ], "query_toks_no_value": [ "select", "distinct", "year", "from", "party", "where", "governor", "=", "value" ], "question": "Find the distinct years when the governor was named \"Eliot Spitzer\".", "question_toks": [ "find", "distinct", "year", "when", "governor", "wa", "named", "'", "eliot", "spitzer", "'", "." ], "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, 2, [ 0, [ 0, 8, false ], null ], "\"Eliot Spitzer\"", null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Find", "the", "distinct", "years", "when", "the", "governor", "was", "named", "``", "Eliot", "Spitzer", "''", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "year" ], [ "when" ], [ "governor" ], [ "wa" ], [ "named" ], [ "'" ], [ "eliot" ], [ "spitzer" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "year", "NN" ], [ "when", "WRB" ], [ "governor", "NN" ], [ "wa", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "eliot", "JJ" ], [ "spitzer", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Eliot Spitzer" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "election", "query": "SELECT * FROM election", "query_toks": [ "SELECT", "*", "FROM", "election" ], "query_toks_no_value": [ "select", "*", "from", "election" ], "question": "Show all the information about election.", "question_toks": [ "show", "all", "information", "about", "election", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "all", "the", "information", "about", "election", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "information" ], [ "about" ], [ "election" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "election", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(0) T(2)" }, { "db_id": "election", "query": "SELECT * FROM election", "query_toks": [ "SELECT", "*", "FROM", "election" ], "query_toks_no_value": [ "select", "*", "from", "election" ], "question": "Return all the information for each election record.", "question_toks": [ "return", "all", "information", "for", "each", "election", "record", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Return", "all", "the", "information", "for", "each", "election", "record", "." ], "question_arg": [ [ "return" ], [ "all" ], [ "information" ], [ "for" ], [ "each" ], [ "election" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "all", "DT" ], [ "information", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "election", "NN" ], [ "record", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(0) T(2)" }, { "db_id": "election", "query": "SELECT T2.Delegate , T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District", "query_toks": [ "SELECT", "T2.Delegate", ",", "T1.County_name", "FROM", "county", "AS", "T1", "JOIN", "election", "AS", "T2", "ON", "T1.County_id", "=", "T2.District" ], "query_toks_no_value": [ "select", "t2", ".", "delegate", ",", "t1", ".", "county_name", "from", "county", "as", "t1", "join", "election", "as", "t2", "on", "t1", ".", "county_id", "=", "t2", ".", "district" ], "question": "Show the delegates and the names of county they belong to.", "question_toks": [ "show", "delegate", "and", "name", "of", "county", "they", "belong", "to", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, 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, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "the", "delegates", "and", "the", "names", "of", "county", "they", "belong", "to", "." ], "question_arg": [ [ "show" ], [ "delegate" ], [ "and" ], [ "name" ], [ "of" ], [ "county" ], [ "they" ], [ "belong" ], [ "to" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "delegate", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "they", "PRP" ], [ "belong", "VBP" ], [ "to", "TO" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(16) T(2) A(0) C(2) T(0)" }, { "db_id": "election", "query": "SELECT T2.Delegate , T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District", "query_toks": [ "SELECT", "T2.Delegate", ",", "T1.County_name", "FROM", "county", "AS", "T1", "JOIN", "election", "AS", "T2", "ON", "T1.County_id", "=", "T2.District" ], "query_toks_no_value": [ "select", "t2", ".", "delegate", ",", "t1", ".", "county_name", "from", "county", "as", "t1", "join", "election", "as", "t2", "on", "t1", ".", "county_id", "=", "t2", ".", "district" ], "question": "What are the delegate and name of the county they belong to, for each county?", "question_toks": [ "what", "are", "delegate", "and", "name", "of", "county", "they", "belong", "to", ",", "for", "each", "county", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, 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, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "delegate", "and", "name", "of", "the", "county", "they", "belong", "to", ",", "for", "each", "county", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "delegate" ], [ "and" ], [ "name" ], [ "of" ], [ "county" ], [ "they" ], [ "belong" ], [ "to" ], [ "," ], [ "for" ], [ "each" ], [ "county" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "delegate", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "they", "PRP" ], [ "belong", "VBP" ], [ "to", "TO" ], [ ",", "," ], [ "for", "IN" ], [ "each", "DT" ], [ "county", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(16) T(2) A(0) C(2) T(0)" }, { "db_id": "election", "query": "SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000", "query_toks": [ "SELECT", "T2.Delegate", "FROM", "county", "AS", "T1", "JOIN", "election", "AS", "T2", "ON", "T1.County_id", "=", "T2.District", "WHERE", "T1.Population", "<", "100000" ], "query_toks_no_value": [ "select", "t2", ".", "delegate", "from", "county", "as", "t1", "join", "election", "as", "t2", "on", "t1", ".", "county_id", "=", "t2", ".", "district", "where", "t1", ".", "population", "<", "value" ], "question": "Which delegates are from counties with population smaller than 100000?", "question_toks": [ "which", "delegate", "are", "from", "county", "with", "population", "smaller", "than", "100000", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, 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, 4, [ 0, [ 0, 3, false ], null ], 100000.0, null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Which", "delegates", "are", "from", "counties", "with", "population", "smaller", "than", "100000", "?" ], "question_arg": [ [ "which" ], [ "delegate" ], [ "are" ], [ "from" ], [ "county" ], [ "with" ], [ "population" ], [ "smaller" ], [ "than" ], [ "100000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "delegate", "NN" ], [ "are", "VBP" ], [ "from", "IN" ], [ "county", "NN" ], [ "with", "IN" ], [ "population", "NN" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "100000", "CD" ], [ "?", "." ] ], "values": [ "100000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(4) A(0) C(3) T(0) V(0)" }, { "db_id": "election", "query": "SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000", "query_toks": [ "SELECT", "T2.Delegate", "FROM", "county", "AS", "T1", "JOIN", "election", "AS", "T2", "ON", "T1.County_id", "=", "T2.District", "WHERE", "T1.Population", "<", "100000" ], "query_toks_no_value": [ "select", "t2", ".", "delegate", "from", "county", "as", "t1", "join", "election", "as", "t2", "on", "t1", ".", "county_id", "=", "t2", ".", "district", "where", "t1", ".", "population", "<", "value" ], "question": "Find the delegates who are from counties with population below 100000.", "question_toks": [ "find", "delegate", "who", "are", "from", "county", "with", "population", "below", "100000", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, 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, 4, [ 0, [ 0, 3, false ], null ], 100000.0, null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Find", "the", "delegates", "who", "are", "from", "counties", "with", "population", "below", "100000", "." ], "question_arg": [ [ "find" ], [ "delegate" ], [ "who" ], [ "are" ], [ "from" ], [ "county" ], [ "with" ], [ "population" ], [ "below" ], [ "100000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "delegate", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "from", "IN" ], [ "county", "NN" ], [ "with", "IN" ], [ "population", "NN" ], [ "below", "IN" ], [ "100000", "CD" ], [ ".", "." ] ], "values": [ "100000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(4) A(0) C(3) T(0) V(0)" }, { "db_id": "election", "query": "SELECT count(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T2.Delegate", ")", "FROM", "county", "AS", "T1", "JOIN", "election", "AS", "T2", "ON", "T1.County_id", "=", "T2.District", "WHERE", "T1.Population", ">", "50000" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t2", ".", "delegate", ")", "from", "county", "as", "t1", "join", "election", "as", "t2", "on", "t1", ".", "county_id", "=", "t2", ".", "district", "where", "t1", ".", "population", ">", "value" ], "question": "How many distinct delegates are from counties with population larger than 50000?", "question_toks": [ "how", "many", "distinct", "delegate", "are", "from", "county", "with", "population", "larger", "than", "50000", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 16, true ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 50000.0, null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "How", "many", "distinct", "delegates", "are", "from", "counties", "with", "population", "larger", "than", "50000", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "delegate" ], [ "are" ], [ "from" ], [ "county" ], [ "with" ], [ "population" ], [ "larger" ], [ "than" ], [ "50000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "delegate", "NN" ], [ "are", "VBP" ], [ "from", "IN" ], [ "county", "NN" ], [ "with", "IN" ], [ "population", "NN" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "50000", "CD" ], [ "?", "." ] ], "values": [ "50000" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(16) T(2) Filter(5) A(0) C(3) T(0) V(0)" }, { "db_id": "election", "query": "SELECT count(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T2.Delegate", ")", "FROM", "county", "AS", "T1", "JOIN", "election", "AS", "T2", "ON", "T1.County_id", "=", "T2.District", "WHERE", "T1.Population", ">", "50000" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t2", ".", "delegate", ")", "from", "county", "as", "t1", "join", "election", "as", "t2", "on", "t1", ".", "county_id", "=", "t2", ".", "district", "where", "t1", ".", "population", ">", "value" ], "question": "Count the number of distinct delegates who are from counties with population above 50000.", "question_toks": [ "count", "number", "of", "distinct", "delegate", "who", "are", "from", "county", "with", "population", "above", "50000", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 16, true ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 50000.0, null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Count", "the", "number", "of", "distinct", "delegates", "who", "are", "from", "counties", "with", "population", "above", "50000", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "distinct" ], [ "delegate" ], [ "who" ], [ "are" ], [ "from" ], [ "county" ], [ "with" ], [ "population" ], [ "above" ], [ "50000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "delegate", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "from", "IN" ], [ "county", "NN" ], [ "with", "IN" ], [ "population", "NN" ], [ "above", "IN" ], [ "50000", "CD" ], [ ".", "." ] ], "values": [ "50000" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(16) T(2) Filter(5) A(0) C(3) T(0) V(0)" }, { "db_id": "election", "query": "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = \"Appropriations\"", "query_toks": [ "SELECT", "T1.County_name", "FROM", "county", "AS", "T1", "JOIN", "election", "AS", "T2", "ON", "T1.County_id", "=", "T2.District", "WHERE", "T2.Committee", "=", "``", "Appropriations", "''" ], "query_toks_no_value": [ "select", "t1", ".", "county_name", "from", "county", "as", "t1", "join", "election", "as", "t2", "on", "t1", ".", "county_id", "=", "t2", ".", "district", "where", "t2", ".", "committee", "=", "value" ], "question": "What are the names of the county that the delegates on \"Appropriations\" committee belong to?", "question_toks": [ "what", "are", "name", "of", "county", "that", "delegate", "on", "'", "appropriation", "'", "committee", "belong", "to", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, 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, 19, false ], null ], "\"Appropriations\"", null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "county", "that", "the", "delegates", "on", "``", "Appropriations", "''", "committee", "belong", "to", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "county" ], [ "that" ], [ "delegate" ], [ "on" ], [ "'" ], [ "appropriation" ], [ "'" ], [ "committee" ], [ "belong" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "that", "WDT" ], [ "delegate", "VBP" ], [ "on", "IN" ], [ "'", "POS" ], [ "appropriation", "NN" ], [ "'", "''" ], [ "committee", "NN" ], [ "belong", "IN" ], [ "to", "TO" ], [ "?", "." ] ], "values": [ "Appropriations" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(18) T(2) V(0)" }, { "db_id": "election", "query": "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = \"Appropriations\"", "query_toks": [ "SELECT", "T1.County_name", "FROM", "county", "AS", "T1", "JOIN", "election", "AS", "T2", "ON", "T1.County_id", "=", "T2.District", "WHERE", "T2.Committee", "=", "``", "Appropriations", "''" ], "query_toks_no_value": [ "select", "t1", ".", "county_name", "from", "county", "as", "t1", "join", "election", "as", "t2", "on", "t1", ".", "county_id", "=", "t2", ".", "district", "where", "t2", ".", "committee", "=", "value" ], "question": "Which county do the delegates on \"Appropriations\" committee belong to? Give me the county names.", "question_toks": [ "which", "county", "do", "delegate", "on", "'", "appropriation", "'", "committee", "belong", "to", "?", "give", "me", "county", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, 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, 19, false ], null ], "\"Appropriations\"", null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Which", "county", "do", "the", "delegates", "on", "``", "Appropriations", "''", "committee", "belong", "to", "?", "Give", "me", "the", "county", "names", "." ], "question_arg": [ [ "which" ], [ "county" ], [ "do" ], [ "delegate" ], [ "on" ], [ "'" ], [ "appropriation" ], [ "'" ], [ "committee" ], [ "belong" ], [ "to" ], [ "?" ], [ "give" ], [ "me" ], [ "county", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "county", "NN" ], [ "do", "VBP" ], [ "delegate", "VB" ], [ "on", "IN" ], [ "'", "POS" ], [ "appropriation", "NN" ], [ "'", "''" ], [ "committee", "NN" ], [ "belong", "IN" ], [ "to", "TO" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "county", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Appropriations" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(18) T(2) V(0)" }, { "db_id": "election", "query": "SELECT T1.Delegate , T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID", "query_toks": [ "SELECT", "T1.Delegate", ",", "T2.Party", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID" ], "query_toks_no_value": [ "select", "t1", ".", "delegate", ",", "t2", ".", "party", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id" ], "question": "Show the delegates and the names of the party they belong to.", "question_toks": [ "show", "delegate", "and", "name", "of", "party", "they", "belong", "to", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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, 16, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "the", "delegates", "and", "the", "names", "of", "the", "party", "they", "belong", "to", "." ], "question_arg": [ [ "show" ], [ "delegate" ], [ "and" ], [ "name" ], [ "of" ], [ "party" ], [ "they" ], [ "belong" ], [ "to" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "delegate", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "they", "PRP" ], [ "belong", "VBP" ], [ "to", "TO" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(16) T(2) A(0) C(7) T(1)" }, { "db_id": "election", "query": "SELECT T1.Delegate , T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID", "query_toks": [ "SELECT", "T1.Delegate", ",", "T2.Party", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID" ], "query_toks_no_value": [ "select", "t1", ".", "delegate", ",", "t2", ".", "party", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id" ], "question": "For each delegate, find the names of the party they are part of.", "question_toks": [ "for", "each", "delegate", ",", "find", "name", "of", "party", "they", "are", "part", "of", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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, 16, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "For", "each", "delegate", ",", "find", "the", "names", "of", "the", "party", "they", "are", "part", "of", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "delegate" ], [ "," ], [ "find" ], [ "name" ], [ "of" ], [ "party" ], [ "they" ], [ "are" ], [ "part" ], [ "of" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "delegate", "NN" ], [ ",", "," ], [ "find", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "part", "NN" ], [ "of", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(16) T(2) A(0) C(7) T(1)" }, { "db_id": "election", "query": "SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1", "query_toks": [ "SELECT", "T2.Governor", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID", "WHERE", "T1.District", "=", "1" ], "query_toks_no_value": [ "select", "t2", ".", "governor", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id", "where", "t1", ".", "district", "=", "value" ], "question": "Who were the governors of the parties associated with delegates from district 1?", "question_toks": [ "who", "were", "governor", "of", "party", "associated", "with", "delegate", "from", "district", "1", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], 1.0, null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Who", "were", "the", "governors", "of", "the", "parties", "associated", "with", "delegates", "from", "district", "1", "?" ], "question_arg": [ [ "who" ], [ "were" ], [ "governor" ], [ "of" ], [ "party" ], [ "associated" ], [ "with" ], [ "delegate" ], [ "from" ], [ "district" ], [ "1" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "were", "VBD" ], [ "governor", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "delegate", "NN" ], [ "from", "IN" ], [ "district", "NN" ], [ "1", "CD" ], [ "?", "." ] ], "values": [ "1" ], "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": "election", "query": "SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1", "query_toks": [ "SELECT", "T2.Governor", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID", "WHERE", "T1.District", "=", "1" ], "query_toks_no_value": [ "select", "t2", ".", "governor", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id", "where", "t1", ".", "district", "=", "value" ], "question": "Find the parties associated with the delegates from district 1. Who served as governors of the parties?", "question_toks": [ "find", "party", "associated", "with", "delegate", "from", "district", "1.", "who", "served", "a", "governor", "of", "party", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], 1.0, null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Find", "the", "parties", "associated", "with", "the", "delegates", "from", "district", "1.", "Who", "served", "as", "governors", "of", "the", "parties", "?" ], "question_arg": [ [ "find" ], [ "party" ], [ "associated" ], [ "with" ], [ "delegate" ], [ "from" ], [ "district" ], [ "1." ], [ "who" ], [ "served" ], [ "a" ], [ "governor" ], [ "of" ], [ "party" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "party", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "delegate", "NN" ], [ "from", "IN" ], [ "district", "NN" ], [ "1.", "CD" ], [ "who", "WP" ], [ "served", "VBD" ], [ "a", "DT" ], [ "governor", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "?", "." ] ], "values": [ "1" ], "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": "election", "query": "SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2", "query_toks": [ "SELECT", "T2.Comptroller", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID", "WHERE", "T1.District", "=", "1", "OR", "T1.District", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "comptroller", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id", "where", "t1", ".", "district", "=", "value", "or", "t1", ".", "district", "=", "value" ], "question": "Who were the comptrollers of the parties associated with the delegates from district 1 or district 2?", "question_toks": [ "who", "were", "comptroller", "of", "party", "associated", "with", "delegate", "from", "district", "1", "or", "district", "2", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], 1.0, null ], "or", [ false, 2, [ 0, [ 0, 15, false ], null ], 2.0, null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Who", "were", "the", "comptrollers", "of", "the", "parties", "associated", "with", "the", "delegates", "from", "district", "1", "or", "district", "2", "?" ], "question_arg": [ [ "who" ], [ "were" ], [ "comptroller" ], [ "of" ], [ "party" ], [ "associated" ], [ "with" ], [ "delegate" ], [ "from" ], [ "district" ], [ "1" ], [ "or" ], [ "district" ], [ "2" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "were", "VBD" ], [ "comptroller", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "delegate", "NN" ], [ "from", "IN" ], [ "district", "NN" ], [ "1", "CD" ], [ "or", "CC" ], [ "district", "NN" ], [ "2", "CD" ], [ "?", "." ] ], "values": [ "2", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(1) Filter(2) A(0) C(15) T(2) V(1) Filter(2) A(0) C(15) T(2) V(0)" }, { "db_id": "election", "query": "SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2", "query_toks": [ "SELECT", "T2.Comptroller", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID", "WHERE", "T1.District", "=", "1", "OR", "T1.District", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "comptroller", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id", "where", "t1", ".", "district", "=", "value", "or", "t1", ".", "district", "=", "value" ], "question": "Find the parties associated with the delegates from district 1 or 2. Who served as comptrollers of the parties?", "question_toks": [ "find", "party", "associated", "with", "delegate", "from", "district", "1", "or", "2.", "who", "served", "a", "comptroller", "of", "party", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], 1.0, null ], "or", [ false, 2, [ 0, [ 0, 15, false ], null ], 2.0, null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Find", "the", "parties", "associated", "with", "the", "delegates", "from", "district", "1", "or", "2.", "Who", "served", "as", "comptrollers", "of", "the", "parties", "?" ], "question_arg": [ [ "find" ], [ "party" ], [ "associated" ], [ "with" ], [ "delegate" ], [ "from" ], [ "district" ], [ "1" ], [ "or" ], [ "2." ], [ "who" ], [ "served" ], [ "a" ], [ "comptroller" ], [ "of" ], [ "party" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "party", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "delegate", "NN" ], [ "from", "IN" ], [ "district", "NN" ], [ "1", "CD" ], [ "or", "CC" ], [ "2.", "CD" ], [ "who", "WP" ], [ "served", "VBD" ], [ "a", "DT" ], [ "comptroller", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "?", "." ] ], "values": [ "2", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(1) Filter(2) A(0) C(15) T(2) V(1) Filter(2) A(0) C(15) T(2) V(0)" }, { "db_id": "election", "query": "SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = \"Democratic\"", "query_toks": [ "SELECT", "T1.Committee", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID", "WHERE", "T2.Party", "=", "``", "Democratic", "''" ], "query_toks_no_value": [ "select", "t1", ".", "committee", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id", "where", "t2", ".", "party", "=", "value" ], "question": "Return all the committees that have delegates from Democratic party.", "question_toks": [ "return", "all", "committee", "that", "have", "delegate", "from", "democratic", "party", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Democratic\"", null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Return", "all", "the", "committees", "that", "have", "delegates", "from", "Democratic", "party", "." ], "question_arg": [ [ "return" ], [ "all" ], [ "committee" ], [ "that" ], [ "have" ], [ "delegate" ], [ "from" ], [ "democratic" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "all", "DT" ], [ "committee", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "delegate", "VBN" ], [ "from", "IN" ], [ "democratic", "JJ" ], [ "party", "NN" ], [ ".", "." ] ], "values": [ "Democratic" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(2) Filter(2) A(0) C(7) T(1) V(0)" }, { "db_id": "election", "query": "SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = \"Democratic\"", "query_toks": [ "SELECT", "T1.Committee", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID", "WHERE", "T2.Party", "=", "``", "Democratic", "''" ], "query_toks_no_value": [ "select", "t1", ".", "committee", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id", "where", "t2", ".", "party", "=", "value" ], "question": "Which committees have delegates from the Democratic party?", "question_toks": [ "which", "committee", "have", "delegate", "from", "democratic", "party", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Democratic\"", null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Which", "committees", "have", "delegates", "from", "the", "Democratic", "party", "?" ], "question_arg": [ [ "which" ], [ "committee" ], [ "have" ], [ "delegate" ], [ "from" ], [ "democratic" ], [ "party" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "committee", "NN" ], [ "have", "VBP" ], [ "delegate", "VBN" ], [ "from", "IN" ], [ "democratic", "JJ" ], [ "party", "NN" ], [ "?", "." ] ], "values": [ "Democratic" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(2) Filter(2) A(0) C(7) T(1) V(0)" }, { "db_id": "election", "query": "SELECT T1.County_name , COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id", "query_toks": [ "SELECT", "T1.County_name", ",", "COUNT", "(", "*", ")", "FROM", "county", "AS", "T1", "JOIN", "election", "AS", "T2", "ON", "T1.County_id", "=", "T2.District", "GROUP", "BY", "T1.County_id" ], "query_toks_no_value": [ "select", "t1", ".", "county_name", ",", "count", "(", "*", ")", "from", "county", "as", "t1", "join", "election", "as", "t2", "on", "t1", ".", "county_id", "=", "t2", ".", "district", "group", "by", "t1", ".", "county_id" ], "question": "Show the name of each county along with the corresponding number of delegates from that county.", "question_toks": [ "show", "name", "of", "each", "county", "along", "with", "corresponding", "number", "of", "delegate", "from", "that", "county", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, 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": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "the", "name", "of", "each", "county", "along", "with", "the", "corresponding", "number", "of", "delegates", "from", "that", "county", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "each" ], [ "county" ], [ "along" ], [ "with" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "delegate" ], [ "from" ], [ "that" ], [ "county" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "county", "NN" ], [ "along", "IN" ], [ "with", "IN" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "delegate", "NN" ], [ "from", "IN" ], [ "that", "DT" ], [ "county", "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": "election", "query": "SELECT T1.County_name , COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id", "query_toks": [ "SELECT", "T1.County_name", ",", "COUNT", "(", "*", ")", "FROM", "county", "AS", "T1", "JOIN", "election", "AS", "T2", "ON", "T1.County_id", "=", "T2.District", "GROUP", "BY", "T1.County_id" ], "query_toks_no_value": [ "select", "t1", ".", "county_name", ",", "count", "(", "*", ")", "from", "county", "as", "t1", "join", "election", "as", "t2", "on", "t1", ".", "county_id", "=", "t2", ".", "district", "group", "by", "t1", ".", "county_id" ], "question": "For each county, find the name of the county and the number of delegates from that county.", "question_toks": [ "for", "each", "county", ",", "find", "name", "of", "county", "and", "number", "of", "delegate", "from", "that", "county", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, 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": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "For", "each", "county", ",", "find", "the", "name", "of", "the", "county", "and", "the", "number", "of", "delegates", "from", "that", "county", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "county" ], [ "," ], [ "find" ], [ "name" ], [ "of" ], [ "county" ], [ "and" ], [ "number" ], [ "of" ], [ "delegate" ], [ "from" ], [ "that" ], [ "county" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "county", "NN" ], [ ",", "," ], [ "find", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "delegate", "NN" ], [ "from", "IN" ], [ "that", "DT" ], [ "county", "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": "election", "query": "SELECT T2.Party , COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party", "query_toks": [ "SELECT", "T2.Party", ",", "COUNT", "(", "*", ")", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID", "GROUP", "BY", "T1.Party" ], "query_toks_no_value": [ "select", "t2", ".", "party", ",", "count", "(", "*", ")", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id", "group", "by", "t1", ".", "party" ], "question": "Show the name of each party and the corresponding number of delegates from that party.", "question_toks": [ "show", "name", "of", "each", "party", "and", "corresponding", "number", "of", "delegate", "from", "that", "party", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 17, 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": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "the", "name", "of", "each", "party", "and", "the", "corresponding", "number", "of", "delegates", "from", "that", "party", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "each" ], [ "party" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "delegate" ], [ "from" ], [ "that" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "party", "NN" ], [ "and", "CC" ], [ "corresponding", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "delegate", "NN" ], [ "from", "IN" ], [ "that", "DT" ], [ "party", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(1) A(3) C(0) T(2)" }, { "db_id": "election", "query": "SELECT T2.Party , COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party", "query_toks": [ "SELECT", "T2.Party", ",", "COUNT", "(", "*", ")", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID", "GROUP", "BY", "T1.Party" ], "query_toks_no_value": [ "select", "t2", ".", "party", ",", "count", "(", "*", ")", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id", "group", "by", "t1", ".", "party" ], "question": "For each party, return the name of the party and the number of delegates from that party.", "question_toks": [ "for", "each", "party", ",", "return", "name", "of", "party", "and", "number", "of", "delegate", "from", "that", "party", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 17, 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": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "For", "each", "party", ",", "return", "the", "name", "of", "the", "party", "and", "the", "number", "of", "delegates", "from", "that", "party", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "party" ], [ "," ], [ "return" ], [ "name" ], [ "of" ], [ "party" ], [ "and" ], [ "number" ], [ "of" ], [ "delegate" ], [ "from" ], [ "that" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "party", "NN" ], [ ",", "," ], [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "delegate", "NN" ], [ "from", "IN" ], [ "that", "DT" ], [ "party", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(1) A(3) C(0) T(2)" }, { "db_id": "election", "query": "SELECT County_name FROM county ORDER BY Population ASC", "query_toks": [ "SELECT", "County_name", "FROM", "county", "ORDER", "BY", "Population", "ASC" ], "query_toks_no_value": [ "select", "county_name", "from", "county", "order", "by", "population", "asc" ], "question": "Return the names of all counties sorted by population in ascending order.", "question_toks": [ "return", "name", "of", "all", "county", "sorted", "by", "population", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Return", "the", "names", "of", "all", "counties", "sorted", "by", "population", "in", "ascending", "order", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "all" ], [ "county" ], [ "sorted" ], [ "by" ], [ "population" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "county", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "population", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(3) T(0)" }, { "db_id": "election", "query": "SELECT County_name FROM county ORDER BY Population ASC", "query_toks": [ "SELECT", "County_name", "FROM", "county", "ORDER", "BY", "Population", "ASC" ], "query_toks_no_value": [ "select", "county_name", "from", "county", "order", "by", "population", "asc" ], "question": "Sort the names of all counties in ascending order of population.", "question_toks": [ "sort", "name", "of", "all", "county", "in", "ascending", "order", "of", "population", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Sort", "the", "names", "of", "all", "counties", "in", "ascending", "order", "of", "population", "." ], "question_arg": [ [ "sort" ], [ "name" ], [ "of" ], [ "all" ], [ "county" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "population" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "sort", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "county", "NN" ], [ "in", "IN" ], [ "ascending", "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(1) A(0) C(3) T(0)" }, { "db_id": "election", "query": "SELECT County_name FROM county ORDER BY County_name DESC", "query_toks": [ "SELECT", "County_name", "FROM", "county", "ORDER", "BY", "County_name", "DESC" ], "query_toks_no_value": [ "select", "county_name", "from", "county", "order", "by", "county_name", "desc" ], "question": "Return the names of all counties sorted by county name in descending alphabetical order.", "question_toks": [ "return", "name", "of", "all", "county", "sorted", "by", "county", "name", "in", "descending", "alphabetical", "order", "." ], "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, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Return", "the", "names", "of", "all", "counties", "sorted", "by", "county", "name", "in", "descending", "alphabetical", "order", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "all" ], [ "county" ], [ "sorted" ], [ "by" ], [ "county", "name" ], [ "in" ], [ "descending" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "county", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "county", "NN" ], [ "name", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(0) A(0) C(2) T(0)" }, { "db_id": "election", "query": "SELECT County_name FROM county ORDER BY County_name DESC", "query_toks": [ "SELECT", "County_name", "FROM", "county", "ORDER", "BY", "County_name", "DESC" ], "query_toks_no_value": [ "select", "county_name", "from", "county", "order", "by", "county_name", "desc" ], "question": "Sort the names of all counties in descending alphabetical order.", "question_toks": [ "sort", "name", "of", "all", "county", "in", "descending", "alphabetical", "order", "." ], "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, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Sort", "the", "names", "of", "all", "counties", "in", "descending", "alphabetical", "order", "." ], "question_arg": [ [ "sort" ], [ "name" ], [ "of" ], [ "all" ], [ "county" ], [ "in" ], [ "descending" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "sort", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "county", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(0) A(0) C(2) T(0)" }, { "db_id": "election", "query": "SELECT County_name FROM county ORDER BY Population DESC LIMIT 1", "query_toks": [ "SELECT", "County_name", "FROM", "county", "ORDER", "BY", "Population", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "county_name", "from", "county", "order", "by", "population", "desc", "limit", "value" ], "question": "Show the name of the county with the biggest population.", "question_toks": [ "show", "name", "of", "county", "with", "biggest", "population", "." ], "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": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "the", "name", "of", "the", "county", "with", "the", "biggest", "population", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "county" ], [ "with" ], [ "biggest" ], [ "population" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "with", "IN" ], [ "biggest", "JJS" ], [ "population", "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": "election", "query": "SELECT County_name FROM county ORDER BY Population DESC LIMIT 1", "query_toks": [ "SELECT", "County_name", "FROM", "county", "ORDER", "BY", "Population", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "county_name", "from", "county", "order", "by", "population", "desc", "limit", "value" ], "question": "Which county has the largest population? Give me the name of the county.", "question_toks": [ "which", "county", "ha", "largest", "population", "?", "give", "me", "name", "of", "county", "." ], "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": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Which", "county", "has", "the", "largest", "population", "?", "Give", "me", "the", "name", "of", "the", "county", "." ], "question_arg": [ [ "which" ], [ "county" ], [ "ha" ], [ "largest" ], [ "population" ], [ "?" ], [ "give" ], [ "me" ], [ "name" ], [ "of" ], [ "county" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "county", "NN" ], [ "ha", "NN" ], [ "largest", "JJS" ], [ "population", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "of", "IN" ], [ "county", "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": "election", "query": "SELECT County_name FROM county ORDER BY Population ASC LIMIT 3", "query_toks": [ "SELECT", "County_name", "FROM", "county", "ORDER", "BY", "Population", "ASC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "county_name", "from", "county", "order", "by", "population", "asc", "limit", "value" ], "question": "Show the 3 counties with the smallest population.", "question_toks": [ "show", "3", "county", "with", "smallest", "population", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "the", "3", "counties", "with", "the", "smallest", "population", "." ], "question_arg": [ [ "show" ], [ "3" ], [ "county" ], [ "with" ], [ "smallest" ], [ "population" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "3", "CD" ], [ "county", "NN" ], [ "with", "IN" ], [ "smallest", "JJ" ], [ "population", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(1) A(0) C(3) T(0)" }, { "db_id": "election", "query": "SELECT County_name FROM county ORDER BY Population ASC LIMIT 3", "query_toks": [ "SELECT", "County_name", "FROM", "county", "ORDER", "BY", "Population", "ASC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "county_name", "from", "county", "order", "by", "population", "asc", "limit", "value" ], "question": "What are the 3 counties that have the smallest population? Give me the county names.", "question_toks": [ "what", "are", "3", "county", "that", "have", "smallest", "population", "?", "give", "me", "county", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "3", "counties", "that", "have", "the", "smallest", "population", "?", "Give", "me", "the", "county", "names", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "3" ], [ "county" ], [ "that" ], [ "have" ], [ "smallest" ], [ "population" ], [ "?" ], [ "give" ], [ "me" ], [ "county", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "3", "CD" ], [ "county", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "smallest", "VBN" ], [ "population", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "county", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(1) A(0) C(3) T(0)" }, { "db_id": "election", "query": "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "T1.County_name", "FROM", "county", "AS", "T1", "JOIN", "election", "AS", "T2", "ON", "T1.County_id", "=", "T2.District", "GROUP", "BY", "T1.County_id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "county_name", "from", "county", "as", "t1", "join", "election", "as", "t2", "on", "t1", ".", "county_id", "=", "t2", ".", "district", "group", "by", "t1", ".", "county_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the names of counties that have at least two delegates.", "question_toks": [ "show", "name", "of", "county", "that", "have", "at", "least", "two", "delegate", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, 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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "the", "names", "of", "counties", "that", "have", "at", "least", "two", "delegates", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "county" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "delegate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "county", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "delegate", "NN" ], [ ".", "." ] ], "values": [ "2" ], "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(15) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "election", "query": "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "T1.County_name", "FROM", "county", "AS", "T1", "JOIN", "election", "AS", "T2", "ON", "T1.County_id", "=", "T2.District", "GROUP", "BY", "T1.County_id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "county_name", "from", "county", "as", "t1", "join", "election", "as", "t2", "on", "t1", ".", "county_id", "=", "t2", ".", "district", "group", "by", "t1", ".", "county_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Which counties have two or more delegates? Give me the county names.", "question_toks": [ "which", "county", "have", "two", "or", "more", "delegate", "?", "give", "me", "county", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, 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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Which", "counties", "have", "two", "or", "more", "delegates", "?", "Give", "me", "the", "county", "names", "." ], "question_arg": [ [ "which" ], [ "county" ], [ "have" ], [ "two" ], [ "or" ], [ "more" ], [ "delegate" ], [ "?" ], [ "give" ], [ "me" ], [ "county", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "county", "NN" ], [ "have", "VBP" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "delegate", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "county", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "2" ], "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(15) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "election", "query": "SELECT Party FROM party GROUP BY Party HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Party", "FROM", "party", "GROUP", "BY", "Party", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "party", "from", "party", "group", "by", "party", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the name of the party that has at least two records.", "question_toks": [ "show", "name", "of", "party", "that", "ha", "at", "least", "two", "record", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "the", "name", "of", "the", "party", "that", "has", "at", "least", "two", "records", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "party" ], [ "that" ], [ "ha" ], [ "at" ], [ "least" ], [ "two" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "record", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(7) A(3) C(0) T(1) V(0)" }, { "db_id": "election", "query": "SELECT Party FROM party GROUP BY Party HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Party", "FROM", "party", "GROUP", "BY", "Party", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "party", "from", "party", "group", "by", "party", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Which party has two or more records?", "question_toks": [ "which", "party", "ha", "two", "or", "more", "record", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Which", "party", "has", "two", "or", "more", "records", "?" ], "question_arg": [ [ "which" ], [ "party" ], [ "ha" ], [ "two" ], [ "or" ], [ "more" ], [ "record" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "party", "NN" ], [ "ha", "NN" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "record", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(7) A(3) C(0) T(1) V(0)" }, { "db_id": "election", "query": "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Party", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID", "GROUP", "BY", "T1.Party", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "party", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id", "group", "by", "t1", ".", "party", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the name of the party that has the most delegates.", "question_toks": [ "show", "name", "of", "party", "that", "ha", "most", "delegate", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 17, 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, 5, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "the", "name", "of", "the", "party", "that", "has", "the", "most", "delegates", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "party" ], [ "that" ], [ "ha" ], [ "most" ], [ "delegate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "delegate", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(7) T(1) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "election", "query": "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Party", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID", "GROUP", "BY", "T1.Party", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "party", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id", "group", "by", "t1", ".", "party", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which party has the largest number of delegates?", "question_toks": [ "which", "party", "ha", "largest", "number", "of", "delegate", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 17, 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, 5, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Which", "party", "has", "the", "largest", "number", "of", "delegates", "?" ], "question_arg": [ [ "which" ], [ "party" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "delegate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "party", "NN" ], [ "ha", "NN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "delegate", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(7) T(1) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "election", "query": "SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Governor", "FROM", "party", "GROUP", "BY", "Governor", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "governor", "from", "party", "group", "by", "governor", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the people that have been governor the most times.", "question_toks": [ "show", "people", "that", "have", "been", "governor", "most", "time", "." ], "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": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "the", "people", "that", "have", "been", "governor", "the", "most", "times", "." ], "question_arg": [ [ "show" ], [ "people" ], [ "that" ], [ "have" ], [ "been" ], [ "governor" ], [ "most" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "people", "NNS" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "governor", "VBN" ], [ "most", "RBS" ], [ "time", "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": "election", "query": "SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Governor", "FROM", "party", "GROUP", "BY", "Governor", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "governor", "from", "party", "group", "by", "governor", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which people severed as governor most frequently?", "question_toks": [ "which", "people", "severed", "a", "governor", "most", "frequently", "?" ], "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": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Which", "people", "severed", "as", "governor", "most", "frequently", "?" ], "question_arg": [ [ "which" ], [ "people" ], [ "severed" ], [ "a" ], [ "governor" ], [ "most" ], [ "frequently" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "people", "NNS" ], [ "severed", "VBD" ], [ "a", "DT" ], [ "governor", "NN" ], [ "most", "RBS" ], [ "frequently", "RB" ], [ "?", "." ] ], "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": "election", "query": "SELECT Comptroller , COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Comptroller", ",", "COUNT", "(", "*", ")", "FROM", "party", "GROUP", "BY", "Comptroller", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "comptroller", ",", "count", "(", "*", ")", "from", "party", "group", "by", "comptroller", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the people that have been comptroller the most times and the corresponding number of times.", "question_toks": [ "show", "people", "that", "have", "been", "comptroller", "most", "time", "and", "corresponding", "number", "of", "time", "." ], "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 ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Show", "the", "people", "that", "have", "been", "comptroller", "the", "most", "times", "and", "the", "corresponding", "number", "of", "times", "." ], "question_arg": [ [ "show" ], [ "people" ], [ "that" ], [ "have" ], [ "been" ], [ "comptroller" ], [ "most" ], [ "time" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "people", "NNS" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "comptroller", "VBN" ], [ "most", "RBS" ], [ "time", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "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", "query": "SELECT Comptroller , COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Comptroller", ",", "COUNT", "(", "*", ")", "FROM", "party", "GROUP", "BY", "Comptroller", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "comptroller", ",", "count", "(", "*", ")", "from", "party", "group", "by", "comptroller", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which people severed as comptroller most frequently? Give me the name of the person and the frequency count.", "question_toks": [ "which", "people", "severed", "a", "comptroller", "most", "frequently", "?", "give", "me", "name", "of", "person", "and", "frequency", "count", "." ], "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 ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Which", "people", "severed", "as", "comptroller", "most", "frequently", "?", "Give", "me", "the", "name", "of", "the", "person", "and", "the", "frequency", "count", "." ], "question_arg": [ [ "which" ], [ "people" ], [ "severed" ], [ "a" ], [ "comptroller" ], [ "most" ], [ "frequently" ], [ "?" ], [ "give" ], [ "me" ], [ "name" ], [ "of" ], [ "person" ], [ "and" ], [ "frequency" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "people", "NNS" ], [ "severed", "VBD" ], [ "a", "DT" ], [ "comptroller", "NN" ], [ "most", "RBS" ], [ "frequently", "RB" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "of", "IN" ], [ "person", "NN" ], [ "and", "CC" ], [ "frequency", "NN" ], [ "count", "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", "query": "SELECT Party FROM party WHERE Party_ID NOT IN (SELECT Party FROM election)", "query_toks": [ "SELECT", "Party", "FROM", "party", "WHERE", "Party_ID", "NOT", "IN", "(", "SELECT", "Party", "FROM", "election", ")" ], "query_toks_no_value": [ "select", "party", "from", "party", "where", "party_id", "not", "in", "(", "select", "party", "from", "election", ")" ], "question": "What are the names of parties that do not have delegates in election?", "question_toks": [ "what", "are", "name", "of", "party", "that", "do", "not", "have", "delegate", "in", "election", "?" ], "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, 5, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "parties", "that", "do", "not", "have", "delegates", "in", "election", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "party" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "delegate" ], [ "in" ], [ "election" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "delegate", "NN" ], [ "in", "IN" ], [ "election", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(19) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "election", "query": "SELECT Party FROM party WHERE Party_ID NOT IN (SELECT Party FROM election)", "query_toks": [ "SELECT", "Party", "FROM", "party", "WHERE", "Party_ID", "NOT", "IN", "(", "SELECT", "Party", "FROM", "election", ")" ], "query_toks_no_value": [ "select", "party", "from", "party", "where", "party_id", "not", "in", "(", "select", "party", "from", "election", ")" ], "question": "Which parties did not have any delegates in elections?", "question_toks": [ "which", "party", "did", "not", "have", "any", "delegate", "in", "election", "?" ], "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, 5, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Which", "parties", "did", "not", "have", "any", "delegates", "in", "elections", "?" ], "question_arg": [ [ "which" ], [ "party" ], [ "did" ], [ "not" ], [ "have" ], [ "any" ], [ "delegate" ], [ "in" ], [ "election" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "party", "NN" ], [ "did", "VBD" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "delegate", "NN" ], [ "in", "IN" ], [ "election", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(19) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "election", "query": "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = \"Appropriations\" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = \"Economic Matters\"", "query_toks": [ "SELECT", "T2.Party", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID", "WHERE", "T1.Committee", "=", "``", "Appropriations", "''", "INTERSECT", "SELECT", "T2.Party", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID", "WHERE", "T1.Committee", "=", "``", "Economic", "Matters", "''" ], "query_toks_no_value": [ "select", "t2", ".", "party", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id", "where", "t1", ".", "committee", "=", "value", "intersect", "select", "t2", ".", "party", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id", "where", "t1", ".", "committee", "=", "value" ], "question": "What are the names of parties that have both delegates on \"Appropriations\" committee and", "question_toks": [ "what", "are", "name", "of", "party", "that", "have", "both", "delegate", "on", "'", "appropriation", "'", "committee", "and" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Economic Matters\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Appropriations\"", null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "parties", "that", "have", "both", "delegates", "on", "``", "Appropriations", "''", "committee", "and" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "party" ], [ "that" ], [ "have" ], [ "both" ], [ "delegate" ], [ "on" ], [ "'" ], [ "appropriation" ], [ "'" ], [ "committee" ], [ "and" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "delegate", "VBP" ], [ "on", "IN" ], [ "'", "POS" ], [ "appropriation", "NN" ], [ "'", "POS" ], [ "committee", "NN" ], [ "and", "CC" ] ], "values": [ "Appropriations", "Economic Matters" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(18) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(18) T(2) V(1)" }, { "db_id": "election", "query": "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = \"Appropriations\" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = \"Economic Matters\"", "query_toks": [ "SELECT", "T2.Party", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID", "WHERE", "T1.Committee", "=", "``", "Appropriations", "''", "INTERSECT", "SELECT", "T2.Party", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID", "WHERE", "T1.Committee", "=", "``", "Economic", "Matters", "''" ], "query_toks_no_value": [ "select", "t2", ".", "party", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id", "where", "t1", ".", "committee", "=", "value", "intersect", "select", "t2", ".", "party", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id", "where", "t1", ".", "committee", "=", "value" ], "question": "Which parties have delegates in both the \"Appropriations\" committee and the \"Economic Matters\" committee?", "question_toks": [ "which", "party", "have", "delegate", "in", "both", "'", "appropriation", "'", "committee", "and", "'", "economic", "matter", "'", "committee", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Economic Matters\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Appropriations\"", null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Which", "parties", "have", "delegates", "in", "both", "the", "``", "Appropriations", "''", "committee", "and", "the", "``", "Economic", "Matters", "''", "committee", "?" ], "question_arg": [ [ "which" ], [ "party" ], [ "have" ], [ "delegate" ], [ "in" ], [ "both" ], [ "'" ], [ "appropriation" ], [ "'" ], [ "committee" ], [ "and" ], [ "'" ], [ "economic" ], [ "matter" ], [ "'" ], [ "committee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "party", "NN" ], [ "have", "VBP" ], [ "delegate", "VBN" ], [ "in", "IN" ], [ "both", "DT" ], [ "'", "POS" ], [ "appropriation", "NN" ], [ "'", "POS" ], [ "committee", "NN" ], [ "and", "CC" ], [ "'", "POS" ], [ "economic", "JJ" ], [ "matter", "NN" ], [ "'", "''" ], [ "committee", "NN" ], [ "?", "." ] ], "values": [ "Appropriations", "Economic Matters" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(18) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(18) T(2) V(1)" }, { "db_id": "election", "query": "SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = \"Democratic\" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = \"Liberal\"", "query_toks": [ "SELECT", "T1.Committee", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID", "WHERE", "T2.Party", "=", "``", "Democratic", "''", "INTERSECT", "SELECT", "T1.Committee", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID", "WHERE", "T2.Party", "=", "``", "Liberal", "''" ], "query_toks_no_value": [ "select", "t1", ".", "committee", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id", "where", "t2", ".", "party", "=", "value", "intersect", "select", "t1", ".", "committee", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id", "where", "t2", ".", "party", "=", "value" ], "question": "Which committees have delegates from both democratic party and liberal party?", "question_toks": [ "which", "committee", "have", "delegate", "from", "both", "democratic", "party", "and", "liberal", "party", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Liberal\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Democratic\"", null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Which", "committees", "have", "delegates", "from", "both", "democratic", "party", "and", "liberal", "party", "?" ], "question_arg": [ [ "which" ], [ "committee" ], [ "have" ], [ "delegate" ], [ "from" ], [ "both" ], [ "democratic" ], [ "party" ], [ "and" ], [ "liberal" ], [ "party" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "committee", "NN" ], [ "have", "VBP" ], [ "delegate", "VBN" ], [ "from", "IN" ], [ "both", "DT" ], [ "democratic", "JJ" ], [ "party", "NN" ], [ "and", "CC" ], [ "liberal", "JJ" ], [ "party", "NN" ], [ "?", "." ] ], "values": [ "Democratic", "Liberal" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(18) T(2) Filter(2) A(0) C(7) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(18) T(2) Filter(2) A(0) C(7) T(1) V(1)" }, { "db_id": "election", "query": "SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = \"Democratic\" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = \"Liberal\"", "query_toks": [ "SELECT", "T1.Committee", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID", "WHERE", "T2.Party", "=", "``", "Democratic", "''", "INTERSECT", "SELECT", "T1.Committee", "FROM", "election", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.Party", "=", "T2.Party_ID", "WHERE", "T2.Party", "=", "``", "Liberal", "''" ], "query_toks_no_value": [ "select", "t1", ".", "committee", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id", "where", "t2", ".", "party", "=", "value", "intersect", "select", "t1", ".", "committee", "from", "election", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party", "=", "t2", ".", "party_id", "where", "t2", ".", "party", "=", "value" ], "question": "Find the committees that have delegates both from from the democratic party and the liberal party.", "question_toks": [ "find", "committee", "that", "have", "delegate", "both", "from", "from", "democratic", "party", "and", "liberal", "party", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Liberal\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Democratic\"", null ] ] }, "names": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "party", "first elected", "committee" ], "table_names": [ "county", "party", "election" ], "col_set": [ "*", "county id", "county name", "population", "zip code", "party id", "year", "party", "governor", "lieutenant governor", "comptroller", "attorney general", "us senate", "election id", "counties represented", "district", "delegate", "first elected", "committee" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "17": 5, "5": 5, "13": 13 }, "origin_question_toks": [ "Find", "the", "committees", "that", "have", "delegates", "both", "from", "from", "the", "democratic", "party", "and", "the", "liberal", "party", "." ], "question_arg": [ [ "find" ], [ "committee" ], [ "that" ], [ "have" ], [ "delegate" ], [ "both" ], [ "from" ], [ "from" ], [ "democratic" ], [ "party" ], [ "and" ], [ "liberal" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "committee", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "delegate", "VBN" ], [ "both", "DT" ], [ "from", "IN" ], [ "from", "IN" ], [ "democratic", "JJ" ], [ "party", "NN" ], [ "and", "CC" ], [ "liberal", "JJ" ], [ "party", "NN" ], [ ".", "." ] ], "values": [ "Democratic", "Liberal" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(18) T(2) Filter(2) A(0) C(7) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(18) T(2) Filter(2) A(0) C(7) T(1) V(1)" }, { "db_id": "news_report", "query": "SELECT count(*) FROM journalist", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "journalist" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "journalist" ], "question": "How many journalists are there?", "question_toks": [ "how", "many", "journalist", "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": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "name", "nationality", "age", "years working", "journalist id", "event id", "work type" ], "table_names": [ "event", "journalist", "news report" ], "col_set": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "nationality", "age", "years working", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "How", "many", "journalists", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "journalist" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "journalist", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "news_report", "query": "SELECT Name FROM journalist ORDER BY Years_working ASC", "query_toks": [ "SELECT", "Name", "FROM", "journalist", "ORDER", "BY", "Years_working", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "journalist", "order", "by", "years_working", "asc" ], "question": "List the names of journalists in ascending order of years working.", "question_toks": [ "list", "name", "of", "journalist", "in", "ascending", "order", "of", "year", "working", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "name", "nationality", "age", "years working", "journalist id", "event id", "work type" ], "table_names": [ "event", "journalist", "news report" ], "col_set": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "nationality", "age", "years working", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "List", "the", "names", "of", "journalists", "in", "ascending", "order", "of", "years", "working", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "journalist" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "year", "working" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "journalist", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "year", "NN" ], [ "working", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(4) T(1) Order(1) A(0) C(9) T(1)" }, { "db_id": "news_report", "query": "SELECT Nationality , Age FROM journalist", "query_toks": [ "SELECT", "Nationality", ",", "Age", "FROM", "journalist" ], "query_toks_no_value": [ "select", "nationality", ",", "age", "from", "journalist" ], "question": "What are the nationalities and ages of journalists?", "question_toks": [ "what", "are", "nationality", "and", "age", "of", "journalist", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "name", "nationality", "age", "years working", "journalist id", "event id", "work type" ], "table_names": [ "event", "journalist", "news report" ], "col_set": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "nationality", "age", "years working", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "nationalities", "and", "ages", "of", "journalists", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "nationality" ], [ "and" ], [ "age" ], [ "of" ], [ "journalist" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "nationality", "JJ" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "journalist", "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": "news_report", "query": "SELECT Name FROM journalist WHERE Nationality = \"England\" OR Nationality = \"Wales\"", "query_toks": [ "SELECT", "Name", "FROM", "journalist", "WHERE", "Nationality", "=", "``", "England", "''", "OR", "Nationality", "=", "``", "Wales", "''" ], "query_toks_no_value": [ "select", "name", "from", "journalist", "where", "nationality", "=", "value", "or", "nationality", "=", "value" ], "question": "Show the names of journalists from \"England\" or \"Wales\".", "question_toks": [ "show", "name", "of", "journalist", "from", "'", "england", "'", "or", "'", "wale", "'", "." ], "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, 8, false ], null ], "\"England\"", null ], "or", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Wales\"", null ] ] }, "names": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "name", "nationality", "age", "years working", "journalist id", "event id", "work type" ], "table_names": [ "event", "journalist", "news report" ], "col_set": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "nationality", "age", "years working", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "journalists", "from", "``", "England", "''", "or", "``", "Wales", "''", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "journalist" ], [ "from" ], [ "'" ], [ "england" ], [ "'" ], [ "or" ], [ "'" ], [ "wale" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "journalist", "NN" ], [ "from", "IN" ], [ "'", "''" ], [ "england", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "wale", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "England", "Wales" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) 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": "news_report", "query": "SELECT avg(Years_working) FROM journalist", "query_toks": [ "SELECT", "avg", "(", "Years_working", ")", "FROM", "journalist" ], "query_toks_no_value": [ "select", "avg", "(", "years_working", ")", "from", "journalist" ], "question": "What is the average number of years spent working as a journalist?", "question_toks": [ "what", "is", "average", "number", "of", "year", "spent", "working", "a", "a", "journalist", "?" ], "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": [] }, "names": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "name", "nationality", "age", "years working", "journalist id", "event id", "work type" ], "table_names": [ "event", "journalist", "news report" ], "col_set": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "nationality", "age", "years working", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "years", "spent", "working", "as", "a", "journalist", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "year" ], [ "spent" ], [ "working" ], [ "a" ], [ "a" ], [ "journalist" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "year", "NN" ], [ "spent", "VBN" ], [ "working", "VBG" ], [ "a", "DT" ], [ "a", "DT" ], [ "journalist", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(9) T(1)" }, { "db_id": "news_report", "query": "SELECT Nationality FROM journalist ORDER BY Years_working DESC LIMIT 1", "query_toks": [ "SELECT", "Nationality", "FROM", "journalist", "ORDER", "BY", "Years_working", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "nationality", "from", "journalist", "order", "by", "years_working", "desc", "limit", "value" ], "question": "What is the nationality of the journalist with the largest number of years working?", "question_toks": [ "what", "is", "nationality", "of", "journalist", "with", "largest", "number", "of", "year", "working", "?" ], "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, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "name", "nationality", "age", "years working", "journalist id", "event id", "work type" ], "table_names": [ "event", "journalist", "news report" ], "col_set": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "nationality", "age", "years working", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "nationality", "of", "the", "journalist", "with", "the", "largest", "number", "of", "years", "working", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "nationality" ], [ "of" ], [ "journalist" ], [ "with" ], [ "largest" ], [ "number" ], [ "of" ], [ "year", "working" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "nationality", "NN" ], [ "of", "IN" ], [ "journalist", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "year", "NN" ], [ "working", "VBG" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(1) Sup(0) A(0) C(9) T(1)" }, { "db_id": "news_report", "query": "SELECT Nationality , COUNT(*) FROM journalist GROUP BY Nationality", "query_toks": [ "SELECT", "Nationality", ",", "COUNT", "(", "*", ")", "FROM", "journalist", "GROUP", "BY", "Nationality" ], "query_toks_no_value": [ "select", "nationality", ",", "count", "(", "*", ")", "from", "journalist", "group", "by", "nationality" ], "question": "Show the different nationalities and the number of journalists of each nationality.", "question_toks": [ "show", "different", "nationality", "and", "number", "of", "journalist", "of", "each", "nationality", "." ], "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": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "name", "nationality", "age", "years working", "journalist id", "event id", "work type" ], "table_names": [ "event", "journalist", "news report" ], "col_set": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "nationality", "age", "years working", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "different", "nationalities", "and", "the", "number", "of", "journalists", "of", "each", "nationality", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "nationality" ], [ "and" ], [ "number" ], [ "of" ], [ "journalist" ], [ "of" ], [ "each" ], [ "nationality" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "different", "JJ" ], [ "nationality", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "journalist", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "nationality", "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": "news_report", "query": "SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Nationality", "FROM", "journalist", "GROUP", "BY", "Nationality", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "nationality", "from", "journalist", "group", "by", "nationality", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the most common nationality for journalists.", "question_toks": [ "show", "most", "common", "nationality", "for", "journalist", "." ], "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": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "name", "nationality", "age", "years working", "journalist id", "event id", "work type" ], "table_names": [ "event", "journalist", "news report" ], "col_set": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "nationality", "age", "years working", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "most", "common", "nationality", "for", "journalists", "." ], "question_arg": [ [ "show" ], [ "most" ], [ "common" ], [ "nationality" ], [ "for" ], [ "journalist" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "nationality", "NN" ], [ "for", "IN" ], [ "journalist", "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": "news_report", "query": "SELECT Nationality FROM journalist WHERE Years_working > 10 INTERSECT SELECT Nationality FROM journalist WHERE Years_working < 3", "query_toks": [ "SELECT", "Nationality", "FROM", "journalist", "WHERE", "Years_working", ">", "10", "INTERSECT", "SELECT", "Nationality", "FROM", "journalist", "WHERE", "Years_working", "<", "3" ], "query_toks_no_value": [ "select", "nationality", "from", "journalist", "where", "years_working", ">", "value", "intersect", "select", "nationality", "from", "journalist", "where", "years_working", "<", "value" ], "question": "Show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working.", "question_toks": [ "show", "nation", "that", "have", "both", "journalist", "with", "more", "than", "10", "year", "of", "working", "and", "journalist", "with", "le", "than", "3", "year", "of", "working", "." ], "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, 10, false ], null ], 3.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 10.0, null ] ] }, "names": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "name", "nationality", "age", "years working", "journalist id", "event id", "work type" ], "table_names": [ "event", "journalist", "news report" ], "col_set": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "nationality", "age", "years working", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "nations", "that", "have", "both", "journalists", "with", "more", "than", "10", "years", "of", "working", "and", "journalists", "with", "less", "than", "3", "years", "of", "working", "." ], "question_arg": [ [ "show" ], [ "nation" ], [ "that" ], [ "have" ], [ "both" ], [ "journalist" ], [ "with" ], [ "more" ], [ "than" ], [ "10" ], [ "year" ], [ "of" ], [ "working" ], [ "and" ], [ "journalist" ], [ "with" ], [ "le" ], [ "than" ], [ "3" ], [ "year" ], [ "of" ], [ "working" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "nation", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "journalist", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "year", "NN" ], [ "of", "IN" ], [ "working", "VBG" ], [ "and", "CC" ], [ "journalist", "NN" ], [ "with", "IN" ], [ "le", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "year", "NN" ], [ "of", "IN" ], [ "working", "VBG" ], [ ".", "." ] ], "values": [ "3", "10" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(5) A(0) C(9) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(4) A(0) C(9) T(1) V(0)" }, { "db_id": "news_report", "query": "SELECT Date , Name , venue FROM event ORDER BY Event_Attendance DESC", "query_toks": [ "SELECT", "Date", ",", "Name", ",", "venue", "FROM", "event", "ORDER", "BY", "Event_Attendance", "DESC" ], "query_toks_no_value": [ "select", "date", ",", "name", ",", "venue", "from", "event", "order", "by", "event_attendance", "desc" ], "question": "Show the dates, places, and names of events in descending order of the attendance.", "question_toks": [ "show", "date", ",", "place", ",", "and", "name", "of", "event", "in", "descending", "order", "of", "attendance", "." ], "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 ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "name", "nationality", "age", "years working", "journalist id", "event id", "work type" ], "table_names": [ "event", "journalist", "news report" ], "col_set": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "nationality", "age", "years working", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "dates", ",", "places", ",", "and", "names", "of", "events", "in", "descending", "order", "of", "the", "attendance", "." ], "question_arg": [ [ "show" ], [ "date" ], [ "," ], [ "place" ], [ "," ], [ "and" ], [ "name" ], [ "of" ], [ "event" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "attendance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "date", "NN" ], [ ",", "," ], [ "place", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "event", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "attendance", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(2) T(0) A(0) C(4) T(0) A(0) C(3) T(0) Order(0) A(0) C(5) T(0)" }, { "db_id": "news_report", "query": "SELECT T3.Name , T2.Date FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID", "query_toks": [ "SELECT", "T3.Name", ",", "T2.Date", "FROM", "news_report", "AS", "T1", "JOIN", "event", "AS", "T2", "ON", "T1.Event_ID", "=", "T2.Event_ID", "JOIN", "journalist", "AS", "T3", "ON", "T1.journalist_ID", "=", "T3.journalist_ID" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "date", "from", "news_report", "as", "t1", "join", "event", "as", "t2", "on", "t1", ".", "event_id", "=", "t2", ".", "event_id", "join", "journalist", "as", "t3", "on", "t1", ".", "journalist_id", "=", "t3", ".", "journalist_id" ], "question": "Show the names of journalists and the dates of the events they reported.", "question_toks": [ "show", "name", "of", "journalist", "and", "date", "of", "event", "they", "reported", "." ], "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 ] ], [ 0, [ 0, [ 0, 2, 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": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "name", "nationality", "age", "years working", "journalist id", "event id", "work type" ], "table_names": [ "event", "journalist", "news report" ], "col_set": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "nationality", "age", "years working", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "journalists", "and", "the", "dates", "of", "the", "events", "they", "reported", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "journalist" ], [ "and" ], [ "date" ], [ "of" ], [ "event" ], [ "they" ], [ "reported" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "journalist", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "event", "NN" ], [ "they", "PRP" ], [ "reported", "VBD" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) 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": "news_report", "query": "SELECT T3.Name , T2.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID ORDER BY T2.Event_Attendance ASC", "query_toks": [ "SELECT", "T3.Name", ",", "T2.Name", "FROM", "news_report", "AS", "T1", "JOIN", "event", "AS", "T2", "ON", "T1.Event_ID", "=", "T2.Event_ID", "JOIN", "journalist", "AS", "T3", "ON", "T1.journalist_ID", "=", "T3.journalist_ID", "ORDER", "BY", "T2.Event_Attendance", "ASC" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "name", "from", "news_report", "as", "t1", "join", "event", "as", "t2", "on", "t1", ".", "event_id", "=", "t2", ".", "event_id", "join", "journalist", "as", "t3", "on", "t1", ".", "journalist_id", "=", "t3", ".", "journalist_id", "order", "by", "t2", ".", "event_attendance", "asc" ], "question": "Show the names of journalists and the names of the events they reported in ascending order", "question_toks": [ "show", "name", "of", "journalist", "and", "name", "of", "event", "they", "reported", "in", "ascending", "order" ], "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": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 4, 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": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "name", "nationality", "age", "years working", "journalist id", "event id", "work type" ], "table_names": [ "event", "journalist", "news report" ], "col_set": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "nationality", "age", "years working", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "journalists", "and", "the", "names", "of", "the", "events", "they", "reported", "in", "ascending", "order" ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "journalist" ], [ "and" ], [ "name" ], [ "of" ], [ "event" ], [ "they" ], [ "reported" ], [ "in" ], [ "ascending" ], [ "order" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "journalist", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "event", "NN" ], [ "they", "PRP" ], [ "reported", "VBD" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(4) T(1) 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) Order(1) A(0) C(5) T(0)" }, { "db_id": "news_report", "query": "SELECT T3.Name , COUNT(*) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name", "query_toks": [ "SELECT", "T3.Name", ",", "COUNT", "(", "*", ")", "FROM", "news_report", "AS", "T1", "JOIN", "event", "AS", "T2", "ON", "T1.Event_ID", "=", "T2.Event_ID", "JOIN", "journalist", "AS", "T3", "ON", "T1.journalist_ID", "=", "T3.journalist_ID", "GROUP", "BY", "T3.Name" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "count", "(", "*", ")", "from", "news_report", "as", "t1", "join", "event", "as", "t2", "on", "t1", ".", "event_id", "=", "t2", ".", "event_id", "join", "journalist", "as", "t3", "on", "t1", ".", "journalist_id", "=", "t3", ".", "journalist_id", "group", "by", "t3", ".", "name" ], "question": "Show the names of journalists and the number of events they reported.", "question_toks": [ "show", "name", "of", "journalist", "and", "number", "of", "event", "they", "reported", "." ], "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, 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, 8, [ 0, [ 0, 12, 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": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "name", "nationality", "age", "years working", "journalist id", "event id", "work type" ], "table_names": [ "event", "journalist", "news report" ], "col_set": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "nationality", "age", "years working", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "journalists", "and", "the", "number", "of", "events", "they", "reported", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "journalist" ], [ "and" ], [ "number" ], [ "of" ], [ "event" ], [ "they" ], [ "reported" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "journalist", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "event", "NN" ], [ "they", "PRP" ], [ "reported", "VBD" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(3) C(0) T(0) Filter(18) A(0) C(1) T(2) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "news_report", "query": "SELECT T3.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T3.Name", "FROM", "news_report", "AS", "T1", "JOIN", "event", "AS", "T2", "ON", "T1.Event_ID", "=", "T2.Event_ID", "JOIN", "journalist", "AS", "T3", "ON", "T1.journalist_ID", "=", "T3.journalist_ID", "GROUP", "BY", "T3.Name", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "news_report", "as", "t1", "join", "event", "as", "t2", "on", "t1", ".", "event_id", "=", "t2", ".", "event_id", "join", "journalist", "as", "t3", "on", "t1", ".", "journalist_id", "=", "t3", ".", "journalist_id", "group", "by", "t3", ".", "name", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show the names of journalists that have reported more than one event.", "question_toks": [ "show", "name", "of", "journalist", "that", "have", "reported", "more", "than", "one", "event", "." ], "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, 7, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "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, 8, [ 0, [ 0, 12, 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": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "name", "nationality", "age", "years working", "journalist id", "event id", "work type" ], "table_names": [ "event", "journalist", "news report" ], "col_set": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "nationality", "age", "years working", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "journalists", "that", "have", "reported", "more", "than", "one", "event", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "journalist" ], [ "that" ], [ "have" ], [ "reported" ], [ "more" ], [ "than" ], [ "one" ], [ "event" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "journalist", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "reported", "VBN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "event", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2) Filter(18) A(0) C(1) T(2) Root(5) Sel(0) N(0) A(0) C(1) T(0) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "news_report", "query": "SELECT Name FROM journalist WHERE journalist_ID NOT IN (SELECT journalist_ID FROM news_report)", "query_toks": [ "SELECT", "Name", "FROM", "journalist", "WHERE", "journalist_ID", "NOT", "IN", "(", "SELECT", "journalist_ID", "FROM", "news_report", ")" ], "query_toks_no_value": [ "select", "name", "from", "journalist", "where", "journalist_id", "not", "in", "(", "select", "journalist_id", "from", "news_report", ")" ], "question": "List the names of journalists who have not reported any event.", "question_toks": [ "list", "name", "of", "journalist", "who", "have", "not", "reported", "any", "event", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "name", "nationality", "age", "years working", "journalist id", "event id", "work type" ], "table_names": [ "event", "journalist", "news report" ], "col_set": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "nationality", "age", "years working", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "List", "the", "names", "of", "journalists", "who", "have", "not", "reported", "any", "event", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "journalist" ], [ "who" ], [ "have" ], [ "not" ], [ "reported" ], [ "any" ], [ "event" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "journalist", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "not", "RB" ], [ "reported", "VBN" ], [ "any", "DT" ], [ "event", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(19) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "news_report", "query": "SELECT avg(Event_Attendance) , max(Event_Attendance) FROM event", "query_toks": [ "SELECT", "avg", "(", "Event_Attendance", ")", ",", "max", "(", "Event_Attendance", ")", "FROM", "event" ], "query_toks_no_value": [ "select", "avg", "(", "event_attendance", ")", ",", "max", "(", "event_attendance", ")", "from", "event" ], "question": "what are the average and maximum attendances of all events?", "question_toks": [ "what", "are", "average", "and", "maximum", "attendance", "of", "all", "event", "?" ], "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 ] ], [ 1, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "name", "nationality", "age", "years working", "journalist id", "event id", "work type" ], "table_names": [ "event", "journalist", "news report" ], "col_set": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "nationality", "age", "years working", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "what", "are", "the", "average", "and", "maximum", "attendances", "of", "all", "events", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "and" ], [ "maximum" ], [ "attendance" ], [ "of" ], [ "all" ], [ "event" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "attendance", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "event", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(5) T(0) A(1) C(5) T(0)" }, { "db_id": "news_report", "query": "SELECT avg(t1.age) , avg(Years_working) , t2.work_type FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_id = t2.journalist_id GROUP BY t2.work_type", "query_toks": [ "SELECT", "avg", "(", "t1.age", ")", ",", "avg", "(", "Years_working", ")", ",", "t2.work_type", "FROM", "journalist", "AS", "t1", "JOIN", "news_report", "AS", "t2", "ON", "t1.journalist_id", "=", "t2.journalist_id", "GROUP", "BY", "t2.work_type" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "age", ")", ",", "avg", "(", "years_working", ")", ",", "t2", ".", "work_type", "from", "journalist", "as", "t1", "join", "news_report", "as", "t2", "on", "t1", ".", "journalist_id", "=", "t2", ".", "journalist_id", "group", "by", "t2", ".", "work_type" ], "question": "Find the average age and experience working length of journalists working on different role type.", "question_toks": [ "find", "average", "age", "and", "experience", "working", "length", "of", "journalist", "working", "on", "different", "role", "type", "." ], "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, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 9, false ], null ] ], [ 5, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "name", "nationality", "age", "years working", "journalist id", "event id", "work type" ], "table_names": [ "event", "journalist", "news report" ], "col_set": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "nationality", "age", "years working", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Find", "the", "average", "age", "and", "experience", "working", "length", "of", "journalists", "working", "on", "different", "role", "type", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "age" ], [ "and" ], [ "experience" ], [ "working" ], [ "length" ], [ "of" ], [ "journalist" ], [ "working" ], [ "on" ], [ "different" ], [ "role" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "and", "CC" ], [ "experience", "NN" ], [ "working", "VBG" ], [ "length", "NN" ], [ "of", "IN" ], [ "journalist", "NN" ], [ "working", "VBG" ], [ "on", "IN" ], [ "different", "JJ" ], [ "role", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(5) C(8) T(1) A(5) C(9) T(1) A(0) C(10) T(2)" }, { "db_id": "news_report", "query": "SELECT venue , name FROM event ORDER BY Event_Attendance DESC LIMIT 2", "query_toks": [ "SELECT", "venue", ",", "name", "FROM", "event", "ORDER", "BY", "Event_Attendance", "DESC", "LIMIT", "2" ], "query_toks_no_value": [ "select", "venue", ",", "name", "from", "event", "order", "by", "event_attendance", "desc", "limit", "value" ], "question": "List the event venues and names that have the top 2 most number of people attended.", "question_toks": [ "list", "event", "venue", "and", "name", "that", "have", "top", "2", "most", "number", "of", "people", "attended", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 2, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "name", "nationality", "age", "years working", "journalist id", "event id", "work type" ], "table_names": [ "event", "journalist", "news report" ], "col_set": [ "*", "event id", "date", "venue", "name", "event attendance", "journalist id", "nationality", "age", "years working", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "List", "the", "event", "venues", "and", "names", "that", "have", "the", "top", "2", "most", "number", "of", "people", "attended", "." ], "question_arg": [ [ "list" ], [ "event" ], [ "venue" ], [ "and" ], [ "name" ], [ "that" ], [ "have" ], [ "top" ], [ "2" ], [ "most" ], [ "number" ], [ "of" ], [ "people" ], [ "attended" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "event", "NN" ], [ "venue", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "top", "VBN" ], [ "2", "CD" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "attended", "VBN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "restaurant_1", "query": "SELECT ResName FROM Restaurant;", "query_toks": [ "SELECT", "ResName", "FROM", "Restaurant", ";" ], "query_toks_no_value": [ "select", "resname", "from", "restaurant" ], "question": "Show me all the restaurants.", "question_toks": [ "show", "me", "all", "restaurant", "." ], "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": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "Show", "me", "all", "the", "restaurants", "." ], "question_arg": [ [ "show" ], [ "me" ], [ "all" ], [ "restaurant" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "me", "PRP" ], [ "all", "DT" ], [ "restaurant", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(10) T(1)" }, { "db_id": "restaurant_1", "query": "SELECT Address FROM Restaurant WHERE ResName = \"Subway\";", "query_toks": [ "SELECT", "Address", "FROM", "Restaurant", "WHERE", "ResName", "=", "``", "Subway", "''", ";" ], "query_toks_no_value": [ "select", "address", "from", "restaurant", "where", "resname", "=", "value" ], "question": "What is the address of the restaurant Subway?", "question_toks": [ "what", "is", "address", "of", "restaurant", "subway", "?" ], "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 ], "\"Subway\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "address", "of", "the", "restaurant", "Subway", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "address" ], [ "of" ], [ "restaurant" ], [ "subway" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "address", "NN" ], [ "of", "IN" ], [ "restaurant", "NN" ], [ "subway", "NN" ], [ "?", "." ] ], "values": [ "Subway" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "restaurant_1", "query": "SELECT Rating FROM Restaurant WHERE ResName = \"Subway\";", "query_toks": [ "SELECT", "Rating", "FROM", "Restaurant", "WHERE", "ResName", "=", "``", "Subway", "''", ";" ], "query_toks_no_value": [ "select", "rating", "from", "restaurant", "where", "resname", "=", "value" ], "question": "What is the rating of the restaurant Subway?", "question_toks": [ "what", "is", "rating", "of", "restaurant", "subway", "?" ], "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 ], "\"Subway\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "rating", "of", "the", "restaurant", "Subway", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "rating" ], [ "of" ], [ "restaurant" ], [ "subway" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "rating", "NN" ], [ "of", "IN" ], [ "restaurant", "JJ" ], [ "subway", "NN" ], [ "?", "." ] ], "values": [ "Subway" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "restaurant_1", "query": "SELECT ResTypeName FROM Restaurant_Type;", "query_toks": [ "SELECT", "ResTypeName", "FROM", "Restaurant_Type", ";" ], "query_toks_no_value": [ "select", "restypename", "from", "restaurant_type" ], "question": "List all restaurant types.", "question_toks": [ "list", "all", "restaurant", "type", "." ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "List", "all", "restaurant", "types", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "restaurant", "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "restaurant", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(14) T(3)" }, { "db_id": "restaurant_1", "query": "SELECT ResTypeDescription FROM Restaurant_Type WHERE ResTypeName = \"Sandwich\";", "query_toks": [ "SELECT", "ResTypeDescription", "FROM", "Restaurant_Type", "WHERE", "ResTypeName", "=", "``", "Sandwich", "''", ";" ], "query_toks_no_value": [ "select", "restypedescription", "from", "restaurant_type", "where", "restypename", "=", "value" ], "question": "What is the description of the restaurant type Sandwich?", "question_toks": [ "what", "is", "description", "of", "restaurant", "type", "sandwich", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Sandwich\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "description", "of", "the", "restaurant", "type", "Sandwich", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "of" ], [ "restaurant", "type" ], [ "sandwich" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "of", "IN" ], [ "restaurant", "NN" ], [ "type", "NN" ], [ "sandwich", "NN" ], [ "?", "." ] ], "values": [ "Sandwich" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(3) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "restaurant_1", "query": "SELECT ResName , Rating FROM Restaurant ORDER BY Rating DESC LIMIT 1;", "query_toks": [ "SELECT", "ResName", ",", "Rating", "FROM", "Restaurant", "ORDER", "BY", "Rating", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "resname", ",", "rating", "from", "restaurant", "order", "by", "rating", "desc", "limit", "value" ], "question": "Which restaurants have highest rating? List the restaurant name and its rating.", "question_toks": [ "which", "restaurant", "have", "highest", "rating", "?", "list", "restaurant", "name", "and", "it", "rating", "." ], "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, 10, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "Which", "restaurants", "have", "highest", "rating", "?", "List", "the", "restaurant", "name", "and", "its", "rating", "." ], "question_arg": [ [ "which" ], [ "restaurant" ], [ "have" ], [ "highest" ], [ "rating" ], [ "?" ], [ "list" ], [ "restaurant", "name" ], [ "and" ], [ "it" ], [ "rating" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "restaurant", "NN" ], [ "have", "VBP" ], [ "highest", "JJS" ], [ "rating", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "restaurant", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "it", "PRP" ], [ "rating", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(10) T(1) A(0) C(12) T(1) Sup(0) A(0) C(12) T(1)" }, { "db_id": "restaurant_1", "query": "SELECT Age FROM Student WHERE Fname = \"Linda\" AND Lname = \"Smith\";", "query_toks": [ "SELECT", "Age", "FROM", "Student", "WHERE", "Fname", "=", "``", "Linda", "''", "AND", "Lname", "=", "``", "Smith", "''", ";" ], "query_toks_no_value": [ "select", "age", "from", "student", "where", "fname", "=", "value", "and", "lname", "=", "value" ], "question": "What is the age of student Linda Smith?", "question_toks": [ "what", "is", "age", "of", "student", "linda", "smith", "?" ], "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 ], "\"Linda\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Smith\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "age", "of", "student", "Linda", "Smith", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "age" ], [ "of" ], [ "student" ], [ "linda" ], [ "smith" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "linda", "NN" ], [ "smith", "NN" ], [ "?", "." ] ], "values": [ "Linda", "Smith" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(0) Filter(2) A(0) C(3) T(0) V(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "restaurant_1", "query": "SELECT Sex FROM Student WHERE Fname = \"Linda\" AND Lname = \"Smith\";", "query_toks": [ "SELECT", "Sex", "FROM", "Student", "WHERE", "Fname", "=", "``", "Linda", "''", "AND", "Lname", "=", "``", "Smith", "''", ";" ], "query_toks_no_value": [ "select", "sex", "from", "student", "where", "fname", "=", "value", "and", "lname", "=", "value" ], "question": "What is the gender of the student Linda Smith?", "question_toks": [ "what", "is", "gender", "of", "student", "linda", "smith", "?" ], "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 ], "\"Linda\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Smith\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "gender", "of", "the", "student", "Linda", "Smith", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "gender" ], [ "of" ], [ "student" ], [ "linda" ], [ "smith" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "gender", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "linda", "NN" ], [ "smith", "NN" ], [ "?", "." ] ], "values": [ "Linda", "Smith" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(0) Filter(2) A(0) C(3) T(0) V(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "restaurant_1", "query": "SELECT Fname , Lname FROM Student WHERE Major = 600;", "query_toks": [ "SELECT", "Fname", ",", "Lname", "FROM", "Student", "WHERE", "Major", "=", "600", ";" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "student", "where", "major", "=", "value" ], "question": "List all students' first names and last names who majored in 600.", "question_toks": [ "list", "all", "student", "'", "first", "name", "and", "last", "name", "who", "majored", "in", "600", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], 600.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "List", "all", "students", "'", "first", "names", "and", "last", "names", "who", "majored", "in", "600", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "student" ], [ "'" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "who" ], [ "majored" ], [ "in" ], [ "600" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "student", "NN" ], [ "'", "POS" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "who", "WP" ], [ "majored", "VBD" ], [ "in", "IN" ], [ "600", "CD" ], [ ".", "." ] ], "values": [ "600", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "restaurant_1", "query": "SELECT city_code FROM Student WHERE Fname = \"Linda\" AND Lname = \"Smith\";", "query_toks": [ "SELECT", "city_code", "FROM", "Student", "WHERE", "Fname", "=", "``", "Linda", "''", "AND", "Lname", "=", "``", "Smith", "''", ";" ], "query_toks_no_value": [ "select", "city_code", "from", "student", "where", "fname", "=", "value", "and", "lname", "=", "value" ], "question": "Which city does student Linda Smith live in?", "question_toks": [ "which", "city", "doe", "student", "linda", "smith", "live", "in", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Linda\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Smith\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "Which", "city", "does", "student", "Linda", "Smith", "live", "in", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "doe" ], [ "student" ], [ "linda" ], [ "smith" ], [ "live" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "doe", "NN" ], [ "student", "NN" ], [ "linda", "NN" ], [ "smith", "NN" ], [ "live", "VBP" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "Linda", "Smith" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(0) Filter(0) Filter(2) A(0) C(3) T(0) V(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "restaurant_1", "query": "SELECT count(*) FROM Student WHERE Advisor = 1121;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "Advisor", "=", "1121", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "advisor", "=", "value" ], "question": "Advisor 1121 has how many students?", "question_toks": [ "advisor", "1121", "ha", "how", "many", "student", "?" ], "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, 7, false ], null ], 1121.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "Advisor", "1121", "has", "how", "many", "students", "?" ], "question_arg": [ [ "advisor" ], [ "1121" ], [ "ha" ], [ "how" ], [ "many" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "advisor", "NN" ], [ "1121", "CD" ], [ "ha", "VBD" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "1121" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(7) T(0) V(0)" }, { "db_id": "restaurant_1", "query": "SELECT Advisor , count(*) FROM Student GROUP BY Advisor ORDER BY count(Advisor) DESC LIMIT 1;", "query_toks": [ "SELECT", "Advisor", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "Advisor", "ORDER", "BY", "count", "(", "Advisor", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "advisor", ",", "count", "(", "*", ")", "from", "student", "group", "by", "advisor", "order", "by", "count", "(", "advisor", ")", "desc", "limit", "value" ], "question": "Which Advisor has most of students? List advisor and the number of students.", "question_toks": [ "which", "advisor", "ha", "most", "of", "student", "?", "list", "advisor", "and", "number", "of", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 7, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "Which", "Advisor", "has", "most", "of", "students", "?", "List", "advisor", "and", "the", "number", "of", "students", "." ], "question_arg": [ [ "which" ], [ "advisor" ], [ "ha" ], [ "most" ], [ "of" ], [ "student" ], [ "?" ], [ "list" ], [ "advisor" ], [ "and" ], [ "number" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "advisor", "VBP" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "of", "IN" ], [ "student", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "advisor", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(7) T(0) A(3) C(0) T(0) Sup(0) A(3) C(7) T(0)" }, { "db_id": "restaurant_1", "query": "SELECT Major , count(*) FROM Student GROUP BY Major ORDER BY count(Major) ASC LIMIT 1;", "query_toks": [ "SELECT", "Major", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "Major", "ORDER", "BY", "count", "(", "Major", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "major", ",", "count", "(", "*", ")", "from", "student", "group", "by", "major", "order", "by", "count", "(", "major", ")", "asc", "limit", "value" ], "question": "Which major has least number of students? List the major and the number of students.", "question_toks": [ "which", "major", "ha", "least", "number", "of", "student", "?", "list", "major", "and", "number", "of", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "Which", "major", "has", "least", "number", "of", "students", "?", "List", "the", "major", "and", "the", "number", "of", "students", "." ], "question_arg": [ [ "which" ], [ "major" ], [ "ha" ], [ "least" ], [ "number" ], [ "of" ], [ "student" ], [ "?" ], [ "list" ], [ "major" ], [ "and" ], [ "number" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "major", "JJ" ], [ "ha", "NN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "major", "JJ" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(6) T(0) A(3) C(0) T(0) Sup(1) A(3) C(6) T(0)" }, { "db_id": "restaurant_1", "query": "SELECT Major , count(*) FROM Student GROUP BY Major HAVING count(Major) BETWEEN 2 AND 30;", "query_toks": [ "SELECT", "Major", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "Major", "HAVING", "count", "(", "Major", ")", "BETWEEN", "2", "AND", "30", ";" ], "query_toks_no_value": [ "select", "major", ",", "count", "(", "*", ")", "from", "student", "group", "by", "major", "having", "count", "(", "major", ")", "between", "value", "and", "value" ], "question": "Which major has between 2 and 30 number of students? List major and the number of students.", "question_toks": [ "which", "major", "ha", "between", "2", "and", "30", "number", "of", "student", "?", "list", "major", "and", "number", "of", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 1, [ 0, [ 3, 6, false ], null ], 2.0, 30.0 ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "Which", "major", "has", "between", "2", "and", "30", "number", "of", "students", "?", "List", "major", "and", "the", "number", "of", "students", "." ], "question_arg": [ [ "which" ], [ "major" ], [ "ha" ], [ "between" ], [ "2" ], [ "and" ], [ "30" ], [ "number" ], [ "of" ], [ "student" ], [ "?" ], [ "list" ], [ "major" ], [ "and" ], [ "number" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "major", "JJ" ], [ "ha", "NN" ], [ "between", "IN" ], [ "2", "CD" ], [ "and", "CC" ], [ "30", "CD" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "major", "JJ" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "2", "30" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(0) A(3) C(0) T(0) Filter(8) A(3) C(6) T(0) V(0) V(1)" }, { "db_id": "restaurant_1", "query": "SELECT Fname , Lname FROM Student WHERE Age > 18 AND Major = 600;", "query_toks": [ "SELECT", "Fname", ",", "Lname", "FROM", "Student", "WHERE", "Age", ">", "18", "AND", "Major", "=", "600", ";" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "student", "where", "age", ">", "value", "and", "major", "=", "value" ], "question": "Which student's age is older than 18 and is majoring in 600? List each student's first and last name.", "question_toks": [ "which", "student", "'s", "age", "is", "older", "than", "18", "and", "is", "majoring", "in", "600", "?", "list", "each", "student", "'s", "first", "and", "last", "name", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 18.0, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], 600.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "Which", "student", "'s", "age", "is", "older", "than", "18", "and", "is", "majoring", "in", "600", "?", "List", "each", "student", "'s", "first", "and", "last", "name", "." ], "question_arg": [ [ "which" ], [ "student" ], [ "'s" ], [ "age" ], [ "is" ], [ "older" ], [ "than" ], [ "18" ], [ "and" ], [ "is" ], [ "majoring" ], [ "in" ], [ "600" ], [ "?" ], [ "list" ], [ "each" ], [ "student" ], [ "'s" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "student", "NN" ], [ "'s", "POS" ], [ "age", "NN" ], [ "is", "VBZ" ], [ "older", "JJR" ], [ "than", "IN" ], [ "18", "CD" ], [ "and", "CC" ], [ "is", "VBZ" ], [ "majoring", "VBG" ], [ "in", "IN" ], [ "600", "CD" ], [ "?", "." ], [ "list", "NN" ], [ "each", "DT" ], [ "student", "NN" ], [ "'s", "POS" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "18", "600", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(0) Filter(5) A(0) C(4) T(0) V(0) Filter(2) A(0) C(6) T(0) V(1)" }, { "db_id": "restaurant_1", "query": "SELECT Fname , Lname FROM Student WHERE Age > 18 AND Major != 600 AND Sex = 'F';", "query_toks": [ "SELECT", "Fname", ",", "Lname", "FROM", "Student", "WHERE", "Age", ">", "18", "AND", "Major", "!", "=", "600", "AND", "Sex", "=", "'F", "'", ";" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "student", "where", "age", ">", "value", "and", "major", "!", "=", "value", "and", "sex", "=", "value" ], "question": "List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.", "question_toks": [ "list", "all", "female", "student", "age", "is", "older", "than", "18", "who", "is", "not", "majoring", "in", "600", ".", "list", "student", "'", "first", "name", "and", "last", "name", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 18.0, null ], "and", [ false, 7, [ 0, [ 0, 6, false ], null ], 600.0, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "List", "all", "female", "students", "age", "is", "older", "than", "18", "who", "is", "not", "majoring", "in", "600", ".", "List", "students", "'", "first", "name", "and", "last", "name", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "female" ], [ "student" ], [ "age" ], [ "is" ], [ "older" ], [ "than" ], [ "18" ], [ "who" ], [ "is" ], [ "not" ], [ "majoring" ], [ "in" ], [ "600" ], [ "." ], [ "list" ], [ "student" ], [ "'" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "female", "JJ" ], [ "student", "NN" ], [ "age", "NN" ], [ "is", "VBZ" ], [ "older", "JJR" ], [ "than", "IN" ], [ "18", "CD" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "majoring", "VBG" ], [ "in", "IN" ], [ "600", "CD" ], [ ".", "." ], [ "list", "NN" ], [ "student", "NN" ], [ "'", "POS" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "18", "600", "1", "F" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(0) Filter(5) A(0) C(4) T(0) V(0) Filter(0) Filter(3) A(0) C(6) T(0) V(1) Filter(2) A(0) C(5) T(0) V(3)" }, { "db_id": "restaurant_1", "query": "SELECT count(*) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID = Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Restaurant", "JOIN", "Type_Of_Restaurant", "ON", "Restaurant.ResID", "=", "Type_Of_Restaurant.ResID", "JOIN", "Restaurant_Type", "ON", "Type_Of_Restaurant.ResTypeID", "=", "Restaurant_Type.ResTypeID", "GROUP", "BY", "Type_Of_Restaurant.ResTypeID", "HAVING", "Restaurant_Type.ResTypeName", "=", "'Sandwich", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "restaurant", "join", "type_of_restaurant", "on", "restaurant.resid", "=", "type_of_restaurant.resid", "join", "restaurant_type", "on", "type_of_restaurant.restypeid", "=", "restaurant_type.restypeid", "group", "by", "type_of_restaurant.restypeid", "having", "restaurant_type.restypename", "=", "value" ], "question": "How many restaurant is the Sandwich type restaurant?", "question_toks": [ "how", "many", "restaurant", "is", "sandwich", "type", "restaurant", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Sandwich\"", null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "restaurant", "is", "the", "Sandwich", "type", "restaurant", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "restaurant" ], [ "is" ], [ "sandwich" ], [ "type" ], [ "restaurant" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "restaurant", "NN" ], [ "is", "VBZ" ], [ "sandwich", "JJ" ], [ "type", "NN" ], [ "restaurant", "NN" ], [ "?", "." ] ], "values": [ "Sandwich" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "restaurant_1", "query": "SELECT sum(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = \"Linda\" AND Student.Lname = \"Smith\";", "query_toks": [ "SELECT", "sum", "(", "Spent", ")", "FROM", "Student", "JOIN", "Visits_Restaurant", "ON", "Student.StuID", "=", "Visits_Restaurant.StuID", "WHERE", "Student.Fname", "=", "``", "Linda", "''", "AND", "Student.Lname", "=", "``", "Smith", "''", ";" ], "query_toks_no_value": [ "select", "sum", "(", "spent", ")", "from", "student", "join", "visits_restaurant", "on", "student.stuid", "=", "visits_restaurant.stuid", "where", "student.fname", "=", "value", "and", "student.lname", "=", "value" ], "question": "How long does student Linda Smith spend on the restaurant in total?", "question_toks": [ "how", "long", "doe", "student", "linda", "smith", "spend", "on", "restaurant", "in", "total", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Linda\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Smith\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "How", "long", "does", "student", "Linda", "Smith", "spend", "on", "the", "restaurant", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "long" ], [ "doe" ], [ "student" ], [ "linda" ], [ "smith" ], [ "spend" ], [ "on" ], [ "restaurant" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "long", "JJ" ], [ "doe", "JJ" ], [ "student", "NN" ], [ "linda", "NN" ], [ "smith", "JJ" ], [ "spend", "NN" ], [ "on", "IN" ], [ "restaurant", "NN" ], [ "in", "IN" ], [ "total", "JJ" ], [ "?", "." ] ], "values": [ "Linda", "Smith" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(17) T(4) Filter(0) Filter(2) A(0) C(3) T(0) V(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "restaurant_1", "query": "SELECT count(*) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = \"Linda\" AND Student.Lname = \"Smith\" AND Restaurant.ResName = \"Subway\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student", "JOIN", "Visits_Restaurant", "ON", "Student.StuID", "=", "Visits_Restaurant.StuID", "JOIN", "Restaurant", "ON", "Visits_Restaurant.ResID", "=", "Restaurant.ResID", "WHERE", "Student.Fname", "=", "``", "Linda", "''", "AND", "Student.Lname", "=", "``", "Smith", "''", "AND", "Restaurant.ResName", "=", "``", "Subway", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "join", "visits_restaurant", "on", "student.stuid", "=", "visits_restaurant.stuid", "join", "restaurant", "on", "visits_restaurant.resid", "=", "restaurant.resid", "where", "student.fname", "=", "value", "and", "student.lname", "=", "value", "and", "restaurant.resname", "=", "value" ], "question": "How many times has the student Linda Smith visited Subway?", "question_toks": [ "how", "many", "time", "ha", "student", "linda", "smith", "visited", "subway", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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, 3, false ], null ], "\"Linda\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Smith\"", null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Subway\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "times", "has", "the", "student", "Linda", "Smith", "visited", "Subway", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "time" ], [ "ha" ], [ "student" ], [ "linda" ], [ "smith" ], [ "visited" ], [ "subway" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "time", "NN" ], [ "ha", "JJ" ], [ "student", "NN" ], [ "linda", "NN" ], [ "smith", "NN" ], [ "visited", "VBD" ], [ "subway", "RB" ], [ "?", "." ] ], "values": [ "Linda", "Subway", "Smith" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(0) Filter(2) A(0) C(3) T(0) V(0) Filter(0) Filter(2) A(0) C(2) T(0) V(2) Filter(2) A(0) C(10) T(1) V(1)" }, { "db_id": "restaurant_1", "query": "SELECT TIME FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = \"Linda\" AND Student.Lname = \"Smith\" AND Restaurant.ResName = \"Subway\";", "query_toks": [ "SELECT", "TIME", "FROM", "Student", "JOIN", "Visits_Restaurant", "ON", "Student.StuID", "=", "Visits_Restaurant.StuID", "JOIN", "Restaurant", "ON", "Visits_Restaurant.ResID", "=", "Restaurant.ResID", "WHERE", "Student.Fname", "=", "``", "Linda", "''", "AND", "Student.Lname", "=", "``", "Smith", "''", "AND", "Restaurant.ResName", "=", "``", "Subway", "''", ";" ], "query_toks_no_value": [ "select", "time", "from", "student", "join", "visits_restaurant", "on", "student.stuid", "=", "visits_restaurant.stuid", "join", "restaurant", "on", "visits_restaurant.resid", "=", "restaurant.resid", "where", "student.fname", "=", "value", "and", "student.lname", "=", "value", "and", "restaurant.resname", "=", "value" ], "question": "When did Linda Smith visit Subway?", "question_toks": [ "when", "did", "linda", "smith", "visit", "subway", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Linda\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Smith\"", null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Subway\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "When", "did", "Linda", "Smith", "visit", "Subway", "?" ], "question_arg": [ [ "when" ], [ "did" ], [ "linda" ], [ "smith" ], [ "visit" ], [ "subway" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "did", "VBD" ], [ "linda", "VB" ], [ "smith", "NN" ], [ "visit", "NN" ], [ "subway", "NN" ], [ "?", "." ] ], "values": [ "Linda", "Subway", "Smith" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(4) Filter(0) Filter(2) A(0) C(3) T(0) V(0) Filter(0) Filter(2) A(0) C(2) T(0) V(2) Filter(2) A(0) C(10) T(1) V(1)" }, { "db_id": "restaurant_1", "query": "SELECT Restaurant.ResName , sum(Visits_Restaurant.Spent) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY sum(Visits_Restaurant.Spent) ASC LIMIT 1;", "query_toks": [ "SELECT", "Restaurant.ResName", ",", "sum", "(", "Visits_Restaurant.Spent", ")", "FROM", "Visits_Restaurant", "JOIN", "Restaurant", "ON", "Visits_Restaurant.ResID", "=", "Restaurant.ResID", "GROUP", "BY", "Restaurant.ResID", "ORDER", "BY", "sum", "(", "Visits_Restaurant.Spent", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "restaurant.resname", ",", "sum", "(", "visits_restaurant.spent", ")", "from", "visits_restaurant", "join", "restaurant", "on", "visits_restaurant.resid", "=", "restaurant.resid", "group", "by", "restaurant.resid", "order", "by", "sum", "(", "visits_restaurant.spent", ")", "asc", "limit", "value" ], "question": "At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total.", "question_toks": [ "at", "which", "restaurant", "did", "student", "spend", "least", "amount", "of", "time", "?", "list", "restaurant", "and", "time", "student", "spent", "on", "in", "total", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 4, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 4, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "At", "which", "restaurant", "did", "the", "students", "spend", "the", "least", "amount", "of", "time", "?", "List", "restaurant", "and", "the", "time", "students", "spent", "on", "in", "total", "." ], "question_arg": [ [ "at" ], [ "which" ], [ "restaurant" ], [ "did" ], [ "student" ], [ "spend" ], [ "least" ], [ "amount" ], [ "of" ], [ "time" ], [ "?" ], [ "list" ], [ "restaurant" ], [ "and" ], [ "time" ], [ "student" ], [ "spent" ], [ "on" ], [ "in" ], [ "total" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "at", "IN" ], [ "which", "WDT" ], [ "restaurant", "NN" ], [ "did", "VBD" ], [ "student", "JJ" ], [ "spend", "VB" ], [ "least", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "restaurant", "NN" ], [ "and", "CC" ], [ "time", "NN" ], [ "student", "NN" ], [ "spent", "VBN" ], [ "on", "IN" ], [ "in", "IN" ], [ "total", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(10) T(1) A(4) C(17) T(4) Sup(1) A(4) C(17) T(4)" }, { "db_id": "restaurant_1", "query": "SELECT Student.Fname , Student.Lname FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID GROUP BY Student.StuID ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "Student.Fname", ",", "Student.Lname", "FROM", "Student", "JOIN", "Visits_Restaurant", "ON", "Student.StuID", "=", "Visits_Restaurant.StuID", "GROUP", "BY", "Student.StuID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "student.fname", ",", "student.lname", "from", "student", "join", "visits_restaurant", "on", "student.stuid", "=", "visits_restaurant.stuid", "group", "by", "student.stuid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which student visited restaurant most often? List student's first name and last name.", "question_toks": [ "which", "student", "visited", "restaurant", "most", "often", "?", "list", "student", "'s", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant id", "restaurant type id", "restaurant type id", "restaurant type name", "restaurant type description", "student id", "restaurant id", "time", "spent" ], "table_names": [ "student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "restaurant id", "restaurant name", "address", "rating", "restaurant type id", "restaurant type name", "restaurant type description", "time", "spent" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "14": 15, "15": 15, "13": 9, "9": 9, "19": 9, "18": 1, "1": 1 }, "origin_question_toks": [ "Which", "student", "visited", "restaurant", "most", "often", "?", "List", "student", "'s", "first", "name", "and", "last", "name", "." ], "question_arg": [ [ "which" ], [ "student" ], [ "visited" ], [ "restaurant" ], [ "most" ], [ "often" ], [ "?" ], [ "list" ], [ "student" ], [ "'s" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "student", "NN" ], [ "visited", "VBD" ], [ "restaurant", "NN" ], [ "most", "RBS" ], [ "often", "RB" ], [ "?", "." ], [ "list", "JJ" ], [ "student", "NN" ], [ "'s", "POS" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Sup(0) A(3) C(0) T(4) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(4)" }, { "db_id": "customer_deliveries", "query": "SELECT actual_order_id FROM actual_orders WHERE order_status_code = 'Success'", "query_toks": [ "SELECT", "actual_order_id", "FROM", "actual_orders", "WHERE", "order_status_code", "=", "'Success", "'" ], "query_toks_no_value": [ "select", "actual_order_id", "from", "actual_orders", "where", "order_status_code", "=", "value" ], "question": "Find the ids of orders whose status is 'Success'.", "question_toks": [ "find", "id", "of", "order", "whose", "status", "is", "'", "success", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"Success\"", null ] ] }, "names": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "regular order id", "product id", "actual order id", "order status code", "regular order id", "actual order date", "actual order id", "product id", "customer id", "address id", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "route id", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "location code", "actual order id", "delivery status code", "driver employee id", "truck id", "delivery date" ], "table_names": [ "products", "addresses", "customers", "regular orders", "regular order products", "actual orders", "actual order products", "customer addresses", "delivery routes", "delivery route locations", "trucks", "employees", "order deliveries" ], "col_set": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "actual order id", "order status code", "actual order date", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "delivery status code", "driver employee id", "delivery date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "18": 11, "11": 11, "19": 17, "17": 17, "20": 1, "1": 1, "23": 17, "25": 21, "21": 21, "26": 1, "28": 5, "5": 5, "27": 11, "36": 32, "32": 32, "37": 5, "43": 5, "49": 42, "42": 42, "46": 35, "35": 35, "47": 21, "50": 39, "39": 39 }, "origin_question_toks": [ "Find", "the", "ids", "of", "orders", "whose", "status", "is", "'Success", "'", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "order" ], [ "whose" ], [ "status" ], [ "is" ], [ "'" ], [ "success" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "whose", "WP$" ], [ "status", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "success", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Success" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(5) Filter(2) A(0) C(20) T(5) V(0)" }, { "db_id": "customer_deliveries", "query": "SELECT t1.product_name , t1.product_price FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.product_name", ",", "t1.product_price", "FROM", "products", "AS", "t1", "JOIN", "regular_order_products", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "GROUP", "BY", "t2.product_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "product_name", ",", "t1", ".", "product_price", "from", "products", "as", "t1", "join", "regular_order_products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t2", ".", "product_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name and price of the product that has been ordered the greatest number of times.", "question_toks": [ "find", "name", "and", "price", "of", "product", "that", "ha", "been", "ordered", "greatest", "number", "of", "time", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 20, 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, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "regular order id", "product id", "actual order id", "order status code", "regular order id", "actual order date", "actual order id", "product id", "customer id", "address id", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "route id", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "location code", "actual order id", "delivery status code", "driver employee id", "truck id", "delivery date" ], "table_names": [ "products", "addresses", "customers", "regular orders", "regular order products", "actual orders", "actual order products", "customer addresses", "delivery routes", "delivery route locations", "trucks", "employees", "order deliveries" ], "col_set": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "actual order id", "order status code", "actual order date", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "delivery status code", "driver employee id", "delivery date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "18": 11, "11": 11, "19": 17, "17": 17, "20": 1, "1": 1, "23": 17, "25": 21, "21": 21, "26": 1, "28": 5, "5": 5, "27": 11, "36": 32, "32": 32, "37": 5, "43": 5, "49": 42, "42": 42, "46": 35, "35": 35, "47": 21, "50": 39, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "and", "price", "of", "the", "product", "that", "has", "been", "ordered", "the", "greatest", "number", "of", "times", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "price" ], [ "of" ], [ "product" ], [ "that" ], [ "ha" ], [ "been" ], [ "ordered" ], [ "greatest" ], [ "number" ], [ "of" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "price", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "ha", "VBD" ], [ "been", "VBN" ], [ "ordered", "VBN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "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(4) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(4)" }, { "db_id": "customer_deliveries", "query": "SELECT count(*) FROM customers", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customers" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers" ], "question": "Find the number of customers in total.", "question_toks": [ "find", "number", "of", "customer", "in", "total", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "regular order id", "product id", "actual order id", "order status code", "regular order id", "actual order date", "actual order id", "product id", "customer id", "address id", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "route id", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "location code", "actual order id", "delivery status code", "driver employee id", "truck id", "delivery date" ], "table_names": [ "products", "addresses", "customers", "regular orders", "regular order products", "actual orders", "actual order products", "customer addresses", "delivery routes", "delivery route locations", "trucks", "employees", "order deliveries" ], "col_set": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "actual order id", "order status code", "actual order date", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "delivery status code", "driver employee id", "delivery date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "18": 11, "11": 11, "19": 17, "17": 17, "20": 1, "1": 1, "23": 17, "25": 21, "21": 21, "26": 1, "28": 5, "5": 5, "27": 11, "36": 32, "32": 32, "37": 5, "43": 5, "49": 42, "42": 42, "46": 35, "35": 35, "47": 21, "50": 39, "39": 39 }, "origin_question_toks": [ "Find", "the", "number", "of", "customers", "in", "total", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "customer" ], [ "in" ], [ "total" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "in", "IN" ], [ "total", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "customer_deliveries", "query": "SELECT count(DISTINCT payment_method) FROM customers", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "payment_method", ")", "FROM", "customers" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "payment_method", ")", "from", "customers" ], "question": "How many different payment methods are there?", "question_toks": [ "how", "many", "different", "payment", "method", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "regular order id", "product id", "actual order id", "order status code", "regular order id", "actual order date", "actual order id", "product id", "customer id", "address id", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "route id", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "location code", "actual order id", "delivery status code", "driver employee id", "truck id", "delivery date" ], "table_names": [ "products", "addresses", "customers", "regular orders", "regular order products", "actual orders", "actual order products", "customer addresses", "delivery routes", "delivery route locations", "trucks", "employees", "order deliveries" ], "col_set": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "actual order id", "order status code", "actual order date", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "delivery status code", "driver employee id", "delivery date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "18": 11, "11": 11, "19": 17, "17": 17, "20": 1, "1": 1, "23": 17, "25": 21, "21": 21, "26": 1, "28": 5, "5": 5, "27": 11, "36": 32, "32": 32, "37": 5, "43": 5, "49": 42, "42": 42, "46": 35, "35": 35, "47": 21, "50": 39, "39": 39 }, "origin_question_toks": [ "How", "many", "different", "payment", "methods", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "payment", "method" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "payment", "NN" ], [ "method", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(12) T(2)" }, { "db_id": "customer_deliveries", "query": "SELECT truck_details FROM trucks ORDER BY truck_licence_number", "query_toks": [ "SELECT", "truck_details", "FROM", "trucks", "ORDER", "BY", "truck_licence_number" ], "query_toks_no_value": [ "select", "truck_details", "from", "trucks", "order", "by", "truck_licence_number" ], "question": "Show the details of all trucks in the order of their license number.", "question_toks": [ "show", "detail", "of", "all", "truck", "in", "order", "of", "their", "license", "number", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 40, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "regular order id", "product id", "actual order id", "order status code", "regular order id", "actual order date", "actual order id", "product id", "customer id", "address id", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "route id", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "location code", "actual order id", "delivery status code", "driver employee id", "truck id", "delivery date" ], "table_names": [ "products", "addresses", "customers", "regular orders", "regular order products", "actual orders", "actual order products", "customer addresses", "delivery routes", "delivery route locations", "trucks", "employees", "order deliveries" ], "col_set": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "actual order id", "order status code", "actual order date", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "delivery status code", "driver employee id", "delivery date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "18": 11, "11": 11, "19": 17, "17": 17, "20": 1, "1": 1, "23": 17, "25": 21, "21": 21, "26": 1, "28": 5, "5": 5, "27": 11, "36": 32, "32": 32, "37": 5, "43": 5, "49": 42, "42": 42, "46": 35, "35": 35, "47": 21, "50": 39, "39": 39 }, "origin_question_toks": [ "Show", "the", "details", "of", "all", "trucks", "in", "the", "order", "of", "their", "license", "number", "." ], "question_arg": [ [ "show" ], [ "detail" ], [ "of" ], [ "all" ], [ "truck" ], [ "in" ], [ "order" ], [ "of" ], [ "their" ], [ "license" ], [ "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "detail", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "truck", "NN" ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "license", "JJ" ], [ "number", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(33) T(10) Order(1) A(0) C(32) T(10)" }, { "db_id": "customer_deliveries", "query": "SELECT product_name FROM products ORDER BY product_price DESC LIMIT 1", "query_toks": [ "SELECT", "product_name", "FROM", "products", "ORDER", "BY", "product_price", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "product_name", "from", "products", "order", "by", "product_price", "desc", "limit", "value" ], "question": "Find the name of the most expensive product.", "question_toks": [ "find", "name", "of", "most", "expensive", "product", "." ], "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": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "regular order id", "product id", "actual order id", "order status code", "regular order id", "actual order date", "actual order id", "product id", "customer id", "address id", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "route id", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "location code", "actual order id", "delivery status code", "driver employee id", "truck id", "delivery date" ], "table_names": [ "products", "addresses", "customers", "regular orders", "regular order products", "actual orders", "actual order products", "customer addresses", "delivery routes", "delivery route locations", "trucks", "employees", "order deliveries" ], "col_set": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "actual order id", "order status code", "actual order date", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "delivery status code", "driver employee id", "delivery date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "18": 11, "11": 11, "19": 17, "17": 17, "20": 1, "1": 1, "23": 17, "25": 21, "21": 21, "26": 1, "28": 5, "5": 5, "27": 11, "36": 32, "32": 32, "37": 5, "43": 5, "49": 42, "42": 42, "46": 35, "35": 35, "47": 21, "50": 39, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "most", "expensive", "product", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "most" ], [ "expensive" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "expensive", "JJ" ], [ "product", "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": "customer_deliveries", "query": "SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California'", "query_toks": [ "SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_addresses", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "addresses", "AS", "t3", "ON", "t2.address_id", "=", "t3.address_id", "WHERE", "t3.state_province_county", "=", "'California", "'" ], "query_toks_no_value": [ "select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", "where", "t3", ".", "state_province_county", "=", "value" ], "question": "Find the names of customers who are not living in the state of California.", "question_toks": [ "find", "name", "of", "customer", "who", "are", "not", "living", "in", "state", "of", "california", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 27, 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 ], "\"California\"", 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": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "regular order id", "product id", "actual order id", "order status code", "regular order id", "actual order date", "actual order id", "product id", "customer id", "address id", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "route id", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "location code", "actual order id", "delivery status code", "driver employee id", "truck id", "delivery date" ], "table_names": [ "products", "addresses", "customers", "regular orders", "regular order products", "actual orders", "actual order products", "customer addresses", "delivery routes", "delivery route locations", "trucks", "employees", "order deliveries" ], "col_set": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "actual order id", "order status code", "actual order date", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "delivery status code", "driver employee id", "delivery date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "18": 11, "11": 11, "19": 17, "17": 17, "20": 1, "1": 1, "23": 17, "25": 21, "21": 21, "26": 1, "28": 5, "5": 5, "27": 11, "36": 32, "32": 32, "37": 5, "43": 5, "49": 42, "42": 42, "46": 35, "35": 35, "47": 21, "50": 39, "39": 39 }, "origin_question_toks": [ "Find", "the", "names", "of", "customers", "who", "are", "not", "living", "in", "the", "state", "of", "California", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "are" ], [ "not" ], [ "living" ], [ "in" ], [ "state" ], [ "of" ], [ "california" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "living", "VBG" ], [ "in", "IN" ], [ "state", "NN" ], [ "of", "IN" ], [ "california", "NN" ], [ ".", "." ] ], "values": [ "California" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(13) T(2) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(0) Filter(18) A(0) C(11) T(2) Root(5) Sel(0) N(0) A(0) C(11) T(7) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "customer_deliveries", "query": "SELECT customer_email , customer_name FROM customers WHERE payment_method = 'Visa'", "query_toks": [ "SELECT", "customer_email", ",", "customer_name", "FROM", "customers", "WHERE", "payment_method", "=", "'Visa", "'" ], "query_toks_no_value": [ "select", "customer_email", ",", "customer_name", "from", "customers", "where", "payment_method", "=", "value" ], "question": "List the names and emails of customers who payed by Visa card.", "question_toks": [ "list", "name", "and", "email", "of", "customer", "who", "payed", "by", "visa", "card", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Visa\"", null ] ] }, "names": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "regular order id", "product id", "actual order id", "order status code", "regular order id", "actual order date", "actual order id", "product id", "customer id", "address id", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "route id", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "location code", "actual order id", "delivery status code", "driver employee id", "truck id", "delivery date" ], "table_names": [ "products", "addresses", "customers", "regular orders", "regular order products", "actual orders", "actual order products", "customer addresses", "delivery routes", "delivery route locations", "trucks", "employees", "order deliveries" ], "col_set": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "actual order id", "order status code", "actual order date", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "delivery status code", "driver employee id", "delivery date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "18": 11, "11": 11, "19": 17, "17": 17, "20": 1, "1": 1, "23": 17, "25": 21, "21": 21, "26": 1, "28": 5, "5": 5, "27": 11, "36": 32, "32": 32, "37": 5, "43": 5, "49": 42, "42": 42, "46": 35, "35": 35, "47": 21, "50": 39, "39": 39 }, "origin_question_toks": [ "List", "the", "names", "and", "emails", "of", "customers", "who", "payed", "by", "Visa", "card", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "email" ], [ "of" ], [ "customer" ], [ "who" ], [ "payed" ], [ "by" ], [ "visa" ], [ "card" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "email", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "payed", "VBN" ], [ "by", "IN" ], [ "visa", "JJ" ], [ "card", "NN" ], [ ".", "." ] ], "values": [ "Visa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(15) T(2) A(0) C(13) T(2) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "customer_deliveries", "query": "SELECT t1.customer_name , t1.customer_phone FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California'", "query_toks": [ "SELECT", "t1.customer_name", ",", "t1.customer_phone", "FROM", "customers", "AS", "t1", "JOIN", "customer_addresses", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "addresses", "AS", "t3", "ON", "t2.address_id", "=", "t3.address_id", "WHERE", "t3.state_province_county", "=", "'California", "'" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", ",", "t1", ".", "customer_phone", "from", "customers", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", "where", "t3", ".", "state_province_county", "=", "value" ], "question": "Find the names and phone numbers of customers living in California state.", "question_toks": [ "find", "name", "and", "phone", "number", "of", "customer", "living", "in", "california", "state", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ] ] }, "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, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 27, 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 ], "\"California\"", null ] ] }, "names": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "regular order id", "product id", "actual order id", "order status code", "regular order id", "actual order date", "actual order id", "product id", "customer id", "address id", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "route id", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "location code", "actual order id", "delivery status code", "driver employee id", "truck id", "delivery date" ], "table_names": [ "products", "addresses", "customers", "regular orders", "regular order products", "actual orders", "actual order products", "customer addresses", "delivery routes", "delivery route locations", "trucks", "employees", "order deliveries" ], "col_set": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "actual order id", "order status code", "actual order date", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "delivery status code", "driver employee id", "delivery date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "18": 11, "11": 11, "19": 17, "17": 17, "20": 1, "1": 1, "23": 17, "25": 21, "21": 21, "26": 1, "28": 5, "5": 5, "27": 11, "36": 32, "32": 32, "37": 5, "43": 5, "49": 42, "42": 42, "46": 35, "35": 35, "47": 21, "50": 39, "39": 39 }, "origin_question_toks": [ "Find", "the", "names", "and", "phone", "numbers", "of", "customers", "living", "in", "California", "state", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "phone" ], [ "number" ], [ "of" ], [ "customer" ], [ "living" ], [ "in" ], [ "california" ], [ "state" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "living", "NN" ], [ "in", "IN" ], [ "california", "JJ" ], [ "state", "NN" ], [ ".", "." ] ], "values": [ "California" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(13) T(2) A(0) C(14) T(2) Filter(0) Filter(18) A(0) C(11) T(2) Root(5) Sel(0) N(0) A(0) C(11) T(7) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "customer_deliveries", "query": "SELECT state_province_county FROM addresses WHERE address_id NOT IN (SELECT employee_address_id FROM Employees)", "query_toks": [ "SELECT", "state_province_county", "FROM", "addresses", "WHERE", "address_id", "NOT", "IN", "(", "SELECT", "employee_address_id", "FROM", "Employees", ")" ], "query_toks_no_value": [ "select", "state_province_county", "from", "addresses", "where", "address_id", "not", "in", "(", "select", "employee_address_id", "from", "employees", ")" ], "question": "Find the states which do not have any employee in their record.", "question_toks": [ "find", "state", "which", "do", "not", "have", "any", "employee", "in", "their", "record", "." ], "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, 5, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "regular order id", "product id", "actual order id", "order status code", "regular order id", "actual order date", "actual order id", "product id", "customer id", "address id", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "route id", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "location code", "actual order id", "delivery status code", "driver employee id", "truck id", "delivery date" ], "table_names": [ "products", "addresses", "customers", "regular orders", "regular order products", "actual orders", "actual order products", "customer addresses", "delivery routes", "delivery route locations", "trucks", "employees", "order deliveries" ], "col_set": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "actual order id", "order status code", "actual order date", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "delivery status code", "driver employee id", "delivery date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "18": 11, "11": 11, "19": 17, "17": 17, "20": 1, "1": 1, "23": 17, "25": 21, "21": 21, "26": 1, "28": 5, "5": 5, "27": 11, "36": 32, "32": 32, "37": 5, "43": 5, "49": 42, "42": 42, "46": 35, "35": 35, "47": 21, "50": 39, "39": 39 }, "origin_question_toks": [ "Find", "the", "states", "which", "do", "not", "have", "any", "employee", "in", "their", "record", "." ], "question_arg": [ [ "find" ], [ "state" ], [ "which" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "employee" ], [ "in" ], [ "their" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "state", "NN" ], [ "which", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "employee", "NN" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "record", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(19) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(35) T(11)" }, { "db_id": "customer_deliveries", "query": "SELECT customer_name , customer_phone , customer_email FROM Customers ORDER BY date_became_customer", "query_toks": [ "SELECT", "customer_name", ",", "customer_phone", ",", "customer_email", "FROM", "Customers", "ORDER", "BY", "date_became_customer" ], "query_toks_no_value": [ "select", "customer_name", ",", "customer_phone", ",", "customer_email", "from", "customers", "order", "by", "date_became_customer" ], "question": "List the names, phone numbers, and emails of all customers sorted by their dates of becoming customers.", "question_toks": [ "list", "name", ",", "phone", "number", ",", "and", "email", "of", "all", "customer", "sorted", "by", "their", "date", "of", "becoming", "customer", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "regular order id", "product id", "actual order id", "order status code", "regular order id", "actual order date", "actual order id", "product id", "customer id", "address id", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "route id", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "location code", "actual order id", "delivery status code", "driver employee id", "truck id", "delivery date" ], "table_names": [ "products", "addresses", "customers", "regular orders", "regular order products", "actual orders", "actual order products", "customer addresses", "delivery routes", "delivery route locations", "trucks", "employees", "order deliveries" ], "col_set": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "actual order id", "order status code", "actual order date", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "delivery status code", "driver employee id", "delivery date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "18": 11, "11": 11, "19": 17, "17": 17, "20": 1, "1": 1, "23": 17, "25": 21, "21": 21, "26": 1, "28": 5, "5": 5, "27": 11, "36": 32, "32": 32, "37": 5, "43": 5, "49": 42, "42": 42, "46": 35, "35": 35, "47": 21, "50": 39, "39": 39 }, "origin_question_toks": [ "List", "the", "names", ",", "phone", "numbers", ",", "and", "emails", "of", "all", "customers", "sorted", "by", "their", "dates", "of", "becoming", "customers", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "," ], [ "phone" ], [ "number" ], [ "," ], [ "and" ], [ "email" ], [ "of" ], [ "all" ], [ "customer" ], [ "sorted" ], [ "by" ], [ "their" ], [ "date" ], [ "of" ], [ "becoming" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "phone", "NN" ], [ "number", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "email", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "date", "NN" ], [ "of", "IN" ], [ "becoming", "VBG" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(13) T(2) A(0) C(14) T(2) A(0) C(15) T(2) Order(1) A(0) C(16) T(2)" }, { "db_id": "customer_deliveries", "query": "SELECT customer_name FROM Customers ORDER BY date_became_customer LIMIT 5", "query_toks": [ "SELECT", "customer_name", "FROM", "Customers", "ORDER", "BY", "date_became_customer", "LIMIT", "5" ], "query_toks_no_value": [ "select", "customer_name", "from", "customers", "order", "by", "date_became_customer", "limit", "value" ], "question": "Find the name of the first 5 customers.", "question_toks": [ "find", "name", "of", "first", "5", "customer", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 5, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "regular order id", "product id", "actual order id", "order status code", "regular order id", "actual order date", "actual order id", "product id", "customer id", "address id", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "route id", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "location code", "actual order id", "delivery status code", "driver employee id", "truck id", "delivery date" ], "table_names": [ "products", "addresses", "customers", "regular orders", "regular order products", "actual orders", "actual order products", "customer addresses", "delivery routes", "delivery route locations", "trucks", "employees", "order deliveries" ], "col_set": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "actual order id", "order status code", "actual order date", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "delivery status code", "driver employee id", "delivery date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "18": 11, "11": 11, "19": 17, "17": 17, "20": 1, "1": 1, "23": 17, "25": 21, "21": 21, "26": 1, "28": 5, "5": 5, "27": 11, "36": 32, "32": 32, "37": 5, "43": 5, "49": 42, "42": 42, "46": 35, "35": 35, "47": 21, "50": 39, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "first", "5", "customers", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "first" ], [ "5" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "first", "JJ" ], [ "5", "CD" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [ "5", "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(13) T(2) Sup(1) A(0) C(16) T(2)" }, { "db_id": "customer_deliveries", "query": "SELECT payment_method FROM Customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "payment_method", "FROM", "Customers", "GROUP", "BY", "payment_method", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "payment_method", "from", "customers", "group", "by", "payment_method", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the payment method that is used most frequently.", "question_toks": [ "find", "payment", "method", "that", "is", "used", "most", "frequently", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "regular order id", "product id", "actual order id", "order status code", "regular order id", "actual order date", "actual order id", "product id", "customer id", "address id", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "route id", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "location code", "actual order id", "delivery status code", "driver employee id", "truck id", "delivery date" ], "table_names": [ "products", "addresses", "customers", "regular orders", "regular order products", "actual orders", "actual order products", "customer addresses", "delivery routes", "delivery route locations", "trucks", "employees", "order deliveries" ], "col_set": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "actual order id", "order status code", "actual order date", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "delivery status code", "driver employee id", "delivery date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "18": 11, "11": 11, "19": 17, "17": 17, "20": 1, "1": 1, "23": 17, "25": 21, "21": 21, "26": 1, "28": 5, "5": 5, "27": 11, "36": 32, "32": 32, "37": 5, "43": 5, "49": 42, "42": 42, "46": 35, "35": 35, "47": 21, "50": 39, "39": 39 }, "origin_question_toks": [ "Find", "the", "payment", "method", "that", "is", "used", "most", "frequently", "." ], "question_arg": [ [ "find" ], [ "payment", "method" ], [ "that" ], [ "is" ], [ "used" ], [ "most" ], [ "frequently" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "payment", "NN" ], [ "method", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "used", "VBN" ], [ "most", "RBS" ], [ "frequently", "RB" ], [ ".", "." ] ], "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": "customer_deliveries", "query": "SELECT route_name FROM Delivery_Routes ORDER BY route_name", "query_toks": [ "SELECT", "route_name", "FROM", "Delivery_Routes", "ORDER", "BY", "route_name" ], "query_toks_no_value": [ "select", "route_name", "from", "delivery_routes", "order", "by", "route_name" ], "question": "List the names of all routes in alphabetic order.", "question_toks": [ "list", "name", "of", "all", "route", "in", "alphabetic", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 33, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "regular order id", "product id", "actual order id", "order status code", "regular order id", "actual order date", "actual order id", "product id", "customer id", "address id", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "route id", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "location code", "actual order id", "delivery status code", "driver employee id", "truck id", "delivery date" ], "table_names": [ "products", "addresses", "customers", "regular orders", "regular order products", "actual orders", "actual order products", "customer addresses", "delivery routes", "delivery route locations", "trucks", "employees", "order deliveries" ], "col_set": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "actual order id", "order status code", "actual order date", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "delivery status code", "driver employee id", "delivery date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "18": 11, "11": 11, "19": 17, "17": 17, "20": 1, "1": 1, "23": 17, "25": 21, "21": 21, "26": 1, "28": 5, "5": 5, "27": 11, "36": 32, "32": 32, "37": 5, "43": 5, "49": 42, "42": 42, "46": 35, "35": 35, "47": 21, "50": 39, "39": 39 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "routes", "in", "alphabetic", "order", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "route" ], [ "in" ], [ "alphabetic" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "route", "NN" ], [ "in", "IN" ], [ "alphabetic", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(26) T(8) Order(1) A(0) C(26) T(8)" }, { "db_id": "customer_deliveries", "query": "SELECT t1.route_name FROM Delivery_Routes AS t1 JOIN Delivery_Route_Locations AS t2 ON t1.route_id = t2.route_id GROUP BY t1.route_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.route_name", "FROM", "Delivery_Routes", "AS", "t1", "JOIN", "Delivery_Route_Locations", "AS", "t2", "ON", "t1.route_id", "=", "t2.route_id", "GROUP", "BY", "t1.route_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "route_name", "from", "delivery_routes", "as", "t1", "join", "delivery_route_locations", "as", "t2", "on", "t1", ".", "route_id", "=", "t2", ".", "route_id", "group", "by", "t1", ".", "route_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name of route that has the highest number of deliveries.", "question_toks": [ "find", "name", "of", "route", "that", "ha", "highest", "number", "of", "delivery", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 36, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 32, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "regular order id", "product id", "actual order id", "order status code", "regular order id", "actual order date", "actual order id", "product id", "customer id", "address id", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "route id", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "location code", "actual order id", "delivery status code", "driver employee id", "truck id", "delivery date" ], "table_names": [ "products", "addresses", "customers", "regular orders", "regular order products", "actual orders", "actual order products", "customer addresses", "delivery routes", "delivery route locations", "trucks", "employees", "order deliveries" ], "col_set": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "actual order id", "order status code", "actual order date", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "delivery status code", "driver employee id", "delivery date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "18": 11, "11": 11, "19": 17, "17": 17, "20": 1, "1": 1, "23": 17, "25": 21, "21": 21, "26": 1, "28": 5, "5": 5, "27": 11, "36": 32, "32": 32, "37": 5, "43": 5, "49": 42, "42": 42, "46": 35, "35": 35, "47": 21, "50": 39, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "route", "that", "has", "the", "highest", "number", "of", "deliveries", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "route" ], [ "that" ], [ "ha" ], [ "highest" ], [ "number" ], [ "of" ], [ "delivery" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "highest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "delivery", "NN" ], [ ".", "." ] ], "values": [ "Delivered" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(26) T(8) Sup(0) A(3) C(0) T(9) Filter(18) A(0) C(25) T(8) Root(5) Sel(0) N(0) A(0) C(25) T(9)" }, { "db_id": "customer_deliveries", "query": "SELECT t2.state_province_county , count(*) FROM customer_addresses AS t1 JOIN addresses AS t2 ON t1.address_id = t2.address_id GROUP BY t2.state_province_county", "query_toks": [ "SELECT", "t2.state_province_county", ",", "count", "(", "*", ")", "FROM", "customer_addresses", "AS", "t1", "JOIN", "addresses", "AS", "t2", "ON", "t1.address_id", "=", "t2.address_id", "GROUP", "BY", "t2.state_province_county" ], "query_toks_no_value": [ "select", "t2", ".", "state_province_county", ",", "count", "(", "*", ")", "from", "customer_addresses", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "group", "by", "t2", ".", "state_province_county" ], "question": "List the state names and the number of customers living in each state.", "question_toks": [ "list", "state", "name", "and", "number", "of", "customer", "living", "in", "each", "state", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "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": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "regular order id", "product id", "actual order id", "order status code", "regular order id", "actual order date", "actual order id", "product id", "customer id", "address id", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "route id", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "location code", "actual order id", "delivery status code", "driver employee id", "truck id", "delivery date" ], "table_names": [ "products", "addresses", "customers", "regular orders", "regular order products", "actual orders", "actual order products", "customer addresses", "delivery routes", "delivery route locations", "trucks", "employees", "order deliveries" ], "col_set": [ "*", "product id", "product name", "product price", "product description", "address id", "address details", "city", "zip postcode", "state province county", "country", "customer id", "payment method", "customer name", "customer phone", "customer email", "date became customer", "regular order id", "distributer id", "actual order id", "order status code", "actual order date", "date from", "address type", "date to", "route id", "route name", "other route details", "location code", "location address id", "location name", "truck id", "truck licence number", "truck details", "employee id", "employee address id", "employee name", "employee phone", "delivery status code", "driver employee id", "delivery date" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12 ], "keys": { "18": 11, "11": 11, "19": 17, "17": 17, "20": 1, "1": 1, "23": 17, "25": 21, "21": 21, "26": 1, "28": 5, "5": 5, "27": 11, "36": 32, "32": 32, "37": 5, "43": 5, "49": 42, "42": 42, "46": 35, "35": 35, "47": 21, "50": 39, "39": 39 }, "origin_question_toks": [ "List", "the", "state", "names", "and", "the", "number", "of", "customers", "living", "in", "each", "state", "." ], "question_arg": [ [ "list" ], [ "state" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "customer" ], [ "living" ], [ "in" ], [ "each" ], [ "state" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "state", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "living", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "state", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(3) C(0) T(7)" }, { "db_id": "icfp_1", "query": "SELECT count(*) FROM authors", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "authors" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "authors" ], "question": "How many authors are there?", "question_toks": [ "how", "many", "author", "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": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "How", "many", "authors", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "author" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "author", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "icfp_1", "query": "SELECT count(*) FROM authors", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "authors" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "authors" ], "question": "Count the number of authors.", "question_toks": [ "count", "number", "of", "author", "." ], "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": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Count", "the", "number", "of", "authors", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "author" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "icfp_1", "query": "SELECT count(*) FROM inst", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "inst" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "inst" ], "question": "How many institutions are there?", "question_toks": [ "how", "many", "institution", "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": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "How", "many", "institutions", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "institution" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "institution", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "icfp_1", "query": "SELECT count(*) FROM inst", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "inst" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "inst" ], "question": "Count the number of institutions.", "question_toks": [ "count", "number", "of", "institution", "." ], "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": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Count", "the", "number", "of", "institutions", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "institution" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "institution", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "icfp_1", "query": "SELECT count(*) FROM papers", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "papers" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "papers" ], "question": "How many papers are published in total?", "question_toks": [ "how", "many", "paper", "are", "published", "in", "total", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "How", "many", "papers", "are", "published", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "paper" ], [ "are" ], [ "published" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "paper", "NN" ], [ "are", "VBP" ], [ "published", "VBN" ], [ "in", "IN" ], [ "total", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "icfp_1", "query": "SELECT count(*) FROM papers", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "papers" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "papers" ], "question": "Count the number of total papers.", "question_toks": [ "count", "number", "of", "total", "paper", "." ], "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": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Count", "the", "number", "of", "total", "papers", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "total" ], [ "paper" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "total", "JJ" ], [ "paper", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "icfp_1", "query": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Jeremy\" AND t1.lname = \"Gibbons\"", "query_toks": [ "SELECT", "t3.title", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t1.fname", "=", "``", "Jeremy", "''", "AND", "t1.lname", "=", "``", "Gibbons", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "What are the titles of papers published by \"Jeremy Gibbons\"?", "question_toks": [ "what", "are", "title", "of", "paper", "published", "by", "'", "jeremy", "gibbon", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Jeremy\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Gibbons\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "papers", "published", "by", "``", "Jeremy", "Gibbons", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "paper" ], [ "published" ], [ "by" ], [ "'" ], [ "jeremy" ], [ "gibbon" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "of", "IN" ], [ "paper", "NN" ], [ "published", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "jeremy", "NN" ], [ "gibbon", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Gibbons", "Jeremy", "Jeremy Gibbons" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(0) Filter(2) A(0) C(6) T(1) V(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "icfp_1", "query": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Jeremy\" AND t1.lname = \"Gibbons\"", "query_toks": [ "SELECT", "t3.title", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t1.fname", "=", "``", "Jeremy", "''", "AND", "t1.lname", "=", "``", "Gibbons", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "Find the titles of all the papers written by \"Jeremy Gibbons\"", "question_toks": [ "find", "title", "of", "all", "paper", "written", "by", "'", "jeremy", "gibbon", "'" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Jeremy\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Gibbons\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "the", "titles", "of", "all", "the", "papers", "written", "by", "``", "Jeremy", "Gibbons", "''" ], "question_arg": [ [ "find" ], [ "title" ], [ "of" ], [ "all" ], [ "paper" ], [ "written" ], [ "by" ], [ "'" ], [ "jeremy" ], [ "gibbon" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "paper", "NN" ], [ "written", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "jeremy", "NN" ], [ "gibbon", "NN" ], [ "'", "''" ] ], "values": [ "Gibbons", "Jeremy", "Jeremy Gibbons" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(0) Filter(2) A(0) C(6) T(1) V(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "icfp_1", "query": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Aaron\" AND t1.lname = \"Turon\"", "query_toks": [ "SELECT", "t3.title", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t1.fname", "=", "``", "Aaron", "''", "AND", "t1.lname", "=", "``", "Turon", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "Find all the papers published by \"Aaron Turon\".", "question_toks": [ "find", "all", "paper", "published", "by", "'", "aaron", "turon", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Aaron\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Turon\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "all", "the", "papers", "published", "by", "``", "Aaron", "Turon", "''", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "paper" ], [ "published" ], [ "by" ], [ "'" ], [ "aaron" ], [ "turon" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "paper", "NN" ], [ "published", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "aaron", "NN" ], [ "turon", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Aaron Turon", "Turon", "Aaron" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(0) Filter(2) A(0) C(6) T(1) V(2) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "icfp_1", "query": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Aaron\" AND t1.lname = \"Turon\"", "query_toks": [ "SELECT", "t3.title", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t1.fname", "=", "``", "Aaron", "''", "AND", "t1.lname", "=", "``", "Turon", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "Find the titles of all the papers written by \"Aaron Turon\".", "question_toks": [ "find", "title", "of", "all", "paper", "written", "by", "'", "aaron", "turon", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Aaron\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Turon\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "the", "titles", "of", "all", "the", "papers", "written", "by", "``", "Aaron", "Turon", "''", "." ], "question_arg": [ [ "find" ], [ "title" ], [ "of" ], [ "all" ], [ "paper" ], [ "written" ], [ "by" ], [ "'" ], [ "aaron" ], [ "turon" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "paper", "NN" ], [ "written", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "aaron", "NN" ], [ "turon", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Aaron Turon", "Turon", "Aaron" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(0) Filter(2) A(0) C(6) T(1) V(2) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "icfp_1", "query": "SELECT count(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Atsushi\" AND t1.lname = \"Ohori\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t1.fname", "=", "``", "Atsushi", "''", "AND", "t1.lname", "=", "``", "Ohori", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "How many papers have \"Atsushi Ohori\" published?", "question_toks": [ "how", "many", "paper", "have", "'", "atsushi", "ohori", "'", "published", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 6, false ], null ], "\"Atsushi\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Ohori\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "How", "many", "papers", "have", "``", "Atsushi", "Ohori", "''", "published", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "paper" ], [ "have" ], [ "'" ], [ "atsushi" ], [ "ohori" ], [ "'" ], [ "published" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "paper", "NN" ], [ "have", "VBP" ], [ "'", "VBN" ], [ "atsushi", "JJ" ], [ "ohori", "NNS" ], [ "'", "POS" ], [ "published", "VBN" ], [ "?", "." ] ], "values": [ "Ohori", "Atsushi Ohori", "Atsushi" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(0) Filter(2) A(0) C(6) T(1) V(2) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "icfp_1", "query": "SELECT count(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Atsushi\" AND t1.lname = \"Ohori\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t1.fname", "=", "``", "Atsushi", "''", "AND", "t1.lname", "=", "``", "Ohori", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "How many papers are \"Atsushi Ohori\" the author of?", "question_toks": [ "how", "many", "paper", "are", "'", "atsushi", "ohori", "'", "author", "of", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 6, false ], null ], "\"Atsushi\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Ohori\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "How", "many", "papers", "are", "``", "Atsushi", "Ohori", "''", "the", "author", "of", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "paper" ], [ "are" ], [ "'" ], [ "atsushi" ], [ "ohori" ], [ "'" ], [ "author" ], [ "of" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "paper", "NN" ], [ "are", "VBP" ], [ "'", "POS" ], [ "atsushi", "JJ" ], [ "ohori", "NNS" ], [ "'", "POS" ], [ "author", "NN" ], [ "of", "IN" ], [ "?", "." ] ], "values": [ "Ohori", "Atsushi Ohori", "Atsushi" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(0) Filter(2) A(0) C(6) T(1) V(2) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "icfp_1", "query": "SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = \"Matthias\" AND t1.lname = \"Blume\"", "query_toks": [ "SELECT", "DISTINCT", "t3.name", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "inst", "AS", "t3", "ON", "t2.instid", "=", "t3.instid", "WHERE", "t1.fname", "=", "``", "Matthias", "''", "AND", "t1.lname", "=", "``", "Blume", "''" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "name", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "inst", "as", "t3", "on", "t2", ".", "instid", "=", "t3", ".", "instid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "What is the name of the institution that \"Matthias Blume\" belongs to?", "question_toks": [ "what", "is", "name", "of", "institution", "that", "'", "matthias", "blume", "'", "belongs", "to", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Matthias\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Blume\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "institution", "that", "``", "Matthias", "Blume", "''", "belongs", "to", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "institution" ], [ "that" ], [ "'" ], [ "matthias" ], [ "blume" ], [ "'" ], [ "belongs" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "institution", "NN" ], [ "that", "IN" ], [ "'", "''" ], [ "matthias", "JJ" ], [ "blume", "NN" ], [ "'", "''" ], [ "belongs", "NNS" ], [ "to", "TO" ], [ "?", "." ] ], "values": [ "Matthias", "Blume", "Matthias Blume" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(0) Filter(2) A(0) C(6) T(1) V(0) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "icfp_1", "query": "SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = \"Matthias\" AND t1.lname = \"Blume\"", "query_toks": [ "SELECT", "DISTINCT", "t3.name", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "inst", "AS", "t3", "ON", "t2.instid", "=", "t3.instid", "WHERE", "t1.fname", "=", "``", "Matthias", "''", "AND", "t1.lname", "=", "``", "Blume", "''" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "name", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "inst", "as", "t3", "on", "t2", ".", "instid", "=", "t3", ".", "instid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "Which institution is the author \"Matthias Blume\" belong to? Give me the name of the institution.", "question_toks": [ "which", "institution", "is", "author", "'", "matthias", "blume", "'", "belong", "to", "?", "give", "me", "name", "of", "institution", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Matthias\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Blume\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Which", "institution", "is", "the", "author", "``", "Matthias", "Blume", "''", "belong", "to", "?", "Give", "me", "the", "name", "of", "the", "institution", "." ], "question_arg": [ [ "which" ], [ "institution" ], [ "is" ], [ "author" ], [ "'" ], [ "matthias" ], [ "blume" ], [ "'" ], [ "belong" ], [ "to" ], [ "?" ], [ "give" ], [ "me" ], [ "name" ], [ "of" ], [ "institution" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "institution", "NN" ], [ "is", "VBZ" ], [ "author", "JJ" ], [ "'", "''" ], [ "matthias", "JJ" ], [ "blume", "NN" ], [ "'", "''" ], [ "belong", "NN" ], [ "to", "TO" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "of", "IN" ], [ "institution", "NN" ], [ ".", "." ] ], "values": [ "Matthias", "Blume", "Matthias Blume" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(0) Filter(2) A(0) C(6) T(1) V(0) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "icfp_1", "query": "SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = \"Katsuhiro\" AND t1.lname = \"Ueno\"", "query_toks": [ "SELECT", "DISTINCT", "t3.name", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "inst", "AS", "t3", "ON", "t2.instid", "=", "t3.instid", "WHERE", "t1.fname", "=", "``", "Katsuhiro", "''", "AND", "t1.lname", "=", "``", "Ueno", "''" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "name", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "inst", "as", "t3", "on", "t2", ".", "instid", "=", "t3", ".", "instid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "Which institution does \"Katsuhiro Ueno\" belong to?", "question_toks": [ "which", "institution", "doe", "'", "katsuhiro", "ueno", "'", "belong", "to", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Katsuhiro\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Ueno\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Which", "institution", "does", "``", "Katsuhiro", "Ueno", "''", "belong", "to", "?" ], "question_arg": [ [ "which" ], [ "institution" ], [ "doe" ], [ "'" ], [ "katsuhiro" ], [ "ueno" ], [ "'" ], [ "belong" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "institution", "NN" ], [ "doe", "NN" ], [ "'", "''" ], [ "katsuhiro", "JJ" ], [ "ueno", "NN" ], [ "'", "''" ], [ "belong", "NN" ], [ "to", "TO" ], [ "?", "." ] ], "values": [ "Ueno", "Katsuhiro", "Katsuhiro Ueno" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(0) Filter(2) A(0) C(6) T(1) V(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "icfp_1", "query": "SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = \"Katsuhiro\" AND t1.lname = \"Ueno\"", "query_toks": [ "SELECT", "DISTINCT", "t3.name", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "inst", "AS", "t3", "ON", "t2.instid", "=", "t3.instid", "WHERE", "t1.fname", "=", "``", "Katsuhiro", "''", "AND", "t1.lname", "=", "``", "Ueno", "''" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "name", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "inst", "as", "t3", "on", "t2", ".", "instid", "=", "t3", ".", "instid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "What is the name of the institution the author \"Katsuhiro Ueno\" belongs to?", "question_toks": [ "what", "is", "name", "of", "institution", "author", "'", "katsuhiro", "ueno", "'", "belongs", "to", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Katsuhiro\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Ueno\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "institution", "the", "author", "``", "Katsuhiro", "Ueno", "''", "belongs", "to", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "institution" ], [ "author" ], [ "'" ], [ "katsuhiro" ], [ "ueno" ], [ "'" ], [ "belongs" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "institution", "NN" ], [ "author", "NN" ], [ "'", "''" ], [ "katsuhiro", "JJ" ], [ "ueno", "NN" ], [ "'", "''" ], [ "belongs", "NNS" ], [ "to", "TO" ], [ "?", "." ] ], "values": [ "Ueno", "Katsuhiro", "Katsuhiro Ueno" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(0) Filter(2) A(0) C(6) T(1) V(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "icfp_1", "query": "SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"University of Oxford\"", "query_toks": [ "SELECT", "DISTINCT", "t1.fname", ",", "t1.lname", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "inst", "AS", "t3", "ON", "t2.instid", "=", "t3.instid", "WHERE", "t3.name", "=", "``", "University", "of", "Oxford", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "inst", "as", "t3", "on", "t2", ".", "instid", "=", "t3", ".", "instid", "where", "t3", ".", "name", "=", "value" ], "question": "Who belong to the institution \"University of Oxford\"? Show the first names and last names.", "question_toks": [ "who", "belong", "to", "institution", "'", "university", "of", "oxford", "'", "?", "show", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"University of Oxford\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Who", "belong", "to", "the", "institution", "``", "University", "of", "Oxford", "''", "?", "Show", "the", "first", "names", "and", "last", "names", "." ], "question_arg": [ [ "who" ], [ "belong" ], [ "to" ], [ "institution" ], [ "'" ], [ "university" ], [ "of" ], [ "oxford" ], [ "'" ], [ "?" ], [ "show" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "belong", "VBP" ], [ "to", "TO" ], [ "institution", "NN" ], [ "'", "''" ], [ "university", "NN" ], [ "of", "IN" ], [ "oxford", "NN" ], [ "'", "''" ], [ "?", "." ], [ "show", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "University of Oxford", "1", "James" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(6) T(1) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "icfp_1", "query": "SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"University of Oxford\"", "query_toks": [ "SELECT", "DISTINCT", "t1.fname", ",", "t1.lname", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "inst", "AS", "t3", "ON", "t2.instid", "=", "t3.instid", "WHERE", "t3.name", "=", "``", "University", "of", "Oxford", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "inst", "as", "t3", "on", "t2", ".", "instid", "=", "t3", ".", "instid", "where", "t3", ".", "name", "=", "value" ], "question": "Find the first names and last names of the authors whose institution affiliation is \"University of Oxford\".", "question_toks": [ "find", "first", "name", "and", "last", "name", "of", "author", "whose", "institution", "affiliation", "is", "'", "university", "of", "oxford", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"University of Oxford\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "the", "first", "names", "and", "last", "names", "of", "the", "authors", "whose", "institution", "affiliation", "is", "``", "University", "of", "Oxford", "''", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "author" ], [ "whose" ], [ "institution" ], [ "affiliation" ], [ "is" ], [ "'" ], [ "university" ], [ "of" ], [ "oxford" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ "whose", "WP$" ], [ "institution", "NN" ], [ "affiliation", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "university", "NN" ], [ "of", "IN" ], [ "oxford", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "University of Oxford", "1", "James" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(6) T(1) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "icfp_1", "query": "SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Google\"", "query_toks": [ "SELECT", "DISTINCT", "t1.fname", ",", "t1.lname", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "inst", "AS", "t3", "ON", "t2.instid", "=", "t3.instid", "WHERE", "t3.name", "=", "``", "Google", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "inst", "as", "t3", "on", "t2", ".", "instid", "=", "t3", ".", "instid", "where", "t3", ".", "name", "=", "value" ], "question": "Which authors belong to the institution \"Google\"? Show the first names and last names.", "question_toks": [ "which", "author", "belong", "to", "institution", "'", "google", "'", "?", "show", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Google\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Which", "authors", "belong", "to", "the", "institution", "``", "Google", "''", "?", "Show", "the", "first", "names", "and", "last", "names", "." ], "question_arg": [ [ "which" ], [ "author" ], [ "belong" ], [ "to" ], [ "institution" ], [ "'" ], [ "google" ], [ "'" ], [ "?" ], [ "show" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "author", "NN" ], [ "belong", "NN" ], [ "to", "TO" ], [ "institution", "NN" ], [ "'", "''" ], [ "google", "NN" ], [ "'", "''" ], [ "?", "." ], [ "show", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1", "Google", "James" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(6) T(1) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "icfp_1", "query": "SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Google\"", "query_toks": [ "SELECT", "DISTINCT", "t1.fname", ",", "t1.lname", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "inst", "AS", "t3", "ON", "t2.instid", "=", "t3.instid", "WHERE", "t3.name", "=", "``", "Google", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "inst", "as", "t3", "on", "t2", ".", "instid", "=", "t3", ".", "instid", "where", "t3", ".", "name", "=", "value" ], "question": "Find the first names and last names of the authors whose institution affiliation is \"Google\".", "question_toks": [ "find", "first", "name", "and", "last", "name", "of", "author", "whose", "institution", "affiliation", "is", "'", "google", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Google\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "the", "first", "names", "and", "last", "names", "of", "the", "authors", "whose", "institution", "affiliation", "is", "``", "Google", "''", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "author" ], [ "whose" ], [ "institution" ], [ "affiliation" ], [ "is" ], [ "'" ], [ "google" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ "whose", "WP$" ], [ "institution", "NN" ], [ "affiliation", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "google", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "1", "Google", "James" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(6) T(1) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "icfp_1", "query": "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = \"Binders Unbound\"", "query_toks": [ "SELECT", "t1.lname", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t3.title", "=", "``", "Binders", "Unbound", "''" ], "query_toks_no_value": [ "select", "t1", ".", "lname", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t3", ".", "title", "=", "value" ], "question": "What are the last names of the author of the paper titled \"Binders Unbound\"?", "question_toks": [ "what", "are", "last", "name", "of", "author", "of", "paper", "titled", "'", "binder", "unbound", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "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, 9, 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, 8, false ], null ], "\"Binders Unbound\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "last", "names", "of", "the", "author", "of", "the", "paper", "titled", "``", "Binders", "Unbound", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "last", "name" ], [ "of" ], [ "author" ], [ "of" ], [ "paper" ], [ "titled" ], [ "'" ], [ "binder" ], [ "unbound" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ "of", "IN" ], [ "paper", "NN" ], [ "titled", "VBN" ], [ "'", "POS" ], [ "binder", "NN" ], [ "unbound", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Binders Unbound", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "icfp_1", "query": "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = \"Binders Unbound\"", "query_toks": [ "SELECT", "t1.lname", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t3.title", "=", "``", "Binders", "Unbound", "''" ], "query_toks_no_value": [ "select", "t1", ".", "lname", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t3", ".", "title", "=", "value" ], "question": "Who is the author of the paper titled \"Binders Unbound\"? Give me the last name.", "question_toks": [ "who", "is", "author", "of", "paper", "titled", "'", "binder", "unbound", "'", "?", "give", "me", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "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, 9, 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, 8, false ], null ], "\"Binders Unbound\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Who", "is", "the", "author", "of", "the", "paper", "titled", "``", "Binders", "Unbound", "''", "?", "Give", "me", "the", "last", "name", "." ], "question_arg": [ [ "who" ], [ "is" ], [ "author" ], [ "of" ], [ "paper" ], [ "titled" ], [ "'" ], [ "binder" ], [ "unbound" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "author", "NN" ], [ "of", "IN" ], [ "paper", "NN" ], [ "titled", "VBN" ], [ "'", "POS" ], [ "binder", "NN" ], [ "unbound", "NN" ], [ "'", "''" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Binders Unbound" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "icfp_1", "query": "SELECT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = \"Nameless , Painless\"", "query_toks": [ "SELECT", "t1.fname", ",", "t1.lname", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t3.title", "=", "``", "Nameless", ",", "Painless", "''" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t3", ".", "title", "=", "value" ], "question": "Find the first and last name of the author(s) who wrote the paper \"Nameless, Painless\".", "question_toks": [ "find", "first", "and", "last", "name", "of", "author", "(", "s", ")", "who", "wrote", "paper", "'", "nameless", ",", "painless", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Nameless , Painless\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "the", "first", "and", "last", "name", "of", "the", "author", "(", "s", ")", "who", "wrote", "the", "paper", "``", "Nameless", ",", "Painless", "''", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "author" ], [ "(" ], [ "s" ], [ ")" ], [ "who" ], [ "wrote" ], [ "paper" ], [ "'" ], [ "nameless" ], [ "," ], [ "painless" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ "(", "(" ], [ "s", "PRP" ], [ ")", ")" ], [ "who", "WP" ], [ "wrote", "VBD" ], [ "paper", "NN" ], [ "'", "''" ], [ "nameless", "JJ" ], [ ",", "," ], [ "painless", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "1", "Nameless, Painless", "Nameless , Painless" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(1) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(2) A(0) C(8) T(2) V(2)" }, { "db_id": "icfp_1", "query": "SELECT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = \"Nameless , Painless\"", "query_toks": [ "SELECT", "t1.fname", ",", "t1.lname", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t3.title", "=", "``", "Nameless", ",", "Painless", "''" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t3", ".", "title", "=", "value" ], "question": "What are the first and last name of the author who published the paper titled \"Nameless, Painless\"?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "author", "who", "published", "paper", "titled", "'", "nameless", ",", "painless", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Nameless , Painless\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "name", "of", "the", "author", "who", "published", "the", "paper", "titled", "``", "Nameless", ",", "Painless", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "author" ], [ "who" ], [ "published" ], [ "paper" ], [ "titled" ], [ "'" ], [ "nameless" ], [ "," ], [ "painless" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ "who", "WP" ], [ "published", "VBD" ], [ "paper", "NN" ], [ "titled", "VBN" ], [ "'", "''" ], [ "nameless", "JJ" ], [ ",", "," ], [ "painless", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "1", "Nameless, Painless", "Nameless , Painless" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(1) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(2) A(0) C(8) T(2) V(2)" }, { "db_id": "icfp_1", "query": "SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Indiana University\"", "query_toks": [ "SELECT", "DISTINCT", "t1.title", "FROM", "papers", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.paperid", "=", "t2.paperid", "JOIN", "inst", "AS", "t3", "ON", "t2.instid", "=", "t3.instid", "WHERE", "t3.name", "=", "``", "Indiana", "University", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "title", "from", "papers", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "join", "inst", "as", "t3", "on", "t2", ".", "instid", "=", "t3", ".", "instid", "where", "t3", ".", "name", "=", "value" ], "question": "What are the papers published under the institution \"Indiana University\"?", "question_toks": [ "what", "are", "paper", "published", "under", "institution", "'", "indiana", "university", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Indiana University\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "papers", "published", "under", "the", "institution", "``", "Indiana", "University", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "paper" ], [ "published" ], [ "under" ], [ "institution" ], [ "'" ], [ "indiana" ], [ "university" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "paper", "NN" ], [ "published", "VBN" ], [ "under", "IN" ], [ "institution", "NN" ], [ "'", "POS" ], [ "indiana", "NN" ], [ "university", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Indiana University" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(8) T(2) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "icfp_1", "query": "SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Indiana University\"", "query_toks": [ "SELECT", "DISTINCT", "t1.title", "FROM", "papers", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.paperid", "=", "t2.paperid", "JOIN", "inst", "AS", "t3", "ON", "t2.instid", "=", "t3.instid", "WHERE", "t3.name", "=", "``", "Indiana", "University", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "title", "from", "papers", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "join", "inst", "as", "t3", "on", "t2", ".", "instid", "=", "t3", ".", "instid", "where", "t3", ".", "name", "=", "value" ], "question": "List the titles of the papers whose authors are from the institution \"Indiana University\".", "question_toks": [ "list", "title", "of", "paper", "whose", "author", "are", "from", "institution", "'", "indiana", "university", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Indiana University\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "List", "the", "titles", "of", "the", "papers", "whose", "authors", "are", "from", "the", "institution", "``", "Indiana", "University", "''", "." ], "question_arg": [ [ "list" ], [ "title" ], [ "of" ], [ "paper" ], [ "whose" ], [ "author" ], [ "are" ], [ "from" ], [ "institution" ], [ "'" ], [ "indiana" ], [ "university" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "paper", "NN" ], [ "whose", "WP$" ], [ "author", "NN" ], [ "are", "VBP" ], [ "from", "IN" ], [ "institution", "NN" ], [ "'", "POS" ], [ "indiana", "NN" ], [ "university", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Indiana University" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(8) T(2) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "icfp_1", "query": "SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Google\"", "query_toks": [ "SELECT", "DISTINCT", "t1.title", "FROM", "papers", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.paperid", "=", "t2.paperid", "JOIN", "inst", "AS", "t3", "ON", "t2.instid", "=", "t3.instid", "WHERE", "t3.name", "=", "``", "Google", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "title", "from", "papers", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "join", "inst", "as", "t3", "on", "t2", ".", "instid", "=", "t3", ".", "instid", "where", "t3", ".", "name", "=", "value" ], "question": "Find all the papers published by the institution \"Google\".", "question_toks": [ "find", "all", "paper", "published", "by", "institution", "'", "google", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Google\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "all", "the", "papers", "published", "by", "the", "institution", "``", "Google", "''", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "paper" ], [ "published" ], [ "by" ], [ "institution" ], [ "'" ], [ "google" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "paper", "NN" ], [ "published", "VBN" ], [ "by", "IN" ], [ "institution", "NN" ], [ "'", "POS" ], [ "google", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Google" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(8) T(2) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "icfp_1", "query": "SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Google\"", "query_toks": [ "SELECT", "DISTINCT", "t1.title", "FROM", "papers", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.paperid", "=", "t2.paperid", "JOIN", "inst", "AS", "t3", "ON", "t2.instid", "=", "t3.instid", "WHERE", "t3.name", "=", "``", "Google", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "title", "from", "papers", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "join", "inst", "as", "t3", "on", "t2", ".", "instid", "=", "t3", ".", "instid", "where", "t3", ".", "name", "=", "value" ], "question": "Which papers were written by authors from the institution \"Google\"?", "question_toks": [ "which", "paper", "were", "written", "by", "author", "from", "institution", "'", "google", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Google\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Which", "papers", "were", "written", "by", "authors", "from", "the", "institution", "``", "Google", "''", "?" ], "question_arg": [ [ "which" ], [ "paper" ], [ "were" ], [ "written" ], [ "by" ], [ "author" ], [ "from" ], [ "institution" ], [ "'" ], [ "google" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "paper", "NN" ], [ "were", "VBD" ], [ "written", "VBN" ], [ "by", "IN" ], [ "author", "NN" ], [ "from", "IN" ], [ "institution", "NN" ], [ "'", "POS" ], [ "google", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Google" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(8) T(2) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "icfp_1", "query": "SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Tokohu University\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "t1.title", ")", "FROM", "papers", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.paperid", "=", "t2.paperid", "JOIN", "inst", "AS", "t3", "ON", "t2.instid", "=", "t3.instid", "WHERE", "t3.name", "=", "``", "Tokohu", "University", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t1", ".", "title", ")", "from", "papers", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "join", "inst", "as", "t3", "on", "t2", ".", "instid", "=", "t3", ".", "instid", "where", "t3", ".", "name", "=", "value" ], "question": "How many papers are published by the institution \"Tokohu University\"?", "question_toks": [ "how", "many", "paper", "are", "published", "by", "institution", "'", "tokohu", "university", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 8, true ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Tokohu University\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "How", "many", "papers", "are", "published", "by", "the", "institution", "``", "Tokohu", "University", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "paper" ], [ "are" ], [ "published" ], [ "by" ], [ "institution" ], [ "'" ], [ "tokohu" ], [ "university" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "paper", "NN" ], [ "are", "VBP" ], [ "published", "VBN" ], [ "by", "IN" ], [ "institution", "NN" ], [ "'", "POS" ], [ "tokohu", "NN" ], [ "university", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Tokohu University" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(8) T(2) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "icfp_1", "query": "SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Tokohu University\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "t1.title", ")", "FROM", "papers", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.paperid", "=", "t2.paperid", "JOIN", "inst", "AS", "t3", "ON", "t2.instid", "=", "t3.instid", "WHERE", "t3.name", "=", "``", "Tokohu", "University", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t1", ".", "title", ")", "from", "papers", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "join", "inst", "as", "t3", "on", "t2", ".", "instid", "=", "t3", ".", "instid", "where", "t3", ".", "name", "=", "value" ], "question": "Find the number of papers published by authors from the institution \"Tokohu University\".", "question_toks": [ "find", "number", "of", "paper", "published", "by", "author", "from", "institution", "'", "tokohu", "university", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 8, true ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Tokohu University\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "the", "number", "of", "papers", "published", "by", "authors", "from", "the", "institution", "``", "Tokohu", "University", "''", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "paper" ], [ "published" ], [ "by" ], [ "author" ], [ "from" ], [ "institution" ], [ "'" ], [ "tokohu" ], [ "university" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "paper", "NN" ], [ "published", "VBN" ], [ "by", "IN" ], [ "author", "NN" ], [ "from", "IN" ], [ "institution", "NN" ], [ "'", "POS" ], [ "tokohu", "NN" ], [ "university", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Tokohu University" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(8) T(2) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "icfp_1", "query": "SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"University of Pennsylvania\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "t1.title", ")", "FROM", "papers", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.paperid", "=", "t2.paperid", "JOIN", "inst", "AS", "t3", "ON", "t2.instid", "=", "t3.instid", "WHERE", "t3.name", "=", "``", "University", "of", "Pennsylvania", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t1", ".", "title", ")", "from", "papers", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "join", "inst", "as", "t3", "on", "t2", ".", "instid", "=", "t3", ".", "instid", "where", "t3", ".", "name", "=", "value" ], "question": "Find the number of papers published by the institution \"University of Pennsylvania\".", "question_toks": [ "find", "number", "of", "paper", "published", "by", "institution", "'", "university", "of", "pennsylvania", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 8, true ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"University of Pennsylvania\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "the", "number", "of", "papers", "published", "by", "the", "institution", "``", "University", "of", "Pennsylvania", "''", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "paper" ], [ "published" ], [ "by" ], [ "institution" ], [ "'" ], [ "university" ], [ "of" ], [ "pennsylvania" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "paper", "NN" ], [ "published", "VBN" ], [ "by", "IN" ], [ "institution", "NN" ], [ "'", "POS" ], [ "university", "NN" ], [ "of", "IN" ], [ "pennsylvania", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "University of Pennsylvania" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(8) T(2) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "icfp_1", "query": "SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"University of Pennsylvania\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "t1.title", ")", "FROM", "papers", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.paperid", "=", "t2.paperid", "JOIN", "inst", "AS", "t3", "ON", "t2.instid", "=", "t3.instid", "WHERE", "t3.name", "=", "``", "University", "of", "Pennsylvania", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t1", ".", "title", ")", "from", "papers", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "join", "inst", "as", "t3", "on", "t2", ".", "instid", "=", "t3", ".", "instid", "where", "t3", ".", "name", "=", "value" ], "question": "How many papers are written by authors from the institution \"University of Pennsylvania\"?", "question_toks": [ "how", "many", "paper", "are", "written", "by", "author", "from", "institution", "'", "university", "of", "pennsylvania", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 8, true ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"University of Pennsylvania\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "How", "many", "papers", "are", "written", "by", "authors", "from", "the", "institution", "``", "University", "of", "Pennsylvania", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "paper" ], [ "are" ], [ "written" ], [ "by" ], [ "author" ], [ "from" ], [ "institution" ], [ "'" ], [ "university" ], [ "of" ], [ "pennsylvania" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "paper", "NN" ], [ "are", "VBP" ], [ "written", "VBN" ], [ "by", "IN" ], [ "author", "NN" ], [ "from", "IN" ], [ "institution", "NN" ], [ "'", "POS" ], [ "university", "NN" ], [ "of", "IN" ], [ "pennsylvania", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "University of Pennsylvania" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(8) T(2) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "icfp_1", "query": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Olin\" AND t1.lname = \"Shivers\"", "query_toks": [ "SELECT", "t3.title", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t1.fname", "=", "``", "Olin", "''", "AND", "t1.lname", "=", "``", "Shivers", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "Find the papers which have \"Olin Shivers\" as an author.", "question_toks": [ "find", "paper", "which", "have", "'", "olin", "shiver", "'", "a", "an", "author", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Olin\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Shivers\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "the", "papers", "which", "have", "``", "Olin", "Shivers", "''", "as", "an", "author", "." ], "question_arg": [ [ "find" ], [ "paper" ], [ "which" ], [ "have" ], [ "'" ], [ "olin" ], [ "shiver" ], [ "'" ], [ "a" ], [ "an" ], [ "author" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "paper", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "'", "''" ], [ "olin", "VBN" ], [ "shiver", "NN" ], [ "'", "''" ], [ "a", "DT" ], [ "an", "DT" ], [ "author", "NN" ], [ ".", "." ] ], "values": [ "Shivers", "Olin Shivers", "Olin" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(0) Filter(2) A(0) C(6) T(1) V(2) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "icfp_1", "query": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Olin\" AND t1.lname = \"Shivers\"", "query_toks": [ "SELECT", "t3.title", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t1.fname", "=", "``", "Olin", "''", "AND", "t1.lname", "=", "``", "Shivers", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "Which papers did the author \"Olin Shivers\" write? Give me the paper titles.", "question_toks": [ "which", "paper", "did", "author", "'", "olin", "shiver", "'", "write", "?", "give", "me", "paper", "title", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Olin\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Shivers\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Which", "papers", "did", "the", "author", "``", "Olin", "Shivers", "''", "write", "?", "Give", "me", "the", "paper", "titles", "." ], "question_arg": [ [ "which" ], [ "paper" ], [ "did" ], [ "author" ], [ "'" ], [ "olin" ], [ "shiver" ], [ "'" ], [ "write" ], [ "?" ], [ "give" ], [ "me" ], [ "paper" ], [ "title" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "paper", "NN" ], [ "did", "VBD" ], [ "author", "NN" ], [ "'", "''" ], [ "olin", "JJ" ], [ "shiver", "NN" ], [ "'", "''" ], [ "write", "RB" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "paper", "NN" ], [ "title", "NN" ], [ ".", "." ] ], "values": [ "Shivers", "Olin Shivers", "Olin" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(0) Filter(2) A(0) C(6) T(1) V(2) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "icfp_1", "query": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Stephanie\" AND t1.lname = \"Weirich\"", "query_toks": [ "SELECT", "t3.title", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t1.fname", "=", "``", "Stephanie", "''", "AND", "t1.lname", "=", "``", "Weirich", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "Which papers have \"Stephanie Weirich\" as an author?", "question_toks": [ "which", "paper", "have", "'", "stephanie", "weirich", "'", "a", "an", "author", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Stephanie\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Weirich\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Which", "papers", "have", "``", "Stephanie", "Weirich", "''", "as", "an", "author", "?" ], "question_arg": [ [ "which" ], [ "paper" ], [ "have" ], [ "'" ], [ "stephanie" ], [ "weirich" ], [ "'" ], [ "a" ], [ "an" ], [ "author" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "paper", "NN" ], [ "have", "VBP" ], [ "'", "VBN" ], [ "stephanie", "JJ" ], [ "weirich", "NN" ], [ "'", "''" ], [ "a", "DT" ], [ "an", "DT" ], [ "author", "NN" ], [ "?", "." ] ], "values": [ "Weirich", "Stephanie", "Stephanie Weirich" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(0) Filter(2) A(0) C(6) T(1) V(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "icfp_1", "query": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Stephanie\" AND t1.lname = \"Weirich\"", "query_toks": [ "SELECT", "t3.title", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t1.fname", "=", "``", "Stephanie", "''", "AND", "t1.lname", "=", "``", "Weirich", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "Find the titles of the papers the author \"Stephanie Weirich\" wrote.", "question_toks": [ "find", "title", "of", "paper", "author", "'", "stephanie", "weirich", "'", "wrote", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Stephanie\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Weirich\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "the", "titles", "of", "the", "papers", "the", "author", "``", "Stephanie", "Weirich", "''", "wrote", "." ], "question_arg": [ [ "find" ], [ "title" ], [ "of" ], [ "paper" ], [ "author" ], [ "'" ], [ "stephanie" ], [ "weirich" ], [ "'" ], [ "wrote" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "paper", "NN" ], [ "author", "NN" ], [ "'", "''" ], [ "stephanie", "NN" ], [ "weirich", "NN" ], [ "'", "POS" ], [ "wrote", "VBD" ], [ ".", "." ] ], "values": [ "Weirich", "Stephanie", "Stephanie Weirich" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(0) Filter(2) A(0) C(6) T(1) V(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "icfp_1", "query": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = \"USA\" AND t2.authorder = 2 AND t1.lname = \"Turon\"", "query_toks": [ "SELECT", "t3.title", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "inst", "AS", "t4", "ON", "t2.instid", "=", "t4.instid", "WHERE", "t4.country", "=", "``", "USA", "''", "AND", "t2.authorder", "=", "2", "AND", "t1.lname", "=", "``", "Turon", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "inst", "as", "t4", "on", "t2", ".", "instid", "=", "t4", ".", "instid", "where", "t4", ".", "country", "=", "value", "and", "t2", ".", "authorder", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "Which paper is published in an institution in \"USA\" and have \"Turon\" as its second author?", "question_toks": [ "which", "paper", "is", "published", "in", "an", "institution", "in", "'", "usa", "'", "and", "have", "'", "turon", "'", "a", "it", "second", "author", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"USA\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], 2.0, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Turon\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Which", "paper", "is", "published", "in", "an", "institution", "in", "``", "USA", "''", "and", "have", "``", "Turon", "''", "as", "its", "second", "author", "?" ], "question_arg": [ [ "which" ], [ "paper" ], [ "is" ], [ "published" ], [ "in" ], [ "an" ], [ "institution" ], [ "in" ], [ "'" ], [ "usa" ], [ "'" ], [ "and" ], [ "have" ], [ "'" ], [ "turon" ], [ "'" ], [ "a" ], [ "it" ], [ "second" ], [ "author" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "paper", "NN" ], [ "is", "VBZ" ], [ "published", "VBN" ], [ "in", "IN" ], [ "an", "DT" ], [ "institution", "NN" ], [ "in", "IN" ], [ "'", "''" ], [ "usa", "JJ" ], [ "'", "POS" ], [ "and", "CC" ], [ "have", "VBP" ], [ "'", "VBN" ], [ "turon", "NN" ], [ "'", "''" ], [ "a", "DT" ], [ "it", "PRP" ], [ "second", "JJ" ], [ "author", "NN" ], [ "?", "." ] ], "values": [ "2", "USA", "Turon" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(0) Filter(2) A(0) C(3) T(0) V(1) Filter(0) Filter(2) A(0) C(9) T(3) V(0) Filter(2) A(0) C(5) T(1) V(2)" }, { "db_id": "icfp_1", "query": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = \"USA\" AND t2.authorder = 2 AND t1.lname = \"Turon\"", "query_toks": [ "SELECT", "t3.title", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "inst", "AS", "t4", "ON", "t2.instid", "=", "t4.instid", "WHERE", "t4.country", "=", "``", "USA", "''", "AND", "t2.authorder", "=", "2", "AND", "t1.lname", "=", "``", "Turon", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "inst", "as", "t4", "on", "t2", ".", "instid", "=", "t4", ".", "instid", "where", "t4", ".", "country", "=", "value", "and", "t2", ".", "authorder", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "Find papers whose second author has last name \"Turon\" and is affiliated with an institution in the country \"USA\".", "question_toks": [ "find", "paper", "whose", "second", "author", "ha", "last", "name", "'", "turon", "'", "and", "is", "affiliated", "with", "an", "institution", "in", "country", "'", "usa", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"USA\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], 2.0, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Turon\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "papers", "whose", "second", "author", "has", "last", "name", "``", "Turon", "''", "and", "is", "affiliated", "with", "an", "institution", "in", "the", "country", "``", "USA", "''", "." ], "question_arg": [ [ "find" ], [ "paper" ], [ "whose" ], [ "second" ], [ "author" ], [ "ha" ], [ "last", "name" ], [ "'" ], [ "turon" ], [ "'" ], [ "and" ], [ "is" ], [ "affiliated" ], [ "with" ], [ "an" ], [ "institution" ], [ "in" ], [ "country" ], [ "'" ], [ "usa" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "paper", "NN" ], [ "whose", "WP$" ], [ "second", "JJ" ], [ "author", "NN" ], [ "ha", "NN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "turon", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "is", "VBZ" ], [ "affiliated", "VBN" ], [ "with", "IN" ], [ "an", "DT" ], [ "institution", "NN" ], [ "in", "IN" ], [ "country", "NN" ], [ "'", "''" ], [ "usa", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "USA", "Turon", "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(0) Filter(2) A(0) C(3) T(0) V(0) Filter(0) Filter(2) A(0) C(9) T(3) V(2) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "icfp_1", "query": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = \"Japan\" AND t2.authorder = 1 AND t1.lname = \"Ohori\"", "query_toks": [ "SELECT", "t3.title", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "inst", "AS", "t4", "ON", "t2.instid", "=", "t4.instid", "WHERE", "t4.country", "=", "``", "Japan", "''", "AND", "t2.authorder", "=", "1", "AND", "t1.lname", "=", "``", "Ohori", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "inst", "as", "t4", "on", "t2", ".", "instid", "=", "t4", ".", "instid", "where", "t4", ".", "country", "=", "value", "and", "t2", ".", "authorder", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "Find the titles of papers whose first author is affiliated with an institution in the country \"Japan\" and has last name \"Ohori\"?", "question_toks": [ "find", "title", "of", "paper", "whose", "first", "author", "is", "affiliated", "with", "an", "institution", "in", "country", "'", "japan", "'", "and", "ha", "last", "name", "'", "ohori", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Japan\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], 1.0, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Ohori\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "the", "titles", "of", "papers", "whose", "first", "author", "is", "affiliated", "with", "an", "institution", "in", "the", "country", "``", "Japan", "''", "and", "has", "last", "name", "``", "Ohori", "''", "?" ], "question_arg": [ [ "find" ], [ "title" ], [ "of" ], [ "paper" ], [ "whose" ], [ "first" ], [ "author" ], [ "is" ], [ "affiliated" ], [ "with" ], [ "an" ], [ "institution" ], [ "in" ], [ "country" ], [ "'" ], [ "japan" ], [ "'" ], [ "and" ], [ "ha" ], [ "last", "name" ], [ "'" ], [ "ohori" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "paper", "NN" ], [ "whose", "WP$" ], [ "first", "JJ" ], [ "author", "NN" ], [ "is", "VBZ" ], [ "affiliated", "VBN" ], [ "with", "IN" ], [ "an", "DT" ], [ "institution", "NN" ], [ "in", "IN" ], [ "country", "NN" ], [ "'", "''" ], [ "japan", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "ha", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "ohori", "NNS" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Ohori", "Japan", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(0) Filter(2) A(0) C(3) T(0) V(1) Filter(0) Filter(2) A(0) C(9) T(3) V(2) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "icfp_1", "query": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = \"Japan\" AND t2.authorder = 1 AND t1.lname = \"Ohori\"", "query_toks": [ "SELECT", "t3.title", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "inst", "AS", "t4", "ON", "t2.instid", "=", "t4.instid", "WHERE", "t4.country", "=", "``", "Japan", "''", "AND", "t2.authorder", "=", "1", "AND", "t1.lname", "=", "``", "Ohori", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "inst", "as", "t4", "on", "t2", ".", "instid", "=", "t4", ".", "instid", "where", "t4", ".", "country", "=", "value", "and", "t2", ".", "authorder", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "Which papers' first author is affiliated with an institution in the country \"Japan\" and has last name \"Ohori\"? Give me the titles of the papers.", "question_toks": [ "which", "paper", "'", "first", "author", "is", "affiliated", "with", "an", "institution", "in", "country", "'", "japan", "'", "and", "ha", "last", "name", "'", "ohori", "'", "?", "give", "me", "title", "of", "paper", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Japan\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], 1.0, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Ohori\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Which", "papers", "'", "first", "author", "is", "affiliated", "with", "an", "institution", "in", "the", "country", "``", "Japan", "''", "and", "has", "last", "name", "``", "Ohori", "''", "?", "Give", "me", "the", "titles", "of", "the", "papers", "." ], "question_arg": [ [ "which" ], [ "paper" ], [ "'" ], [ "first" ], [ "author" ], [ "is" ], [ "affiliated" ], [ "with" ], [ "an" ], [ "institution" ], [ "in" ], [ "country" ], [ "'" ], [ "japan" ], [ "'" ], [ "and" ], [ "ha" ], [ "last", "name" ], [ "'" ], [ "ohori" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "title" ], [ "of" ], [ "paper" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "paper", "NN" ], [ "'", "''" ], [ "first", "JJ" ], [ "author", "NN" ], [ "is", "VBZ" ], [ "affiliated", "VBN" ], [ "with", "IN" ], [ "an", "DT" ], [ "institution", "NN" ], [ "in", "IN" ], [ "country", "NN" ], [ "'", "''" ], [ "japan", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "ha", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "ohori", "NNS" ], [ "'", "POS" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "title", "NN" ], [ "of", "IN" ], [ "paper", "NN" ], [ ".", "." ] ], "values": [ "Ohori", "Japan", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(0) Filter(2) A(0) C(3) T(0) V(1) Filter(0) Filter(2) A(0) C(9) T(3) V(2) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "icfp_1", "query": "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.fname , t1.lname ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.lname", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "GROUP", "BY", "t1.fname", ",", "t1.lname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "lname", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "group", "by", "t1", ".", "fname", ",", "t1", ".", "lname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the last name of the author that has published the most papers?", "question_toks": [ "what", "is", "last", "name", "of", "author", "that", "ha", "published", "most", "paper", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 6, false ], [ 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, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "last", "name", "of", "the", "author", "that", "has", "published", "the", "most", "papers", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last", "name" ], [ "of" ], [ "author" ], [ "that" ], [ "ha" ], [ "published" ], [ "most" ], [ "paper" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "published", "VBN" ], [ "most", "JJS" ], [ "paper", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(5) T(1) Sup(0) A(3) C(0) T(3) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3)" }, { "db_id": "icfp_1", "query": "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.fname , t1.lname ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.lname", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "GROUP", "BY", "t1.fname", ",", "t1.lname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "lname", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "group", "by", "t1", ".", "fname", ",", "t1", ".", "lname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which author has written the most papers? Find his or her last name.", "question_toks": [ "which", "author", "ha", "written", "most", "paper", "?", "find", "his", "or", "her", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 6, false ], [ 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, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Which", "author", "has", "written", "the", "most", "papers", "?", "Find", "his", "or", "her", "last", "name", "." ], "question_arg": [ [ "which" ], [ "author" ], [ "ha" ], [ "written" ], [ "most" ], [ "paper" ], [ "?" ], [ "find" ], [ "his" ], [ "or" ], [ "her" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "author", "NN" ], [ "ha", "NN" ], [ "written", "VBN" ], [ "most", "JJS" ], [ "paper", "NN" ], [ "?", "." ], [ "find", "VB" ], [ "his", "PRP$" ], [ "or", "CC" ], [ "her", "PRP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(5) T(1) Sup(0) A(3) C(0) T(3) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3)" }, { "db_id": "icfp_1", "query": "SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.country", "FROM", "inst", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.instid", "=", "t2.instid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "GROUP", "BY", "t1.country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "country", "from", "inst", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "instid", "=", "t2", ".", "instid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "group", "by", "t1", ".", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Retrieve the country that has published the most papers.", "question_toks": [ "retrieve", "country", "that", "ha", "published", "most", "paper", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Retrieve", "the", "country", "that", "has", "published", "the", "most", "papers", "." ], "question_arg": [ [ "retrieve" ], [ "country" ], [ "that" ], [ "ha" ], [ "published" ], [ "most" ], [ "paper" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "retrieve", "JJ" ], [ "country", "NN" ], [ "that", "WDT" ], [ "ha", "VBP" ], [ "published", "VBN" ], [ "most", "JJS" ], [ "paper", "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(3) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(3)" }, { "db_id": "icfp_1", "query": "SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.country", "FROM", "inst", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.instid", "=", "t2.instid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "GROUP", "BY", "t1.country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "country", "from", "inst", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "instid", "=", "t2", ".", "instid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "group", "by", "t1", ".", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the country that the most papers are affiliated with.", "question_toks": [ "find", "country", "that", "most", "paper", "are", "affiliated", "with", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "the", "country", "that", "the", "most", "papers", "are", "affiliated", "with", "." ], "question_arg": [ [ "find" ], [ "country" ], [ "that" ], [ "most" ], [ "paper" ], [ "are" ], [ "affiliated" ], [ "with" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "country", "NN" ], [ "that", "IN" ], [ "most", "JJS" ], [ "paper", "NN" ], [ "are", "VBP" ], [ "affiliated", "VBN" ], [ "with", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(3) 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": "icfp_1", "query": "SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", "FROM", "inst", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.instid", "=", "t2.instid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "GROUP", "BY", "t1.name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "inst", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "instid", "=", "t2", ".", "instid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name of the organization that has published the largest number of papers.", "question_toks": [ "find", "name", "of", "organization", "that", "ha", "published", "largest", "number", "of", "paper", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, 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, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "organization", "that", "has", "published", "the", "largest", "number", "of", "papers", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "organization" ], [ "that" ], [ "ha" ], [ "published" ], [ "largest" ], [ "number" ], [ "of" ], [ "paper" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "organization", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "published", "VBN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "paper", "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": "icfp_1", "query": "SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", "FROM", "inst", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.instid", "=", "t2.instid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "GROUP", "BY", "t1.name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "inst", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "instid", "=", "t2", ".", "instid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which institution has the most papers? Find the name of the institution.", "question_toks": [ "which", "institution", "ha", "most", "paper", "?", "find", "name", "of", "institution", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, 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, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Which", "institution", "has", "the", "most", "papers", "?", "Find", "the", "name", "of", "the", "institution", "." ], "question_arg": [ [ "which" ], [ "institution" ], [ "ha" ], [ "most" ], [ "paper" ], [ "?" ], [ "find" ], [ "name" ], [ "of" ], [ "institution" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "institution", "NN" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "paper", "NN" ], [ "?", "." ], [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "institution", "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": "icfp_1", "query": "SELECT title FROM papers WHERE title LIKE \"%ML%\"", "query_toks": [ "SELECT", "title", "FROM", "papers", "WHERE", "title", "LIKE", "``", "%", "ML", "%", "''" ], "query_toks_no_value": [ "select", "title", "from", "papers", "where", "title", "like", "value" ], "question": "Find the titles of the papers that contain the word \"ML\".", "question_toks": [ "find", "title", "of", "paper", "that", "contain", "word", "'", "ml", "'", "." ], "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, 8, false ], null ], "\"%ML%\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "the", "titles", "of", "the", "papers", "that", "contain", "the", "word", "``", "ML", "''", "." ], "question_arg": [ [ "find" ], [ "title" ], [ "of" ], [ "paper" ], [ "that" ], [ "contain" ], [ "word" ], [ "'" ], [ "ml" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "paper", "NN" ], [ "that", "WDT" ], [ "contain", "VBP" ], [ "word", "NN" ], [ "'", "''" ], [ "ml", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "ML" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(9) A(0) C(8) T(2) V(0)" }, { "db_id": "icfp_1", "query": "SELECT title FROM papers WHERE title LIKE \"%ML%\"", "query_toks": [ "SELECT", "title", "FROM", "papers", "WHERE", "title", "LIKE", "``", "%", "ML", "%", "''" ], "query_toks_no_value": [ "select", "title", "from", "papers", "where", "title", "like", "value" ], "question": "Which papers have the substring \"ML\" in their titles? Return the titles of the papers.", "question_toks": [ "which", "paper", "have", "substring", "'", "ml", "'", "in", "their", "title", "?", "return", "title", "of", "paper", "." ], "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, 8, false ], null ], "\"%ML%\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Which", "papers", "have", "the", "substring", "``", "ML", "''", "in", "their", "titles", "?", "Return", "the", "titles", "of", "the", "papers", "." ], "question_arg": [ [ "which" ], [ "paper" ], [ "have" ], [ "substring" ], [ "'" ], [ "ml" ], [ "'" ], [ "in" ], [ "their" ], [ "title" ], [ "?" ], [ "return" ], [ "title" ], [ "of" ], [ "paper" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "paper", "NN" ], [ "have", "VBP" ], [ "substring", "VBG" ], [ "'", "''" ], [ "ml", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "title", "NN" ], [ "?", "." ], [ "return", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "paper", "NN" ], [ ".", "." ] ], "values": [ "ML" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(9) A(0) C(8) T(2) V(0)" }, { "db_id": "icfp_1", "query": "SELECT title FROM papers WHERE title LIKE \"%Database%\"", "query_toks": [ "SELECT", "title", "FROM", "papers", "WHERE", "title", "LIKE", "``", "%", "Database", "%", "''" ], "query_toks_no_value": [ "select", "title", "from", "papers", "where", "title", "like", "value" ], "question": "Which paper's title contains the word \"Database\"?", "question_toks": [ "which", "paper", "'s", "title", "contains", "word", "'", "database", "'", "?" ], "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, 8, false ], null ], "\"%Database%\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Which", "paper", "'s", "title", "contains", "the", "word", "``", "Database", "''", "?" ], "question_arg": [ [ "which" ], [ "paper" ], [ "'s" ], [ "title" ], [ "contains" ], [ "word" ], [ "'" ], [ "database" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "paper", "NN" ], [ "'s", "POS" ], [ "title", "NN" ], [ "contains", "VBZ" ], [ "word", "NN" ], [ "'", "''" ], [ "database", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Database" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(9) A(0) C(8) T(2) V(0)" }, { "db_id": "icfp_1", "query": "SELECT title FROM papers WHERE title LIKE \"%Database%\"", "query_toks": [ "SELECT", "title", "FROM", "papers", "WHERE", "title", "LIKE", "``", "%", "Database", "%", "''" ], "query_toks_no_value": [ "select", "title", "from", "papers", "where", "title", "like", "value" ], "question": "Which papers have the substring \"Database\" in their titles? Show the titles of the papers.", "question_toks": [ "which", "paper", "have", "substring", "'", "database", "'", "in", "their", "title", "?", "show", "title", "of", "paper", "." ], "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, 8, false ], null ], "\"%Database%\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Which", "papers", "have", "the", "substring", "``", "Database", "''", "in", "their", "titles", "?", "Show", "the", "titles", "of", "the", "papers", "." ], "question_arg": [ [ "which" ], [ "paper" ], [ "have" ], [ "substring" ], [ "'" ], [ "database" ], [ "'" ], [ "in" ], [ "their" ], [ "title" ], [ "?" ], [ "show" ], [ "title" ], [ "of" ], [ "paper" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "paper", "NN" ], [ "have", "VBP" ], [ "substring", "VBG" ], [ "'", "''" ], [ "database", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "title", "NN" ], [ "?", "." ], [ "show", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "paper", "NN" ], [ ".", "." ] ], "values": [ "Database" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(9) A(0) C(8) T(2) V(0)" }, { "db_id": "icfp_1", "query": "SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE \"%Functional%\"", "query_toks": [ "SELECT", "t1.fname", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t3.title", "LIKE", "``", "%", "Functional", "%", "''" ], "query_toks_no_value": [ "select", "t1", ".", "fname", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t3", ".", "title", "like", "value" ], "question": "Find the first names of all the authors who have written a paper with title containing the word \"Functional\".", "question_toks": [ "find", "first", "name", "of", "all", "author", "who", "have", "written", "a", "paper", "with", "title", "containing", "word", "'", "functional", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 9, [ 0, [ 0, 8, false ], null ], "\"%Functional%\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "the", "first", "names", "of", "all", "the", "authors", "who", "have", "written", "a", "paper", "with", "title", "containing", "the", "word", "``", "Functional", "''", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "all" ], [ "author" ], [ "who" ], [ "have" ], [ "written" ], [ "a" ], [ "paper" ], [ "with" ], [ "title" ], [ "containing" ], [ "word" ], [ "'" ], [ "functional" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "author", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "written", "VBN" ], [ "a", "DT" ], [ "paper", "NN" ], [ "with", "IN" ], [ "title", "NN" ], [ "containing", "VBG" ], [ "word", "NN" ], [ "'", "''" ], [ "functional", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "James", "1", "Functional" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(9) A(0) C(8) T(2) V(2)" }, { "db_id": "icfp_1", "query": "SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE \"%Functional%\"", "query_toks": [ "SELECT", "t1.fname", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t3.title", "LIKE", "``", "%", "Functional", "%", "''" ], "query_toks_no_value": [ "select", "t1", ".", "fname", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t3", ".", "title", "like", "value" ], "question": "Who has written a paper that has the word \"Functional\" in its title? Return the first names of the authors.", "question_toks": [ "who", "ha", "written", "a", "paper", "that", "ha", "word", "'", "functional", "'", "in", "it", "title", "?", "return", "first", "name", "of", "author", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 9, [ 0, [ 0, 8, false ], null ], "\"%Functional%\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Who", "has", "written", "a", "paper", "that", "has", "the", "word", "``", "Functional", "''", "in", "its", "title", "?", "Return", "the", "first", "names", "of", "the", "authors", "." ], "question_arg": [ [ "who" ], [ "ha" ], [ "written" ], [ "a" ], [ "paper" ], [ "that" ], [ "ha" ], [ "word" ], [ "'" ], [ "functional" ], [ "'" ], [ "in" ], [ "it" ], [ "title" ], [ "?" ], [ "return" ], [ "first", "name" ], [ "of" ], [ "author" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "ha", "VBP" ], [ "written", "VBN" ], [ "a", "DT" ], [ "paper", "NN" ], [ "that", "WDT" ], [ "ha", "VBD" ], [ "word", "NN" ], [ "'", "''" ], [ "functional", "JJ" ], [ "'", "''" ], [ "in", "IN" ], [ "it", "PRP" ], [ "title", "VB" ], [ "?", "." ], [ "return", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ ".", "." ] ], "values": [ "James", "1", "Functional" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(9) A(0) C(8) T(2) V(2)" }, { "db_id": "icfp_1", "query": "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE \"%Monadic%\"", "query_toks": [ "SELECT", "t1.lname", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t3.title", "LIKE", "``", "%", "Monadic", "%", "''" ], "query_toks_no_value": [ "select", "t1", ".", "lname", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t3", ".", "title", "like", "value" ], "question": "Find the last names of all the authors that have written a paper with title containing the word \"Monadic\".", "question_toks": [ "find", "last", "name", "of", "all", "author", "that", "have", "written", "a", "paper", "with", "title", "containing", "word", "'", "monadic", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "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, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 9, [ 0, [ 0, 8, false ], null ], "\"%Monadic%\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "the", "last", "names", "of", "all", "the", "authors", "that", "have", "written", "a", "paper", "with", "title", "containing", "the", "word", "``", "Monadic", "''", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "author" ], [ "that" ], [ "have" ], [ "written" ], [ "a" ], [ "paper" ], [ "with" ], [ "title" ], [ "containing" ], [ "word" ], [ "'" ], [ "monadic" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "author", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "written", "VBN" ], [ "a", "DT" ], [ "paper", "NN" ], [ "with", "IN" ], [ "title", "NN" ], [ "containing", "VBG" ], [ "word", "NN" ], [ "'", "''" ], [ "monadic", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Monadic", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(9) A(0) C(8) T(2) V(0)" }, { "db_id": "icfp_1", "query": "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE \"%Monadic%\"", "query_toks": [ "SELECT", "t1.lname", "FROM", "authors", "AS", "t1", "JOIN", "authorship", "AS", "t2", "ON", "t1.authid", "=", "t2.authid", "JOIN", "papers", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t3.title", "LIKE", "``", "%", "Monadic", "%", "''" ], "query_toks_no_value": [ "select", "t1", ".", "lname", "from", "authors", "as", "t1", "join", "authorship", "as", "t2", "on", "t1", ".", "authid", "=", "t2", ".", "authid", "join", "papers", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t3", ".", "title", "like", "value" ], "question": "Which authors have written a paper with title containing the word \"Monadic\"? Return their last names.", "question_toks": [ "which", "author", "have", "written", "a", "paper", "with", "title", "containing", "word", "'", "monadic", "'", "?", "return", "their", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "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, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 9, [ 0, [ 0, 8, false ], null ], "\"%Monadic%\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Which", "authors", "have", "written", "a", "paper", "with", "title", "containing", "the", "word", "``", "Monadic", "''", "?", "Return", "their", "last", "names", "." ], "question_arg": [ [ "which" ], [ "author" ], [ "have" ], [ "written" ], [ "a" ], [ "paper" ], [ "with" ], [ "title" ], [ "containing" ], [ "word" ], [ "'" ], [ "monadic" ], [ "'" ], [ "?" ], [ "return" ], [ "their" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "author", "NN" ], [ "have", "VBP" ], [ "written", "VBN" ], [ "a", "DT" ], [ "paper", "NN" ], [ "with", "IN" ], [ "title", "NN" ], [ "containing", "VBG" ], [ "word", "NN" ], [ "'", "''" ], [ "monadic", "NN" ], [ "'", "''" ], [ "?", "." ], [ "return", "VBP" ], [ "their", "PRP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Monadic", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3) Filter(9) A(0) C(8) T(2) V(0)" }, { "db_id": "icfp_1", "query": "SELECT t2.title FROM authorship AS t1 JOIN papers AS t2 ON t1.paperid = t2.paperid WHERE t1.authorder = (SELECT max(authorder) FROM authorship)", "query_toks": [ "SELECT", "t2.title", "FROM", "authorship", "AS", "t1", "JOIN", "papers", "AS", "t2", "ON", "t1.paperid", "=", "t2.paperid", "WHERE", "t1.authorder", "=", "(", "SELECT", "max", "(", "authorder", ")", "FROM", "authorship", ")" ], "query_toks_no_value": [ "select", "t2", ".", "title", "from", "authorship", "as", "t1", "join", "papers", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "where", "t1", ".", "authorder", "=", "(", "select", "max", "(", "authorder", ")", "from", "authorship", ")" ], "question": "Retrieve the title of the paper that has the largest number of authors.", "question_toks": [ "retrieve", "title", "of", "paper", "that", "ha", "largest", "number", "of", "author", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "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, 12, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Retrieve", "the", "title", "of", "the", "paper", "that", "has", "the", "largest", "number", "of", "authors", "." ], "question_arg": [ [ "retrieve" ], [ "title" ], [ "of" ], [ "paper" ], [ "that" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "author" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "retrieve", "JJ" ], [ "title", "NN" ], [ "of", "IN" ], [ "paper", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(11) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(1) C(9) T(3)" }, { "db_id": "icfp_1", "query": "SELECT t2.title FROM authorship AS t1 JOIN papers AS t2 ON t1.paperid = t2.paperid WHERE t1.authorder = (SELECT max(authorder) FROM authorship)", "query_toks": [ "SELECT", "t2.title", "FROM", "authorship", "AS", "t1", "JOIN", "papers", "AS", "t2", "ON", "t1.paperid", "=", "t2.paperid", "WHERE", "t1.authorder", "=", "(", "SELECT", "max", "(", "authorder", ")", "FROM", "authorship", ")" ], "query_toks_no_value": [ "select", "t2", ".", "title", "from", "authorship", "as", "t1", "join", "papers", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "where", "t1", ".", "authorder", "=", "(", "select", "max", "(", "authorder", ")", "from", "authorship", ")" ], "question": "Which paper has the most authors? Give me the paper title.", "question_toks": [ "which", "paper", "ha", "most", "author", "?", "give", "me", "paper", "title", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "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, 12, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Which", "paper", "has", "the", "most", "authors", "?", "Give", "me", "the", "paper", "title", "." ], "question_arg": [ [ "which" ], [ "paper" ], [ "ha" ], [ "most" ], [ "author" ], [ "?" ], [ "give" ], [ "me" ], [ "paper" ], [ "title" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "paper", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "author", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "paper", "NN" ], [ "title", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(11) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(1) C(9) T(3)" }, { "db_id": "icfp_1", "query": "SELECT fname FROM authors WHERE lname = \"Ueno\"", "query_toks": [ "SELECT", "fname", "FROM", "authors", "WHERE", "lname", "=", "``", "Ueno", "''" ], "query_toks_no_value": [ "select", "fname", "from", "authors", "where", "lname", "=", "value" ], "question": "What is the first name of the author with last name \"Ueno\"?", "question_toks": [ "what", "is", "first", "name", "of", "author", "with", "last", "name", "'", "ueno", "'", "?" ], "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, 5, false ], null ], "\"Ueno\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "first", "name", "of", "the", "author", "with", "last", "name", "``", "Ueno", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first", "name" ], [ "of" ], [ "author" ], [ "with" ], [ "last", "name" ], [ "'" ], [ "ueno" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "ueno", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Ueno", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "icfp_1", "query": "SELECT fname FROM authors WHERE lname = \"Ueno\"", "query_toks": [ "SELECT", "fname", "FROM", "authors", "WHERE", "lname", "=", "``", "Ueno", "''" ], "query_toks_no_value": [ "select", "fname", "from", "authors", "where", "lname", "=", "value" ], "question": "Which authors have last name \"Ueno\"? List their first names.", "question_toks": [ "which", "author", "have", "last", "name", "'", "ueno", "'", "?", "list", "their", "first", "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": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Ueno\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Which", "authors", "have", "last", "name", "``", "Ueno", "''", "?", "List", "their", "first", "names", "." ], "question_arg": [ [ "which" ], [ "author" ], [ "have" ], [ "last", "name" ], [ "'" ], [ "ueno" ], [ "'" ], [ "?" ], [ "list" ], [ "their" ], [ "first", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "author", "NN" ], [ "have", "VBP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "ueno", "JJ" ], [ "'", "POS" ], [ "?", "." ], [ "list", "VBP" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Ueno", "1", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "icfp_1", "query": "SELECT lname FROM authors WHERE fname = \"Amal\"", "query_toks": [ "SELECT", "lname", "FROM", "authors", "WHERE", "fname", "=", "``", "Amal", "''" ], "query_toks_no_value": [ "select", "lname", "from", "authors", "where", "fname", "=", "value" ], "question": "Find the last name of the author with first name \"Amal\".", "question_toks": [ "find", "last", "name", "of", "author", "with", "first", "name", "'", "amal", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Amal\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "the", "last", "name", "of", "the", "author", "with", "first", "name", "``", "Amal", "''", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "of" ], [ "author" ], [ "with" ], [ "first", "name" ], [ "'" ], [ "amal" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "amal", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "1", "Amal" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(2) A(0) C(6) T(1) V(1)" }, { "db_id": "icfp_1", "query": "SELECT lname FROM authors WHERE fname = \"Amal\"", "query_toks": [ "SELECT", "lname", "FROM", "authors", "WHERE", "fname", "=", "``", "Amal", "''" ], "query_toks_no_value": [ "select", "lname", "from", "authors", "where", "fname", "=", "value" ], "question": "Which authors have first name \"Amal\"? List their last names.", "question_toks": [ "which", "author", "have", "first", "name", "'", "amal", "'", "?", "list", "their", "last", "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, 2, [ 0, [ 0, 6, false ], null ], "\"Amal\"", null ] ] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Which", "authors", "have", "first", "name", "``", "Amal", "''", "?", "List", "their", "last", "names", "." ], "question_arg": [ [ "which" ], [ "author" ], [ "have" ], [ "first", "name" ], [ "'" ], [ "amal" ], [ "'" ], [ "?" ], [ "list" ], [ "their" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "author", "NN" ], [ "have", "VBP" ], [ "first", "VBN" ], [ "name", "NN" ], [ "'", "''" ], [ "amal", "JJ" ], [ "'", "POS" ], [ "?", "." ], [ "list", "VBP" ], [ "their", "PRP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "James", "1", "Amal" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(2) A(0) C(6) T(1) V(2)" }, { "db_id": "icfp_1", "query": "SELECT fname FROM authors ORDER BY fname", "query_toks": [ "SELECT", "fname", "FROM", "authors", "ORDER", "BY", "fname" ], "query_toks_no_value": [ "select", "fname", "from", "authors", "order", "by", "fname" ], "question": "Find the first names of all the authors ordered in alphabetical order.", "question_toks": [ "find", "first", "name", "of", "all", "author", "ordered", "in", "alphabetical", "order", "." ], "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, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Find", "the", "first", "names", "of", "all", "the", "authors", "ordered", "in", "alphabetical", "order", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "all" ], [ "author" ], [ "ordered" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "author", "NN" ], [ "ordered", "VBN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(6) T(1) Order(1) A(0) C(6) T(1)" }, { "db_id": "icfp_1", "query": "SELECT fname FROM authors ORDER BY fname", "query_toks": [ "SELECT", "fname", "FROM", "authors", "ORDER", "BY", "fname" ], "query_toks_no_value": [ "select", "fname", "from", "authors", "order", "by", "fname" ], "question": "Sort the first names of all the authors in alphabetical order.", "question_toks": [ "sort", "first", "name", "of", "all", "author", "in", "alphabetical", "order", "." ], "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, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Sort", "the", "first", "names", "of", "all", "the", "authors", "in", "alphabetical", "order", "." ], "question_arg": [ [ "sort" ], [ "first", "name" ], [ "of" ], [ "all" ], [ "author" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "sort", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "author", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(6) T(1) Order(1) A(0) C(6) T(1)" }, { "db_id": "icfp_1", "query": "SELECT lname FROM authors ORDER BY lname", "query_toks": [ "SELECT", "lname", "FROM", "authors", "ORDER", "BY", "lname" ], "query_toks_no_value": [ "select", "lname", "from", "authors", "order", "by", "lname" ], "question": "Retrieve all the last names of authors in alphabetical order.", "question_toks": [ "retrieve", "all", "last", "name", "of", "author", "in", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Retrieve", "all", "the", "last", "names", "of", "authors", "in", "alphabetical", "order", "." ], "question_arg": [ [ "retrieve" ], [ "all" ], [ "last", "name" ], [ "of" ], [ "author" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "retrieve", "VB" ], [ "all", "DT" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(5) T(1) Order(1) A(0) C(5) T(1)" }, { "db_id": "icfp_1", "query": "SELECT lname FROM authors ORDER BY lname", "query_toks": [ "SELECT", "lname", "FROM", "authors", "ORDER", "BY", "lname" ], "query_toks_no_value": [ "select", "lname", "from", "authors", "order", "by", "lname" ], "question": "Give me a list of all the last names of authors sorted in alphabetical order", "question_toks": [ "give", "me", "a", "list", "of", "all", "last", "name", "of", "author", "sorted", "in", "alphabetical", "order" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Give", "me", "a", "list", "of", "all", "the", "last", "names", "of", "authors", "sorted", "in", "alphabetical", "order" ], "question_arg": [ [ "give" ], [ "me" ], [ "a" ], [ "list" ], [ "of" ], [ "all" ], [ "last", "name" ], [ "of" ], [ "author" ], [ "sorted" ], [ "in" ], [ "alphabetical" ], [ "order" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "a", "DT" ], [ "list", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ "sorted", "VBN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(5) T(1) Order(1) A(0) C(5) T(1)" }, { "db_id": "icfp_1", "query": "SELECT fname , lname FROM authors ORDER BY lname", "query_toks": [ "SELECT", "fname", ",", "lname", "FROM", "authors", "ORDER", "BY", "lname" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "authors", "order", "by", "lname" ], "question": "Retrieve all the first and last names of authors in the alphabetical order of last names.", "question_toks": [ "retrieve", "all", "first", "and", "last", "name", "of", "author", "in", "alphabetical", "order", "of", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Retrieve", "all", "the", "first", "and", "last", "names", "of", "authors", "in", "the", "alphabetical", "order", "of", "last", "names", "." ], "question_arg": [ [ "retrieve" ], [ "all" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "author" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "retrieve", "VB" ], [ "all", "DT" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(6) T(1) A(0) C(5) T(1) Order(1) A(0) C(5) T(1)" }, { "db_id": "icfp_1", "query": "SELECT fname , lname FROM authors ORDER BY lname", "query_toks": [ "SELECT", "fname", ",", "lname", "FROM", "authors", "ORDER", "BY", "lname" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "authors", "order", "by", "lname" ], "question": "Sort the list of all the first and last names of authors in alphabetical order of the last names.", "question_toks": [ "sort", "list", "of", "all", "first", "and", "last", "name", "of", "author", "in", "alphabetical", "order", "of", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author id", "institution id", "paper id", "author count" ], "table_names": [ "institution", "authors", "papers", "authorship count" ], "col_set": [ "*", "institution id", "name", "country", "author id", "last name", "first name", "paper id", "title", "author count" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3 ], "keys": { "11": 7, "7": 7, "10": 1, "1": 1, "9": 9, "4": 4 }, "origin_question_toks": [ "Sort", "the", "list", "of", "all", "the", "first", "and", "last", "names", "of", "authors", "in", "alphabetical", "order", "of", "the", "last", "names", "." ], "question_arg": [ [ "sort" ], [ "list" ], [ "of" ], [ "all" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "author" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "sort", "NN" ], [ "list", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(6) T(1) A(0) C(5) T(1) Order(1) A(0) C(5) T(1)" }, { "db_id": "sakila_1", "query": "SELECT count(DISTINCT last_name) FROM actor", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "last_name", ")", "FROM", "actor" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "last_name", ")", "from", "actor" ], "question": "How many different last names do the actors and actresses have?", "question_toks": [ "how", "many", "different", "last", "name", "do", "actor", "and", "actress", "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": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "How", "many", "different", "last", "names", "do", "the", "actors", "and", "actresses", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "last", "name" ], [ "do" ], [ "actor" ], [ "and" ], [ "actress" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "do", "VBP" ], [ "actor", "NN" ], [ "and", "CC" ], [ "actress", "NN" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [ "Games", "JAMES" ], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(3) T(0)" }, { "db_id": "sakila_1", "query": "SELECT count(DISTINCT last_name) FROM actor", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "last_name", ")", "FROM", "actor" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "last_name", ")", "from", "actor" ], "question": "Count the number of different last names actors have.", "question_toks": [ "count", "number", "of", "different", "last", "name", "actor", "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": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "last", "names", "actors", "have", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "last", "name" ], [ "actor" ], [ "have" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "actor", "NN" ], [ "have", "VBP" ], [ ".", "." ] ], "values": [ "Games", "JAMES" ], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(3) T(0)" }, { "db_id": "sakila_1", "query": "SELECT first_name FROM actor GROUP BY first_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "first_name", "FROM", "actor", "GROUP", "BY", "first_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "first_name", "from", "actor", "group", "by", "first_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most popular first name of the actors?", "question_toks": [ "what", "is", "most", "popular", "first", "name", "of", "actor", "?" ], "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": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "is", "the", "most", "popular", "first", "name", "of", "the", "actors", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "popular" ], [ "first", "name" ], [ "of" ], [ "actor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "popular", "JJ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ "?", "." ] ], "values": [ "1" ], "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": "sakila_1", "query": "SELECT first_name FROM actor GROUP BY first_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "first_name", "FROM", "actor", "GROUP", "BY", "first_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "first_name", "from", "actor", "group", "by", "first_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the most common first name among all actors.", "question_toks": [ "return", "most", "common", "first", "name", "among", "all", "actor", "." ], "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": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Return", "the", "most", "common", "first", "name", "among", "all", "actors", "." ], "question_arg": [ [ "return" ], [ "most" ], [ "common" ], [ "first", "name" ], [ "among" ], [ "all" ], [ "actor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "among", "IN" ], [ "all", "DT" ], [ "actor", "NN" ], [ ".", "." ] ], "values": [ "1" ], "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": "sakila_1", "query": "SELECT first_name , last_name FROM actor GROUP BY first_name , last_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "actor", "GROUP", "BY", "first_name", ",", "last_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "actor", "group", "by", "first_name", ",", "last_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most popular full name of the actors?", "question_toks": [ "what", "is", "most", "popular", "full", "name", "of", "actor", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 2, false ], [ 0, 3, 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": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "is", "the", "most", "popular", "full", "name", "of", "the", "actors", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "popular" ], [ "full" ], [ "name" ], [ "of" ], [ "actor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "popular", "JJ" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "actor", "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(3) C(0) T(0)" }, { "db_id": "sakila_1", "query": "SELECT first_name , last_name FROM actor GROUP BY first_name , last_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "actor", "GROUP", "BY", "first_name", ",", "last_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "actor", "group", "by", "first_name", ",", "last_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the most common full name among all actors.", "question_toks": [ "return", "most", "common", "full", "name", "among", "all", "actor", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 2, false ], [ 0, 3, 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": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Return", "the", "most", "common", "full", "name", "among", "all", "actors", "." ], "question_arg": [ [ "return" ], [ "most" ], [ "common" ], [ "full" ], [ "name" ], [ "among" ], [ "all" ], [ "actor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "full", "JJ" ], [ "name", "NN" ], [ "among", "IN" ], [ "all", "DT" ], [ "actor", "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(3) C(0) T(0)" }, { "db_id": "sakila_1", "query": "SELECT district FROM address GROUP BY district HAVING count(*) >= 2", "query_toks": [ "SELECT", "district", "FROM", "address", "GROUP", "BY", "district", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "district", "from", "address", "group", "by", "district", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Which districts have at least two addresses?", "question_toks": [ "which", "district", "have", "at", "least", "two", "address", "?" ], "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": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Which", "districts", "have", "at", "least", "two", "addresses", "?" ], "question_arg": [ [ "which" ], [ "district" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "address" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "district", "NN" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "address", "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": "sakila_1", "query": "SELECT district FROM address GROUP BY district HAVING count(*) >= 2", "query_toks": [ "SELECT", "district", "FROM", "address", "GROUP", "BY", "district", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "district", "from", "address", "group", "by", "district", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Give the districts which have two or more addresses.", "question_toks": [ "give", "district", "which", "have", "two", "or", "more", "address", "." ], "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": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Give", "the", "districts", "which", "have", "two", "or", "more", "addresses", "." ], "question_arg": [ [ "give" ], [ "district" ], [ "which" ], [ "have" ], [ "two" ], [ "or" ], [ "more" ], [ "address" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "district", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "address", "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": "sakila_1", "query": "SELECT phone , postal_code FROM address WHERE address = '1031 Daugavpils Parkway'", "query_toks": [ "SELECT", "phone", ",", "postal_code", "FROM", "address", "WHERE", "address", "=", "'1031", "Daugavpils", "Parkway", "'" ], "query_toks_no_value": [ "select", "phone", ",", "postal_code", "from", "address", "where", "address", "=", "value" ], "question": "What is the phone number and postal code of the address 1031 Daugavpils Parkway?", "question_toks": [ "what", "is", "phone", "number", "and", "postal", "code", "of", "address", "1031", "daugavpils", "parkway", "?" ], "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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"1031 Daugavpils Parkway\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "is", "the", "phone", "number", "and", "postal", "code", "of", "the", "address", "1031", "Daugavpils", "Parkway", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "phone" ], [ "number" ], [ "and" ], [ "postal", "code" ], [ "of" ], [ "address" ], [ "1031" ], [ "daugavpils" ], [ "parkway" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "value" ], [ "city" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "phone", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "postal", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "address", "NN" ], [ "1031", "CD" ], [ "daugavpils", "VBZ" ], [ "parkway", "NN" ], [ "?", "." ] ], "values": [ "CODY", "1031", "Daugavpils", "1031 Daugavpils Parkway", "COLE" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(11) T(1) A(0) C(10) T(1) Filter(2) A(0) C(6) T(1) V(3)" }, { "db_id": "sakila_1", "query": "SELECT phone , postal_code FROM address WHERE address = '1031 Daugavpils Parkway'", "query_toks": [ "SELECT", "phone", ",", "postal_code", "FROM", "address", "WHERE", "address", "=", "'1031", "Daugavpils", "Parkway", "'" ], "query_toks_no_value": [ "select", "phone", ",", "postal_code", "from", "address", "where", "address", "=", "value" ], "question": "Give the phone and postal code corresponding to the address '1031 Daugavpils Parkway'.", "question_toks": [ "give", "phone", "and", "postal", "code", "corresponding", "to", "address", "'", "1031", "daugavpils", "parkway", "'", "." ], "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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"1031 Daugavpils Parkway\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Give", "the", "phone", "and", "postal", "code", "corresponding", "to", "the", "address", "'1031", "Daugavpils", "Parkway", "'", "." ], "question_arg": [ [ "give" ], [ "phone" ], [ "and" ], [ "postal", "code" ], [ "corresponding" ], [ "to" ], [ "address" ], [ "'" ], [ "1031" ], [ "daugavpils" ], [ "parkway" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "city" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "phone", "NN" ], [ "and", "CC" ], [ "postal", "JJ" ], [ "code", "NN" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "address", "VB" ], [ "'", "''" ], [ "1031", "CD" ], [ "daugavpils", "VBZ" ], [ "parkway", "NN" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "CODY", "1031", "Daugavpils", "1031 Daugavpils Parkway", "COLE" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(11) T(1) A(0) C(10) T(1) Filter(2) A(0) C(6) T(1) V(3)" }, { "db_id": "sakila_1", "query": "SELECT T2.city , count(*) , T1.city_id FROM address AS T1 JOIN city AS T2 ON T1.city_id = T2.city_id GROUP BY T1.city_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.city", ",", "count", "(", "*", ")", ",", "T1.city_id", "FROM", "address", "AS", "T1", "JOIN", "city", "AS", "T2", "ON", "T1.city_id", "=", "T2.city_id", "GROUP", "BY", "T1.city_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "city", ",", "count", "(", "*", ")", ",", "t1", ".", "city_id", "from", "address", "as", "t1", "join", "city", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "group", "by", "t1", ".", "city_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which city has the most addresses? List the city name, number of addresses, and city id.", "question_toks": [ "which", "city", "ha", "most", "address", "?", "list", "city", "name", ",", "number", "of", "address", ",", "and", "city", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Which", "city", "has", "the", "most", "addresses", "?", "List", "the", "city", "name", ",", "number", "of", "addresses", ",", "and", "city", "id", "." ], "question_arg": [ [ "which" ], [ "city" ], [ "ha" ], [ "most" ], [ "address" ], [ "?" ], [ "list" ], [ "city" ], [ "name" ], [ "," ], [ "number" ], [ "of" ], [ "address" ], [ "," ], [ "and" ], [ "city", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "address", "NN" ], [ "?", "." ], [ "list", "JJ" ], [ "city", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "number", "NN" ], [ "of", "IN" ], [ "address", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "city", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(14) T(3) A(3) C(0) T(1) A(0) C(9) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "sakila_1", "query": "SELECT T2.city , count(*) , T1.city_id FROM address AS T1 JOIN city AS T2 ON T1.city_id = T2.city_id GROUP BY T1.city_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.city", ",", "count", "(", "*", ")", ",", "T1.city_id", "FROM", "address", "AS", "T1", "JOIN", "city", "AS", "T2", "ON", "T1.city_id", "=", "T2.city_id", "GROUP", "BY", "T1.city_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "city", ",", "count", "(", "*", ")", ",", "t1", ".", "city_id", "from", "address", "as", "t1", "join", "city", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "group", "by", "t1", ".", "city_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the city name, id, and number of addresses corresponding to the city with the most addressed?", "question_toks": [ "what", "are", "city", "name", ",", "id", ",", "and", "number", "of", "address", "corresponding", "to", "city", "with", "most", "addressed", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "are", "the", "city", "name", ",", "id", ",", "and", "number", "of", "addresses", "corresponding", "to", "the", "city", "with", "the", "most", "addressed", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "city" ], [ "name" ], [ "," ], [ "id" ], [ "," ], [ "and" ], [ "number" ], [ "of" ], [ "address" ], [ "corresponding" ], [ "to" ], [ "city" ], [ "with" ], [ "most" ], [ "addressed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "city", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "id", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "address", "JJ" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "city", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "addressed", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(14) T(3) A(3) C(0) T(1) A(0) C(9) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "sakila_1", "query": "SELECT count(*) FROM address WHERE district = 'California'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "address", "WHERE", "district", "=", "'California", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "address", "where", "district", "=", "value" ], "question": "How many addresses are in the district of California?", "question_toks": [ "how", "many", "address", "are", "in", "district", "of", "california", "?" ], "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 ], "\"California\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "How", "many", "addresses", "are", "in", "the", "district", "of", "California", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "address" ], [ "are" ], [ "in" ], [ "district" ], [ "of" ], [ "california" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "address", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "district", "NN" ], [ "of", "IN" ], [ "california", "NN" ], [ "?", "." ] ], "values": [ "California" ], "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": "sakila_1", "query": "SELECT count(*) FROM address WHERE district = 'California'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "address", "WHERE", "district", "=", "'California", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "address", "where", "district", "=", "value" ], "question": "Count the number of addressed in the California district.", "question_toks": [ "count", "number", "of", "addressed", "in", "california", "district", "." ], "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 ], "\"California\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Count", "the", "number", "of", "addressed", "in", "the", "California", "district", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "addressed" ], [ "in" ], [ "california" ], [ "district" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "addressed", "VBN" ], [ "in", "IN" ], [ "california", "NN" ], [ "district", "NN" ], [ ".", "." ] ], "values": [ "California" ], "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": "sakila_1", "query": "SELECT title , film_id FROM film WHERE rental_rate = 0.99 INTERSECT SELECT T1.title , T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id HAVING count(*) < 3", "query_toks": [ "SELECT", "title", ",", "film_id", "FROM", "film", "WHERE", "rental_rate", "=", "0.99", "INTERSECT", "SELECT", "T1.title", ",", "T1.film_id", "FROM", "film", "AS", "T1", "JOIN", "inventory", "AS", "T2", "ON", "T1.film_id", "=", "T2.film_id", "GROUP", "BY", "T1.film_id", "HAVING", "count", "(", "*", ")", "<", "3" ], "query_toks_no_value": [ "select", "title", ",", "film_id", "from", "film", "where", "rental_rate", "=", "value", "intersect", "select", "t1", ".", "title", ",", "t1", ".", "film_id", "from", "film", "as", "t1", "join", "inventory", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t1", ".", "film_id", "having", "count", "(", "*", ")", "<", "value" ], "question": "Which film is rented at a fee of 0.99 and has less than 3 in the inventory? List the film title and id.", "question_toks": [ "which", "film", "is", "rented", "at", "a", "fee", "of", "0.99", "and", "ha", "le", "than", "3", "in", "inventory", "?", "list", "film", "title", "and", "id", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 55, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 32, false ] ], "having": [ [ false, 4, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 55, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 39, false ], null ], 0.99, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Which", "film", "is", "rented", "at", "a", "fee", "of", "0.99", "and", "has", "less", "than", "3", "in", "the", "inventory", "?", "List", "the", "film", "title", "and", "id", "." ], "question_arg": [ [ "which" ], [ "film" ], [ "is" ], [ "rented" ], [ "at" ], [ "a" ], [ "fee" ], [ "of" ], [ "0.99" ], [ "and" ], [ "ha" ], [ "le" ], [ "than" ], [ "3" ], [ "in" ], [ "inventory" ], [ "?" ], [ "list" ], [ "film" ], [ "title" ], [ "and" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "film", "NN" ], [ "is", "VBZ" ], [ "rented", "VBN" ], [ "at", "IN" ], [ "a", "DT" ], [ "fee", "NN" ], [ "of", "IN" ], [ "0.99", "CD" ], [ "and", "CC" ], [ "ha", "JJR" ], [ "le", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "in", "IN" ], [ "inventory", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "film", "NN" ], [ "title", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "3", "0.99" ], "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(23) T(6) A(0) C(22) T(6) Filter(2) A(0) C(29) T(6) V(1) Root(3) Sel(0) N(1) A(0) C(23) T(6) A(0) C(22) T(6) Filter(0) Filter(18) A(0) C(22) T(6) Root(5) Sel(0) N(0) A(0) C(22) T(10) Filter(4) A(3) C(0) T(10) V(0)" }, { "db_id": "sakila_1", "query": "SELECT title , film_id FROM film WHERE rental_rate = 0.99 INTERSECT SELECT T1.title , T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id HAVING count(*) < 3", "query_toks": [ "SELECT", "title", ",", "film_id", "FROM", "film", "WHERE", "rental_rate", "=", "0.99", "INTERSECT", "SELECT", "T1.title", ",", "T1.film_id", "FROM", "film", "AS", "T1", "JOIN", "inventory", "AS", "T2", "ON", "T1.film_id", "=", "T2.film_id", "GROUP", "BY", "T1.film_id", "HAVING", "count", "(", "*", ")", "<", "3" ], "query_toks_no_value": [ "select", "title", ",", "film_id", "from", "film", "where", "rental_rate", "=", "value", "intersect", "select", "t1", ".", "title", ",", "t1", ".", "film_id", "from", "film", "as", "t1", "join", "inventory", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t1", ".", "film_id", "having", "count", "(", "*", ")", "<", "value" ], "question": "What are the title and id of the film which has a rental rate of 0.99 and an inventory of below 3?", "question_toks": [ "what", "are", "title", "and", "id", "of", "film", "which", "ha", "a", "rental", "rate", "of", "0.99", "and", "an", "inventory", "of", "below", "3", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 55, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 32, false ] ], "having": [ [ false, 4, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 55, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 39, false ], null ], 0.99, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "are", "the", "title", "and", "id", "of", "the", "film", "which", "has", "a", "rental", "rate", "of", "0.99", "and", "an", "inventory", "of", "below", "3", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "and" ], [ "id" ], [ "of" ], [ "film" ], [ "which" ], [ "ha" ], [ "a" ], [ "rental", "rate" ], [ "of" ], [ "0.99" ], [ "and" ], [ "an" ], [ "inventory" ], [ "of" ], [ "below" ], [ "3" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "which", "WDT" ], [ "ha", "VBZ" ], [ "a", "DT" ], [ "rental", "JJ" ], [ "rate", "NN" ], [ "of", "IN" ], [ "0.99", "CD" ], [ "and", "CC" ], [ "an", "DT" ], [ "inventory", "NN" ], [ "of", "IN" ], [ "below", "IN" ], [ "3", "CD" ], [ "?", "." ] ], "values": [ "Oriental", "3", "CATE", "0.99" ], "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(23) T(6) A(0) C(22) T(6) Filter(2) A(0) C(29) T(6) V(3) Root(3) Sel(0) N(1) A(0) C(23) T(6) A(0) C(22) T(6) Filter(0) Filter(18) A(0) C(22) T(6) Root(5) Sel(0) N(0) A(0) C(22) T(10) Filter(4) A(3) C(0) T(10) V(1)" }, { "db_id": "sakila_1", "query": "SELECT count(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id WHERE T2.country = 'Australia'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "city", "AS", "T1", "JOIN", "country", "AS", "T2", "ON", "T1.country_id", "=", "T2.country_id", "WHERE", "T2.country", "=", "'Australia", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "city", "as", "t1", "join", "country", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country_id", "where", "t2", ".", "country", "=", "value" ], "question": "How many cities are in Australia?", "question_toks": [ "how", "many", "city", "are", "in", "australia", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 20, 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, 21, false ], null ], "\"Australia\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "How", "many", "cities", "are", "in", "Australia", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "city" ], [ "are" ], [ "in" ], [ "australia" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "city", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "australia", "NNS" ], [ "?", "." ] ], "values": [ "Australia" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(2) A(0) C(16) T(4) V(0)" }, { "db_id": "sakila_1", "query": "SELECT count(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id WHERE T2.country = 'Australia'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "city", "AS", "T1", "JOIN", "country", "AS", "T2", "ON", "T1.country_id", "=", "T2.country_id", "WHERE", "T2.country", "=", "'Australia", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "city", "as", "t1", "join", "country", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country_id", "where", "t2", ".", "country", "=", "value" ], "question": "Count the number of cities in Australia.", "question_toks": [ "count", "number", "of", "city", "in", "australia", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 20, 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, 21, false ], null ], "\"Australia\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Count", "the", "number", "of", "cities", "in", "Australia", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "city" ], [ "in" ], [ "australia" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "in", "IN" ], [ "australia", "NN" ], [ ".", "." ] ], "values": [ "Australia" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(2) A(0) C(16) T(4) V(0)" }, { "db_id": "sakila_1", "query": "SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id GROUP BY T2.country_id HAVING count(*) >= 3", "query_toks": [ "SELECT", "T2.country", "FROM", "city", "AS", "T1", "JOIN", "country", "AS", "T2", "ON", "T1.country_id", "=", "T2.country_id", "GROUP", "BY", "T2.country_id", "HAVING", "count", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "t2", ".", "country", "from", "city", "as", "t1", "join", "country", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country_id", "group", "by", "t2", ".", "country_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Which countries have at least 3 cities?", "question_toks": [ "which", "country", "have", "at", "least", "3", "city", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 20, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Which", "countries", "have", "at", "least", "3", "cities", "?" ], "question_arg": [ [ "which" ], [ "country" ], [ "have" ], [ "at" ], [ "least" ], [ "3" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "3", "CD" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(4) Filter(0) Filter(18) A(0) C(15) T(4) Root(5) Sel(0) N(0) A(0) C(15) T(3) Filter(7) A(3) C(0) T(3) V(0)" }, { "db_id": "sakila_1", "query": "SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id GROUP BY T2.country_id HAVING count(*) >= 3", "query_toks": [ "SELECT", "T2.country", "FROM", "city", "AS", "T1", "JOIN", "country", "AS", "T2", "ON", "T1.country_id", "=", "T2.country_id", "GROUP", "BY", "T2.country_id", "HAVING", "count", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "t2", ".", "country", "from", "city", "as", "t1", "join", "country", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country_id", "group", "by", "t2", ".", "country_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the countries that contain 3 or more cities?", "question_toks": [ "what", "are", "country", "that", "contain", "3", "or", "more", "city", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 20, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "are", "the", "countries", "that", "contain", "3", "or", "more", "cities", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "country" ], [ "that" ], [ "contain" ], [ "3" ], [ "or" ], [ "more" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "that", "WDT" ], [ "contain", "VBP" ], [ "3", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(4) Filter(0) Filter(18) A(0) C(15) T(4) Root(5) Sel(0) N(0) A(0) C(15) T(3) Filter(7) A(3) C(0) T(3) V(0)" }, { "db_id": "sakila_1", "query": "SELECT payment_date FROM payment WHERE amount > 10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = 'Elsa'", "query_toks": [ "SELECT", "payment_date", "FROM", "payment", "WHERE", "amount", ">", "10", "UNION", "SELECT", "T1.payment_date", "FROM", "payment", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "=", "'Elsa", "'" ], "query_toks_no_value": [ "select", "payment_date", "from", "payment", "where", "amount", ">", "value", "union", "select", "t1", ".", "payment_date", "from", "payment", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value" ], "question": "Find all the payment dates for the payments with an amount larger than 10 and the payments handled by a staff person with the first name Elsa.", "question_toks": [ "find", "all", "payment", "date", "for", "payment", "with", "an", "amount", "larger", "than", "10", "and", "payment", "handled", "by", "a", "staff", "person", "with", "first", "name", "elsa", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 66, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 63, false ], null ], [ 0, 75, false ], null ] ], "table_units": [ [ "table_unit", 12 ], [ "table_unit", 14 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 66, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 76, false ], null ], "\"Elsa\"", null ] ] }, "where": [ [ false, 3, [ 0, [ 0, 65, false ], null ], 10.0, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Find", "all", "the", "payment", "dates", "for", "the", "payments", "with", "an", "amount", "larger", "than", "10", "and", "the", "payments", "handled", "by", "a", "staff", "person", "with", "the", "first", "name", "Elsa", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "payment", "date" ], [ "for" ], [ "payment" ], [ "with" ], [ "an" ], [ "amount" ], [ "larger" ], [ "than" ], [ "10" ], [ "and" ], [ "payment" ], [ "handled" ], [ "by" ], [ "a" ], [ "staff" ], [ "person" ], [ "with" ], [ "first", "name" ], [ "elsa" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "payment", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "payment", "NN" ], [ "with", "IN" ], [ "an", "DT" ], [ "amount", "NN" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "and", "CC" ], [ "payment", "NN" ], [ "handled", "VBN" ], [ "by", "IN" ], [ "a", "DT" ], [ "staff", "NN" ], [ "person", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "elsa", "NN" ], [ ".", "." ] ], "values": [ "PETERSON", "BATES", "1", "10", "PEARSON", "Elsa" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(39) T(12) Filter(5) A(0) C(38) T(12) V(3) Root(3) Sel(0) N(0) A(0) C(39) T(12) Filter(2) A(0) C(2) T(14) V(5)" }, { "db_id": "sakila_1", "query": "SELECT payment_date FROM payment WHERE amount > 10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = 'Elsa'", "query_toks": [ "SELECT", "payment_date", "FROM", "payment", "WHERE", "amount", ">", "10", "UNION", "SELECT", "T1.payment_date", "FROM", "payment", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "=", "'Elsa", "'" ], "query_toks_no_value": [ "select", "payment_date", "from", "payment", "where", "amount", ">", "value", "union", "select", "t1", ".", "payment_date", "from", "payment", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value" ], "question": "What are the payment dates for any payments that have an amount greater than 10 or were handled by a staff member with the first name Elsa?", "question_toks": [ "what", "are", "payment", "date", "for", "any", "payment", "that", "have", "an", "amount", "greater", "than", "10", "or", "were", "handled", "by", "a", "staff", "member", "with", "first", "name", "elsa", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 66, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 63, false ], null ], [ 0, 75, false ], null ] ], "table_units": [ [ "table_unit", 12 ], [ "table_unit", 14 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 66, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 76, false ], null ], "\"Elsa\"", null ] ] }, "where": [ [ false, 3, [ 0, [ 0, 65, false ], null ], 10.0, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "are", "the", "payment", "dates", "for", "any", "payments", "that", "have", "an", "amount", "greater", "than", "10", "or", "were", "handled", "by", "a", "staff", "member", "with", "the", "first", "name", "Elsa", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "payment", "date" ], [ "for" ], [ "any" ], [ "payment" ], [ "that" ], [ "have" ], [ "an" ], [ "amount" ], [ "greater" ], [ "than" ], [ "10" ], [ "or" ], [ "were" ], [ "handled" ], [ "by" ], [ "a" ], [ "staff" ], [ "member" ], [ "with" ], [ "first", "name" ], [ "elsa" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "payment", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "any", "DT" ], [ "payment", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "an", "DT" ], [ "amount", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "or", "CC" ], [ "were", "VBD" ], [ "handled", "VBN" ], [ "by", "IN" ], [ "a", "DT" ], [ "staff", "NN" ], [ "member", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "elsa", "NN" ], [ "?", "." ] ], "values": [ "BATES", "1", "10", "Elsa" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(39) T(12) Filter(5) A(0) C(38) T(12) V(2) Root(3) Sel(0) N(0) A(0) C(39) T(12) Filter(2) A(0) C(2) T(14) V(3)" }, { "db_id": "sakila_1", "query": "SELECT count(*) FROM customer WHERE active = '1'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customer", "WHERE", "active", "=", "'1", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customer", "where", "active", "=", "value" ], "question": "How many customers have an active value of 1?", "question_toks": [ "how", "many", "customer", "have", "an", "active", "value", "of", "1", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"1\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "How", "many", "customers", "have", "an", "active", "value", "of", "1", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "have" ], [ "an" ], [ "active" ], [ "value" ], [ "of" ], [ "1" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "an", "DT" ], [ "active", "JJ" ], [ "value", "NN" ], [ "of", "IN" ], [ "1", "CD" ], [ "?", "." ] ], "values": [ "Valle", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(20) T(5) V(1)" }, { "db_id": "sakila_1", "query": "SELECT count(*) FROM customer WHERE active = '1'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customer", "WHERE", "active", "=", "'1", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customer", "where", "active", "=", "value" ], "question": "Count the number of customers who are active.", "question_toks": [ "count", "number", "of", "customer", "who", "are", "active", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"1\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Count", "the", "number", "of", "customers", "who", "are", "active", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "customer" ], [ "who" ], [ "are" ], [ "active" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "active", "JJ" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(20) T(5) V(0)" }, { "db_id": "sakila_1", "query": "SELECT title , rental_rate FROM film ORDER BY rental_rate DESC LIMIT 1", "query_toks": [ "SELECT", "title", ",", "rental_rate", "FROM", "film", "ORDER", "BY", "rental_rate", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "title", ",", "rental_rate", "from", "film", "order", "by", "rental_rate", "desc", "limit", "value" ], "question": "Which film has the highest rental rate? And what is the rate?", "question_toks": [ "which", "film", "ha", "highest", "rental", "rate", "?", "and", "what", "is", "rate", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 39, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Which", "film", "has", "the", "highest", "rental", "rate", "?", "And", "what", "is", "the", "rate", "?" ], "question_arg": [ [ "which" ], [ "film" ], [ "ha" ], [ "highest" ], [ "rental", "rate" ], [ "?" ], [ "and" ], [ "what" ], [ "is" ], [ "rate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "film", "NN" ], [ "ha", "NN" ], [ "highest", "JJS" ], [ "rental", "JJ" ], [ "rate", "NN" ], [ "?", "." ], [ "and", "CC" ], [ "what", "WP" ], [ "is", "VBZ" ], [ "rate", "NN" ], [ "?", "." ] ], "values": [ "Oriental", "CATE" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(23) T(6) A(0) C(29) T(6) Sup(0) A(0) C(29) T(6)" }, { "db_id": "sakila_1", "query": "SELECT title , rental_rate FROM film ORDER BY rental_rate DESC LIMIT 1", "query_toks": [ "SELECT", "title", ",", "rental_rate", "FROM", "film", "ORDER", "BY", "rental_rate", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "title", ",", "rental_rate", "from", "film", "order", "by", "rental_rate", "desc", "limit", "value" ], "question": "What are the title and rental rate of the film with the highest rental rate?", "question_toks": [ "what", "are", "title", "and", "rental", "rate", "of", "film", "with", "highest", "rental", "rate", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 39, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "are", "the", "title", "and", "rental", "rate", "of", "the", "film", "with", "the", "highest", "rental", "rate", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "and" ], [ "rental", "rate" ], [ "of" ], [ "film" ], [ "with" ], [ "highest" ], [ "rental", "rate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "and", "CC" ], [ "rental", "JJ" ], [ "rate", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "rental", "JJ" ], [ "rate", "NN" ], [ "?", "." ] ], "values": [ "Oriental", "CATE" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(23) T(6) A(0) C(29) T(6) Sup(0) A(0) C(29) T(6)" }, { "db_id": "sakila_1", "query": "SELECT T2.title , T2.film_id , T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.film_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.title", ",", "T2.film_id", ",", "T2.description", "FROM", "film_actor", "AS", "T1", "JOIN", "film", "AS", "T2", "ON", "T1.film_id", "=", "T2.film_id", "GROUP", "BY", "T2.film_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "t2", ".", "film_id", ",", "t2", ".", "description", "from", "film_actor", "as", "t1", "join", "film", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t2", ".", "film_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which film has the most number of actors or actresses? List the film name, film id and description.", "question_toks": [ "which", "film", "ha", "most", "number", "of", "actor", "or", "actress", "?", "list", "film", "name", ",", "film", "id", "and", "description", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 32, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 32, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Which", "film", "has", "the", "most", "number", "of", "actors", "or", "actresses", "?", "List", "the", "film", "name", ",", "film", "id", "and", "description", "." ], "question_arg": [ [ "which" ], [ "film" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "actor" ], [ "or" ], [ "actress" ], [ "?" ], [ "list" ], [ "film" ], [ "name" ], [ "," ], [ "film", "id" ], [ "and" ], [ "description" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "film", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ "or", "CC" ], [ "actress", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "film", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "film", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "description", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(23) T(6) A(0) C(22) T(6) A(0) C(24) T(6) Sup(0) A(3) C(0) T(7) Filter(18) A(0) C(22) T(6) Root(5) Sel(0) N(0) A(0) C(22) T(7)" }, { "db_id": "sakila_1", "query": "SELECT T2.title , T2.film_id , T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.film_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.title", ",", "T2.film_id", ",", "T2.description", "FROM", "film_actor", "AS", "T1", "JOIN", "film", "AS", "T2", "ON", "T1.film_id", "=", "T2.film_id", "GROUP", "BY", "T2.film_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "t2", ".", "film_id", ",", "t2", ".", "description", "from", "film_actor", "as", "t1", "join", "film", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t2", ".", "film_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the title, id, and description of the movie with the greatest number of actors?", "question_toks": [ "what", "are", "title", ",", "id", ",", "and", "description", "of", "movie", "with", "greatest", "number", "of", "actor", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 32, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 32, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "are", "the", "title", ",", "id", ",", "and", "description", "of", "the", "movie", "with", "the", "greatest", "number", "of", "actors", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "," ], [ "id" ], [ "," ], [ "and" ], [ "description" ], [ "of" ], [ "movie" ], [ "with" ], [ "greatest" ], [ "number" ], [ "of" ], [ "actor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ ",", "," ], [ "id", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(23) T(6) A(0) C(22) T(6) A(0) C(24) T(6) Sup(0) A(3) C(0) T(7) Filter(18) A(0) C(22) T(6) Root(5) Sel(0) N(0) A(0) C(22) T(7)" }, { "db_id": "sakila_1", "query": "SELECT T2.first_name , T2.last_name , T2.actor_id FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.first_name", ",", "T2.last_name", ",", "T2.actor_id", "FROM", "film_actor", "AS", "T1", "JOIN", "actor", "AS", "T2", "ON", "T1.actor_id", "=", "T2.actor_id", "GROUP", "BY", "T2.actor_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "first_name", ",", "t2", ".", "last_name", ",", "t2", ".", "actor_id", "from", "film_actor", "as", "t1", "join", "actor", "as", "t2", "on", "t1", ".", "actor_id", "=", "t2", ".", "actor_id", "group", "by", "t2", ".", "actor_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which film actor (actress) starred the most films? List his or her first name, last name and actor id.", "question_toks": [ "which", "film", "actor", "(", "actress", ")", "starred", "most", "film", "?", "list", "his", "or", "her", "first", "name", ",", "last", "name", "and", "actor", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, 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 ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Which", "film", "actor", "(", "actress", ")", "starred", "the", "most", "films", "?", "List", "his", "or", "her", "first", "name", ",", "last", "name", "and", "actor", "id", "." ], "question_arg": [ [ "which" ], [ "film", "actor" ], [ "(" ], [ "actress" ], [ ")" ], [ "starred" ], [ "most" ], [ "film" ], [ "?" ], [ "list" ], [ "his" ], [ "or" ], [ "her" ], [ "first", "name" ], [ "," ], [ "last", "name" ], [ "and" ], [ "actor", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "film", "NN" ], [ "actor", "NN" ], [ "(", "(" ], [ "actress", "NN" ], [ ")", ")" ], [ "starred", "VBD" ], [ "most", "JJS" ], [ "film", "NN" ], [ "?", "." ], [ "list", "VB" ], [ "his", "PRP$" ], [ "or", "CC" ], [ "her", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "actor", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(0) C(1) T(0) Sup(0) A(3) C(0) T(7) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(7)" }, { "db_id": "sakila_1", "query": "SELECT T2.first_name , T2.last_name , T2.actor_id FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.first_name", ",", "T2.last_name", ",", "T2.actor_id", "FROM", "film_actor", "AS", "T1", "JOIN", "actor", "AS", "T2", "ON", "T1.actor_id", "=", "T2.actor_id", "GROUP", "BY", "T2.actor_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "first_name", ",", "t2", ".", "last_name", ",", "t2", ".", "actor_id", "from", "film_actor", "as", "t1", "join", "actor", "as", "t2", "on", "t1", ".", "actor_id", "=", "t2", ".", "actor_id", "group", "by", "t2", ".", "actor_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the full name and id of the actor or actress who starred in the greatest number of films.", "question_toks": [ "return", "full", "name", "and", "id", "of", "actor", "or", "actress", "who", "starred", "in", "greatest", "number", "of", "film", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, 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 ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Return", "the", "full", "name", "and", "id", "of", "the", "actor", "or", "actress", "who", "starred", "in", "the", "greatest", "number", "of", "films", "." ], "question_arg": [ [ "return" ], [ "full" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "actor" ], [ "or" ], [ "actress" ], [ "who" ], [ "starred" ], [ "in" ], [ "greatest" ], [ "number" ], [ "of" ], [ "film" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ "or", "CC" ], [ "actress", "NN" ], [ "who", "WP" ], [ "starred", "VBD" ], [ "in", "IN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(0) C(1) T(0) Sup(0) A(3) C(0) T(7) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(7)" }, { "db_id": "sakila_1", "query": "SELECT T2.first_name , T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id HAVING count(*) > 30", "query_toks": [ "SELECT", "T2.first_name", ",", "T2.last_name", "FROM", "film_actor", "AS", "T1", "JOIN", "actor", "AS", "T2", "ON", "T1.actor_id", "=", "T2.actor_id", "GROUP", "BY", "T2.actor_id", "HAVING", "count", "(", "*", ")", ">", "30" ], "query_toks_no_value": [ "select", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "film_actor", "as", "t1", "join", "actor", "as", "t2", "on", "t1", ".", "actor_id", "=", "t2", ".", "actor_id", "group", "by", "t2", ".", "actor_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which film actors (actresses) played a role in more than 30 films? List his or her first name and last name.", "question_toks": [ "which", "film", "actor", "(", "actress", ")", "played", "a", "role", "in", "more", "than", "30", "film", "?", "list", "his", "or", "her", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 30.0, null ] ], "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, 45, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Which", "film", "actors", "(", "actresses", ")", "played", "a", "role", "in", "more", "than", "30", "films", "?", "List", "his", "or", "her", "first", "name", "and", "last", "name", "." ], "question_arg": [ [ "which" ], [ "film", "actor" ], [ "(" ], [ "actress" ], [ ")" ], [ "played" ], [ "a" ], [ "role" ], [ "in" ], [ "more" ], [ "than" ], [ "30" ], [ "film" ], [ "?" ], [ "list" ], [ "his" ], [ "or" ], [ "her" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "film", "NN" ], [ "actor", "NN" ], [ "(", "(" ], [ "actress", "NN" ], [ ")", ")" ], [ "played", "VBD" ], [ "a", "DT" ], [ "role", "NN" ], [ "in", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "30", "CD" ], [ "film", "NN" ], [ "?", "." ], [ "list", "VB" ], [ "his", "PRP$" ], [ "or", "CC" ], [ "her", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "COLE", "1", "ROSE", "30" ], "rule_label": "Root1(3) 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(1) T(7) Filter(5) A(3) C(0) T(7) V(3)" }, { "db_id": "sakila_1", "query": "SELECT T2.first_name , T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id HAVING count(*) > 30", "query_toks": [ "SELECT", "T2.first_name", ",", "T2.last_name", "FROM", "film_actor", "AS", "T1", "JOIN", "actor", "AS", "T2", "ON", "T1.actor_id", "=", "T2.actor_id", "GROUP", "BY", "T2.actor_id", "HAVING", "count", "(", "*", ")", ">", "30" ], "query_toks_no_value": [ "select", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "film_actor", "as", "t1", "join", "actor", "as", "t2", "on", "t1", ".", "actor_id", "=", "t2", ".", "actor_id", "group", "by", "t2", ".", "actor_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the full names of actors who had roles in more than 30 films?", "question_toks": [ "what", "are", "full", "name", "of", "actor", "who", "had", "role", "in", "more", "than", "30", "film", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 30.0, null ] ], "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, 45, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "are", "the", "full", "names", "of", "actors", "who", "had", "roles", "in", "more", "than", "30", "films", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "of" ], [ "actor" ], [ "who" ], [ "had" ], [ "role" ], [ "in" ], [ "more" ], [ "than" ], [ "30" ], [ "film" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "role", "NN" ], [ "in", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "30", "CD" ], [ "film", "NN" ], [ "?", "." ] ], "values": [ "Games", "30", "JAMES" ], "rule_label": "Root1(3) 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(1) T(7) Filter(5) A(3) C(0) T(7) V(1)" }, { "db_id": "sakila_1", "query": "SELECT store_id FROM inventory GROUP BY store_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "store_id", "FROM", "inventory", "GROUP", "BY", "store_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "store_id", "from", "inventory", "group", "by", "store_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which store owns most items?", "question_toks": [ "which", "store", "owns", "most", "item", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 56, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 56, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Which", "store", "owns", "most", "items", "?" ], "question_arg": [ [ "which" ], [ "store" ], [ "owns" ], [ "most" ], [ "item" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "store", "VBP" ], [ "owns", "VBZ" ], [ "most", "JJS" ], [ "item", "NN" ], [ "?", "." ] ], "values": [ "STONE" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(18) T(10) Sup(0) A(3) C(0) T(10)" }, { "db_id": "sakila_1", "query": "SELECT store_id FROM inventory GROUP BY store_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "store_id", "FROM", "inventory", "GROUP", "BY", "store_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "store_id", "from", "inventory", "group", "by", "store_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the id of the store that has the most items in inventory?", "question_toks": [ "what", "is", "id", "of", "store", "that", "ha", "most", "item", "in", "inventory", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 56, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 56, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "store", "that", "has", "the", "most", "items", "in", "inventory", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "store" ], [ "that" ], [ "ha" ], [ "most" ], [ "item" ], [ "in" ], [ "inventory" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "store", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "item", "NN" ], [ "in", "IN" ], [ "inventory", "NN" ], [ "?", "." ] ], "values": [ "STONE" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(18) T(10) Sup(0) A(3) C(0) T(10)" }, { "db_id": "sakila_1", "query": "SELECT sum(amount) FROM payment", "query_toks": [ "SELECT", "sum", "(", "amount", ")", "FROM", "payment" ], "query_toks_no_value": [ "select", "sum", "(", "amount", ")", "from", "payment" ], "question": "What is the total amount of all payments?", "question_toks": [ "what", "is", "total", "amount", "of", "all", "payment", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 65, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "is", "the", "total", "amount", "of", "all", "payments", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "amount" ], [ "of" ], [ "all" ], [ "payment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "payment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(38) T(12)" }, { "db_id": "sakila_1", "query": "SELECT sum(amount) FROM payment", "query_toks": [ "SELECT", "sum", "(", "amount", ")", "FROM", "payment" ], "query_toks_no_value": [ "select", "sum", "(", "amount", ")", "from", "payment" ], "question": "Return the sum of all payment amounts.", "question_toks": [ "return", "sum", "of", "all", "payment", "amount", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 65, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Return", "the", "sum", "of", "all", "payment", "amounts", "." ], "question_arg": [ [ "return" ], [ "sum" ], [ "of" ], [ "all" ], [ "payment" ], [ "amount" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "sum", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "payment", "NN" ], [ "amount", "NN" ], [ ".", "." ] ], "values": [ "Sumy" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(38) T(12)" }, { "db_id": "sakila_1", "query": "SELECT T1.first_name , T1.last_name , T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY sum(amount) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "T1.customer_id", "FROM", "customer", "AS", "T1", "JOIN", "payment", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "ORDER", "BY", "sum", "(", "amount", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "t1", ".", "customer_id", "from", "customer", "as", "t1", "join", "payment", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "sum", "(", "amount", ")", "asc", "limit", "value" ], "question": "Which customer, who has made at least one payment, has spent the least money? List his or her first name, last name, and the id.", "question_toks": [ "which", "customer", ",", "who", "ha", "made", "at", "least", "one", "payment", ",", "ha", "spent", "least", "money", "?", "list", "his", "or", "her", "first", "name", ",", "last", "name", ",", "and", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 62, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 4, 65, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Which", "customer", ",", "who", "has", "made", "at", "least", "one", "payment", ",", "has", "spent", "the", "least", "money", "?", "List", "his", "or", "her", "first", "name", ",", "last", "name", ",", "and", "the", "id", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "," ], [ "who" ], [ "ha" ], [ "made" ], [ "at" ], [ "least" ], [ "one" ], [ "payment" ], [ "," ], [ "ha" ], [ "spent" ], [ "least" ], [ "money" ], [ "?" ], [ "list" ], [ "his" ], [ "or" ], [ "her" ], [ "first", "name" ], [ "," ], [ "last", "name" ], [ "," ], [ "and" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ ",", "," ], [ "who", "WP" ], [ "ha", "VBD" ], [ "made", "VBN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "payment", "NN" ], [ ",", "," ], [ "ha", "JJ" ], [ "spent", "NN" ], [ "least", "JJS" ], [ "money", "NN" ], [ "?", "." ], [ "list", "VB" ], [ "his", "PRP$" ], [ "or", "CC" ], [ "her", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(2) T(5) A(0) C(3) T(5) A(0) C(17) T(5) Sup(1) A(4) C(38) T(12)" }, { "db_id": "sakila_1", "query": "SELECT T1.first_name , T1.last_name , T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY sum(amount) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "T1.customer_id", "FROM", "customer", "AS", "T1", "JOIN", "payment", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "ORDER", "BY", "sum", "(", "amount", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "t1", ".", "customer_id", "from", "customer", "as", "t1", "join", "payment", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "sum", "(", "amount", ")", "asc", "limit", "value" ], "question": "What is the full name and id of the customer who has the lowest total amount of payment?", "question_toks": [ "what", "is", "full", "name", "and", "id", "of", "customer", "who", "ha", "lowest", "total", "amount", "of", "payment", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 62, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 4, 65, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "is", "the", "full", "name", "and", "id", "of", "the", "customer", "who", "has", "the", "lowest", "total", "amount", "of", "payment", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "full" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "customer" ], [ "who" ], [ "ha" ], [ "lowest" ], [ "total" ], [ "amount" ], [ "of" ], [ "payment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "lowest", "JJS" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "payment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(2) T(5) A(0) C(3) T(5) A(0) C(17) T(5) Sup(1) A(4) C(38) T(12)" }, { "db_id": "sakila_1", "query": "SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id = T2.category_id JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'HUNGER ROOF'", "query_toks": [ "SELECT", "T1.name", "FROM", "category", "AS", "T1", "JOIN", "film_category", "AS", "T2", "ON", "T1.category_id", "=", "T2.category_id", "JOIN", "film", "AS", "T3", "ON", "T2.film_id", "=", "T3.film_id", "WHERE", "T3.title", "=", "'HUNGER", "ROOF", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "category", "as", "t1", "join", "film_category", "as", "t2", "on", "t1", ".", "category_id", "=", "t2", ".", "category_id", "join", "film", "as", "t3", "on", "t2", ".", "film_id", "=", "t3", ".", "film_id", "where", "t3", ".", "title", "=", "value" ], "question": "What is the genre name of the film HUNGER ROOF?", "question_toks": [ "what", "is", "genre", "name", "of", "film", "hunger", "roof", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 49, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 49, 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, 33, false ], null ], "\"HUNGER ROOF\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "is", "the", "genre", "name", "of", "the", "film", "HUNGER", "ROOF", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "genre" ], [ "name" ], [ "of" ], [ "film" ], [ "hunger" ], [ "roof" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "genre", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "hunger", "NN" ], [ "roof", "NN" ], [ "?", "." ] ], "values": [ "HUNGER ROOF", "GENE" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(0) Filter(18) A(0) C(12) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(8) Filter(2) A(0) C(23) T(6) V(0)" }, { "db_id": "sakila_1", "query": "SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id = T2.category_id JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'HUNGER ROOF'", "query_toks": [ "SELECT", "T1.name", "FROM", "category", "AS", "T1", "JOIN", "film_category", "AS", "T2", "ON", "T1.category_id", "=", "T2.category_id", "JOIN", "film", "AS", "T3", "ON", "T2.film_id", "=", "T3.film_id", "WHERE", "T3.title", "=", "'HUNGER", "ROOF", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "category", "as", "t1", "join", "film_category", "as", "t2", "on", "t1", ".", "category_id", "=", "t2", ".", "category_id", "join", "film", "as", "t3", "on", "t2", ".", "film_id", "=", "t3", ".", "film_id", "where", "t3", ".", "title", "=", "value" ], "question": "Return the name of the category to which the film 'HUNGER ROOF' belongs.", "question_toks": [ "return", "name", "of", "category", "to", "which", "film", "'", "hunger", "roof", "'", "belongs", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 49, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 49, 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, 33, false ], null ], "\"HUNGER ROOF\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Return", "the", "name", "of", "the", "category", "to", "which", "the", "film", "'HUNGER", "ROOF", "'", "belongs", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "category" ], [ "to" ], [ "which" ], [ "film" ], [ "'" ], [ "hunger" ], [ "roof" ], [ "'" ], [ "belongs" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "category", "NN" ], [ "to", "TO" ], [ "which", "WDT" ], [ "film", "NN" ], [ "'", "''" ], [ "hunger", "NN" ], [ "roof", "NN" ], [ "'", "POS" ], [ "belongs", "NNS" ], [ ".", "." ] ], "values": [ "HUNGER ROOF" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(0) Filter(18) A(0) C(12) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(8) Filter(2) A(0) C(23) T(6) V(0)" }, { "db_id": "sakila_1", "query": "SELECT T2.name , T1.category_id , count(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T1.category_id", "query_toks": [ "SELECT", "T2.name", ",", "T1.category_id", ",", "count", "(", "*", ")", "FROM", "film_category", "AS", "T1", "JOIN", "category", "AS", "T2", "ON", "T1.category_id", "=", "T2.category_id", "GROUP", "BY", "T1.category_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "category_id", ",", "count", "(", "*", ")", "from", "film_category", "as", "t1", "join", "category", "as", "t2", "on", "t1", ".", "category_id", "=", "t2", ".", "category_id", "group", "by", "t1", ".", "category_id" ], "question": "How many films are there in each category? List the genre name, genre id and the count.", "question_toks": [ "how", "many", "film", "are", "there", "in", "each", "category", "?", "list", "genre", "name", ",", "genre", "id", "and", "count", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 49, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 49, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 49, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "How", "many", "films", "are", "there", "in", "each", "category", "?", "List", "the", "genre", "name", ",", "genre", "id", "and", "the", "count", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "film" ], [ "are" ], [ "there" ], [ "in" ], [ "each" ], [ "category" ], [ "?" ], [ "list" ], [ "genre" ], [ "name" ], [ "," ], [ "genre" ], [ "id" ], [ "and" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "film", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "each", "DT" ], [ "category", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "genre", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "genre", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "count", "NN" ], [ ".", "." ] ], "values": [ "GENE" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(13) T(2) A(0) C(12) T(8) A(3) C(0) T(8)" }, { "db_id": "sakila_1", "query": "SELECT T2.name , T1.category_id , count(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T1.category_id", "query_toks": [ "SELECT", "T2.name", ",", "T1.category_id", ",", "count", "(", "*", ")", "FROM", "film_category", "AS", "T1", "JOIN", "category", "AS", "T2", "ON", "T1.category_id", "=", "T2.category_id", "GROUP", "BY", "T1.category_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "category_id", ",", "count", "(", "*", ")", "from", "film_category", "as", "t1", "join", "category", "as", "t2", "on", "t1", ".", "category_id", "=", "t2", ".", "category_id", "group", "by", "t1", ".", "category_id" ], "question": "What are the names and ids of the different categories, and how many films are in each?", "question_toks": [ "what", "are", "name", "and", "id", "of", "different", "category", ",", "and", "how", "many", "film", "are", "in", "each", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 49, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 49, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 49, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "ids", "of", "the", "different", "categories", ",", "and", "how", "many", "films", "are", "in", "each", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "different" ], [ "category" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "film" ], [ "are" ], [ "in" ], [ "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" ], [ "category", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "film", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "each", "DT" ], [ "?", "." ] ], "values": [ "Games", "JAMES" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(13) T(2) A(0) C(12) T(8) A(3) C(0) T(8)" }, { "db_id": "sakila_1", "query": "SELECT T1.title , T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.title", ",", "T1.film_id", "FROM", "film", "AS", "T1", "JOIN", "inventory", "AS", "T2", "ON", "T1.film_id", "=", "T2.film_id", "GROUP", "BY", "T1.film_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t1", ".", "film_id", "from", "film", "as", "t1", "join", "inventory", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t1", ".", "film_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which film has the most copies in the inventory? List both title and id.", "question_toks": [ "which", "film", "ha", "most", "copy", "in", "inventory", "?", "list", "both", "title", "and", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 55, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 32, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 55, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Which", "film", "has", "the", "most", "copies", "in", "the", "inventory", "?", "List", "both", "title", "and", "id", "." ], "question_arg": [ [ "which" ], [ "film" ], [ "ha" ], [ "most" ], [ "copy" ], [ "in" ], [ "inventory" ], [ "?" ], [ "list" ], [ "both" ], [ "title" ], [ "and" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "film", "NN" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "copy", "NN" ], [ "in", "IN" ], [ "inventory", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "both", "DT" ], [ "title", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(23) T(6) A(0) C(22) T(6) Sup(0) A(3) C(0) T(10) Filter(18) A(0) C(22) T(6) Root(5) Sel(0) N(0) A(0) C(22) T(10)" }, { "db_id": "sakila_1", "query": "SELECT T1.title , T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.title", ",", "T1.film_id", "FROM", "film", "AS", "T1", "JOIN", "inventory", "AS", "T2", "ON", "T1.film_id", "=", "T2.film_id", "GROUP", "BY", "T1.film_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t1", ".", "film_id", "from", "film", "as", "t1", "join", "inventory", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t1", ".", "film_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the title and id of the film that has the greatest number of copies in inventory?", "question_toks": [ "what", "is", "title", "and", "id", "of", "film", "that", "ha", "greatest", "number", "of", "copy", "in", "inventory", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 55, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 32, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 55, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "is", "the", "title", "and", "id", "of", "the", "film", "that", "has", "the", "greatest", "number", "of", "copies", "in", "inventory", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "title" ], [ "and" ], [ "id" ], [ "of" ], [ "film" ], [ "that" ], [ "ha" ], [ "greatest" ], [ "number" ], [ "of" ], [ "copy" ], [ "in" ], [ "inventory" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "title", "JJ" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "copy", "NN" ], [ "in", "IN" ], [ "inventory", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(23) T(6) A(0) C(22) T(6) Sup(0) A(3) C(0) T(10) Filter(18) A(0) C(22) T(6) Root(5) Sel(0) N(0) A(0) C(22) T(10)" }, { "db_id": "sakila_1", "query": "SELECT T1.title , T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id GROUP BY T2.inventory_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.title", ",", "T2.inventory_id", "FROM", "film", "AS", "T1", "JOIN", "inventory", "AS", "T2", "ON", "T1.film_id", "=", "T2.film_id", "JOIN", "rental", "AS", "T3", "ON", "T2.inventory_id", "=", "T3.inventory_id", "GROUP", "BY", "T2.inventory_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t2", ".", "inventory_id", "from", "film", "as", "t1", "join", "inventory", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "join", "rental", "as", "t3", "on", "t2", ".", "inventory_id", "=", "t3", ".", "inventory_id", "group", "by", "t2", ".", "inventory_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the film title and inventory id of the item in the inventory which was rented most frequently?", "question_toks": [ "what", "is", "film", "title", "and", "inventory", "id", "of", "item", "in", "inventory", "which", "wa", "rented", "most", "frequently", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 55, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 54, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 54, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "is", "the", "film", "title", "and", "inventory", "id", "of", "the", "item", "in", "the", "inventory", "which", "was", "rented", "most", "frequently", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "film" ], [ "title" ], [ "and" ], [ "inventory", "id" ], [ "of" ], [ "item" ], [ "in" ], [ "inventory" ], [ "which" ], [ "wa" ], [ "rented" ], [ "most" ], [ "frequently" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "film", "NN" ], [ "title", "NN" ], [ "and", "CC" ], [ "inventory", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "item", "NN" ], [ "in", "IN" ], [ "inventory", "NN" ], [ "which", "WDT" ], [ "wa", "VBP" ], [ "rented", "VBN" ], [ "most", "JJS" ], [ "frequently", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(23) T(6) A(0) C(34) T(10) Sup(0) A(3) C(0) T(10)" }, { "db_id": "sakila_1", "query": "SELECT T1.title , T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id GROUP BY T2.inventory_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.title", ",", "T2.inventory_id", "FROM", "film", "AS", "T1", "JOIN", "inventory", "AS", "T2", "ON", "T1.film_id", "=", "T2.film_id", "JOIN", "rental", "AS", "T3", "ON", "T2.inventory_id", "=", "T3.inventory_id", "GROUP", "BY", "T2.inventory_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t2", ".", "inventory_id", "from", "film", "as", "t1", "join", "inventory", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "join", "rental", "as", "t3", "on", "t2", ".", "inventory_id", "=", "t3", ".", "inventory_id", "group", "by", "t2", ".", "inventory_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the title and inventory id of the film that is rented most often.", "question_toks": [ "return", "title", "and", "inventory", "id", "of", "film", "that", "is", "rented", "most", "often", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 55, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 54, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 54, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Return", "the", "title", "and", "inventory", "id", "of", "the", "film", "that", "is", "rented", "most", "often", "." ], "question_arg": [ [ "return" ], [ "title" ], [ "and" ], [ "inventory", "id" ], [ "of" ], [ "film" ], [ "that" ], [ "is" ], [ "rented" ], [ "most" ], [ "often" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "title", "NN" ], [ "and", "CC" ], [ "inventory", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "rented", "VBN" ], [ "most", "RBS" ], [ "often", "RB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(23) T(6) A(0) C(34) T(10) Sup(0) A(3) C(0) T(10)" }, { "db_id": "sakila_1", "query": "SELECT count(DISTINCT language_id) FROM film", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "language_id", ")", "FROM", "film" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "language_id", ")", "from", "film" ], "question": "How many languages are in these films?", "question_toks": [ "how", "many", "language", "are", "in", "these", "film", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 36, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "How", "many", "languages", "are", "in", "these", "films", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "language" ], [ "are" ], [ "in" ], [ "these" ], [ "film" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "language", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "these", "DT" ], [ "film", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(26) T(6)" }, { "db_id": "sakila_1", "query": "SELECT count(DISTINCT language_id) FROM film", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "language_id", ")", "FROM", "film" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "language_id", ")", "from", "film" ], "question": "Count the number of different languages in these films.", "question_toks": [ "count", "number", "of", "different", "language", "in", "these", "film", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 36, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "languages", "in", "these", "films", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "language" ], [ "in" ], [ "these" ], [ "film" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "language", "NN" ], [ "in", "IN" ], [ "these", "DT" ], [ "film", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(26) T(6)" }, { "db_id": "sakila_1", "query": "SELECT title FROM film WHERE rating = 'R'", "query_toks": [ "SELECT", "title", "FROM", "film", "WHERE", "rating", "=", "'R", "'" ], "query_toks_no_value": [ "select", "title", "from", "film", "where", "rating", "=", "value" ], "question": "What are all the movies rated as R? List the titles.", "question_toks": [ "what", "are", "all", "movie", "rated", "a", "r", "?", "list", "title", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 42, false ], null ], "\"R\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "are", "all", "the", "movies", "rated", "as", "R", "?", "List", "the", "titles", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "movie" ], [ "rated" ], [ "a" ], [ "r" ], [ "?" ], [ "list" ], [ "title" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "movie", "NN" ], [ "rated", "VBN" ], [ "a", "DT" ], [ "r", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "title", "NN" ], [ ".", "." ] ], "values": [ "R" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(6) Filter(2) A(0) C(32) T(6) V(0)" }, { "db_id": "sakila_1", "query": "SELECT title FROM film WHERE rating = 'R'", "query_toks": [ "SELECT", "title", "FROM", "film", "WHERE", "rating", "=", "'R", "'" ], "query_toks_no_value": [ "select", "title", "from", "film", "where", "rating", "=", "value" ], "question": "Return the titles of any movies with an R rating.", "question_toks": [ "return", "title", "of", "any", "movie", "with", "an", "r", "rating", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 42, false ], null ], "\"R\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Return", "the", "titles", "of", "any", "movies", "with", "an", "R", "rating", "." ], "question_arg": [ [ "return" ], [ "title" ], [ "of" ], [ "any" ], [ "movie" ], [ "with" ], [ "an" ], [ "r" ], [ "rating" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "any", "DT" ], [ "movie", "NN" ], [ "with", "IN" ], [ "an", "DT" ], [ "r", "NN" ], [ "rating", "NN" ], [ ".", "." ] ], "values": [ "R" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(6) Filter(2) A(0) C(32) T(6) V(0)" }, { "db_id": "sakila_1", "query": "SELECT T2.address FROM store AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE store_id = 1", "query_toks": [ "SELECT", "T2.address", "FROM", "store", "AS", "T1", "JOIN", "address", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "WHERE", "store_id", "=", "1" ], "query_toks_no_value": [ "select", "t2", ".", "address", "from", "store", "as", "t1", "join", "address", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "store_id", "=", "value" ], "question": "Where is store 1 located?", "question_toks": [ "where", "is", "store", "1", "located", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 88, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 15 ], [ "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, 86, false ], null ], 1.0, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Where", "is", "store", "1", "located", "?" ], "question_arg": [ [ "where" ], [ "is" ], [ "store" ], [ "1" ], [ "located" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "where", "WRB" ], [ "is", "VBZ" ], [ "store", "RB" ], [ "1", "CD" ], [ "located", "VBN" ], [ "?", "." ] ], "values": [ "1", "STONE" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(2) A(0) C(18) T(15) V(0)" }, { "db_id": "sakila_1", "query": "SELECT T2.address FROM store AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE store_id = 1", "query_toks": [ "SELECT", "T2.address", "FROM", "store", "AS", "T1", "JOIN", "address", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "WHERE", "store_id", "=", "1" ], "query_toks_no_value": [ "select", "t2", ".", "address", "from", "store", "as", "t1", "join", "address", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "store_id", "=", "value" ], "question": "Return the address of store 1.", "question_toks": [ "return", "address", "of", "store", "1", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 88, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 15 ], [ "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, 86, false ], null ], 1.0, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Return", "the", "address", "of", "store", "1", "." ], "question_arg": [ [ "return" ], [ "address" ], [ "of" ], [ "store" ], [ "1" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "address", "NN" ], [ "of", "IN" ], [ "store", "NN" ], [ "1", "CD" ], [ ".", "." ] ], "values": [ "1", "STONE" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(2) A(0) C(18) T(15) V(0)" }, { "db_id": "sakila_1", "query": "SELECT T1.first_name , T1.last_name , T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id = T2.staff_id GROUP BY T1.staff_id ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "T1.staff_id", "FROM", "staff", "AS", "T1", "JOIN", "payment", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "GROUP", "BY", "T1.staff_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "t1", ".", "staff_id", "from", "staff", "as", "t1", "join", "payment", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "group", "by", "t1", ".", "staff_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Which staff handled least number of payments? List the full name and the id.", "question_toks": [ "which", "staff", "handled", "least", "number", "of", "payment", "?", "list", "full", "name", "and", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 75, false ], null ], [ 0, 63, false ], null ] ], "table_units": [ [ "table_unit", 14 ], [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 75, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 76, false ], null ] ], [ 0, [ 0, [ 0, 77, false ], null ] ], [ 0, [ 0, [ 0, 75, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 75, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 63, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Which", "staff", "handled", "least", "number", "of", "payments", "?", "List", "the", "full", "name", "and", "the", "id", "." ], "question_arg": [ [ "which" ], [ "staff" ], [ "handled" ], [ "least" ], [ "number" ], [ "of" ], [ "payment" ], [ "?" ], [ "list" ], [ "full" ], [ "name" ], [ "and" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "staff", "NN" ], [ "handled", "VBD" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "payment", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(2) T(14) A(0) C(3) T(14) A(0) C(36) T(14) Sup(1) A(3) C(0) T(12) Filter(18) A(0) C(36) T(14) Root(5) Sel(0) N(0) A(0) C(36) T(12)" }, { "db_id": "sakila_1", "query": "SELECT T1.first_name , T1.last_name , T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id = T2.staff_id GROUP BY T1.staff_id ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "T1.staff_id", "FROM", "staff", "AS", "T1", "JOIN", "payment", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "GROUP", "BY", "T1.staff_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "t1", ".", "staff_id", "from", "staff", "as", "t1", "join", "payment", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "group", "by", "t1", ".", "staff_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Give the full name and staff id of the staff who has handled the fewest payments.", "question_toks": [ "give", "full", "name", "and", "staff", "id", "of", "staff", "who", "ha", "handled", "fewest", "payment", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 75, false ], null ], [ 0, 63, false ], null ] ], "table_units": [ [ "table_unit", 14 ], [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 75, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 76, false ], null ] ], [ 0, [ 0, [ 0, 77, false ], null ] ], [ 0, [ 0, [ 0, 75, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 75, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 63, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Give", "the", "full", "name", "and", "staff", "id", "of", "the", "staff", "who", "has", "handled", "the", "fewest", "payments", "." ], "question_arg": [ [ "give" ], [ "full" ], [ "name" ], [ "and" ], [ "staff", "id" ], [ "of" ], [ "staff" ], [ "who" ], [ "ha" ], [ "handled" ], [ "fewest" ], [ "payment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "staff", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "handled", "VBN" ], [ "fewest", "JJ" ], [ "payment", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(2) T(14) A(0) C(3) T(14) A(0) C(36) T(14) Sup(1) A(3) C(0) T(12) Filter(18) A(0) C(36) T(14) Root(5) Sel(0) N(0) A(0) C(36) T(12)" }, { "db_id": "sakila_1", "query": "SELECT T2.name FROM film AS T1 JOIN LANGUAGE AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'AIRPORT POLLOCK'", "query_toks": [ "SELECT", "T2.name", "FROM", "film", "AS", "T1", "JOIN", "LANGUAGE", "AS", "T2", "ON", "T1.language_id", "=", "T2.language_id", "WHERE", "T1.title", "=", "'AIRPORT", "POLLOCK", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "film", "as", "t1", "join", "language", "as", "t2", "on", "t1", ".", "language_id", "=", "t2", ".", "language_id", "where", "t1", ".", "title", "=", "value" ], "question": "Which language does the film AIRPORT POLLOCK use? List the language name.", "question_toks": [ "which", "language", "doe", "film", "airport", "pollock", "use", "?", "list", "language", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 58, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 59, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 33, false ], null ], "\"AIRPORT POLLOCK\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Which", "language", "does", "the", "film", "AIRPORT", "POLLOCK", "use", "?", "List", "the", "language", "name", "." ], "question_arg": [ [ "which" ], [ "language" ], [ "doe" ], [ "film" ], [ "airport" ], [ "pollock" ], [ "use" ], [ "?" ], [ "list" ], [ "language" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "language", "NN" ], [ "doe", "NN" ], [ "film", "NN" ], [ "airport", "NN" ], [ "pollock", "NN" ], [ "use", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "language", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "AIRPORT POLLOCK" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(11) Filter(2) A(0) C(23) T(6) V(0)" }, { "db_id": "sakila_1", "query": "SELECT T2.name FROM film AS T1 JOIN LANGUAGE AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'AIRPORT POLLOCK'", "query_toks": [ "SELECT", "T2.name", "FROM", "film", "AS", "T1", "JOIN", "LANGUAGE", "AS", "T2", "ON", "T1.language_id", "=", "T2.language_id", "WHERE", "T1.title", "=", "'AIRPORT", "POLLOCK", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "film", "as", "t1", "join", "language", "as", "t2", "on", "t1", ".", "language_id", "=", "t2", ".", "language_id", "where", "t1", ".", "title", "=", "value" ], "question": "What is the name of the language that the film 'AIRPORT POLLOCK' is in?", "question_toks": [ "what", "is", "name", "of", "language", "that", "film", "'", "airport", "pollock", "'", "is", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 58, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 59, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 33, false ], null ], "\"AIRPORT POLLOCK\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "language", "that", "the", "film", "'AIRPORT", "POLLOCK", "'", "is", "in", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "language" ], [ "that" ], [ "film" ], [ "'" ], [ "airport" ], [ "pollock" ], [ "'" ], [ "is" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "language", "NN" ], [ "that", "WDT" ], [ "film", "NN" ], [ "'", "''" ], [ "airport", "NN" ], [ "pollock", "NN" ], [ "'", "''" ], [ "is", "VBZ" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "AIRPORT POLLOCK" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(11) Filter(2) A(0) C(23) T(6) V(0)" }, { "db_id": "sakila_1", "query": "SELECT count(*) FROM store", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "store" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "store" ], "question": "How many stores are there?", "question_toks": [ "how", "many", "store", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 15 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "How", "many", "stores", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "store" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "store", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(15)" }, { "db_id": "sakila_1", "query": "SELECT count(*) FROM store", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "store" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "store" ], "question": "Count the number of stores.", "question_toks": [ "count", "number", "of", "store", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 15 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Count", "the", "number", "of", "stores", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "store" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "store", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(15)" }, { "db_id": "sakila_1", "query": "SELECT count(DISTINCT rating) FROM film", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "rating", ")", "FROM", "film" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "rating", ")", "from", "film" ], "question": "How many kinds of different ratings are listed?", "question_toks": [ "how", "many", "kind", "of", "different", "rating", "are", "listed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 42, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "How", "many", "kinds", "of", "different", "ratings", "are", "listed", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "kind" ], [ "of" ], [ "different" ], [ "rating" ], [ "are" ], [ "listed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "kind", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "rating", "NN" ], [ "are", "VBP" ], [ "listed", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(32) T(6)" }, { "db_id": "sakila_1", "query": "SELECT count(DISTINCT rating) FROM film", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "rating", ")", "FROM", "film" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "rating", ")", "from", "film" ], "question": "Count the number of different film ratings.", "question_toks": [ "count", "number", "of", "different", "film", "rating", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 42, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "film", "ratings", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "film" ], [ "rating" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "film", "NN" ], [ "rating", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(32) T(6)" }, { "db_id": "sakila_1", "query": "SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%'", "query_toks": [ "SELECT", "title", "FROM", "film", "WHERE", "special_features", "LIKE", "'", "%", "Deleted", "Scenes", "%", "'" ], "query_toks_no_value": [ "select", "title", "from", "film", "where", "special_features", "like", "value" ], "question": "Which movies have 'Deleted Scenes' as a substring in the special feature?", "question_toks": [ "which", "movie", "have", "'", "deleted", "scene", "'", "a", "a", "substring", "in", "special", "feature", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 43, false ], null ], "\"%Deleted Scenes%\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Which", "movies", "have", "'Deleted", "Scenes", "'", "as", "a", "substring", "in", "the", "special", "feature", "?" ], "question_arg": [ [ "which" ], [ "movie" ], [ "have" ], [ "'" ], [ "deleted" ], [ "scene" ], [ "'" ], [ "a" ], [ "a" ], [ "substring" ], [ "in" ], [ "special", "feature" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "movie", "NN" ], [ "have", "VBP" ], [ "'", "VBN" ], [ "deleted", "VBN" ], [ "scene", "NN" ], [ "'", "''" ], [ "a", "DT" ], [ "a", "DT" ], [ "substring", "NN" ], [ "in", "IN" ], [ "special", "JJ" ], [ "feature", "NN" ], [ "?", "." ] ], "values": [ "Deleted Scenes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(6) Filter(9) A(0) C(33) T(6) V(0)" }, { "db_id": "sakila_1", "query": "SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%'", "query_toks": [ "SELECT", "title", "FROM", "film", "WHERE", "special_features", "LIKE", "'", "%", "Deleted", "Scenes", "%", "'" ], "query_toks_no_value": [ "select", "title", "from", "film", "where", "special_features", "like", "value" ], "question": "Return the titles of films that include 'Deleted Scenes' in their special feature section.", "question_toks": [ "return", "title", "of", "film", "that", "include", "'", "deleted", "scene", "'", "in", "their", "special", "feature", "section", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 43, false ], null ], "\"%Deleted Scenes%\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Return", "the", "titles", "of", "films", "that", "include", "'Deleted", "Scenes", "'", "in", "their", "special", "feature", "section", "." ], "question_arg": [ [ "return" ], [ "title" ], [ "of" ], [ "film" ], [ "that" ], [ "include" ], [ "'" ], [ "deleted" ], [ "scene" ], [ "'" ], [ "in" ], [ "their" ], [ "special", "feature" ], [ "section" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "that", "IN" ], [ "include", "VBP" ], [ "'", "''" ], [ "deleted", "JJ" ], [ "scene", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "special", "JJ" ], [ "feature", "NN" ], [ "section", "NN" ], [ ".", "." ] ], "values": [ "Deleted Scenes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(6) Filter(9) A(0) C(33) T(6) V(0)" }, { "db_id": "sakila_1", "query": "SELECT count(*) FROM inventory WHERE store_id = 1", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "inventory", "WHERE", "store_id", "=", "1" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "inventory", "where", "store_id", "=", "value" ], "question": "How many items in inventory does store 1 have?", "question_toks": [ "how", "many", "item", "in", "inventory", "doe", "store", "1", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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, 56, false ], null ], 1.0, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "How", "many", "items", "in", "inventory", "does", "store", "1", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "item" ], [ "in" ], [ "inventory" ], [ "doe" ], [ "store" ], [ "1" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "item", "NN" ], [ "in", "IN" ], [ "inventory", "NN" ], [ "doe", "NN" ], [ "store", "NN" ], [ "1", "CD" ], [ "have", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(10) Filter(2) A(0) C(18) T(10) V(0)" }, { "db_id": "sakila_1", "query": "SELECT count(*) FROM inventory WHERE store_id = 1", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "inventory", "WHERE", "store_id", "=", "1" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "inventory", "where", "store_id", "=", "value" ], "question": "Count the number of items store 1 has in stock.", "question_toks": [ "count", "number", "of", "item", "store", "1", "ha", "in", "stock", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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, 56, false ], null ], 1.0, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Count", "the", "number", "of", "items", "store", "1", "has", "in", "stock", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "item" ], [ "store" ], [ "1" ], [ "ha" ], [ "in" ], [ "stock" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "item", "NN" ], [ "store", "NN" ], [ "1", "CD" ], [ "ha", "NN" ], [ "in", "IN" ], [ "stock", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(10) Filter(2) A(0) C(18) T(10) V(0)" }, { "db_id": "sakila_1", "query": "SELECT payment_date FROM payment ORDER BY payment_date ASC LIMIT 1", "query_toks": [ "SELECT", "payment_date", "FROM", "payment", "ORDER", "BY", "payment_date", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "payment_date", "from", "payment", "order", "by", "payment_date", "asc", "limit", "value" ], "question": "When did the first payment happen?", "question_toks": [ "when", "did", "first", "payment", "happen", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 66, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 66, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "When", "did", "the", "first", "payment", "happen", "?" ], "question_arg": [ [ "when" ], [ "did" ], [ "first" ], [ "payment" ], [ "happen" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "did", "VBD" ], [ "first", "RB" ], [ "payment", "NN" ], [ "happen", "VB" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(39) T(12) Sup(1) A(0) C(39) T(12)" }, { "db_id": "sakila_1", "query": "SELECT payment_date FROM payment ORDER BY payment_date ASC LIMIT 1", "query_toks": [ "SELECT", "payment_date", "FROM", "payment", "ORDER", "BY", "payment_date", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "payment_date", "from", "payment", "order", "by", "payment_date", "asc", "limit", "value" ], "question": "What was the date of the earliest payment?", "question_toks": [ "what", "wa", "date", "of", "earliest", "payment", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 66, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 66, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "was", "the", "date", "of", "the", "earliest", "payment", "?" ], "question_arg": [ [ "what" ], [ "wa" ], [ "date" ], [ "of" ], [ "earliest" ], [ "payment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "wa", "VBD" ], [ "date", "NN" ], [ "of", "IN" ], [ "earliest", "JJS" ], [ "payment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(39) T(12) Sup(1) A(0) C(39) T(12)" }, { "db_id": "sakila_1", "query": "SELECT T2.address , T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id = T1.address_id WHERE T1.first_name = 'LINDA'", "query_toks": [ "SELECT", "T2.address", ",", "T1.email", "FROM", "customer", "AS", "T1", "JOIN", "address", "AS", "T2", "ON", "T2.address_id", "=", "T1.address_id", "WHERE", "T1.first_name", "=", "'LINDA", "'" ], "query_toks_no_value": [ "select", "t2", ".", "address", ",", "t1", ".", "email", "from", "customer", "as", "t1", "join", "address", "as", "t2", "on", "t2", ".", "address_id", "=", "t1", ".", "address_id", "where", "t1", ".", "first_name", "=", "value" ], "question": "Where does the customer with the first name Linda live? And what is her email?", "question_toks": [ "where", "doe", "customer", "with", "first", "name", "linda", "live", "?", "and", "what", "is", "her", "email", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"LINDA\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Where", "does", "the", "customer", "with", "the", "first", "name", "Linda", "live", "?", "And", "what", "is", "her", "email", "?" ], "question_arg": [ [ "where" ], [ "doe" ], [ "customer" ], [ "with" ], [ "first", "name" ], [ "linda" ], [ "live" ], [ "?" ], [ "and" ], [ "what" ], [ "is" ], [ "her" ], [ "email" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "where", "WRB" ], [ "doe", "NN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "linda", "RBR" ], [ "live", "JJ" ], [ "?", "." ], [ "and", "CC" ], [ "what", "WP" ], [ "is", "VBZ" ], [ "her", "PRP$" ], [ "email", "NN" ], [ "?", "." ] ], "values": [ "1", "LINDA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(1) A(0) C(19) T(5) Filter(2) A(0) C(2) T(5) V(1)" }, { "db_id": "sakila_1", "query": "SELECT T2.address , T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id = T1.address_id WHERE T1.first_name = 'LINDA'", "query_toks": [ "SELECT", "T2.address", ",", "T1.email", "FROM", "customer", "AS", "T1", "JOIN", "address", "AS", "T2", "ON", "T2.address_id", "=", "T1.address_id", "WHERE", "T1.first_name", "=", "'LINDA", "'" ], "query_toks_no_value": [ "select", "t2", ".", "address", ",", "t1", ".", "email", "from", "customer", "as", "t1", "join", "address", "as", "t2", "on", "t2", ".", "address_id", "=", "t1", ".", "address_id", "where", "t1", ".", "first_name", "=", "value" ], "question": "Return the address and email of the customer with the first name Linda.", "question_toks": [ "return", "address", "and", "email", "of", "customer", "with", "first", "name", "linda", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"LINDA\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Return", "the", "address", "and", "email", "of", "the", "customer", "with", "the", "first", "name", "Linda", "." ], "question_arg": [ [ "return" ], [ "address" ], [ "and" ], [ "email" ], [ "of" ], [ "customer" ], [ "with" ], [ "first", "name" ], [ "linda" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "address", "NN" ], [ "and", "CC" ], [ "email", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "linda", "NN" ], [ ".", "." ] ], "values": [ "1", "LINDA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(1) A(0) C(19) T(5) Filter(2) A(0) C(2) T(5) V(1)" }, { "db_id": "sakila_1", "query": "SELECT title FROM film WHERE LENGTH > 100 OR rating = 'PG' EXCEPT SELECT title FROM film WHERE replacement_cost > 200", "query_toks": [ "SELECT", "title", "FROM", "film", "WHERE", "LENGTH", ">", "100", "OR", "rating", "=", "'PG", "'", "EXCEPT", "SELECT", "title", "FROM", "film", "WHERE", "replacement_cost", ">", "200" ], "query_toks_no_value": [ "select", "title", "from", "film", "where", "length", ">", "value", "or", "rating", "=", "value", "except", "select", "title", "from", "film", "where", "replacement_cost", ">", "value" ], "question": "Find all the films longer than 100 minutes, or rated PG, except those who cost more than 200 for replacement. List the titles.", "question_toks": [ "find", "all", "film", "longer", "than", "100", "minute", ",", "or", "rated", "pg", ",", "except", "those", "who", "cost", "more", "than", "200", "for", "replacement", ".", "list", "title", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 41, false ], null ], 200.0, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 40, false ], null ], 100.0, null ], "or", [ false, 2, [ 0, [ 0, 42, false ], null ], "\"PG\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Find", "all", "the", "films", "longer", "than", "100", "minutes", ",", "or", "rated", "PG", ",", "except", "those", "who", "cost", "more", "than", "200", "for", "replacement", ".", "List", "the", "titles", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "film" ], [ "longer" ], [ "than" ], [ "100" ], [ "minute" ], [ "," ], [ "or" ], [ "rated" ], [ "pg" ], [ "," ], [ "except" ], [ "those" ], [ "who" ], [ "cost" ], [ "more" ], [ "than" ], [ "200" ], [ "for" ], [ "replacement" ], [ "." ], [ "list" ], [ "title" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "film", "NN" ], [ "longer", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "minute", "NN" ], [ ",", "," ], [ "or", "CC" ], [ "rated", "VBN" ], [ "pg", "JJ" ], [ ",", "," ], [ "except", "IN" ], [ "those", "DT" ], [ "who", "WP" ], [ "cost", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "200", "CD" ], [ "for", "IN" ], [ "replacement", "NN" ], [ ".", "." ], [ "list", "NN" ], [ "title", "NN" ], [ ".", "." ] ], "values": [ "100", "200", "PG" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(23) T(6) Filter(1) Filter(5) A(0) C(30) T(6) V(0) Filter(2) A(0) C(32) T(6) V(2) Root(3) Sel(0) N(0) A(0) C(23) T(6) Filter(5) A(0) C(31) T(6) V(1)" }, { "db_id": "sakila_1", "query": "SELECT title FROM film WHERE LENGTH > 100 OR rating = 'PG' EXCEPT SELECT title FROM film WHERE replacement_cost > 200", "query_toks": [ "SELECT", "title", "FROM", "film", "WHERE", "LENGTH", ">", "100", "OR", "rating", "=", "'PG", "'", "EXCEPT", "SELECT", "title", "FROM", "film", "WHERE", "replacement_cost", ">", "200" ], "query_toks_no_value": [ "select", "title", "from", "film", "where", "length", ">", "value", "or", "rating", "=", "value", "except", "select", "title", "from", "film", "where", "replacement_cost", ">", "value" ], "question": "What are the titles of films that are either longer than 100 minutes or rated PG other than those that cost more than 200 to replace?", "question_toks": [ "what", "are", "title", "of", "film", "that", "are", "either", "longer", "than", "100", "minute", "or", "rated", "pg", "other", "than", "those", "that", "cost", "more", "than", "200", "to", "replace", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 41, false ], null ], 200.0, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 40, false ], null ], 100.0, null ], "or", [ false, 2, [ 0, [ 0, 42, false ], null ], "\"PG\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "films", "that", "are", "either", "longer", "than", "100", "minutes", "or", "rated", "PG", "other", "than", "those", "that", "cost", "more", "than", "200", "to", "replace", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "film" ], [ "that" ], [ "are" ], [ "either" ], [ "longer" ], [ "than" ], [ "100" ], [ "minute" ], [ "or" ], [ "rated" ], [ "pg" ], [ "other" ], [ "than" ], [ "those" ], [ "that" ], [ "cost" ], [ "more" ], [ "than" ], [ "200" ], [ "to" ], [ "replace" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "of", "IN" ], [ "film", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "either", "RB" ], [ "longer", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "minute", "NN" ], [ "or", "CC" ], [ "rated", "VBN" ], [ "pg", "IN" ], [ "other", "JJ" ], [ "than", "IN" ], [ "those", "DT" ], [ "that", "WDT" ], [ "cost", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "200", "CD" ], [ "to", "TO" ], [ "replace", "VB" ], [ "?", "." ] ], "values": [ "100", "200", "PG" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(23) T(6) Filter(1) Filter(5) A(0) C(30) T(6) V(0) Filter(2) A(0) C(32) T(6) V(2) Root(3) Sel(0) N(0) A(0) C(23) T(6) Filter(5) A(0) C(31) T(6) V(1)" }, { "db_id": "sakila_1", "query": "SELECT T1.first_name , T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id = T2.customer_id ORDER BY T2.rental_date ASC LIMIT 1", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", "FROM", "customer", "AS", "T1", "JOIN", "rental", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "ORDER", "BY", "T2.rental_date", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "customer", "as", "t1", "join", "rental", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "order", "by", "t2", ".", "rental_date", "asc", "limit", "value" ], "question": "What is the first name and the last name of the customer who made the earliest rental?", "question_toks": [ "what", "is", "first", "name", "and", "last", "name", "of", "customer", "who", "made", "earliest", "rental", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 71, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 69, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "is", "the", "first", "name", "and", "the", "last", "name", "of", "the", "customer", "who", "made", "the", "earliest", "rental", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "made" ], [ "earliest" ], [ "rental" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "earliest", "JJS" ], [ "rental", "NN" ], [ "?", "." ] ], "values": [ "1", "Oriental" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(5) A(0) C(3) T(5) Sup(1) A(0) C(40) T(13)" }, { "db_id": "sakila_1", "query": "SELECT T1.first_name , T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id = T2.customer_id ORDER BY T2.rental_date ASC LIMIT 1", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", "FROM", "customer", "AS", "T1", "JOIN", "rental", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "ORDER", "BY", "T2.rental_date", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "customer", "as", "t1", "join", "rental", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "order", "by", "t2", ".", "rental_date", "asc", "limit", "value" ], "question": "Return the full name of the customer who made the first rental.", "question_toks": [ "return", "full", "name", "of", "customer", "who", "made", "first", "rental", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 71, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 69, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Return", "the", "full", "name", "of", "the", "customer", "who", "made", "the", "first", "rental", "." ], "question_arg": [ [ "return" ], [ "full" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "made" ], [ "first" ], [ "rental" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "first", "JJ" ], [ "rental", "JJ" ], [ ".", "." ] ], "values": [ "1", "Oriental" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(5) A(0) C(3) T(5) Sup(1) A(0) C(40) T(13)" }, { "db_id": "sakila_1", "query": "SELECT DISTINCT T1.first_name , T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id = T2.staff_id JOIN customer AS T3 ON T2.customer_id = T3.customer_id WHERE T3.first_name = 'APRIL' AND T3.last_name = 'BURNS'", "query_toks": [ "SELECT", "DISTINCT", "T1.first_name", ",", "T1.last_name", "FROM", "staff", "AS", "T1", "JOIN", "rental", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "JOIN", "customer", "AS", "T3", "ON", "T2.customer_id", "=", "T3.customer_id", "WHERE", "T3.first_name", "=", "'APRIL", "'", "AND", "T3.last_name", "=", "'BURNS", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "staff", "as", "t1", "join", "rental", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "join", "customer", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t3", ".", "first_name", "=", "value", "and", "t3", ".", "last_name", "=", "value" ], "question": "What is the full name of the staff member who has rented a film to a customer with the first name April and the last name Burns?", "question_toks": [ "what", "is", "full", "name", "of", "staff", "member", "who", "ha", "rented", "a", "film", "to", "a", "customer", "with", "first", "name", "april", "and", "last", "name", "burn", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 75, false ], null ], [ 0, 73, false ], null ] ], "table_units": [ [ "table_unit", 14 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 76, false ], null ] ], [ 0, [ 0, [ 0, 77, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 75, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 73, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 13 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"APRIL\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], "\"BURNS\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "is", "the", "full", "name", "of", "the", "staff", "member", "who", "has", "rented", "a", "film", "to", "a", "customer", "with", "the", "first", "name", "April", "and", "the", "last", "name", "Burns", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "full" ], [ "name" ], [ "of" ], [ "staff" ], [ "member" ], [ "who" ], [ "ha" ], [ "rented" ], [ "a" ], [ "film" ], [ "to" ], [ "a" ], [ "customer" ], [ "with" ], [ "first", "name" ], [ "april" ], [ "and" ], [ "last", "name" ], [ "burn" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "member", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "rented", "VBD" ], [ "a", "DT" ], [ "film", "NN" ], [ "to", "TO" ], [ "a", "DT" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "april", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "burn", "NN" ], [ "?", "." ] ], "values": [ "1", "BURNS", "APRIL", "4/" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(2) T(14) A(0) C(3) T(14) Filter(0) Filter(18) A(0) C(36) T(14) Root(5) Sel(0) N(0) A(0) C(36) T(13) Filter(0) Filter(2) A(0) C(2) T(5) V(2) Filter(2) A(0) C(3) T(5) V(1)" }, { "db_id": "sakila_1", "query": "SELECT DISTINCT T1.first_name , T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id = T2.staff_id JOIN customer AS T3 ON T2.customer_id = T3.customer_id WHERE T3.first_name = 'APRIL' AND T3.last_name = 'BURNS'", "query_toks": [ "SELECT", "DISTINCT", "T1.first_name", ",", "T1.last_name", "FROM", "staff", "AS", "T1", "JOIN", "rental", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "JOIN", "customer", "AS", "T3", "ON", "T2.customer_id", "=", "T3.customer_id", "WHERE", "T3.first_name", "=", "'APRIL", "'", "AND", "T3.last_name", "=", "'BURNS", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "staff", "as", "t1", "join", "rental", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "join", "customer", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t3", ".", "first_name", "=", "value", "and", "t3", ".", "last_name", "=", "value" ], "question": "Return the full name of the staff who provided a customer with the first name April and the last name Burns with a film rental.", "question_toks": [ "return", "full", "name", "of", "staff", "who", "provided", "a", "customer", "with", "first", "name", "april", "and", "last", "name", "burn", "with", "a", "film", "rental", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 75, false ], null ], [ 0, 73, false ], null ] ], "table_units": [ [ "table_unit", 14 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 76, false ], null ] ], [ 0, [ 0, [ 0, 77, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 75, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 73, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 13 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"APRIL\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], "\"BURNS\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Return", "the", "full", "name", "of", "the", "staff", "who", "provided", "a", "customer", "with", "the", "first", "name", "April", "and", "the", "last", "name", "Burns", "with", "a", "film", "rental", "." ], "question_arg": [ [ "return" ], [ "full" ], [ "name" ], [ "of" ], [ "staff" ], [ "who" ], [ "provided" ], [ "a" ], [ "customer" ], [ "with" ], [ "first", "name" ], [ "april" ], [ "and" ], [ "last", "name" ], [ "burn" ], [ "with" ], [ "a" ], [ "film" ], [ "rental" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "who", "WP" ], [ "provided", "VBD" ], [ "a", "DT" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "april", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "burn", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "film", "NN" ], [ "rental", "NN" ], [ ".", "." ] ], "values": [ "1", "APRIL", "4/", "BURNS", "Oriental" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(2) T(14) A(0) C(3) T(14) Filter(0) Filter(18) A(0) C(36) T(14) Root(5) Sel(0) N(0) A(0) C(36) T(13) Filter(0) Filter(2) A(0) C(2) T(5) V(1) Filter(2) A(0) C(3) T(5) V(3)" }, { "db_id": "sakila_1", "query": "SELECT store_id FROM customer GROUP BY store_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "store_id", "FROM", "customer", "GROUP", "BY", "store_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "store_id", "from", "customer", "group", "by", "store_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which store has most the customers?", "question_toks": [ "which", "store", "ha", "most", "customer", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Which", "store", "has", "most", "the", "customers", "?" ], "question_arg": [ [ "which" ], [ "store" ], [ "ha" ], [ "most" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "store", "VBP" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [ "STONE" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(18) T(5) Sup(0) A(3) C(0) T(5)" }, { "db_id": "sakila_1", "query": "SELECT store_id FROM customer GROUP BY store_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "store_id", "FROM", "customer", "GROUP", "BY", "store_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "store_id", "from", "customer", "group", "by", "store_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the id of the store with the most customers.", "question_toks": [ "return", "id", "of", "store", "with", "most", "customer", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Return", "the", "id", "of", "the", "store", "with", "the", "most", "customers", "." ], "question_arg": [ [ "return" ], [ "id" ], [ "of" ], [ "store" ], [ "with" ], [ "most" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "store", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [ "STONE" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(18) T(5) Sup(0) A(3) C(0) T(5)" }, { "db_id": "sakila_1", "query": "SELECT amount FROM payment ORDER BY amount DESC LIMIT 1", "query_toks": [ "SELECT", "amount", "FROM", "payment", "ORDER", "BY", "amount", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "amount", "from", "payment", "order", "by", "amount", "desc", "limit", "value" ], "question": "What is the largest payment amount?", "question_toks": [ "what", "is", "largest", "payment", "amount", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 65, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 65, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "is", "the", "largest", "payment", "amount", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "largest" ], [ "payment" ], [ "amount" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "largest", "JJS" ], [ "payment", "NN" ], [ "amount", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(38) T(12) Sup(0) A(0) C(38) T(12)" }, { "db_id": "sakila_1", "query": "SELECT amount FROM payment ORDER BY amount DESC LIMIT 1", "query_toks": [ "SELECT", "amount", "FROM", "payment", "ORDER", "BY", "amount", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "amount", "from", "payment", "order", "by", "amount", "desc", "limit", "value" ], "question": "Return the amount of the largest payment.", "question_toks": [ "return", "amount", "of", "largest", "payment", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 65, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 65, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Return", "the", "amount", "of", "the", "largest", "payment", "." ], "question_arg": [ [ "return" ], [ "amount" ], [ "of" ], [ "largest" ], [ "payment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "amount", "NN" ], [ "of", "IN" ], [ "largest", "JJS" ], [ "payment", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(38) T(12) Sup(0) A(0) C(38) T(12)" }, { "db_id": "sakila_1", "query": "SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T1.first_name = 'Elsa'", "query_toks": [ "SELECT", "T2.address", "FROM", "staff", "AS", "T1", "JOIN", "address", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "WHERE", "T1.first_name", "=", "'Elsa", "'" ], "query_toks_no_value": [ "select", "t2", ".", "address", "from", "staff", "as", "t1", "join", "address", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "first_name", "=", "value" ], "question": "Where does the staff member with the first name Elsa live?", "question_toks": [ "where", "doe", "staff", "member", "with", "first", "name", "elsa", "live", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 78, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 14 ], [ "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, 76, false ], null ], "\"Elsa\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Where", "does", "the", "staff", "member", "with", "the", "first", "name", "Elsa", "live", "?" ], "question_arg": [ [ "where" ], [ "doe" ], [ "staff" ], [ "member" ], [ "with" ], [ "first", "name" ], [ "elsa" ], [ "live" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "where", "WRB" ], [ "doe", "JJ" ], [ "staff", "NN" ], [ "member", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "elsa", "RB" ], [ "live", "CD" ], [ "?", "." ] ], "values": [ "1", "Elsa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(2) A(0) C(2) T(14) V(1)" }, { "db_id": "sakila_1", "query": "SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T1.first_name = 'Elsa'", "query_toks": [ "SELECT", "T2.address", "FROM", "staff", "AS", "T1", "JOIN", "address", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "WHERE", "T1.first_name", "=", "'Elsa", "'" ], "query_toks_no_value": [ "select", "t2", ".", "address", "from", "staff", "as", "t1", "join", "address", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "first_name", "=", "value" ], "question": "Give the address of the staff member who has the first name Elsa.", "question_toks": [ "give", "address", "of", "staff", "member", "who", "ha", "first", "name", "elsa", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 78, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 14 ], [ "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, 76, false ], null ], "\"Elsa\"", null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Give", "the", "address", "of", "the", "staff", "member", "who", "has", "the", "first", "name", "Elsa", "." ], "question_arg": [ [ "give" ], [ "address" ], [ "of" ], [ "staff" ], [ "member" ], [ "who" ], [ "ha" ], [ "first", "name" ], [ "elsa" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "address", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "member", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "first", "RB" ], [ "name", "JJ" ], [ "elsa", "NN" ], [ ".", "." ] ], "values": [ "1", "Elsa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(2) A(0) C(2) T(14) V(1)" }, { "db_id": "sakila_1", "query": "SELECT first_name FROM customer WHERE customer_id NOT IN( SELECT customer_id FROM rental WHERE rental_date > '2005-08-23 02:06:01' )", "query_toks": [ "SELECT", "first_name", "FROM", "customer", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "rental", "WHERE", "rental_date", ">", "'2005-08-23", "02:06:01", "'", ")" ], "query_toks_no_value": [ "select", "first_name", "from", "customer", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "rental", "where", "rental_date", ">", "value", ")" ], "question": "What are the first names of customers who have not rented any films after '2005-08-23 02:06:01'?", "question_toks": [ "what", "are", "first", "name", "of", "customer", "who", "have", "not", "rented", "any", "film", "after", "'", "2005-08-23", "02:06:01", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 23, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 71, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 69, false ], null ], "\"2005-08-23 02:06:01\"", null ] ] }, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "customers", "who", "have", "not", "rented", "any", "films", "after", "'2005-08-23", "02:06:01", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "not" ], [ "rented" ], [ "any" ], [ "film" ], [ "after" ], [ "'" ], [ "2005-08-23" ], [ "02:06:01" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "not", "RB" ], [ "rented", "VBN" ], [ "any", "DT" ], [ "film", "NN" ], [ "after", "IN" ], [ "'", "POS" ], [ "2005-08-23", "JJ" ], [ "02:06:01", "CD" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "8", "6", "23", "2", "1", "2005-08-23 02:06:01", "2005", "2005-08-23", "JAMES", "Games" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(5) Filter(19) A(0) C(17) T(5) Root(3) Sel(0) N(0) A(0) C(17) T(13) Filter(5) A(0) C(40) T(13) V(5)" }, { "db_id": "sakila_1", "query": "SELECT first_name FROM customer WHERE customer_id NOT IN( SELECT customer_id FROM rental WHERE rental_date > '2005-08-23 02:06:01' )", "query_toks": [ "SELECT", "first_name", "FROM", "customer", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "rental", "WHERE", "rental_date", ">", "'2005-08-23", "02:06:01", "'", ")" ], "query_toks_no_value": [ "select", "first_name", "from", "customer", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "rental", "where", "rental_date", ">", "value", ")" ], "question": "Return the first names of customers who did not rented a film after the date '2005-08-23 02:06:01'.", "question_toks": [ "return", "first", "name", "of", "customer", "who", "did", "not", "rented", "a", "film", "after", "date", "'", "2005-08-23", "02:06:01", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 23, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 71, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 69, false ], null ], "\"2005-08-23 02:06:01\"", null ] ] }, null ] ] }, "names": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "last update", "category id", "name", "last update", "city id", "city", "country id", "last update", "country id", "country", "last update", "customer id", "store id", "first name", "last name", "email", "address id", "active", "create date", "last update", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "last update", "actor id", "film id", "last update", "film id", "category id", "last update", "film id", "title", "description", "inventory id", "film id", "store id", "last update", "language id", "name", "last update", "payment id", "customer id", "staff id", "rental id", "amount", "payment date", "last update", "rental id", "rental date", "inventory id", "customer id", "return date", "staff id", "last update", "staff id", "first name", "last name", "address id", "picture", "email", "store id", "active", "username", "password", "last update", "store id", "manager staff id", "address id", "last update" ], "table_names": [ "actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store" ], "col_set": [ "*", "actor id", "first name", "last name", "last update", "address id", "address", "address2", "district", "city id", "postal code", "phone", "category id", "name", "city", "country id", "country", "customer id", "store id", "email", "active", "create date", "film id", "title", "description", "release year", "language id", "original language id", "rental duration", "rental rate", "length", "replacement cost", "rating", "special features", "inventory id", "payment id", "staff id", "rental id", "amount", "payment date", "rental date", "return date", "picture", "username", "password", "manager staff id" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15 ], "keys": { "9": 16, "16": 16, "18": 20, "20": 20, "24": 86, "86": 86, "28": 5, "5": 5, "37": 58, "58": 58, "36": 58, "46": 32, "32": 32, "45": 45, "1": 1, "49": 13, "13": 13, "48": 48, "55": 32, "56": 86, "63": 75, "75": 75, "62": 23, "23": 23, "64": 68, "68": 68, "71": 23, "70": 54, "54": 54, "73": 75, "78": 5, "88": 5, "87": 75, "51": 51, "61": 61 }, "origin_question_toks": [ "Return", "the", "first", "names", "of", "customers", "who", "did", "not", "rented", "a", "film", "after", "the", "date", "'2005-08-23", "02:06:01", "'", "." ], "question_arg": [ [ "return" ], [ "first", "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "did" ], [ "not" ], [ "rented" ], [ "a" ], [ "film" ], [ "after" ], [ "date" ], [ "'" ], [ "2005-08-23" ], [ "02:06:01" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "rented", "VBN" ], [ "a", "DT" ], [ "film", "NN" ], [ "after", "IN" ], [ "date", "NN" ], [ "'", "POS" ], [ "2005-08-23", "JJ" ], [ "02:06:01", "CD" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "8", "6", "23", "2", "1", "2005-08-23 02:06:01", "2005", "2005-08-23", "JAMES", "Games" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(5) Filter(19) A(0) C(17) T(5) Root(3) Sel(0) N(0) A(0) C(17) T(13) Filter(5) A(0) C(40) T(13) V(5)" }, { "db_id": "loan_1", "query": "SELECT count(*) FROM bank", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "bank" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "bank" ], "question": "How many bank branches are there?", "question_toks": [ "how", "many", "bank", "branch", "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": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "How", "many", "bank", "branches", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "bank" ], [ "branch" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "bank", "NN" ], [ "branch", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "loan_1", "query": "SELECT count(*) FROM bank", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "bank" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "bank" ], "question": "Count the number of bank branches.", "question_toks": [ "count", "number", "of", "bank", "branch", "." ], "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": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Count", "the", "number", "of", "bank", "branches", "." ], "question_arg": [ [ "count" ], [ "number", "of", "loan" ], [ "bank" ], [ "branch" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "bank", "NN" ], [ "branch", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "loan_1", "query": "SELECT sum(no_of_customers) FROM bank", "query_toks": [ "SELECT", "sum", "(", "no_of_customers", ")", "FROM", "bank" ], "query_toks_no_value": [ "select", "sum", "(", "no_of_customers", ")", "from", "bank" ], "question": "How many customers are there?", "question_toks": [ "how", "many", "customer", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "How", "many", "customers", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(3) T(0)" }, { "db_id": "loan_1", "query": "SELECT sum(no_of_customers) FROM bank", "query_toks": [ "SELECT", "sum", "(", "no_of_customers", ")", "FROM", "bank" ], "query_toks_no_value": [ "select", "sum", "(", "no_of_customers", ")", "from", "bank" ], "question": "What is the total number of customers across banks?", "question_toks": [ "what", "is", "total", "number", "of", "customer", "across", "bank", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "customers", "across", "banks", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number", "of", "loan" ], [ "customer" ], [ "across" ], [ "bank" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "across", "IN" ], [ "bank", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(3) T(0)" }, { "db_id": "loan_1", "query": "SELECT sum(no_of_customers) FROM bank WHERE city = 'New York City'", "query_toks": [ "SELECT", "sum", "(", "no_of_customers", ")", "FROM", "bank", "WHERE", "city", "=", "'New", "York", "City", "'" ], "query_toks_no_value": [ "select", "sum", "(", "no_of_customers", ")", "from", "bank", "where", "city", "=", "value" ], "question": "Find the number of customers in the banks at New York City.", "question_toks": [ "find", "number", "of", "customer", "in", "bank", "at", "new", "york", "city", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"New York City\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "number", "of", "customers", "in", "the", "banks", "at", "New", "York", "City", "." ], "question_arg": [ [ "find" ], [ "number", "of", "loan" ], [ "customer" ], [ "in" ], [ "bank" ], [ "at" ], [ "new" ], [ "york" ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "in", "IN" ], [ "bank", "NN" ], [ "at", "IN" ], [ "new", "JJ" ], [ "york", "NN" ], [ "city", "NN" ], [ ".", "." ] ], "values": [ "New York City", "New York" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "loan_1", "query": "SELECT sum(no_of_customers) FROM bank WHERE city = 'New York City'", "query_toks": [ "SELECT", "sum", "(", "no_of_customers", ")", "FROM", "bank", "WHERE", "city", "=", "'New", "York", "City", "'" ], "query_toks_no_value": [ "select", "sum", "(", "no_of_customers", ")", "from", "bank", "where", "city", "=", "value" ], "question": "What is the total number of customers who use banks in New York City?", "question_toks": [ "what", "is", "total", "number", "of", "customer", "who", "use", "bank", "in", "new", "york", "city", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"New York City\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "customers", "who", "use", "banks", "in", "New", "York", "City", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number", "of", "loan" ], [ "customer" ], [ "who" ], [ "use" ], [ "bank" ], [ "in" ], [ "new" ], [ "york" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "use", "VBP" ], [ "bank", "NN" ], [ "in", "IN" ], [ "new", "JJ" ], [ "york", "NN" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "New York City", "New York" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "loan_1", "query": "SELECT avg(no_of_customers) FROM bank WHERE state = 'Utah'", "query_toks": [ "SELECT", "avg", "(", "no_of_customers", ")", "FROM", "bank", "WHERE", "state", "=", "'Utah", "'" ], "query_toks_no_value": [ "select", "avg", "(", "no_of_customers", ")", "from", "bank", "where", "state", "=", "value" ], "question": "Find the average number of customers in all banks of Utah state.", "question_toks": [ "find", "average", "number", "of", "customer", "in", "all", "bank", "of", "utah", "state", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Utah\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "average", "number", "of", "customers", "in", "all", "banks", "of", "Utah", "state", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "number", "of", "loan" ], [ "customer" ], [ "in" ], [ "all" ], [ "bank" ], [ "of" ], [ "utah" ], [ "state" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "state" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "in", "IN" ], [ "all", "DT" ], [ "bank", "NN" ], [ "of", "IN" ], [ "utah", "JJ" ], [ "state", "NN" ], [ ".", "." ] ], "values": [ "Utah" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(3) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "loan_1", "query": "SELECT avg(no_of_customers) FROM bank WHERE state = 'Utah'", "query_toks": [ "SELECT", "avg", "(", "no_of_customers", ")", "FROM", "bank", "WHERE", "state", "=", "'Utah", "'" ], "query_toks_no_value": [ "select", "avg", "(", "no_of_customers", ")", "from", "bank", "where", "state", "=", "value" ], "question": "What is the average number of customers across banks in the state of Utah?", "question_toks": [ "what", "is", "average", "number", "of", "customer", "across", "bank", "in", "state", "of", "utah", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Utah\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "customers", "across", "banks", "in", "the", "state", "of", "Utah", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number", "of", "loan" ], [ "customer" ], [ "across" ], [ "bank" ], [ "in" ], [ "state" ], [ "of" ], [ "utah" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "state" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "across", "IN" ], [ "bank", "NN" ], [ "in", "IN" ], [ "state", "NN" ], [ "of", "IN" ], [ "utah", "NN" ], [ "?", "." ] ], "values": [ "Utah" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(3) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "loan_1", "query": "SELECT avg(no_of_customers) FROM bank", "query_toks": [ "SELECT", "avg", "(", "no_of_customers", ")", "FROM", "bank" ], "query_toks_no_value": [ "select", "avg", "(", "no_of_customers", ")", "from", "bank" ], "question": "Find the average number of customers cross all banks.", "question_toks": [ "find", "average", "number", "of", "customer", "cross", "all", "bank", "." ], "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": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "average", "number", "of", "customers", "cross", "all", "banks", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "number", "of", "loan" ], [ "customer" ], [ "cross" ], [ "all" ], [ "bank" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "cross", "NN" ], [ "all", "DT" ], [ "bank", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(3) T(0)" }, { "db_id": "loan_1", "query": "SELECT avg(no_of_customers) FROM bank", "query_toks": [ "SELECT", "avg", "(", "no_of_customers", ")", "FROM", "bank" ], "query_toks_no_value": [ "select", "avg", "(", "no_of_customers", ")", "from", "bank" ], "question": "What is the average number of bank customers?", "question_toks": [ "what", "is", "average", "number", "of", "bank", "customer", "?" ], "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": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "bank", "customers", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number", "of", "loan" ], [ "bank" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "table" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "bank", "NN" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(3) T(0)" }, { "db_id": "loan_1", "query": "SELECT city , state FROM bank WHERE bname = 'morningside'", "query_toks": [ "SELECT", "city", ",", "state", "FROM", "bank", "WHERE", "bname", "=", "'morningside", "'" ], "query_toks_no_value": [ "select", "city", ",", "state", "from", "bank", "where", "bname", "=", "value" ], "question": "Find the city and state of the bank branch named morningside.", "question_toks": [ "find", "city", "and", "state", "of", "bank", "branch", "named", "morningside", "." ], "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, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"morningside\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "city", "and", "state", "of", "the", "bank", "branch", "named", "morningside", "." ], "question_arg": [ [ "find" ], [ "city" ], [ "and" ], [ "state" ], [ "of" ], [ "bank" ], [ "branch" ], [ "named" ], [ "morningside" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "city", "NN" ], [ "and", "CC" ], [ "state", "NN" ], [ "of", "IN" ], [ "bank", "NN" ], [ "branch", "NN" ], [ "named", "VBN" ], [ "morningside", "NN" ], [ ".", "." ] ], "values": [ "morningside" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(0) A(0) C(5) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "loan_1", "query": "SELECT city , state FROM bank WHERE bname = 'morningside'", "query_toks": [ "SELECT", "city", ",", "state", "FROM", "bank", "WHERE", "bname", "=", "'morningside", "'" ], "query_toks_no_value": [ "select", "city", ",", "state", "from", "bank", "where", "bname", "=", "value" ], "question": "What city and state is the bank with the name morningside in?", "question_toks": [ "what", "city", "and", "state", "is", "bank", "with", "name", "morningside", "in", "?" ], "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, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"morningside\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "city", "and", "state", "is", "the", "bank", "with", "the", "name", "morningside", "in", "?" ], "question_arg": [ [ "what" ], [ "city" ], [ "and" ], [ "state" ], [ "is" ], [ "bank" ], [ "with" ], [ "name" ], [ "morningside" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "city", "NN" ], [ "and", "CC" ], [ "state", "NN" ], [ "is", "VBZ" ], [ "bank", "NN" ], [ "with", "IN" ], [ "name", "JJ" ], [ "morningside", "NN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "morningside" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(0) A(0) C(5) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "loan_1", "query": "SELECT bname FROM bank WHERE state = 'New York'", "query_toks": [ "SELECT", "bname", "FROM", "bank", "WHERE", "state", "=", "'New", "York", "'" ], "query_toks_no_value": [ "select", "bname", "from", "bank", "where", "state", "=", "value" ], "question": "Find the branch names of banks in the New York state.", "question_toks": [ "find", "branch", "name", "of", "bank", "in", "new", "york", "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"New York\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "branch", "names", "of", "banks", "in", "the", "New", "York", "state", "." ], "question_arg": [ [ "find" ], [ "branch" ], [ "name" ], [ "of" ], [ "bank" ], [ "in" ], [ "new" ], [ "york" ], [ "state" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "branch", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "bank", "NN" ], [ "in", "IN" ], [ "new", "JJ" ], [ "york", "NN" ], [ "state", "NN" ], [ ".", "." ] ], "values": [ "New York" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "loan_1", "query": "SELECT bname FROM bank WHERE state = 'New York'", "query_toks": [ "SELECT", "bname", "FROM", "bank", "WHERE", "state", "=", "'New", "York", "'" ], "query_toks_no_value": [ "select", "bname", "from", "bank", "where", "state", "=", "value" ], "question": "What are the names of banks in the state of New York?", "question_toks": [ "what", "are", "name", "of", "bank", "in", "state", "of", "new", "york", "?" ], "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 ], "\"New York\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "banks", "in", "the", "state", "of", "New", "York", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "bank" ], [ "in" ], [ "state" ], [ "of" ], [ "new" ], [ "york" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "bank", "NN" ], [ "in", "IN" ], [ "state", "NN" ], [ "of", "IN" ], [ "new", "JJ" ], [ "york", "NN" ], [ "?", "." ] ], "values": [ "New York" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "loan_1", "query": "SELECT cust_name FROM customer ORDER BY acc_bal", "query_toks": [ "SELECT", "cust_name", "FROM", "customer", "ORDER", "BY", "acc_bal" ], "query_toks_no_value": [ "select", "cust_name", "from", "customer", "order", "by", "acc_bal" ], "question": "List the name of all customers sorted by their account balance in ascending order.", "question_toks": [ "list", "name", "of", "all", "customer", "sorted", "by", "their", "account", "balance", "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "List", "the", "name", "of", "all", "customers", "sorted", "by", "their", "account", "balance", "in", "ascending", "order", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "customer" ], [ "sorted" ], [ "by" ], [ "their" ], [ "account", "balance" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "account", "NN" ], [ "balance", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "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": "loan_1", "query": "SELECT cust_name FROM customer ORDER BY acc_bal", "query_toks": [ "SELECT", "cust_name", "FROM", "customer", "ORDER", "BY", "acc_bal" ], "query_toks_no_value": [ "select", "cust_name", "from", "customer", "order", "by", "acc_bal" ], "question": "What are the names of all customers, ordered by account balance?", "question_toks": [ "what", "are", "name", "of", "all", "customer", ",", "ordered", "by", "account", "balance", "?" ], "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": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "customers", ",", "ordered", "by", "account", "balance", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "customer" ], [ "," ], [ "ordered" ], [ "by" ], [ "account", "balance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "account", "NN" ], [ "balance", "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": "loan_1", "query": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount)", "query_toks": [ "SELECT", "T1.cust_name", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "GROUP", "BY", "T1.cust_name", "ORDER", "BY", "sum", "(", "T2.amount", ")" ], "query_toks_no_value": [ "select", "t1", ".", "cust_name", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "group", "by", "t1", ".", "cust_name", "order", "by", "sum", "(", "t2", ".", "amount", ")" ], "question": "List the name of all different customers who have some loan sorted by their total loan amount.", "question_toks": [ "list", "name", "of", "all", "different", "customer", "who", "have", "some", "loan", "sorted", "by", "their", "total", "loan", "amount", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 4, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "List", "the", "name", "of", "all", "different", "customers", "who", "have", "some", "loan", "sorted", "by", "their", "total", "loan", "amount", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "different" ], [ "customer" ], [ "who" ], [ "have" ], [ "some" ], [ "loan" ], [ "sorted" ], [ "by" ], [ "their" ], [ "total" ], [ "loan" ], [ "amount" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "different", "JJ" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "some", "DT" ], [ "loan", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "total", "JJ" ], [ "loan", "NN" ], [ "amount", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(7) T(1) Order(1) A(4) C(14) T(2)" }, { "db_id": "loan_1", "query": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount)", "query_toks": [ "SELECT", "T1.cust_name", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "GROUP", "BY", "T1.cust_name", "ORDER", "BY", "sum", "(", "T2.amount", ")" ], "query_toks_no_value": [ "select", "t1", ".", "cust_name", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "group", "by", "t1", ".", "cust_name", "order", "by", "sum", "(", "t2", ".", "amount", ")" ], "question": "What are the names of the different customers who have taken out a loan, ordered by the total amount that they have taken?", "question_toks": [ "what", "are", "name", "of", "different", "customer", "who", "have", "taken", "out", "a", "loan", ",", "ordered", "by", "total", "amount", "that", "they", "have", "taken", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 4, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "different", "customers", "who", "have", "taken", "out", "a", "loan", ",", "ordered", "by", "the", "total", "amount", "that", "they", "have", "taken", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "different" ], [ "customer" ], [ "who" ], [ "have" ], [ "taken" ], [ "out" ], [ "a" ], [ "loan" ], [ "," ], [ "ordered" ], [ "by" ], [ "total" ], [ "amount" ], [ "that" ], [ "they" ], [ "have" ], [ "taken" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taken", "VBN" ], [ "out", "RP" ], [ "a", "DT" ], [ "loan", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "that", "IN" ], [ "they", "PRP" ], [ "have", "VBP" ], [ "taken", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(7) T(1) Order(1) A(4) C(14) T(2)" }, { "db_id": "loan_1", "query": "SELECT state , acc_type , credit_score FROM customer WHERE no_of_loans = 0", "query_toks": [ "SELECT", "state", ",", "acc_type", ",", "credit_score", "FROM", "customer", "WHERE", "no_of_loans", "=", "0" ], "query_toks_no_value": [ "select", "state", ",", "acc_type", ",", "credit_score", "from", "customer", "where", "no_of_loans", "=", "value" ], "question": "Find the state, account type, and credit score of the customer whose number of loan is 0.", "question_toks": [ "find", "state", ",", "account", "type", ",", "and", "credit", "score", "of", "customer", "whose", "number", "of", "loan", "is", "0", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], 0.0, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "state", ",", "account", "type", ",", "and", "credit", "score", "of", "the", "customer", "whose", "number", "of", "loan", "is", "0", "." ], "question_arg": [ [ "find" ], [ "state" ], [ "," ], [ "account", "type" ], [ "," ], [ "and" ], [ "credit", "score" ], [ "no", "of", "customer" ], [ "whose" ], [ "number", "of", "loan" ], [ "is" ], [ "0" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "state", "NN" ], [ ",", "," ], [ "account", "NN" ], [ "type", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "credit", "NN" ], [ "score", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "number", "NN" ], [ "of", "IN" ], [ "loan", "NN" ], [ "is", "VBZ" ], [ "0", "CD" ], [ ".", "." ] ], "values": [ "0" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(5) T(1) A(0) C(8) T(1) A(0) C(11) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "loan_1", "query": "SELECT state , acc_type , credit_score FROM customer WHERE no_of_loans = 0", "query_toks": [ "SELECT", "state", ",", "acc_type", ",", "credit_score", "FROM", "customer", "WHERE", "no_of_loans", "=", "0" ], "query_toks_no_value": [ "select", "state", ",", "acc_type", ",", "credit_score", "from", "customer", "where", "no_of_loans", "=", "value" ], "question": "What are the states, account types, and credit scores for customers who have 0 loans?", "question_toks": [ "what", "are", "state", ",", "account", "type", ",", "and", "credit", "score", "for", "customer", "who", "have", "0", "loan", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], 0.0, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "states", ",", "account", "types", ",", "and", "credit", "scores", "for", "customers", "who", "have", "0", "loans", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "state" ], [ "," ], [ "account", "type" ], [ "," ], [ "and" ], [ "credit", "score" ], [ "for" ], [ "customer" ], [ "who" ], [ "have" ], [ "0" ], [ "loan" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "state", "NN" ], [ ",", "," ], [ "account", "NN" ], [ "type", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "credit", "NN" ], [ "score", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "0", "CD" ], [ "loan", "NN" ], [ "?", "." ] ], "values": [ "0" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(5) T(1) A(0) C(8) T(1) A(0) C(11) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "loan_1", "query": "SELECT count(DISTINCT city) FROM bank", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "city", ")", "FROM", "bank" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "city", ")", "from", "bank" ], "question": "Find the number of different cities which banks are located at.", "question_toks": [ "find", "number", "of", "different", "city", "which", "bank", "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, 4, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "number", "of", "different", "cities", "which", "banks", "are", "located", "at", "." ], "question_arg": [ [ "find" ], [ "number", "of", "loan" ], [ "different" ], [ "city" ], [ "which" ], [ "bank" ], [ "are" ], [ "located" ], [ "at" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "city", "NN" ], [ "which", "WDT" ], [ "bank", "NN" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "at", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(4) T(0)" }, { "db_id": "loan_1", "query": "SELECT count(DISTINCT city) FROM bank", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "city", ")", "FROM", "bank" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "city", ")", "from", "bank" ], "question": "In how many different cities are banks located?", "question_toks": [ "in", "how", "many", "different", "city", "are", "bank", "located", "?" ], "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": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "In", "how", "many", "different", "cities", "are", "banks", "located", "?" ], "question_arg": [ [ "in" ], [ "how" ], [ "many" ], [ "different" ], [ "city" ], [ "are" ], [ "bank" ], [ "located" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "city", "NN" ], [ "are", "VBP" ], [ "bank", "NN" ], [ "located", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(4) T(0)" }, { "db_id": "loan_1", "query": "SELECT count(DISTINCT state) FROM bank", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "state", ")", "FROM", "bank" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "state", ")", "from", "bank" ], "question": "Find the number of different states which banks are located at.", "question_toks": [ "find", "number", "of", "different", "state", "which", "bank", "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, 5, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "number", "of", "different", "states", "which", "banks", "are", "located", "at", "." ], "question_arg": [ [ "find" ], [ "number", "of", "loan" ], [ "different" ], [ "state" ], [ "which" ], [ "bank" ], [ "are" ], [ "located" ], [ "at" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "state", "NN" ], [ "which", "WDT" ], [ "bank", "NN" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "at", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(5) T(0)" }, { "db_id": "loan_1", "query": "SELECT count(DISTINCT state) FROM bank", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "state", ")", "FROM", "bank" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "state", ")", "from", "bank" ], "question": "In how many different states are banks located?", "question_toks": [ "in", "how", "many", "different", "state", "are", "bank", "located", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 5, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "In", "how", "many", "different", "states", "are", "banks", "located", "?" ], "question_arg": [ [ "in" ], [ "how" ], [ "many" ], [ "different" ], [ "state" ], [ "are" ], [ "bank" ], [ "located" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "state", "NN" ], [ "are", "VBP" ], [ "bank", "NN" ], [ "located", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(5) T(0)" }, { "db_id": "loan_1", "query": "SELECT count(DISTINCT acc_type) FROM customer", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "acc_type", ")", "FROM", "customer" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "acc_type", ")", "from", "customer" ], "question": "How many distinct types of accounts are there?", "question_toks": [ "how", "many", "distinct", "type", "of", "account", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 8, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "How", "many", "distinct", "types", "of", "accounts", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "type" ], [ "of" ], [ "account" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(8) T(1)" }, { "db_id": "loan_1", "query": "SELECT count(DISTINCT acc_type) FROM customer", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "acc_type", ")", "FROM", "customer" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "acc_type", ")", "from", "customer" ], "question": "Count the number of different account types.", "question_toks": [ "count", "number", "of", "different", "account", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 8, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "account", "types", "." ], "question_arg": [ [ "count" ], [ "number", "of", "loan" ], [ "different" ], [ "account", "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "account", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(8) T(1)" }, { "db_id": "loan_1", "query": "SELECT cust_name , acc_bal FROM customer WHERE cust_name LIKE '%a%'", "query_toks": [ "SELECT", "cust_name", ",", "acc_bal", "FROM", "customer", "WHERE", "cust_name", "LIKE", "'", "%", "a", "%", "'" ], "query_toks_no_value": [ "select", "cust_name", ",", "acc_bal", "from", "customer", "where", "cust_name", "like", "value" ], "question": "Find the name and account balance of the customer whose name includes the letter \u2018a\u2019.", "question_toks": [ "find", "name", "and", "account", "balance", "of", "customer", "whose", "name", "includes", "letter", "\u2018a\u2019", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 7, false ], null ], "\"%a%\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "name", "and", "account", "balance", "of", "the", "customer", "whose", "name", "includes", "the", "letter", "\u2018a\u2019", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "account", "balance" ], [ "no", "of", "customer" ], [ "whose" ], [ "name" ], [ "includes" ], [ "letter" ], [ "\u2018a\u2019" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "account", "NN" ], [ "balance", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "includes", "VBZ" ], [ "letter", "NN" ], [ "\u2018a\u2019", "NN" ], [ ".", "." ] ], "values": [ "a" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(1) A(0) C(9) T(1) Filter(9) A(0) C(7) T(1) V(0)" }, { "db_id": "loan_1", "query": "SELECT cust_name , acc_bal FROM customer WHERE cust_name LIKE '%a%'", "query_toks": [ "SELECT", "cust_name", ",", "acc_bal", "FROM", "customer", "WHERE", "cust_name", "LIKE", "'", "%", "a", "%", "'" ], "query_toks_no_value": [ "select", "cust_name", ",", "acc_bal", "from", "customer", "where", "cust_name", "like", "value" ], "question": "What are the names and account balances of customers with the letter a in their names?", "question_toks": [ "what", "are", "name", "and", "account", "balance", "of", "customer", "with", "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, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 7, false ], null ], "\"%a%\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "account", "balances", "of", "customers", "with", "the", "letter", "a", "in", "their", "names", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "account", "balance" ], [ "no", "of", "customer" ], [ "with" ], [ "letter" ], [ "a" ], [ "in" ], [ "their" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "account", "JJ" ], [ "balance", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "letter", "NN" ], [ "a", "DT" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "a" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(1) A(0) C(9) T(1) Filter(9) A(0) C(7) T(1) V(0)" }, { "db_id": "loan_1", "query": "SELECT sum(acc_bal) FROM customer WHERE state = 'Utah' OR state = 'Texas'", "query_toks": [ "SELECT", "sum", "(", "acc_bal", ")", "FROM", "customer", "WHERE", "state", "=", "'Utah", "'", "OR", "state", "=", "'Texas", "'" ], "query_toks_no_value": [ "select", "sum", "(", "acc_bal", ")", "from", "customer", "where", "state", "=", "value", "or", "state", "=", "value" ], "question": "Find the total account balance of each customer from Utah or Texas.", "question_toks": [ "find", "total", "account", "balance", "of", "each", "customer", "from", "utah", "or", "texas", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Utah\"", null ], "or", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Texas\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "total", "account", "balance", "of", "each", "customer", "from", "Utah", "or", "Texas", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "account", "balance" ], [ "of" ], [ "each" ], [ "customer" ], [ "from" ], [ "utah" ], [ "or" ], [ "texas" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "state" ], [ "NONE" ], [ "state" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "account", "NN" ], [ "balance", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "customer", "NN" ], [ "from", "IN" ], [ "utah", "JJ" ], [ "or", "CC" ], [ "texas", "NN" ], [ ".", "." ] ], "values": [ "Utah", "Texas" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(9) T(1) Filter(1) Filter(2) A(0) C(5) T(1) V(0) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "loan_1", "query": "SELECT sum(acc_bal) FROM customer WHERE state = 'Utah' OR state = 'Texas'", "query_toks": [ "SELECT", "sum", "(", "acc_bal", ")", "FROM", "customer", "WHERE", "state", "=", "'Utah", "'", "OR", "state", "=", "'Texas", "'" ], "query_toks_no_value": [ "select", "sum", "(", "acc_bal", ")", "from", "customer", "where", "state", "=", "value", "or", "state", "=", "value" ], "question": "What are the total account balances for each customer from Utah or Texas?", "question_toks": [ "what", "are", "total", "account", "balance", "for", "each", "customer", "from", "utah", "or", "texas", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Utah\"", null ], "or", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Texas\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "total", "account", "balances", "for", "each", "customer", "from", "Utah", "or", "Texas", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "total" ], [ "account", "balance" ], [ "for" ], [ "each" ], [ "customer" ], [ "from" ], [ "utah" ], [ "or" ], [ "texas" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "state" ], [ "NONE" ], [ "state" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "account", "NN" ], [ "balance", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "customer", "NN" ], [ "from", "IN" ], [ "utah", "JJ" ], [ "or", "CC" ], [ "texas", "NN" ], [ "?", "." ] ], "values": [ "Utah", "Texas" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(9) T(1) Filter(1) Filter(2) A(0) C(5) T(1) V(0) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "loan_1", "query": "SELECT cust_name FROM customer WHERE acc_type = 'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type = 'checking'", "query_toks": [ "SELECT", "cust_name", "FROM", "customer", "WHERE", "acc_type", "=", "'saving", "'", "INTERSECT", "SELECT", "cust_name", "FROM", "customer", "WHERE", "acc_type", "=", "'checking", "'" ], "query_toks_no_value": [ "select", "cust_name", "from", "customer", "where", "acc_type", "=", "value", "intersect", "select", "cust_name", "from", "customer", "where", "acc_type", "=", "value" ], "question": "Find the name of customers who have both saving and checking account types.", "question_toks": [ "find", "name", "of", "customer", "who", "have", "both", "saving", "and", "checking", "account", "type", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"checking\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"saving\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "name", "of", "customers", "who", "have", "both", "saving", "and", "checking", "account", "types", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "no", "of", "customer" ], [ "who" ], [ "have" ], [ "both" ], [ "saving" ], [ "and" ], [ "checking" ], [ "account", "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "both", "DT" ], [ "saving", "VBG" ], [ "and", "CC" ], [ "checking", "VBG" ], [ "account", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "saving", "checking" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(8) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(8) T(1) V(1)" }, { "db_id": "loan_1", "query": "SELECT cust_name FROM customer WHERE acc_type = 'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type = 'checking'", "query_toks": [ "SELECT", "cust_name", "FROM", "customer", "WHERE", "acc_type", "=", "'saving", "'", "INTERSECT", "SELECT", "cust_name", "FROM", "customer", "WHERE", "acc_type", "=", "'checking", "'" ], "query_toks_no_value": [ "select", "cust_name", "from", "customer", "where", "acc_type", "=", "value", "intersect", "select", "cust_name", "from", "customer", "where", "acc_type", "=", "value" ], "question": "What are the names of customers who have both savings and checking accounts?", "question_toks": [ "what", "are", "name", "of", "customer", "who", "have", "both", "saving", "and", "checking", "account", "?" ], "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, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"checking\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"saving\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "customers", "who", "have", "both", "savings", "and", "checking", "accounts", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "no", "of", "customer" ], [ "who" ], [ "have" ], [ "both" ], [ "saving" ], [ "and" ], [ "checking" ], [ "account" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "both", "DT" ], [ "saving", "VBG" ], [ "and", "CC" ], [ "checking", "VBG" ], [ "account", "NN" ], [ "?", "." ] ], "values": [ "saving", "checking" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(8) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(8) T(1) V(1)" }, { "db_id": "loan_1", "query": "SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type = 'saving'", "query_toks": [ "SELECT", "cust_name", "FROM", "customer", "EXCEPT", "SELECT", "cust_name", "FROM", "customer", "WHERE", "acc_type", "=", "'saving", "'" ], "query_toks_no_value": [ "select", "cust_name", "from", "customer", "except", "select", "cust_name", "from", "customer", "where", "acc_type", "=", "value" ], "question": "Find the name of customers who do not have an saving account.", "question_toks": [ "find", "name", "of", "customer", "who", "do", "not", "have", "an", "saving", "account", "." ], "sql": { "except": { "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, 8, false ], null ], "\"saving\"", 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": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "name", "of", "customers", "who", "do", "not", "have", "an", "saving", "account", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "no", "of", "customer" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "an" ], [ "saving" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "an", "DT" ], [ "saving", "NN" ], [ "account", "NN" ], [ ".", "." ] ], "values": [ "saving" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(7) T(1) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "loan_1", "query": "SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type = 'saving'", "query_toks": [ "SELECT", "cust_name", "FROM", "customer", "EXCEPT", "SELECT", "cust_name", "FROM", "customer", "WHERE", "acc_type", "=", "'saving", "'" ], "query_toks_no_value": [ "select", "cust_name", "from", "customer", "except", "select", "cust_name", "from", "customer", "where", "acc_type", "=", "value" ], "question": "What are the names of customers who do not have saving accounts?", "question_toks": [ "what", "are", "name", "of", "customer", "who", "do", "not", "have", "saving", "account", "?" ], "sql": { "except": { "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, 8, false ], null ], "\"saving\"", 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": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "customers", "who", "do", "not", "have", "saving", "accounts", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "no", "of", "customer" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "saving" ], [ "account" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "saving", "VBG" ], [ "account", "NN" ], [ "?", "." ] ], "values": [ "saving" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(7) T(1) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "loan_1", "query": "SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE T2.loan_type = 'Mortgages'", "query_toks": [ "SELECT", "cust_name", "FROM", "customer", "EXCEPT", "SELECT", "T1.cust_name", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "WHERE", "T2.loan_type", "=", "'Mortgages", "'" ], "query_toks_no_value": [ "select", "cust_name", "from", "customer", "except", "select", "t1", ".", "cust_name", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "where", "t2", ".", "loan_type", "=", "value" ], "question": "Find the name of customers who do not have a loan with a type of Mortgages.", "question_toks": [ "find", "name", "of", "customer", "who", "do", "not", "have", "a", "loan", "with", "a", "type", "of", "mortgage", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 16, 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, 15, false ], null ], "\"Mortgages\"", 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": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "name", "of", "customers", "who", "do", "not", "have", "a", "loan", "with", "a", "type", "of", "Mortgages", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "no", "of", "customer" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "a" ], [ "loan" ], [ "with" ], [ "a" ], [ "type" ], [ "of" ], [ "mortgage" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "loan", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "type", "NN" ], [ "of", "IN" ], [ "mortgage", "NN" ], [ ".", "." ] ], "values": [ "Mortgages" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(7) T(1) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(13) T(2) V(0)" }, { "db_id": "loan_1", "query": "SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE T2.loan_type = 'Mortgages'", "query_toks": [ "SELECT", "cust_name", "FROM", "customer", "EXCEPT", "SELECT", "T1.cust_name", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "WHERE", "T2.loan_type", "=", "'Mortgages", "'" ], "query_toks_no_value": [ "select", "cust_name", "from", "customer", "except", "select", "t1", ".", "cust_name", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "where", "t2", ".", "loan_type", "=", "value" ], "question": "What are the names of customers who have not taken a Mortage loan?", "question_toks": [ "what", "are", "name", "of", "customer", "who", "have", "not", "taken", "a", "mortage", "loan", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 16, 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, 15, false ], null ], "\"Mortgages\"", 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": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "customers", "who", "have", "not", "taken", "a", "Mortage", "loan", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "no", "of", "customer" ], [ "who" ], [ "have" ], [ "not" ], [ "taken" ], [ "a" ], [ "mortage" ], [ "loan" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "not", "RB" ], [ "taken", "VBN" ], [ "a", "DT" ], [ "mortage", "NN" ], [ "loan", "NN" ], [ "?", "." ] ], "values": [ "Mortgages" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(7) T(1) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(13) T(2) V(0)" }, { "db_id": "loan_1", "query": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Auto'", "query_toks": [ "SELECT", "T1.cust_name", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "WHERE", "loan_type", "=", "'Mortgages", "'", "INTERSECT", "SELECT", "T1.cust_name", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "WHERE", "loan_type", "=", "'Auto", "'" ], "query_toks_no_value": [ "select", "t1", ".", "cust_name", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "where", "loan_type", "=", "value", "intersect", "select", "t1", ".", "cust_name", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "where", "loan_type", "=", "value" ], "question": "Find the name of customers who have loans of both Mortgages and Auto.", "question_toks": [ "find", "name", "of", "customer", "who", "have", "loan", "of", "both", "mortgage", "and", "auto", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 16, 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, 15, false ], null ], "\"Auto\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Mortgages\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "name", "of", "customers", "who", "have", "loans", "of", "both", "Mortgages", "and", "Auto", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "no", "of", "customer" ], [ "who" ], [ "have" ], [ "loan" ], [ "of" ], [ "both" ], [ "mortgage" ], [ "and" ], [ "auto" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "loan", "NN" ], [ "of", "IN" ], [ "both", "DT" ], [ "mortgage", "NN" ], [ "and", "CC" ], [ "auto", "NN" ], [ ".", "." ] ], "values": [ "Mortgages", "Auto" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(13) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(13) T(2) V(1)" }, { "db_id": "loan_1", "query": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Auto'", "query_toks": [ "SELECT", "T1.cust_name", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "WHERE", "loan_type", "=", "'Mortgages", "'", "INTERSECT", "SELECT", "T1.cust_name", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "WHERE", "loan_type", "=", "'Auto", "'" ], "query_toks_no_value": [ "select", "t1", ".", "cust_name", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "where", "loan_type", "=", "value", "intersect", "select", "t1", ".", "cust_name", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "where", "loan_type", "=", "value" ], "question": "What are the names of customers who have taken both Mortgage and Auto loans?", "question_toks": [ "what", "are", "name", "of", "customer", "who", "have", "taken", "both", "mortgage", "and", "auto", "loan", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 16, 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, 15, false ], null ], "\"Auto\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Mortgages\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "customers", "who", "have", "taken", "both", "Mortgage", "and", "Auto", "loans", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "no", "of", "customer" ], [ "who" ], [ "have" ], [ "taken" ], [ "both" ], [ "mortgage" ], [ "and" ], [ "auto" ], [ "loan" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taken", "VBN" ], [ "both", "DT" ], [ "mortgage", "NN" ], [ "and", "CC" ], [ "auto", "NN" ], [ "loan", "NN" ], [ "?", "." ] ], "values": [ "Mortgages", "Auto" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(13) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(13) T(2) V(1)" }, { "db_id": "loan_1", "query": "SELECT cust_name FROM customer WHERE credit_score < (SELECT avg(credit_score) FROM customer)", "query_toks": [ "SELECT", "cust_name", "FROM", "customer", "WHERE", "credit_score", "<", "(", "SELECT", "avg", "(", "credit_score", ")", "FROM", "customer", ")" ], "query_toks_no_value": [ "select", "cust_name", "from", "customer", "where", "credit_score", "<", "(", "select", "avg", "(", "credit_score", ")", "from", "customer", ")" ], "question": "Find the name of customers whose credit score is below the average credit scores of all customers.", "question_toks": [ "find", "name", "of", "customer", "whose", "credit", "score", "is", "below", "average", "credit", "score", "of", "all", "customer", "." ], "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, 4, [ 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": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "name", "of", "customers", "whose", "credit", "score", "is", "below", "the", "average", "credit", "scores", "of", "all", "customers", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "no", "of", "customer" ], [ "whose" ], [ "credit", "score" ], [ "is" ], [ "below" ], [ "average" ], [ "credit", "score" ], [ "of" ], [ "all" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "credit", "NN" ], [ "score", "NN" ], [ "is", "VBZ" ], [ "below", "IN" ], [ "average", "JJ" ], [ "credit", "NN" ], [ "score", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(12) A(0) C(11) T(1) Root(5) Sel(0) N(0) A(5) C(11) T(1)" }, { "db_id": "loan_1", "query": "SELECT cust_name FROM customer WHERE credit_score < (SELECT avg(credit_score) FROM customer)", "query_toks": [ "SELECT", "cust_name", "FROM", "customer", "WHERE", "credit_score", "<", "(", "SELECT", "avg", "(", "credit_score", ")", "FROM", "customer", ")" ], "query_toks_no_value": [ "select", "cust_name", "from", "customer", "where", "credit_score", "<", "(", "select", "avg", "(", "credit_score", ")", "from", "customer", ")" ], "question": "What are the names of customers with credit score less than the average credit score across customers?", "question_toks": [ "what", "are", "name", "of", "customer", "with", "credit", "score", "le", "than", "average", "credit", "score", "across", "customer", "?" ], "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, 4, [ 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": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "customers", "with", "credit", "score", "less", "than", "the", "average", "credit", "score", "across", "customers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "no", "of", "customer" ], [ "with" ], [ "credit", "score" ], [ "le" ], [ "than" ], [ "average" ], [ "credit", "score" ], [ "across" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "credit", "NN" ], [ "score", "NN" ], [ "le", "NN" ], [ "than", "IN" ], [ "average", "JJ" ], [ "credit", "NN" ], [ "score", "NN" ], [ "across", "IN" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(12) A(0) C(11) T(1) Root(5) Sel(0) N(0) A(5) C(11) T(1)" }, { "db_id": "loan_1", "query": "SELECT bname FROM bank ORDER BY no_of_customers DESC LIMIT 1", "query_toks": [ "SELECT", "bname", "FROM", "bank", "ORDER", "BY", "no_of_customers", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "bname", "from", "bank", "order", "by", "no_of_customers", "desc", "limit", "value" ], "question": "Find the branch name of the bank that has the most number of customers.", "question_toks": [ "find", "branch", "name", "of", "bank", "that", "ha", "most", "number", "of", "customer", "." ], "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": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "branch", "name", "of", "the", "bank", "that", "has", "the", "most", "number", "of", "customers", "." ], "question_arg": [ [ "find" ], [ "branch" ], [ "name" ], [ "of" ], [ "bank" ], [ "that" ], [ "ha" ], [ "most" ], [ "number", "of", "loan" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "branch", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "bank", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "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": "loan_1", "query": "SELECT bname FROM bank ORDER BY no_of_customers DESC LIMIT 1", "query_toks": [ "SELECT", "bname", "FROM", "bank", "ORDER", "BY", "no_of_customers", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "bname", "from", "bank", "order", "by", "no_of_customers", "desc", "limit", "value" ], "question": "What is the name of the bank branch with the greatest number of customers?", "question_toks": [ "what", "is", "name", "of", "bank", "branch", "with", "greatest", "number", "of", "customer", "?" ], "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": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "bank", "branch", "with", "the", "greatest", "number", "of", "customers", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "bank" ], [ "branch" ], [ "with" ], [ "greatest" ], [ "number", "of", "loan" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "bank", "NN" ], [ "branch", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "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": "loan_1", "query": "SELECT cust_name FROM customer ORDER BY credit_score LIMIT 1", "query_toks": [ "SELECT", "cust_name", "FROM", "customer", "ORDER", "BY", "credit_score", "LIMIT", "1" ], "query_toks_no_value": [ "select", "cust_name", "from", "customer", "order", "by", "credit_score", "limit", "value" ], "question": "Find the name of customer who has the lowest credit score.", "question_toks": [ "find", "name", "of", "customer", "who", "ha", "lowest", "credit", "score", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "name", "of", "customer", "who", "has", "the", "lowest", "credit", "score", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "no", "of", "customer" ], [ "who" ], [ "ha" ], [ "lowest" ], [ "credit", "score" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "lowest", "JJS" ], [ "credit", "NN" ], [ "score", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(1) Sup(1) A(0) C(11) T(1)" }, { "db_id": "loan_1", "query": "SELECT cust_name FROM customer ORDER BY credit_score LIMIT 1", "query_toks": [ "SELECT", "cust_name", "FROM", "customer", "ORDER", "BY", "credit_score", "LIMIT", "1" ], "query_toks_no_value": [ "select", "cust_name", "from", "customer", "order", "by", "credit_score", "limit", "value" ], "question": "What is the name of the customer with the worst credit score?", "question_toks": [ "what", "is", "name", "of", "customer", "with", "worst", "credit", "score", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "customer", "with", "the", "worst", "credit", "score", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "no", "of", "customer" ], [ "with" ], [ "worst" ], [ "credit", "score" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "worst", "JJ" ], [ "credit", "NN" ], [ "score", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(1) Sup(1) A(0) C(11) T(1)" }, { "db_id": "loan_1", "query": "SELECT cust_name , acc_type , acc_bal FROM customer ORDER BY credit_score DESC LIMIT 1", "query_toks": [ "SELECT", "cust_name", ",", "acc_type", ",", "acc_bal", "FROM", "customer", "ORDER", "BY", "credit_score", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "cust_name", ",", "acc_type", ",", "acc_bal", "from", "customer", "order", "by", "credit_score", "desc", "limit", "value" ], "question": "Find the name, account type, and account balance of the customer who has the highest credit score.", "question_toks": [ "find", "name", ",", "account", "type", ",", "and", "account", "balance", "of", "customer", "who", "ha", "highest", "credit", "score", "." ], "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, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "name", ",", "account", "type", ",", "and", "account", "balance", "of", "the", "customer", "who", "has", "the", "highest", "credit", "score", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "," ], [ "account", "type" ], [ "," ], [ "and" ], [ "account", "balance" ], [ "no", "of", "customer" ], [ "who" ], [ "ha" ], [ "highest" ], [ "credit", "score" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "account", "NN" ], [ "type", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "account", "VBP" ], [ "balance", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "highest", "JJS" ], [ "credit", "NN" ], [ "score", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(7) T(1) A(0) C(8) T(1) A(0) C(9) T(1) Sup(0) A(0) C(11) T(1)" }, { "db_id": "loan_1", "query": "SELECT cust_name , acc_type , acc_bal FROM customer ORDER BY credit_score DESC LIMIT 1", "query_toks": [ "SELECT", "cust_name", ",", "acc_type", ",", "acc_bal", "FROM", "customer", "ORDER", "BY", "credit_score", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "cust_name", ",", "acc_type", ",", "acc_bal", "from", "customer", "order", "by", "credit_score", "desc", "limit", "value" ], "question": "What is the name, account type, and account balance corresponding to the customer with the highest credit score?", "question_toks": [ "what", "is", "name", ",", "account", "type", ",", "and", "account", "balance", "corresponding", "to", "customer", "with", "highest", "credit", "score", "?" ], "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, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "name", ",", "account", "type", ",", "and", "account", "balance", "corresponding", "to", "the", "customer", "with", "the", "highest", "credit", "score", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "," ], [ "account", "type" ], [ "," ], [ "and" ], [ "account", "balance" ], [ "corresponding" ], [ "to" ], [ "customer" ], [ "with" ], [ "highest" ], [ "credit", "score" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ ",", "," ], [ "account", "NN" ], [ "type", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "account", "NN" ], [ "balance", "NN" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "customer", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "credit", "NN" ], [ "score", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(7) T(1) A(0) C(8) T(1) A(0) C(9) T(1) Sup(0) A(0) C(11) T(1)" }, { "db_id": "loan_1", "query": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.cust_name", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "GROUP", "BY", "T1.cust_name", "ORDER", "BY", "sum", "(", "T2.amount", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "cust_name", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "group", "by", "t1", ".", "cust_name", "order", "by", "sum", "(", "t2", ".", "amount", ")", "desc", "limit", "value" ], "question": "Find the name of customer who has the highest amount of loans.", "question_toks": [ "find", "name", "of", "customer", "who", "ha", "highest", "amount", "of", "loan", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "name", "of", "customer", "who", "has", "the", "highest", "amount", "of", "loans", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "no", "of", "customer" ], [ "who" ], [ "ha" ], [ "highest" ], [ "amount" ], [ "number", "of", "loan" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "highest", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "loan", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(1) Sup(0) A(4) C(14) T(2)" }, { "db_id": "loan_1", "query": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.cust_name", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "GROUP", "BY", "T1.cust_name", "ORDER", "BY", "sum", "(", "T2.amount", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "cust_name", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "group", "by", "t1", ".", "cust_name", "order", "by", "sum", "(", "t2", ".", "amount", ")", "desc", "limit", "value" ], "question": "What is the name of the customer who has greatest total loan amount?", "question_toks": [ "what", "is", "name", "of", "customer", "who", "ha", "greatest", "total", "loan", "amount", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "customer", "who", "has", "greatest", "total", "loan", "amount", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "no", "of", "customer" ], [ "who" ], [ "ha" ], [ "greatest" ], [ "total" ], [ "loan" ], [ "amount" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "greatest", "JJS" ], [ "total", "JJ" ], [ "loan", "NN" ], [ "amount", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(1) Sup(0) A(4) C(14) T(2)" }, { "db_id": "loan_1", "query": "SELECT state FROM bank GROUP BY state ORDER BY sum(no_of_customers) DESC LIMIT 1", "query_toks": [ "SELECT", "state", "FROM", "bank", "GROUP", "BY", "state", "ORDER", "BY", "sum", "(", "no_of_customers", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "state", "from", "bank", "group", "by", "state", "order", "by", "sum", "(", "no_of_customers", ")", "desc", "limit", "value" ], "question": "Find the state which has the most number of customers.", "question_toks": [ "find", "state", "which", "ha", "most", "number", "of", "customer", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "state", "which", "has", "the", "most", "number", "of", "customers", "." ], "question_arg": [ [ "find" ], [ "state" ], [ "which" ], [ "ha" ], [ "most" ], [ "number", "of", "loan" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "state", "NN" ], [ "which", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(0) Sup(0) A(4) C(3) T(0)" }, { "db_id": "loan_1", "query": "SELECT state FROM bank GROUP BY state ORDER BY sum(no_of_customers) DESC LIMIT 1", "query_toks": [ "SELECT", "state", "FROM", "bank", "GROUP", "BY", "state", "ORDER", "BY", "sum", "(", "no_of_customers", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "state", "from", "bank", "group", "by", "state", "order", "by", "sum", "(", "no_of_customers", ")", "desc", "limit", "value" ], "question": "Which state has the greatest total number of bank customers?", "question_toks": [ "which", "state", "ha", "greatest", "total", "number", "of", "bank", "customer", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Which", "state", "has", "the", "greatest", "total", "number", "of", "bank", "customers", "?" ], "question_arg": [ [ "which" ], [ "state" ], [ "ha" ], [ "greatest" ], [ "total" ], [ "number", "of", "loan" ], [ "bank" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "table" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "state", "NN" ], [ "ha", "NN" ], [ "greatest", "JJS" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "bank", "NN" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(0) Sup(0) A(4) C(3) T(0)" }, { "db_id": "loan_1", "query": "SELECT avg(acc_bal) , acc_type FROM customer WHERE credit_score < 50 GROUP BY acc_type", "query_toks": [ "SELECT", "avg", "(", "acc_bal", ")", ",", "acc_type", "FROM", "customer", "WHERE", "credit_score", "<", "50", "GROUP", "BY", "acc_type" ], "query_toks_no_value": [ "select", "avg", "(", "acc_bal", ")", ",", "acc_type", "from", "customer", "where", "credit_score", "<", "value", "group", "by", "acc_type" ], "question": "For each account type, find the average account balance of customers with credit score lower than 50.", "question_toks": [ "for", "each", "account", "type", ",", "find", "average", "account", "balance", "of", "customer", "with", "credit", "score", "lower", "than", "50", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 11, false ], null ], 50.0, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "For", "each", "account", "type", ",", "find", "the", "average", "account", "balance", "of", "customers", "with", "credit", "score", "lower", "than", "50", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "account", "type" ], [ "," ], [ "find" ], [ "average" ], [ "account", "balance" ], [ "no", "of", "customer" ], [ "with" ], [ "credit", "score" ], [ "lower" ], [ "than" ], [ "50" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "col" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "account", "NN" ], [ "type", "NN" ], [ ",", "," ], [ "find", "VBP" ], [ "average", "JJ" ], [ "account", "NN" ], [ "balance", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "credit", "NN" ], [ "score", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "50", "CD" ], [ ".", "." ] ], "values": [ "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(9) T(1) A(0) C(8) T(1) Filter(4) A(0) C(11) T(1) V(0)" }, { "db_id": "loan_1", "query": "SELECT avg(acc_bal) , acc_type FROM customer WHERE credit_score < 50 GROUP BY acc_type", "query_toks": [ "SELECT", "avg", "(", "acc_bal", ")", ",", "acc_type", "FROM", "customer", "WHERE", "credit_score", "<", "50", "GROUP", "BY", "acc_type" ], "query_toks_no_value": [ "select", "avg", "(", "acc_bal", ")", ",", "acc_type", "from", "customer", "where", "credit_score", "<", "value", "group", "by", "acc_type" ], "question": "What is the average account balance of customers with credit score below 50 for the different account types?", "question_toks": [ "what", "is", "average", "account", "balance", "of", "customer", "with", "credit", "score", "below", "50", "for", "different", "account", "type", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 11, false ], null ], 50.0, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "average", "account", "balance", "of", "customers", "with", "credit", "score", "below", "50", "for", "the", "different", "account", "types", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "account", "balance" ], [ "no", "of", "customer" ], [ "with" ], [ "credit", "score" ], [ "below" ], [ "50" ], [ "for" ], [ "different" ], [ "account", "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "account", "JJ" ], [ "balance", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "credit", "NN" ], [ "score", "NN" ], [ "below", "IN" ], [ "50", "CD" ], [ "for", "IN" ], [ "different", "JJ" ], [ "account", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [ "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(9) T(1) A(0) C(8) T(1) Filter(4) A(0) C(11) T(1) V(0)" }, { "db_id": "loan_1", "query": "SELECT sum(acc_bal) , state FROM customer WHERE credit_score > 100 GROUP BY state", "query_toks": [ "SELECT", "sum", "(", "acc_bal", ")", ",", "state", "FROM", "customer", "WHERE", "credit_score", ">", "100", "GROUP", "BY", "state" ], "query_toks_no_value": [ "select", "sum", "(", "acc_bal", ")", ",", "state", "from", "customer", "where", "credit_score", ">", "value", "group", "by", "state" ], "question": "For each state, find the total account balance of customers whose credit score is above 100.", "question_toks": [ "for", "each", "state", ",", "find", "total", "account", "balance", "of", "customer", "whose", "credit", "score", "is", "above", "100", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 100.0, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "For", "each", "state", ",", "find", "the", "total", "account", "balance", "of", "customers", "whose", "credit", "score", "is", "above", "100", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "state" ], [ "," ], [ "find" ], [ "total" ], [ "account", "balance" ], [ "no", "of", "customer" ], [ "whose" ], [ "credit", "score" ], [ "is" ], [ "above" ], [ "100" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "state", "NN" ], [ ",", "," ], [ "find", "VBP" ], [ "total", "JJ" ], [ "account", "NN" ], [ "balance", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "credit", "NN" ], [ "score", "NN" ], [ "is", "VBZ" ], [ "above", "IN" ], [ "100", "CD" ], [ ".", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(4) C(9) T(1) A(0) C(5) T(1) Filter(5) A(0) C(11) T(1) V(0)" }, { "db_id": "loan_1", "query": "SELECT sum(acc_bal) , state FROM customer WHERE credit_score > 100 GROUP BY state", "query_toks": [ "SELECT", "sum", "(", "acc_bal", ")", ",", "state", "FROM", "customer", "WHERE", "credit_score", ">", "100", "GROUP", "BY", "state" ], "query_toks_no_value": [ "select", "sum", "(", "acc_bal", ")", ",", "state", "from", "customer", "where", "credit_score", ">", "value", "group", "by", "state" ], "question": "What is the total account balance for customers with a credit score of above 100 for the different states?", "question_toks": [ "what", "is", "total", "account", "balance", "for", "customer", "with", "a", "credit", "score", "of", "above", "100", "for", "different", "state", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 100.0, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "total", "account", "balance", "for", "customers", "with", "a", "credit", "score", "of", "above", "100", "for", "the", "different", "states", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "account", "balance" ], [ "for" ], [ "customer" ], [ "with" ], [ "a" ], [ "credit", "score" ], [ "of" ], [ "above" ], [ "100" ], [ "for" ], [ "different" ], [ "state" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "account", "NN" ], [ "balance", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "credit", "NN" ], [ "score", "NN" ], [ "of", "IN" ], [ "above", "IN" ], [ "100", "CD" ], [ "for", "IN" ], [ "different", "JJ" ], [ "state", "NN" ], [ "?", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(4) C(9) T(1) A(0) C(5) T(1) Filter(5) A(0) C(11) T(1) V(0)" }, { "db_id": "loan_1", "query": "SELECT sum(amount) , T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname", "query_toks": [ "SELECT", "sum", "(", "amount", ")", ",", "T1.bname", "FROM", "bank", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "GROUP", "BY", "T1.bname" ], "query_toks_no_value": [ "select", "sum", "(", "amount", ")", ",", "t1", ".", "bname", "from", "bank", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "group", "by", "t1", ".", "bname" ], "question": "Find the total amount of loans offered by each bank branch.", "question_toks": [ "find", "total", "amount", "of", "loan", "offered", "by", "each", "bank", "branch", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "total", "amount", "of", "loans", "offered", "by", "each", "bank", "branch", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "amount" ], [ "number", "of", "loan" ], [ "offered" ], [ "by" ], [ "each" ], [ "bank" ], [ "branch" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "loan", "NN" ], [ "offered", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "bank", "NN" ], [ "branch", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(14) T(2) A(0) C(2) T(0)" }, { "db_id": "loan_1", "query": "SELECT sum(amount) , T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname", "query_toks": [ "SELECT", "sum", "(", "amount", ")", ",", "T1.bname", "FROM", "bank", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "GROUP", "BY", "T1.bname" ], "query_toks_no_value": [ "select", "sum", "(", "amount", ")", ",", "t1", ".", "bname", "from", "bank", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "group", "by", "t1", ".", "bname" ], "question": "What are the names of the different bank branches, and what are their total loan amounts?", "question_toks": [ "what", "are", "name", "of", "different", "bank", "branch", ",", "and", "what", "are", "their", "total", "loan", "amount", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "different", "bank", "branches", ",", "and", "what", "are", "their", "total", "loan", "amounts", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "different" ], [ "bank" ], [ "branch" ], [ "," ], [ "and" ], [ "what" ], [ "are" ], [ "their" ], [ "total" ], [ "loan" ], [ "amount" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "bank", "NN" ], [ "branch", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "what", "WDT" ], [ "are", "VBP" ], [ "their", "PRP$" ], [ "total", "JJ" ], [ "loan", "NN" ], [ "amount", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(14) T(2) A(0) C(2) T(0)" }, { "db_id": "loan_1", "query": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.cust_name", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "GROUP", "BY", "T1.cust_name", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "cust_name", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "group", "by", "t1", ".", "cust_name", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the name of customers who have more than one loan.", "question_toks": [ "find", "name", "of", "customer", "who", "have", "more", "than", "one", "loan", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.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, 16, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "name", "of", "customers", "who", "have", "more", "than", "one", "loan", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "no", "of", "customer" ], [ "who" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "loan" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "loan", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(0) Filter(18) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "loan_1", "query": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.cust_name", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "GROUP", "BY", "T1.cust_name", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "cust_name", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "group", "by", "t1", ".", "cust_name", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the names of customers who have taken out more than one loan?", "question_toks": [ "what", "are", "name", "of", "customer", "who", "have", "taken", "out", "more", "than", "one", "loan", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.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, 16, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "customers", "who", "have", "taken", "out", "more", "than", "one", "loan", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "no", "of", "customer" ], [ "who" ], [ "have" ], [ "taken" ], [ "out" ], [ "more" ], [ "than" ], [ "one" ], [ "loan" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taken", "VBN" ], [ "out", "RP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "loan", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(0) Filter(18) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "loan_1", "query": "SELECT T1.cust_name , T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING sum(T2.amount) > 5000", "query_toks": [ "SELECT", "T1.cust_name", ",", "T1.acc_type", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "GROUP", "BY", "T1.cust_name", "HAVING", "sum", "(", "T2.amount", ")", ">", "5000" ], "query_toks_no_value": [ "select", "t1", ".", "cust_name", ",", "t1", ".", "acc_type", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "group", "by", "t1", ".", "cust_name", "having", "sum", "(", "t2", ".", "amount", ")", ">", "value" ], "question": "Find the name and account balance of the customers who have loans with a total amount of more than 5000.", "question_toks": [ "find", "name", "and", "account", "balance", "of", "customer", "who", "have", "loan", "with", "a", "total", "amount", "of", "more", "than", "5000", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 3, [ 0, [ 4, 18, false ], null ], 5000.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, 16, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "name", "and", "account", "balance", "of", "the", "customers", "who", "have", "loans", "with", "a", "total", "amount", "of", "more", "than", "5000", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "account", "balance" ], [ "no", "of", "customer" ], [ "who" ], [ "have" ], [ "loan" ], [ "with" ], [ "a" ], [ "total" ], [ "amount" ], [ "of" ], [ "more" ], [ "than" ], [ "5000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "account", "NN" ], [ "balance", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "loan", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5000", "CD" ], [ ".", "." ] ], "values": [ "5000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(1) A(0) C(8) T(1) Filter(0) Filter(18) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(5) A(4) C(14) T(2) V(0)" }, { "db_id": "loan_1", "query": "SELECT T1.cust_name , T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING sum(T2.amount) > 5000", "query_toks": [ "SELECT", "T1.cust_name", ",", "T1.acc_type", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "GROUP", "BY", "T1.cust_name", "HAVING", "sum", "(", "T2.amount", ")", ">", "5000" ], "query_toks_no_value": [ "select", "t1", ".", "cust_name", ",", "t1", ".", "acc_type", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "group", "by", "t1", ".", "cust_name", "having", "sum", "(", "t2", ".", "amount", ")", ">", "value" ], "question": "What are the names and account balances for customers who have taken a total amount of more than 5000 in loans?", "question_toks": [ "what", "are", "name", "and", "account", "balance", "for", "customer", "who", "have", "taken", "a", "total", "amount", "of", "more", "than", "5000", "in", "loan", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 3, [ 0, [ 4, 18, false ], null ], 5000.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, 16, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "account", "balances", "for", "customers", "who", "have", "taken", "a", "total", "amount", "of", "more", "than", "5000", "in", "loans", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "account", "balance" ], [ "for" ], [ "customer" ], [ "who" ], [ "have" ], [ "taken" ], [ "a" ], [ "total" ], [ "amount" ], [ "of" ], [ "more" ], [ "than" ], [ "5000" ], [ "in" ], [ "loan" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "account", "NN" ], [ "balance", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taken", "VBN" ], [ "a", "DT" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5000", "CD" ], [ "in", "IN" ], [ "loan", "NN" ], [ "?", "." ] ], "values": [ "5000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(1) A(0) C(8) T(1) Filter(0) Filter(18) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(5) A(4) C(14) T(2) V(0)" }, { "db_id": "loan_1", "query": "SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname ORDER BY sum(T2.amount) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.bname", "FROM", "bank", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "GROUP", "BY", "T1.bname", "ORDER", "BY", "sum", "(", "T2.amount", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "bname", "from", "bank", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "group", "by", "t1", ".", "bname", "order", "by", "sum", "(", "t2", ".", "amount", ")", "desc", "limit", "value" ], "question": "Find the name of bank branch that provided the greatest total amount of loans.", "question_toks": [ "find", "name", "of", "bank", "branch", "that", "provided", "greatest", "total", "amount", "of", "loan", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "name", "of", "bank", "branch", "that", "provided", "the", "greatest", "total", "amount", "of", "loans", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "bank" ], [ "branch" ], [ "that" ], [ "provided" ], [ "greatest" ], [ "total" ], [ "amount" ], [ "number", "of", "loan" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "bank", "NN" ], [ "branch", "NN" ], [ "that", "WDT" ], [ "provided", "VBD" ], [ "greatest", "JJS" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "loan", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(4) C(14) T(2)" }, { "db_id": "loan_1", "query": "SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname ORDER BY sum(T2.amount) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.bname", "FROM", "bank", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "GROUP", "BY", "T1.bname", "ORDER", "BY", "sum", "(", "T2.amount", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "bname", "from", "bank", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "group", "by", "t1", ".", "bname", "order", "by", "sum", "(", "t2", ".", "amount", ")", "desc", "limit", "value" ], "question": "What is the name of the bank branch that has lent the greatest amount?", "question_toks": [ "what", "is", "name", "of", "bank", "branch", "that", "ha", "lent", "greatest", "amount", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "bank", "branch", "that", "has", "lent", "the", "greatest", "amount", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "bank" ], [ "branch" ], [ "that" ], [ "ha" ], [ "lent" ], [ "greatest" ], [ "amount" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "bank", "NN" ], [ "branch", "NN" ], [ "that", "WDT" ], [ "ha", "VBD" ], [ "lent", "JJ" ], [ "greatest", "JJS" ], [ "amount", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(4) C(14) T(2)" }, { "db_id": "loan_1", "query": "SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 GROUP BY T2.bname ORDER BY sum(T1.amount) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.bname", "FROM", "loan", "AS", "T1", "JOIN", "bank", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "JOIN", "customer", "AS", "T3", "ON", "T1.cust_id", "=", "T3.cust_id", "WHERE", "T3.credit_score", "<", "100", "GROUP", "BY", "T2.bname", "ORDER", "BY", "sum", "(", "T1.amount", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "bname", "from", "loan", "as", "t1", "join", "bank", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "join", "customer", "as", "t3", "on", "t1", ".", "cust_id", "=", "t3", ".", "cust_id", "where", "t3", ".", "credit_score", "<", "value", "group", "by", "t2", ".", "bname", "order", "by", "sum", "(", "t1", ".", "amount", ")", "desc", "limit", "value" ], "question": "Find the name of bank branch that provided the greatest total amount of loans to customers with credit score is less than 100.", "question_toks": [ "find", "name", "of", "bank", "branch", "that", "provided", "greatest", "total", "amount", "of", "loan", "to", "customer", "with", "credit", "score", "is", "le", "than", "100", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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, [ 4, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 11, false ], null ], 100.0, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "name", "of", "bank", "branch", "that", "provided", "the", "greatest", "total", "amount", "of", "loans", "to", "customers", "with", "credit", "score", "is", "less", "than", "100", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "bank" ], [ "branch" ], [ "that" ], [ "provided" ], [ "greatest" ], [ "total" ], [ "amount" ], [ "number", "of", "loan" ], [ "to" ], [ "customer" ], [ "with" ], [ "credit", "score" ], [ "is" ], [ "le" ], [ "than" ], [ "100" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "bank", "NN" ], [ "branch", "NN" ], [ "that", "WDT" ], [ "provided", "VBD" ], [ "greatest", "JJS" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "loan", "NN" ], [ "to", "TO" ], [ "customer", "NN" ], [ "with", "IN" ], [ "credit", "NN" ], [ "score", "NN" ], [ "is", "VBZ" ], [ "le", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ ".", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(4) C(14) T(2) Filter(4) A(0) C(11) T(1) V(0)" }, { "db_id": "loan_1", "query": "SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 GROUP BY T2.bname ORDER BY sum(T1.amount) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.bname", "FROM", "loan", "AS", "T1", "JOIN", "bank", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "JOIN", "customer", "AS", "T3", "ON", "T1.cust_id", "=", "T3.cust_id", "WHERE", "T3.credit_score", "<", "100", "GROUP", "BY", "T2.bname", "ORDER", "BY", "sum", "(", "T1.amount", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "bname", "from", "loan", "as", "t1", "join", "bank", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "join", "customer", "as", "t3", "on", "t1", ".", "cust_id", "=", "t3", ".", "cust_id", "where", "t3", ".", "credit_score", "<", "value", "group", "by", "t2", ".", "bname", "order", "by", "sum", "(", "t1", ".", "amount", ")", "desc", "limit", "value" ], "question": "What is the name of the bank branch that has lended the largest total amount in loans, specifically to customers with credit scores below 100?", "question_toks": [ "what", "is", "name", "of", "bank", "branch", "that", "ha", "lended", "largest", "total", "amount", "in", "loan", ",", "specifically", "to", "customer", "with", "credit", "score", "below", "100", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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, [ 4, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 11, false ], null ], 100.0, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "bank", "branch", "that", "has", "lended", "the", "largest", "total", "amount", "in", "loans", ",", "specifically", "to", "customers", "with", "credit", "scores", "below", "100", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "bank" ], [ "branch" ], [ "that" ], [ "ha" ], [ "lended" ], [ "largest" ], [ "total" ], [ "amount" ], [ "in" ], [ "loan" ], [ "," ], [ "specifically" ], [ "to" ], [ "customer" ], [ "with" ], [ "credit", "score" ], [ "below" ], [ "100" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "bank", "NN" ], [ "branch", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "lended", "VBN" ], [ "largest", "JJS" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "in", "IN" ], [ "loan", "NN" ], [ ",", "," ], [ "specifically", "RB" ], [ "to", "TO" ], [ "customer", "NN" ], [ "with", "IN" ], [ "credit", "NN" ], [ "score", "NN" ], [ "below", "IN" ], [ "100", "CD" ], [ "?", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(4) C(14) T(2) Filter(4) A(0) C(11) T(1) V(0)" }, { "db_id": "loan_1", "query": "SELECT DISTINCT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id", "query_toks": [ "SELECT", "DISTINCT", "T1.bname", "FROM", "bank", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "bname", "from", "bank", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id" ], "question": "Find the name of bank branches that provided some loans.", "question_toks": [ "find", "name", "of", "bank", "branch", "that", "provided", "some", "loan", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, 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, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "name", "of", "bank", "branches", "that", "provided", "some", "loans", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "bank" ], [ "branch" ], [ "that" ], [ "provided" ], [ "some" ], [ "loan" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "bank", "NN" ], [ "branch", "NN" ], [ "that", "WDT" ], [ "provided", "VBD" ], [ "some", "DT" ], [ "loan", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "loan_1", "query": "SELECT DISTINCT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id", "query_toks": [ "SELECT", "DISTINCT", "T1.bname", "FROM", "bank", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "bname", "from", "bank", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id" ], "question": "What are the names of the different banks that have provided loans?", "question_toks": [ "what", "are", "name", "of", "different", "bank", "that", "have", "provided", "loan", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, 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, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "different", "banks", "that", "have", "provided", "loans", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "different" ], [ "bank" ], [ "that" ], [ "have" ], [ "provided" ], [ "loan" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "bank", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "provided", "VBN" ], [ "loan", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "loan_1", "query": "SELECT DISTINCT T1.cust_name , T1.credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id", "query_toks": [ "SELECT", "DISTINCT", "T1.cust_name", ",", "T1.credit_score", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "cust_name", ",", "t1", ".", "credit_score", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id" ], "question": "Find the name and credit score of the customers who have some loans.", "question_toks": [ "find", "name", "and", "credit", "score", "of", "customer", "who", "have", "some", "loan", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 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, 16, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "name", "and", "credit", "score", "of", "the", "customers", "who", "have", "some", "loans", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "credit", "score" ], [ "no", "of", "customer" ], [ "who" ], [ "have" ], [ "some" ], [ "loan" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "credit", "NN" ], [ "score", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "some", "DT" ], [ "loan", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(7) T(1) A(0) C(11) T(1) Filter(18) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "loan_1", "query": "SELECT DISTINCT T1.cust_name , T1.credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id", "query_toks": [ "SELECT", "DISTINCT", "T1.cust_name", ",", "T1.credit_score", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "cust_name", ",", "t1", ".", "credit_score", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id" ], "question": "What are the different names and credit scores of customers who have taken a loan?", "question_toks": [ "what", "are", "different", "name", "and", "credit", "score", "of", "customer", "who", "have", "taken", "a", "loan", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 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, 16, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "different", "names", "and", "credit", "scores", "of", "customers", "who", "have", "taken", "a", "loan", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "name" ], [ "and" ], [ "credit", "score" ], [ "no", "of", "customer" ], [ "who" ], [ "have" ], [ "taken" ], [ "a" ], [ "loan" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "credit", "NN" ], [ "score", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taken", "VBN" ], [ "a", "DT" ], [ "loan", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(7) T(1) A(0) C(11) T(1) Filter(18) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "loan_1", "query": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE amount > 3000", "query_toks": [ "SELECT", "T1.cust_name", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "WHERE", "amount", ">", "3000" ], "query_toks_no_value": [ "select", "t1", ".", "cust_name", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "where", "amount", ">", "value" ], "question": "Find the the name of the customers who have a loan with amount more than 3000.", "question_toks": [ "find", "name", "of", "customer", "who", "have", "a", "loan", "with", "amount", "more", "than", "3000", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 16, 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, 3, [ 0, [ 0, 18, false ], null ], 3000.0, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "the", "name", "of", "the", "customers", "who", "have", "a", "loan", "with", "amount", "more", "than", "3000", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "no", "of", "customer" ], [ "who" ], [ "have" ], [ "a" ], [ "loan" ], [ "with" ], [ "amount" ], [ "more" ], [ "than" ], [ "3000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "loan", "NN" ], [ "with", "IN" ], [ "amount", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3000", "CD" ], [ ".", "." ] ], "values": [ "3000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(5) A(0) C(14) T(2) V(0)" }, { "db_id": "loan_1", "query": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE amount > 3000", "query_toks": [ "SELECT", "T1.cust_name", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "WHERE", "amount", ">", "3000" ], "query_toks_no_value": [ "select", "t1", ".", "cust_name", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "where", "amount", ">", "value" ], "question": "What are the names of customers who have a loan of more than 3000 in amount?", "question_toks": [ "what", "are", "name", "of", "customer", "who", "have", "a", "loan", "of", "more", "than", "3000", "in", "amount", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 16, 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, 3, [ 0, [ 0, 18, false ], null ], 3000.0, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "customers", "who", "have", "a", "loan", "of", "more", "than", "3000", "in", "amount", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "no", "of", "customer" ], [ "who" ], [ "have" ], [ "a" ], [ "loan" ], [ "of" ], [ "more" ], [ "than" ], [ "3000" ], [ "in" ], [ "amount" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "loan", "NN" ], [ "of", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3000", "CD" ], [ "in", "IN" ], [ "amount", "NN" ], [ "?", "." ] ], "values": [ "3000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(5) A(0) C(14) T(2) V(0)" }, { "db_id": "loan_1", "query": "SELECT T1.bname , T1.city FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T2.loan_type = 'Business'", "query_toks": [ "SELECT", "T1.bname", ",", "T1.city", "FROM", "bank", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "WHERE", "T2.loan_type", "=", "'Business", "'" ], "query_toks_no_value": [ "select", "t1", ".", "bname", ",", "t1", ".", "city", "from", "bank", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "where", "t2", ".", "loan_type", "=", "value" ], "question": "Find the city and name of bank branches that provide business loans.", "question_toks": [ "find", "city", "and", "name", "of", "bank", "branch", "that", "provide", "business", "loan", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, 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, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Business\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "city", "and", "name", "of", "bank", "branches", "that", "provide", "business", "loans", "." ], "question_arg": [ [ "find" ], [ "city" ], [ "and" ], [ "name" ], [ "of" ], [ "bank" ], [ "branch" ], [ "that" ], [ "provide" ], [ "business" ], [ "loan" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "city", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "bank", "NN" ], [ "branch", "NN" ], [ "that", "WDT" ], [ "provide", "VBP" ], [ "business", "NN" ], [ "loan", "NN" ], [ ".", "." ] ], "values": [ "Business" ], "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(13) T(2) V(0)" }, { "db_id": "loan_1", "query": "SELECT T1.bname , T1.city FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T2.loan_type = 'Business'", "query_toks": [ "SELECT", "T1.bname", ",", "T1.city", "FROM", "bank", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "WHERE", "T2.loan_type", "=", "'Business", "'" ], "query_toks_no_value": [ "select", "t1", ".", "bname", ",", "t1", ".", "city", "from", "bank", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "where", "t2", ".", "loan_type", "=", "value" ], "question": "What are the names and cities of bank branches that offer loans for business?", "question_toks": [ "what", "are", "name", "and", "city", "of", "bank", "branch", "that", "offer", "loan", "for", "business", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, 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, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Business\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "cities", "of", "bank", "branches", "that", "offer", "loans", "for", "business", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "city" ], [ "of" ], [ "bank" ], [ "branch" ], [ "that" ], [ "offer" ], [ "loan" ], [ "for" ], [ "business" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "city", "NN" ], [ "of", "IN" ], [ "bank", "NN" ], [ "branch", "NN" ], [ "that", "WDT" ], [ "offer", "VBP" ], [ "loan", "NN" ], [ "for", "IN" ], [ "business", "NN" ], [ "?", "." ] ], "values": [ "Business" ], "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(13) T(2) V(0)" }, { "db_id": "loan_1", "query": "SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100", "query_toks": [ "SELECT", "T2.bname", "FROM", "loan", "AS", "T1", "JOIN", "bank", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "JOIN", "customer", "AS", "T3", "ON", "T1.cust_id", "=", "T3.cust_id", "WHERE", "T3.credit_score", "<", "100" ], "query_toks_no_value": [ "select", "t2", ".", "bname", "from", "loan", "as", "t1", "join", "bank", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "join", "customer", "as", "t3", "on", "t1", ".", "cust_id", "=", "t3", ".", "cust_id", "where", "t3", ".", "credit_score", "<", "value" ], "question": "Find the names of bank branches that have provided a loan to any customer whose credit score is below 100.", "question_toks": [ "find", "name", "of", "bank", "branch", "that", "have", "provided", "a", "loan", "to", "any", "customer", "whose", "credit", "score", "is", "below", "100", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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, 17, 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, 11, false ], null ], 100.0, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "names", "of", "bank", "branches", "that", "have", "provided", "a", "loan", "to", "any", "customer", "whose", "credit", "score", "is", "below", "100", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "bank" ], [ "branch" ], [ "that" ], [ "have" ], [ "provided" ], [ "a" ], [ "loan" ], [ "to" ], [ "any" ], [ "customer" ], [ "whose" ], [ "credit", "score" ], [ "is" ], [ "below" ], [ "100" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "bank", "NN" ], [ "branch", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "provided", "VBN" ], [ "a", "DT" ], [ "loan", "NN" ], [ "to", "TO" ], [ "any", "DT" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "credit", "NN" ], [ "score", "NN" ], [ "is", "VBZ" ], [ "below", "IN" ], [ "100", "CD" ], [ ".", "." ] ], "values": [ "100" ], "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(2) Filter(4) A(0) C(11) T(1) V(0)" }, { "db_id": "loan_1", "query": "SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100", "query_toks": [ "SELECT", "T2.bname", "FROM", "loan", "AS", "T1", "JOIN", "bank", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "JOIN", "customer", "AS", "T3", "ON", "T1.cust_id", "=", "T3.cust_id", "WHERE", "T3.credit_score", "<", "100" ], "query_toks_no_value": [ "select", "t2", ".", "bname", "from", "loan", "as", "t1", "join", "bank", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "join", "customer", "as", "t3", "on", "t1", ".", "cust_id", "=", "t3", ".", "cust_id", "where", "t3", ".", "credit_score", "<", "value" ], "question": "What are the names of banks that have loaned money to customers with credit scores below 100?", "question_toks": [ "what", "are", "name", "of", "bank", "that", "have", "loaned", "money", "to", "customer", "with", "credit", "score", "below", "100", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, 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, 17, 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, 11, false ], null ], 100.0, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "banks", "that", "have", "loaned", "money", "to", "customers", "with", "credit", "scores", "below", "100", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "bank" ], [ "that" ], [ "have" ], [ "loaned" ], [ "money" ], [ "to" ], [ "customer" ], [ "with" ], [ "credit", "score" ], [ "below" ], [ "100" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "bank", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "loaned", "VBN" ], [ "money", "NN" ], [ "to", "TO" ], [ "customer", "NN" ], [ "with", "IN" ], [ "credit", "NN" ], [ "score", "NN" ], [ "below", "IN" ], [ "100", "CD" ], [ "?", "." ] ], "values": [ "100" ], "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(2) Filter(4) A(0) C(11) T(1) V(0)" }, { "db_id": "loan_1", "query": "SELECT sum(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.state = 'New York'", "query_toks": [ "SELECT", "sum", "(", "T2.amount", ")", "FROM", "bank", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "WHERE", "T1.state", "=", "'New", "York", "'" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "amount", ")", "from", "bank", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "where", "t1", ".", "state", "=", "value" ], "question": "Find the total amount of loans provided by bank branches in the state of New York.", "question_toks": [ "find", "total", "amount", "of", "loan", "provided", "by", "bank", "branch", "in", "state", "of", "new", "york", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"New York\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "total", "amount", "of", "loans", "provided", "by", "bank", "branches", "in", "the", "state", "of", "New", "York", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "amount" ], [ "number", "of", "loan" ], [ "provided" ], [ "by" ], [ "bank" ], [ "branch" ], [ "in" ], [ "state" ], [ "of" ], [ "new" ], [ "york" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "loan", "NN" ], [ "provided", "VBN" ], [ "by", "IN" ], [ "bank", "NN" ], [ "branch", "NN" ], [ "in", "IN" ], [ "state", "NN" ], [ "of", "IN" ], [ "new", "JJ" ], [ "york", "NN" ], [ ".", "." ] ], "values": [ "New York" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(14) T(2) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "loan_1", "query": "SELECT sum(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.state = 'New York'", "query_toks": [ "SELECT", "sum", "(", "T2.amount", ")", "FROM", "bank", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "WHERE", "T1.state", "=", "'New", "York", "'" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "amount", ")", "from", "bank", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "where", "t1", ".", "state", "=", "value" ], "question": "What is the total amount of money loaned by banks in New York state?", "question_toks": [ "what", "is", "total", "amount", "of", "money", "loaned", "by", "bank", "in", "new", "york", "state", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"New York\"", null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "total", "amount", "of", "money", "loaned", "by", "banks", "in", "New", "York", "state", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "amount" ], [ "of" ], [ "money" ], [ "loaned" ], [ "by" ], [ "bank" ], [ "in" ], [ "new" ], [ "york" ], [ "state" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "money", "NN" ], [ "loaned", "VBN" ], [ "by", "IN" ], [ "bank", "NN" ], [ "in", "IN" ], [ "new", "JJ" ], [ "york", "NN" ], [ "state", "NN" ], [ "?", "." ] ], "values": [ "New York" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(14) T(2) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "loan_1", "query": "SELECT avg(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan)", "query_toks": [ "SELECT", "avg", "(", "credit_score", ")", "FROM", "customer", "WHERE", "cust_id", "IN", "(", "SELECT", "cust_id", "FROM", "loan", ")" ], "query_toks_no_value": [ "select", "avg", "(", "credit_score", ")", "from", "customer", "where", "cust_id", "in", "(", "select", "cust_id", "from", "loan", ")" ], "question": "Find the average credit score of the customers who have some loan.", "question_toks": [ "find", "average", "credit", "score", "of", "customer", "who", "have", "some", "loan", "." ], "sql": { "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": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "average", "credit", "score", "of", "the", "customers", "who", "have", "some", "loan", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "credit", "score" ], [ "no", "of", "customer" ], [ "who" ], [ "have" ], [ "some" ], [ "loan" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "credit", "NN" ], [ "score", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "some", "DT" ], [ "loan", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(11) T(1) Filter(18) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "loan_1", "query": "SELECT avg(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan)", "query_toks": [ "SELECT", "avg", "(", "credit_score", ")", "FROM", "customer", "WHERE", "cust_id", "IN", "(", "SELECT", "cust_id", "FROM", "loan", ")" ], "query_toks_no_value": [ "select", "avg", "(", "credit_score", ")", "from", "customer", "where", "cust_id", "in", "(", "select", "cust_id", "from", "loan", ")" ], "question": "What is the average credit score for customers who have taken a loan?", "question_toks": [ "what", "is", "average", "credit", "score", "for", "customer", "who", "have", "taken", "a", "loan", "?" ], "sql": { "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": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "average", "credit", "score", "for", "customers", "who", "have", "taken", "a", "loan", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "credit", "score" ], [ "for" ], [ "customer" ], [ "who" ], [ "have" ], [ "taken" ], [ "a" ], [ "loan" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "credit", "NN" ], [ "score", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taken", "VBN" ], [ "a", "DT" ], [ "loan", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(11) T(1) Filter(18) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "loan_1", "query": "SELECT avg(credit_score) FROM customer WHERE cust_id NOT IN (SELECT cust_id FROM loan)", "query_toks": [ "SELECT", "avg", "(", "credit_score", ")", "FROM", "customer", "WHERE", "cust_id", "NOT", "IN", "(", "SELECT", "cust_id", "FROM", "loan", ")" ], "query_toks_no_value": [ "select", "avg", "(", "credit_score", ")", "from", "customer", "where", "cust_id", "not", "in", "(", "select", "cust_id", "from", "loan", ")" ], "question": "Find the average credit score of the customers who do not have any loan.", "question_toks": [ "find", "average", "credit", "score", "of", "customer", "who", "do", "not", "have", "any", "loan", "." ], "sql": { "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": [ [ true, 8, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "Find", "the", "average", "credit", "score", "of", "the", "customers", "who", "do", "not", "have", "any", "loan", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "credit", "score" ], [ "no", "of", "customer" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "loan" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "credit", "NN" ], [ "score", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "loan", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(11) T(1) Filter(19) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "loan_1", "query": "SELECT avg(credit_score) FROM customer WHERE cust_id NOT IN (SELECT cust_id FROM loan)", "query_toks": [ "SELECT", "avg", "(", "credit_score", ")", "FROM", "customer", "WHERE", "cust_id", "NOT", "IN", "(", "SELECT", "cust_id", "FROM", "loan", ")" ], "query_toks_no_value": [ "select", "avg", "(", "credit_score", ")", "from", "customer", "where", "cust_id", "not", "in", "(", "select", "cust_id", "from", "loan", ")" ], "question": "What is the average credit score for customers who have never taken a loan?", "question_toks": [ "what", "is", "average", "credit", "score", "for", "customer", "who", "have", "never", "taken", "a", "loan", "?" ], "sql": { "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": [ [ true, 8, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "branch id", "state", "loan id", "loan type", "customer id", "branch id", "amount" ], "table_names": [ "bank", "customer", "loan" ], "col_set": [ "*", "branch id", "bname", "no of customers", "city", "state", "customer id", "customer name", "account type", "account balance", "number of loans", "credit score", "loan id", "loan type", "amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "17": 1, "6": 6, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "average", "credit", "score", "for", "customers", "who", "have", "never", "taken", "a", "loan", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "credit", "score" ], [ "for" ], [ "customer" ], [ "who" ], [ "have" ], [ "never" ], [ "taken" ], [ "a" ], [ "loan" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "credit", "NN" ], [ "score", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "never", "RB" ], [ "taken", "VBN" ], [ "a", "DT" ], [ "loan", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(11) T(1) Filter(19) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "behavior_monitoring", "query": "SELECT count(*) FROM ASSESSMENT_NOTES", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ASSESSMENT_NOTES" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "assessment_notes" ], "question": "How many assessment notes are there in total?", "question_toks": [ "how", "many", "assessment", "note", "are", "there", "in", "total", "?" ], "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": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "How", "many", "assessment", "notes", "are", "there", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "assessment", "note" ], [ "are" ], [ "there" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "assessment", "JJ" ], [ "note", "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(6)" }, { "db_id": "behavior_monitoring", "query": "SELECT date_of_notes FROM Assessment_Notes", "query_toks": [ "SELECT", "date_of_notes", "FROM", "Assessment_Notes" ], "query_toks_no_value": [ "select", "date_of_notes", "from", "assessment_notes" ], "question": "What are the dates of the assessment notes?", "question_toks": [ "what", "are", "date", "of", "assessment", "note", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "dates", "of", "the", "assessment", "notes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date", "of", "note" ], [ "assessment", "note" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "of", "IN" ], [ "assessment", "JJ" ], [ "note", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(29) T(6)" }, { "db_id": "behavior_monitoring", "query": "SELECT count(*) FROM ADDRESSES WHERE zip_postcode = \"197\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ADDRESSES", "WHERE", "zip_postcode", "=", "``", "197", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "addresses", "where", "zip_postcode", "=", "value" ], "question": "How many addresses have zip code 197?", "question_toks": [ "how", "many", "address", "have", "zip", "code", "197", "?" ], "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, 12, false ], null ], "\"197\"", null ] ] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "How", "many", "addresses", "have", "zip", "code", "197", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "address" ], [ "have" ], [ "zip" ], [ "code" ], [ "197" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "address", "NN" ], [ "have", "VBP" ], [ "zip", "VBN" ], [ "code", "NN" ], [ "197", "CD" ], [ "?", "." ] ], "values": [ "197" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(2) A(0) C(12) T(3) V(0)" }, { "db_id": "behavior_monitoring", "query": "SELECT count(DISTINCT incident_type_code) FROM Behavior_Incident", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "incident_type_code", ")", "FROM", "Behavior_Incident" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "incident_type_code", ")", "from", "behavior_incident" ], "question": "How many distinct incident type codes are there?", "question_toks": [ "how", "many", "distinct", "incident", "type", "code", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 42, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "How", "many", "distinct", "incident", "type", "codes", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "incident", "type", "code" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "incident", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(5) T(7)" }, { "db_id": "behavior_monitoring", "query": "SELECT DISTINCT detention_type_code FROM Detention", "query_toks": [ "SELECT", "DISTINCT", "detention_type_code", "FROM", "Detention" ], "query_toks_no_value": [ "select", "distinct", "detention_type_code", "from", "detention" ], "question": "Return all distinct detention type codes.", "question_toks": [ "return", "all", "distinct", "detention", "type", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "Return", "all", "distinct", "detention", "type", "codes", "." ], "question_arg": [ [ "return" ], [ "all" ], [ "distinct" ], [ "detention", "type", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "detention", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(3) T(8)" }, { "db_id": "behavior_monitoring", "query": "SELECT date_incident_start , date_incident_end FROM Behavior_Incident WHERE incident_type_code = \"NOISE\"", "query_toks": [ "SELECT", "date_incident_start", ",", "date_incident_end", "FROM", "Behavior_Incident", "WHERE", "incident_type_code", "=", "``", "NOISE", "''" ], "query_toks_no_value": [ "select", "date_incident_start", ",", "date_incident_end", "from", "behavior_incident", "where", "incident_type_code", "=", "value" ], "question": "What are the start and end dates for incidents with incident type code \"NOISE\"?", "question_toks": [ "what", "are", "start", "and", "end", "date", "for", "incident", "with", "incident", "type", "code", "'", "noise", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ], [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 42, false ], null ], "\"NOISE\"", null ] ] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "start", "and", "end", "dates", "for", "incidents", "with", "incident", "type", "code", "``", "NOISE", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "start" ], [ "and" ], [ "date", "incident", "end" ], [ "for" ], [ "incident" ], [ "with" ], [ "incident", "type", "code" ], [ "'" ], [ "noise" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "start", "JJ" ], [ "and", "CC" ], [ "end", "JJ" ], [ "date", "NN" ], [ "for", "IN" ], [ "incident", "NN" ], [ "with", "IN" ], [ "incident", "JJ" ], [ "type", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "noise", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "NOISE", "Noise" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(32) T(7) A(0) C(33) T(7) Filter(2) A(0) C(5) T(7) V(0)" }, { "db_id": "behavior_monitoring", "query": "SELECT detention_summary FROM Detention", "query_toks": [ "SELECT", "detention_summary", "FROM", "Detention" ], "query_toks_no_value": [ "select", "detention_summary", "from", "detention" ], "question": "Return all detention summaries.", "question_toks": [ "return", "all", "detention", "summary", "." ], "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": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "Return", "all", "detention", "summaries", "." ], "question_arg": [ [ "return" ], [ "all" ], [ "detention", "summary" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "all", "DT" ], [ "detention", "NN" ], [ "summary", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(39) T(8)" }, { "db_id": "behavior_monitoring", "query": "SELECT cell_mobile_number , email_address FROM STUDENTS", "query_toks": [ "SELECT", "cell_mobile_number", ",", "email_address", "FROM", "STUDENTS" ], "query_toks_no_value": [ "select", "cell_mobile_number", ",", "email_address", "from", "students" ], "question": "Return the cell phone number and email address for all students.", "question_toks": [ "return", "cell", "phone", "number", "and", "email", "address", "for", "all", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "Return", "the", "cell", "phone", "number", "and", "email", "address", "for", "all", "students", "." ], "question_arg": [ [ "return" ], [ "cell" ], [ "phone" ], [ "number" ], [ "and" ], [ "email", "address" ], [ "for" ], [ "all" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "cell", "NN" ], [ "phone", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "email", "JJ" ], [ "address", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(20) T(4) A(0) C(21) T(4)" }, { "db_id": "behavior_monitoring", "query": "SELECT email_address FROM Students WHERE first_name = \"Emma\" AND last_name = \"Rohan\"", "query_toks": [ "SELECT", "email_address", "FROM", "Students", "WHERE", "first_name", "=", "``", "Emma", "''", "AND", "last_name", "=", "``", "Rohan", "''" ], "query_toks_no_value": [ "select", "email_address", "from", "students", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "What is the email of the student with first name \"Emma\" and last name \"Rohan\"?", "question_toks": [ "what", "is", "email", "of", "student", "with", "first", "name", "'", "emma", "'", "and", "last", "name", "'", "rohan", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Emma\"", null ], "and", [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Rohan\"", null ] ] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "email", "of", "the", "student", "with", "first", "name", "``", "Emma", "''", "and", "last", "name", "``", "Rohan", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "email" ], [ "of" ], [ "student" ], [ "with" ], [ "first", "name" ], [ "'" ], [ "emma" ], [ "'" ], [ "and" ], [ "last", "name" ], [ "'" ], [ "rohan" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "email", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "emma", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "rohan", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "1", "Emma", "Rohan" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(21) T(4) Filter(0) Filter(2) A(0) C(17) T(4) V(1) Filter(2) A(0) C(19) T(4) V(2)" }, { "db_id": "behavior_monitoring", "query": "SELECT count(DISTINCT student_id) FROM Students_in_Detention", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "student_id", ")", "FROM", "Students_in_Detention" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "student_id", ")", "from", "students_in_detention" ], "question": "How many distinct students have been in detention?", "question_toks": [ "how", "many", "distinct", "student", "have", "been", "in", "detention", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 62, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "How", "many", "distinct", "students", "have", "been", "in", "detention", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "student" ], [ "have" ], [ "been" ], [ "in" ], [ "detention" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "student", "NN" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "in", "IN" ], [ "detention", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(16) T(10)" }, { "db_id": "behavior_monitoring", "query": "SELECT gender FROM TEACHERS WHERE last_name = \"Medhurst\"", "query_toks": [ "SELECT", "gender", "FROM", "TEACHERS", "WHERE", "last_name", "=", "``", "Medhurst", "''" ], "query_toks_no_value": [ "select", "gender", "from", "teachers", "where", "last_name", "=", "value" ], "question": "What is the gender of the teacher with last name \"Medhurst\"?", "question_toks": [ "what", "is", "gender", "of", "teacher", "with", "last", "name", "'", "medhurst", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "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 ], "\"Medhurst\"", null ] ] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "gender", "of", "the", "teacher", "with", "last", "name", "``", "Medhurst", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "gender" ], [ "of" ], [ "teacher" ], [ "with" ], [ "last", "name" ], [ "'" ], [ "medhurst" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "gender", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "POS" ], [ "medhurst", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Medhurst" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(26) T(5) Filter(2) A(0) C(19) T(5) V(0)" }, { "db_id": "behavior_monitoring", "query": "SELECT incident_type_description FROM Ref_Incident_Type WHERE incident_type_code = \"VIOLENCE\"", "query_toks": [ "SELECT", "incident_type_description", "FROM", "Ref_Incident_Type", "WHERE", "incident_type_code", "=", "``", "VIOLENCE", "''" ], "query_toks_no_value": [ "select", "incident_type_description", "from", "ref_incident_type", "where", "incident_type_code", "=", "value" ], "question": "What is the incident type description for the incident type with code \"VIOLENCE\"?", "question_toks": [ "what", "is", "incident", "type", "description", "for", "incident", "type", "with", "code", "'", "violence", "'", "?" ], "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, 5, false ], null ], "\"VIOLENCE\"", null ] ] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "incident", "type", "description", "for", "the", "incident", "type", "with", "code", "``", "VIOLENCE", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "incident", "type", "description" ], [ "for" ], [ "incident" ], [ "type" ], [ "with" ], [ "code" ], [ "'" ], [ "violence" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "incident", "JJ" ], [ "type", "JJ" ], [ "description", "NN" ], [ "for", "IN" ], [ "incident", "JJ" ], [ "type", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "'", "''" ], [ "violence", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "VIOLENCE", "Violence" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(2) A(0) C(5) T(2) V(0)" }, { "db_id": "behavior_monitoring", "query": "SELECT max(monthly_rental) , min(monthly_rental) FROM Student_Addresses", "query_toks": [ "SELECT", "max", "(", "monthly_rental", ")", ",", "min", "(", "monthly_rental", ")", "FROM", "Student_Addresses" ], "query_toks_no_value": [ "select", "max", "(", "monthly_rental", ")", ",", "min", "(", "monthly_rental", ")", "from", "student_addresses" ], "question": "Find the maximum and minimum monthly rental for all student addresses.", "question_toks": [ "find", "maximum", "and", "minimum", "monthly", "rental", "for", "all", "student", "address", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 60, false ], null ] ], [ 2, [ 0, [ 0, 60, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "Find", "the", "maximum", "and", "minimum", "monthly", "rental", "for", "all", "student", "addresses", "." ], "question_arg": [ [ "find" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "monthly", "rental" ], [ "for" ], [ "all" ], [ "student", "address" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "monthly", "JJ" ], [ "rental", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "address", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(42) T(9) A(2) C(42) T(9)" }, { "db_id": "behavior_monitoring", "query": "SELECT first_name FROM Teachers WHERE email_address LIKE '%man%'", "query_toks": [ "SELECT", "first_name", "FROM", "Teachers", "WHERE", "email_address", "LIKE", "'", "%", "man", "%", "'" ], "query_toks_no_value": [ "select", "first_name", "from", "teachers", "where", "email_address", "like", "value" ], "question": "Find the first names of teachers whose email address contains the word \"man\".", "question_toks": [ "find", "first", "name", "of", "teacher", "whose", "email", "address", "contains", "word", "'", "man", "'", "." ], "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": null, "where": [ [ false, 9, [ 0, [ 0, 33, false ], null ], "\"%man%\"", null ] ] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "Find", "the", "first", "names", "of", "teachers", "whose", "email", "address", "contains", "the", "word", "``", "man", "''", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "teacher" ], [ "whose" ], [ "email", "address" ], [ "contains" ], [ "word" ], [ "'" ], [ "man" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "whose", "WP$" ], [ "email", "NN" ], [ "address", "NN" ], [ "contains", "VBZ" ], [ "word", "NN" ], [ "'", "''" ], [ "man", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Ward", "man", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(17) T(5) Filter(9) A(0) C(21) T(5) V(1)" }, { "db_id": "behavior_monitoring", "query": "SELECT * FROM Assessment_Notes ORDER BY date_of_notes ASC", "query_toks": [ "SELECT", "*", "FROM", "Assessment_Notes", "ORDER", "BY", "date_of_notes", "ASC" ], "query_toks_no_value": [ "select", "*", "from", "assessment_notes", "order", "by", "date_of_notes", "asc" ], "question": "List all information about the assessment notes sorted by date in ascending order.", "question_toks": [ "list", "all", "information", "about", "assessment", "note", "sorted", "by", "date", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 38, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "List", "all", "information", "about", "the", "assessment", "notes", "sorted", "by", "date", "in", "ascending", "order", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "information" ], [ "about" ], [ "assessment", "note" ], [ "sorted" ], [ "by" ], [ "date" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "assessment", "JJ" ], [ "note", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "date", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(0) T(6) Order(1) A(0) C(29) T(6)" }, { "db_id": "behavior_monitoring", "query": "SELECT city FROM Addresses ORDER BY city", "query_toks": [ "SELECT", "city", "FROM", "Addresses", "ORDER", "BY", "city" ], "query_toks_no_value": [ "select", "city", "from", "addresses", "order", "by", "city" ], "question": "List all cities of addresses in alphabetical order.", "question_toks": [ "list", "all", "city", "of", "address", "in", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "List", "all", "cities", "of", "addresses", "in", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "city" ], [ "of" ], [ "address" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "city", "NN" ], [ "of", "IN" ], [ "address", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(11) T(3) Order(1) A(0) C(11) T(3)" }, { "db_id": "behavior_monitoring", "query": "SELECT first_name , last_name FROM Teachers ORDER BY last_name", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "Teachers", "ORDER", "BY", "last_name" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "teachers", "order", "by", "last_name" ], "question": "Find the first names and last names of teachers in alphabetical order of last name.", "question_toks": [ "find", "first", "name", "and", "last", "name", "of", "teacher", "in", "alphabetical", "order", "of", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 30, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ], [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "Find", "the", "first", "names", "and", "last", "names", "of", "teachers", "in", "alphabetical", "order", "of", "last", "name", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "teacher" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(17) T(5) A(0) C(19) T(5) Order(1) A(0) C(19) T(5)" }, { "db_id": "behavior_monitoring", "query": "SELECT * FROM Student_Addresses ORDER BY monthly_rental DESC", "query_toks": [ "SELECT", "*", "FROM", "Student_Addresses", "ORDER", "BY", "monthly_rental", "DESC" ], "query_toks_no_value": [ "select", "*", "from", "student_addresses", "order", "by", "monthly_rental", "desc" ], "question": "Find all information about student addresses, and sort by monthly rental in descending order.", "question_toks": [ "find", "all", "information", "about", "student", "address", ",", "and", "sort", "by", "monthly", "rental", "in", "descending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 60, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "Find", "all", "information", "about", "student", "addresses", ",", "and", "sort", "by", "monthly", "rental", "in", "descending", "order", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "information" ], [ "about" ], [ "student", "address" ], [ "," ], [ "and" ], [ "sort" ], [ "by" ], [ "monthly", "rental" ], [ "in" ], [ "descending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "student", "NN" ], [ "address", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "sort", "NN" ], [ "by", "IN" ], [ "monthly", "JJ" ], [ "rental", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(0) T(9) Order(0) A(0) C(42) T(9)" }, { "db_id": "behavior_monitoring", "query": "SELECT T1.student_id , T2.first_name FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.student_id", ",", "T2.first_name", "FROM", "Assessment_Notes", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "student_id", ",", "t2", ".", "first_name", "from", "assessment_notes", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the id and first name of the student that has the most number of assessment notes?", "question_toks": [ "find", "id", "and", "first", "name", "of", "student", "that", "ha", "most", "number", "of", "assessment", "note", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 36, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "Find", "the", "id", "and", "first", "name", "of", "the", "student", "that", "has", "the", "most", "number", "of", "assessment", "notes", "?" ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "that" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "assessment", "note" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "assessment", "JJ" ], [ "note", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(16) T(6) A(0) C(17) T(4) Sup(0) A(3) C(0) T(6)" }, { "db_id": "behavior_monitoring", "query": "SELECT T1.teacher_id , T2.first_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "T1.teacher_id", ",", "T2.first_name", "FROM", "Assessment_Notes", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1.teacher_id", "=", "T2.teacher_id", "GROUP", "BY", "T1.teacher_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t1", ".", "teacher_id", ",", "t2", ".", "first_name", "from", "assessment_notes", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "group", "by", "t1", ".", "teacher_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the ids and first names of the 3 teachers that have the most number of assessment notes?", "question_toks": [ "find", "id", "and", "first", "name", "of", "3", "teacher", "that", "have", "most", "number", "of", "assessment", "note", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 37, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "Find", "the", "ids", "and", "first", "names", "of", "the", "3", "teachers", "that", "have", "the", "most", "number", "of", "assessment", "notes", "?" ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "first", "name" ], [ "of" ], [ "3" ], [ "teacher" ], [ "that" ], [ "have" ], [ "most" ], [ "number" ], [ "of" ], [ "assessment", "note" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "3", "CD" ], [ "teacher", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "assessment", "JJ" ], [ "note", "NN" ], [ "?", "." ] ], "values": [ "3", "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(25) T(6) A(0) C(17) T(5) Sup(0) A(3) C(0) T(6)" }, { "db_id": "behavior_monitoring", "query": "SELECT T1.student_id , T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.student_id", ",", "T2.last_name", "FROM", "Behavior_Incident", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "student_id", ",", "t2", ".", "last_name", "from", "behavior_incident", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the id and last name of the student that has the most behavior incidents?", "question_toks": [ "find", "id", "and", "last", "name", "of", "student", "that", "ha", "most", "behavior", "incident", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 43, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 43, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 43, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "Find", "the", "id", "and", "last", "name", "of", "the", "student", "that", "has", "the", "most", "behavior", "incidents", "?" ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "that" ], [ "ha" ], [ "most" ], [ "behavior", "incident" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "behavior", "JJ" ], [ "incident", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(16) T(7) A(0) C(19) T(4) Sup(0) A(3) C(0) T(7)" }, { "db_id": "behavior_monitoring", "query": "SELECT T1.teacher_id , T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T1.detention_type_code = \"AFTER\" GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.teacher_id", ",", "T2.last_name", "FROM", "Detention", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1.teacher_id", "=", "T2.teacher_id", "WHERE", "T1.detention_type_code", "=", "``", "AFTER", "''", "GROUP", "BY", "T1.teacher_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "teacher_id", ",", "t2", ".", "last_name", "from", "detention", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "where", "t1", ".", "detention_type_code", "=", "value", "group", "by", "t1", ".", "teacher_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the id and last name of the teacher that has the most detentions with detention type code \"AFTER\"?", "question_toks": [ "find", "id", "and", "last", "name", "of", "teacher", "that", "ha", "most", "detention", "with", "detention", "type", "code", "'", "after", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 51, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 51, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 51, false ], null ] ], [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 50, false ], null ], "\"AFTER\"", null ] ] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "Find", "the", "id", "and", "last", "name", "of", "the", "teacher", "that", "has", "the", "most", "detentions", "with", "detention", "type", "code", "``", "AFTER", "''", "?" ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "teacher" ], [ "that" ], [ "ha" ], [ "most" ], [ "detention" ], [ "with" ], [ "detention", "type", "code" ], [ "'" ], [ "after" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "detention", "NN" ], [ "with", "IN" ], [ "detention", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "after", "IN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "AFTER" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(25) T(8) A(0) C(19) T(5) Sup(0) A(3) C(0) T(8) Filter(2) A(0) C(3) T(8) V(0)" }, { "db_id": "behavior_monitoring", "query": "SELECT T1.student_id , T2.first_name FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY AVG(monthly_rental) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.student_id", ",", "T2.first_name", "FROM", "Student_Addresses", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "ORDER", "BY", "AVG", "(", "monthly_rental", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "student_id", ",", "t2", ".", "first_name", "from", "student_addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "order", "by", "avg", "(", "monthly_rental", ")", "desc", "limit", "value" ], "question": "What are the id and first name of the student whose addresses have the highest average monthly rental?", "question_toks": [ "what", "are", "id", "and", "first", "name", "of", "student", "whose", "address", "have", "highest", "average", "monthly", "rental", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 56, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 9 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 56, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 60, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 56, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "id", "and", "first", "name", "of", "the", "student", "whose", "addresses", "have", "the", "highest", "average", "monthly", "rental", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "whose" ], [ "address" ], [ "have" ], [ "highest" ], [ "average" ], [ "monthly", "rental" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "address", "NN" ], [ "have", "VBP" ], [ "highest", "JJS" ], [ "average", "JJ" ], [ "monthly", "JJ" ], [ "rental", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(16) T(9) A(0) C(17) T(4) Sup(0) A(5) C(42) T(9)" }, { "db_id": "behavior_monitoring", "query": "SELECT T2.address_id , T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.address_id", ",", "T1.city", "FROM", "Addresses", "AS", "T1", "JOIN", "Student_Addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "GROUP", "BY", "T2.address_id", "ORDER", "BY", "AVG", "(", "monthly_rental", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "address_id", ",", "t1", ".", "city", "from", "addresses", "as", "t1", "join", "student_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "group", "by", "t2", ".", "address_id", "order", "by", "avg", "(", "monthly_rental", ")", "desc", "limit", "value" ], "question": "Find the id and city of the student address with the highest average monthly rental.", "question_toks": [ "find", "id", "and", "city", "of", "student", "address", "with", "highest", "average", "monthly", "rental", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 57, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 57, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 60, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 57, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "Find", "the", "id", "and", "city", "of", "the", "student", "address", "with", "the", "highest", "average", "monthly", "rental", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "city" ], [ "of" ], [ "student", "address" ], [ "with" ], [ "highest" ], [ "average" ], [ "monthly", "rental" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "JJ" ], [ "and", "CC" ], [ "city", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "address", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "average", "JJ" ], [ "monthly", "JJ" ], [ "rental", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(7) T(9) A(0) C(11) T(3) Sup(0) A(5) C(42) T(9)" }, { "db_id": "behavior_monitoring", "query": "SELECT T1.incident_type_code , T2.incident_type_description FROM Behavior_Incident AS T1 JOIN Ref_Incident_Type AS T2 ON T1.incident_type_code = T2.incident_type_code GROUP BY T1.incident_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.incident_type_code", ",", "T2.incident_type_description", "FROM", "Behavior_Incident", "AS", "T1", "JOIN", "Ref_Incident_Type", "AS", "T2", "ON", "T1.incident_type_code", "=", "T2.incident_type_code", "GROUP", "BY", "T1.incident_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "incident_type_code", ",", "t2", ".", "incident_type_description", "from", "behavior_incident", "as", "t1", "join", "ref_incident_type", "as", "t2", "on", "t1", ".", "incident_type_code", "=", "t2", ".", "incident_type_code", "group", "by", "t1", ".", "incident_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the code and description of the most frequent behavior incident type?", "question_toks": [ "what", "are", "code", "and", "description", "of", "most", "frequent", "behavior", "incident", "type", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 42, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 42, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 42, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "code", "and", "description", "of", "the", "most", "frequent", "behavior", "incident", "type", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "code" ], [ "and" ], [ "description" ], [ "of" ], [ "most" ], [ "frequent" ], [ "behavior", "incident" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "code", "JJ" ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "frequent", "JJ" ], [ "behavior", "NN" ], [ "incident", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(5) T(7) A(0) C(6) T(2) Sup(0) A(3) C(0) T(7)" }, { "db_id": "behavior_monitoring", "query": "SELECT T1.detention_type_code , T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.detention_type_code", ",", "T2.detention_type_description", "FROM", "Detention", "AS", "T1", "JOIN", "Ref_Detention_Type", "AS", "T2", "ON", "T1.detention_type_code", "=", "T2.detention_type_code", "GROUP", "BY", "T1.detention_type_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "detention_type_code", ",", "t2", ".", "detention_type_description", "from", "detention", "as", "t1", "join", "ref_detention_type", "as", "t2", "on", "t1", ".", "detention_type_code", "=", "t2", ".", "detention_type_code", "group", "by", "t1", ".", "detention_type_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "What are the code and description of the least frequent detention type ?", "question_toks": [ "what", "are", "code", "and", "description", "of", "least", "frequent", "detention", "type", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 50, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 50, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "code", "and", "description", "of", "the", "least", "frequent", "detention", "type", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "code" ], [ "and" ], [ "description" ], [ "of" ], [ "least" ], [ "frequent" ], [ "detention" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "code", "JJ" ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "least", "JJS" ], [ "frequent", "JJ" ], [ "detention", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(3) T(8) A(0) C(4) T(1) Sup(1) A(3) C(0) T(8)" }, { "db_id": "behavior_monitoring", "query": "SELECT T1.date_of_notes FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.first_name = \"Fanny\"", "query_toks": [ "SELECT", "T1.date_of_notes", "FROM", "Assessment_Notes", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "WHERE", "T2.first_name", "=", "``", "Fanny", "''" ], "query_toks_no_value": [ "select", "t1", ".", "date_of_notes", "from", "assessment_notes", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "where", "t2", ".", "first_name", "=", "value" ], "question": "Find the dates of assessment notes for students with first name \"Fanny\".", "question_toks": [ "find", "date", "of", "assessment", "note", "for", "student", "with", "first", "name", "'", "fanny", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Fanny\"", null ] ] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "Find", "the", "dates", "of", "assessment", "notes", "for", "students", "with", "first", "name", "``", "Fanny", "''", "." ], "question_arg": [ [ "find" ], [ "date", "of", "note" ], [ "assessment", "note" ], [ "for" ], [ "student" ], [ "with" ], [ "first", "name" ], [ "'" ], [ "fanny" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "date", "NN" ], [ "of", "IN" ], [ "assessment", "JJ" ], [ "note", "NN" ], [ "for", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "fanny", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Fanny", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(29) T(6) Filter(2) A(0) C(17) T(4) V(0)" }, { "db_id": "behavior_monitoring", "query": "SELECT T1.text_of_notes FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = \"Schuster\"", "query_toks": [ "SELECT", "T1.text_of_notes", "FROM", "Assessment_Notes", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1.teacher_id", "=", "T2.teacher_id", "WHERE", "T2.last_name", "=", "``", "Schuster", "''" ], "query_toks_no_value": [ "select", "t1", ".", "text_of_notes", "from", "assessment_notes", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "where", "t2", ".", "last_name", "=", "value" ], "question": "Find the texts of assessment notes for teachers with last name \"Schuster\".", "question_toks": [ "find", "text", "of", "assessment", "note", "for", "teacher", "with", "last", "name", "'", "schuster", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 30, false ], null ], "\"Schuster\"", null ] ] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "Find", "the", "texts", "of", "assessment", "notes", "for", "teachers", "with", "last", "name", "``", "Schuster", "''", "." ], "question_arg": [ [ "find" ], [ "text", "of", "note" ], [ "assessment", "note" ], [ "for" ], [ "teacher" ], [ "with" ], [ "last", "name" ], [ "'" ], [ "schuster" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "text", "NN" ], [ "of", "IN" ], [ "assessment", "JJ" ], [ "note", "NN" ], [ "for", "IN" ], [ "teacher", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "schuster", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Schuster", "Texas" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(30) T(6) Filter(2) A(0) C(19) T(5) V(0)" }, { "db_id": "behavior_monitoring", "query": "SELECT T1.date_incident_start , date_incident_end FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.last_name = \"Fahey\"", "query_toks": [ "SELECT", "T1.date_incident_start", ",", "date_incident_end", "FROM", "Behavior_Incident", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "WHERE", "T2.last_name", "=", "``", "Fahey", "''" ], "query_toks_no_value": [ "select", "t1", ".", "date_incident_start", ",", "date_incident_end", "from", "behavior_incident", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "where", "t2", ".", "last_name", "=", "value" ], "question": "Find the start and end dates of behavior incidents of students with last name \"Fahey\".", "question_toks": [ "find", "start", "and", "end", "date", "of", "behavior", "incident", "of", "student", "with", "last", "name", "'", "fahey", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 43, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ], [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Fahey\"", null ] ] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "Find", "the", "start", "and", "end", "dates", "of", "behavior", "incidents", "of", "students", "with", "last", "name", "``", "Fahey", "''", "." ], "question_arg": [ [ "find" ], [ "start" ], [ "and" ], [ "date", "incident", "end" ], [ "of" ], [ "behavior", "incident" ], [ "of" ], [ "student" ], [ "with" ], [ "last", "name" ], [ "'" ], [ "fahey" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "start", "NN" ], [ "and", "CC" ], [ "end", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "behavior", "JJ" ], [ "incident", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "fahey", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Fahey" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(32) T(7) A(0) C(33) T(7) Filter(2) A(0) C(19) T(4) V(0)" }, { "db_id": "behavior_monitoring", "query": "SELECT T1.datetime_detention_start , datetime_detention_end FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = \"Schultz\"", "query_toks": [ "SELECT", "T1.datetime_detention_start", ",", "datetime_detention_end", "FROM", "Detention", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1.teacher_id", "=", "T2.teacher_id", "WHERE", "T2.last_name", "=", "``", "Schultz", "''" ], "query_toks_no_value": [ "select", "t1", ".", "datetime_detention_start", ",", "datetime_detention_end", "from", "detention", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "where", "t2", ".", "last_name", "=", "value" ], "question": "Find the start and end dates of detentions of teachers with last name \"Schultz\".", "question_toks": [ "find", "start", "and", "end", "date", "of", "detention", "of", "teacher", "with", "last", "name", "'", "schultz", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 51, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 52, false ], null ] ], [ 0, [ 0, [ 0, 53, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 30, false ], null ], "\"Schultz\"", null ] ] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "Find", "the", "start", "and", "end", "dates", "of", "detentions", "of", "teachers", "with", "last", "name", "``", "Schultz", "''", "." ], "question_arg": [ [ "find" ], [ "start" ], [ "and" ], [ "date", "incident", "end" ], [ "of" ], [ "detention" ], [ "of" ], [ "teacher" ], [ "with" ], [ "last", "name" ], [ "'" ], [ "schultz" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "start", "NN" ], [ "and", "CC" ], [ "end", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "detention", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "schultz", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Schultz" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(37) T(8) A(0) C(38) T(8) Filter(2) A(0) C(19) T(5) V(0)" }, { "db_id": "behavior_monitoring", "query": "SELECT T2.address_id , T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id ORDER BY monthly_rental DESC LIMIT 1", "query_toks": [ "SELECT", "T2.address_id", ",", "T1.zip_postcode", "FROM", "Addresses", "AS", "T1", "JOIN", "Student_Addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "ORDER", "BY", "monthly_rental", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "address_id", ",", "t1", ".", "zip_postcode", "from", "addresses", "as", "t1", "join", "student_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "order", "by", "monthly_rental", "desc", "limit", "value" ], "question": "What are the id and zip code of the address with the highest monthly rental?", "question_toks": [ "what", "are", "id", "and", "zip", "code", "of", "address", "with", "highest", "monthly", "rental", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 57, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 60, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 57, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "id", "and", "zip", "code", "of", "the", "address", "with", "the", "highest", "monthly", "rental", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "zip" ], [ "code" ], [ "of" ], [ "address" ], [ "with" ], [ "highest" ], [ "monthly", "rental" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "zip", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "address", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "monthly", "JJ" ], [ "rental", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(7) T(9) A(0) C(12) T(3) Sup(0) A(0) C(42) T(9)" }, { "db_id": "behavior_monitoring", "query": "SELECT T2.cell_mobile_number FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.monthly_rental ASC LIMIT 1", "query_toks": [ "SELECT", "T2.cell_mobile_number", "FROM", "Student_Addresses", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "ORDER", "BY", "T1.monthly_rental", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "cell_mobile_number", "from", "student_addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "order", "by", "t1", ".", "monthly_rental", "asc", "limit", "value" ], "question": "What is the cell phone number of the student whose address has the lowest monthly rental?", "question_toks": [ "what", "is", "cell", "phone", "number", "of", "student", "whose", "address", "ha", "lowest", "monthly", "rental", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 56, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 9 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 60, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "cell", "phone", "number", "of", "the", "student", "whose", "address", "has", "the", "lowest", "monthly", "rental", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "cell" ], [ "phone" ], [ "number" ], [ "of" ], [ "student" ], [ "whose" ], [ "address" ], [ "ha" ], [ "lowest" ], [ "monthly", "rental" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "cell", "VBG" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "address", "NN" ], [ "ha", "NN" ], [ "lowest", "JJS" ], [ "monthly", "JJ" ], [ "rental", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(20) T(4) Sup(1) A(0) C(42) T(9)" }, { "db_id": "behavior_monitoring", "query": "SELECT T2.monthly_rental FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = \"Texas\"", "query_toks": [ "SELECT", "T2.monthly_rental", "FROM", "Addresses", "AS", "T1", "JOIN", "Student_Addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "WHERE", "T1.state_province_county", "=", "``", "Texas", "''" ], "query_toks_no_value": [ "select", "t2", ".", "monthly_rental", "from", "addresses", "as", "t1", "join", "student_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "state_province_county", "=", "value" ], "question": "What are the monthly rentals of student addresses in Texas state?", "question_toks": [ "what", "are", "monthly", "rental", "of", "student", "address", "in", "texas", "state", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 57, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 60, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Texas\"", null ] ] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "monthly", "rentals", "of", "student", "addresses", "in", "Texas", "state", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "monthly", "rental" ], [ "of" ], [ "student", "address" ], [ "in" ], [ "texas" ], [ "state" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "monthly", "JJ" ], [ "rental", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "address", "NN" ], [ "in", "IN" ], [ "texas", "NN" ], [ "state", "NN" ], [ "?", "." ] ], "values": [ "Texas" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(42) T(9) Filter(2) A(0) C(13) T(3) V(0)" }, { "db_id": "behavior_monitoring", "query": "SELECT T2.first_name , T2.last_name FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = \"Wisconsin\"", "query_toks": [ "SELECT", "T2.first_name", ",", "T2.last_name", "FROM", "Addresses", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "WHERE", "T1.state_province_county", "=", "``", "Wisconsin", "''" ], "query_toks_no_value": [ "select", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "state_province_county", "=", "value" ], "question": "What are the first names and last names of students with address in Wisconsin state?", "question_toks": [ "what", "are", "first", "name", "and", "last", "name", "of", "student", "with", "address", "in", "wisconsin", "state", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Wisconsin\"", null ] ] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "and", "last", "names", "of", "students", "with", "address", "in", "Wisconsin", "state", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "with" ], [ "address" ], [ "in" ], [ "wisconsin" ], [ "state" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "address", "NN" ], [ "in", "IN" ], [ "wisconsin", "NN" ], [ "state", "NN" ], [ "?", "." ] ], "values": [ "1", "Wisconsin" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(17) T(4) A(0) C(19) T(4) Filter(2) A(0) C(13) T(3) V(1)" }, { "db_id": "behavior_monitoring", "query": "SELECT T1.line_1 , avg(T2.monthly_rental) FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id", "query_toks": [ "SELECT", "T1.line_1", ",", "avg", "(", "T2.monthly_rental", ")", "FROM", "Addresses", "AS", "T1", "JOIN", "Student_Addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "GROUP", "BY", "T2.address_id" ], "query_toks_no_value": [ "select", "t1", ".", "line_1", ",", "avg", "(", "t2", ".", "monthly_rental", ")", "from", "addresses", "as", "t1", "join", "student_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "group", "by", "t2", ".", "address_id" ], "question": "What are the line 1 and average monthly rentals of all student addresses?", "question_toks": [ "what", "are", "line", "1", "and", "average", "monthly", "rental", "of", "all", "student", "address", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 57, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 57, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 5, [ 0, [ 0, 60, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "line", "1", "and", "average", "monthly", "rentals", "of", "all", "student", "addresses", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "line", "1" ], [ "and" ], [ "average" ], [ "monthly", "rental" ], [ "of" ], [ "all" ], [ "student", "address" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "line", "NN" ], [ "1", "CD" ], [ "and", "CC" ], [ "average", "JJ" ], [ "monthly", "JJ" ], [ "rental", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "address", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(3) A(5) C(42) T(9)" }, { "db_id": "behavior_monitoring", "query": "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T2.first_name = \"Lyla\"", "query_toks": [ "SELECT", "T1.zip_postcode", "FROM", "Addresses", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "WHERE", "T2.first_name", "=", "``", "Lyla", "''" ], "query_toks_no_value": [ "select", "t1", ".", "zip_postcode", "from", "addresses", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "first_name", "=", "value" ], "question": "What is the zip code of the address where the teacher with first name \"Lyla\" lives?", "question_toks": [ "what", "is", "zip", "code", "of", "address", "where", "teacher", "with", "first", "name", "'", "lyla", "'", "life", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 27, 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, 2, [ 0, [ 0, 28, false ], null ], "\"Lyla\"", null ] ] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "zip", "code", "of", "the", "address", "where", "the", "teacher", "with", "first", "name", "``", "Lyla", "''", "lives", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "zip" ], [ "code" ], [ "of" ], [ "address" ], [ "where" ], [ "teacher" ], [ "with" ], [ "first", "name" ], [ "'" ], [ "lyla" ], [ "'" ], [ "life" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "zip", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "address", "NN" ], [ "where", "WRB" ], [ "teacher", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "lyla", "NN" ], [ "'", "''" ], [ "life", "NN" ], [ "?", "." ] ], "values": [ "Lyla", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(3) Filter(2) A(0) C(17) T(5) V(0)" }, { "db_id": "behavior_monitoring", "query": "SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = \"918\"", "query_toks": [ "SELECT", "T2.email_address", "FROM", "Addresses", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "WHERE", "T1.zip_postcode", "=", "``", "918", "''" ], "query_toks_no_value": [ "select", "t2", ".", "email_address", "from", "addresses", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "zip_postcode", "=", "value" ], "question": "What are the email addresses of teachers whose address has zip code \"918\"?", "question_toks": [ "what", "are", "email", "address", "of", "teacher", "whose", "address", "ha", "zip", "code", "'", "918", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"918\"", null ] ] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "email", "addresses", "of", "teachers", "whose", "address", "has", "zip", "code", "``", "918", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "email", "address" ], [ "of" ], [ "teacher" ], [ "whose" ], [ "address" ], [ "ha" ], [ "zip" ], [ "code" ], [ "'" ], [ "918" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "email", "JJ" ], [ "address", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "whose", "WP$" ], [ "address", "NN" ], [ "ha", "NN" ], [ "zip", "NN" ], [ "code", "NN" ], [ "'", "POS" ], [ "918", "CD" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "918" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(21) T(5) Filter(2) A(0) C(12) T(3) V(0)" }, { "db_id": "behavior_monitoring", "query": "SELECT count(*) FROM STUDENTS WHERE student_id NOT IN ( SELECT student_id FROM Behavior_Incident )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "STUDENTS", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "Behavior_Incident", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "behavior_incident", ")" ], "question": "How many students are not involved in any behavior incident?", "question_toks": [ "how", "many", "student", "are", "not", "involved", "in", "any", "behavior", "incident", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 16, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "How", "many", "students", "are", "not", "involved", "in", "any", "behavior", "incident", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "not" ], [ "involved" ], [ "in" ], [ "any" ], [ "behavior", "incident" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "not", "RB" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "any", "DT" ], [ "behavior", "JJ" ], [ "incident", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(19) A(0) C(16) T(4) Root(5) Sel(0) N(0) A(0) C(16) T(7)" }, { "db_id": "behavior_monitoring", "query": "SELECT last_name FROM Teachers EXCEPT SELECT T1.last_name FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id = T2.teacher_id", "query_toks": [ "SELECT", "last_name", "FROM", "Teachers", "EXCEPT", "SELECT", "T1.last_name", "FROM", "Teachers", "AS", "T1", "JOIN", "Detention", "AS", "T2", "ON", "T1.teacher_id", "=", "T2.teacher_id" ], "query_toks_no_value": [ "select", "last_name", "from", "teachers", "except", "select", "t1", ".", "last_name", "from", "teachers", "as", "t1", "join", "detention", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id" ], "question": "Find the last names of teachers who are not involved in any detention.", "question_toks": [ "find", "last", "name", "of", "teacher", "who", "are", "not", "involved", "in", "any", "detention", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 51, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 26, 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 ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "Find", "the", "last", "names", "of", "teachers", "who", "are", "not", "involved", "in", "any", "detention", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "of" ], [ "teacher" ], [ "who" ], [ "are" ], [ "not" ], [ "involved" ], [ "in" ], [ "any" ], [ "detention" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "any", "DT" ], [ "detention", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(19) T(5) Root(3) Sel(0) N(0) A(0) C(19) T(5) Filter(18) A(0) C(25) T(5) Root(5) Sel(0) N(0) A(0) C(25) T(8)" }, { "db_id": "behavior_monitoring", "query": "SELECT T1.line_1 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id INTERSECT SELECT T1.line_1 FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id", "query_toks": [ "SELECT", "T1.line_1", "FROM", "Addresses", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "INTERSECT", "SELECT", "T1.line_1", "FROM", "Addresses", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id" ], "query_toks_no_value": [ "select", "t1", ".", "line_1", "from", "addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "intersect", "select", "t1", ".", "line_1", "from", "addresses", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id" ], "question": "What are the line 1 of addresses shared by some students and some teachers?", "question_toks": [ "what", "are", "line", "1", "of", "address", "shared", "by", "some", "student", "and", "some", "teacher", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "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 ], { "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 ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "address id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "address id", "first name", "middle name", "last name", "gender", "cell mobile number", "email address", "other details", "notes id", "student id", "teacher id", "date of notes", "text of notes", "other details", "incident id", "incident type code", "student id", "date incident start", "date incident end", "incident summary", "recommendations", "other details", "detention id", "detention type code", "teacher id", "datetime detention start", "datetime detention end", "detention summary", "other details", "student id", "address id", "date address from", "date address to", "monthly rental", "other details", "student id", "detention id", "incident id" ], "table_names": [ "reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention" ], "col_set": [ "*", "address type code", "address type description", "detention type code", "detention type description", "incident type code", "incident type description", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "student id", "first name", "middle name", "last name", "cell mobile number", "email address", "date first rental", "date left university", "other student details", "teacher id", "gender", "other details", "notes id", "date of notes", "text of notes", "incident id", "date incident start", "date incident end", "incident summary", "recommendations", "detention id", "datetime detention start", "datetime detention end", "detention summary", "date address from", "date address to", "monthly rental" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10 ], "keys": { "17": 7, "7": 7, "27": 7, "37": 26, "26": 26, "36": 16, "16": 16, "43": 16, "42": 5, "5": 5, "51": 26, "50": 3, "3": 3, "56": 16, "57": 7, "62": 16, "63": 49, "49": 49, "64": 41, "41": 41, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "line", "1", "of", "addresses", "shared", "by", "some", "students", "and", "some", "teachers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "line", "1" ], [ "of" ], [ "address" ], [ "shared" ], [ "by" ], [ "some" ], [ "student" ], [ "and" ], [ "some" ], [ "teacher" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "line", "NN" ], [ "1", "CD" ], [ "of", "IN" ], [ "address", "NN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "some", "DT" ], [ "student", "NN" ], [ "and", "CC" ], [ "some", "DT" ], [ "teacher", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(0) Root(5) Sel(0) N(0) A(0) C(8) T(3) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(18) A(0) C(7) T(3) Root(5) Sel(0) N(0) A(0) C(7) T(5)" }, { "db_id": "assets_maintenance", "query": "SELECT T1.asset_id , T1.asset_details FROM Assets AS T1 JOIN Asset_Parts AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING count(*) = 2 INTERSECT SELECT T1.asset_id , T1.asset_details FROM Assets AS T1 JOIN Fault_Log AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING count(*) < 2", "query_toks": [ "SELECT", "T1.asset_id", ",", "T1.asset_details", "FROM", "Assets", "AS", "T1", "JOIN", "Asset_Parts", "AS", "T2", "ON", "T1.asset_id", "=", "T2.asset_id", "GROUP", "BY", "T1.asset_id", "HAVING", "count", "(", "*", ")", "=", "2", "INTERSECT", "SELECT", "T1.asset_id", ",", "T1.asset_details", "FROM", "Assets", "AS", "T1", "JOIN", "Fault_Log", "AS", "T2", "ON", "T1.asset_id", "=", "T2.asset_id", "GROUP", "BY", "T1.asset_id", "HAVING", "count", "(", "*", ")", "<", "2" ], "query_toks_no_value": [ "select", "t1", ".", "asset_id", ",", "t1", ".", "asset_details", "from", "assets", "as", "t1", "join", "asset_parts", "as", "t2", "on", "t1", ".", "asset_id", "=", "t2", ".", "asset_id", "group", "by", "t1", ".", "asset_id", "having", "count", "(", "*", ")", "=", "value", "intersect", "select", "t1", ".", "asset_id", ",", "t1", ".", "asset_details", "from", "assets", "as", "t1", "join", "fault_log", "as", "t2", "on", "t1", ".", "asset_id", "=", "t2", ".", "asset_id", "group", "by", "t1", ".", "asset_id", "having", "count", "(", "*", ")", "<", "value" ], "question": "Which assets have 2 parts and have less than 2 fault logs? List the asset id and detail.", "question_toks": [ "which", "asset", "have", "2", "part", "and", "have", "le", "than", "2", "fault", "log", "?", "list", "asset", "id", "and", "detail", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 42, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 42, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [ [ false, 4, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 23, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 42, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "Which", "assets", "have", "2", "parts", "and", "have", "less", "than", "2", "fault", "logs", "?", "List", "the", "asset", "id", "and", "detail", "." ], "question_arg": [ [ "which" ], [ "asset" ], [ "have" ], [ "2" ], [ "part" ], [ "and" ], [ "have" ], [ "le" ], [ "than" ], [ "2" ], [ "fault", "log" ], [ "?" ], [ "list" ], [ "asset", "id" ], [ "and" ], [ "detail" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "asset", "NN" ], [ "have", "VBP" ], [ "2", "CD" ], [ "part", "NN" ], [ "and", "CC" ], [ "have", "VBP" ], [ "le", "VBN" ], [ "than", "IN" ], [ "2", "CD" ], [ "fault", "NN" ], [ "log", "NN" ], [ "?", "." ], [ "list", "JJ" ], [ "asset", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(23) T(5) A(0) C(25) T(5) Filter(2) A(3) C(0) T(6) V(0) Root(3) Sel(0) N(1) A(0) C(23) T(5) A(0) C(25) T(5) Filter(0) Filter(18) A(0) C(23) T(5) Root(5) Sel(0) N(0) A(0) C(23) T(9) Filter(4) A(3) C(0) T(9) V(0)" }, { "db_id": "assets_maintenance", "query": "SELECT count(*) , T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id = T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.maintenance_contract_id", "FROM", "Maintenance_Contracts", "AS", "T1", "JOIN", "Assets", "AS", "T2", "ON", "T1.maintenance_contract_id", "=", "T2.maintenance_contract_id", "GROUP", "BY", "T1.maintenance_contract_id" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "maintenance_contract_id", "from", "maintenance_contracts", "as", "t1", "join", "assets", "as", "t2", "on", "t1", ".", "maintenance_contract_id", "=", "t2", ".", "maintenance_contract_id", "group", "by", "t1", ".", "maintenance_contract_id" ], "question": "How many assets does each maintenance contract contain? List the number and the contract id.", "question_toks": [ "how", "many", "asset", "doe", "each", "maintenance", "contract", "contain", "?", "list", "number", "and", "contract", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "How", "many", "assets", "does", "each", "maintenance", "contract", "contain", "?", "List", "the", "number", "and", "the", "contract", "id", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "asset" ], [ "doe" ], [ "each" ], [ "maintenance", "contract" ], [ "contain" ], [ "?" ], [ "list" ], [ "number" ], [ "and" ], [ "maintenance", "contract", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "asset", "NN" ], [ "doe", "NNS" ], [ "each", "DT" ], [ "maintenance", "NN" ], [ "contract", "NN" ], [ "contain", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "contract", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "Maintenance Contractor" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(5) A(0) C(6) T(1)" }, { "db_id": "assets_maintenance", "query": "SELECT count(*) , T1.company_id FROM Third_Party_Companies AS T1 JOIN Assets AS T2 ON T1.company_id = T2.supplier_company_id GROUP BY T1.company_id", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.company_id", "FROM", "Third_Party_Companies", "AS", "T1", "JOIN", "Assets", "AS", "T2", "ON", "T1.company_id", "=", "T2.supplier_company_id", "GROUP", "BY", "T1.company_id" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "company_id", "from", "third_party_companies", "as", "t1", "join", "assets", "as", "t2", "on", "t1", ".", "company_id", "=", "t2", ".", "supplier_company_id", "group", "by", "t1", ".", "company_id" ], "question": "How many assets does each third party company supply? List the count and the company id.", "question_toks": [ "how", "many", "asset", "doe", "each", "third", "party", "company", "supply", "?", "list", "count", "and", "company", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "How", "many", "assets", "does", "each", "third", "party", "company", "supply", "?", "List", "the", "count", "and", "the", "company", "id", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "asset" ], [ "doe" ], [ "each" ], [ "third", "party", "company" ], [ "supply" ], [ "?" ], [ "list" ], [ "count" ], [ "and" ], [ "company", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "asset", "NN" ], [ "doe", "NNS" ], [ "each", "DT" ], [ "third", "JJ" ], [ "party", "NN" ], [ "company", "NN" ], [ "supply", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "count", "NN" ], [ "and", "CC" ], [ "company", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(5) A(0) C(1) T(0)" }, { "db_id": "assets_maintenance", "query": "SELECT T1.company_id , T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING count(*) >= 2 UNION SELECT T3.company_id , T3.company_name FROM Third_Party_Companies AS T3 JOIN Maintenance_Contracts AS T4 ON T3.company_id = T4.maintenance_contract_company_id GROUP BY T3.company_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.company_id", ",", "T1.company_name", "FROM", "Third_Party_Companies", "AS", "T1", "JOIN", "Maintenance_Engineers", "AS", "T2", "ON", "T1.company_id", "=", "T2.company_id", "GROUP", "BY", "T1.company_id", "HAVING", "count", "(", "*", ")", ">", "=", "2", "UNION", "SELECT", "T3.company_id", ",", "T3.company_name", "FROM", "Third_Party_Companies", "AS", "T3", "JOIN", "Maintenance_Contracts", "AS", "T4", "ON", "T3.company_id", "=", "T4.maintenance_contract_company_id", "GROUP", "BY", "T3.company_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "company_id", ",", "t1", ".", "company_name", "from", "third_party_companies", "as", "t1", "join", "maintenance_engineers", "as", "t2", "on", "t1", ".", "company_id", "=", "t2", ".", "company_id", "group", "by", "t1", ".", "company_id", "having", "count", "(", "*", ")", ">", "=", "value", "union", "select", "t3", ".", "company_id", ",", "t3", ".", "company_name", "from", "third_party_companies", "as", "t3", "join", "maintenance_contracts", "as", "t4", "on", "t3", ".", "company_id", "=", "t4", ".", "maintenance_contract_company_id", "group", "by", "t3", ".", "company_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name.", "question_toks": [ "which", "third", "party", "company", "have", "at", "least", "2", "maintenance", "engineer", "or", "have", "at", "least", "2", "maintenance", "contract", "?", "list", "company", "id", "and", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 35, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 7 ] ] }, "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, 3, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 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, 3, 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 ] ] }, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "Which", "third", "party", "companies", "have", "at", "least", "2", "maintenance", "engineers", "or", "have", "at", "least", "2", "maintenance", "contracts", "?", "List", "the", "company", "id", "and", "name", "." ], "question_arg": [ [ "which" ], [ "third", "party", "company" ], [ "have" ], [ "at" ], [ "least" ], [ "2" ], [ "maintenance", "engineer" ], [ "or" ], [ "have" ], [ "at" ], [ "least" ], [ "2" ], [ "maintenance", "contract" ], [ "?" ], [ "list" ], [ "company", "id" ], [ "and" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "third", "JJ" ], [ "party", "NN" ], [ "company", "NN" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "maintenance", "NN" ], [ "engineer", "NN" ], [ "or", "CC" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "maintenance", "NN" ], [ "contract", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "company", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "2", "Maintenance Contractor", "3" ], "rule_label": "Root1(1) 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(1) T(7) Filter(7) A(3) C(0) T(7) V(0) 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(7) T(1) Filter(7) A(3) C(0) T(1) V(0)" }, { "db_id": "assets_maintenance", "query": "SELECT T1.staff_name , T1.staff_id FROM Staff AS T1 JOIN Fault_Log AS T2 ON T1.staff_id = T2.recorded_by_staff_id EXCEPT SELECT T3.staff_name , T3.staff_id FROM Staff AS T3 JOIN Engineer_Visits AS T4 ON T3.staff_id = T4.contact_staff_id", "query_toks": [ "SELECT", "T1.staff_name", ",", "T1.staff_id", "FROM", "Staff", "AS", "T1", "JOIN", "Fault_Log", "AS", "T2", "ON", "T1.staff_id", "=", "T2.recorded_by_staff_id", "EXCEPT", "SELECT", "T3.staff_name", ",", "T3.staff_id", "FROM", "Staff", "AS", "T3", "JOIN", "Engineer_Visits", "AS", "T4", "ON", "T3.staff_id", "=", "T4.contact_staff_id" ], "query_toks_no_value": [ "select", "t1", ".", "staff_name", ",", "t1", ".", "staff_id", "from", "staff", "as", "t1", "join", "fault_log", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "recorded_by_staff_id", "except", "select", "t3", ".", "staff_name", ",", "t3", ".", "staff_id", "from", "staff", "as", "t3", "join", "engineer_visits", "as", "t4", "on", "t3", ".", "staff_id", "=", "t4", ".", "contact_staff_id" ], "question": "What is the name and id of the staff who recorded the fault log but has not contacted any visiting engineers?", "question_toks": [ "what", "is", "name", "and", "id", "of", "staff", "who", "recorded", "fault", "log", "but", "ha", "not", "contacted", "any", "visiting", "engineer", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 48, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 19, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 48, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 43, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 19, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "id", "of", "the", "staff", "who", "recorded", "the", "fault", "log", "but", "has", "not", "contacted", "any", "visiting", "engineers", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "staff" ], [ "who" ], [ "recorded" ], [ "fault", "log" ], [ "but" ], [ "ha" ], [ "not" ], [ "contacted" ], [ "any" ], [ "visiting" ], [ "engineer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "who", "WP" ], [ "recorded", "VBD" ], [ "fault", "NN" ], [ "log", "NN" ], [ "but", "CC" ], [ "ha", "VBZ" ], [ "not", "RB" ], [ "contacted", "VBN" ], [ "any", "DT" ], [ "visiting", "VBG" ], [ "engineer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(2) Root(3) Sel(0) N(1) A(0) C(20) T(4) A(0) C(19) T(4) Filter(18) A(0) C(19) T(4) Root(5) Sel(0) N(0) A(0) C(36) T(9) Root(3) Sel(0) N(1) A(0) C(20) T(4) A(0) C(19) T(4) Filter(18) A(0) C(19) T(4) Root(5) Sel(0) N(0) A(0) C(41) T(10)" }, { "db_id": "assets_maintenance", "query": "SELECT T1.engineer_id , T1.first_name , T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 GROUP BY T1.engineer_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.engineer_id", ",", "T1.first_name", ",", "T1.last_name", "FROM", "Maintenance_Engineers", "AS", "T1", "JOIN", "Engineer_Visits", "AS", "T2", "GROUP", "BY", "T1.engineer_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "engineer_id", ",", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "maintenance_engineers", "as", "t1", "join", "engineer_visits", "as", "t2", "group", "by", "t1", ".", "engineer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which engineer has visited the most times? Show the engineer id, first name and last name.", "question_toks": [ "which", "engineer", "ha", "visited", "most", "time", "?", "show", "engineer", "id", ",", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 34, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "Which", "engineer", "has", "visited", "the", "most", "times", "?", "Show", "the", "engineer", "id", ",", "first", "name", "and", "last", "name", "." ], "question_arg": [ [ "which" ], [ "engineer" ], [ "ha" ], [ "visited" ], [ "most" ], [ "time" ], [ "?" ], [ "show" ], [ "engineer", "id" ], [ "," ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "engineer", "VBP" ], [ "ha", "NN" ], [ "visited", "VBD" ], [ "most", "JJS" ], [ "time", "NN" ], [ "?", "." ], [ "show", "VB" ], [ "engineer", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(31) T(7) A(0) C(32) T(7) A(0) C(33) T(7) Sup(0) A(3) C(0) T(10)" }, { "db_id": "assets_maintenance", "query": "SELECT T1.part_name , T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_id HAVING count(*) > 2", "query_toks": [ "SELECT", "T1.part_name", ",", "T1.part_id", "FROM", "Parts", "AS", "T1", "JOIN", "Part_Faults", "AS", "T2", "ON", "T1.part_id", "=", "T2.part_id", "GROUP", "BY", "T1.part_id", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "t1", ".", "part_name", ",", "t1", ".", "part_id", "from", "parts", "as", "t1", "join", "part_faults", "as", "t2", "on", "t1", ".", "part_id", "=", "t2", ".", "part_id", "group", "by", "t1", ".", "part_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which parts have more than 2 faults? Show the part name and id.", "question_toks": [ "which", "part", "have", "more", "than", "2", "fault", "?", "show", "part", "name", "and", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 56, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 56, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 11 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "Which", "parts", "have", "more", "than", "2", "faults", "?", "Show", "the", "part", "name", "and", "id", "." ], "question_arg": [ [ "which" ], [ "part" ], [ "have" ], [ "more" ], [ "than" ], [ "2" ], [ "fault" ], [ "?" ], [ "show" ], [ "part", "name" ], [ "and" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "part", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "fault", "NN" ], [ "?", "." ], [ "show", "VB" ], [ "part", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(12) T(2) A(0) C(11) T(2) Filter(0) Filter(18) A(0) C(11) T(2) Root(5) Sel(0) N(0) A(0) C(11) T(11) Filter(5) A(3) C(0) T(11) V(0)" }, { "db_id": "assets_maintenance", "query": "SELECT T1.first_name , T1.last_name , T1.other_details , T3.skill_description FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "T1.other_details", ",", "T3.skill_description", "FROM", "Maintenance_Engineers", "AS", "T1", "JOIN", "Engineer_Skills", "AS", "T2", "ON", "T1.engineer_id", "=", "T2.engineer_id", "JOIN", "Skills", "AS", "T3", "ON", "T2.skill_id", "=", "T3.skill_id" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "t1", ".", "other_details", ",", "t3", ".", "skill_description", "from", "maintenance_engineers", "as", "t1", "join", "engineer_skills", "as", "t2", "on", "t1", ".", "engineer_id", "=", "t2", ".", "engineer_id", "join", "skills", "as", "t3", "on", "t2", ".", "skill_id", "=", "t3", ".", "skill_id" ], "question": "List all every engineer's first name, last name, details and coresponding skill description.", "question_toks": [ "list", "all", "every", "engineer", "'s", "first", "name", ",", "last", "name", ",", "detail", "and", "coresponding", "skill", "description", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 39, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ], [ 0, [ 0, [ 0, 38, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 34, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "List", "all", "every", "engineer", "'s", "first", "name", ",", "last", "name", ",", "details", "and", "coresponding", "skill", "description", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "every" ], [ "engineer" ], [ "'s" ], [ "first", "name" ], [ "," ], [ "last", "name" ], [ "," ], [ "detail" ], [ "and" ], [ "coresponding" ], [ "skill", "description" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "every", "DT" ], [ "engineer", "NN" ], [ "'s", "POS" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "detail", "NN" ], [ "and", "CC" ], [ "coresponding", "NN" ], [ "skill", "NN" ], [ "description", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(3) A(0) C(32) T(7) A(0) C(33) T(7) A(0) C(34) T(7) A(0) C(18) T(3) Filter(18) A(0) C(31) T(7) Root(5) Sel(0) N(0) A(0) C(31) T(8)" }, { "db_id": "assets_maintenance", "query": "SELECT T1.fault_short_name , T3.skill_description FROM Part_Faults AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.part_fault_id = T2.part_fault_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id", "query_toks": [ "SELECT", "T1.fault_short_name", ",", "T3.skill_description", "FROM", "Part_Faults", "AS", "T1", "JOIN", "Skills_Required_To_Fix", "AS", "T2", "ON", "T1.part_fault_id", "=", "T2.part_fault_id", "JOIN", "Skills", "AS", "T3", "ON", "T2.skill_id", "=", "T3.skill_id" ], "query_toks_no_value": [ "select", "t1", ".", "fault_short_name", ",", "t3", ".", "skill_description", "from", "part_faults", "as", "t1", "join", "skills_required_to_fix", "as", "t2", "on", "t1", ".", "part_fault_id", "=", "t2", ".", "part_fault_id", "join", "skills", "as", "t3", "on", "t2", ".", "skill_id", "=", "t3", ".", "skill_id" ], "question": "For all the faults of different parts, what are all the decriptions of the skills required to fix them? List the name of the faults and the skill description.", "question_toks": [ "for", "all", "fault", "of", "different", "part", ",", "what", "are", "all", "decriptions", "of", "skill", "required", "to", "fix", "them", "?", "list", "name", "of", "fault", "and", "skill", "description", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 55, false ], null ], [ 0, 63, false ], null ] ], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 57, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 55, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 63, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 13 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "For", "all", "the", "faults", "of", "different", "parts", ",", "what", "are", "all", "the", "decriptions", "of", "the", "skills", "required", "to", "fix", "them", "?", "List", "the", "name", "of", "the", "faults", "and", "the", "skill", "description", "." ], "question_arg": [ [ "for" ], [ "all" ], [ "fault" ], [ "of" ], [ "different" ], [ "part" ], [ "," ], [ "what" ], [ "are" ], [ "all" ], [ "decriptions" ], [ "of" ], [ "skill", "required", "to", "fix" ], [ "them" ], [ "?" ], [ "list" ], [ "name" ], [ "of" ], [ "fault" ], [ "and" ], [ "skill", "description" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "all", "DT" ], [ "fault", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "part", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "are", "VBP" ], [ "all", "DT" ], [ "decriptions", "NNS" ], [ "of", "IN" ], [ "skill", "NN" ], [ "required", "VBN" ], [ "to", "TO" ], [ "fix", "VB" ], [ "them", "PRP" ], [ "?", "." ], [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "fault", "NN" ], [ "and", "CC" ], [ "skill", "JJ" ], [ "description", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(47) T(11) A(0) C(18) T(3) Filter(18) A(0) C(46) T(11) Root(5) Sel(0) N(0) A(0) C(46) T(13)" }, { "db_id": "assets_maintenance", "query": "SELECT T1.part_name , count(*) FROM Parts AS T1 JOIN Asset_Parts AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name", "query_toks": [ "SELECT", "T1.part_name", ",", "count", "(", "*", ")", "FROM", "Parts", "AS", "T1", "JOIN", "Asset_Parts", "AS", "T2", "ON", "T1.part_id", "=", "T2.part_id", "GROUP", "BY", "T1.part_name" ], "query_toks_no_value": [ "select", "t1", ".", "part_name", ",", "count", "(", "*", ")", "from", "parts", "as", "t1", "join", "asset_parts", "as", "t2", "on", "t1", ".", "part_id", "=", "t2", ".", "part_id", "group", "by", "t1", ".", "part_name" ], "question": "How many assets can each parts be used in? List the part name and the number.", "question_toks": [ "how", "many", "asset", "can", "each", "part", "be", "used", "in", "?", "list", "part", "name", "and", "number", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 33, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 6 ] ] }, "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": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "How", "many", "assets", "can", "each", "parts", "be", "used", "in", "?", "List", "the", "part", "name", "and", "the", "number", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "asset" ], [ "can" ], [ "each" ], [ "part" ], [ "be" ], [ "used" ], [ "in" ], [ "?" ], [ "list" ], [ "part", "name" ], [ "and" ], [ "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "asset", "NN" ], [ "can", "MD" ], [ "each", "DT" ], [ "part", "NN" ], [ "be", "VB" ], [ "used", "VBN" ], [ "in", "IN" ], [ "?", "." ], [ "list", "JJ" ], [ "part", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(12) T(2) A(3) C(0) T(6)" }, { "db_id": "assets_maintenance", "query": "SELECT T1.fault_description , T2.fault_status FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id", "query_toks": [ "SELECT", "T1.fault_description", ",", "T2.fault_status", "FROM", "Fault_Log", "AS", "T1", "JOIN", "Fault_Log_Parts", "AS", "T2", "ON", "T1.fault_log_entry_id", "=", "T2.fault_log_entry_id" ], "query_toks_no_value": [ "select", "t1", ".", "fault_description", ",", "t2", ".", "fault_status", "from", "fault_log", "as", "t1", "join", "fault_log_parts", "as", "t2", "on", "t1", ".", "fault_log_entry_id", "=", "t2", ".", "fault_log_entry_id" ], "question": "What are all the fault descriptions and the fault status of all the faults recoreded in the logs?", "question_toks": [ "what", "are", "all", "fault", "description", "and", "fault", "status", "of", "all", "fault", "recoreded", "in", "log", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 60, false ], null ] ], "table_units": [ [ "table_unit", 9 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ], [ 0, [ 0, [ 0, 62, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "What", "are", "all", "the", "fault", "descriptions", "and", "the", "fault", "status", "of", "all", "the", "faults", "recoreded", "in", "the", "logs", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "fault", "description" ], [ "and" ], [ "fault", "status" ], [ "of" ], [ "all" ], [ "fault" ], [ "recoreded" ], [ "in" ], [ "log" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "fault", "NN" ], [ "description", "NN" ], [ "and", "CC" ], [ "fault", "NN" ], [ "status", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "fault", "NN" ], [ "recoreded", "VBN" ], [ "in", "IN" ], [ "log", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(38) T(9) A(0) C(42) T(12)" }, { "db_id": "assets_maintenance", "query": "SELECT count(*) , T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.fault_log_entry_id", "FROM", "Fault_Log", "AS", "T1", "JOIN", "Engineer_Visits", "AS", "T2", "ON", "T1.fault_log_entry_id", "=", "T2.fault_log_entry_id", "GROUP", "BY", "T1.fault_log_entry_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "fault_log_entry_id", "from", "fault_log", "as", "t1", "join", "engineer_visits", "as", "t2", "on", "t1", ".", "fault_log_entry_id", "=", "t2", ".", "fault_log_entry_id", "group", "by", "t1", ".", "fault_log_entry_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "How many engineer visits are required at most for a single fault log? List the number and the log entry id.", "question_toks": [ "how", "many", "engineer", "visit", "are", "required", "at", "most", "for", "a", "single", "fault", "log", "?", "list", "number", "and", "log", "entry", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 50, false ], null ] ], "table_units": [ [ "table_unit", 9 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 41, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "How", "many", "engineer", "visits", "are", "required", "at", "most", "for", "a", "single", "fault", "log", "?", "List", "the", "number", "and", "the", "log", "entry", "id", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "engineer", "visit" ], [ "are" ], [ "required" ], [ "at" ], [ "most" ], [ "for" ], [ "a" ], [ "single" ], [ "fault", "log" ], [ "?" ], [ "list" ], [ "number" ], [ "and" ], [ "log" ], [ "entry" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "engineer", "VBP" ], [ "visit", "NNS" ], [ "are", "VBP" ], [ "required", "VBN" ], [ "at", "IN" ], [ "most", "JJS" ], [ "for", "IN" ], [ "a", "DT" ], [ "single", "JJ" ], [ "fault", "NN" ], [ "log", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "log", "JJ" ], [ "entry", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(3) C(0) T(10) A(0) C(35) T(9) Sup(0) A(3) C(0) T(10)" }, { "db_id": "assets_maintenance", "query": "SELECT DISTINCT last_name FROM Maintenance_Engineers", "query_toks": [ "SELECT", "DISTINCT", "last_name", "FROM", "Maintenance_Engineers" ], "query_toks_no_value": [ "select", "distinct", "last_name", "from", "maintenance_engineers" ], "question": "What are all the distinct last names of all the engineers?", "question_toks": [ "what", "are", "all", "distinct", "last", "name", "of", "all", "engineer", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "What", "are", "all", "the", "distinct", "last", "names", "of", "all", "the", "engineers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "distinct" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "engineer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "engineer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(33) T(7)" }, { "db_id": "assets_maintenance", "query": "SELECT DISTINCT fault_status FROM Fault_Log_Parts", "query_toks": [ "SELECT", "DISTINCT", "fault_status", "FROM", "Fault_Log_Parts" ], "query_toks_no_value": [ "select", "distinct", "fault_status", "from", "fault_log_parts" ], "question": "How many fault status codes are recorded in the fault log parts table?", "question_toks": [ "how", "many", "fault", "status", "code", "are", "recorded", "in", "fault", "log", "part", "table", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 62, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "How", "many", "fault", "status", "codes", "are", "recorded", "in", "the", "fault", "log", "parts", "table", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "fault", "status" ], [ "code" ], [ "are" ], [ "recorded" ], [ "in" ], [ "fault", "log", "part" ], [ "table" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "fault", "NN" ], [ "status", "NN" ], [ "code", "NN" ], [ "are", "VBP" ], [ "recorded", "VBN" ], [ "in", "IN" ], [ "fault", "NN" ], [ "log", "NN" ], [ "part", "NN" ], [ "table", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(42) T(12)" }, { "db_id": "assets_maintenance", "query": "SELECT first_name , last_name FROM Maintenance_Engineers WHERE engineer_id NOT IN (SELECT engineer_id FROM Engineer_Visits)", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "Maintenance_Engineers", "WHERE", "engineer_id", "NOT", "IN", "(", "SELECT", "engineer_id", "FROM", "Engineer_Visits", ")" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "maintenance_engineers", "where", "engineer_id", "not", "in", "(", "select", "engineer_id", "from", "engineer_visits", ")" ], "question": "Which engineers have never visited to maintain the assets? List the engineer first name and last name.", "question_toks": [ "which", "engineer", "have", "never", "visited", "to", "maintain", "asset", "?", "list", "engineer", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 34, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 49, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "Which", "engineers", "have", "never", "visited", "to", "maintain", "the", "assets", "?", "List", "the", "engineer", "first", "name", "and", "last", "name", "." ], "question_arg": [ [ "which" ], [ "engineer" ], [ "have" ], [ "never" ], [ "visited" ], [ "to" ], [ "maintain" ], [ "asset" ], [ "?" ], [ "list" ], [ "engineer" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "engineer", "NN" ], [ "have", "VBP" ], [ "never", "RB" ], [ "visited", "VBN" ], [ "to", "TO" ], [ "maintain", "VB" ], [ "asset", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "engineer", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(32) T(7) A(0) C(33) T(7) Filter(19) A(0) C(31) T(7) Root(5) Sel(0) N(0) A(0) C(31) T(10)" }, { "db_id": "assets_maintenance", "query": "SELECT asset_id , asset_details , asset_make , asset_model FROM Assets", "query_toks": [ "SELECT", "asset_id", ",", "asset_details", ",", "asset_make", ",", "asset_model", "FROM", "Assets" ], "query_toks_no_value": [ "select", "asset_id", ",", "asset_details", ",", "asset_make", ",", "asset_model", "from", "assets" ], "question": "List the asset id, details, make and model for every asset.", "question_toks": [ "list", "asset", "id", ",", "detail", ",", "make", "and", "model", "for", "every", "asset", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "List", "the", "asset", "id", ",", "details", ",", "make", "and", "model", "for", "every", "asset", "." ], "question_arg": [ [ "list" ], [ "asset", "id" ], [ "," ], [ "detail" ], [ "," ], [ "make" ], [ "and" ], [ "model" ], [ "for" ], [ "every" ], [ "asset" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "asset", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "detail", "NN" ], [ ",", "," ], [ "make", "VB" ], [ "and", "CC" ], [ "model", "VB" ], [ "for", "IN" ], [ "every", "DT" ], [ "asset", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(23) T(5) A(0) C(25) T(5) A(0) C(26) T(5) A(0) C(27) T(5)" }, { "db_id": "assets_maintenance", "query": "SELECT asset_acquired_date FROM Assets ORDER BY asset_acquired_date ASC LIMIT 1", "query_toks": [ "SELECT", "asset_acquired_date", "FROM", "Assets", "ORDER", "BY", "asset_acquired_date", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "asset_acquired_date", "from", "assets", "order", "by", "asset_acquired_date", "asc", "limit", "value" ], "question": "When was the first asset acquired?", "question_toks": [ "when", "wa", "first", "asset", "acquired", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 29, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "When", "was", "the", "first", "asset", "acquired", "?" ], "question_arg": [ [ "when" ], [ "wa" ], [ "first" ], [ "asset" ], [ "acquired" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "wa", "NN" ], [ "first", "RB" ], [ "asset", "NN" ], [ "acquired", "VBN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(28) T(5) Sup(1) A(0) C(28) T(5)" }, { "db_id": "assets_maintenance", "query": "SELECT T1.part_id , T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id = T3.part_fault_id GROUP BY T1.part_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.part_id", ",", "T1.part_name", "FROM", "Parts", "AS", "T1", "JOIN", "Part_Faults", "AS", "T2", "ON", "T1.part_id", "=", "T2.part_id", "JOIN", "Skills_Required_To_Fix", "AS", "T3", "ON", "T2.part_fault_id", "=", "T3.part_fault_id", "GROUP", "BY", "T1.part_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "part_id", ",", "t1", ".", "part_name", "from", "parts", "as", "t1", "join", "part_faults", "as", "t2", "on", "t1", ".", "part_id", "=", "t2", ".", "part_id", "join", "skills_required_to_fix", "as", "t3", "on", "t2", ".", "part_fault_id", "=", "t3", ".", "part_fault_id", "group", "by", "t1", ".", "part_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which part fault requires the most number of skills to fix? List part id and name.", "question_toks": [ "which", "part", "fault", "requires", "most", "number", "of", "skill", "to", "fix", "?", "list", "part", "id", "and", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 56, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 56, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 11 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "Which", "part", "fault", "requires", "the", "most", "number", "of", "skills", "to", "fix", "?", "List", "part", "id", "and", "name", "." ], "question_arg": [ [ "which" ], [ "part", "fault" ], [ "requires" ], [ "most" ], [ "number" ], [ "of" ], [ "skill" ], [ "to" ], [ "fix" ], [ "?" ], [ "list" ], [ "part", "id" ], [ "and" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "part", "NN" ], [ "fault", "NN" ], [ "requires", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "skill", "NN" ], [ "to", "TO" ], [ "fix", "VB" ], [ "?", "." ], [ "list", "JJ" ], [ "part", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(11) T(2) A(0) C(12) T(2) Sup(0) A(3) C(0) T(11) Filter(18) A(0) C(11) T(2) Root(5) Sel(0) N(0) A(0) C(11) T(11)" }, { "db_id": "assets_maintenance", "query": "SELECT T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.part_name", "FROM", "Parts", "AS", "T1", "JOIN", "Part_Faults", "AS", "T2", "ON", "T1.part_id", "=", "T2.part_id", "GROUP", "BY", "T1.part_name", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "part_name", "from", "parts", "as", "t1", "join", "part_faults", "as", "t2", "on", "t1", ".", "part_id", "=", "t2", ".", "part_id", "group", "by", "t1", ".", "part_name", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Which kind of part has the least number of faults? List the part name.", "question_toks": [ "which", "kind", "of", "part", "ha", "least", "number", "of", "fault", "?", "list", "part", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 56, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, 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, 56, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 11 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "Which", "kind", "of", "part", "has", "the", "least", "number", "of", "faults", "?", "List", "the", "part", "name", "." ], "question_arg": [ [ "which" ], [ "kind" ], [ "of" ], [ "part" ], [ "ha" ], [ "least" ], [ "number" ], [ "of" ], [ "fault" ], [ "?" ], [ "list" ], [ "part", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "kind", "NN" ], [ "of", "IN" ], [ "part", "NN" ], [ "ha", "NN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "fault", "NN" ], [ "?", "." ], [ "list", "JJ" ], [ "part", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(12) T(2) Sup(1) A(3) C(0) T(11) Filter(18) A(0) C(11) T(2) Root(5) Sel(0) N(0) A(0) C(11) T(11)" }, { "db_id": "assets_maintenance", "query": "SELECT T1.engineer_id , T1.first_name , T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 ON T1.engineer_id = T2.engineer_id GROUP BY T1.engineer_id ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.engineer_id", ",", "T1.first_name", ",", "T1.last_name", "FROM", "Maintenance_Engineers", "AS", "T1", "JOIN", "Engineer_Visits", "AS", "T2", "ON", "T1.engineer_id", "=", "T2.engineer_id", "GROUP", "BY", "T1.engineer_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "engineer_id", ",", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "maintenance_engineers", "as", "t1", "join", "engineer_visits", "as", "t2", "on", "t1", ".", "engineer_id", "=", "t2", ".", "engineer_id", "group", "by", "t1", ".", "engineer_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Among those engineers who have visited, which engineer makes the least number of visits? List the engineer id, first name and last name.", "question_toks": [ "among", "those", "engineer", "who", "have", "visited", ",", "which", "engineer", "make", "least", "number", "of", "visit", "?", "list", "engineer", "id", ",", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 49, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 34, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 34, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 49, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "Among", "those", "engineers", "who", "have", "visited", ",", "which", "engineer", "makes", "the", "least", "number", "of", "visits", "?", "List", "the", "engineer", "id", ",", "first", "name", "and", "last", "name", "." ], "question_arg": [ [ "among" ], [ "those" ], [ "engineer" ], [ "who" ], [ "have" ], [ "visited" ], [ "," ], [ "which" ], [ "engineer" ], [ "make" ], [ "least" ], [ "number" ], [ "of" ], [ "visit" ], [ "?" ], [ "list" ], [ "engineer", "id" ], [ "," ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "among", "IN" ], [ "those", "DT" ], [ "engineer", "NNS" ], [ "who", "WP" ], [ "have", "VBP" ], [ "visited", "VBN" ], [ ",", "," ], [ "which", "WDT" ], [ "engineer", "VBP" ], [ "make", "VB" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "visit", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "engineer", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(31) T(7) A(0) C(32) T(7) A(0) C(33) T(7) Sup(1) A(3) C(0) T(10) Filter(18) A(0) C(31) T(7) Root(5) Sel(0) N(0) A(0) C(31) T(10)" }, { "db_id": "assets_maintenance", "query": "SELECT T1.staff_name , T3.first_name , T3.last_name FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id", "query_toks": [ "SELECT", "T1.staff_name", ",", "T3.first_name", ",", "T3.last_name", "FROM", "Staff", "AS", "T1", "JOIN", "Engineer_Visits", "AS", "T2", "ON", "T1.staff_id", "=", "T2.contact_staff_id", "JOIN", "Maintenance_Engineers", "AS", "T3", "ON", "T2.engineer_id", "=", "T3.engineer_id" ], "query_toks_no_value": [ "select", "t1", ".", "staff_name", ",", "t3", ".", "first_name", ",", "t3", ".", "last_name", "from", "staff", "as", "t1", "join", "engineer_visits", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "contact_staff_id", "join", "maintenance_engineers", "as", "t3", "on", "t2", ".", "engineer_id", "=", "t3", ".", "engineer_id" ], "question": "Which staff have contacted which engineers? List the staff name and the engineer first name and last name.", "question_toks": [ "which", "staff", "have", "contacted", "which", "engineer", "?", "list", "staff", "name", "and", "engineer", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 48, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 19, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 48, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "Which", "staff", "have", "contacted", "which", "engineers", "?", "List", "the", "staff", "name", "and", "the", "engineer", "first", "name", "and", "last", "name", "." ], "question_arg": [ [ "which" ], [ "staff" ], [ "have" ], [ "contacted" ], [ "which" ], [ "engineer" ], [ "?" ], [ "list" ], [ "staff", "name" ], [ "and" ], [ "engineer" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "staff", "NN" ], [ "have", "VBP" ], [ "contacted", "VBN" ], [ "which", "WDT" ], [ "engineer", "NN" ], [ "?", "." ], [ "list", "JJ" ], [ "staff", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "engineer", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(20) T(4) A(0) C(32) T(7) A(0) C(33) T(7) Filter(18) A(0) C(19) T(4) Root(5) Sel(0) N(0) A(0) C(41) T(10)" }, { "db_id": "assets_maintenance", "query": "SELECT T1.fault_log_entry_id , T1.fault_description , T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.fault_log_entry_id", ",", "T1.fault_description", ",", "T1.fault_log_entry_datetime", "FROM", "Fault_Log", "AS", "T1", "JOIN", "Fault_Log_Parts", "AS", "T2", "ON", "T1.fault_log_entry_id", "=", "T2.fault_log_entry_id", "GROUP", "BY", "T1.fault_log_entry_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "fault_log_entry_id", ",", "t1", ".", "fault_description", ",", "t1", ".", "fault_log_entry_datetime", "from", "fault_log", "as", "t1", "join", "fault_log_parts", "as", "t2", "on", "t1", ".", "fault_log_entry_id", "=", "t2", ".", "fault_log_entry_id", "group", "by", "t1", ".", "fault_log_entry_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which fault log included the most number of faulty parts? List the fault log id, description and record time.", "question_toks": [ "which", "fault", "log", "included", "most", "number", "of", "faulty", "part", "?", "list", "fault", "log", "id", ",", "description", "and", "record", "time", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 60, false ], null ] ], "table_units": [ [ "table_unit", 9 ], [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 41, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 41, false ], null ] ], [ 0, [ 0, [ 0, 45, false ], null ] ], [ 0, [ 0, [ 0, 44, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 41, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 60, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "Which", "fault", "log", "included", "the", "most", "number", "of", "faulty", "parts", "?", "List", "the", "fault", "log", "id", ",", "description", "and", "record", "time", "." ], "question_arg": [ [ "which" ], [ "fault", "log" ], [ "included" ], [ "most" ], [ "number" ], [ "of" ], [ "faulty" ], [ "part" ], [ "?" ], [ "list" ], [ "fault", "log" ], [ "id" ], [ "," ], [ "description" ], [ "and" ], [ "record" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "fault", "NN" ], [ "log", "NN" ], [ "included", "VBD" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "faulty", "JJ" ], [ "part", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "fault", "NN" ], [ "log", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "description", "NN" ], [ "and", "CC" ], [ "record", "NN" ], [ "time", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(35) T(9) A(0) C(38) T(9) A(0) C(37) T(9) Sup(0) A(3) C(0) T(12) Filter(18) A(0) C(35) T(9) Root(5) Sel(0) N(0) A(0) C(35) T(12)" }, { "db_id": "assets_maintenance", "query": "SELECT T1.skill_id , T1.skill_description FROM Skills AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.skill_id = T2.skill_id GROUP BY T1.skill_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.skill_id", ",", "T1.skill_description", "FROM", "Skills", "AS", "T1", "JOIN", "Skills_Required_To_Fix", "AS", "T2", "ON", "T1.skill_id", "=", "T2.skill_id", "GROUP", "BY", "T1.skill_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "skill_id", ",", "t1", ".", "skill_description", "from", "skills", "as", "t1", "join", "skills_required_to_fix", "as", "t2", "on", "t1", ".", "skill_id", "=", "t2", ".", "skill_id", "group", "by", "t1", ".", "skill_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which skill is used in fixing the most number of faults? List the skill id and description.", "question_toks": [ "which", "skill", "is", "used", "in", "fixing", "most", "number", "of", "fault", "?", "list", "skill", "id", "and", "description", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 64, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 13 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 16, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 64, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 13 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "Which", "skill", "is", "used", "in", "fixing", "the", "most", "number", "of", "faults", "?", "List", "the", "skill", "id", "and", "description", "." ], "question_arg": [ [ "which" ], [ "skill" ], [ "is" ], [ "used" ], [ "in" ], [ "fixing" ], [ "most" ], [ "number" ], [ "of" ], [ "fault" ], [ "?" ], [ "list" ], [ "skill", "id" ], [ "and" ], [ "description" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "skill", "NN" ], [ "is", "VBZ" ], [ "used", "VBN" ], [ "in", "IN" ], [ "fixing", "VBG" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "fault", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "skill", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "description", "NN" ], [ ".", "." ] ], "values": [ "Skilled" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(16) T(3) A(0) C(18) T(3) Sup(0) A(3) C(0) T(13) Filter(18) A(0) C(16) T(3) Root(5) Sel(0) N(0) A(0) C(16) T(13)" }, { "db_id": "assets_maintenance", "query": "SELECT DISTINCT asset_model FROM Assets", "query_toks": [ "SELECT", "DISTINCT", "asset_model", "FROM", "Assets" ], "query_toks_no_value": [ "select", "distinct", "asset_model", "from", "assets" ], "question": "What are all the distinct asset models?", "question_toks": [ "what", "are", "all", "distinct", "asset", "model", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "What", "are", "all", "the", "distinct", "asset", "models", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "distinct" ], [ "asset", "model" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "asset", "NN" ], [ "model", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(27) T(5)" }, { "db_id": "assets_maintenance", "query": "SELECT asset_make , asset_model , asset_details FROM Assets ORDER BY asset_disposed_date ASC", "query_toks": [ "SELECT", "asset_make", ",", "asset_model", ",", "asset_details", "FROM", "Assets", "ORDER", "BY", "asset_disposed_date", "ASC" ], "query_toks_no_value": [ "select", "asset_make", ",", "asset_model", ",", "asset_details", "from", "assets", "order", "by", "asset_disposed_date", "asc" ], "question": "List the all the assets make, model, details by the disposed date ascendingly.", "question_toks": [ "list", "all", "asset", "make", ",", "model", ",", "detail", "by", "disposed", "date", "ascendingly", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 30, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "List", "the", "all", "the", "assets", "make", ",", "model", ",", "details", "by", "the", "disposed", "date", "ascendingly", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "asset", "make" ], [ "," ], [ "model" ], [ "," ], [ "detail" ], [ "by" ], [ "asset", "disposed", "date" ], [ "ascendingly" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "asset", "NN" ], [ "make", "VBP" ], [ ",", "," ], [ "model", "NN" ], [ ",", "," ], [ "detail", "NN" ], [ "by", "IN" ], [ "disposed", "JJ" ], [ "date", "NN" ], [ "ascendingly", "RB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(26) T(5) A(0) C(27) T(5) A(0) C(25) T(5) Order(1) A(0) C(29) T(5)" }, { "db_id": "assets_maintenance", "query": "SELECT part_id , chargeable_amount FROM Parts ORDER BY chargeable_amount ASC LIMIT 1", "query_toks": [ "SELECT", "part_id", ",", "chargeable_amount", "FROM", "Parts", "ORDER", "BY", "chargeable_amount", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "part_id", ",", "chargeable_amount", "from", "parts", "order", "by", "chargeable_amount", "asc", "limit", "value" ], "question": "Which part has the least chargeable amount? List the part id and amount.", "question_toks": [ "which", "part", "ha", "least", "chargeable", "amount", "?", "list", "part", "id", "and", "amount", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "Which", "part", "has", "the", "least", "chargeable", "amount", "?", "List", "the", "part", "id", "and", "amount", "." ], "question_arg": [ [ "which" ], [ "part" ], [ "ha" ], [ "least" ], [ "chargeable", "amount" ], [ "?" ], [ "list" ], [ "part", "id" ], [ "and" ], [ "amount" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "part", "NN" ], [ "ha", "NN" ], [ "least", "RBS" ], [ "chargeable", "JJ" ], [ "amount", "NN" ], [ "?", "." ], [ "list", "JJ" ], [ "part", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "amount", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(11) T(2) A(0) C(14) T(2) Sup(1) A(0) C(14) T(2)" }, { "db_id": "assets_maintenance", "query": "SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id ORDER BY T2.contract_start_date ASC LIMIT 1", "query_toks": [ "SELECT", "T1.company_name", "FROM", "Third_Party_Companies", "AS", "T1", "JOIN", "Maintenance_Contracts", "AS", "T2", "ON", "T1.company_id", "=", "T2.maintenance_contract_company_id", "ORDER", "BY", "T2.contract_start_date", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "company_name", "from", "third_party_companies", "as", "t1", "join", "maintenance_contracts", "as", "t2", "on", "t1", ".", "company_id", "=", "t2", ".", "maintenance_contract_company_id", "order", "by", "t2", ".", "contract_start_date", "asc", "limit", "value" ], "question": "Which company started the earliest the maintenance contract? Show the company name.", "question_toks": [ "which", "company", "started", "earliest", "maintenance", "contract", "?", "show", "company", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "Which", "company", "started", "the", "earliest", "the", "maintenance", "contract", "?", "Show", "the", "company", "name", "." ], "question_arg": [ [ "which" ], [ "company" ], [ "started" ], [ "earliest" ], [ "maintenance", "contract" ], [ "?" ], [ "show" ], [ "company", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "company", "NN" ], [ "started", "VBD" ], [ "earliest", "JJS" ], [ "maintenance", "NN" ], [ "contract", "NN" ], [ "?", "." ], [ "show", "NN" ], [ "company", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Maintenance Contractor" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(3) T(0) Sup(1) A(0) C(8) T(1)" }, { "db_id": "assets_maintenance", "query": "SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id ORDER BY T2.contract_end_date DESC LIMIT 1", "query_toks": [ "SELECT", "T1.company_name", "FROM", "Third_Party_Companies", "AS", "T1", "JOIN", "Maintenance_Contracts", "AS", "T2", "ON", "T1.company_id", "=", "T2.maintenance_contract_company_id", "ORDER", "BY", "T2.contract_end_date", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "company_name", "from", "third_party_companies", "as", "t1", "join", "maintenance_contracts", "as", "t2", "on", "t1", ".", "company_id", "=", "t2", ".", "maintenance_contract_company_id", "order", "by", "t2", ".", "contract_end_date", "desc", "limit", "value" ], "question": "What is the name of the company who concluded its contracts most recently?", "question_toks": [ "what", "is", "name", "of", "company", "who", "concluded", "it", "contract", "most", "recently", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "company", "who", "concluded", "its", "contracts", "most", "recently", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "company" ], [ "who" ], [ "concluded" ], [ "it" ], [ "contract" ], [ "most" ], [ "recently" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "who", "WP" ], [ "concluded", "VBD" ], [ "it", "PRP" ], [ "contract", "NN" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "?", "." ] ], "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": "assets_maintenance", "query": "SELECT gender FROM staff GROUP BY gender ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "gender", "FROM", "staff", "GROUP", "BY", "gender", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "gender", "from", "staff", "group", "by", "gender", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which gender makes up the majority of the staff?", "question_toks": [ "which", "gender", "make", "up", "majority", "of", "staff", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "Which", "gender", "makes", "up", "the", "majority", "of", "the", "staff", "?" ], "question_arg": [ [ "which" ], [ "gender" ], [ "make" ], [ "up" ], [ "majority" ], [ "of" ], [ "staff" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "gender", "NN" ], [ "make", "VBP" ], [ "up", "RP" ], [ "majority", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(21) T(4) Sup(0) A(3) C(0) T(4)" }, { "db_id": "assets_maintenance", "query": "SELECT T1.staff_name , count(*) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id GROUP BY T1.staff_name", "query_toks": [ "SELECT", "T1.staff_name", ",", "count", "(", "*", ")", "FROM", "Staff", "AS", "T1", "JOIN", "Engineer_Visits", "AS", "T2", "ON", "T1.staff_id", "=", "T2.contact_staff_id", "GROUP", "BY", "T1.staff_name" ], "query_toks_no_value": [ "select", "t1", ".", "staff_name", ",", "count", "(", "*", ")", "from", "staff", "as", "t1", "join", "engineer_visits", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "contact_staff_id", "group", "by", "t1", ".", "staff_name" ], "question": "How many engineers did each staff contact? List both the contact staff name and number of engineers contacted.", "question_toks": [ "how", "many", "engineer", "did", "each", "staff", "contact", "?", "list", "both", "contact", "staff", "name", "and", "number", "of", "engineer", "contacted", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 48, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "How", "many", "engineers", "did", "each", "staff", "contact", "?", "List", "both", "the", "contact", "staff", "name", "and", "number", "of", "engineers", "contacted", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "engineer" ], [ "did" ], [ "each" ], [ "staff" ], [ "contact" ], [ "?" ], [ "list" ], [ "both" ], [ "contact", "staff", "id" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "engineer" ], [ "contacted" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "engineer", "NN" ], [ "did", "VBD" ], [ "each", "DT" ], [ "staff", "NN" ], [ "contact", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "both", "DT" ], [ "contact", "JJ" ], [ "staff", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "engineer", "NN" ], [ "contacted", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(20) T(4) A(3) C(0) T(10)" }, { "db_id": "assets_maintenance", "query": "SELECT asset_model FROM Assets WHERE asset_id NOT IN (SELECT asset_id FROM Fault_Log)", "query_toks": [ "SELECT", "asset_model", "FROM", "Assets", "WHERE", "asset_id", "NOT", "IN", "(", "SELECT", "asset_id", "FROM", "Fault_Log", ")" ], "query_toks_no_value": [ "select", "asset_model", "from", "assets", "where", "asset_id", "not", "in", "(", "select", "asset_id", "from", "fault_log", ")" ], "question": "Which assets did not incur any fault log? List the asset model.", "question_toks": [ "which", "asset", "did", "not", "incur", "any", "fault", "log", "?", "list", "asset", "model", "." ], "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": null, "where": [ [ true, 8, [ 0, [ 0, 23, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 42, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "maintenance contract id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "asset id", "part id", "engineer id", "company id", "first name", "last name", "other details", "engineer id", "skill id", "fault log entry id", "asset id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "engineer id", "fault log entry id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "part id", "fault short name", "fault description", "other fault details", "fault log entry id", "part fault id", "fault status", "part fault id", "skill id" ], "table_names": [ "third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix" ], "col_set": [ "*", "company id", "company type", "company name", "company address", "other company details", "maintenance contract id", "maintenance contract company id", "contract start date", "contract end date", "other contract details", "part id", "part name", "chargeable yn", "chargeable amount", "other part details", "skill id", "skill code", "skill description", "staff id", "staff name", "gender", "other staff details", "asset id", "supplier company id", "asset details", "asset make", "asset model", "asset acquired date", "asset disposed date", "other asset details", "engineer id", "first name", "last name", "other details", "fault log entry id", "recorded by staff id", "fault log entry datetime", "fault description", "other fault details", "engineer visit id", "contact staff id", "fault status", "visit start datetime", "visit end datetime", "other visit details", "part fault id", "fault short name" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13 ], "keys": { "7": 1, "1": 1, "25": 1, "24": 6, "6": 6, "32": 23, "23": 23, "33": 11, "11": 11, "35": 1, "40": 16, "16": 16, "39": 34, "34": 34, "43": 19, "19": 19, "42": 23, "48": 19, "49": 34, "50": 41, "41": 41, "56": 11, "60": 41, "61": 55, "55": 55, "64": 16, "63": 55, "47": 47 }, "origin_question_toks": [ "Which", "assets", "did", "not", "incur", "any", "fault", "log", "?", "List", "the", "asset", "model", "." ], "question_arg": [ [ "which" ], [ "asset" ], [ "did" ], [ "not" ], [ "incur" ], [ "any" ], [ "fault", "log" ], [ "?" ], [ "list" ], [ "asset", "model" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "asset", "NN" ], [ "did", "VBD" ], [ "not", "RB" ], [ "incur", "VB" ], [ "any", "DT" ], [ "fault", "NN" ], [ "log", "NN" ], [ "?", "." ], [ "list", "JJ" ], [ "asset", "NN" ], [ "model", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(27) T(5) Filter(19) A(0) C(23) T(5) Root(5) Sel(0) N(0) A(0) C(23) T(9)" }, { "db_id": "station_weather", "query": "SELECT local_authority , services FROM station", "query_toks": [ "SELECT", "local_authority", ",", "services", "FROM", "station" ], "query_toks_no_value": [ "select", "local_authority", ",", "services", "from", "station" ], "question": "list the local authorities and services provided by all stations.", "question_toks": [ "list", "local", "authority", "and", "service", "provided", "by", "all", "station", "." ], "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, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "id", "network name", "services", "local authority", "train id", "station id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "table_names": [ "train", "station", "route", "weekly weather" ], "col_set": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "network name", "services", "local authority", "train id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "13": 8, "8": 8, "12": 12, "1": 1, "14": 14 }, "origin_question_toks": [ "list", "the", "local", "authorities", "and", "services", "provided", "by", "all", "stations", "." ], "question_arg": [ [ "list" ], [ "local", "authority" ], [ "and" ], [ "service" ], [ "provided" ], [ "by" ], [ "all" ], [ "station" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "local", "JJ" ], [ "authority", "NN" ], [ "and", "CC" ], [ "service", "NN" ], [ "provided", "VBN" ], [ "by", "IN" ], [ "all", "DT" ], [ "station", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(10) T(1) A(0) C(9) T(1)" }, { "db_id": "station_weather", "query": "SELECT train_number , name FROM train ORDER BY TIME", "query_toks": [ "SELECT", "train_number", ",", "name", "FROM", "train", "ORDER", "BY", "TIME" ], "query_toks_no_value": [ "select", "train_number", ",", "name", "from", "train", "order", "by", "time" ], "question": "show all train numbers and names ordered by their time from early to late.", "question_toks": [ "show", "all", "train", "number", "and", "name", "ordered", "by", "their", "time", "from", "early", "to", "late", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "id", "network name", "services", "local authority", "train id", "station id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "table_names": [ "train", "station", "route", "weekly weather" ], "col_set": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "network name", "services", "local authority", "train id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "13": 8, "8": 8, "12": 12, "1": 1, "14": 14 }, "origin_question_toks": [ "show", "all", "train", "numbers", "and", "names", "ordered", "by", "their", "time", "from", "early", "to", "late", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "train", "number" ], [ "and" ], [ "name" ], [ "ordered" ], [ "by" ], [ "their" ], [ "time" ], [ "from" ], [ "early" ], [ "to" ], [ "late" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "train", "VBP" ], [ "number", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "time", "NN" ], [ "from", "IN" ], [ "early", "RB" ], [ "to", "TO" ], [ "late", "VB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Order(1) A(0) C(6) T(0)" }, { "db_id": "station_weather", "query": "SELECT TIME , train_number FROM train WHERE destination = 'Chennai' ORDER BY TIME", "query_toks": [ "SELECT", "TIME", ",", "train_number", "FROM", "train", "WHERE", "destination", "=", "'Chennai", "'", "ORDER", "BY", "TIME" ], "query_toks_no_value": [ "select", "time", ",", "train_number", "from", "train", "where", "destination", "=", "value", "order", "by", "time" ], "question": "Give me the times and numbers of all trains that go to Chennai, ordered by time.", "question_toks": [ "give", "me", "time", "and", "number", "of", "all", "train", "that", "go", "to", "chennai", ",", "ordered", "by", "time", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Chennai\"", null ] ] }, "names": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "id", "network name", "services", "local authority", "train id", "station id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "table_names": [ "train", "station", "route", "weekly weather" ], "col_set": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "network name", "services", "local authority", "train id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "13": 8, "8": 8, "12": 12, "1": 1, "14": 14 }, "origin_question_toks": [ "Give", "me", "the", "times", "and", "numbers", "of", "all", "trains", "that", "go", "to", "Chennai", ",", "ordered", "by", "time", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "time" ], [ "and" ], [ "number" ], [ "of" ], [ "all" ], [ "train" ], [ "that" ], [ "go" ], [ "to" ], [ "chennai" ], [ "," ], [ "ordered" ], [ "by" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "time", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "train", "NN" ], [ "that", "WDT" ], [ "go", "VBP" ], [ "to", "TO" ], [ "chennai", "VB" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "time", "NN" ], [ ".", "." ] ], "values": [ "Chennai" ], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(6) T(0) A(0) C(2) T(0) Filter(2) A(0) C(5) T(0) V(0) Order(1) A(0) C(6) T(0)" }, { "db_id": "station_weather", "query": "SELECT count(*) FROM train WHERE name LIKE \"%Express%\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "train", "WHERE", "name", "LIKE", "``", "%", "Express", "%", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "train", "where", "name", "like", "value" ], "question": "How many trains have 'Express' in their names?", "question_toks": [ "how", "many", "train", "have", "'", "express", "'", "in", "their", "name", "?" ], "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, 9, [ 0, [ 0, 3, false ], null ], "\"%Express%\"", null ] ] }, "names": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "id", "network name", "services", "local authority", "train id", "station id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "table_names": [ "train", "station", "route", "weekly weather" ], "col_set": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "network name", "services", "local authority", "train id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "13": 8, "8": 8, "12": 12, "1": 1, "14": 14 }, "origin_question_toks": [ "How", "many", "trains", "have", "'Express", "'", "in", "their", "names", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "train" ], [ "have" ], [ "'" ], [ "express" ], [ "'" ], [ "in" ], [ "their" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "train", "VBP" ], [ "have", "VBP" ], [ "'", "''" ], [ "express", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "Express" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(9) A(0) C(3) T(0) V(0)" }, { "db_id": "station_weather", "query": "SELECT train_number , TIME FROM train WHERE origin = 'Chennai' AND destination = 'Guruvayur'", "query_toks": [ "SELECT", "train_number", ",", "TIME", "FROM", "train", "WHERE", "origin", "=", "'Chennai", "'", "AND", "destination", "=", "'Guruvayur", "'" ], "query_toks_no_value": [ "select", "train_number", ",", "time", "from", "train", "where", "origin", "=", "value", "and", "destination", "=", "value" ], "question": "Find the number and time of the train that goes from Chennai to Guruvayur.", "question_toks": [ "find", "number", "and", "time", "of", "train", "that", "go", "from", "chennai", "to", "guruvayur", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Chennai\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Guruvayur\"", null ] ] }, "names": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "id", "network name", "services", "local authority", "train id", "station id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "table_names": [ "train", "station", "route", "weekly weather" ], "col_set": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "network name", "services", "local authority", "train id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "13": 8, "8": 8, "12": 12, "1": 1, "14": 14 }, "origin_question_toks": [ "Find", "the", "number", "and", "time", "of", "the", "train", "that", "goes", "from", "Chennai", "to", "Guruvayur", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "and" ], [ "time" ], [ "of" ], [ "train" ], [ "that" ], [ "go" ], [ "from" ], [ "chennai" ], [ "to" ], [ "guruvayur" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "and", "CC" ], [ "time", "NN" ], [ "of", "IN" ], [ "train", "NN" ], [ "that", "WDT" ], [ "go", "VBP" ], [ "from", "IN" ], [ "chennai", "NN" ], [ "to", "TO" ], [ "guruvayur", "VB" ], [ ".", "." ] ], "values": [ "Chennai", "Guruvayur" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(6) T(0) Filter(0) Filter(2) A(0) C(4) T(0) V(0) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "station_weather", "query": "SELECT origin , count(*) FROM train GROUP BY origin", "query_toks": [ "SELECT", "origin", ",", "count", "(", "*", ")", "FROM", "train", "GROUP", "BY", "origin" ], "query_toks_no_value": [ "select", "origin", ",", "count", "(", "*", ")", "from", "train", "group", "by", "origin" ], "question": "Find the number of trains starting from each origin.", "question_toks": [ "find", "number", "of", "train", "starting", "from", "each", "origin", "." ], "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": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "id", "network name", "services", "local authority", "train id", "station id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "table_names": [ "train", "station", "route", "weekly weather" ], "col_set": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "network name", "services", "local authority", "train id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "13": 8, "8": 8, "12": 12, "1": 1, "14": 14 }, "origin_question_toks": [ "Find", "the", "number", "of", "trains", "starting", "from", "each", "origin", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "train" ], [ "starting" ], [ "from" ], [ "each" ], [ "origin" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "train", "NN" ], [ "starting", "VBG" ], [ "from", "IN" ], [ "each", "DT" ], [ "origin", "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": "station_weather", "query": "SELECT t1.name FROM train AS t1 JOIN route AS t2 ON t1.id = t2.train_id GROUP BY t2.train_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", "FROM", "train", "AS", "t1", "JOIN", "route", "AS", "t2", "ON", "t1.id", "=", "t2.train_id", "GROUP", "BY", "t2.train_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "train", "as", "t1", "join", "route", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "train_id", "group", "by", "t2", ".", "train_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name of the train whose route runs through greatest number of stations.", "question_toks": [ "find", "name", "of", "train", "whose", "route", "run", "through", "greatest", "number", "of", "station", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 12, 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, 12, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "id", "network name", "services", "local authority", "train id", "station id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "table_names": [ "train", "station", "route", "weekly weather" ], "col_set": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "network name", "services", "local authority", "train id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "13": 8, "8": 8, "12": 12, "1": 1, "14": 14 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "train", "whose", "route", "runs", "through", "greatest", "number", "of", "stations", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "train" ], [ "whose" ], [ "route" ], [ "run" ], [ "through" ], [ "greatest" ], [ "number" ], [ "of" ], [ "station" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "train", "NN" ], [ "whose", "WP$" ], [ "route", "NN" ], [ "run", "VBP" ], [ "through", "IN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "station", "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(11) T(2)" }, { "db_id": "station_weather", "query": "SELECT count(*) , t1.network_name , t1.services FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "t1.network_name", ",", "t1.services", "FROM", "station", "AS", "t1", "JOIN", "route", "AS", "t2", "ON", "t1.id", "=", "t2.station_id", "GROUP", "BY", "t2.station_id" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "network_name", ",", "t1", ".", "services", "from", "station", "as", "t1", "join", "route", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id" ], "question": "Find the number of trains for each station, as well as the station network name and services.", "question_toks": [ "find", "number", "of", "train", "for", "each", "station", ",", "a", "well", "a", "station", "network", "name", "and", "service", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "id", "network name", "services", "local authority", "train id", "station id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "table_names": [ "train", "station", "route", "weekly weather" ], "col_set": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "network name", "services", "local authority", "train id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "13": 8, "8": 8, "12": 12, "1": 1, "14": 14 }, "origin_question_toks": [ "Find", "the", "number", "of", "trains", "for", "each", "station", ",", "as", "well", "as", "the", "station", "network", "name", "and", "services", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "train" ], [ "for" ], [ "each" ], [ "station" ], [ "," ], [ "a" ], [ "well" ], [ "a" ], [ "station" ], [ "network", "name" ], [ "and" ], [ "service" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "train", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "station", "NN" ], [ ",", "," ], [ "a", "DT" ], [ "well", "RB" ], [ "a", "DT" ], [ "station", "NN" ], [ "network", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "service", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(3) C(0) T(2) A(0) C(8) T(1) A(0) C(9) T(1)" }, { "db_id": "station_weather", "query": "SELECT avg(high_temperature) , day_of_week FROM weekly_weather GROUP BY day_of_week", "query_toks": [ "SELECT", "avg", "(", "high_temperature", ")", ",", "day_of_week", "FROM", "weekly_weather", "GROUP", "BY", "day_of_week" ], "query_toks_no_value": [ "select", "avg", "(", "high_temperature", ")", ",", "day_of_week", "from", "weekly_weather", "group", "by", "day_of_week" ], "question": "What is the average high temperature for each day of week?", "question_toks": [ "what", "is", "average", "high", "temperature", "for", "each", "day", "of", "week", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "id", "network name", "services", "local authority", "train id", "station id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "table_names": [ "train", "station", "route", "weekly weather" ], "col_set": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "network name", "services", "local authority", "train id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "13": 8, "8": 8, "12": 12, "1": 1, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "average", "high", "temperature", "for", "each", "day", "of", "week", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "high", "temperature" ], [ "for" ], [ "each" ], [ "day", "of", "week" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "high", "JJ" ], [ "temperature", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "day", "NN" ], [ "of", "IN" ], [ "week", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(14) T(3) A(0) C(13) T(3)" }, { "db_id": "station_weather", "query": "SELECT max(t1.low_temperature) , avg(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id WHERE t2.network_name = \"Amersham\"", "query_toks": [ "SELECT", "max", "(", "t1.low_temperature", ")", ",", "avg", "(", "t1.precipitation", ")", "FROM", "weekly_weather", "AS", "t1", "JOIN", "station", "AS", "t2", "ON", "t1.station_id", "=", "t2.id", "WHERE", "t2.network_name", "=", "``", "Amersham", "''" ], "query_toks_no_value": [ "select", "max", "(", "t1", ".", "low_temperature", ")", ",", "avg", "(", "t1", ".", "precipitation", ")", "from", "weekly_weather", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "station_id", "=", "t2", ".", "id", "where", "t2", ".", "network_name", "=", "value" ], "question": "Give me the maximum low temperature and average precipitation at the Amersham station.", "question_toks": [ "give", "me", "maximum", "low", "temperature", "and", "average", "precipitation", "at", "amersham", "station", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 17, false ], null ] ], [ 5, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Amersham\"", null ] ] }, "names": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "id", "network name", "services", "local authority", "train id", "station id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "table_names": [ "train", "station", "route", "weekly weather" ], "col_set": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "network name", "services", "local authority", "train id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "13": 8, "8": 8, "12": 12, "1": 1, "14": 14 }, "origin_question_toks": [ "Give", "me", "the", "maximum", "low", "temperature", "and", "average", "precipitation", "at", "the", "Amersham", "station", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "maximum" ], [ "low", "temperature" ], [ "and" ], [ "average" ], [ "precipitation" ], [ "at" ], [ "amersham" ], [ "station" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "maximum", "JJ" ], [ "low", "JJ" ], [ "temperature", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "precipitation", "NN" ], [ "at", "IN" ], [ "amersham", "JJ" ], [ "station", "NN" ], [ ".", "." ] ], "values": [ "Amersham" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(15) T(3) A(5) C(16) T(3) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "station_weather", "query": "SELECT t3.name , t3.time FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = \"Chiltern\"", "query_toks": [ "SELECT", "t3.name", ",", "t3.time", "FROM", "station", "AS", "t1", "JOIN", "route", "AS", "t2", "ON", "t1.id", "=", "t2.station_id", "JOIN", "train", "AS", "t3", "ON", "t2.train_id", "=", "t3.id", "WHERE", "t1.local_authority", "=", "``", "Chiltern", "''" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t3", ".", "time", "from", "station", "as", "t1", "join", "route", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "join", "train", "as", "t3", "on", "t2", ".", "train_id", "=", "t3", ".", "id", "where", "t1", ".", "local_authority", "=", "value" ], "question": "Find names and times of trains that run through stations for the local authority Chiltern.", "question_toks": [ "find", "name", "and", "time", "of", "train", "that", "run", "through", "station", "for", "local", "authority", "chiltern", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, 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, 11, false ], null ], "\"Chiltern\"", null ] ] }, "names": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "id", "network name", "services", "local authority", "train id", "station id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "table_names": [ "train", "station", "route", "weekly weather" ], "col_set": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "network name", "services", "local authority", "train id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "13": 8, "8": 8, "12": 12, "1": 1, "14": 14 }, "origin_question_toks": [ "Find", "names", "and", "times", "of", "trains", "that", "run", "through", "stations", "for", "the", "local", "authority", "Chiltern", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "time" ], [ "of" ], [ "train" ], [ "that" ], [ "run" ], [ "through" ], [ "station" ], [ "for" ], [ "local", "authority" ], [ "chiltern" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "time", "NN" ], [ "of", "IN" ], [ "train", "NN" ], [ "that", "IN" ], [ "run", "VBP" ], [ "through", "IN" ], [ "station", "NN" ], [ "for", "IN" ], [ "local", "JJ" ], [ "authority", "NN" ], [ "chiltern", "NN" ], [ ".", "." ] ], "values": [ "Chiltern" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(6) T(0) Filter(0) Filter(18) A(0) C(1) T(1) Root(5) Sel(0) N(0) A(0) C(12) T(2) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "station_weather", "query": "SELECT count(DISTINCT services) FROM station", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "services", ")", "FROM", "station" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "services", ")", "from", "station" ], "question": "How many different services are provided by all stations?", "question_toks": [ "how", "many", "different", "service", "are", "provided", "by", "all", "station", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "id", "network name", "services", "local authority", "train id", "station id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "table_names": [ "train", "station", "route", "weekly weather" ], "col_set": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "network name", "services", "local authority", "train id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "13": 8, "8": 8, "12": 12, "1": 1, "14": 14 }, "origin_question_toks": [ "How", "many", "different", "services", "are", "provided", "by", "all", "stations", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "service" ], [ "are" ], [ "provided" ], [ "by" ], [ "all" ], [ "station" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "service", "NN" ], [ "are", "VBP" ], [ "provided", "VBN" ], [ "by", "IN" ], [ "all", "DT" ], [ "station", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(9) T(1)" }, { "db_id": "station_weather", "query": "SELECT t2.id , t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id ORDER BY avg(high_temperature) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.id", ",", "t2.local_authority", "FROM", "weekly_weather", "AS", "t1", "JOIN", "station", "AS", "t2", "ON", "t1.station_id", "=", "t2.id", "GROUP", "BY", "t1.station_id", "ORDER", "BY", "avg", "(", "high_temperature", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "id", ",", "t2", ".", "local_authority", "from", "weekly_weather", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "station_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "station_id", "order", "by", "avg", "(", "high_temperature", ")", "desc", "limit", "value" ], "question": "Find the id and local authority of the station with has the highest average high temperature.", "question_toks": [ "find", "id", "and", "local", "authority", "of", "station", "with", "ha", "highest", "average", "high", "temperature", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "id", "network name", "services", "local authority", "train id", "station id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "table_names": [ "train", "station", "route", "weekly weather" ], "col_set": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "network name", "services", "local authority", "train id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "13": 8, "8": 8, "12": 12, "1": 1, "14": 14 }, "origin_question_toks": [ "Find", "the", "id", "and", "local", "authority", "of", "the", "station", "with", "has", "the", "highest", "average", "high", "temperature", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "local", "authority" ], [ "of" ], [ "station" ], [ "with" ], [ "ha" ], [ "highest" ], [ "average" ], [ "high", "temperature" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "local", "JJ" ], [ "authority", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ "with", "IN" ], [ "ha", "JJ" ], [ "highest", "JJS" ], [ "average", "JJ" ], [ "high", "JJ" ], [ "temperature", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(1) A(0) C(10) T(1) Sup(0) A(5) C(14) T(3)" }, { "db_id": "station_weather", "query": "SELECT t2.id , t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id HAVING max(t1.precipitation) > 50", "query_toks": [ "SELECT", "t2.id", ",", "t2.local_authority", "FROM", "weekly_weather", "AS", "t1", "JOIN", "station", "AS", "t2", "ON", "t1.station_id", "=", "t2.id", "GROUP", "BY", "t1.station_id", "HAVING", "max", "(", "t1.precipitation", ")", ">", "50" ], "query_toks_no_value": [ "select", "t2", ".", "id", ",", "t2", ".", "local_authority", "from", "weekly_weather", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "station_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "station_id", "having", "max", "(", "t1", ".", "precipitation", ")", ">", "value" ], "question": "Find the id and local authority of the station whose maximum precipitation is higher than 50.", "question_toks": [ "find", "id", "and", "local", "authority", "of", "station", "whose", "maximum", "precipitation", "is", "higher", "than", "50", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [ [ false, 3, [ 0, [ 1, 18, false ], null ], 50.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "id", "network name", "services", "local authority", "train id", "station id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "table_names": [ "train", "station", "route", "weekly weather" ], "col_set": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "network name", "services", "local authority", "train id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "13": 8, "8": 8, "12": 12, "1": 1, "14": 14 }, "origin_question_toks": [ "Find", "the", "id", "and", "local", "authority", "of", "the", "station", "whose", "maximum", "precipitation", "is", "higher", "than", "50", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "local", "authority" ], [ "of" ], [ "station" ], [ "whose" ], [ "maximum" ], [ "precipitation" ], [ "is" ], [ "higher" ], [ "than" ], [ "50" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "local", "JJ" ], [ "authority", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ "whose", "WP$" ], [ "maximum", "JJ" ], [ "precipitation", "NN" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "50", "CD" ], [ ".", "." ] ], "values": [ "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(1) A(0) C(10) T(1) Filter(0) Filter(18) A(0) C(1) T(1) Root(5) Sel(0) N(0) A(0) C(12) T(3) Filter(5) A(1) C(16) T(3) V(0)" }, { "db_id": "station_weather", "query": "SELECT min(low_temperature) , max(wind_speed_mph) FROM weekly_weather", "query_toks": [ "SELECT", "min", "(", "low_temperature", ")", ",", "max", "(", "wind_speed_mph", ")", "FROM", "weekly_weather" ], "query_toks_no_value": [ "select", "min", "(", "low_temperature", ")", ",", "max", "(", "wind_speed_mph", ")", "from", "weekly_weather" ], "question": "show the lowest low temperature and highest wind speed in miles per hour.", "question_toks": [ "show", "lowest", "low", "temperature", "and", "highest", "wind", "speed", "in", "mile", "per", "hour", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 17, false ], null ] ], [ 1, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "id", "network name", "services", "local authority", "train id", "station id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "table_names": [ "train", "station", "route", "weekly weather" ], "col_set": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "network name", "services", "local authority", "train id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "13": 8, "8": 8, "12": 12, "1": 1, "14": 14 }, "origin_question_toks": [ "show", "the", "lowest", "low", "temperature", "and", "highest", "wind", "speed", "in", "miles", "per", "hour", "." ], "question_arg": [ [ "show" ], [ "lowest" ], [ "low", "temperature" ], [ "and" ], [ "highest" ], [ "wind", "speed", "mph" ], [ "in" ], [ "mile" ], [ "per" ], [ "hour" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "lowest", "JJS" ], [ "low", "JJ" ], [ "temperature", "NN" ], [ "and", "CC" ], [ "highest", "JJS" ], [ "wind", "NN" ], [ "speed", "NN" ], [ "in", "IN" ], [ "mile", "NN" ], [ "per", "IN" ], [ "hour", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(2) C(15) T(3) A(1) C(17) T(3)" }, { "db_id": "station_weather", "query": "SELECT origin FROM train GROUP BY origin HAVING count(*) > 1", "query_toks": [ "SELECT", "origin", "FROM", "train", "GROUP", "BY", "origin", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "origin", "from", "train", "group", "by", "origin", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the origins from which more than 1 train starts.", "question_toks": [ "find", "origin", "from", "which", "more", "than", "1", "train", "start", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "id", "network name", "services", "local authority", "train id", "station id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "table_names": [ "train", "station", "route", "weekly weather" ], "col_set": [ "*", "id", "train number", "name", "origin", "destination", "time", "interval", "network name", "services", "local authority", "train id", "station id", "day of week", "high temperature", "low temperature", "precipitation", "wind speed mph" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "13": 8, "8": 8, "12": 12, "1": 1, "14": 14 }, "origin_question_toks": [ "Find", "the", "origins", "from", "which", "more", "than", "1", "train", "starts", "." ], "question_arg": [ [ "find" ], [ "origin" ], [ "from" ], [ "which" ], [ "more" ], [ "than" ], [ "1" ], [ "train" ], [ "start" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "origin", "NN" ], [ "from", "IN" ], [ "which", "WDT" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1", "CD" ], [ "train", "JJ" ], [ "start", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "college_1", "query": "SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE DEPT_NAME = \"Accounting\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "professor", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "WHERE", "DEPT_NAME", "=", "``", "Accounting", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "professor", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "where", "dept_name", "=", "value" ], "question": "Find the number of professors in accounting department.", "question_toks": [ "find", "number", "of", "professor", "in", "accounting", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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 ], "\"Accounting\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "number", "of", "professors", "in", "accounting", "department", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "professor" ], [ "in" ], [ "accounting" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "in", "IN" ], [ "accounting", "NN" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "Accounting II", "Accounting", "Accounting I" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(10) T(2) V(1)" }, { "db_id": "college_1", "query": "SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE DEPT_NAME = \"Accounting\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "professor", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "WHERE", "DEPT_NAME", "=", "``", "Accounting", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "professor", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "where", "dept_name", "=", "value" ], "question": "How many professors are in the accounting dept?", "question_toks": [ "how", "many", "professor", "are", "in", "accounting", "dept", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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 ], "\"Accounting\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "professors", "are", "in", "the", "accounting", "dept", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "professor" ], [ "are" ], [ "in" ], [ "accounting" ], [ "dept" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "professor", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "accounting", "VBG" ], [ "dept", "NN" ], [ "?", "." ] ], "values": [ "Accounting I", "Accounting II", "Accounting" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(10) T(2) V(2)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT PROF_NUM) FROM CLASS WHERE CRS_CODE = \"ACCT-211\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "PROF_NUM", ")", "FROM", "CLASS", "WHERE", "CRS_CODE", "=", "``", "ACCT-211", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "prof_num", ")", "from", "class", "where", "crs_code", "=", "value" ], "question": "How many professors are teaching class with code ACCT-211?", "question_toks": [ "how", "many", "professor", "are", "teaching", "class", "with", "code", "acct-211", "?" ], "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": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "professors", "are", "teaching", "class", "with", "code", "ACCT-211", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "professor" ], [ "are" ], [ "teaching" ], [ "class" ], [ "with" ], [ "code" ], [ "acct-211" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "professor", "NN" ], [ "are", "VBP" ], [ "teaching", "VBG" ], [ "class", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "acct-211", "NN" ], [ "?", "." ] ], "values": [ "ACCT", "ACCT-211", "211" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(6) T(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT PROF_NUM) FROM CLASS WHERE CRS_CODE = \"ACCT-211\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "PROF_NUM", ")", "FROM", "CLASS", "WHERE", "CRS_CODE", "=", "``", "ACCT-211", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "prof_num", ")", "from", "class", "where", "crs_code", "=", "value" ], "question": "How many professors teach a class with the code ACCT-211?", "question_toks": [ "how", "many", "professor", "teach", "a", "class", "with", "code", "acct-211", "?" ], "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": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "professors", "teach", "a", "class", "with", "the", "code", "ACCT-211", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "professor" ], [ "teach" ], [ "a" ], [ "class" ], [ "with" ], [ "code" ], [ "acct-211" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "professor", "VBP" ], [ "teach", "VBP" ], [ "a", "DT" ], [ "class", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "acct-211", "NN" ], [ "?", "." ] ], "values": [ "211", "ACCT-211" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(6) T(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "college_1", "query": "SELECT T3.EMP_FNAME , T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM = T3.EMP_NUM WHERE DEPT_NAME = \"Biology\"", "query_toks": [ "SELECT", "T3.EMP_FNAME", ",", "T3.EMP_LNAME", "FROM", "professor", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "JOIN", "employee", "AS", "T3", "ON", "T1.EMP_NUM", "=", "T3.EMP_NUM", "WHERE", "DEPT_NAME", "=", "``", "Biology", "''" ], "query_toks_no_value": [ "select", "t3", ".", "emp_fname", ",", "t3", ".", "emp_lname", "from", "professor", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "join", "employee", "as", "t3", "on", "t1", ".", "emp_num", "=", "t3", ".", "emp_num", "where", "dept_name", "=", "value" ], "question": "What is the first and last name of the professor in biology department?", "question_toks": [ "what", "is", "first", "and", "last", "name", "of", "professor", "in", "biology", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, 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 ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Biology\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "first", "and", "last", "name", "of", "the", "professor", "in", "biology", "department", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "and" ], [ "last" ], [ "name" ], [ "of" ], [ "professor" ], [ "in" ], [ "biology" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "in", "IN" ], [ "biology", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "1", "Biology" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(3) A(0) C(15) T(3) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(5) Filter(2) A(0) C(10) T(2) V(1)" }, { "db_id": "college_1", "query": "SELECT T3.EMP_FNAME , T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM = T3.EMP_NUM WHERE DEPT_NAME = \"Biology\"", "query_toks": [ "SELECT", "T3.EMP_FNAME", ",", "T3.EMP_LNAME", "FROM", "professor", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "JOIN", "employee", "AS", "T3", "ON", "T1.EMP_NUM", "=", "T3.EMP_NUM", "WHERE", "DEPT_NAME", "=", "``", "Biology", "''" ], "query_toks_no_value": [ "select", "t3", ".", "emp_fname", ",", "t3", ".", "emp_lname", "from", "professor", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "join", "employee", "as", "t3", "on", "t1", ".", "emp_num", "=", "t3", ".", "emp_num", "where", "dept_name", "=", "value" ], "question": "What are the first and last name of all biology professors?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "all", "biology", "professor", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, 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 ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Biology\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "name", "of", "all", "biology", "professors", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last" ], [ "name" ], [ "of" ], [ "all" ], [ "biology" ], [ "professor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "biology", "NN" ], [ "professor", "NN" ], [ "?", "." ] ], "values": [ "1", "Biology" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(3) A(0) C(15) T(3) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(5) Filter(2) A(0) C(10) T(2) V(1)" }, { "db_id": "college_1", "query": "SELECT DISTINCT T1.EMP_FNAME , T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE CRS_CODE = \"ACCT-211\"", "query_toks": [ "SELECT", "DISTINCT", "T1.EMP_FNAME", ",", "T1.EMP_DOB", "FROM", "employee", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.EMP_NUM", "=", "T2.PROF_NUM", "WHERE", "CRS_CODE", "=", "``", "ACCT-211", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "emp_fname", ",", "t1", ".", "emp_dob", "from", "employee", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "prof_num", "where", "crs_code", "=", "value" ], "question": "What are the first names and date of birth of professors teaching course ACCT-211?", "question_toks": [ "what", "are", "first", "name", "and", "date", "of", "birth", "of", "professor", "teaching", "course", "acct-211", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "and", "date", "of", "birth", "of", "professors", "teaching", "course", "ACCT-211", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "and" ], [ "date" ], [ "of" ], [ "birth" ], [ "of" ], [ "professor" ], [ "teaching" ], [ "course" ], [ "acct-211" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "birth", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "teaching", "VBG" ], [ "course", "NN" ], [ "acct-211", "NN" ], [ "?", "." ] ], "values": [ "ACCT-211", "1", "211", "James" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(16) T(3) A(0) C(20) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "college_1", "query": "SELECT DISTINCT T1.EMP_FNAME , T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE CRS_CODE = \"ACCT-211\"", "query_toks": [ "SELECT", "DISTINCT", "T1.EMP_FNAME", ",", "T1.EMP_DOB", "FROM", "employee", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.EMP_NUM", "=", "T2.PROF_NUM", "WHERE", "CRS_CODE", "=", "``", "ACCT-211", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "emp_fname", ",", "t1", ".", "emp_dob", "from", "employee", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "prof_num", "where", "crs_code", "=", "value" ], "question": "What are the first names and birthdates of the professors in charge of ACCT-211?", "question_toks": [ "what", "are", "first", "name", "and", "birthdates", "of", "professor", "in", "charge", "of", "acct-211", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "and", "birthdates", "of", "the", "professors", "in", "charge", "of", "ACCT-211", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "and" ], [ "birthdates" ], [ "of" ], [ "professor" ], [ "in" ], [ "charge" ], [ "of" ], [ "acct-211" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "birthdates", "NNS" ], [ "of", "IN" ], [ "professor", "NN" ], [ "in", "IN" ], [ "charge", "NN" ], [ "of", "IN" ], [ "acct-211", "NN" ], [ "?", "." ] ], "values": [ "James", "ACCT", "211", "ACCT-211", "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(16) T(3) A(0) C(20) T(3) Filter(2) A(0) C(2) T(0) V(3)" }, { "db_id": "college_1", "query": "SELECT count(*) FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE T1.EMP_LNAME = 'Graztevski'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "employee", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.EMP_NUM", "=", "T2.PROF_NUM", "WHERE", "T1.EMP_LNAME", "=", "'Graztevski", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employee", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "prof_num", "where", "t1", ".", "emp_lname", "=", "value" ], "question": "How many classes are professor whose last name is Graztevski has?", "question_toks": [ "how", "many", "class", "are", "professor", "whose", "last", "name", "is", "graztevski", "ha", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "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, 18, false ], null ], "\"Graztevski\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "classes", "are", "professor", "whose", "last", "name", "is", "Graztevski", "has", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "class" ], [ "are" ], [ "professor" ], [ "whose" ], [ "last" ], [ "name" ], [ "is" ], [ "graztevski" ], [ "ha" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "class", "NN" ], [ "are", "VBP" ], [ "professor", "VBN" ], [ "whose", "WP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "graztevski", "JJ" ], [ "ha", "NN" ], [ "?", "." ] ], "values": [ "Graztevski" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(15) T(3) V(0)" }, { "db_id": "college_1", "query": "SELECT count(*) FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE T1.EMP_LNAME = 'Graztevski'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "employee", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.EMP_NUM", "=", "T2.PROF_NUM", "WHERE", "T1.EMP_LNAME", "=", "'Graztevski", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employee", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "prof_num", "where", "t1", ".", "emp_lname", "=", "value" ], "question": "How many classes does the professor whose last name is Graztevski teach?", "question_toks": [ "how", "many", "class", "doe", "professor", "whose", "last", "name", "is", "graztevski", "teach", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "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, 18, false ], null ], "\"Graztevski\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "classes", "does", "the", "professor", "whose", "last", "name", "is", "Graztevski", "teach", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "class" ], [ "doe" ], [ "professor" ], [ "whose" ], [ "last" ], [ "name" ], [ "is" ], [ "graztevski" ], [ "teach" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "class", "NN" ], [ "doe", "NN" ], [ "professor", "NN" ], [ "whose", "WP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "graztevski", "JJ" ], [ "teach", "NN" ], [ "?", "." ] ], "values": [ "Graztevski" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(15) T(3) V(0)" }, { "db_id": "college_1", "query": "SELECT school_code FROM department WHERE dept_name = \"Accounting\"", "query_toks": [ "SELECT", "school_code", "FROM", "department", "WHERE", "dept_name", "=", "``", "Accounting", "''" ], "query_toks_no_value": [ "select", "school_code", "from", "department", "where", "dept_name", "=", "value" ], "question": "What is the code of the school where the accounting department belongs to?", "question_toks": [ "what", "is", "code", "of", "school", "where", "accounting", "department", "belongs", "to", "?" ], "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, 2, [ 0, [ 0, 12, false ], null ], "\"Accounting\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "code", "of", "the", "school", "where", "the", "accounting", "department", "belongs", "to", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "code" ], [ "of" ], [ "school" ], [ "where" ], [ "accounting" ], [ "department" ], [ "belongs" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "code", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "where", "WRB" ], [ "accounting", "NN" ], [ "department", "NN" ], [ "belongs", "VBZ" ], [ "to", "TO" ], [ "?", "." ] ], "values": [ "Accounting I", "Accounting", "Accounting II" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(2) A(0) C(10) T(2) V(1)" }, { "db_id": "college_1", "query": "SELECT school_code FROM department WHERE dept_name = \"Accounting\"", "query_toks": [ "SELECT", "school_code", "FROM", "department", "WHERE", "dept_name", "=", "``", "Accounting", "''" ], "query_toks_no_value": [ "select", "school_code", "from", "department", "where", "dept_name", "=", "value" ], "question": "What is the school code of the accounting department?", "question_toks": [ "what", "is", "school", "code", "of", "accounting", "department", "?" ], "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, 2, [ 0, [ 0, 12, false ], null ], "\"Accounting\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "school", "code", "of", "the", "accounting", "department", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "school", "code" ], [ "of" ], [ "accounting" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "school", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "accounting", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Accounting I", "Accounting II", "Accounting" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(2) A(0) C(10) T(2) V(2)" }, { "db_id": "college_1", "query": "SELECT crs_credit , crs_description FROM course WHERE crs_code = 'CIS-220'", "query_toks": [ "SELECT", "crs_credit", ",", "crs_description", "FROM", "course", "WHERE", "crs_code", "=", "'CIS-220", "'" ], "query_toks_no_value": [ "select", "crs_credit", ",", "crs_description", "from", "course", "where", "crs_code", "=", "value" ], "question": "How many credits does course CIS-220 have, and what its description?", "question_toks": [ "how", "many", "credit", "doe", "course", "cis-220", "have", ",", "and", "what", "it", "description", "?" ], "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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"CIS-220\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "credits", "does", "course", "CIS-220", "have", ",", "and", "what", "its", "description", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "credit" ], [ "doe" ], [ "course" ], [ "cis-220" ], [ "have" ], [ "," ], [ "and" ], [ "what" ], [ "it" ], [ "description" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "credit", "NN" ], [ "doe", "NNS" ], [ "course", "NN" ], [ "cis-220", "NN" ], [ "have", "VBP" ], [ ",", "," ], [ "and", "CC" ], [ "what", "WP" ], [ "it", "PRP" ], [ "description", "NN" ], [ "?", "." ] ], "values": [ "CIS-220", "220" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(1) A(0) C(8) T(1) Filter(2) A(0) C(2) T(1) V(0)" }, { "db_id": "college_1", "query": "SELECT crs_credit , crs_description FROM course WHERE crs_code = 'CIS-220'", "query_toks": [ "SELECT", "crs_credit", ",", "crs_description", "FROM", "course", "WHERE", "crs_code", "=", "'CIS-220", "'" ], "query_toks_no_value": [ "select", "crs_credit", ",", "crs_description", "from", "course", "where", "crs_code", "=", "value" ], "question": "What is the description for the CIS-220 and how many credits does it have?", "question_toks": [ "what", "is", "description", "for", "cis-220", "and", "how", "many", "credit", "doe", "it", "have", "?" ], "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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"CIS-220\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "description", "for", "the", "CIS-220", "and", "how", "many", "credits", "does", "it", "have", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "for" ], [ "cis-220" ], [ "and" ], [ "how" ], [ "many" ], [ "credit" ], [ "doe" ], [ "it" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "for", "IN" ], [ "cis-220", "NN" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "credit", "NN" ], [ "doe", "NN" ], [ "it", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "CIS-220", "220" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(1) A(0) C(8) T(1) Filter(2) A(0) C(2) T(1) V(0)" }, { "db_id": "college_1", "query": "SELECT dept_address FROM department WHERE dept_name = 'History'", "query_toks": [ "SELECT", "dept_address", "FROM", "department", "WHERE", "dept_name", "=", "'History", "'" ], "query_toks_no_value": [ "select", "dept_address", "from", "department", "where", "dept_name", "=", "value" ], "question": "what is the address of history department?", "question_toks": [ "what", "is", "address", "of", "history", "department", "?" ], "sql": { "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": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "what", "is", "the", "address", "of", "history", "department", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "address" ], [ "of" ], [ "history" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "address", "NN" ], [ "of", "IN" ], [ "history", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "History" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "college_1", "query": "SELECT dept_address FROM department WHERE dept_name = 'History'", "query_toks": [ "SELECT", "dept_address", "FROM", "department", "WHERE", "dept_name", "=", "'History", "'" ], "query_toks_no_value": [ "select", "dept_address", "from", "department", "where", "dept_name", "=", "value" ], "question": "Where is the history department?", "question_toks": [ "where", "is", "history", "department", "?" ], "sql": { "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": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Where", "is", "the", "history", "department", "?" ], "question_arg": [ [ "where" ], [ "is" ], [ "history" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "where", "WRB" ], [ "is", "VBZ" ], [ "history", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "History" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT dept_address) FROM department WHERE school_code = 'BUS'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dept_address", ")", "FROM", "department", "WHERE", "school_code", "=", "'BUS", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dept_address", ")", "from", "department", "where", "school_code", "=", "value" ], "question": "How many different locations does the school with code BUS has?", "question_toks": [ "how", "many", "different", "location", "doe", "school", "with", "code", "bus", "ha", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 15, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"BUS\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "different", "locations", "does", "the", "school", "with", "code", "BUS", "has", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "location" ], [ "doe" ], [ "school" ], [ "with" ], [ "code" ], [ "bus" ], [ "ha" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "location", "NN" ], [ "doe", "NN" ], [ "school", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "bus", "NN" ], [ "ha", "NN" ], [ "?", "." ] ], "values": [ "BUS" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(13) T(2) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT dept_address) FROM department WHERE school_code = 'BUS'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dept_address", ")", "FROM", "department", "WHERE", "school_code", "=", "'BUS", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dept_address", ")", "from", "department", "where", "school_code", "=", "value" ], "question": "What are the different locations of the school with the code BUS?", "question_toks": [ "what", "are", "different", "location", "of", "school", "with", "code", "bus", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 15, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"BUS\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "different", "locations", "of", "the", "school", "with", "the", "code", "BUS", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "location" ], [ "of" ], [ "school" ], [ "with" ], [ "code" ], [ "bus" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "location", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "bus", "NN" ], [ "?", "." ] ], "values": [ "BUS" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(13) T(2) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT dept_address) , school_code FROM department GROUP BY school_code", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dept_address", ")", ",", "school_code", "FROM", "department", "GROUP", "BY", "school_code" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dept_address", ")", ",", "school_code", "from", "department", "group", "by", "school_code" ], "question": "How many different locations does each school have?", "question_toks": [ "how", "many", "different", "location", "doe", "each", "school", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 15, true ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "different", "locations", "does", "each", "school", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "location" ], [ "doe" ], [ "each" ], [ "school" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "location", "NN" ], [ "doe", "NN" ], [ "each", "DT" ], [ "school", "NN" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(3) C(13) T(2) A(0) C(11) T(2)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT dept_address) , school_code FROM department GROUP BY school_code", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dept_address", ")", ",", "school_code", "FROM", "department", "GROUP", "BY", "school_code" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dept_address", ")", ",", "school_code", "from", "department", "group", "by", "school_code" ], "question": "Count different addresses of each school.", "question_toks": [ "count", "different", "address", "of", "each", "school", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 15, true ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Count", "different", "addresses", "of", "each", "school", "." ], "question_arg": [ [ "count" ], [ "different" ], [ "address" ], [ "of" ], [ "each" ], [ "school" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "different", "JJ" ], [ "address", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "school", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(3) C(13) T(2) A(0) C(11) T(2)" }, { "db_id": "college_1", "query": "SELECT crs_credit , crs_description FROM course WHERE crs_code = 'QM-261'", "query_toks": [ "SELECT", "crs_credit", ",", "crs_description", "FROM", "course", "WHERE", "crs_code", "=", "'QM-261", "'" ], "query_toks_no_value": [ "select", "crs_credit", ",", "crs_description", "from", "course", "where", "crs_code", "=", "value" ], "question": "Find the description and credit for the course QM-261?", "question_toks": [ "find", "description", "and", "credit", "for", "course", "qm-261", "?" ], "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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"QM-261\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "description", "and", "credit", "for", "the", "course", "QM-261", "?" ], "question_arg": [ [ "find" ], [ "description" ], [ "and" ], [ "credit" ], [ "for" ], [ "course" ], [ "qm-261" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "description", "NN" ], [ "and", "CC" ], [ "credit", "NN" ], [ "for", "IN" ], [ "course", "NN" ], [ "qm-261", "NN" ], [ "?", "." ] ], "values": [ "261", "QM-261" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(1) A(0) C(8) T(1) Filter(2) A(0) C(2) T(1) V(1)" }, { "db_id": "college_1", "query": "SELECT crs_credit , crs_description FROM course WHERE crs_code = 'QM-261'", "query_toks": [ "SELECT", "crs_credit", ",", "crs_description", "FROM", "course", "WHERE", "crs_code", "=", "'QM-261", "'" ], "query_toks_no_value": [ "select", "crs_credit", ",", "crs_description", "from", "course", "where", "crs_code", "=", "value" ], "question": "What is the course description and number of credits for QM-261?", "question_toks": [ "what", "is", "course", "description", "and", "number", "of", "credit", "for", "qm-261", "?" ], "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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"QM-261\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "course", "description", "and", "number", "of", "credits", "for", "QM-261", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "course", "description" ], [ "and" ], [ "number" ], [ "of" ], [ "credit" ], [ "for" ], [ "qm-261" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "course", "NN" ], [ "description", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "credit", "NN" ], [ "for", "IN" ], [ "qm-261", "NN" ], [ "?", "." ] ], "values": [ "261", "QM-261" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(1) A(0) C(8) T(1) Filter(2) A(0) C(2) T(1) V(1)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT dept_name) , school_code FROM department GROUP BY school_code", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dept_name", ")", ",", "school_code", "FROM", "department", "GROUP", "BY", "school_code" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dept_name", ")", ",", "school_code", "from", "department", "group", "by", "school_code" ], "question": "Find the number of departments in each school.", "question_toks": [ "find", "number", "of", "department", "in", "each", "school", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "number", "of", "departments", "in", "each", "school", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "department" ], [ "in" ], [ "each" ], [ "school" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "school", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(3) C(10) T(2) A(0) C(11) T(2)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT dept_name) , school_code FROM department GROUP BY school_code", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dept_name", ")", ",", "school_code", "FROM", "department", "GROUP", "BY", "school_code" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dept_name", ")", ",", "school_code", "from", "department", "group", "by", "school_code" ], "question": "How many departments are in each school?", "question_toks": [ "how", "many", "department", "are", "in", "each", "school", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "departments", "are", "in", "each", "school", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "department" ], [ "are" ], [ "in" ], [ "each" ], [ "school" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "department", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "each", "DT" ], [ "school", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(3) C(10) T(2) A(0) C(11) T(2)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT dept_name) , school_code FROM department GROUP BY school_code HAVING count(DISTINCT dept_name) < 5", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dept_name", ")", ",", "school_code", "FROM", "department", "GROUP", "BY", "school_code", "HAVING", "count", "(", "DISTINCT", "dept_name", ")", "<", "5" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dept_name", ")", ",", "school_code", "from", "department", "group", "by", "school_code", "having", "count", "(", "distinct", "dept_name", ")", "<", "value" ], "question": "Find the number of different departments in each school whose number of different departments is less than 5.", "question_toks": [ "find", "number", "of", "different", "department", "in", "each", "school", "whose", "number", "of", "different", "department", "is", "le", "than", "5", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 4, [ 0, [ 3, 12, true ], null ], 5.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "number", "of", "different", "departments", "in", "each", "school", "whose", "number", "of", "different", "departments", "is", "less", "than", "5", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "different" ], [ "department" ], [ "in" ], [ "each" ], [ "school" ], [ "whose" ], [ "number" ], [ "of" ], [ "different" ], [ "department" ], [ "is" ], [ "le" ], [ "than" ], [ "5" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "department", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "school", "NN" ], [ "whose", "WP$" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "department", "NN" ], [ "is", "VBZ" ], [ "le", "JJR" ], [ "than", "IN" ], [ "5", "CD" ], [ ".", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(3) C(10) T(2) A(0) C(11) T(2) Filter(4) A(3) C(10) T(2) V(0)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT dept_name) , school_code FROM department GROUP BY school_code HAVING count(DISTINCT dept_name) < 5", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dept_name", ")", ",", "school_code", "FROM", "department", "GROUP", "BY", "school_code", "HAVING", "count", "(", "DISTINCT", "dept_name", ")", "<", "5" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dept_name", ")", ",", "school_code", "from", "department", "group", "by", "school_code", "having", "count", "(", "distinct", "dept_name", ")", "<", "value" ], "question": "How many different departments are there in each school that has less than 5 apartments?", "question_toks": [ "how", "many", "different", "department", "are", "there", "in", "each", "school", "that", "ha", "le", "than", "5", "apartment", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 4, [ 0, [ 3, 12, true ], null ], 5.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "different", "departments", "are", "there", "in", "each", "school", "that", "has", "less", "than", "5", "apartments", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "department" ], [ "are" ], [ "there" ], [ "in" ], [ "each" ], [ "school" ], [ "that" ], [ "ha" ], [ "le" ], [ "than" ], [ "5" ], [ "apartment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "department", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "each", "DT" ], [ "school", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "le", "JJR" ], [ "than", "IN" ], [ "5", "CD" ], [ "apartment", "NN" ], [ "?", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(3) C(10) T(2) A(0) C(11) T(2) Filter(4) A(3) C(10) T(2) V(0)" }, { "db_id": "college_1", "query": "SELECT count(*) , crs_code FROM CLASS GROUP BY crs_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "crs_code", "FROM", "CLASS", "GROUP", "BY", "crs_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "crs_code", "from", "class", "group", "by", "crs_code" ], "question": "How many sections does each course has?", "question_toks": [ "how", "many", "section", "doe", "each", "course", "ha", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "sections", "does", "each", "course", "has", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "section" ], [ "doe" ], [ "each" ], [ "course" ], [ "ha" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "section", "NN" ], [ "doe", "NNS" ], [ "each", "DT" ], [ "course", "NN" ], [ "ha", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(0) A(0) C(2) T(0)" }, { "db_id": "college_1", "query": "SELECT count(*) , crs_code FROM CLASS GROUP BY crs_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "crs_code", "FROM", "CLASS", "GROUP", "BY", "crs_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "crs_code", "from", "class", "group", "by", "crs_code" ], "question": "How many sections does each course have?", "question_toks": [ "how", "many", "section", "doe", "each", "course", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "sections", "does", "each", "course", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "section" ], [ "doe" ], [ "each" ], [ "course" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "section", "NN" ], [ "doe", "NNS" ], [ "each", "DT" ], [ "course", "NN" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(0) A(0) C(2) T(0)" }, { "db_id": "college_1", "query": "SELECT sum(crs_credit) , dept_code FROM course GROUP BY dept_code", "query_toks": [ "SELECT", "sum", "(", "crs_credit", ")", ",", "dept_code", "FROM", "course", "GROUP", "BY", "dept_code" ], "query_toks_no_value": [ "select", "sum", "(", "crs_credit", ")", ",", "dept_code", "from", "course", "group", "by", "dept_code" ], "question": "What is the total credit does each department offer?", "question_toks": [ "what", "is", "total", "credit", "doe", "each", "department", "offer", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "total", "credit", "does", "each", "department", "offer", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "credit" ], [ "doe" ], [ "each" ], [ "department" ], [ "offer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "credit", "NN" ], [ "doe", "NNS" ], [ "each", "DT" ], [ "department", "NN" ], [ "offer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(9) T(1) A(0) C(7) T(1)" }, { "db_id": "college_1", "query": "SELECT sum(crs_credit) , dept_code FROM course GROUP BY dept_code", "query_toks": [ "SELECT", "sum", "(", "crs_credit", ")", ",", "dept_code", "FROM", "course", "GROUP", "BY", "dept_code" ], "query_toks_no_value": [ "select", "sum", "(", "crs_credit", ")", ",", "dept_code", "from", "course", "group", "by", "dept_code" ], "question": "How many credits does the department offer?", "question_toks": [ "how", "many", "credit", "doe", "department", "offer", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "credits", "does", "the", "department", "offer", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "credit" ], [ "doe" ], [ "department" ], [ "offer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "credit", "NN" ], [ "doe", "NN" ], [ "department", "NN" ], [ "offer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(9) T(1) A(0) C(7) T(1)" }, { "db_id": "college_1", "query": "SELECT count(*) , class_room FROM CLASS GROUP BY class_room HAVING count(*) >= 2", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "class_room", "FROM", "CLASS", "GROUP", "BY", "class_room", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "class_room", "from", "class", "group", "by", "class_room", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Find the number of classes offered for all class rooms that held at least 2 classes.", "question_toks": [ "find", "number", "of", "class", "offered", "for", "all", "class", "room", "that", "held", "at", "least", "2", "class", "." ], "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, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "number", "of", "classes", "offered", "for", "all", "class", "rooms", "that", "held", "at", "least", "2", "classes", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "class" ], [ "offered" ], [ "for" ], [ "all" ], [ "class", "room" ], [ "that" ], [ "held" ], [ "at" ], [ "least" ], [ "2" ], [ "class" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "class", "NN" ], [ "offered", "VBN" ], [ "for", "IN" ], [ "all", "DT" ], [ "class", "NN" ], [ "room", "NN" ], [ "that", "WDT" ], [ "held", "VBD" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "class", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(0) A(0) C(5) T(0) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "college_1", "query": "SELECT count(*) , class_room FROM CLASS GROUP BY class_room HAVING count(*) >= 2", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "class_room", "FROM", "CLASS", "GROUP", "BY", "class_room", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "class_room", "from", "class", "group", "by", "class_room", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "For each classroom with at least 2 classes, how many classes are offered?", "question_toks": [ "for", "each", "classroom", "with", "at", "least", "2", "class", ",", "how", "many", "class", "are", "offered", "?" ], "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, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "For", "each", "classroom", "with", "at", "least", "2", "classes", ",", "how", "many", "classes", "are", "offered", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "classroom" ], [ "with" ], [ "at" ], [ "least" ], [ "2" ], [ "class" ], [ "," ], [ "how" ], [ "many" ], [ "class" ], [ "are" ], [ "offered" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "classroom", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "class", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "class", "NN" ], [ "are", "VBP" ], [ "offered", "VBN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(0) A(0) C(5) T(0) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "college_1", "query": "SELECT count(*) , dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code GROUP BY dept_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "dept_code", "FROM", "CLASS", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.crs_code", "=", "T2.crs_code", "GROUP", "BY", "dept_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "dept_code", "from", "class", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "group", "by", "dept_code" ], "question": "Find the number of classes in each department.", "question_toks": [ "find", "number", "of", "class", "in", "each", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "number", "of", "classes", "in", "each", "department", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "class" ], [ "in" ], [ "each" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "class", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(0) A(0) C(7) T(1)" }, { "db_id": "college_1", "query": "SELECT count(*) , dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code GROUP BY dept_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "dept_code", "FROM", "CLASS", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.crs_code", "=", "T2.crs_code", "GROUP", "BY", "dept_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "dept_code", "from", "class", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "group", "by", "dept_code" ], "question": "How many classes are held in each department?", "question_toks": [ "how", "many", "class", "are", "held", "in", "each", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "classes", "are", "held", "in", "each", "department", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "class" ], [ "are" ], [ "held" ], [ "in" ], [ "each" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "class", "NN" ], [ "are", "VBP" ], [ "held", "VBN" ], [ "in", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(0) A(0) C(7) T(1)" }, { "db_id": "college_1", "query": "SELECT count(*) , T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T3.school_code", "FROM", "CLASS", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.crs_code", "=", "T2.crs_code", "JOIN", "department", "AS", "T3", "ON", "T2.dept_code", "=", "T3.dept_code", "GROUP", "BY", "T3.school_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t3", ".", "school_code", "from", "class", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "join", "department", "as", "t3", "on", "t2", ".", "dept_code", "=", "t3", ".", "dept_code", "group", "by", "t3", ".", "school_code" ], "question": "Find the number of classes in each school.", "question_toks": [ "find", "number", "of", "class", "in", "each", "school", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 2, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "number", "of", "classes", "in", "each", "school", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "class" ], [ "in" ], [ "each" ], [ "school" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "class", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "school", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(1) A(0) C(11) T(2) Filter(18) A(0) C(2) T(0) Root(5) Sel(0) N(0) A(0) C(2) T(1)" }, { "db_id": "college_1", "query": "SELECT count(*) , T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T3.school_code", "FROM", "CLASS", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.crs_code", "=", "T2.crs_code", "JOIN", "department", "AS", "T3", "ON", "T2.dept_code", "=", "T3.dept_code", "GROUP", "BY", "T3.school_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t3", ".", "school_code", "from", "class", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "join", "department", "as", "t3", "on", "t2", ".", "dept_code", "=", "t3", ".", "dept_code", "group", "by", "t3", ".", "school_code" ], "question": "How many classes exist for each school?", "question_toks": [ "how", "many", "class", "exist", "for", "each", "school", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 2, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "classes", "exist", "for", "each", "school", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "class" ], [ "exist" ], [ "for" ], [ "each" ], [ "school" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "class", "NN" ], [ "exist", "VBP" ], [ "for", "IN" ], [ "each", "DT" ], [ "school", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(1) A(0) C(11) T(2) Filter(18) A(0) C(2) T(0) Root(5) Sel(0) N(0) A(0) C(2) T(1)" }, { "db_id": "college_1", "query": "SELECT count(*) , T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.school_code", "FROM", "department", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "GROUP", "BY", "T1.school_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "school_code", "from", "department", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "school_code" ], "question": "What is the number of professors for different school?", "question_toks": [ "what", "is", "number", "of", "professor", "for", "different", "school", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "professors", "for", "different", "school", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "professor" ], [ "for" ], [ "different" ], [ "school" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "for", "IN" ], [ "different", "JJ" ], [ "school", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(5) A(0) C(11) T(2)" }, { "db_id": "college_1", "query": "SELECT count(*) , T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.school_code", "FROM", "department", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "GROUP", "BY", "T1.school_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "school_code", "from", "department", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "school_code" ], "question": "How many different professors are there for the different schools?", "question_toks": [ "how", "many", "different", "professor", "are", "there", "for", "different", "school", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "different", "professors", "are", "there", "for", "the", "different", "schools", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "professor" ], [ "are" ], [ "there" ], [ "for" ], [ "different" ], [ "school" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "professor", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "for", "IN" ], [ "different", "JJ" ], [ "school", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(5) A(0) C(11) T(2)" }, { "db_id": "college_1", "query": "SELECT emp_jobcode , count(*) FROM employee GROUP BY emp_jobcode ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "emp_jobcode", ",", "count", "(", "*", ")", "FROM", "employee", "GROUP", "BY", "emp_jobcode", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "emp_jobcode", ",", "count", "(", "*", ")", "from", "employee", "group", "by", "emp_jobcode", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the count and code of the job has most employees.", "question_toks": [ "find", "count", "and", "code", "of", "job", "ha", "most", "employee", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "count", "and", "code", "of", "the", "job", "has", "most", "employees", "." ], "question_arg": [ [ "find" ], [ "count" ], [ "and" ], [ "code" ], [ "of" ], [ "job" ], [ "ha" ], [ "most" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "count", "NN" ], [ "and", "CC" ], [ "code", "NN" ], [ "of", "IN" ], [ "job", "NN" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(18) T(3) A(3) C(0) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "college_1", "query": "SELECT emp_jobcode , count(*) FROM employee GROUP BY emp_jobcode ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "emp_jobcode", ",", "count", "(", "*", ")", "FROM", "employee", "GROUP", "BY", "emp_jobcode", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "emp_jobcode", ",", "count", "(", "*", ")", "from", "employee", "group", "by", "emp_jobcode", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the count and code of the job with the most employee?", "question_toks": [ "what", "is", "count", "and", "code", "of", "job", "with", "most", "employee", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "count", "and", "code", "of", "the", "job", "with", "the", "most", "employee", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "count" ], [ "and" ], [ "code" ], [ "of" ], [ "job" ], [ "with" ], [ "most" ], [ "employee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "count", "NN" ], [ "and", "CC" ], [ "code", "NN" ], [ "of", "IN" ], [ "job", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "employee", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(18) T(3) A(3) C(0) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "college_1", "query": "SELECT T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "T1.school_code", "FROM", "department", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "GROUP", "BY", "T1.school_code", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "school_code", "from", "department", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "school_code", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Which school has the smallest amount of professors?", "question_toks": [ "which", "school", "ha", "smallest", "amount", "of", "professor", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, 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": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Which", "school", "has", "the", "smallest", "amount", "of", "professors", "?" ], "question_arg": [ [ "which" ], [ "school" ], [ "ha" ], [ "smallest" ], [ "amount" ], [ "of" ], [ "professor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "school", "NN" ], [ "ha", "NN" ], [ "smallest", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(11) T(2) Sup(1) A(3) C(0) T(5) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(5)" }, { "db_id": "college_1", "query": "SELECT T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "T1.school_code", "FROM", "department", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "GROUP", "BY", "T1.school_code", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "school_code", "from", "department", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "school_code", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Which school has the fewest professors?", "question_toks": [ "which", "school", "ha", "fewest", "professor", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, 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": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Which", "school", "has", "the", "fewest", "professors", "?" ], "question_arg": [ [ "which" ], [ "school" ], [ "ha" ], [ "fewest" ], [ "professor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "school", "NN" ], [ "ha", "NN" ], [ "fewest", "NN" ], [ "professor", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(11) T(2) Sup(1) A(3) C(0) T(5) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(5)" }, { "db_id": "college_1", "query": "SELECT count(*) , dept_code FROM professor WHERE prof_high_degree = 'Ph.D.' GROUP BY dept_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "dept_code", "FROM", "professor", "WHERE", "prof_high_degree", "=", "'Ph.D", ".", "'", "GROUP", "BY", "dept_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "dept_code", "from", "professor", "where", "prof_high_degree", "=", "value", "group", "by", "dept_code" ], "question": "Find the number of professors with a Ph.D. degree in each department.", "question_toks": [ "find", "number", "of", "professor", "with", "a", "ph.d.", "degree", "in", "each", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 28, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "number", "of", "professors", "with", "a", "Ph.D.", "degree", "in", "each", "department", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "professor" ], [ "with" ], [ "a" ], [ "ph.d." ], [ "degree" ], [ "in" ], [ "each" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "ph.d.", "JJ" ], [ "degree", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "Ph.D." ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(5) A(0) C(7) T(5) Filter(2) A(0) C(25) T(5) V(0)" }, { "db_id": "college_1", "query": "SELECT count(*) , dept_code FROM professor WHERE prof_high_degree = 'Ph.D.' GROUP BY dept_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "dept_code", "FROM", "professor", "WHERE", "prof_high_degree", "=", "'Ph.D", ".", "'", "GROUP", "BY", "dept_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "dept_code", "from", "professor", "where", "prof_high_degree", "=", "value", "group", "by", "dept_code" ], "question": "How many professors have a Ph.D. in each department?", "question_toks": [ "how", "many", "professor", "have", "a", "ph.d.", "in", "each", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 28, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "professors", "have", "a", "Ph.D.", "in", "each", "department", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "professor" ], [ "have" ], [ "a" ], [ "ph.d." ], [ "in" ], [ "each" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "professor", "NNS" ], [ "have", "VBP" ], [ "a", "DT" ], [ "ph.d.", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Ph.D." ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(5) A(0) C(7) T(5) Filter(2) A(0) C(25) T(5) V(0)" }, { "db_id": "college_1", "query": "SELECT count(*) , dept_code FROM student GROUP BY dept_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code" ], "question": "Find the number of students for each department.", "question_toks": [ "find", "number", "of", "student", "for", "each", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 41, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "number", "of", "students", "for", "each", "department", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "student" ], [ "for" ], [ "each" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "for", "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(7) T(6)" }, { "db_id": "college_1", "query": "SELECT count(*) , dept_code FROM student GROUP BY dept_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code" ], "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, 41, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "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(7) T(6)" }, { "db_id": "college_1", "query": "SELECT sum(stu_hrs) , dept_code FROM student GROUP BY dept_code", "query_toks": [ "SELECT", "sum", "(", "stu_hrs", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code" ], "query_toks_no_value": [ "select", "sum", "(", "stu_hrs", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code" ], "question": "Find the total number of hours have done for all students in each department.", "question_toks": [ "find", "total", "number", "of", "hour", "have", "done", "for", "all", "student", "in", "each", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 41, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 37, false ], null ] ], [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "total", "number", "of", "hours", "have", "done", "for", "all", "students", "in", "each", "department", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "number" ], [ "of" ], [ "hour" ], [ "have" ], [ "done" ], [ "for" ], [ "all" ], [ "student" ], [ "in" ], [ "each" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "hour", "NN" ], [ "have", "VBP" ], [ "done", "VBN" ], [ "for", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(31) T(6) A(0) C(7) T(6)" }, { "db_id": "college_1", "query": "SELECT sum(stu_hrs) , dept_code FROM student GROUP BY dept_code", "query_toks": [ "SELECT", "sum", "(", "stu_hrs", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code" ], "query_toks_no_value": [ "select", "sum", "(", "stu_hrs", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code" ], "question": "How many hours do the students spend studying in each department?", "question_toks": [ "how", "many", "hour", "do", "student", "spend", "studying", "in", "each", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 41, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 37, false ], null ] ], [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "hours", "do", "the", "students", "spend", "studying", "in", "each", "department", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "hour" ], [ "do" ], [ "student" ], [ "spend" ], [ "studying" ], [ "in" ], [ "each" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "hour", "NN" ], [ "do", "VBP" ], [ "student", "NN" ], [ "spend", "VB" ], [ "studying", "VBG" ], [ "in", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(31) T(6) A(0) C(7) T(6)" }, { "db_id": "college_1", "query": "SELECT max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code FROM student GROUP BY dept_code", "query_toks": [ "SELECT", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code" ], "query_toks_no_value": [ "select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code" ], "question": "Find the max, average, and minimum gpa of all students in each department.", "question_toks": [ "find", "max", ",", "average", ",", "and", "minimum", "gpa", "of", "all", "student", "in", "each", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 41, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 39, false ], null ] ], [ 5, [ 0, [ 0, 39, false ], null ] ], [ 2, [ 0, [ 0, 39, false ], null ] ], [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "max", ",", "average", ",", "and", "minimum", "gpa", "of", "all", "students", "in", "each", "department", "." ], "question_arg": [ [ "find" ], [ "max" ], [ "," ], [ "average" ], [ "," ], [ "and" ], [ "minimum" ], [ "gpa" ], [ "of" ], [ "all" ], [ "student" ], [ "in" ], [ "each" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "max", "NN" ], [ ",", "," ], [ "average", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "gpa", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(1) C(33) T(6) A(5) C(33) T(6) A(2) C(33) T(6) A(0) C(7) T(6)" }, { "db_id": "college_1", "query": "SELECT max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code FROM student GROUP BY dept_code", "query_toks": [ "SELECT", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code" ], "query_toks_no_value": [ "select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code" ], "question": "What is the highest, lowest, and average student GPA for every department?", "question_toks": [ "what", "is", "highest", ",", "lowest", ",", "and", "average", "student", "gpa", "for", "every", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 41, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 39, false ], null ] ], [ 5, [ 0, [ 0, 39, false ], null ] ], [ 2, [ 0, [ 0, 39, false ], null ] ], [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "highest", ",", "lowest", ",", "and", "average", "student", "GPA", "for", "every", "department", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "highest" ], [ "," ], [ "lowest" ], [ "," ], [ "and" ], [ "average" ], [ "student", "gpa" ], [ "for" ], [ "every" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "highest", "JJS" ], [ ",", "," ], [ "lowest", "JJS" ], [ ",", "," ], [ "and", "CC" ], [ "average", "JJ" ], [ "student", "NN" ], [ "gpa", "NN" ], [ "for", "IN" ], [ "every", "DT" ], [ "department", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(1) C(33) T(6) A(5) C(33) T(6) A(2) C(33) T(6) A(0) C(7) T(6)" }, { "db_id": "college_1", "query": "SELECT T2.dept_name , avg(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY avg(T1.stu_gpa) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.dept_name", ",", "avg", "(", "T1.stu_gpa", ")", "FROM", "student", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "avg", "(", "T1.stu_gpa", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "dept_name", ",", "avg", "(", "t1", ".", "stu_gpa", ")", "from", "student", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "avg", "(", "t1", ".", "stu_gpa", ")", "desc", "limit", "value" ], "question": "What is the name and the average gpa of department whose students have the highest average gpa?", "question_toks": [ "what", "is", "name", "and", "average", "gpa", "of", "department", "whose", "student", "have", "highest", "average", "gpa", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 41, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 39, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 5, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "the", "average", "gpa", "of", "department", "whose", "students", "have", "the", "highest", "average", "gpa", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "average" ], [ "gpa" ], [ "of" ], [ "department" ], [ "whose" ], [ "student" ], [ "have" ], [ "highest" ], [ "average" ], [ "gpa" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "gpa", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "whose", "WP$" ], [ "student", "NN" ], [ "have", "VBP" ], [ "highest", "JJS" ], [ "average", "JJ" ], [ "gpa", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(10) T(2) A(5) C(33) T(6) Sup(0) A(5) C(33) T(6)" }, { "db_id": "college_1", "query": "SELECT T2.dept_name , avg(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY avg(T1.stu_gpa) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.dept_name", ",", "avg", "(", "T1.stu_gpa", ")", "FROM", "student", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "avg", "(", "T1.stu_gpa", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "dept_name", ",", "avg", "(", "t1", ".", "stu_gpa", ")", "from", "student", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "avg", "(", "t1", ".", "stu_gpa", ")", "desc", "limit", "value" ], "question": "Which department has the highest average student GPA, and what is the average gpa?", "question_toks": [ "which", "department", "ha", "highest", "average", "student", "gpa", ",", "and", "what", "is", "average", "gpa", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 41, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 39, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 5, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Which", "department", "has", "the", "highest", "average", "student", "GPA", ",", "and", "what", "is", "the", "average", "gpa", "?" ], "question_arg": [ [ "which" ], [ "department" ], [ "ha" ], [ "highest" ], [ "average" ], [ "student", "gpa" ], [ "," ], [ "and" ], [ "what" ], [ "is" ], [ "average" ], [ "gpa" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "department", "NN" ], [ "ha", "NN" ], [ "highest", "JJS" ], [ "average", "JJ" ], [ "student", "NN" ], [ "gpa", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "gpa", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(10) T(2) A(5) C(33) T(6) Sup(0) A(5) C(33) T(6)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT school_code) FROM department", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "school_code", ")", "FROM", "department" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "school_code", ")", "from", "department" ], "question": "how many schools exist in total?", "question_toks": [ "how", "many", "school", "exist", "in", "total", "?" ], "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": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "how", "many", "schools", "exist", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "school" ], [ "exist" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "school", "NN" ], [ "exist", "VBP" ], [ "in", "IN" ], [ "total", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(11) T(2)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT school_code) FROM department", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "school_code", ")", "FROM", "department" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "school_code", ")", "from", "department" ], "question": "How many schools are there in the department?", "question_toks": [ "how", "many", "school", "are", "there", "in", "department", "?" ], "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": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "schools", "are", "there", "in", "the", "department", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "school" ], [ "are" ], [ "there" ], [ "in" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "school", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(11) T(2)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT class_code) FROM CLASS", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "class_code", ")", "FROM", "CLASS" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "class_code", ")", "from", "class" ], "question": "How many different classes are there?", "question_toks": [ "how", "many", "different", "class", "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": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "different", "classes", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "class" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "class", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(1) T(0)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT class_code) FROM CLASS", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "class_code", ")", "FROM", "CLASS" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "class_code", ")", "from", "class" ], "question": "How many unique classes are offered?", "question_toks": [ "how", "many", "unique", "class", "are", "offered", "?" ], "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": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "unique", "classes", "are", "offered", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "unique" ], [ "class" ], [ "are" ], [ "offered" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "unique", "JJ" ], [ "class", "NN" ], [ "are", "VBP" ], [ "offered", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(1) T(0)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT crs_code) FROM CLASS", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "crs_code", ")", "FROM", "CLASS" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "crs_code", ")", "from", "class" ], "question": "How many courses are offered?", "question_toks": [ "how", "many", "course", "are", "offered", "?" ], "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": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "courses", "are", "offered", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "course" ], [ "are" ], [ "offered" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "course", "NN" ], [ "are", "VBP" ], [ "offered", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(2) T(0)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT crs_code) FROM CLASS", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "crs_code", ")", "FROM", "CLASS" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "crs_code", ")", "from", "class" ], "question": "What are the number of different course codes?", "question_toks": [ "what", "are", "number", "of", "different", "course", "code", "?" ], "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": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "number", "of", "different", "course", "codes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "number" ], [ "of" ], [ "different" ], [ "course", "code" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "course", "NN" ], [ "code", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(2) T(0)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT dept_name) FROM department", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dept_name", ")", "FROM", "department" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dept_name", ")", "from", "department" ], "question": "How many departments does the college has?", "question_toks": [ "how", "many", "department", "doe", "college", "ha", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "departments", "does", "the", "college", "has", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "department" ], [ "doe" ], [ "college" ], [ "ha" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "department", "NN" ], [ "doe", "NN" ], [ "college", "NN" ], [ "ha", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(10) T(2)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT dept_name) FROM department", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dept_name", ")", "FROM", "department" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dept_name", ")", "from", "department" ], "question": "How many different departments are there?", "question_toks": [ "how", "many", "different", "department", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "different", "departments", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "department" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "department", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(10) T(2)" }, { "db_id": "college_1", "query": "SELECT count(*) FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE dept_name = \"Computer Info. Systems\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "department", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "WHERE", "dept_name", "=", "``", "Computer", "Info", ".", "Systems", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "department", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "where", "dept_name", "=", "value" ], "question": "How many courses are offered by the Computer Info. Systems department?", "question_toks": [ "how", "many", "course", "are", "offered", "by", "computer", "info", ".", "system", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Computer Info. Systems\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "courses", "are", "offered", "by", "the", "Computer", "Info", ".", "Systems", "department", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "course" ], [ "are" ], [ "offered" ], [ "by" ], [ "computer" ], [ "info" ], [ "." ], [ "system" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "course", "NN" ], [ "are", "VBP" ], [ "offered", "VBN" ], [ "by", "IN" ], [ "computer", "NN" ], [ "info", "NN" ], [ ".", "." ], [ "system", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Computer Info. Systems" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "college_1", "query": "SELECT count(*) FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE dept_name = \"Computer Info. Systems\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "department", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "WHERE", "dept_name", "=", "``", "Computer", "Info", ".", "Systems", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "department", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "where", "dept_name", "=", "value" ], "question": "How many courses does the department of Computer Information Systmes offer?", "question_toks": [ "how", "many", "course", "doe", "department", "of", "computer", "information", "systmes", "offer", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Computer Info. Systems\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "courses", "does", "the", "department", "of", "Computer", "Information", "Systmes", "offer", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "course" ], [ "doe" ], [ "department" ], [ "of" ], [ "computer" ], [ "information" ], [ "systmes" ], [ "offer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "course", "NN" ], [ "doe", "JJ" ], [ "department", "NN" ], [ "of", "IN" ], [ "computer", "NN" ], [ "information", "NN" ], [ "systmes", "NNS" ], [ "offer", "VBP" ], [ "?", "." ] ], "values": [ "Computer Info. Systems" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT class_section) FROM CLASS WHERE crs_code = 'ACCT-211'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "class_section", ")", "FROM", "CLASS", "WHERE", "crs_code", "=", "'ACCT-211", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "class_section", ")", "from", "class", "where", "crs_code", "=", "value" ], "question": "How many sections does course ACCT-211 has?", "question_toks": [ "how", "many", "section", "doe", "course", "acct-211", "ha", "?" ], "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": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "sections", "does", "course", "ACCT-211", "has", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "section" ], [ "doe" ], [ "course" ], [ "acct-211" ], [ "ha" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "section", "NN" ], [ "doe", "JJ" ], [ "course", "NN" ], [ "acct-211", "JJ" ], [ "ha", "NN" ], [ "?", "." ] ], "values": [ "ACCT-211", "211" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(3) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "college_1", "query": "SELECT count(DISTINCT class_section) FROM CLASS WHERE crs_code = 'ACCT-211'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "class_section", ")", "FROM", "CLASS", "WHERE", "crs_code", "=", "'ACCT-211", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "class_section", ")", "from", "class", "where", "crs_code", "=", "value" ], "question": "What is the number of different class sections offered in the course ACCT-211?", "question_toks": [ "what", "is", "number", "of", "different", "class", "section", "offered", "in", "course", "acct-211", "?" ], "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": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "different", "class", "sections", "offered", "in", "the", "course", "ACCT-211", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "different" ], [ "class", "section" ], [ "offered" ], [ "in" ], [ "course" ], [ "acct-211" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "class", "NN" ], [ "section", "NN" ], [ "offered", "VBN" ], [ "in", "IN" ], [ "course", "NN" ], [ "acct-211", "NN" ], [ "?", "." ] ], "values": [ "ACCT-211", "211" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(3) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "college_1", "query": "SELECT sum(T1.crs_credit) , T1.dept_code FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code GROUP BY T1.dept_code", "query_toks": [ "SELECT", "sum", "(", "T1.crs_credit", ")", ",", "T1.dept_code", "FROM", "course", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.crs_code", "=", "T2.crs_code", "GROUP", "BY", "T1.dept_code" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "crs_credit", ")", ",", "t1", ".", "dept_code", "from", "course", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "group", "by", "t1", ".", "dept_code" ], "question": "Find the total credits of all classes offered by each department.", "question_toks": [ "find", "total", "credit", "of", "all", "class", "offered", "by", "each", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "total", "credits", "of", "all", "classes", "offered", "by", "each", "department", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "credit" ], [ "of" ], [ "all" ], [ "class" ], [ "offered" ], [ "by" ], [ "each" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "credit", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "class", "NN" ], [ "offered", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(4) C(9) T(1) A(0) C(7) T(1) Filter(18) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "college_1", "query": "SELECT sum(T1.crs_credit) , T1.dept_code FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code GROUP BY T1.dept_code", "query_toks": [ "SELECT", "sum", "(", "T1.crs_credit", ")", ",", "T1.dept_code", "FROM", "course", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.crs_code", "=", "T2.crs_code", "GROUP", "BY", "T1.dept_code" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "crs_credit", ")", ",", "t1", ".", "dept_code", "from", "course", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "group", "by", "t1", ".", "dept_code" ], "question": "What are the total number of credits offered by each department?", "question_toks": [ "what", "are", "total", "number", "of", "credit", "offered", "by", "each", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "total", "number", "of", "credits", "offered", "by", "each", "department", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "total" ], [ "number" ], [ "of" ], [ "credit" ], [ "offered" ], [ "by" ], [ "each" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "credit", "NN" ], [ "offered", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(4) C(9) T(1) A(0) C(7) T(1) Filter(18) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "college_1", "query": "SELECT T3.dept_name FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T1.dept_code = T3.dept_code GROUP BY T1.dept_code ORDER BY sum(T1.crs_credit) DESC LIMIT 1", "query_toks": [ "SELECT", "T3.dept_name", "FROM", "course", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.crs_code", "=", "T2.crs_code", "JOIN", "department", "AS", "T3", "ON", "T1.dept_code", "=", "T3.dept_code", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "sum", "(", "T1.crs_credit", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t3", ".", "dept_name", "from", "course", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "sum", "(", "t1", ".", "crs_credit", ")", "desc", "limit", "value" ], "question": "Find the name of the department that offers the largest number of credits of all classes.", "question_toks": [ "find", "name", "of", "department", "that", "offer", "largest", "number", "of", "credit", "of", "all", "class", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "department", "that", "offers", "the", "largest", "number", "of", "credits", "of", "all", "classes", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "department" ], [ "that" ], [ "offer" ], [ "largest" ], [ "number" ], [ "of" ], [ "credit" ], [ "of" ], [ "all" ], [ "class" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "that", "WDT" ], [ "offer", "VBP" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "credit", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "class", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(2) Sup(0) A(4) C(9) T(1) Filter(18) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "college_1", "query": "SELECT T3.dept_name FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T1.dept_code = T3.dept_code GROUP BY T1.dept_code ORDER BY sum(T1.crs_credit) DESC LIMIT 1", "query_toks": [ "SELECT", "T3.dept_name", "FROM", "course", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.crs_code", "=", "T2.crs_code", "JOIN", "department", "AS", "T3", "ON", "T1.dept_code", "=", "T3.dept_code", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "sum", "(", "T1.crs_credit", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t3", ".", "dept_name", "from", "course", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "sum", "(", "t1", ".", "crs_credit", ")", "desc", "limit", "value" ], "question": "Which department offers the most credits all together?", "question_toks": [ "which", "department", "offer", "most", "credit", "all", "together", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Which", "department", "offers", "the", "most", "credits", "all", "together", "?" ], "question_arg": [ [ "which" ], [ "department" ], [ "offer" ], [ "most" ], [ "credit" ], [ "all" ], [ "together" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "department", "NN" ], [ "offer", "NN" ], [ "most", "RBS" ], [ "credit", "NN" ], [ "all", "DT" ], [ "together", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(2) Sup(0) A(4) C(9) T(1) Filter(18) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "college_1", "query": "SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code WHERE T1.crs_code = 'ACCT-211'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "WHERE", "T1.crs_code", "=", "'ACCT-211", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "where", "t1", ".", "crs_code", "=", "value" ], "question": "How many students enrolled in class ACCT-211?", "question_toks": [ "how", "many", "student", "enrolled", "in", "class", "acct-211", "?" ], "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": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "students", "enrolled", "in", "class", "ACCT-211", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "enrolled" ], [ "in" ], [ "class" ], [ "acct-211" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "class", "NN" ], [ "acct-211", "NN" ], [ "?", "." ] ], "values": [ "211", "ACCT-211" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "college_1", "query": "SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code WHERE T1.crs_code = 'ACCT-211'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "WHERE", "T1.crs_code", "=", "'ACCT-211", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "where", "t1", ".", "crs_code", "=", "value" ], "question": "What are the total number of students enrolled in ACCT-211?", "question_toks": [ "what", "are", "total", "number", "of", "student", "enrolled", "in", "acct-211", "?" ], "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": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "total", "number", "of", "students", "enrolled", "in", "ACCT-211", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "total" ], [ "number" ], [ "of" ], [ "student" ], [ "enrolled" ], [ "in" ], [ "acct-211" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "acct-211", "NN" ], [ "?", "." ] ], "values": [ "211", "ACCT-211", "ACCT" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "college_1", "query": "SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211'", "query_toks": [ "SELECT", "T3.stu_fname", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "student", "AS", "T3", "ON", "T2.stu_num", "=", "T3.stu_num", "WHERE", "T1.crs_code", "=", "'ACCT-211", "'" ], "query_toks_no_value": [ "select", "t3", ".", "stu_fname", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "student", "as", "t3", "on", "t2", ".", "stu_num", "=", "t3", ".", "stu_num", "where", "t1", ".", "crs_code", "=", "value" ], "question": "What is the first name of each student enrolled in class ACCT-211?", "question_toks": [ "what", "is", "first", "name", "of", "each", "student", "enrolled", "in", "class", "acct-211", "?" ], "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": [ false, [ [ 0, [ 0, [ 0, 34, 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 ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "first", "name", "of", "each", "student", "enrolled", "in", "class", "ACCT-211", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "name" ], [ "of" ], [ "each" ], [ "student" ], [ "enrolled" ], [ "in" ], [ "class" ], [ "acct-211" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "student", "NN" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "class", "NN" ], [ "acct-211", "NN" ], [ "?", "." ] ], "values": [ "1", "211", "ACCT-211" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(28) T(6) 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(2) T(0) V(2)" }, { "db_id": "college_1", "query": "SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211'", "query_toks": [ "SELECT", "T3.stu_fname", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "student", "AS", "T3", "ON", "T2.stu_num", "=", "T3.stu_num", "WHERE", "T1.crs_code", "=", "'ACCT-211", "'" ], "query_toks_no_value": [ "select", "t3", ".", "stu_fname", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "student", "as", "t3", "on", "t2", ".", "stu_num", "=", "t3", ".", "stu_num", "where", "t1", ".", "crs_code", "=", "value" ], "question": "What are the first names of all students in course ACCT-211?", "question_toks": [ "what", "are", "first", "name", "of", "all", "student", "in", "course", "acct-211", "?" ], "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": [ false, [ [ 0, [ 0, [ 0, 34, 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 ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "all", "students", "in", "course", "ACCT-211", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "of" ], [ "all" ], [ "student" ], [ "in" ], [ "course" ], [ "acct-211" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "in", "IN" ], [ "course", "NN" ], [ "acct-211", "NN" ], [ "?", "." ] ], "values": [ "ACCT-211", "211", "1", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(28) T(6) 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(2) T(0) V(0)" }, { "db_id": "college_1", "query": "SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' AND T2.enroll_grade = 'C'", "query_toks": [ "SELECT", "T3.stu_fname", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "student", "AS", "T3", "ON", "T2.stu_num", "=", "T3.stu_num", "WHERE", "T1.crs_code", "=", "'ACCT-211", "'", "AND", "T2.enroll_grade", "=", "'C", "'" ], "query_toks_no_value": [ "select", "t3", ".", "stu_fname", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "student", "as", "t3", "on", "t2", ".", "stu_num", "=", "t3", ".", "stu_num", "where", "t1", ".", "crs_code", "=", "value", "and", "t2", ".", "enroll_grade", "=", "value" ], "question": "What is the first name of students enrolled in class ACCT-211 and got grade C?", "question_toks": [ "what", "is", "first", "name", "of", "student", "enrolled", "in", "class", "acct-211", "and", "got", "grade", "c", "?" ], "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": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], "\"C\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "first", "name", "of", "students", "enrolled", "in", "class", "ACCT-211", "and", "got", "grade", "C", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "name" ], [ "of" ], [ "student" ], [ "enrolled" ], [ "in" ], [ "class" ], [ "acct-211" ], [ "and" ], [ "got" ], [ "grade" ], [ "c" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "class", "NN" ], [ "acct-211", "NN" ], [ "and", "CC" ], [ "got", "VBD" ], [ "grade", "VBN" ], [ "c", "NNS" ], [ "?", "." ] ], "values": [ "C", "ACCT-211", "211", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(28) T(6) Filter(0) Filter(2) A(0) C(2) T(0) V(1) Filter(2) A(0) C(22) T(4) V(0)" }, { "db_id": "college_1", "query": "SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' AND T2.enroll_grade = 'C'", "query_toks": [ "SELECT", "T3.stu_fname", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "student", "AS", "T3", "ON", "T2.stu_num", "=", "T3.stu_num", "WHERE", "T1.crs_code", "=", "'ACCT-211", "'", "AND", "T2.enroll_grade", "=", "'C", "'" ], "query_toks_no_value": [ "select", "t3", ".", "stu_fname", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "student", "as", "t3", "on", "t2", ".", "stu_num", "=", "t3", ".", "stu_num", "where", "t1", ".", "crs_code", "=", "value", "and", "t2", ".", "enroll_grade", "=", "value" ], "question": "What are the first names of all students who took ACCT-211 and received a C?", "question_toks": [ "what", "are", "first", "name", "of", "all", "student", "who", "took", "acct-211", "and", "received", "a", "c", "?" ], "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": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], "\"C\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "all", "students", "who", "took", "ACCT-211", "and", "received", "a", "C", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "took" ], [ "acct-211" ], [ "and" ], [ "received" ], [ "a" ], [ "c" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "took", "VBD" ], [ "acct-211", "NN" ], [ "and", "CC" ], [ "received", "VBD" ], [ "a", "DT" ], [ "c", "NN" ], [ "?", "." ] ], "values": [ "C", "James", "211", "ACCT-211", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(28) T(6) Filter(0) Filter(2) A(0) C(2) T(0) V(3) Filter(2) A(0) C(22) T(4) V(0)" }, { "db_id": "college_1", "query": "SELECT count(*) FROM employee", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "employee" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employee" ], "question": "Find the total number of employees.", "question_toks": [ "find", "total", "number", "of", "employee", "." ], "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": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "total", "number", "of", "employees", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "number" ], [ "of" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "college_1", "query": "SELECT count(*) FROM employee", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "employee" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employee" ], "question": "How many employees are there all together?", "question_toks": [ "how", "many", "employee", "are", "there", "all", "together", "?" ], "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": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "employees", "are", "there", "all", "together", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "employee" ], [ "are" ], [ "there" ], [ "all" ], [ "together" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "employee", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "all", "DT" ], [ "together", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "college_1", "query": "SELECT count(*) FROM professor WHERE prof_high_degree = 'Ph.D.'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "professor", "WHERE", "prof_high_degree", "=", "'Ph.D", ".", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "professor", "where", "prof_high_degree", "=", "value" ], "question": "How many professors do have a Ph.D. degree?", "question_toks": [ "how", "many", "professor", "do", "have", "a", "ph.d.", "degree", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "professors", "do", "have", "a", "Ph.D.", "degree", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "professor" ], [ "do" ], [ "have" ], [ "a" ], [ "ph.d." ], [ "degree" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "professor", "NN" ], [ "do", "VBP" ], [ "have", "VB" ], [ "a", "DT" ], [ "ph.d.", "NN" ], [ "degree", "NN" ], [ "?", "." ] ], "values": [ "Ph.D." ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(25) T(5) V(0)" }, { "db_id": "college_1", "query": "SELECT count(*) FROM professor WHERE prof_high_degree = 'Ph.D.'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "professor", "WHERE", "prof_high_degree", "=", "'Ph.D", ".", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "professor", "where", "prof_high_degree", "=", "value" ], "question": "What is the total number of professors with a Ph.D. ?", "question_toks": [ "what", "is", "total", "number", "of", "professor", "with", "a", "ph.d.", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "professors", "with", "a", "Ph.D.", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "professor" ], [ "with" ], [ "a" ], [ "ph.d." ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "ph.d.", "NN" ], [ "?", "." ] ], "values": [ "Ph.D." ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(25) T(5) V(0)" }, { "db_id": "college_1", "query": "SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code WHERE T4.dept_name = 'Accounting'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "department", "AS", "T4", "ON", "T3.dept_code", "=", "T4.dept_code", "WHERE", "T4.dept_name", "=", "'Accounting", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "department", "as", "t4", "on", "t3", ".", "dept_code", "=", "t4", ".", "dept_code", "where", "t4", ".", "dept_name", "=", "value" ], "question": "How many students are enrolled in the class taught by some professor from the accounting department?", "question_toks": [ "how", "many", "student", "are", "enrolled", "in", "class", "taught", "by", "some", "professor", "from", "accounting", "department", "?" ], "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": [ false, [ [ 3, [ 0, [ 0, 0, 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 ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Accounting\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "students", "are", "enrolled", "in", "the", "class", "taught", "by", "some", "professor", "from", "the", "accounting", "department", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "enrolled" ], [ "in" ], [ "class" ], [ "taught" ], [ "by" ], [ "some" ], [ "professor" ], [ "from" ], [ "accounting" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "class", "NN" ], [ "taught", "NN" ], [ "by", "IN" ], [ "some", "DT" ], [ "professor", "NN" ], [ "from", "IN" ], [ "accounting", "VBG" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Accounting", "Accounting II", "Accounting I" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) 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(2) A(0) C(10) T(2) V(0)" }, { "db_id": "college_1", "query": "SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code WHERE T4.dept_name = 'Accounting'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "department", "AS", "T4", "ON", "T3.dept_code", "=", "T4.dept_code", "WHERE", "T4.dept_name", "=", "'Accounting", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "department", "as", "t4", "on", "t3", ".", "dept_code", "=", "t4", ".", "dept_code", "where", "t4", ".", "dept_name", "=", "value" ], "question": "How many students are enrolled in some classes that are taught by an accounting professor?", "question_toks": [ "how", "many", "student", "are", "enrolled", "in", "some", "class", "that", "are", "taught", "by", "an", "accounting", "professor", "?" ], "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": [ false, [ [ 3, [ 0, [ 0, 0, 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 ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Accounting\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "students", "are", "enrolled", "in", "some", "classes", "that", "are", "taught", "by", "an", "accounting", "professor", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "enrolled" ], [ "in" ], [ "some" ], [ "class" ], [ "that" ], [ "are" ], [ "taught" ], [ "by" ], [ "an" ], [ "accounting" ], [ "professor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "some", "DT" ], [ "class", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "an", "DT" ], [ "accounting", "NN" ], [ "professor", "NN" ], [ "?", "." ] ], "values": [ "Accounting I", "Accounting", "Accounting II" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) 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(2) A(0) C(10) T(2) V(1)" }, { "db_id": "college_1", "query": "SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T4.dept_name", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "department", "AS", "T4", "ON", "T3.dept_code", "=", "T4.dept_code", "GROUP", "BY", "T3.dept_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t4", ".", "dept_name", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "department", "as", "t4", "on", "t3", ".", "dept_code", "=", "t4", ".", "dept_code", "group", "by", "t3", ".", "dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the department that has the largest number of students enrolled?", "question_toks": [ "what", "is", "name", "of", "department", "that", "ha", "largest", "number", "of", "student", "enrolled", "?" ], "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": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, 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 ], "and", [ false, 8, [ 0, [ 0, 24, 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": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "department", "that", "has", "the", "largest", "number", "of", "students", "enrolled", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "department" ], [ "that" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "student" ], [ "enrolled" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "enrolled", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(2) Sup(0) A(3) C(0) T(1) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(4) Filter(18) A(0) C(1) T(4) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "college_1", "query": "SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T4.dept_name", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "department", "AS", "T4", "ON", "T3.dept_code", "=", "T4.dept_code", "GROUP", "BY", "T3.dept_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t4", ".", "dept_name", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "department", "as", "t4", "on", "t3", ".", "dept_code", "=", "t4", ".", "dept_code", "group", "by", "t3", ".", "dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the department with the most students enrolled?", "question_toks": [ "what", "is", "name", "of", "department", "with", "most", "student", "enrolled", "?" ], "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": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, 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 ], "and", [ false, 8, [ 0, [ 0, 24, 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": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "department", "with", "the", "most", "students", "enrolled", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "department" ], [ "with" ], [ "most" ], [ "student" ], [ "enrolled" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "student", "NN" ], [ "enrolled", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(2) Sup(0) A(3) C(0) T(1) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(4) Filter(18) A(0) C(1) T(4) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "college_1", "query": "SELECT dept_name FROM department ORDER BY dept_name", "query_toks": [ "SELECT", "dept_name", "FROM", "department", "ORDER", "BY", "dept_name" ], "query_toks_no_value": [ "select", "dept_name", "from", "department", "order", "by", "dept_name" ], "question": "list names of all departments ordered by their names.", "question_toks": [ "list", "name", "of", "all", "department", "ordered", "by", "their", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "list", "names", "of", "all", "departments", "ordered", "by", "their", "names", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "department" ], [ "ordered" ], [ "by" ], [ "their" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "department", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "James", "HIST" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(10) T(2) Order(1) A(0) C(10) T(2)" }, { "db_id": "college_1", "query": "SELECT dept_name FROM department ORDER BY dept_name", "query_toks": [ "SELECT", "dept_name", "FROM", "department", "ORDER", "BY", "dept_name" ], "query_toks_no_value": [ "select", "dept_name", "from", "department", "order", "by", "dept_name" ], "question": "What are the names of all departments in alphabetical order?", "question_toks": [ "what", "are", "name", "of", "all", "department", "in", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "departments", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "department" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "department", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(10) T(2) Order(1) A(0) C(10) T(2)" }, { "db_id": "college_1", "query": "SELECT class_code FROM CLASS WHERE class_room = 'KLR209'", "query_toks": [ "SELECT", "class_code", "FROM", "CLASS", "WHERE", "class_room", "=", "'KLR209", "'" ], "query_toks_no_value": [ "select", "class_code", "from", "class", "where", "class_room", "=", "value" ], "question": "List the codes of all courses that take place in room KLR209.", "question_toks": [ "list", "code", "of", "all", "course", "that", "take", "place", "in", "room", "klr209", "." ], "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, 5, false ], null ], "\"KLR209\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "List", "the", "codes", "of", "all", "courses", "that", "take", "place", "in", "room", "KLR209", "." ], "question_arg": [ [ "list" ], [ "code" ], [ "of" ], [ "all" ], [ "course" ], [ "that" ], [ "take" ], [ "place" ], [ "in" ], [ "room" ], [ "klr209" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "course", "NN" ], [ "that", "WDT" ], [ "take", "VBP" ], [ "place", "NN" ], [ "in", "IN" ], [ "room", "NN" ], [ "klr209", "NN" ], [ ".", "." ] ], "values": [ "KLR209" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "college_1", "query": "SELECT class_code FROM CLASS WHERE class_room = 'KLR209'", "query_toks": [ "SELECT", "class_code", "FROM", "CLASS", "WHERE", "class_room", "=", "'KLR209", "'" ], "query_toks_no_value": [ "select", "class_code", "from", "class", "where", "class_room", "=", "value" ], "question": "What are the codes of all the courses that are located in room KLR209?", "question_toks": [ "what", "are", "code", "of", "all", "course", "that", "are", "located", "in", "room", "klr209", "?" ], "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, 5, false ], null ], "\"KLR209\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "codes", "of", "all", "the", "courses", "that", "are", "located", "in", "room", "KLR209", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "code" ], [ "of" ], [ "all" ], [ "course" ], [ "that" ], [ "are" ], [ "located" ], [ "in" ], [ "room" ], [ "klr209" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "code", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "course", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "in", "IN" ], [ "room", "NN" ], [ "klr209", "NN" ], [ "?", "." ] ], "values": [ "KLR209" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "college_1", "query": "SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' ORDER BY emp_dob", "query_toks": [ "SELECT", "emp_fname", "FROM", "employee", "WHERE", "emp_jobcode", "=", "'PROF", "'", "ORDER", "BY", "emp_dob" ], "query_toks_no_value": [ "select", "emp_fname", "from", "employee", "where", "emp_jobcode", "=", "value", "order", "by", "emp_dob" ], "question": "List the first name of all employees with job code PROF ordered by their date of birth.", "question_toks": [ "list", "first", "name", "of", "all", "employee", "with", "job", "code", "prof", "ordered", "by", "their", "date", "of", "birth", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 23, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"PROF\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "List", "the", "first", "name", "of", "all", "employees", "with", "job", "code", "PROF", "ordered", "by", "their", "date", "of", "birth", "." ], "question_arg": [ [ "list" ], [ "first" ], [ "name" ], [ "of" ], [ "all" ], [ "employee" ], [ "with" ], [ "employee", "job", "code" ], [ "prof" ], [ "ordered" ], [ "by" ], [ "their" ], [ "date" ], [ "of" ], [ "birth" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "with", "IN" ], [ "job", "NN" ], [ "code", "NN" ], [ "prof", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "date", "NN" ], [ "of", "IN" ], [ "birth", "NN" ], [ ".", "." ] ], "values": [ "1", "PROF" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(16) T(3) Filter(2) A(0) C(18) T(3) V(1) Order(1) A(0) C(20) T(3)" }, { "db_id": "college_1", "query": "SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' ORDER BY emp_dob", "query_toks": [ "SELECT", "emp_fname", "FROM", "employee", "WHERE", "emp_jobcode", "=", "'PROF", "'", "ORDER", "BY", "emp_dob" ], "query_toks_no_value": [ "select", "emp_fname", "from", "employee", "where", "emp_jobcode", "=", "value", "order", "by", "emp_dob" ], "question": "What are the first names of all employees that are professors ordered by date of birth?", "question_toks": [ "what", "are", "first", "name", "of", "all", "employee", "that", "are", "professor", "ordered", "by", "date", "of", "birth", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 23, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"PROF\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "all", "employees", "that", "are", "professors", "ordered", "by", "date", "of", "birth", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "of" ], [ "all" ], [ "employee" ], [ "that" ], [ "are" ], [ "professor" ], [ "ordered" ], [ "by" ], [ "date" ], [ "of" ], [ "birth" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "professor", "RB" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "date", "NN" ], [ "of", "IN" ], [ "birth", "NN" ], [ "?", "." ] ], "values": [ "1", "James", "PROF" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(16) T(3) Filter(2) A(0) C(18) T(3) V(2) Order(1) A(0) C(20) T(3)" }, { "db_id": "college_1", "query": "SELECT T2.emp_fname , T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num ORDER BY T2.emp_fname", "query_toks": [ "SELECT", "T2.emp_fname", ",", "T1.prof_office", "FROM", "professor", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "ORDER", "BY", "T2.emp_fname" ], "query_toks_no_value": [ "select", "t2", ".", "emp_fname", ",", "t1", ".", "prof_office", "from", "professor", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "order", "by", "t2", ".", "emp_fname" ], "question": "Find the first names and offices of all professors sorted by alphabetical order of their first name.", "question_toks": [ "find", "first", "name", "and", "office", "of", "all", "professor", "sorted", "by", "alphabetical", "order", "of", "their", "first", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 19, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "first", "names", "and", "offices", "of", "all", "professors", "sorted", "by", "alphabetical", "order", "of", "their", "first", "name", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "name" ], [ "and" ], [ "office" ], [ "of" ], [ "all" ], [ "professor" ], [ "sorted" ], [ "by" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "their" ], [ "first" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "office", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "professor", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(16) T(3) A(0) C(23) T(5) Order(1) A(0) C(16) T(3)" }, { "db_id": "college_1", "query": "SELECT T2.emp_fname , T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num ORDER BY T2.emp_fname", "query_toks": [ "SELECT", "T2.emp_fname", ",", "T1.prof_office", "FROM", "professor", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "ORDER", "BY", "T2.emp_fname" ], "query_toks_no_value": [ "select", "t2", ".", "emp_fname", ",", "t1", ".", "prof_office", "from", "professor", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "order", "by", "t2", ".", "emp_fname" ], "question": "What are the first names and office locations for all professors sorted alphabetically by first name?", "question_toks": [ "what", "are", "first", "name", "and", "office", "location", "for", "all", "professor", "sorted", "alphabetically", "by", "first", "name", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 19, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "and", "office", "locations", "for", "all", "professors", "sorted", "alphabetically", "by", "first", "name", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "and" ], [ "office" ], [ "location" ], [ "for" ], [ "all" ], [ "professor" ], [ "sorted" ], [ "alphabetically" ], [ "by" ], [ "first" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "office", "NN" ], [ "location", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "professor", "NN" ], [ "sorted", "VBN" ], [ "alphabetically", "RB" ], [ "by", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(16) T(3) A(0) C(23) T(5) Order(1) A(0) C(16) T(3)" }, { "db_id": "college_1", "query": "SELECT emp_fname , emp_lname FROM employee ORDER BY emp_dob LIMIT 1", "query_toks": [ "SELECT", "emp_fname", ",", "emp_lname", "FROM", "employee", "ORDER", "BY", "emp_dob", "LIMIT", "1" ], "query_toks_no_value": [ "select", "emp_fname", ",", "emp_lname", "from", "employee", "order", "by", "emp_dob", "limit", "value" ], "question": "What is the first and last name of the oldest employee?", "question_toks": [ "what", "is", "first", "and", "last", "name", "of", "oldest", "employee", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 23, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "first", "and", "last", "name", "of", "the", "oldest", "employee", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "and" ], [ "last" ], [ "name" ], [ "of" ], [ "oldest" ], [ "employee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "oldest", "JJS" ], [ "employee", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(16) T(3) A(0) C(15) T(3) Sup(1) A(0) C(20) T(3)" }, { "db_id": "college_1", "query": "SELECT emp_fname , emp_lname FROM employee ORDER BY emp_dob LIMIT 1", "query_toks": [ "SELECT", "emp_fname", ",", "emp_lname", "FROM", "employee", "ORDER", "BY", "emp_dob", "LIMIT", "1" ], "query_toks_no_value": [ "select", "emp_fname", ",", "emp_lname", "from", "employee", "order", "by", "emp_dob", "limit", "value" ], "question": "What are the first and last names of the employee with the earliest date of birth?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "employee", "with", "earliest", "date", "of", "birth", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 23, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "of", "the", "employee", "with", "the", "earliest", "date", "of", "birth", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last" ], [ "name" ], [ "of" ], [ "employee" ], [ "with" ], [ "earliest" ], [ "date" ], [ "of" ], [ "birth" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "with", "IN" ], [ "earliest", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "birth", "NN" ], [ "?", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(16) T(3) A(0) C(15) T(3) Sup(1) A(0) C(20) T(3)" }, { "db_id": "college_1", "query": "SELECT stu_fname , stu_lname , stu_gpa FROM student WHERE stu_gpa > 3 ORDER BY stu_dob DESC LIMIT 1", "query_toks": [ "SELECT", "stu_fname", ",", "stu_lname", ",", "stu_gpa", "FROM", "student", "WHERE", "stu_gpa", ">", "3", "ORDER", "BY", "stu_dob", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "stu_fname", ",", "stu_lname", ",", "stu_gpa", "from", "student", "where", "stu_gpa", ">", "value", "order", "by", "stu_dob", "desc", "limit", "value" ], "question": "What is the first, last name, gpa of the youngest one among students whose GPA is above 3?", "question_toks": [ "what", "is", "first", ",", "last", "name", ",", "gpa", "of", "youngest", "one", "among", "student", "whose", "gpa", "is", "above", "3", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 36, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 39, false ], null ], 3.0, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "first", ",", "last", "name", ",", "gpa", "of", "the", "youngest", "one", "among", "students", "whose", "GPA", "is", "above", "3", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "," ], [ "last" ], [ "name" ], [ "," ], [ "gpa" ], [ "of" ], [ "youngest" ], [ "one" ], [ "among" ], [ "student" ], [ "whose" ], [ "gpa" ], [ "is" ], [ "above" ], [ "3" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "RB" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "gpa", "NN" ], [ "of", "IN" ], [ "youngest", "JJS" ], [ "one", "CD" ], [ "among", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "gpa", "NN" ], [ "is", "VBZ" ], [ "above", "IN" ], [ "3", "CD" ], [ "?", "." ] ], "values": [ "3", "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(28) T(6) A(0) C(27) T(6) A(0) C(33) T(6) Sup(0) A(0) C(30) T(6) Filter(5) A(0) C(33) T(6) V(0)" }, { "db_id": "college_1", "query": "SELECT stu_fname , stu_lname , stu_gpa FROM student WHERE stu_gpa > 3 ORDER BY stu_dob DESC LIMIT 1", "query_toks": [ "SELECT", "stu_fname", ",", "stu_lname", ",", "stu_gpa", "FROM", "student", "WHERE", "stu_gpa", ">", "3", "ORDER", "BY", "stu_dob", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "stu_fname", ",", "stu_lname", ",", "stu_gpa", "from", "student", "where", "stu_gpa", ">", "value", "order", "by", "stu_dob", "desc", "limit", "value" ], "question": "What is the first and last name of the youngest student with a GPA above 3, and what is their GPA?", "question_toks": [ "what", "is", "first", "and", "last", "name", "of", "youngest", "student", "with", "a", "gpa", "above", "3", ",", "and", "what", "is", "their", "gpa", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 36, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 39, false ], null ], 3.0, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "first", "and", "last", "name", "of", "the", "youngest", "student", "with", "a", "GPA", "above", "3", ",", "and", "what", "is", "their", "GPA", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "and" ], [ "last" ], [ "name" ], [ "of" ], [ "youngest" ], [ "student" ], [ "with" ], [ "a" ], [ "gpa" ], [ "above" ], [ "3" ], [ "," ], [ "and" ], [ "what" ], [ "is" ], [ "their" ], [ "gpa" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "youngest", "JJS" ], [ "student", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "gpa", "NN" ], [ "above", "IN" ], [ "3", "CD" ], [ ",", "," ], [ "and", "CC" ], [ "what", "WP" ], [ "is", "VBZ" ], [ "their", "PRP$" ], [ "gpa", "NN" ], [ "?", "." ] ], "values": [ "3", "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(28) T(6) A(0) C(27) T(6) A(0) C(33) T(6) Sup(0) A(0) C(30) T(6) Filter(5) A(0) C(33) T(6) V(0)" }, { "db_id": "college_1", "query": "SELECT DISTINCT stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE enroll_grade = 'C'", "query_toks": [ "SELECT", "DISTINCT", "stu_fname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "WHERE", "enroll_grade", "=", "'C", "'" ], "query_toks_no_value": [ "select", "distinct", "stu_fname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "where", "enroll_grade", "=", "value" ], "question": "What is the first name of students who got grade C in any class?", "question_toks": [ "what", "is", "first", "name", "of", "student", "who", "got", "grade", "c", "in", "any", "class", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], "\"C\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "first", "name", "of", "students", "who", "got", "grade", "C", "in", "any", "class", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "got" ], [ "grade" ], [ "c" ], [ "in" ], [ "any" ], [ "class" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "got", "VBD" ], [ "grade", "JJ" ], [ "c", "NNS" ], [ "in", "IN" ], [ "any", "DT" ], [ "class", "NN" ], [ "?", "." ] ], "values": [ "C", "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(28) T(6) Filter(2) A(0) C(22) T(4) V(0)" }, { "db_id": "college_1", "query": "SELECT DISTINCT stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE enroll_grade = 'C'", "query_toks": [ "SELECT", "DISTINCT", "stu_fname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "WHERE", "enroll_grade", "=", "'C", "'" ], "query_toks_no_value": [ "select", "distinct", "stu_fname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "where", "enroll_grade", "=", "value" ], "question": "What are the first names of all students who got a grade C in a class?", "question_toks": [ "what", "are", "first", "name", "of", "all", "student", "who", "got", "a", "grade", "c", "in", "a", "class", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], "\"C\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "all", "students", "who", "got", "a", "grade", "C", "in", "a", "class", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "got" ], [ "a" ], [ "grade" ], [ "c" ], [ "in" ], [ "a" ], [ "class" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "got", "VBD" ], [ "a", "DT" ], [ "grade", "NN" ], [ "c", "NN" ], [ "in", "IN" ], [ "a", "DT" ], [ "class", "NN" ], [ "?", "." ] ], "values": [ "1", "James", "C" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(28) T(6) Filter(2) A(0) C(22) T(4) V(2)" }, { "db_id": "college_1", "query": "SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "T2.dept_name", "FROM", "professor", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "dept_name", "from", "professor", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "What is the name of department where has the smallest number of professors?", "question_toks": [ "what", "is", "name", "of", "department", "where", "ha", "smallest", "number", "of", "professor", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 28, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, 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, 28, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "department", "where", "has", "the", "smallest", "number", "of", "professors", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "department" ], [ "where" ], [ "ha" ], [ "smallest" ], [ "number" ], [ "of" ], [ "professor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "where", "WRB" ], [ "ha", "NN" ], [ "smallest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(2) Sup(1) A(3) C(0) T(5) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(5)" }, { "db_id": "college_1", "query": "SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "T2.dept_name", "FROM", "professor", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "dept_name", "from", "professor", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "What is the name of the department with the fewest professors?", "question_toks": [ "what", "is", "name", "of", "department", "with", "fewest", "professor", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 28, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, 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, 28, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "department", "with", "the", "fewest", "professors", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "department" ], [ "with" ], [ "fewest" ], [ "professor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "fewest", "NN" ], [ "professor", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(2) Sup(1) A(3) C(0) T(5) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(5)" }, { "db_id": "college_1", "query": "SELECT T2.dept_name , T1.dept_code FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.prof_high_degree = 'Ph.D.' GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.dept_name", ",", "T1.dept_code", "FROM", "professor", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "WHERE", "T1.prof_high_degree", "=", "'Ph.D", ".", "'", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "dept_name", ",", "t1", ".", "dept_code", "from", "professor", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "where", "t1", ".", "prof_high_degree", "=", "value", "group", "by", "t1", ".", "dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of department where has the largest number of professors with a Ph.D. degree?", "question_toks": [ "what", "is", "name", "of", "department", "where", "ha", "largest", "number", "of", "professor", "with", "a", "ph.d.", "degree", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 28, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "department", "where", "has", "the", "largest", "number", "of", "professors", "with", "a", "Ph.D.", "degree", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "department" ], [ "where" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "professor" ], [ "with" ], [ "a" ], [ "ph.d." ], [ "degree" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "where", "WRB" ], [ "ha", "NN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "ph.d.", "NN" ], [ "degree", "NN" ], [ "?", "." ] ], "values": [ "Ph.D." ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(10) T(2) A(0) C(7) T(5) Sup(0) A(3) C(0) T(5) Filter(2) A(0) C(25) T(5) V(0)" }, { "db_id": "college_1", "query": "SELECT T2.dept_name , T1.dept_code FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.prof_high_degree = 'Ph.D.' GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.dept_name", ",", "T1.dept_code", "FROM", "professor", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "WHERE", "T1.prof_high_degree", "=", "'Ph.D", ".", "'", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "dept_name", ",", "t1", ".", "dept_code", "from", "professor", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "where", "t1", ".", "prof_high_degree", "=", "value", "group", "by", "t1", ".", "dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which department has the most professors with a Ph.D.?", "question_toks": [ "which", "department", "ha", "most", "professor", "with", "a", "ph.d.", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 28, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Which", "department", "has", "the", "most", "professors", "with", "a", "Ph.D.", "?" ], "question_arg": [ [ "which" ], [ "department" ], [ "ha" ], [ "most" ], [ "professor" ], [ "with" ], [ "a" ], [ "ph.d." ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "department", "NN" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "professor", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "ph.d.", "NN" ], [ "?", "." ] ], "values": [ "Ph.D." ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(10) T(2) A(0) C(7) T(5) Sup(0) A(3) C(0) T(5) Filter(2) A(0) C(25) T(5) V(0)" }, { "db_id": "college_1", "query": "SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' EXCEPT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num", "query_toks": [ "SELECT", "emp_fname", "FROM", "employee", "WHERE", "emp_jobcode", "=", "'PROF", "'", "EXCEPT", "SELECT", "T1.emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.emp_num", "=", "T2.prof_num" ], "query_toks_no_value": [ "select", "emp_fname", "from", "employee", "where", "emp_jobcode", "=", "value", "except", "select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "prof_num" ], "question": "What are the first names of the professors who do not teach a class.", "question_toks": [ "what", "are", "first", "name", "of", "professor", "who", "do", "not", "teach", "a", "class", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, 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", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"PROF\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "the", "professors", "who", "do", "not", "teach", "a", "class", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "of" ], [ "professor" ], [ "who" ], [ "do" ], [ "not" ], [ "teach" ], [ "a" ], [ "class" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "teach", "VB" ], [ "a", "DT" ], [ "class", "NN" ], [ ".", "." ] ], "values": [ "1", "James", "PROF" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(2) A(0) C(18) T(3) V(2) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(6) T(0)" }, { "db_id": "college_1", "query": "SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' EXCEPT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num", "query_toks": [ "SELECT", "emp_fname", "FROM", "employee", "WHERE", "emp_jobcode", "=", "'PROF", "'", "EXCEPT", "SELECT", "T1.emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.emp_num", "=", "T2.prof_num" ], "query_toks_no_value": [ "select", "emp_fname", "from", "employee", "where", "emp_jobcode", "=", "value", "except", "select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "prof_num" ], "question": "What are the first names of all professors not teaching any classes?", "question_toks": [ "what", "are", "first", "name", "of", "all", "professor", "not", "teaching", "any", "class", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, 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", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"PROF\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "all", "professors", "not", "teaching", "any", "classes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "of" ], [ "all" ], [ "professor" ], [ "not" ], [ "teaching" ], [ "any" ], [ "class" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "professor", "NN" ], [ "not", "RB" ], [ "teaching", "VBG" ], [ "any", "DT" ], [ "class", "NN" ], [ "?", "." ] ], "values": [ "1", "James", "PROF" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(2) A(0) C(18) T(3) V(2) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(6) T(0)" }, { "db_id": "college_1", "query": "SELECT T1.emp_fname FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History' EXCEPT SELECT T4.emp_fname FROM employee AS T4 JOIN CLASS AS T5 ON T4.emp_num = T5.prof_num", "query_toks": [ "SELECT", "T1.emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "JOIN", "department", "AS", "T3", "ON", "T2.dept_code", "=", "T3.dept_code", "WHERE", "T3.dept_name", "=", "'History", "'", "EXCEPT", "SELECT", "T4.emp_fname", "FROM", "employee", "AS", "T4", "JOIN", "CLASS", "AS", "T5", "ON", "T4.emp_num", "=", "T5.prof_num" ], "query_toks_no_value": [ "select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t2", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value", "except", "select", "t4", ".", "emp_fname", "from", "employee", "as", "t4", "join", "class", "as", "t5", "on", "t4", ".", "emp_num", "=", "t5", ".", "prof_num" ], "question": "What is the first names of the professors from the history department who do not teach a class.", "question_toks": [ "what", "is", "first", "name", "of", "professor", "from", "history", "department", "who", "do", "not", "teach", "a", "class", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, 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 ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "first", "names", "of", "the", "professors", "from", "the", "history", "department", "who", "do", "not", "teach", "a", "class", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "name" ], [ "of" ], [ "professor" ], [ "from" ], [ "history" ], [ "department" ], [ "who" ], [ "do" ], [ "not" ], [ "teach" ], [ "a" ], [ "class" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "from", "IN" ], [ "history", "NN" ], [ "department", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "teach", "VB" ], [ "a", "DT" ], [ "class", "NN" ], [ ".", "." ] ], "values": [ "1", "History", "James" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(0) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(10) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(6) T(0)" }, { "db_id": "college_1", "query": "SELECT T1.emp_fname FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History' EXCEPT SELECT T4.emp_fname FROM employee AS T4 JOIN CLASS AS T5 ON T4.emp_num = T5.prof_num", "query_toks": [ "SELECT", "T1.emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "JOIN", "department", "AS", "T3", "ON", "T2.dept_code", "=", "T3.dept_code", "WHERE", "T3.dept_name", "=", "'History", "'", "EXCEPT", "SELECT", "T4.emp_fname", "FROM", "employee", "AS", "T4", "JOIN", "CLASS", "AS", "T5", "ON", "T4.emp_num", "=", "T5.prof_num" ], "query_toks_no_value": [ "select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t2", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value", "except", "select", "t4", ".", "emp_fname", "from", "employee", "as", "t4", "join", "class", "as", "t5", "on", "t4", ".", "emp_num", "=", "t5", ".", "prof_num" ], "question": "What are the first names of all history professors who do not teach?", "question_toks": [ "what", "are", "first", "name", "of", "all", "history", "professor", "who", "do", "not", "teach", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, 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 ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "all", "history", "professors", "who", "do", "not", "teach", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "of" ], [ "all" ], [ "history" ], [ "professor" ], [ "who" ], [ "do" ], [ "not" ], [ "teach" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "history", "NN" ], [ "professor", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "teach", "VB" ], [ "?", "." ] ], "values": [ "1", "James", "History" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(0) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(10) T(2) V(2) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(6) T(0)" }, { "db_id": "college_1", "query": "SELECT T1.emp_lname , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History'", "query_toks": [ "SELECT", "T1.emp_lname", ",", "T2.prof_office", "FROM", "employee", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "JOIN", "department", "AS", "T3", "ON", "T2.dept_code", "=", "T3.dept_code", "WHERE", "T3.dept_name", "=", "'History", "'" ], "query_toks_no_value": [ "select", "t1", ".", "emp_lname", ",", "t2", ".", "prof_office", "from", "employee", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t2", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value" ], "question": "What is the last name and office of the professor from the history department?", "question_toks": [ "what", "is", "last", "name", "and", "office", "of", "professor", "from", "history", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "last", "name", "and", "office", "of", "the", "professor", "from", "the", "history", "department", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last" ], [ "name" ], [ "and" ], [ "office" ], [ "of" ], [ "professor" ], [ "from" ], [ "history" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "office", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "from", "IN" ], [ "history", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "History" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(15) T(3) A(0) C(23) T(5) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "college_1", "query": "SELECT T1.emp_lname , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History'", "query_toks": [ "SELECT", "T1.emp_lname", ",", "T2.prof_office", "FROM", "employee", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "JOIN", "department", "AS", "T3", "ON", "T2.dept_code", "=", "T3.dept_code", "WHERE", "T3.dept_name", "=", "'History", "'" ], "query_toks_no_value": [ "select", "t1", ".", "emp_lname", ",", "t2", ".", "prof_office", "from", "employee", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t2", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value" ], "question": "What are the last name and office of all history professors?", "question_toks": [ "what", "are", "last", "name", "and", "office", "of", "all", "history", "professor", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "last", "name", "and", "office", "of", "all", "history", "professors", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "last" ], [ "name" ], [ "and" ], [ "office" ], [ "of" ], [ "all" ], [ "history" ], [ "professor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "office", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "history", "NN" ], [ "professor", "NN" ], [ "?", "." ] ], "values": [ "History" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(15) T(3) A(0) C(23) T(5) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "college_1", "query": "SELECT T3.dept_name , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T1.emp_lname = 'Heffington'", "query_toks": [ "SELECT", "T3.dept_name", ",", "T2.prof_office", "FROM", "employee", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "JOIN", "department", "AS", "T3", "ON", "T2.dept_code", "=", "T3.dept_code", "WHERE", "T1.emp_lname", "=", "'Heffington", "'" ], "query_toks_no_value": [ "select", "t3", ".", "dept_name", ",", "t2", ".", "prof_office", "from", "employee", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t2", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t1", ".", "emp_lname", "=", "value" ], "question": "What is department name and office for the professor whose last name is Heffington?", "question_toks": [ "what", "is", "department", "name", "and", "office", "for", "professor", "whose", "last", "name", "is", "heffington", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, 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, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Heffington\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "department", "name", "and", "office", "for", "the", "professor", "whose", "last", "name", "is", "Heffington", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "department", "name" ], [ "and" ], [ "office" ], [ "for" ], [ "professor" ], [ "whose" ], [ "last" ], [ "name" ], [ "is" ], [ "heffington" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "department", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "office", "NN" ], [ "for", "IN" ], [ "professor", "NN" ], [ "whose", "WP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "heffington", "VBN" ], [ "?", "." ] ], "values": [ "Heffington" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(2) A(0) C(23) T(5) Filter(2) A(0) C(15) T(3) V(0)" }, { "db_id": "college_1", "query": "SELECT T3.dept_name , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T1.emp_lname = 'Heffington'", "query_toks": [ "SELECT", "T3.dept_name", ",", "T2.prof_office", "FROM", "employee", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "JOIN", "department", "AS", "T3", "ON", "T2.dept_code", "=", "T3.dept_code", "WHERE", "T1.emp_lname", "=", "'Heffington", "'" ], "query_toks_no_value": [ "select", "t3", ".", "dept_name", ",", "t2", ".", "prof_office", "from", "employee", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t2", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t1", ".", "emp_lname", "=", "value" ], "question": "What is the name of the department and office location for the professor with the last name of Heffington?", "question_toks": [ "what", "is", "name", "of", "department", "and", "office", "location", "for", "professor", "with", "last", "name", "of", "heffington", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, 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, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Heffington\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "department", "and", "office", "location", "for", "the", "professor", "with", "the", "last", "name", "of", "Heffington", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "department" ], [ "and" ], [ "office" ], [ "location" ], [ "for" ], [ "professor" ], [ "with" ], [ "last" ], [ "name" ], [ "of" ], [ "heffington" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "and", "CC" ], [ "office", "NN" ], [ "location", "NN" ], [ "for", "IN" ], [ "professor", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "heffington", "NN" ], [ "?", "." ] ], "values": [ "Heffington" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(2) A(0) C(23) T(5) Filter(2) A(0) C(15) T(3) V(0)" }, { "db_id": "college_1", "query": "SELECT T1.emp_lname , T1.emp_hiredate FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num WHERE T2.prof_office = 'DRE 102'", "query_toks": [ "SELECT", "T1.emp_lname", ",", "T1.emp_hiredate", "FROM", "employee", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "WHERE", "T2.prof_office", "=", "'DRE", "102", "'" ], "query_toks_no_value": [ "select", "t1", ".", "emp_lname", ",", "t1", ".", "emp_hiredate", "from", "employee", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "where", "t2", ".", "prof_office", "=", "value" ], "question": "Find the last name and hire date of the professor who is in office DRE 102.", "question_toks": [ "find", "last", "name", "and", "hire", "date", "of", "professor", "who", "is", "in", "office", "dre", "102", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"DRE 102\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "last", "name", "and", "hire", "date", "of", "the", "professor", "who", "is", "in", "office", "DRE", "102", "." ], "question_arg": [ [ "find" ], [ "last" ], [ "name" ], [ "and" ], [ "employee", "hire", "date" ], [ "of" ], [ "professor" ], [ "who" ], [ "is" ], [ "in" ], [ "office" ], [ "dre" ], [ "102" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "hire", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "in", "IN" ], [ "office", "NN" ], [ "dre", "NN" ], [ "102", "CD" ], [ ".", "." ] ], "values": [ "DRE 102", "102" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(15) T(3) A(0) C(19) T(3) Filter(2) A(0) C(23) T(5) V(0)" }, { "db_id": "college_1", "query": "SELECT T1.emp_lname , T1.emp_hiredate FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num WHERE T2.prof_office = 'DRE 102'", "query_toks": [ "SELECT", "T1.emp_lname", ",", "T1.emp_hiredate", "FROM", "employee", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "WHERE", "T2.prof_office", "=", "'DRE", "102", "'" ], "query_toks_no_value": [ "select", "t1", ".", "emp_lname", ",", "t1", ".", "emp_hiredate", "from", "employee", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "where", "t2", ".", "prof_office", "=", "value" ], "question": "What is the last name of the professor whose office is located in DRE 102, and when were they hired?", "question_toks": [ "what", "is", "last", "name", "of", "professor", "whose", "office", "is", "located", "in", "dre", "102", ",", "and", "when", "were", "they", "hired", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"DRE 102\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "last", "name", "of", "the", "professor", "whose", "office", "is", "located", "in", "DRE", "102", ",", "and", "when", "were", "they", "hired", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last" ], [ "name" ], [ "of" ], [ "professor" ], [ "whose" ], [ "office" ], [ "is" ], [ "located" ], [ "in" ], [ "dre" ], [ "102" ], [ "," ], [ "and" ], [ "when" ], [ "were" ], [ "they" ], [ "hired" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "whose", "WP$" ], [ "office", "NN" ], [ "is", "VBZ" ], [ "located", "VBN" ], [ "in", "IN" ], [ "dre", "NN" ], [ "102", "CD" ], [ ",", "," ], [ "and", "CC" ], [ "when", "WRB" ], [ "were", "VBD" ], [ "they", "PRP" ], [ "hired", "VBD" ], [ "?", "." ] ], "values": [ "DRE 102", "102" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(15) T(3) A(0) C(19) T(3) Filter(2) A(0) C(23) T(5) V(0)" }, { "db_id": "college_1", "query": "SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num WHERE T3.stu_lname = 'Smithson'", "query_toks": [ "SELECT", "T1.crs_code", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "student", "AS", "T3", "ON", "T3.stu_num", "=", "T2.stu_num", "WHERE", "T3.stu_lname", "=", "'Smithson", "'" ], "query_toks_no_value": [ "select", "t1", ".", "crs_code", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "student", "as", "t3", "on", "t3", ".", "stu_num", "=", "t2", ".", "stu_num", "where", "t3", ".", "stu_lname", "=", "value" ], "question": "What is the code of the course which the student whose last name is Smithson took?", "question_toks": [ "what", "is", "code", "of", "course", "which", "student", "whose", "last", "name", "is", "smithson", "took", "?" ], "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": [ false, [ [ 0, [ 0, [ 0, 2, 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 ], "and", [ false, 2, [ 0, [ 0, 33, false ], null ], "\"Smithson\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "code", "of", "the", "course", "which", "the", "student", "whose", "last", "name", "is", "Smithson", "took", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "code" ], [ "of" ], [ "course" ], [ "which" ], [ "student" ], [ "whose" ], [ "last" ], [ "name" ], [ "is" ], [ "smithson" ], [ "took" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "code", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "which", "WDT" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "smithson", "JJ" ], [ "took", "VBD" ], [ "?", "." ] ], "values": [ "Smithson" ], "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(2) A(0) C(27) T(6) V(0)" }, { "db_id": "college_1", "query": "SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num WHERE T3.stu_lname = 'Smithson'", "query_toks": [ "SELECT", "T1.crs_code", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "student", "AS", "T3", "ON", "T3.stu_num", "=", "T2.stu_num", "WHERE", "T3.stu_lname", "=", "'Smithson", "'" ], "query_toks_no_value": [ "select", "t1", ".", "crs_code", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "student", "as", "t3", "on", "t3", ".", "stu_num", "=", "t2", ".", "stu_num", "where", "t3", ".", "stu_lname", "=", "value" ], "question": "What are the course codes for every class that the student with the last name Smithson took?", "question_toks": [ "what", "are", "course", "code", "for", "every", "class", "that", "student", "with", "last", "name", "smithson", "took", "?" ], "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": [ false, [ [ 0, [ 0, [ 0, 2, 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 ], "and", [ false, 2, [ 0, [ 0, 33, false ], null ], "\"Smithson\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "course", "codes", "for", "every", "class", "that", "the", "student", "with", "the", "last", "name", "Smithson", "took", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "course", "code" ], [ "for" ], [ "every" ], [ "class" ], [ "that" ], [ "student" ], [ "with" ], [ "last" ], [ "name" ], [ "smithson" ], [ "took" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "course", "NN" ], [ "code", "NN" ], [ "for", "IN" ], [ "every", "DT" ], [ "class", "NN" ], [ "that", "WDT" ], [ "student", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "smithson", "NN" ], [ "took", "VBD" ], [ "?", "." ] ], "values": [ "Smithson" ], "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(2) A(0) C(27) T(6) V(0)" }, { "db_id": "college_1", "query": "SELECT T4.crs_description , T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num JOIN course AS T4 ON T4.crs_code = T1.crs_code WHERE T3.stu_lname = 'Smithson'", "query_toks": [ "SELECT", "T4.crs_description", ",", "T4.crs_credit", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "student", "AS", "T3", "ON", "T3.stu_num", "=", "T2.stu_num", "JOIN", "course", "AS", "T4", "ON", "T4.crs_code", "=", "T1.crs_code", "WHERE", "T3.stu_lname", "=", "'Smithson", "'" ], "query_toks_no_value": [ "select", "t4", ".", "crs_description", ",", "t4", ".", "crs_credit", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "student", "as", "t3", "on", "t3", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "course", "as", "t4", "on", "t4", ".", "crs_code", "=", "t1", ".", "crs_code", "where", "t3", ".", "stu_lname", "=", "value" ], "question": "What are the description and credit of the course which the student whose last name is Smithson took?", "question_toks": [ "what", "are", "description", "and", "credit", "of", "course", "which", "student", "whose", "last", "name", "is", "smithson", "took", "?" ], "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": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, 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 ], "and", [ false, 8, [ 0, [ 0, 24, 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, 2, [ 0, [ 0, 33, false ], null ], "\"Smithson\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "description", "and", "credit", "of", "the", "course", "which", "the", "student", "whose", "last", "name", "is", "Smithson", "took", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "description" ], [ "and" ], [ "credit" ], [ "of" ], [ "course" ], [ "which" ], [ "student" ], [ "whose" ], [ "last" ], [ "name" ], [ "is" ], [ "smithson" ], [ "took" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "description", "NN" ], [ "and", "CC" ], [ "credit", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "which", "WDT" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "smithson", "JJ" ], [ "took", "VBD" ], [ "?", "." ] ], "values": [ "Smithson" ], "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(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(4) Filter(0) Filter(18) A(0) C(1) T(4) Root(5) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(27) T(6) V(0)" }, { "db_id": "college_1", "query": "SELECT T4.crs_description , T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num JOIN course AS T4 ON T4.crs_code = T1.crs_code WHERE T3.stu_lname = 'Smithson'", "query_toks": [ "SELECT", "T4.crs_description", ",", "T4.crs_credit", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "student", "AS", "T3", "ON", "T3.stu_num", "=", "T2.stu_num", "JOIN", "course", "AS", "T4", "ON", "T4.crs_code", "=", "T1.crs_code", "WHERE", "T3.stu_lname", "=", "'Smithson", "'" ], "query_toks_no_value": [ "select", "t4", ".", "crs_description", ",", "t4", ".", "crs_credit", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "student", "as", "t3", "on", "t3", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "course", "as", "t4", "on", "t4", ".", "crs_code", "=", "t1", ".", "crs_code", "where", "t3", ".", "stu_lname", "=", "value" ], "question": "How many credits is the course that the student with the last name Smithson took, and what is its description?", "question_toks": [ "how", "many", "credit", "is", "course", "that", "student", "with", "last", "name", "smithson", "took", ",", "and", "what", "is", "it", "description", "?" ], "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": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, 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 ], "and", [ false, 8, [ 0, [ 0, 24, 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, 2, [ 0, [ 0, 33, false ], null ], "\"Smithson\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "credits", "is", "the", "course", "that", "the", "student", "with", "the", "last", "name", "Smithson", "took", ",", "and", "what", "is", "its", "description", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "credit" ], [ "is" ], [ "course" ], [ "that" ], [ "student" ], [ "with" ], [ "last" ], [ "name" ], [ "smithson" ], [ "took" ], [ "," ], [ "and" ], [ "what" ], [ "is" ], [ "it" ], [ "description" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "credit", "NN" ], [ "is", "VBZ" ], [ "course", "NN" ], [ "that", "WDT" ], [ "student", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "smithson", "NN" ], [ "took", "VBD" ], [ ",", "," ], [ "and", "CC" ], [ "what", "WP" ], [ "is", "VBZ" ], [ "it", "PRP" ], [ "description", "NN" ], [ "?", "." ] ], "values": [ "Smithson" ], "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(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(4) Filter(0) Filter(18) A(0) C(1) T(4) Root(5) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(27) T(6) V(0)" }, { "db_id": "college_1", "query": "SELECT count(*) FROM professor WHERE prof_high_degree = 'Ph.D.' OR prof_high_degree = 'MA'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "professor", "WHERE", "prof_high_degree", "=", "'Ph.D", ".", "'", "OR", "prof_high_degree", "=", "'MA", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "professor", "where", "prof_high_degree", "=", "value", "or", "prof_high_degree", "=", "value" ], "question": "How many professors who has a either Ph.D. or MA degree?", "question_toks": [ "how", "many", "professor", "who", "ha", "a", "either", "ph.d.", "or", "ma", "degree", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ], "or", [ false, 2, [ 0, [ 0, 31, false ], null ], "\"MA\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "professors", "who", "has", "a", "either", "Ph.D.", "or", "MA", "degree", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "professor" ], [ "who" ], [ "ha" ], [ "a" ], [ "either" ], [ "ph.d." ], [ "or" ], [ "ma" ], [ "degree" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "professor", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "a", "DT" ], [ "either", "DT" ], [ "ph.d.", "NN" ], [ "or", "CC" ], [ "ma", "VB" ], [ "degree", "NN" ], [ "?", "." ] ], "values": [ "MA", "Ph.D." ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(1) Filter(2) A(0) C(25) T(5) V(1) Filter(2) A(0) C(25) T(5) V(0)" }, { "db_id": "college_1", "query": "SELECT count(*) FROM professor WHERE prof_high_degree = 'Ph.D.' OR prof_high_degree = 'MA'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "professor", "WHERE", "prof_high_degree", "=", "'Ph.D", ".", "'", "OR", "prof_high_degree", "=", "'MA", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "professor", "where", "prof_high_degree", "=", "value", "or", "prof_high_degree", "=", "value" ], "question": "How many professors attained either Ph.D. or Masters degrees?", "question_toks": [ "how", "many", "professor", "attained", "either", "ph.d.", "or", "master", "degree", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ], "or", [ false, 2, [ 0, [ 0, 31, false ], null ], "\"MA\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "professors", "attained", "either", "Ph.D.", "or", "Masters", "degrees", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "professor" ], [ "attained" ], [ "either" ], [ "ph.d." ], [ "or" ], [ "master" ], [ "degree" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "professor", "NN" ], [ "attained", "VBD" ], [ "either", "CC" ], [ "ph.d.", "NN" ], [ "or", "CC" ], [ "master", "NN" ], [ "degree", "NN" ], [ "?", "." ] ], "values": [ "Ph.D.", "MA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(1) Filter(2) A(0) C(25) T(5) V(0) Filter(2) A(0) C(25) T(5) V(1)" }, { "db_id": "college_1", "query": "SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Accounting' OR T2.dept_name = 'Biology'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "professor", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "WHERE", "T2.dept_name", "=", "'Accounting", "'", "OR", "T2.dept_name", "=", "'Biology", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "professor", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "where", "t2", ".", "dept_name", "=", "value", "or", "t2", ".", "dept_name", "=", "value" ], "question": "How many professors who are from either Accounting or Biology department?", "question_toks": [ "how", "many", "professor", "who", "are", "from", "either", "accounting", "or", "biology", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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 ], "\"Accounting\"", null ], "or", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Biology\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "How", "many", "professors", "who", "are", "from", "either", "Accounting", "or", "Biology", "department", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "professor" ], [ "who" ], [ "are" ], [ "from" ], [ "either" ], [ "accounting" ], [ "or" ], [ "biology" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "professor", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "from", "IN" ], [ "either", "CC" ], [ "accounting", "VBG" ], [ "or", "CC" ], [ "biology", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Accounting I", "Accounting", "Biology" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(1) Filter(2) A(0) C(10) T(2) V(1) Filter(2) A(0) C(10) T(2) V(2)" }, { "db_id": "college_1", "query": "SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Accounting' OR T2.dept_name = 'Biology'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "professor", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "WHERE", "T2.dept_name", "=", "'Accounting", "'", "OR", "T2.dept_name", "=", "'Biology", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "professor", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "where", "t2", ".", "dept_name", "=", "value", "or", "t2", ".", "dept_name", "=", "value" ], "question": "What is the number of professors who are in the Accounting or Biology departments?", "question_toks": [ "what", "is", "number", "of", "professor", "who", "are", "in", "accounting", "or", "biology", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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 ], "\"Accounting\"", null ], "or", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Biology\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "professors", "who", "are", "in", "the", "Accounting", "or", "Biology", "departments", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "professor" ], [ "who" ], [ "are" ], [ "in" ], [ "accounting" ], [ "or" ], [ "biology" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "in", "IN" ], [ "accounting", "NN" ], [ "or", "CC" ], [ "biology", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Accounting I", "Accounting", "Biology" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(1) Filter(2) A(0) C(10) T(2) V(1) Filter(2) A(0) C(10) T(2) V(2)" }, { "db_id": "college_1", "query": "SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'QM-261'", "query_toks": [ "SELECT", "T1.emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.emp_num", "=", "T2.prof_num", "WHERE", "crs_code", "=", "'CIS-220", "'", "INTERSECT", "SELECT", "T1.emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.emp_num", "=", "T2.prof_num", "WHERE", "crs_code", "=", "'QM-261", "'" ], "query_toks_no_value": [ "select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "prof_num", "where", "crs_code", "=", "value", "intersect", "select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "prof_num", "where", "crs_code", "=", "value" ], "question": "Find the first name of the professor who is teaching two courses with code CIS-220 and QM-261.", "question_toks": [ "find", "first", "name", "of", "professor", "who", "is", "teaching", "two", "course", "with", "code", "cis-220", "and", "qm-261", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"QM-261\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"CIS-220\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "first", "name", "of", "the", "professor", "who", "is", "teaching", "two", "courses", "with", "code", "CIS-220", "and", "QM-261", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "name" ], [ "of" ], [ "professor" ], [ "who" ], [ "is" ], [ "teaching" ], [ "two" ], [ "course" ], [ "with" ], [ "code" ], [ "cis-220" ], [ "and" ], [ "qm-261" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "teaching", "VBG" ], [ "two", "CD" ], [ "course", "NN" ], [ "with", "IN" ], [ "code", "JJ" ], [ "cis-220", "JJ" ], [ "and", "CC" ], [ "qm-261", "JJ" ], [ ".", "." ] ], "values": [ "2", "220", "CIS-220", "1", "261", "QM-261" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(2) A(0) C(2) T(0) V(2) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(2) A(0) C(2) T(0) V(5)" }, { "db_id": "college_1", "query": "SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'QM-261'", "query_toks": [ "SELECT", "T1.emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.emp_num", "=", "T2.prof_num", "WHERE", "crs_code", "=", "'CIS-220", "'", "INTERSECT", "SELECT", "T1.emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.emp_num", "=", "T2.prof_num", "WHERE", "crs_code", "=", "'QM-261", "'" ], "query_toks_no_value": [ "select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "prof_num", "where", "crs_code", "=", "value", "intersect", "select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "prof_num", "where", "crs_code", "=", "value" ], "question": "What is the first name of the professor who is teaching CIS-220 and QM-261?", "question_toks": [ "what", "is", "first", "name", "of", "professor", "who", "is", "teaching", "cis-220", "and", "qm-261", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"QM-261\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"CIS-220\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "first", "name", "of", "the", "professor", "who", "is", "teaching", "CIS-220", "and", "QM-261", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "name" ], [ "of" ], [ "professor" ], [ "who" ], [ "is" ], [ "teaching" ], [ "cis-220" ], [ "and" ], [ "qm-261" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "teaching", "VBG" ], [ "cis-220", "JJ" ], [ "and", "CC" ], [ "qm-261", "JJ" ], [ "?", "." ] ], "values": [ "CIS-220", "1", "261", "220", "QM-261" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(2) A(0) C(2) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(2) A(0) C(2) T(0) V(4)" }, { "db_id": "college_1", "query": "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Computer Info. Systems'", "query_toks": [ "SELECT", "T1.stu_fname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "JOIN", "CLASS", "AS", "T3", "ON", "T2.class_code", "=", "T3.class_code", "JOIN", "course", "AS", "T4", "ON", "T3.crs_code", "=", "T4.crs_code", "JOIN", "department", "AS", "T5", "ON", "T5.dept_code", "=", "T4.dept_code", "WHERE", "T5.dept_name", "=", "'Accounting", "'", "INTERSECT", "SELECT", "T1.stu_fname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "JOIN", "CLASS", "AS", "T3", "ON", "T2.class_code", "=", "T3.class_code", "JOIN", "course", "AS", "T4", "ON", "T3.crs_code", "=", "T4.crs_code", "JOIN", "department", "AS", "T5", "ON", "T5.dept_code", "=", "T4.dept_code", "WHERE", "T5.dept_name", "=", "'Computer", "Info", ".", "Systems", "'" ], "query_toks_no_value": [ "select", "t1", ".", "stu_fname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "class", "as", "t3", "on", "t2", ".", "class_code", "=", "t3", ".", "class_code", "join", "course", "as", "t4", "on", "t3", ".", "crs_code", "=", "t4", ".", "crs_code", "join", "department", "as", "t5", "on", "t5", ".", "dept_code", "=", "t4", ".", "dept_code", "where", "t5", ".", "dept_name", "=", "value", "intersect", "select", "t1", ".", "stu_fname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "class", "as", "t3", "on", "t2", ".", "class_code", "=", "t3", ".", "class_code", "join", "course", "as", "t4", "on", "t3", ".", "crs_code", "=", "t4", ".", "crs_code", "join", "department", "as", "t5", "on", "t5", ".", "dept_code", "=", "t4", ".", "dept_code", "where", "t5", ".", "dept_name", "=", "value" ], "question": "Find the first name of student who is taking classes from accounting and Computer Info. Systems departments", "question_toks": [ "find", "first", "name", "of", "student", "who", "is", "taking", "class", "from", "accounting", "and", "computer", "info", ".", "system", "department" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 25, 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, 12, false ], null ], "\"Computer Info. Systems\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 25, 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, 12, false ], null ], "\"Accounting\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "first", "name", "of", "student", "who", "is", "taking", "classes", "from", "accounting", "and", "Computer", "Info", ".", "Systems", "departments" ], "question_arg": [ [ "find" ], [ "first" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "is" ], [ "taking" ], [ "class" ], [ "from" ], [ "accounting" ], [ "and" ], [ "computer" ], [ "info" ], [ "." ], [ "system" ], [ "department" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "taking", "VBG" ], [ "class", "NN" ], [ "from", "IN" ], [ "accounting", "NN" ], [ "and", "CC" ], [ "computer", "NN" ], [ "info", "NN" ], [ ".", "." ], [ "system", "NN" ], [ "department", "NN" ] ], "values": [ "1", "Accounting", "Accounting II", "Accounting I", "Computer Info. Systems" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(28) T(6) Filter(0) Filter(18) A(0) C(26) T(6) Root(5) Sel(0) N(0) A(0) C(21) T(4) Filter(2) A(0) C(10) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(28) T(6) Filter(0) Filter(18) A(0) C(26) T(6) Root(5) Sel(0) N(0) A(0) C(21) T(4) Filter(2) A(0) C(10) T(2) V(4)" }, { "db_id": "college_1", "query": "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Computer Info. Systems'", "query_toks": [ "SELECT", "T1.stu_fname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "JOIN", "CLASS", "AS", "T3", "ON", "T2.class_code", "=", "T3.class_code", "JOIN", "course", "AS", "T4", "ON", "T3.crs_code", "=", "T4.crs_code", "JOIN", "department", "AS", "T5", "ON", "T5.dept_code", "=", "T4.dept_code", "WHERE", "T5.dept_name", "=", "'Accounting", "'", "INTERSECT", "SELECT", "T1.stu_fname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "JOIN", "CLASS", "AS", "T3", "ON", "T2.class_code", "=", "T3.class_code", "JOIN", "course", "AS", "T4", "ON", "T3.crs_code", "=", "T4.crs_code", "JOIN", "department", "AS", "T5", "ON", "T5.dept_code", "=", "T4.dept_code", "WHERE", "T5.dept_name", "=", "'Computer", "Info", ".", "Systems", "'" ], "query_toks_no_value": [ "select", "t1", ".", "stu_fname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "class", "as", "t3", "on", "t2", ".", "class_code", "=", "t3", ".", "class_code", "join", "course", "as", "t4", "on", "t3", ".", "crs_code", "=", "t4", ".", "crs_code", "join", "department", "as", "t5", "on", "t5", ".", "dept_code", "=", "t4", ".", "dept_code", "where", "t5", ".", "dept_name", "=", "value", "intersect", "select", "t1", ".", "stu_fname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "class", "as", "t3", "on", "t2", ".", "class_code", "=", "t3", ".", "class_code", "join", "course", "as", "t4", "on", "t3", ".", "crs_code", "=", "t4", ".", "crs_code", "join", "department", "as", "t5", "on", "t5", ".", "dept_code", "=", "t4", ".", "dept_code", "where", "t5", ".", "dept_name", "=", "value" ], "question": "What are the first names of all students taking accoutning and Computer Information Systems classes?", "question_toks": [ "what", "are", "first", "name", "of", "all", "student", "taking", "accoutning", "and", "computer", "information", "system", "class", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 25, 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, 12, false ], null ], "\"Computer Info. Systems\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 25, 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, 12, false ], null ], "\"Accounting\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "all", "students", "taking", "accoutning", "and", "Computer", "Information", "Systems", "classes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "of" ], [ "all" ], [ "student" ], [ "taking" ], [ "accoutning" ], [ "and" ], [ "computer" ], [ "information" ], [ "system" ], [ "class" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "taking", "VBG" ], [ "accoutning", "NN" ], [ "and", "CC" ], [ "computer", "NN" ], [ "information", "NN" ], [ "system", "NN" ], [ "class", "NN" ], [ "?", "." ] ], "values": [ "1", "Accounting", "James", "Accounting I", "Computer Info. Systems" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(28) T(6) Filter(0) Filter(18) A(0) C(26) T(6) Root(5) Sel(0) N(0) A(0) C(21) T(4) Filter(2) A(0) C(10) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(28) T(6) Filter(0) Filter(18) A(0) C(26) T(6) Root(5) Sel(0) N(0) A(0) C(21) T(4) Filter(2) A(0) C(10) T(2) V(4)" }, { "db_id": "college_1", "query": "SELECT avg(T2.stu_gpa) FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T1.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211'", "query_toks": [ "SELECT", "avg", "(", "T2.stu_gpa", ")", "FROM", "enroll", "AS", "T1", "JOIN", "student", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "JOIN", "CLASS", "AS", "T3", "ON", "T1.class_code", "=", "T3.class_code", "WHERE", "T3.crs_code", "=", "'ACCT-211", "'" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "stu_gpa", ")", "from", "enroll", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "class", "as", "t3", "on", "t1", ".", "class_code", "=", "t3", ".", "class_code", "where", "t3", ".", "crs_code", "=", "value" ], "question": "What is the average gpa of the students enrolled in the course with code ACCT-211?", "question_toks": [ "what", "is", "average", "gpa", "of", "student", "enrolled", "in", "course", "with", "code", "acct-211", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 32, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 25, 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, 2, false ], null ], "\"ACCT-211\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "average", "gpa", "of", "the", "students", "enrolled", "in", "the", "course", "with", "code", "ACCT-211", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "gpa" ], [ "of" ], [ "student" ], [ "enrolled" ], [ "in" ], [ "course" ], [ "with" ], [ "code" ], [ "acct-211" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "gpa", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "course", "NN" ], [ "with", "IN" ], [ "code", "JJ" ], [ "acct-211", "NNS" ], [ "?", "." ] ], "values": [ "ACCT-211", "ACCT", "211" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(33) T(6) Filter(0) Filter(18) A(0) C(26) T(6) Root(5) Sel(0) N(0) A(0) C(21) T(4) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "college_1", "query": "SELECT avg(T2.stu_gpa) FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T1.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211'", "query_toks": [ "SELECT", "avg", "(", "T2.stu_gpa", ")", "FROM", "enroll", "AS", "T1", "JOIN", "student", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "JOIN", "CLASS", "AS", "T3", "ON", "T1.class_code", "=", "T3.class_code", "WHERE", "T3.crs_code", "=", "'ACCT-211", "'" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "stu_gpa", ")", "from", "enroll", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "class", "as", "t3", "on", "t1", ".", "class_code", "=", "t3", ".", "class_code", "where", "t3", ".", "crs_code", "=", "value" ], "question": "What is the average GPA of students taking ACCT-211?", "question_toks": [ "what", "is", "average", "gpa", "of", "student", "taking", "acct-211", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 32, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 25, 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, 2, false ], null ], "\"ACCT-211\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "average", "GPA", "of", "students", "taking", "ACCT-211", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "gpa" ], [ "of" ], [ "student" ], [ "taking" ], [ "acct-211" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "gpa", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "taking", "VBG" ], [ "acct-211", "JJ" ], [ "?", "." ] ], "values": [ "ACCT", "ACCT-211", "211" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(33) T(6) Filter(0) Filter(18) A(0) C(26) T(6) Root(5) Sel(0) N(0) A(0) C(21) T(4) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "college_1", "query": "SELECT stu_gpa , stu_phone , stu_fname FROM student ORDER BY stu_gpa DESC LIMIT 5", "query_toks": [ "SELECT", "stu_gpa", ",", "stu_phone", ",", "stu_fname", "FROM", "student", "ORDER", "BY", "stu_gpa", "DESC", "LIMIT", "5" ], "query_toks_no_value": [ "select", "stu_gpa", ",", "stu_phone", ",", "stu_fname", "from", "student", "order", "by", "stu_gpa", "desc", "limit", "value" ], "question": "What is the first name, gpa and phone number of the top 5 students with highest gpa?", "question_toks": [ "what", "is", "first", "name", ",", "gpa", "and", "phone", "number", "of", "top", "5", "student", "with", "highest", "gpa", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 0, 39, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 39, false ], null ] ], [ 0, [ 0, [ 0, 42, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "first", "name", ",", "gpa", "and", "phone", "number", "of", "the", "top", "5", "students", "with", "highest", "gpa", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "name" ], [ "," ], [ "gpa" ], [ "and" ], [ "phone" ], [ "number" ], [ "of" ], [ "top" ], [ "5" ], [ "student" ], [ "with" ], [ "highest" ], [ "gpa" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "gpa", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "top", "JJ" ], [ "5", "CD" ], [ "student", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "gpa", "NN" ], [ "?", "." ] ], "values": [ "1", "5" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(33) T(6) A(0) C(35) T(6) A(0) C(28) T(6) Sup(0) A(0) C(33) T(6)" }, { "db_id": "college_1", "query": "SELECT stu_gpa , stu_phone , stu_fname FROM student ORDER BY stu_gpa DESC LIMIT 5", "query_toks": [ "SELECT", "stu_gpa", ",", "stu_phone", ",", "stu_fname", "FROM", "student", "ORDER", "BY", "stu_gpa", "DESC", "LIMIT", "5" ], "query_toks_no_value": [ "select", "stu_gpa", ",", "stu_phone", ",", "stu_fname", "from", "student", "order", "by", "stu_gpa", "desc", "limit", "value" ], "question": "What is the first name, GPA, and phone number of the students with the top 5 GPAs?", "question_toks": [ "what", "is", "first", "name", ",", "gpa", ",", "and", "phone", "number", "of", "student", "with", "top", "5", "gpa", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 0, 39, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 39, false ], null ] ], [ 0, [ 0, [ 0, 42, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "first", "name", ",", "GPA", ",", "and", "phone", "number", "of", "the", "students", "with", "the", "top", "5", "GPAs", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "name" ], [ "," ], [ "gpa" ], [ "," ], [ "and" ], [ "phone" ], [ "number" ], [ "of" ], [ "student" ], [ "with" ], [ "top" ], [ "5" ], [ "gpa" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "gpa", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "top", "JJ" ], [ "5", "CD" ], [ "gpa", "NN" ], [ "?", "." ] ], "values": [ "1", "5" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(33) T(6) A(0) C(35) T(6) A(0) C(28) T(6) Sup(0) A(0) C(33) T(6)" }, { "db_id": "college_1", "query": "SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code ORDER BY stu_gpa LIMIT 1", "query_toks": [ "SELECT", "T2.dept_name", "FROM", "student", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "ORDER", "BY", "stu_gpa", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "dept_name", "from", "student", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "order", "by", "stu_gpa", "limit", "value" ], "question": "What is the department name of the students with lowest gpa belongs to?", "question_toks": [ "what", "is", "department", "name", "of", "student", "with", "lowest", "gpa", "belongs", "to", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 39, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "department", "name", "of", "the", "students", "with", "lowest", "gpa", "belongs", "to", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "department", "name" ], [ "of" ], [ "student" ], [ "with" ], [ "lowest" ], [ "gpa" ], [ "belongs" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "department", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "lowest", "JJS" ], [ "gpa", "NN" ], [ "belongs", "NNS" ], [ "to", "TO" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(2) Sup(1) A(0) C(33) T(6)" }, { "db_id": "college_1", "query": "SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code ORDER BY stu_gpa LIMIT 1", "query_toks": [ "SELECT", "T2.dept_name", "FROM", "student", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "ORDER", "BY", "stu_gpa", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "dept_name", "from", "student", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "order", "by", "stu_gpa", "limit", "value" ], "question": "What is the name of the department with the student that has the lowest GPA?", "question_toks": [ "what", "is", "name", "of", "department", "with", "student", "that", "ha", "lowest", "gpa", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 39, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "department", "with", "the", "student", "that", "has", "the", "lowest", "GPA", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "department" ], [ "with" ], [ "student" ], [ "that" ], [ "ha" ], [ "lowest" ], [ "gpa" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "student", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "lowest", "JJS" ], [ "gpa", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(2) Sup(1) A(0) C(33) T(6)" }, { "db_id": "college_1", "query": "SELECT stu_fname , stu_gpa FROM student WHERE stu_gpa < (SELECT avg(stu_gpa) FROM student)", "query_toks": [ "SELECT", "stu_fname", ",", "stu_gpa", "FROM", "student", "WHERE", "stu_gpa", "<", "(", "SELECT", "avg", "(", "stu_gpa", ")", "FROM", "student", ")" ], "query_toks_no_value": [ "select", "stu_fname", ",", "stu_gpa", "from", "student", "where", "stu_gpa", "<", "(", "select", "avg", "(", "stu_gpa", ")", "from", "student", ")" ], "question": "Find the first name and gpa of the students whose gpa is lower than the average gpa of all students.", "question_toks": [ "find", "first", "name", "and", "gpa", "of", "student", "whose", "gpa", "is", "lower", "than", "average", "gpa", "of", "all", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 39, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "first", "name", "and", "gpa", "of", "the", "students", "whose", "gpa", "is", "lower", "than", "the", "average", "gpa", "of", "all", "students", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "name" ], [ "and" ], [ "gpa" ], [ "of" ], [ "student" ], [ "whose" ], [ "gpa" ], [ "is" ], [ "lower" ], [ "than" ], [ "average" ], [ "gpa" ], [ "of" ], [ "all" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "gpa", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "gpa", "NN" ], [ "is", "VBZ" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "gpa", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(28) T(6) A(0) C(33) T(6) Filter(12) A(0) C(33) T(6) Root(5) Sel(0) N(0) A(5) C(33) T(6)" }, { "db_id": "college_1", "query": "SELECT stu_fname , stu_gpa FROM student WHERE stu_gpa < (SELECT avg(stu_gpa) FROM student)", "query_toks": [ "SELECT", "stu_fname", ",", "stu_gpa", "FROM", "student", "WHERE", "stu_gpa", "<", "(", "SELECT", "avg", "(", "stu_gpa", ")", "FROM", "student", ")" ], "query_toks_no_value": [ "select", "stu_fname", ",", "stu_gpa", "from", "student", "where", "stu_gpa", "<", "(", "select", "avg", "(", "stu_gpa", ")", "from", "student", ")" ], "question": "What is the first name and GPA of every student that has a GPA lower than average?", "question_toks": [ "what", "is", "first", "name", "and", "gpa", "of", "every", "student", "that", "ha", "a", "gpa", "lower", "than", "average", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 39, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "first", "name", "and", "GPA", "of", "every", "student", "that", "has", "a", "GPA", "lower", "than", "average", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "name" ], [ "and" ], [ "gpa" ], [ "of" ], [ "every" ], [ "student" ], [ "that" ], [ "ha" ], [ "a" ], [ "gpa" ], [ "lower" ], [ "than" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "gpa", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "student", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "a", "DT" ], [ "gpa", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(28) T(6) A(0) C(33) T(6) Filter(12) A(0) C(33) T(6) Root(5) Sel(0) N(0) A(5) C(33) T(6)" }, { "db_id": "college_1", "query": "SELECT T2.dept_name , T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.dept_name", ",", "T2.dept_address", "FROM", "student", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "dept_name", ",", "t2", ".", "dept_address", "from", "student", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name and address of the department that has the highest number of students.", "question_toks": [ "find", "name", "and", "address", "of", "department", "that", "ha", "highest", "number", "of", "student", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 41, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "name", "and", "address", "of", "the", "department", "that", "has", "the", "highest", "number", "of", "students", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "address" ], [ "of" ], [ "department" ], [ "that" ], [ "ha" ], [ "highest" ], [ "number" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "address", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "highest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(10) T(2) A(0) C(13) T(2) Sup(0) A(3) C(0) T(6) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(6)" }, { "db_id": "college_1", "query": "SELECT T2.dept_name , T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.dept_name", ",", "T2.dept_address", "FROM", "student", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "dept_name", ",", "t2", ".", "dept_address", "from", "student", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name and address of the department with the most students?", "question_toks": [ "what", "is", "name", "and", "address", "of", "department", "with", "most", "student", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 41, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "address", "of", "the", "department", "with", "the", "most", "students", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "address" ], [ "of" ], [ "department" ], [ "with" ], [ "most" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "address", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(10) T(2) A(0) C(13) T(2) Sup(0) A(3) C(0) T(6) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(6)" }, { "db_id": "college_1", "query": "SELECT T2.dept_name , T2.dept_address , count(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "T2.dept_name", ",", "T2.dept_address", ",", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t2", ".", "dept_name", ",", "t2", ".", "dept_address", ",", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name, address, number of students in the departments that have the top 3 highest number of students.", "question_toks": [ "find", "name", ",", "address", ",", "number", "of", "student", "in", "department", "that", "have", "top", "3", "highest", "number", "of", "student", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 41, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "name", ",", "address", ",", "number", "of", "students", "in", "the", "departments", "that", "have", "the", "top", "3", "highest", "number", "of", "students", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "," ], [ "address" ], [ "," ], [ "number" ], [ "of" ], [ "student" ], [ "in" ], [ "department" ], [ "that" ], [ "have" ], [ "top" ], [ "3" ], [ "highest" ], [ "number" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "address", "NN" ], [ ",", "," ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "in", "IN" ], [ "department", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "top", "JJ" ], [ "3", "CD" ], [ "highest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(10) T(2) A(0) C(13) T(2) A(3) C(0) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "college_1", "query": "SELECT T2.dept_name , T2.dept_address , count(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "T2.dept_name", ",", "T2.dept_address", ",", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t2", ".", "dept_name", ",", "t2", ".", "dept_address", ",", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name, address, and number of students in the departments that have the 3 most students?", "question_toks": [ "what", "is", "name", ",", "address", ",", "and", "number", "of", "student", "in", "department", "that", "have", "3", "most", "student", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 41, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "name", ",", "address", ",", "and", "number", "of", "students", "in", "the", "departments", "that", "have", "the", "3", "most", "students", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "," ], [ "address" ], [ "," ], [ "and" ], [ "number" ], [ "of" ], [ "student" ], [ "in" ], [ "department" ], [ "that" ], [ "have" ], [ "3" ], [ "most" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ ",", "," ], [ "address", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "in", "IN" ], [ "department", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "3", "CD" ], [ "most", "RBS" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(10) T(2) A(0) C(13) T(2) A(3) C(0) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "college_1", "query": "SELECT T1.emp_fname , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T3.dept_code = T2.dept_code WHERE T3.dept_name = 'History' AND T2.prof_high_degree = 'Ph.D.'", "query_toks": [ "SELECT", "T1.emp_fname", ",", "T2.prof_office", "FROM", "employee", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "JOIN", "department", "AS", "T3", "ON", "T3.dept_code", "=", "T2.dept_code", "WHERE", "T3.dept_name", "=", "'History", "'", "AND", "T2.prof_high_degree", "=", "'Ph.D", ".", "'" ], "query_toks_no_value": [ "select", "t1", ".", "emp_fname", ",", "t2", ".", "prof_office", "from", "employee", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t3", ".", "dept_code", "=", "t2", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value", "and", "t2", ".", "prof_high_degree", "=", "value" ], "question": "Find the first name and office of the professor who is in the history department and has a Ph.D. degree.", "question_toks": [ "find", "first", "name", "and", "office", "of", "professor", "who", "is", "in", "history", "department", "and", "ha", "a", "ph.d.", "degree", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ], "and", [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "first", "name", "and", "office", "of", "the", "professor", "who", "is", "in", "the", "history", "department", "and", "has", "a", "Ph.D.", "degree", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "name" ], [ "and" ], [ "office" ], [ "of" ], [ "professor" ], [ "who" ], [ "is" ], [ "in" ], [ "history" ], [ "department" ], [ "and" ], [ "ha" ], [ "a" ], [ "ph.d." ], [ "degree" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "office", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "in", "IN" ], [ "history", "NN" ], [ "department", "NN" ], [ "and", "CC" ], [ "ha", "VB" ], [ "a", "DT" ], [ "ph.d.", "JJ" ], [ "degree", "NN" ], [ ".", "." ] ], "values": [ "1", "Ph.D.", "History" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(3) A(0) C(23) T(5) Filter(0) Filter(2) A(0) C(10) T(2) V(2) Filter(2) A(0) C(25) T(5) V(1)" }, { "db_id": "college_1", "query": "SELECT T1.emp_fname , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T3.dept_code = T2.dept_code WHERE T3.dept_name = 'History' AND T2.prof_high_degree = 'Ph.D.'", "query_toks": [ "SELECT", "T1.emp_fname", ",", "T2.prof_office", "FROM", "employee", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "JOIN", "department", "AS", "T3", "ON", "T3.dept_code", "=", "T2.dept_code", "WHERE", "T3.dept_name", "=", "'History", "'", "AND", "T2.prof_high_degree", "=", "'Ph.D", ".", "'" ], "query_toks_no_value": [ "select", "t1", ".", "emp_fname", ",", "t2", ".", "prof_office", "from", "employee", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t3", ".", "dept_code", "=", "t2", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value", "and", "t2", ".", "prof_high_degree", "=", "value" ], "question": "What are the first names and office of the professors who are in the history department and have a Ph.D?", "question_toks": [ "what", "are", "first", "name", "and", "office", "of", "professor", "who", "are", "in", "history", "department", "and", "have", "a", "ph.d", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ], "and", [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "and", "office", "of", "the", "professors", "who", "are", "in", "the", "history", "department", "and", "have", "a", "Ph.D", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "and" ], [ "office" ], [ "of" ], [ "professor" ], [ "who" ], [ "are" ], [ "in" ], [ "history" ], [ "department" ], [ "and" ], [ "have" ], [ "a" ], [ "ph.d" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "office", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "in", "IN" ], [ "history", "NN" ], [ "department", "NN" ], [ "and", "CC" ], [ "have", "VBP" ], [ "a", "DT" ], [ "ph.d", "NN" ], [ "?", "." ] ], "values": [ "History", "1", "James", "Ph.D." ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(3) A(0) C(23) T(5) Filter(0) Filter(2) A(0) C(10) T(2) V(0) Filter(2) A(0) C(25) T(5) V(3)" }, { "db_id": "college_1", "query": "SELECT T2.emp_fname , T1.crs_code FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num", "query_toks": [ "SELECT", "T2.emp_fname", ",", "T1.crs_code", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num" ], "query_toks_no_value": [ "select", "t2", ".", "emp_fname", ",", "t1", ".", "crs_code", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num" ], "question": "Find the first names of all instructors who have taught some course and the course code.", "question_toks": [ "find", "first", "name", "of", "all", "instructor", "who", "have", "taught", "some", "course", "and", "course", "code", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "first", "names", "of", "all", "instructors", "who", "have", "taught", "some", "course", "and", "the", "course", "code", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "name" ], [ "of" ], [ "all" ], [ "instructor" ], [ "who" ], [ "have" ], [ "taught" ], [ "some" ], [ "course" ], [ "and" ], [ "course", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taught", "VBN" ], [ "some", "DT" ], [ "course", "NN" ], [ "and", "CC" ], [ "course", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(16) T(3) A(0) C(2) T(0)" }, { "db_id": "college_1", "query": "SELECT T2.emp_fname , T1.crs_code FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num", "query_toks": [ "SELECT", "T2.emp_fname", ",", "T1.crs_code", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num" ], "query_toks_no_value": [ "select", "t2", ".", "emp_fname", ",", "t1", ".", "crs_code", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num" ], "question": "What are the first names of all teachers who have taught a course and the corresponding course codes?", "question_toks": [ "what", "are", "first", "name", "of", "all", "teacher", "who", "have", "taught", "a", "course", "and", "corresponding", "course", "code", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "all", "teachers", "who", "have", "taught", "a", "course", "and", "the", "corresponding", "course", "codes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "of" ], [ "all" ], [ "teacher" ], [ "who" ], [ "have" ], [ "taught" ], [ "a" ], [ "course" ], [ "and" ], [ "corresponding" ], [ "course", "code" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "teacher", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taught", "VBN" ], [ "a", "DT" ], [ "course", "NN" ], [ "and", "CC" ], [ "corresponding", "JJ" ], [ "course", "NN" ], [ "code", "NN" ], [ "?", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(16) T(3) A(0) C(2) T(0)" }, { "db_id": "college_1", "query": "SELECT T2.emp_fname , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code", "query_toks": [ "SELECT", "T2.emp_fname", ",", "T3.crs_description", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code" ], "query_toks_no_value": [ "select", "t2", ".", "emp_fname", ",", "t3", ".", "crs_description", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code" ], "question": "Find the first names of all instructors who have taught some course and the course description.", "question_toks": [ "find", "first", "name", "of", "all", "instructor", "who", "have", "taught", "some", "course", "and", "course", "description", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "first", "names", "of", "all", "instructors", "who", "have", "taught", "some", "course", "and", "the", "course", "description", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "name" ], [ "of" ], [ "all" ], [ "instructor" ], [ "who" ], [ "have" ], [ "taught" ], [ "some" ], [ "course" ], [ "and" ], [ "course", "description" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taught", "VBN" ], [ "some", "DT" ], [ "course", "NN" ], [ "and", "CC" ], [ "course", "NN" ], [ "description", "NN" ], [ ".", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(3) A(0) C(8) T(1) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(6) T(0)" }, { "db_id": "college_1", "query": "SELECT T2.emp_fname , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code", "query_toks": [ "SELECT", "T2.emp_fname", ",", "T3.crs_description", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code" ], "query_toks_no_value": [ "select", "t2", ".", "emp_fname", ",", "t3", ".", "crs_description", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code" ], "question": "What are the first names of all teachers who have taught a course and the corresponding descriptions?", "question_toks": [ "what", "are", "first", "name", "of", "all", "teacher", "who", "have", "taught", "a", "course", "and", "corresponding", "description", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "all", "teachers", "who", "have", "taught", "a", "course", "and", "the", "corresponding", "descriptions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "of" ], [ "all" ], [ "teacher" ], [ "who" ], [ "have" ], [ "taught" ], [ "a" ], [ "course" ], [ "and" ], [ "corresponding" ], [ "description" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "teacher", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taught", "VBN" ], [ "a", "DT" ], [ "course", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "description", "NN" ], [ "?", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(3) A(0) C(8) T(1) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(6) T(0)" }, { "db_id": "college_1", "query": "SELECT T2.emp_fname , T4.prof_office , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num", "query_toks": [ "SELECT", "T2.emp_fname", ",", "T4.prof_office", ",", "T3.crs_description", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "professor", "AS", "T4", "ON", "T2.emp_num", "=", "T4.emp_num" ], "query_toks_no_value": [ "select", "t2", ".", "emp_fname", ",", "t4", ".", "prof_office", ",", "t3", ".", "crs_description", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "professor", "as", "t4", "on", "t2", ".", "emp_num", "=", "t4", ".", "emp_num" ], "question": "Find the first names and offices of all instructors who have taught some course and also find the course description.", "question_toks": [ "find", "first", "name", "and", "office", "of", "all", "instructor", "who", "have", "taught", "some", "course", "and", "also", "find", "course", "description", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "first", "names", "and", "offices", "of", "all", "instructors", "who", "have", "taught", "some", "course", "and", "also", "find", "the", "course", "description", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "name" ], [ "and" ], [ "office" ], [ "of" ], [ "all" ], [ "instructor" ], [ "who" ], [ "have" ], [ "taught" ], [ "some" ], [ "course" ], [ "and" ], [ "also" ], [ "find" ], [ "course", "description" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "office", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taught", "VBN" ], [ "some", "DT" ], [ "course", "NN" ], [ "and", "CC" ], [ "also", "RB" ], [ "find", "VBP" ], [ "course", "NN" ], [ "description", "NN" ], [ ".", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(16) T(3) A(0) C(23) T(5) A(0) C(8) T(1) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(6) T(0)" }, { "db_id": "college_1", "query": "SELECT T2.emp_fname , T4.prof_office , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num", "query_toks": [ "SELECT", "T2.emp_fname", ",", "T4.prof_office", ",", "T3.crs_description", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "professor", "AS", "T4", "ON", "T2.emp_num", "=", "T4.emp_num" ], "query_toks_no_value": [ "select", "t2", ".", "emp_fname", ",", "t4", ".", "prof_office", ",", "t3", ".", "crs_description", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "professor", "as", "t4", "on", "t2", ".", "emp_num", "=", "t4", ".", "emp_num" ], "question": "What are the first names, office locations of all lecturers who have taught some course?", "question_toks": [ "what", "are", "first", "name", ",", "office", "location", "of", "all", "lecturer", "who", "have", "taught", "some", "course", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", ",", "office", "locations", "of", "all", "lecturers", "who", "have", "taught", "some", "course", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "," ], [ "office" ], [ "location" ], [ "of" ], [ "all" ], [ "lecturer" ], [ "who" ], [ "have" ], [ "taught" ], [ "some" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "office", "NN" ], [ "location", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "lecturer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taught", "VBN" ], [ "some", "DT" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(16) T(3) A(0) C(23) T(5) A(0) C(8) T(1) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(6) T(0)" }, { "db_id": "college_1", "query": "SELECT T2.emp_fname , T4.prof_office , T3.crs_description , T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num JOIN department AS T5 ON T4.dept_code = T5.dept_code", "query_toks": [ "SELECT", "T2.emp_fname", ",", "T4.prof_office", ",", "T3.crs_description", ",", "T5.dept_name", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "professor", "AS", "T4", "ON", "T2.emp_num", "=", "T4.emp_num", "JOIN", "department", "AS", "T5", "ON", "T4.dept_code", "=", "T5.dept_code" ], "query_toks_no_value": [ "select", "t2", ".", "emp_fname", ",", "t4", ".", "prof_office", ",", "t3", ".", "crs_description", ",", "t5", ".", "dept_name", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "professor", "as", "t4", "on", "t2", ".", "emp_num", "=", "t4", ".", "emp_num", "join", "department", "as", "t5", "on", "t4", ".", "dept_code", "=", "t5", ".", "dept_code" ], "question": "Find the first names and offices of all instructors who have taught some course and the course description and the department name.", "question_toks": [ "find", "first", "name", "and", "office", "of", "all", "instructor", "who", "have", "taught", "some", "course", "and", "course", "description", "and", "department", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "first", "names", "and", "offices", "of", "all", "instructors", "who", "have", "taught", "some", "course", "and", "the", "course", "description", "and", "the", "department", "name", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "name" ], [ "and" ], [ "office" ], [ "of" ], [ "all" ], [ "instructor" ], [ "who" ], [ "have" ], [ "taught" ], [ "some" ], [ "course" ], [ "and" ], [ "course", "description" ], [ "and" ], [ "department", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "office", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taught", "VBN" ], [ "some", "DT" ], [ "course", "NN" ], [ "and", "CC" ], [ "course", "NN" ], [ "description", "NN" ], [ "and", "CC" ], [ "department", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(3) A(0) C(16) T(3) A(0) C(23) T(5) A(0) C(8) T(1) A(0) C(10) T(2) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(6) T(0)" }, { "db_id": "college_1", "query": "SELECT T2.emp_fname , T4.prof_office , T3.crs_description , T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num JOIN department AS T5 ON T4.dept_code = T5.dept_code", "query_toks": [ "SELECT", "T2.emp_fname", ",", "T4.prof_office", ",", "T3.crs_description", ",", "T5.dept_name", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "professor", "AS", "T4", "ON", "T2.emp_num", "=", "T4.emp_num", "JOIN", "department", "AS", "T5", "ON", "T4.dept_code", "=", "T5.dept_code" ], "query_toks_no_value": [ "select", "t2", ".", "emp_fname", ",", "t4", ".", "prof_office", ",", "t3", ".", "crs_description", ",", "t5", ".", "dept_name", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "professor", "as", "t4", "on", "t2", ".", "emp_num", "=", "t4", ".", "emp_num", "join", "department", "as", "t5", "on", "t4", ".", "dept_code", "=", "t5", ".", "dept_code" ], "question": "What are the first names, office locations, and departments of all instructors, and also what are the descriptions of the courses they teach?", "question_toks": [ "what", "are", "first", "name", ",", "office", "location", ",", "and", "department", "of", "all", "instructor", ",", "and", "also", "what", "are", "description", "of", "course", "they", "teach", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", ",", "office", "locations", ",", "and", "departments", "of", "all", "instructors", ",", "and", "also", "what", "are", "the", "descriptions", "of", "the", "courses", "they", "teach", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "," ], [ "office" ], [ "location" ], [ "," ], [ "and" ], [ "department" ], [ "of" ], [ "all" ], [ "instructor" ], [ "," ], [ "and" ], [ "also" ], [ "what" ], [ "are" ], [ "description" ], [ "of" ], [ "course" ], [ "they" ], [ "teach" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "office", "NN" ], [ "location", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "department", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "also", "RB" ], [ "what", "WP" ], [ "are", "VBP" ], [ "description", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "they", "PRP" ], [ "teach", "VBP" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(3) A(0) C(16) T(3) A(0) C(23) T(5) A(0) C(8) T(1) A(0) C(10) T(2) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(6) T(0)" }, { "db_id": "college_1", "query": "SELECT T1.stu_fname , T1.stu_lname , T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code", "query_toks": [ "SELECT", "T1.stu_fname", ",", "T1.stu_lname", ",", "T4.crs_description", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "JOIN", "CLASS", "AS", "T3", "ON", "T2.class_code", "=", "T3.class_code", "JOIN", "course", "AS", "T4", "ON", "T3.crs_code", "=", "T4.crs_code" ], "query_toks_no_value": [ "select", "t1", ".", "stu_fname", ",", "t1", ".", "stu_lname", ",", "t4", ".", "crs_description", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "class", "as", "t3", "on", "t2", ".", "class_code", "=", "t3", ".", "class_code", "join", "course", "as", "t4", "on", "t3", ".", "crs_code", "=", "t4", ".", "crs_code" ], "question": "Find names of all students who took some course and the course description.", "question_toks": [ "find", "name", "of", "all", "student", "who", "took", "some", "course", "and", "course", "description", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "names", "of", "all", "students", "who", "took", "some", "course", "and", "the", "course", "description", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "took" ], [ "some" ], [ "course" ], [ "and" ], [ "course", "description" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "took", "VBD" ], [ "some", "DT" ], [ "course", "NN" ], [ "and", "CC" ], [ "course", "NN" ], [ "description", "NN" ], [ ".", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(28) T(6) A(0) C(27) T(6) A(0) C(8) T(1) Filter(18) A(0) C(26) T(6) Root(5) Sel(0) N(0) A(0) C(21) T(4)" }, { "db_id": "college_1", "query": "SELECT T1.stu_fname , T1.stu_lname , T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code", "query_toks": [ "SELECT", "T1.stu_fname", ",", "T1.stu_lname", ",", "T4.crs_description", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "JOIN", "CLASS", "AS", "T3", "ON", "T2.class_code", "=", "T3.class_code", "JOIN", "course", "AS", "T4", "ON", "T3.crs_code", "=", "T4.crs_code" ], "query_toks_no_value": [ "select", "t1", ".", "stu_fname", ",", "t1", ".", "stu_lname", ",", "t4", ".", "crs_description", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "class", "as", "t3", "on", "t2", ".", "class_code", "=", "t3", ".", "class_code", "join", "course", "as", "t4", "on", "t3", ".", "crs_code", "=", "t4", ".", "crs_code" ], "question": "What are the names of all students who took a class and the corresponding course descriptions?", "question_toks": [ "what", "are", "name", "of", "all", "student", "who", "took", "a", "class", "and", "corresponding", "course", "description", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "students", "who", "took", "a", "class", "and", "the", "corresponding", "course", "descriptions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "took" ], [ "a" ], [ "class" ], [ "and" ], [ "corresponding" ], [ "course", "description" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "took", "VBD" ], [ "a", "DT" ], [ "class", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "course", "NN" ], [ "description", "NN" ], [ "?", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(28) T(6) A(0) C(27) T(6) A(0) C(8) T(1) Filter(18) A(0) C(26) T(6) Root(5) Sel(0) N(0) A(0) C(21) T(4)" }, { "db_id": "college_1", "query": "SELECT T1.stu_fname , T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'C' OR T2.enroll_grade = 'A'", "query_toks": [ "SELECT", "T1.stu_fname", ",", "T1.stu_lname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "WHERE", "T2.enroll_grade", "=", "'C", "'", "OR", "T2.enroll_grade", "=", "'A", "'" ], "query_toks_no_value": [ "select", "t1", ".", "stu_fname", ",", "t1", ".", "stu_lname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "where", "t2", ".", "enroll_grade", "=", "value", "or", "t2", ".", "enroll_grade", "=", "value" ], "question": "Find names of all students who took some course and got A or C.", "question_toks": [ "find", "name", "of", "all", "student", "who", "took", "some", "course", "and", "got", "a", "or", "c", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], "\"C\"", null ], "or", [ false, 2, [ 0, [ 0, 26, false ], null ], "\"A\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "names", "of", "all", "students", "who", "took", "some", "course", "and", "got", "A", "or", "C", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "took" ], [ "some" ], [ "course" ], [ "and" ], [ "got" ], [ "a" ], [ "or" ], [ "c" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "took", "VBD" ], [ "some", "DT" ], [ "course", "NN" ], [ "and", "CC" ], [ "got", "VBD" ], [ "a", "DT" ], [ "or", "CC" ], [ "c", "NN" ], [ ".", "." ] ], "values": [ "James", "C", "A" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(28) T(6) A(0) C(27) T(6) Filter(1) Filter(2) A(0) C(22) T(4) V(1) Filter(2) A(0) C(22) T(4) V(2)" }, { "db_id": "college_1", "query": "SELECT T1.stu_fname , T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'C' OR T2.enroll_grade = 'A'", "query_toks": [ "SELECT", "T1.stu_fname", ",", "T1.stu_lname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "WHERE", "T2.enroll_grade", "=", "'C", "'", "OR", "T2.enroll_grade", "=", "'A", "'" ], "query_toks_no_value": [ "select", "t1", ".", "stu_fname", ",", "t1", ".", "stu_lname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "where", "t2", ".", "enroll_grade", "=", "value", "or", "t2", ".", "enroll_grade", "=", "value" ], "question": "What are the names of all students taking a course who received an A or C?", "question_toks": [ "what", "are", "name", "of", "all", "student", "taking", "a", "course", "who", "received", "an", "a", "or", "c", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], "\"C\"", null ], "or", [ false, 2, [ 0, [ 0, 26, false ], null ], "\"A\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "students", "taking", "a", "course", "who", "received", "an", "A", "or", "C", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "student" ], [ "taking" ], [ "a" ], [ "course" ], [ "who" ], [ "received" ], [ "an" ], [ "a" ], [ "or" ], [ "c" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "taking", "VBG" ], [ "a", "DT" ], [ "course", "NN" ], [ "who", "WP" ], [ "received", "VBD" ], [ "an", "DT" ], [ "a", "DT" ], [ "or", "CC" ], [ "c", "NN" ], [ "?", "." ] ], "values": [ "A", "James", "C" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(28) T(6) A(0) C(27) T(6) Filter(1) Filter(2) A(0) C(22) T(4) V(2) Filter(2) A(0) C(22) T(4) V(0)" }, { "db_id": "college_1", "query": "SELECT T2.emp_fname , T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Accounting'", "query_toks": [ "SELECT", "T2.emp_fname", ",", "T1.class_room", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "JOIN", "professor", "AS", "T3", "ON", "T2.emp_num", "=", "T3.emp_num", "JOIN", "department", "AS", "T4", "ON", "T4.dept_code", "=", "T3.dept_code", "WHERE", "T4.dept_name", "=", "'Accounting", "'" ], "query_toks_no_value": [ "select", "t2", ".", "emp_fname", ",", "t1", ".", "class_room", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "join", "professor", "as", "t3", "on", "t2", ".", "emp_num", "=", "t3", ".", "emp_num", "join", "department", "as", "t4", "on", "t4", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t4", ".", "dept_name", "=", "value" ], "question": "Find the first names of all professors in the Accounting department who is teaching some course and the class room.", "question_toks": [ "find", "first", "name", "of", "all", "professor", "in", "accounting", "department", "who", "is", "teaching", "some", "course", "and", "class", "room", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Accounting\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "first", "names", "of", "all", "professors", "in", "the", "Accounting", "department", "who", "is", "teaching", "some", "course", "and", "the", "class", "room", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "name" ], [ "of" ], [ "all" ], [ "professor" ], [ "in" ], [ "accounting" ], [ "department" ], [ "who" ], [ "is" ], [ "teaching" ], [ "some" ], [ "course" ], [ "and" ], [ "class", "room" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "professor", "NN" ], [ "in", "IN" ], [ "accounting", "NN" ], [ "department", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "teaching", "VBG" ], [ "some", "DT" ], [ "course", "NN" ], [ "and", "CC" ], [ "class", "NN" ], [ "room", "NN" ], [ ".", "." ] ], "values": [ "1", "Accounting", "Accounting I", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(3) A(0) C(5) T(0) Filter(2) A(0) C(10) T(2) V(1)" }, { "db_id": "college_1", "query": "SELECT T2.emp_fname , T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Accounting'", "query_toks": [ "SELECT", "T2.emp_fname", ",", "T1.class_room", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "JOIN", "professor", "AS", "T3", "ON", "T2.emp_num", "=", "T3.emp_num", "JOIN", "department", "AS", "T4", "ON", "T4.dept_code", "=", "T3.dept_code", "WHERE", "T4.dept_name", "=", "'Accounting", "'" ], "query_toks_no_value": [ "select", "t2", ".", "emp_fname", ",", "t1", ".", "class_room", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "join", "professor", "as", "t3", "on", "t2", ".", "emp_num", "=", "t3", ".", "emp_num", "join", "department", "as", "t4", "on", "t4", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t4", ".", "dept_name", "=", "value" ], "question": "What are the first names of all Accounting professors who teach and what are the classrooms of the courses they teach?", "question_toks": [ "what", "are", "first", "name", "of", "all", "accounting", "professor", "who", "teach", "and", "what", "are", "classroom", "of", "course", "they", "teach", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Accounting\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "all", "Accounting", "professors", "who", "teach", "and", "what", "are", "the", "classrooms", "of", "the", "courses", "they", "teach", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "of" ], [ "all" ], [ "accounting" ], [ "professor" ], [ "who" ], [ "teach" ], [ "and" ], [ "what" ], [ "are" ], [ "classroom" ], [ "of" ], [ "course" ], [ "they" ], [ "teach" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "accounting", "NN" ], [ "professor", "NN" ], [ "who", "WP" ], [ "teach", "VBP" ], [ "and", "CC" ], [ "what", "WP" ], [ "are", "VBP" ], [ "classroom", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "they", "PRP" ], [ "teach", "VBP" ], [ "?", "." ] ], "values": [ "1", "Accounting", "Accounting I", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(3) A(0) C(5) T(0) Filter(2) A(0) C(10) T(2) V(1)" }, { "db_id": "college_1", "query": "SELECT DISTINCT T2.emp_fname , T3.prof_high_degree FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Computer Info. Systems'", "query_toks": [ "SELECT", "DISTINCT", "T2.emp_fname", ",", "T3.prof_high_degree", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "JOIN", "professor", "AS", "T3", "ON", "T2.emp_num", "=", "T3.emp_num", "JOIN", "department", "AS", "T4", "ON", "T4.dept_code", "=", "T3.dept_code", "WHERE", "T4.dept_name", "=", "'Computer", "Info", ".", "Systems", "'" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "emp_fname", ",", "t3", ".", "prof_high_degree", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "join", "professor", "as", "t3", "on", "t2", ".", "emp_num", "=", "t3", ".", "emp_num", "join", "department", "as", "t4", "on", "t4", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t4", ".", "dept_name", "=", "value" ], "question": "Find the first names and degree of all professors who are teaching some class in Computer Info. Systems department.", "question_toks": [ "find", "first", "name", "and", "degree", "of", "all", "professor", "who", "are", "teaching", "some", "class", "in", "computer", "info", ".", "system", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Computer Info. Systems\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "first", "names", "and", "degree", "of", "all", "professors", "who", "are", "teaching", "some", "class", "in", "Computer", "Info", ".", "Systems", "department", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "name" ], [ "and" ], [ "degree" ], [ "of" ], [ "all" ], [ "professor" ], [ "who" ], [ "are" ], [ "teaching" ], [ "some" ], [ "class" ], [ "in" ], [ "computer" ], [ "info" ], [ "." ], [ "system" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "degree", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "professor", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "teaching", "VBG" ], [ "some", "DT" ], [ "class", "NN" ], [ "in", "IN" ], [ "computer", "NN" ], [ "info", "NN" ], [ ".", "." ], [ "system", "NN" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "1", "James", "Computer Info. Systems" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(16) T(3) A(0) C(25) T(5) Filter(0) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(6) T(0) Filter(2) A(0) C(10) T(2) V(2)" }, { "db_id": "college_1", "query": "SELECT DISTINCT T2.emp_fname , T3.prof_high_degree FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Computer Info. Systems'", "query_toks": [ "SELECT", "DISTINCT", "T2.emp_fname", ",", "T3.prof_high_degree", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "JOIN", "professor", "AS", "T3", "ON", "T2.emp_num", "=", "T3.emp_num", "JOIN", "department", "AS", "T4", "ON", "T4.dept_code", "=", "T3.dept_code", "WHERE", "T4.dept_name", "=", "'Computer", "Info", ".", "Systems", "'" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "emp_fname", ",", "t3", ".", "prof_high_degree", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "join", "professor", "as", "t3", "on", "t2", ".", "emp_num", "=", "t3", ".", "emp_num", "join", "department", "as", "t4", "on", "t4", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t4", ".", "dept_name", "=", "value" ], "question": "What are the different first names and highest degree attained for professors teaching in the Computer Information Systems department?", "question_toks": [ "what", "are", "different", "first", "name", "and", "highest", "degree", "attained", "for", "professor", "teaching", "in", "computer", "information", "system", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Computer Info. Systems\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "different", "first", "names", "and", "highest", "degree", "attained", "for", "professors", "teaching", "in", "the", "Computer", "Information", "Systems", "department", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "first" ], [ "name" ], [ "and" ], [ "highest" ], [ "degree" ], [ "attained" ], [ "for" ], [ "professor" ], [ "teaching" ], [ "in" ], [ "computer" ], [ "information" ], [ "system" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "highest", "JJS" ], [ "degree", "NN" ], [ "attained", "VBD" ], [ "for", "IN" ], [ "professor", "NN" ], [ "teaching", "NN" ], [ "in", "IN" ], [ "computer", "NN" ], [ "information", "NN" ], [ "system", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "1", "James", "Computer Info. Systems" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(16) T(3) A(0) C(25) T(5) Filter(0) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(6) T(0) Filter(2) A(0) C(10) T(2) V(2)" }, { "db_id": "college_1", "query": "SELECT T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'A' AND T2.class_code = 10018", "query_toks": [ "SELECT", "T1.stu_lname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "WHERE", "T2.enroll_grade", "=", "'A", "'", "AND", "T2.class_code", "=", "10018" ], "query_toks_no_value": [ "select", "t1", ".", "stu_lname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "where", "t2", ".", "enroll_grade", "=", "value", "and", "t2", ".", "class_code", "=", "value" ], "question": "What is the last name of the student who got a grade A in the class with code 10018.", "question_toks": [ "what", "is", "last", "name", "of", "student", "who", "got", "a", "grade", "a", "in", "class", "with", "code", "10018", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], "\"A\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], 10018.0, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "last", "name", "of", "the", "student", "who", "got", "a", "grade", "A", "in", "the", "class", "with", "code", "10018", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "last" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "got" ], [ "a" ], [ "grade" ], [ "a" ], [ "in" ], [ "class" ], [ "with" ], [ "code" ], [ "10018" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "got", "VBD" ], [ "a", "DT" ], [ "grade", "NN" ], [ "a", "DT" ], [ "in", "IN" ], [ "class", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "10018", "CD" ], [ ".", "." ] ], "values": [ "A", "10018" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(27) T(6) Filter(0) Filter(2) A(0) C(22) T(4) V(0) Filter(2) A(0) C(1) T(4) V(1)" }, { "db_id": "college_1", "query": "SELECT T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'A' AND T2.class_code = 10018", "query_toks": [ "SELECT", "T1.stu_lname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "WHERE", "T2.enroll_grade", "=", "'A", "'", "AND", "T2.class_code", "=", "10018" ], "query_toks_no_value": [ "select", "t1", ".", "stu_lname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "where", "t2", ".", "enroll_grade", "=", "value", "and", "t2", ".", "class_code", "=", "value" ], "question": "What is the last name of the student who received an A in the class with the code 10018?", "question_toks": [ "what", "is", "last", "name", "of", "student", "who", "received", "an", "a", "in", "class", "with", "code", "10018", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], "\"A\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], 10018.0, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "last", "name", "of", "the", "student", "who", "received", "an", "A", "in", "the", "class", "with", "the", "code", "10018", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "received" ], [ "an" ], [ "a" ], [ "in" ], [ "class" ], [ "with" ], [ "code" ], [ "10018" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "received", "VBD" ], [ "an", "DT" ], [ "a", "DT" ], [ "in", "IN" ], [ "class", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "10018", "CD" ], [ "?", "." ] ], "values": [ "A", "10018" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(27) T(6) Filter(0) Filter(2) A(0) C(22) T(4) V(0) Filter(2) A(0) C(1) T(4) V(1)" }, { "db_id": "college_1", "query": "SELECT T2.emp_fname , T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T1.dept_code = T3.dept_code WHERE T3.dept_name = 'History' AND T1.prof_high_degree != 'Ph.D.'", "query_toks": [ "SELECT", "T2.emp_fname", ",", "T1.prof_office", "FROM", "professor", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "JOIN", "department", "AS", "T3", "ON", "T1.dept_code", "=", "T3.dept_code", "WHERE", "T3.dept_name", "=", "'History", "'", "AND", "T1.prof_high_degree", "!", "=", "'Ph.D", ".", "'" ], "query_toks_no_value": [ "select", "t2", ".", "emp_fname", ",", "t1", ".", "prof_office", "from", "professor", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value", "and", "t1", ".", "prof_high_degree", "!", "=", "value" ], "question": "Find the first name and office of history professor who did not get a Ph.D. degree.", "question_toks": [ "find", "first", "name", "and", "office", "of", "history", "professor", "who", "did", "not", "get", "a", "ph.d.", "degree", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ], "and", [ false, 7, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "first", "name", "and", "office", "of", "history", "professor", "who", "did", "not", "get", "a", "Ph.D.", "degree", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "name" ], [ "and" ], [ "office" ], [ "of" ], [ "history" ], [ "professor" ], [ "who" ], [ "did" ], [ "not" ], [ "get" ], [ "a" ], [ "ph.d." ], [ "degree" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "office", "NN" ], [ "of", "IN" ], [ "history", "NN" ], [ "professor", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "get", "VB" ], [ "a", "DT" ], [ "ph.d.", "NN" ], [ "degree", "NN" ], [ ".", "." ] ], "values": [ "History", "1", "Ph.D." ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(3) A(0) C(23) T(5) Filter(0) Filter(2) A(0) C(10) T(2) V(0) Filter(3) A(0) C(25) T(5) V(2)" }, { "db_id": "college_1", "query": "SELECT T2.emp_fname , T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T1.dept_code = T3.dept_code WHERE T3.dept_name = 'History' AND T1.prof_high_degree != 'Ph.D.'", "query_toks": [ "SELECT", "T2.emp_fname", ",", "T1.prof_office", "FROM", "professor", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "JOIN", "department", "AS", "T3", "ON", "T1.dept_code", "=", "T3.dept_code", "WHERE", "T3.dept_name", "=", "'History", "'", "AND", "T1.prof_high_degree", "!", "=", "'Ph.D", ".", "'" ], "query_toks_no_value": [ "select", "t2", ".", "emp_fname", ",", "t1", ".", "prof_office", "from", "professor", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value", "and", "t1", ".", "prof_high_degree", "!", "=", "value" ], "question": "What are the first names and offices of history professors who don't have Ph.D.s?", "question_toks": [ "what", "are", "first", "name", "and", "office", "of", "history", "professor", "who", "do", "n't", "have", "ph.d.", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ], "and", [ false, 7, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "and", "offices", "of", "history", "professors", "who", "do", "n't", "have", "Ph.D.s", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "and" ], [ "office" ], [ "of" ], [ "history" ], [ "professor" ], [ "who" ], [ "do" ], [ "n't" ], [ "have" ], [ "ph.d." ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "office", "NN" ], [ "of", "IN" ], [ "history", "NN" ], [ "professor", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "have", "VB" ], [ "ph.d.", "VBN" ], [ "?", "." ] ], "values": [ "1", "History", "James", "Ph.D." ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(3) A(0) C(23) T(5) Filter(0) Filter(2) A(0) C(10) T(2) V(1) Filter(3) A(0) C(25) T(5) V(3)" }, { "db_id": "college_1", "query": "SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num GROUP BY T1.prof_num HAVING count(*) > 1", "query_toks": [ "SELECT", "T2.emp_fname", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "GROUP", "BY", "T1.prof_num", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t2", ".", "emp_fname", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "group", "by", "t1", ".", "prof_num", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the first names of professors who are teaching more than one class.", "question_toks": [ "find", "first", "name", "of", "professor", "who", "are", "teaching", "more", "than", "one", "class", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "first", "names", "of", "professors", "who", "are", "teaching", "more", "than", "one", "class", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "name" ], [ "of" ], [ "professor" ], [ "who" ], [ "are" ], [ "teaching" ], [ "more" ], [ "than" ], [ "one" ], [ "class" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "teaching", "VBG" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "class", "NN" ], [ ".", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(0) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(6) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "college_1", "query": "SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num GROUP BY T1.prof_num HAVING count(*) > 1", "query_toks": [ "SELECT", "T2.emp_fname", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "GROUP", "BY", "T1.prof_num", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t2", ".", "emp_fname", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "group", "by", "t1", ".", "prof_num", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the first names of all professors who teach more than one class?", "question_toks": [ "what", "are", "first", "name", "of", "all", "professor", "who", "teach", "more", "than", "one", "class", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "all", "professors", "who", "teach", "more", "than", "one", "class", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "of" ], [ "all" ], [ "professor" ], [ "who" ], [ "teach" ], [ "more" ], [ "than" ], [ "one" ], [ "class" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "professor", "NN" ], [ "who", "WP" ], [ "teach", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "class", "NN" ], [ "?", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(0) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(6) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "college_1", "query": "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num GROUP BY T2.stu_num HAVING count(*) = 1", "query_toks": [ "SELECT", "T1.stu_fname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "GROUP", "BY", "T2.stu_num", "HAVING", "count", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "stu_fname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "group", "by", "t2", ".", "stu_num", "having", "count", "(", "*", ")", "=", "value" ], "question": "Find the first names of students who took exactly one class.", "question_toks": [ "find", "first", "name", "of", "student", "who", "took", "exactly", "one", "class", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "first", "names", "of", "students", "who", "took", "exactly", "one", "class", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "took" ], [ "exactly" ], [ "one" ], [ "class" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "took", "VBD" ], [ "exactly", "RB" ], [ "one", "CD" ], [ "class", "NN" ], [ ".", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(28) T(6) Filter(0) Filter(18) A(0) C(26) T(6) Root(5) Sel(0) N(0) A(0) C(21) T(4) Filter(2) A(3) C(0) T(4) V(0)" }, { "db_id": "college_1", "query": "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num GROUP BY T2.stu_num HAVING count(*) = 1", "query_toks": [ "SELECT", "T1.stu_fname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "GROUP", "BY", "T2.stu_num", "HAVING", "count", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "stu_fname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "group", "by", "t2", ".", "stu_num", "having", "count", "(", "*", ")", "=", "value" ], "question": "What are the first names of student who only took one course?", "question_toks": [ "what", "are", "first", "name", "of", "student", "who", "only", "took", "one", "course", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "student", "who", "only", "took", "one", "course", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "only" ], [ "took" ], [ "one" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "only", "RB" ], [ "took", "VBD" ], [ "one", "CD" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(28) T(6) Filter(0) Filter(18) A(0) C(26) T(6) Root(5) Sel(0) N(0) A(0) C(21) T(4) Filter(2) A(3) C(0) T(4) V(0)" }, { "db_id": "college_1", "query": "SELECT T2.dept_name FROM course AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.crs_description LIKE '%Statistics%'", "query_toks": [ "SELECT", "T2.dept_name", "FROM", "course", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "WHERE", "T1.crs_description", "LIKE", "'", "%", "Statistics", "%", "'" ], "query_toks_no_value": [ "select", "t2", ".", "dept_name", "from", "course", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "where", "t1", ".", "crs_description", "like", "value" ], "question": "Find the name of department that offers the class whose description has the word \"Statistics\".", "question_toks": [ "find", "name", "of", "department", "that", "offer", "class", "whose", "description", "ha", "word", "'", "statistic", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, 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, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 9, false ], null ], "\"%Statistics%\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "Find", "the", "name", "of", "department", "that", "offers", "the", "class", "whose", "description", "has", "the", "word", "``", "Statistics", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "department" ], [ "that" ], [ "offer" ], [ "class" ], [ "whose" ], [ "description" ], [ "ha" ], [ "word" ], [ "'" ], [ "statistic" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "that", "WDT" ], [ "offer", "VBP" ], [ "class", "NN" ], [ "whose", "WP$" ], [ "description", "NN" ], [ "ha", "NN" ], [ "word", "NN" ], [ "'", "''" ], [ "statistic", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Statistics" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(9) A(0) C(8) T(1) V(0)" }, { "db_id": "college_1", "query": "SELECT T2.dept_name FROM course AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.crs_description LIKE '%Statistics%'", "query_toks": [ "SELECT", "T2.dept_name", "FROM", "course", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "WHERE", "T1.crs_description", "LIKE", "'", "%", "Statistics", "%", "'" ], "query_toks_no_value": [ "select", "t2", ".", "dept_name", "from", "course", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "where", "t1", ".", "crs_description", "like", "value" ], "question": "What is the name of the department that offers a course that has a description including the word \"Statistics\"?", "question_toks": [ "what", "is", "name", "of", "department", "that", "offer", "a", "course", "that", "ha", "a", "description", "including", "word", "'", "statistic", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, 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, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 9, false ], null ], "\"%Statistics%\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "department", "that", "offers", "a", "course", "that", "has", "a", "description", "including", "the", "word", "``", "Statistics", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "department" ], [ "that" ], [ "offer" ], [ "a" ], [ "course" ], [ "that" ], [ "ha" ], [ "a" ], [ "description" ], [ "including" ], [ "word" ], [ "'" ], [ "statistic" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "that", "WDT" ], [ "offer", "VBP" ], [ "a", "DT" ], [ "course", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "a", "DT" ], [ "description", "NN" ], [ "including", "VBG" ], [ "word", "NN" ], [ "'", "''" ], [ "statistic", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Statistics" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(9) A(0) C(8) T(1) V(0)" }, { "db_id": "college_1", "query": "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' AND T1.stu_lname LIKE 'S%'", "query_toks": [ "SELECT", "T1.stu_fname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "JOIN", "CLASS", "AS", "T3", "ON", "T2.class_code", "=", "T3.class_code", "WHERE", "T3.crs_code", "=", "'ACCT-211", "'", "AND", "T1.stu_lname", "LIKE", "'S", "%", "'" ], "query_toks_no_value": [ "select", "t1", ".", "stu_fname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "class", "as", "t3", "on", "t2", ".", "class_code", "=", "t3", ".", "class_code", "where", "t3", ".", "crs_code", "=", "value", "and", "t1", ".", "stu_lname", "like", "value" ], "question": "What is the first name of the student whose last name starting with the letter S and is taking ACCT-211 class?", "question_toks": [ "what", "is", "first", "name", "of", "student", "whose", "last", "name", "starting", "with", "letter", "s", "and", "is", "taking", "acct-211", "class", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 25, 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, 2, false ], null ], "\"ACCT-211\"", null ], "and", [ false, 9, [ 0, [ 0, 33, false ], null ], "\"S%\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "first", "name", "of", "the", "student", "whose", "last", "name", "starting", "with", "the", "letter", "S", "and", "is", "taking", "ACCT-211", "class", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "name" ], [ "of" ], [ "student" ], [ "whose" ], [ "last" ], [ "name" ], [ "starting" ], [ "with" ], [ "letter" ], [ "s" ], [ "and" ], [ "is" ], [ "taking" ], [ "acct-211" ], [ "class" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ "starting", "VBG" ], [ "with", "IN" ], [ "letter", "NN" ], [ "s", "NN" ], [ "and", "CC" ], [ "is", "VBZ" ], [ "taking", "VBG" ], [ "acct-211", "JJ" ], [ "class", "NN" ], [ "?", "." ] ], "values": [ "1", "S", "ACCT-211", "211", "ACCT" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(28) T(6) Filter(0) Filter(18) A(0) C(26) T(6) Root(5) Sel(0) N(0) A(0) C(21) T(4) Filter(0) Filter(2) A(0) C(2) T(0) V(2) Filter(9) A(0) C(27) T(6) V(1)" }, { "db_id": "college_1", "query": "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' AND T1.stu_lname LIKE 'S%'", "query_toks": [ "SELECT", "T1.stu_fname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "JOIN", "CLASS", "AS", "T3", "ON", "T2.class_code", "=", "T3.class_code", "WHERE", "T3.crs_code", "=", "'ACCT-211", "'", "AND", "T1.stu_lname", "LIKE", "'S", "%", "'" ], "query_toks_no_value": [ "select", "t1", ".", "stu_fname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "class", "as", "t3", "on", "t2", ".", "class_code", "=", "t3", ".", "class_code", "where", "t3", ".", "crs_code", "=", "value", "and", "t1", ".", "stu_lname", "like", "value" ], "question": "What is the first name of the student whose last name starts with the letter S and is taking ACCT-211?", "question_toks": [ "what", "is", "first", "name", "of", "student", "whose", "last", "name", "start", "with", "letter", "s", "and", "is", "taking", "acct-211", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 25, 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, 2, false ], null ], "\"ACCT-211\"", null ], "and", [ false, 9, [ 0, [ 0, 33, false ], null ], "\"S%\"", null ] ] }, "names": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "course code", "department code", "course description", "course credit", "department code", "department name", "school code", "employee number", "department address", "department extension", "employee number", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "class code", "student number", "enroll grade", "employee number", "department code", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "department code", "student phone", "professor number" ], "table_names": [ "class", "course", "department", "employee", "enroll", "professor", "student" ], "col_set": [ "*", "class code", "course code", "class section", "class time", "class room", "professor employee number", "department code", "course description", "course credit", "department name", "school code", "employee number", "department address", "department extension", "employee last name", "employee first name", "employee initial", "employee job code", "employee hire date", "employee date of birth", "student number", "enroll grade", "professor office", "professor extension", "professor high degree", "student num", "student last name", "student first name", "student init", "student date of birth", "student class hours took", "student class", "student gpa", "student transfer", "student phone", "professor number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "6": 17, "17": 17, "2": 7, "7": 7, "8": 11, "11": 11, "14": 17, "25": 32, "32": 32, "24": 1, "1": 1, "28": 11, "27": 17, "41": 11 }, "origin_question_toks": [ "What", "is", "the", "first", "name", "of", "the", "student", "whose", "last", "name", "starts", "with", "the", "letter", "S", "and", "is", "taking", "ACCT-211", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "name" ], [ "of" ], [ "student" ], [ "whose" ], [ "last" ], [ "name" ], [ "start" ], [ "with" ], [ "letter" ], [ "s" ], [ "and" ], [ "is" ], [ "taking" ], [ "acct-211" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "last", "JJ" ], [ "name", "JJ" ], [ "start", "NN" ], [ "with", "IN" ], [ "letter", "NN" ], [ "s", "NN" ], [ "and", "CC" ], [ "is", "VBZ" ], [ "taking", "VBG" ], [ "acct-211", "JJ" ], [ "?", "." ] ], "values": [ "ACCT-211", "1", "ACCT", "S", "211" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(28) T(6) Filter(0) Filter(18) A(0) C(26) T(6) Root(5) Sel(0) N(0) A(0) C(21) T(4) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(9) A(0) C(27) T(6) V(3)" }, { "db_id": "sports_competition", "query": "SELECT count(*) FROM club", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club" ], "question": "How many clubs are there?", "question_toks": [ "how", "many", "club", "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": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "How", "many", "clubs", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "club" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "club", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "sports_competition", "query": "SELECT count(*) FROM club", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club" ], "question": "What is the total number of clubs?", "question_toks": [ "what", "is", "total", "number", "of", "club", "?" ], "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": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "clubs", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "club" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "sports_competition", "query": "SELECT DISTINCT Region FROM club ORDER BY Region ASC", "query_toks": [ "SELECT", "DISTINCT", "Region", "FROM", "club", "ORDER", "BY", "Region", "ASC" ], "query_toks_no_value": [ "select", "distinct", "region", "from", "club", "order", "by", "region", "asc" ], "question": "List the distinct region of clubs in ascending alphabetical order.", "question_toks": [ "list", "distinct", "region", "of", "club", "in", "ascending", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "List", "the", "distinct", "region", "of", "clubs", "in", "ascending", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "distinct" ], [ "region" ], [ "of" ], [ "club" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "distinct", "JJ" ], [ "region", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(3) T(0) Order(1) A(0) C(3) T(0)" }, { "db_id": "sports_competition", "query": "SELECT DISTINCT Region FROM club ORDER BY Region ASC", "query_toks": [ "SELECT", "DISTINCT", "Region", "FROM", "club", "ORDER", "BY", "Region", "ASC" ], "query_toks_no_value": [ "select", "distinct", "region", "from", "club", "order", "by", "region", "asc" ], "question": "What are the different regions of clubs in ascending alphabetical order?", "question_toks": [ "what", "are", "different", "region", "of", "club", "in", "ascending", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "different", "regions", "of", "clubs", "in", "ascending", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "region" ], [ "of" ], [ "club" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "region", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(3) T(0) Order(1) A(0) C(3) T(0)" }, { "db_id": "sports_competition", "query": "SELECT avg(Gold) FROM club_rank", "query_toks": [ "SELECT", "avg", "(", "Gold", ")", "FROM", "club_rank" ], "query_toks_no_value": [ "select", "avg", "(", "gold", ")", "from", "club_rank" ], "question": "What is the average number of gold medals for clubs?", "question_toks": [ "what", "is", "average", "number", "of", "gold", "medal", "for", "club", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "gold", "medals", "for", "clubs", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "gold" ], [ "medal" ], [ "for" ], [ "club" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "gold", "NN" ], [ "medal", "NN" ], [ "for", "IN" ], [ "club", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(6) T(1)" }, { "db_id": "sports_competition", "query": "SELECT avg(Gold) FROM club_rank", "query_toks": [ "SELECT", "avg", "(", "Gold", ")", "FROM", "club_rank" ], "query_toks_no_value": [ "select", "avg", "(", "gold", ")", "from", "club_rank" ], "question": "What is the average number of gold medals for a club?", "question_toks": [ "what", "is", "average", "number", "of", "gold", "medal", "for", "a", "club", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "gold", "medals", "for", "a", "club", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "gold" ], [ "medal" ], [ "for" ], [ "a" ], [ "club" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "gold", "NN" ], [ "medal", "NN" ], [ "for", "IN" ], [ "a", "DT" ], [ "club", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(6) T(1)" }, { "db_id": "sports_competition", "query": "SELECT Competition_type , Country FROM competition", "query_toks": [ "SELECT", "Competition_type", ",", "Country", "FROM", "competition" ], "query_toks_no_value": [ "select", "competition_type", ",", "country", "from", "competition" ], "question": "What are the types and countries of competitions?", "question_toks": [ "what", "are", "type", "and", "country", "of", "competition", "?" ], "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, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "types", "and", "countries", "of", "competitions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "type" ], [ "and" ], [ "country" ], [ "of" ], [ "competition" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "type", "JJ" ], [ "and", "CC" ], [ "country", "NN" ], [ "of", "IN" ], [ "competition", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(18) T(3) A(0) C(19) T(3)" }, { "db_id": "sports_competition", "query": "SELECT Competition_type , Country FROM competition", "query_toks": [ "SELECT", "Competition_type", ",", "Country", "FROM", "competition" ], "query_toks_no_value": [ "select", "competition_type", ",", "country", "from", "competition" ], "question": "What are the types of every competition and in which countries are they located?", "question_toks": [ "what", "are", "type", "of", "every", "competition", "and", "in", "which", "country", "are", "they", "located", "?" ], "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, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "types", "of", "every", "competition", "and", "in", "which", "countries", "are", "they", "located", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "type" ], [ "of" ], [ "every" ], [ "competition" ], [ "and" ], [ "in" ], [ "which" ], [ "country" ], [ "are" ], [ "they" ], [ "located" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "type", "JJ" ], [ "of", "IN" ], [ "every", "DT" ], [ "competition", "NN" ], [ "and", "CC" ], [ "in", "IN" ], [ "which", "WDT" ], [ "country", "NN" ], [ "are", "VBP" ], [ "they", "PRP" ], [ "located", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(18) T(3) A(0) C(19) T(3)" }, { "db_id": "sports_competition", "query": "SELECT DISTINCT YEAR FROM competition WHERE Competition_type != \"Tournament\"", "query_toks": [ "SELECT", "DISTINCT", "YEAR", "FROM", "competition", "WHERE", "Competition_type", "!", "=", "``", "Tournament", "''" ], "query_toks_no_value": [ "select", "distinct", "year", "from", "competition", "where", "competition_type", "!", "=", "value" ], "question": "What are the distinct years in which the competitions type is not \"Tournament\"?", "question_toks": [ "what", "are", "distinct", "year", "in", "which", "competition", "type", "is", "not", "'", "tournament", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 21, false ], null ], "\"Tournament\"", null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "distinct", "years", "in", "which", "the", "competitions", "type", "is", "not", "``", "Tournament", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "year" ], [ "in" ], [ "which" ], [ "competition", "type" ], [ "is" ], [ "not" ], [ "'" ], [ "tournament" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "year", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "competition", "NN" ], [ "type", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "tournament", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Tournament" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(17) T(3) Filter(3) A(0) C(18) T(3) V(0)" }, { "db_id": "sports_competition", "query": "SELECT DISTINCT YEAR FROM competition WHERE Competition_type != \"Tournament\"", "query_toks": [ "SELECT", "DISTINCT", "YEAR", "FROM", "competition", "WHERE", "Competition_type", "!", "=", "``", "Tournament", "''" ], "query_toks_no_value": [ "select", "distinct", "year", "from", "competition", "where", "competition_type", "!", "=", "value" ], "question": "What are the different years for all competitions that are not of type equal to tournament?", "question_toks": [ "what", "are", "different", "year", "for", "all", "competition", "that", "are", "not", "of", "type", "equal", "to", "tournament", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 21, false ], null ], "\"Tournament\"", null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "different", "years", "for", "all", "competitions", "that", "are", "not", "of", "type", "equal", "to", "tournament", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "year" ], [ "for" ], [ "all" ], [ "competition" ], [ "that" ], [ "are" ], [ "not" ], [ "of" ], [ "type" ], [ "equal" ], [ "to" ], [ "tournament" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "year", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "competition", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "of", "IN" ], [ "type", "JJ" ], [ "equal", "JJ" ], [ "to", "TO" ], [ "tournament", "VB" ], [ "?", "." ] ], "values": [ "Tournament" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(17) T(3) Filter(3) A(0) C(18) T(3) V(0)" }, { "db_id": "sports_competition", "query": "SELECT max(Silver) , min(Silver) FROM club_rank", "query_toks": [ "SELECT", "max", "(", "Silver", ")", ",", "min", "(", "Silver", ")", "FROM", "club_rank" ], "query_toks_no_value": [ "select", "max", "(", "silver", ")", ",", "min", "(", "silver", ")", "from", "club_rank" ], "question": "What are the maximum and minimum number of silver medals for clubs.", "question_toks": [ "what", "are", "maximum", "and", "minimum", "number", "of", "silver", "medal", "for", "club", "." ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "maximum", "and", "minimum", "number", "of", "silver", "medals", "for", "clubs", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "number" ], [ "of" ], [ "silver" ], [ "medal" ], [ "for" ], [ "club" ], [ "." ] ], "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" ], [ "silver", "NN" ], [ "medal", "NN" ], [ "for", "IN" ], [ "club", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(7) T(1) A(2) C(7) T(1)" }, { "db_id": "sports_competition", "query": "SELECT max(Silver) , min(Silver) FROM club_rank", "query_toks": [ "SELECT", "max", "(", "Silver", ")", ",", "min", "(", "Silver", ")", "FROM", "club_rank" ], "query_toks_no_value": [ "select", "max", "(", "silver", ")", ",", "min", "(", "silver", ")", "from", "club_rank" ], "question": "What are the maximum and minimum number of silver medals for all the clubs?", "question_toks": [ "what", "are", "maximum", "and", "minimum", "number", "of", "silver", "medal", "for", "all", "club", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "maximum", "and", "minimum", "number", "of", "silver", "medals", "for", "all", "the", "clubs", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "number" ], [ "of" ], [ "silver" ], [ "medal" ], [ "for" ], [ "all" ], [ "club" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "silver", "NN" ], [ "medal", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "club", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(7) T(1) A(2) C(7) T(1)" }, { "db_id": "sports_competition", "query": "SELECT count(*) FROM club_rank WHERE Total < 10", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club_rank", "WHERE", "Total", "<", "10" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club_rank", "where", "total", "<", "value" ], "question": "How many clubs have total medals less than 10?", "question_toks": [ "how", "many", "club", "have", "total", "medal", "le", "than", "10", "?" ], "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, 10, false ], null ], 10.0, null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "How", "many", "clubs", "have", "total", "medals", "less", "than", "10", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "club" ], [ "have" ], [ "total" ], [ "medal" ], [ "le" ], [ "than" ], [ "10" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "club", "NN" ], [ "have", "VBP" ], [ "total", "JJ" ], [ "medal", "NN" ], [ "le", "NN" ], [ "than", "IN" ], [ "10", "CD" ], [ "?", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(4) A(0) C(9) T(1) V(0)" }, { "db_id": "sports_competition", "query": "SELECT count(*) FROM club_rank WHERE Total < 10", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club_rank", "WHERE", "Total", "<", "10" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club_rank", "where", "total", "<", "value" ], "question": "What is the total number of clubs that have less than 10 medals in total?", "question_toks": [ "what", "is", "total", "number", "of", "club", "that", "have", "le", "than", "10", "medal", "in", "total", "?" ], "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, 10, false ], null ], 10.0, null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "clubs", "that", "have", "less", "than", "10", "medals", "in", "total", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "club" ], [ "that" ], [ "have" ], [ "le" ], [ "than" ], [ "10" ], [ "medal" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "le", "VBN" ], [ "than", "IN" ], [ "10", "CD" ], [ "medal", "NNS" ], [ "in", "IN" ], [ "total", "JJ" ], [ "?", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(4) A(0) C(9) T(1) V(0)" }, { "db_id": "sports_competition", "query": "SELECT name FROM club ORDER BY Start_year ASC", "query_toks": [ "SELECT", "name", "FROM", "club", "ORDER", "BY", "Start_year", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "club", "order", "by", "start_year", "asc" ], "question": "List all club names in ascending order of start year.", "question_toks": [ "list", "all", "club", "name", "in", "ascending", "order", "of", "start", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "List", "all", "club", "names", "in", "ascending", "order", "of", "start", "year", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "club" ], [ "name" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "start", "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "club", "NN" ], [ "name", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "start", "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(4) T(0)" }, { "db_id": "sports_competition", "query": "SELECT name FROM club ORDER BY Start_year ASC", "query_toks": [ "SELECT", "name", "FROM", "club", "ORDER", "BY", "Start_year", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "club", "order", "by", "start_year", "asc" ], "question": "What are the names of all the clubs starting with the oldest?", "question_toks": [ "what", "are", "name", "of", "all", "club", "starting", "with", "oldest", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "clubs", "starting", "with", "the", "oldest", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "club" ], [ "starting" ], [ "with" ], [ "oldest" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "club", "NN" ], [ "starting", "VBG" ], [ "with", "IN" ], [ "oldest", "JJS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(4) T(0)" }, { "db_id": "sports_competition", "query": "SELECT name FROM club ORDER BY name DESC", "query_toks": [ "SELECT", "name", "FROM", "club", "ORDER", "BY", "name", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "club", "order", "by", "name", "desc" ], "question": "List all club names in descending alphabetical order.", "question_toks": [ "list", "all", "club", "name", "in", "descending", "alphabetical", "order", "." ], "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, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "List", "all", "club", "names", "in", "descending", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "club" ], [ "name" ], [ "in" ], [ "descending" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "club", "NN" ], [ "name", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(0) A(0) C(2) T(0)" }, { "db_id": "sports_competition", "query": "SELECT name FROM club ORDER BY name DESC", "query_toks": [ "SELECT", "name", "FROM", "club", "ORDER", "BY", "name", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "club", "order", "by", "name", "desc" ], "question": "What are the names of all the clubs ordered in descending alphabetical order?", "question_toks": [ "what", "are", "name", "of", "all", "club", "ordered", "in", "descending", "alphabetical", "order", "?" ], "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, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "clubs", "ordered", "in", "descending", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "club" ], [ "ordered" ], [ "in" ], [ "descending" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "club", "NN" ], [ "ordered", "VBN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(0) A(0) C(2) T(0)" }, { "db_id": "sports_competition", "query": "SELECT T1.name , T2.Player_id FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID", "query_toks": [ "SELECT", "T1.name", ",", "T2.Player_id", "FROM", "club", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.Club_ID", "=", "T2.Club_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "player_id", "from", "club", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "club_id", "=", "t2", ".", "club_id" ], "question": "Please show the names and the players of clubs.", "question_toks": [ "please", "show", "name", "and", "player", "of", "club", "." ], "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, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "Please", "show", "the", "names", "and", "the", "players", "of", "clubs", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "name" ], [ "and" ], [ "player" ], [ "of" ], [ "club" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "player", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(10) T(2)" }, { "db_id": "sports_competition", "query": "SELECT T1.name , T2.Player_id FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID", "query_toks": [ "SELECT", "T1.name", ",", "T2.Player_id", "FROM", "club", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.Club_ID", "=", "T2.Club_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "player_id", "from", "club", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "club_id", "=", "t2", ".", "club_id" ], "question": "What are the names and players of all the clubs?", "question_toks": [ "what", "are", "name", "and", "player", "of", "all", "club", "?" ], "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, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "players", "of", "all", "the", "clubs", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "player" ], [ "of" ], [ "all" ], [ "club" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "and", "CC" ], [ "player", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "club", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(10) T(2)" }, { "db_id": "sports_competition", "query": "SELECT T1.name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T2.Position = \"Right Wing\"", "query_toks": [ "SELECT", "T1.name", "FROM", "club", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.Club_ID", "=", "T2.Club_ID", "WHERE", "T2.Position", "=", "``", "Right", "Wing", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "club", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "club_id", "=", "t2", ".", "club_id", "where", "t2", ".", "position", "=", "value" ], "question": "Show the names of clubs that have players with position \"Right Wing\".", "question_toks": [ "show", "name", "of", "club", "that", "have", "player", "with", "position", "'", "right", "wing", "'", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Right Wing\"", null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "Show", "the", "names", "of", "clubs", "that", "have", "players", "with", "position", "``", "Right", "Wing", "''", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "club" ], [ "that" ], [ "have" ], [ "player" ], [ "with" ], [ "position" ], [ "'" ], [ "right" ], [ "wing" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "position" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "player", "NN" ], [ "with", "IN" ], [ "position", "NN" ], [ "'", "POS" ], [ "right", "JJ" ], [ "wing", "VBG" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Right Wing" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "sports_competition", "query": "SELECT T1.name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T2.Position = \"Right Wing\"", "query_toks": [ "SELECT", "T1.name", "FROM", "club", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.Club_ID", "=", "T2.Club_ID", "WHERE", "T2.Position", "=", "``", "Right", "Wing", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "club", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "club_id", "=", "t2", ".", "club_id", "where", "t2", ".", "position", "=", "value" ], "question": "What are the names of the clubs that have players in the position of \"Right Wing\"?", "question_toks": [ "what", "are", "name", "of", "club", "that", "have", "player", "in", "position", "of", "'", "right", "wing", "'", "?" ], "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Right Wing\"", null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "clubs", "that", "have", "players", "in", "the", "position", "of", "``", "Right", "Wing", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "club" ], [ "that" ], [ "have" ], [ "player" ], [ "in" ], [ "position" ], [ "of" ], [ "'" ], [ "right" ], [ "wing" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "position" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "player", "NN" ], [ "in", "IN" ], [ "position", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "right", "JJ" ], [ "wing", "VBG" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Right Wing" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "sports_competition", "query": "SELECT avg(T2.Points) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T1.name = \"AIB\"", "query_toks": [ "SELECT", "avg", "(", "T2.Points", ")", "FROM", "club", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.Club_ID", "=", "T2.Club_ID", "WHERE", "T1.name", "=", "``", "AIB", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "points", ")", "from", "club", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "club_id", "=", "t2", ".", "club_id", "where", "t1", ".", "name", "=", "value" ], "question": "What is the average points of players from club with name \"AIB\".", "question_toks": [ "what", "is", "average", "point", "of", "player", "from", "club", "with", "name", "'", "aib", "'", "." ], "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, [ [ 5, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"AIB\"", null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "is", "the", "average", "points", "of", "players", "from", "club", "with", "name", "``", "AIB", "''", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "point" ], [ "of" ], [ "player" ], [ "from" ], [ "club" ], [ "with" ], [ "name" ], [ "'" ], [ "aib" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "point", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "from", "IN" ], [ "club", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "aib", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "AIB" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(15) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "sports_competition", "query": "SELECT avg(T2.Points) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T1.name = \"AIB\"", "query_toks": [ "SELECT", "avg", "(", "T2.Points", ")", "FROM", "club", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.Club_ID", "=", "T2.Club_ID", "WHERE", "T1.name", "=", "``", "AIB", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "points", ")", "from", "club", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "club_id", "=", "t2", ".", "club_id", "where", "t1", ".", "name", "=", "value" ], "question": "What is the average number of points for players from the \"AIB\" club?", "question_toks": [ "what", "is", "average", "number", "of", "point", "for", "player", "from", "'", "aib", "'", "club", "?" ], "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, [ [ 5, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"AIB\"", null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "points", "for", "players", "from", "the", "``", "AIB", "''", "club", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "point" ], [ "for" ], [ "player" ], [ "from" ], [ "'" ], [ "aib" ], [ "'" ], [ "club" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "point", "NN" ], [ "for", "IN" ], [ "player", "NN" ], [ "from", "IN" ], [ "'", "''" ], [ "aib", "NN" ], [ "'", "''" ], [ "club", "NN" ], [ "?", "." ] ], "values": [ "AIB" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(15) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "sports_competition", "query": "SELECT POSITION , avg(Points) FROM player GROUP BY POSITION", "query_toks": [ "SELECT", "POSITION", ",", "avg", "(", "Points", ")", "FROM", "player", "GROUP", "BY", "POSITION" ], "query_toks_no_value": [ "select", "position", ",", "avg", "(", "points", ")", "from", "player", "group", "by", "position" ], "question": "List the position of players and the average number of points of players of each position.", "question_toks": [ "list", "position", "of", "player", "and", "average", "number", "of", "point", "of", "player", "of", "each", "position", "." ], "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 ] ], [ 5, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "List", "the", "position", "of", "players", "and", "the", "average", "number", "of", "points", "of", "players", "of", "each", "position", "." ], "question_arg": [ [ "list" ], [ "position" ], [ "of" ], [ "player" ], [ "and" ], [ "average" ], [ "number" ], [ "of" ], [ "point" ], [ "of" ], [ "player" ], [ "of" ], [ "each" ], [ "position" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "JJ" ], [ "position", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "point", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "position", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(2) A(5) C(15) T(2)" }, { "db_id": "sports_competition", "query": "SELECT POSITION , avg(Points) FROM player GROUP BY POSITION", "query_toks": [ "SELECT", "POSITION", ",", "avg", "(", "Points", ")", "FROM", "player", "GROUP", "BY", "POSITION" ], "query_toks_no_value": [ "select", "position", ",", "avg", "(", "points", ")", "from", "player", "group", "by", "position" ], "question": "For each position, what is the average number of points for players in that position?", "question_toks": [ "for", "each", "position", ",", "what", "is", "average", "number", "of", "point", "for", "player", "in", "that", "position", "?" ], "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 ] ], [ 5, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "For", "each", "position", ",", "what", "is", "the", "average", "number", "of", "points", "for", "players", "in", "that", "position", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "position" ], [ "," ], [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "point" ], [ "for" ], [ "player" ], [ "in" ], [ "that" ], [ "position" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "position", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "point", "NN" ], [ "for", "IN" ], [ "player", "NN" ], [ "in", "IN" ], [ "that", "DT" ], [ "position", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(2) A(5) C(15) T(2)" }, { "db_id": "sports_competition", "query": "SELECT POSITION FROM player GROUP BY name HAVING avg(Points) >= 20", "query_toks": [ "SELECT", "POSITION", "FROM", "player", "GROUP", "BY", "name", "HAVING", "avg", "(", "Points", ")", ">", "=", "20" ], "query_toks_no_value": [ "select", "position", "from", "player", "group", "by", "name", "having", "avg", "(", "points", ")", ">", "=", "value" ], "question": "List the position of players with average number of points scored by players of that position bigger than 20.", "question_toks": [ "list", "position", "of", "player", "with", "average", "number", "of", "point", "scored", "by", "player", "of", "that", "position", "bigger", "than", "20", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [ [ false, 5, [ 0, [ 5, 18, false ], null ], 20.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "List", "the", "position", "of", "players", "with", "average", "number", "of", "points", "scored", "by", "players", "of", "that", "position", "bigger", "than", "20", "." ], "question_arg": [ [ "list" ], [ "position" ], [ "of" ], [ "player" ], [ "with" ], [ "average" ], [ "number" ], [ "of" ], [ "point" ], [ "scored" ], [ "by" ], [ "player" ], [ "of" ], [ "that" ], [ "position" ], [ "bigger" ], [ "than" ], [ "20" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "JJ" ], [ "position", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "with", "IN" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "point", "NN" ], [ "scored", "VBN" ], [ "by", "IN" ], [ "player", "NN" ], [ "of", "IN" ], [ "that", "DT" ], [ "position", "NN" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ ".", "." ] ], "values": [ "20" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(7) A(5) C(15) T(2) V(0)" }, { "db_id": "sports_competition", "query": "SELECT POSITION FROM player GROUP BY name HAVING avg(Points) >= 20", "query_toks": [ "SELECT", "POSITION", "FROM", "player", "GROUP", "BY", "name", "HAVING", "avg", "(", "Points", ")", ">", "=", "20" ], "query_toks_no_value": [ "select", "position", "from", "player", "group", "by", "name", "having", "avg", "(", "points", ")", ">", "=", "value" ], "question": "What are the positions of players whose average number of points scored by that position is larger than 20?", "question_toks": [ "what", "are", "position", "of", "player", "whose", "average", "number", "of", "point", "scored", "by", "that", "position", "is", "larger", "than", "20", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [ [ false, 5, [ 0, [ 5, 18, false ], null ], 20.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "positions", "of", "players", "whose", "average", "number", "of", "points", "scored", "by", "that", "position", "is", "larger", "than", "20", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "position" ], [ "of" ], [ "player" ], [ "whose" ], [ "average" ], [ "number" ], [ "of" ], [ "point" ], [ "scored" ], [ "by" ], [ "that" ], [ "position" ], [ "is" ], [ "larger" ], [ "than" ], [ "20" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "position", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "whose", "WP$" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "point", "NN" ], [ "scored", "VBN" ], [ "by", "IN" ], [ "that", "DT" ], [ "position", "NN" ], [ "is", "VBZ" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ "?", "." ] ], "values": [ "20" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(7) A(5) C(15) T(2) V(0)" }, { "db_id": "sports_competition", "query": "SELECT Competition_type , COUNT(*) FROM competition GROUP BY Competition_type", "query_toks": [ "SELECT", "Competition_type", ",", "COUNT", "(", "*", ")", "FROM", "competition", "GROUP", "BY", "Competition_type" ], "query_toks_no_value": [ "select", "competition_type", ",", "count", "(", "*", ")", "from", "competition", "group", "by", "competition_type" ], "question": "List the types of competition and the number of competitions of each type.", "question_toks": [ "list", "type", "of", "competition", "and", "number", "of", "competition", "of", "each", "type", "." ], "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": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "List", "the", "types", "of", "competition", "and", "the", "number", "of", "competitions", "of", "each", "type", "." ], "question_arg": [ [ "list" ], [ "type" ], [ "of" ], [ "competition" ], [ "and" ], [ "number" ], [ "of" ], [ "competition" ], [ "of" ], [ "each" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "type", "NN" ], [ "of", "IN" ], [ "competition", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "competition", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(18) T(3) A(3) C(0) T(3)" }, { "db_id": "sports_competition", "query": "SELECT Competition_type , COUNT(*) FROM competition GROUP BY Competition_type", "query_toks": [ "SELECT", "Competition_type", ",", "COUNT", "(", "*", ")", "FROM", "competition", "GROUP", "BY", "Competition_type" ], "query_toks_no_value": [ "select", "competition_type", ",", "count", "(", "*", ")", "from", "competition", "group", "by", "competition_type" ], "question": "What are the types of competition and number of competitions for that type?", "question_toks": [ "what", "are", "type", "of", "competition", "and", "number", "of", "competition", "for", "that", "type", "?" ], "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": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "types", "of", "competition", "and", "number", "of", "competitions", "for", "that", "type", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "type" ], [ "of" ], [ "competition" ], [ "and" ], [ "number" ], [ "of" ], [ "competition" ], [ "for" ], [ "that" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "type", "JJ" ], [ "of", "IN" ], [ "competition", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "competition", "NN" ], [ "for", "IN" ], [ "that", "DT" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(18) T(3) A(3) C(0) T(3)" }, { "db_id": "sports_competition", "query": "SELECT Competition_type FROM competition GROUP BY Competition_type ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Competition_type", "FROM", "competition", "GROUP", "BY", "Competition_type", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "competition_type", "from", "competition", "group", "by", "competition_type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "List the most common type of competition.", "question_toks": [ "list", "most", "common", "type", "of", "competition", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "List", "the", "most", "common", "type", "of", "competition", "." ], "question_arg": [ [ "list" ], [ "most" ], [ "common" ], [ "type" ], [ "of" ], [ "competition" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "competition", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(18) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "sports_competition", "query": "SELECT Competition_type FROM competition GROUP BY Competition_type ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Competition_type", "FROM", "competition", "GROUP", "BY", "Competition_type", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "competition_type", "from", "competition", "group", "by", "competition_type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most common competition type?", "question_toks": [ "what", "is", "most", "common", "competition", "type", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "is", "the", "most", "common", "competition", "type", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "common" ], [ "competition", "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "competition", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(18) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "sports_competition", "query": "SELECT Competition_type FROM competition GROUP BY Competition_type HAVING COUNT(*) <= 5", "query_toks": [ "SELECT", "Competition_type", "FROM", "competition", "GROUP", "BY", "Competition_type", "HAVING", "COUNT", "(", "*", ")", "<", "=", "5" ], "query_toks_no_value": [ "select", "competition_type", "from", "competition", "group", "by", "competition_type", "having", "count", "(", "*", ")", "<", "=", "value" ], "question": "List the types of competition that have at most five competitions of that type.", "question_toks": [ "list", "type", "of", "competition", "that", "have", "at", "most", "five", "competition", "of", "that", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [ [ false, 6, [ 0, [ 3, 0, false ], null ], 5.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "List", "the", "types", "of", "competition", "that", "have", "at", "most", "five", "competitions", "of", "that", "type", "." ], "question_arg": [ [ "list" ], [ "type" ], [ "of" ], [ "competition" ], [ "that" ], [ "have" ], [ "at" ], [ "most" ], [ "five" ], [ "competition" ], [ "of" ], [ "that" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "type", "NN" ], [ "of", "IN" ], [ "competition", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "most", "RBS" ], [ "five", "CD" ], [ "competition", "NN" ], [ "of", "IN" ], [ "that", "DT" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(3) Filter(6) A(3) C(0) T(3) V(0)" }, { "db_id": "sports_competition", "query": "SELECT Competition_type FROM competition GROUP BY Competition_type HAVING COUNT(*) <= 5", "query_toks": [ "SELECT", "Competition_type", "FROM", "competition", "GROUP", "BY", "Competition_type", "HAVING", "COUNT", "(", "*", ")", "<", "=", "5" ], "query_toks_no_value": [ "select", "competition_type", "from", "competition", "group", "by", "competition_type", "having", "count", "(", "*", ")", "<", "=", "value" ], "question": "What are the types of competition that have most 5 competitions for that type?", "question_toks": [ "what", "are", "type", "of", "competition", "that", "have", "most", "5", "competition", "for", "that", "type", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [ [ false, 6, [ 0, [ 3, 0, false ], null ], 5.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "types", "of", "competition", "that", "have", "most", "5", "competitions", "for", "that", "type", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "type" ], [ "of" ], [ "competition" ], [ "that" ], [ "have" ], [ "most" ], [ "5" ], [ "competition" ], [ "for" ], [ "that" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "type", "JJ" ], [ "of", "IN" ], [ "competition", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "most", "RBS" ], [ "5", "CD" ], [ "competition", "NN" ], [ "for", "IN" ], [ "that", "DT" ], [ "type", "NN" ], [ "?", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(3) Filter(6) A(3) C(0) T(3) V(0)" }, { "db_id": "sports_competition", "query": "SELECT name FROM CLub WHERE Club_ID NOT IN (SELECT Club_ID FROM player)", "query_toks": [ "SELECT", "name", "FROM", "CLub", "WHERE", "Club_ID", "NOT", "IN", "(", "SELECT", "Club_ID", "FROM", "player", ")" ], "query_toks_no_value": [ "select", "name", "from", "club", "where", "club_id", "not", "in", "(", "select", "club_id", "from", "player", ")" ], "question": "List the names of clubs that do not have any players.", "question_toks": [ "list", "name", "of", "club", "that", "do", "not", "have", "any", "player", "." ], "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, 14, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "List", "the", "names", "of", "clubs", "that", "do", "not", "have", "any", "players", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "club" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "player", "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": "sports_competition", "query": "SELECT name FROM CLub WHERE Club_ID NOT IN (SELECT Club_ID FROM player)", "query_toks": [ "SELECT", "name", "FROM", "CLub", "WHERE", "Club_ID", "NOT", "IN", "(", "SELECT", "Club_ID", "FROM", "player", ")" ], "query_toks_no_value": [ "select", "name", "from", "club", "where", "club_id", "not", "in", "(", "select", "club_id", "from", "player", ")" ], "question": "What are the names of all clubs that do not have any players?", "question_toks": [ "what", "are", "name", "of", "all", "club", "that", "do", "not", "have", "any", "player", "?" ], "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, 14, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "clubs", "that", "do", "not", "have", "any", "players", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "club" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "player" ], [ "?" ] ], "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" ], [ "club", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "player", "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": "sports_competition", "query": "SELECT POSITION FROM player WHERE Points > 20 INTERSECT SELECT POSITION FROM player WHERE Points < 10", "query_toks": [ "SELECT", "POSITION", "FROM", "player", "WHERE", "Points", ">", "20", "INTERSECT", "SELECT", "POSITION", "FROM", "player", "WHERE", "Points", "<", "10" ], "query_toks_no_value": [ "select", "position", "from", "player", "where", "points", ">", "value", "intersect", "select", "position", "from", "player", "where", "points", "<", "value" ], "question": "What are the positions with both players having more than 20 points and less than 10 points.", "question_toks": [ "what", "are", "position", "with", "both", "player", "having", "more", "than", "20", "point", "and", "le", "than", "10", "point", "." ], "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, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 18, false ], null ], 10.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 20.0, null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "positions", "with", "both", "players", "having", "more", "than", "20", "points", "and", "less", "than", "10", "points", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "position" ], [ "with" ], [ "both" ], [ "player" ], [ "having" ], [ "more" ], [ "than" ], [ "20" ], [ "point" ], [ "and" ], [ "le" ], [ "than" ], [ "10" ], [ "point" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "position", "NN" ], [ "with", "IN" ], [ "both", "DT" ], [ "player", "NN" ], [ "having", "VBG" ], [ "more", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ "point", "NN" ], [ "and", "CC" ], [ "le", "NN" ], [ "than", "IN" ], [ "10", "CD" ], [ "point", "NN" ], [ ".", "." ] ], "values": [ "20", "10" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(5) A(0) C(15) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(4) A(0) C(15) T(2) V(1)" }, { "db_id": "sports_competition", "query": "SELECT POSITION FROM player WHERE Points > 20 INTERSECT SELECT POSITION FROM player WHERE Points < 10", "query_toks": [ "SELECT", "POSITION", "FROM", "player", "WHERE", "Points", ">", "20", "INTERSECT", "SELECT", "POSITION", "FROM", "player", "WHERE", "Points", "<", "10" ], "query_toks_no_value": [ "select", "position", "from", "player", "where", "points", ">", "value", "intersect", "select", "position", "from", "player", "where", "points", "<", "value" ], "question": "What are the positions of both players that have more than 20 20 points and less than 10 points?", "question_toks": [ "what", "are", "position", "of", "both", "player", "that", "have", "more", "than", "20", "20", "point", "and", "le", "than", "10", "point", "?" ], "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, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 18, false ], null ], 10.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 20.0, null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "positions", "of", "both", "players", "that", "have", "more", "than", "20", "20", "points", "and", "less", "than", "10", "points", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "position" ], [ "of" ], [ "both" ], [ "player" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "20" ], [ "20" ], [ "point" ], [ "and" ], [ "le" ], [ "than" ], [ "10" ], [ "point" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "position", "NN" ], [ "of", "IN" ], [ "both", "DT" ], [ "player", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ "20", "CD" ], [ "point", "NN" ], [ "and", "CC" ], [ "le", "NN" ], [ "than", "IN" ], [ "10", "CD" ], [ "point", "NN" ], [ "?", "." ] ], "values": [ "20", "10" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(5) A(0) C(15) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(4) A(0) C(15) T(2) V(1)" }, { "db_id": "sports_competition", "query": "SELECT sum(Points) FROM player", "query_toks": [ "SELECT", "sum", "(", "Points", ")", "FROM", "player" ], "query_toks_no_value": [ "select", "sum", "(", "points", ")", "from", "player" ], "question": "Show total points of all players.", "question_toks": [ "show", "total", "point", "of", "all", "player", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "Show", "total", "points", "of", "all", "players", "." ], "question_arg": [ [ "show" ], [ "total" ], [ "point" ], [ "of" ], [ "all" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "total", "JJ" ], [ "point", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "player", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(15) T(2)" }, { "db_id": "sports_competition", "query": "SELECT sum(Points) FROM player", "query_toks": [ "SELECT", "sum", "(", "Points", ")", "FROM", "player" ], "query_toks_no_value": [ "select", "sum", "(", "points", ")", "from", "player" ], "question": "What is the total number of points for all players?", "question_toks": [ "what", "is", "total", "number", "of", "point", "for", "all", "player", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "points", "for", "all", "players", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "point" ], [ "for" ], [ "all" ], [ "player" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "point", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "player", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(15) T(2)" }, { "db_id": "sports_competition", "query": "SELECT count(DISTINCT POSITION) FROM player", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "POSITION", ")", "FROM", "player" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "position", ")", "from", "player" ], "question": "how many different positions are there?", "question_toks": [ "how", "many", "different", "position", "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": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "how", "many", "different", "positions", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "position" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "position", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(11) T(2)" }, { "db_id": "sports_competition", "query": "SELECT count(DISTINCT POSITION) FROM player", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "POSITION", ")", "FROM", "player" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "position", ")", "from", "player" ], "question": "How many different position for players are listed?", "question_toks": [ "how", "many", "different", "position", "for", "player", "are", "listed", "?" ], "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": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "How", "many", "different", "position", "for", "players", "are", "listed", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "position" ], [ "for" ], [ "player" ], [ "are" ], [ "listed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "position", "NN" ], [ "for", "IN" ], [ "player", "NN" ], [ "are", "VBP" ], [ "listed", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(11) T(2)" }, { "db_id": "sports_competition", "query": "SELECT name FROM player WHERE points > (SELECT avg(points) FROM player)", "query_toks": [ "SELECT", "name", "FROM", "player", "WHERE", "points", ">", "(", "SELECT", "avg", "(", "points", ")", "FROM", "player", ")" ], "query_toks_no_value": [ "select", "name", "from", "player", "where", "points", ">", "(", "select", "avg", "(", "points", ")", "from", "player", ")" ], "question": "what are the name of players who get more than the average points.", "question_toks": [ "what", "are", "name", "of", "player", "who", "get", "more", "than", "average", "point", "." ], "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, 18, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "what", "are", "the", "name", "of", "players", "who", "get", "more", "than", "the", "average", "points", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "player" ], [ "who" ], [ "get" ], [ "more" ], [ "than" ], [ "average" ], [ "point" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "who", "WP" ], [ "get", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "point", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(13) A(0) C(15) T(2) Root(5) Sel(0) N(0) A(5) C(15) T(2)" }, { "db_id": "sports_competition", "query": "SELECT name FROM player WHERE points > (SELECT avg(points) FROM player)", "query_toks": [ "SELECT", "name", "FROM", "player", "WHERE", "points", ">", "(", "SELECT", "avg", "(", "points", ")", "FROM", "player", ")" ], "query_toks_no_value": [ "select", "name", "from", "player", "where", "points", ">", "(", "select", "avg", "(", "points", ")", "from", "player", ")" ], "question": "What are the names of all players that got more than the average number of points?", "question_toks": [ "what", "are", "name", "of", "all", "player", "that", "got", "more", "than", "average", "number", "of", "point", "?" ], "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, 18, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "players", "that", "got", "more", "than", "the", "average", "number", "of", "points", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "player" ], [ "that" ], [ "got" ], [ "more" ], [ "than" ], [ "average" ], [ "number" ], [ "of" ], [ "point" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "player", "NN" ], [ "that", "WDT" ], [ "got", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "point", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(13) A(0) C(15) T(2) Root(5) Sel(0) N(0) A(5) C(15) T(2)" }, { "db_id": "sports_competition", "query": "SELECT count(*) , POSITION FROM player WHERE points < 30 GROUP BY POSITION", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "POSITION", "FROM", "player", "WHERE", "points", "<", "30", "GROUP", "BY", "POSITION" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "position", "from", "player", "where", "points", "<", "value", "group", "by", "position" ], "question": "find the number of players whose points are lower than 30 in each position.", "question_toks": [ "find", "number", "of", "player", "whose", "point", "are", "lower", "than", "30", "in", "each", "position", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 18, false ], null ], 30.0, null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "find", "the", "number", "of", "players", "whose", "points", "are", "lower", "than", "30", "in", "each", "position", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "player" ], [ "whose" ], [ "point" ], [ "are" ], [ "lower" ], [ "than" ], [ "30" ], [ "in" ], [ "each" ], [ "position" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "whose", "WP$" ], [ "point", "NN" ], [ "are", "VBP" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "30", "CD" ], [ "in", "IN" ], [ "each", "DT" ], [ "position", "NN" ], [ ".", "." ] ], "values": [ "30" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(2) A(0) C(11) T(2) Filter(4) A(0) C(15) T(2) V(0)" }, { "db_id": "sports_competition", "query": "SELECT count(*) , POSITION FROM player WHERE points < 30 GROUP BY POSITION", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "POSITION", "FROM", "player", "WHERE", "points", "<", "30", "GROUP", "BY", "POSITION" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "position", "from", "player", "where", "points", "<", "value", "group", "by", "position" ], "question": "What is the number of players who have points less than 30 for each position?", "question_toks": [ "what", "is", "number", "of", "player", "who", "have", "point", "le", "than", "30", "for", "each", "position", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 18, false ], null ], 30.0, null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "players", "who", "have", "points", "less", "than", "30", "for", "each", "position", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "player" ], [ "who" ], [ "have" ], [ "point" ], [ "le" ], [ "than" ], [ "30" ], [ "for" ], [ "each" ], [ "position" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "point", "NN" ], [ "le", "NN" ], [ "than", "IN" ], [ "30", "CD" ], [ "for", "IN" ], [ "each", "DT" ], [ "position", "NN" ], [ "?", "." ] ], "values": [ "30" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(2) A(0) C(11) T(2) Filter(4) A(0) C(15) T(2) V(0)" }, { "db_id": "sports_competition", "query": "SELECT country FROM competition WHERE competition_type = 'Tournament' GROUP BY country ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "country", "FROM", "competition", "WHERE", "competition_type", "=", "'Tournament", "'", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "country", "from", "competition", "where", "competition_type", "=", "value", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "which country did participated in the most number of Tournament competitions?", "question_toks": [ "which", "country", "did", "participated", "in", "most", "number", "of", "tournament", "competition", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 22, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Tournament\"", null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "which", "country", "did", "participated", "in", "the", "most", "number", "of", "Tournament", "competitions", "?" ], "question_arg": [ [ "which" ], [ "country" ], [ "did" ], [ "participated" ], [ "in" ], [ "most" ], [ "number" ], [ "of" ], [ "tournament" ], [ "competition" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "did", "VBD" ], [ "participated", "VBN" ], [ "in", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "tournament", "JJ" ], [ "competition", "NN" ], [ "?", "." ] ], "values": [ "Tournament" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(19) T(3) Sup(0) A(3) C(0) T(3) Filter(2) A(0) C(18) T(3) V(0)" }, { "db_id": "sports_competition", "query": "SELECT country FROM competition WHERE competition_type = 'Tournament' GROUP BY country ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "country", "FROM", "competition", "WHERE", "competition_type", "=", "'Tournament", "'", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "country", "from", "competition", "where", "competition_type", "=", "value", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "what is the name of the country that participated in the most tournament competitions?", "question_toks": [ "what", "is", "name", "of", "country", "that", "participated", "in", "most", "tournament", "competition", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 22, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Tournament\"", null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "what", "is", "the", "name", "of", "the", "country", "that", "participated", "in", "the", "most", "tournament", "competitions", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "country" ], [ "that" ], [ "participated" ], [ "in" ], [ "most" ], [ "tournament" ], [ "competition" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "participated", "VBD" ], [ "in", "IN" ], [ "most", "JJS" ], [ "tournament", "JJ" ], [ "competition", "NN" ], [ "?", "." ] ], "values": [ "Tournament" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(19) T(3) Sup(0) A(3) C(0) T(3) Filter(2) A(0) C(18) T(3) V(0)" }, { "db_id": "sports_competition", "query": "SELECT country FROM competition WHERE competition_type = 'Friendly' INTERSECT SELECT country FROM competition WHERE competition_type = 'Tournament'", "query_toks": [ "SELECT", "country", "FROM", "competition", "WHERE", "competition_type", "=", "'Friendly", "'", "INTERSECT", "SELECT", "country", "FROM", "competition", "WHERE", "competition_type", "=", "'Tournament", "'" ], "query_toks_no_value": [ "select", "country", "from", "competition", "where", "competition_type", "=", "value", "intersect", "select", "country", "from", "competition", "where", "competition_type", "=", "value" ], "question": "which countries did participated in both Friendly and Tournament type competitions.", "question_toks": [ "which", "country", "did", "participated", "in", "both", "friendly", "and", "tournament", "type", "competition", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Tournament\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Friendly\"", null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "which", "countries", "did", "participated", "in", "both", "Friendly", "and", "Tournament", "type", "competitions", "." ], "question_arg": [ [ "which" ], [ "country" ], [ "did" ], [ "participated" ], [ "in" ], [ "both" ], [ "friendly" ], [ "and" ], [ "tournament" ], [ "competition", "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "did", "VBD" ], [ "participated", "VBN" ], [ "in", "IN" ], [ "both", "DT" ], [ "friendly", "JJ" ], [ "and", "CC" ], [ "tournament", "JJ" ], [ "type", "NN" ], [ "competition", "NN" ], [ ".", "." ] ], "values": [ "Tournament", "Friendly" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(19) T(3) Filter(2) A(0) C(18) T(3) V(1) Root(3) Sel(0) N(0) A(0) C(19) T(3) Filter(2) A(0) C(18) T(3) V(0)" }, { "db_id": "sports_competition", "query": "SELECT country FROM competition WHERE competition_type = 'Friendly' INTERSECT SELECT country FROM competition WHERE competition_type = 'Tournament'", "query_toks": [ "SELECT", "country", "FROM", "competition", "WHERE", "competition_type", "=", "'Friendly", "'", "INTERSECT", "SELECT", "country", "FROM", "competition", "WHERE", "competition_type", "=", "'Tournament", "'" ], "query_toks_no_value": [ "select", "country", "from", "competition", "where", "competition_type", "=", "value", "intersect", "select", "country", "from", "competition", "where", "competition_type", "=", "value" ], "question": "What are the countries that participated in both friendly and tournament type competitions?", "question_toks": [ "what", "are", "country", "that", "participated", "in", "both", "friendly", "and", "tournament", "type", "competition", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Tournament\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Friendly\"", null ] ] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "countries", "that", "participated", "in", "both", "friendly", "and", "tournament", "type", "competitions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "country" ], [ "that" ], [ "participated" ], [ "in" ], [ "both" ], [ "friendly" ], [ "and" ], [ "tournament" ], [ "competition", "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "that", "WDT" ], [ "participated", "VBD" ], [ "in", "IN" ], [ "both", "DT" ], [ "friendly", "JJ" ], [ "and", "CC" ], [ "tournament", "JJ" ], [ "type", "NN" ], [ "competition", "NN" ], [ "?", "." ] ], "values": [ "Tournament", "Friendly" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(19) T(3) Filter(2) A(0) C(18) T(3) V(1) Root(3) Sel(0) N(0) A(0) C(19) T(3) Filter(2) A(0) C(18) T(3) V(0)" }, { "db_id": "sports_competition", "query": "SELECT country FROM competition EXCEPT SELECT country FROM competition WHERE competition_type = 'Friendly'", "query_toks": [ "SELECT", "country", "FROM", "competition", "EXCEPT", "SELECT", "country", "FROM", "competition", "WHERE", "competition_type", "=", "'Friendly", "'" ], "query_toks_no_value": [ "select", "country", "from", "competition", "except", "select", "country", "from", "competition", "where", "competition_type", "=", "value" ], "question": "Find the countries that have never participated in any competition with Friendly type.", "question_toks": [ "find", "country", "that", "have", "never", "participated", "in", "any", "competition", "with", "friendly", "type", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Friendly\"", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "Find", "the", "countries", "that", "have", "never", "participated", "in", "any", "competition", "with", "Friendly", "type", "." ], "question_arg": [ [ "find" ], [ "country" ], [ "that" ], [ "have" ], [ "never" ], [ "participated" ], [ "in" ], [ "any" ], [ "competition" ], [ "with" ], [ "friendly" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "country", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "never", "RB" ], [ "participated", "VBN" ], [ "in", "IN" ], [ "any", "DT" ], [ "competition", "NN" ], [ "with", "IN" ], [ "friendly", "JJ" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "Friendly" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(19) T(3) Root(3) Sel(0) N(0) A(0) C(19) T(3) Filter(2) A(0) C(18) T(3) V(0)" }, { "db_id": "sports_competition", "query": "SELECT country FROM competition EXCEPT SELECT country FROM competition WHERE competition_type = 'Friendly'", "query_toks": [ "SELECT", "country", "FROM", "competition", "EXCEPT", "SELECT", "country", "FROM", "competition", "WHERE", "competition_type", "=", "'Friendly", "'" ], "query_toks_no_value": [ "select", "country", "from", "competition", "except", "select", "country", "from", "competition", "where", "competition_type", "=", "value" ], "question": "What are the countries that have never participated in any friendly-type competitions?", "question_toks": [ "what", "are", "country", "that", "have", "never", "participated", "in", "any", "friendly-type", "competition", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Friendly\"", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "club id", "name", "region", "start year", "rank", "club id", "gold", "silver", "bronze", "total", "player id", "name", "position", "club id", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "competition id", "club id 1", "club id 2", "score" ], "table_names": [ "club", "club rank", "player", "competition", "competition result" ], "col_set": [ "*", "club id", "name", "region", "start year", "rank", "gold", "silver", "bronze", "total", "player id", "position", "apps", "tries", "goals", "points", "competition id", "year", "competition type", "country", "club id 1", "club id 2", "score" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "14": 1, "23": 23, "19": 19, "25": 1, "24": 1, "5": 5, "11": 11 }, "origin_question_toks": [ "What", "are", "the", "countries", "that", "have", "never", "participated", "in", "any", "friendly-type", "competitions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "country" ], [ "that" ], [ "have" ], [ "never" ], [ "participated" ], [ "in" ], [ "any" ], [ "friendly-type" ], [ "competition" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "never", "RB" ], [ "participated", "VBN" ], [ "in", "IN" ], [ "any", "DT" ], [ "friendly-type", "JJ" ], [ "competition", "NN" ], [ "?", "." ] ], "values": [ "Friendly" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(19) T(3) Root(3) Sel(0) N(0) A(0) C(19) T(3) Filter(2) A(0) C(18) T(3) V(0)" }, { "db_id": "manufacturer", "query": "SELECT sum(num_of_component) FROM furniture", "query_toks": [ "SELECT", "sum", "(", "num_of_component", ")", "FROM", "furniture" ], "query_toks_no_value": [ "select", "sum", "(", "num_of_component", ")", "from", "furniture" ], "question": "How many furniture components are there in total?", "question_toks": [ "how", "many", "furniture", "component", "are", "there", "in", "total", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "name", "num of component", "market rate", "manufacturer id", "furniture id", "price in dollar" ], "table_names": [ "manufacturer", "furniture", "furniture manufacte" ], "col_set": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "num of component", "market rate", "price in dollar" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 6, "6": 6, "10": 10, "1": 1 }, "origin_question_toks": [ "How", "many", "furniture", "components", "are", "there", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "furniture" ], [ "component" ], [ "are" ], [ "there" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "furniture", "NN" ], [ "component", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "total", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(7) T(1)" }, { "db_id": "manufacturer", "query": "SELECT name , furniture_id FROM furniture ORDER BY market_rate DESC LIMIT 1", "query_toks": [ "SELECT", "name", ",", "furniture_id", "FROM", "furniture", "ORDER", "BY", "market_rate", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "furniture_id", "from", "furniture", "order", "by", "market_rate", "desc", "limit", "value" ], "question": "Return the name and id of the furniture with the highest market rate.", "question_toks": [ "return", "name", "and", "id", "of", "furniture", "with", "highest", "market", "rate", "." ], "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, 7, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "name", "num of component", "market rate", "manufacturer id", "furniture id", "price in dollar" ], "table_names": [ "manufacturer", "furniture", "furniture manufacte" ], "col_set": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "num of component", "market rate", "price in dollar" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 6, "6": 6, "10": 10, "1": 1 }, "origin_question_toks": [ "Return", "the", "name", "and", "id", "of", "the", "furniture", "with", "the", "highest", "market", "rate", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "furniture" ], [ "with" ], [ "highest" ], [ "market", "rate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "furniture", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "market", "NN" ], [ "rate", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(3) T(1) A(0) C(6) T(1) Sup(0) A(0) C(8) T(1)" }, { "db_id": "manufacturer", "query": "SELECT sum(market_rate) FROM furniture ORDER BY market_rate DESC LIMIT 2", "query_toks": [ "SELECT", "sum", "(", "market_rate", ")", "FROM", "furniture", "ORDER", "BY", "market_rate", "DESC", "LIMIT", "2" ], "query_toks_no_value": [ "select", "sum", "(", "market_rate", ")", "from", "furniture", "order", "by", "market_rate", "desc", "limit", "value" ], "question": "find the total market rate of the furnitures that have the top 2 market shares.", "question_toks": [ "find", "total", "market", "rate", "of", "furniture", "that", "have", "top", "2", "market", "share", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 2, "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 4, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "name", "num of component", "market rate", "manufacturer id", "furniture id", "price in dollar" ], "table_names": [ "manufacturer", "furniture", "furniture manufacte" ], "col_set": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "num of component", "market rate", "price in dollar" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 6, "6": 6, "10": 10, "1": 1 }, "origin_question_toks": [ "find", "the", "total", "market", "rate", "of", "the", "furnitures", "that", "have", "the", "top", "2", "market", "shares", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "market", "rate" ], [ "of" ], [ "furniture" ], [ "that" ], [ "have" ], [ "top" ], [ "2" ], [ "market" ], [ "share" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "market", "NN" ], [ "rate", "NN" ], [ "of", "IN" ], [ "furniture", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "top", "JJ" ], [ "2", "CD" ], [ "market", "NN" ], [ "share", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(4) C(8) T(1) Sup(0) A(0) C(8) T(1)" }, { "db_id": "manufacturer", "query": "SELECT Num_of_Component , name FROM furniture WHERE Num_of_Component > 10", "query_toks": [ "SELECT", "Num_of_Component", ",", "name", "FROM", "furniture", "WHERE", "Num_of_Component", ">", "10" ], "query_toks_no_value": [ "select", "num_of_component", ",", "name", "from", "furniture", "where", "num_of_component", ">", "value" ], "question": "Find the component amounts and names of all furnitures that have more than 10 components.", "question_toks": [ "find", "component", "amount", "and", "name", "of", "all", "furniture", "that", "have", "more", "than", "10", "component", "." ], "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, 3, [ 0, [ 0, 8, false ], null ], 10.0, null ] ] }, "names": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "name", "num of component", "market rate", "manufacturer id", "furniture id", "price in dollar" ], "table_names": [ "manufacturer", "furniture", "furniture manufacte" ], "col_set": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "num of component", "market rate", "price in dollar" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 6, "6": 6, "10": 10, "1": 1 }, "origin_question_toks": [ "Find", "the", "component", "amounts", "and", "names", "of", "all", "furnitures", "that", "have", "more", "than", "10", "components", "." ], "question_arg": [ [ "find" ], [ "component" ], [ "amount" ], [ "and" ], [ "name" ], [ "of" ], [ "all" ], [ "furniture" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "10" ], [ "component" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "component", "JJ" ], [ "amount", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "furniture", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "component", "NN" ], [ ".", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(1) A(0) C(3) T(1) Filter(5) A(0) C(7) T(1) V(0)" }, { "db_id": "manufacturer", "query": "SELECT name , Num_of_Component FROM furniture ORDER BY market_rate LIMIT 1", "query_toks": [ "SELECT", "name", ",", "Num_of_Component", "FROM", "furniture", "ORDER", "BY", "market_rate", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "num_of_component", "from", "furniture", "order", "by", "market_rate", "limit", "value" ], "question": "Find the name and component amount of the least popular furniture.", "question_toks": [ "find", "name", "and", "component", "amount", "of", "least", "popular", "furniture", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "name", "num of component", "market rate", "manufacturer id", "furniture id", "price in dollar" ], "table_names": [ "manufacturer", "furniture", "furniture manufacte" ], "col_set": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "num of component", "market rate", "price in dollar" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 6, "6": 6, "10": 10, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "component", "amount", "of", "the", "least", "popular", "furniture", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "component" ], [ "amount" ], [ "of" ], [ "least" ], [ "popular" ], [ "furniture" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "component", "NN" ], [ "amount", "NN" ], [ "of", "IN" ], [ "least", "JJS" ], [ "popular", "JJ" ], [ "furniture", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(3) T(1) A(0) C(7) T(1) Sup(1) A(0) C(8) T(1)" }, { "db_id": "manufacturer", "query": "SELECT t1.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID WHERE t2.Price_in_Dollar < (SELECT max(Price_in_Dollar) FROM furniture_manufacte)", "query_toks": [ "SELECT", "t1.name", "FROM", "furniture", "AS", "t1", "JOIN", "furniture_manufacte", "AS", "t2", "ON", "t1.Furniture_ID", "=", "t2.Furniture_ID", "WHERE", "t2.Price_in_Dollar", "<", "(", "SELECT", "max", "(", "Price_in_Dollar", ")", "FROM", "furniture_manufacte", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "furniture", "as", "t1", "join", "furniture_manufacte", "as", "t2", "on", "t1", ".", "furniture_id", "=", "t2", ".", "furniture_id", "where", "t2", ".", "price_in_dollar", "<", "(", "select", "max", "(", "price_in_dollar", ")", "from", "furniture_manufacte", ")" ], "question": "Find the names of furnitures whose prices are lower than the highest price.", "question_toks": [ "find", "name", "of", "furniture", "whose", "price", "are", "lower", "than", "highest", "price", "." ], "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": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 12, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "name", "num of component", "market rate", "manufacturer id", "furniture id", "price in dollar" ], "table_names": [ "manufacturer", "furniture", "furniture manufacte" ], "col_set": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "num of component", "market rate", "price in dollar" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 6, "6": 6, "10": 10, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "furnitures", "whose", "prices", "are", "lower", "than", "the", "highest", "price", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "furniture" ], [ "whose" ], [ "price" ], [ "are" ], [ "lower" ], [ "than" ], [ "highest" ], [ "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "furniture", "NN" ], [ "whose", "WP$" ], [ "price", "NN" ], [ "are", "VBP" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "highest", "JJS" ], [ "price", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(12) A(0) C(9) T(2) Root(5) Sel(0) N(0) A(1) C(9) T(2)" }, { "db_id": "manufacturer", "query": "SELECT open_year , name FROM manufacturer ORDER BY num_of_shops DESC LIMIT 1", "query_toks": [ "SELECT", "open_year", ",", "name", "FROM", "manufacturer", "ORDER", "BY", "num_of_shops", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "open_year", ",", "name", "from", "manufacturer", "order", "by", "num_of_shops", "desc", "limit", "value" ], "question": "Which manufacturer has the most number of shops? List its name and year of opening.", "question_toks": [ "which", "manufacturer", "ha", "most", "number", "of", "shop", "?", "list", "it", "name", "and", "year", "of", "opening", "." ], "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": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "name", "num of component", "market rate", "manufacturer id", "furniture id", "price in dollar" ], "table_names": [ "manufacturer", "furniture", "furniture manufacte" ], "col_set": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "num of component", "market rate", "price in dollar" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 6, "6": 6, "10": 10, "1": 1 }, "origin_question_toks": [ "Which", "manufacturer", "has", "the", "most", "number", "of", "shops", "?", "List", "its", "name", "and", "year", "of", "opening", "." ], "question_arg": [ [ "which" ], [ "manufacturer" ], [ "ha" ], [ "most" ], [ "number" ], [ "num", "of", "shop" ], [ "?" ], [ "list" ], [ "it" ], [ "name" ], [ "and" ], [ "year" ], [ "of" ], [ "opening" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "manufacturer", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "it", "PRP" ], [ "name", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "of", "IN" ], [ "opening", "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": "manufacturer", "query": "SELECT avg(Num_of_Factories) FROM manufacturer WHERE num_of_shops > 20", "query_toks": [ "SELECT", "avg", "(", "Num_of_Factories", ")", "FROM", "manufacturer", "WHERE", "num_of_shops", ">", "20" ], "query_toks_no_value": [ "select", "avg", "(", "num_of_factories", ")", "from", "manufacturer", "where", "num_of_shops", ">", "value" ], "question": "Find the average number of factories for the manufacturers that have more than 20 shops.", "question_toks": [ "find", "average", "number", "of", "factory", "for", "manufacturer", "that", "have", "more", "than", "20", "shop", "." ], "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": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 20.0, null ] ] }, "names": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "name", "num of component", "market rate", "manufacturer id", "furniture id", "price in dollar" ], "table_names": [ "manufacturer", "furniture", "furniture manufacte" ], "col_set": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "num of component", "market rate", "price in dollar" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 6, "6": 6, "10": 10, "1": 1 }, "origin_question_toks": [ "Find", "the", "average", "number", "of", "factories", "for", "the", "manufacturers", "that", "have", "more", "than", "20", "shops", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "number" ], [ "num", "of", "factory" ], [ "for" ], [ "manufacturer" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "20" ], [ "shop" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "factory", "NN" ], [ "for", "IN" ], [ "manufacturer", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ "shop", "NN" ], [ ".", "." ] ], "values": [ "20" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(5) A(0) C(5) T(0) V(0)" }, { "db_id": "manufacturer", "query": "SELECT name , manufacturer_id FROM manufacturer ORDER BY open_year", "query_toks": [ "SELECT", "name", ",", "manufacturer_id", "FROM", "manufacturer", "ORDER", "BY", "open_year" ], "query_toks_no_value": [ "select", "name", ",", "manufacturer_id", "from", "manufacturer", "order", "by", "open_year" ], "question": "List all manufacturer names and ids ordered by their opening year.", "question_toks": [ "list", "all", "manufacturer", "name", "and", "id", "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, 2, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "name", "num of component", "market rate", "manufacturer id", "furniture id", "price in dollar" ], "table_names": [ "manufacturer", "furniture", "furniture manufacte" ], "col_set": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "num of component", "market rate", "price in dollar" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 6, "6": 6, "10": 10, "1": 1 }, "origin_question_toks": [ "List", "all", "manufacturer", "names", "and", "ids", "ordered", "by", "their", "opening", "year", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "manufacturer" ], [ "name" ], [ "and" ], [ "id" ], [ "ordered" ], [ "by" ], [ "their" ], [ "opening" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "manufacturer", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "opening", "JJ" ], [ "year", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(3) T(0) A(0) C(1) T(0) Order(1) A(0) C(2) T(0)" }, { "db_id": "manufacturer", "query": "SELECT name , open_year FROM manufacturer WHERE num_of_shops > 10 OR Num_of_Factories < 10", "query_toks": [ "SELECT", "name", ",", "open_year", "FROM", "manufacturer", "WHERE", "num_of_shops", ">", "10", "OR", "Num_of_Factories", "<", "10" ], "query_toks_no_value": [ "select", "name", ",", "open_year", "from", "manufacturer", "where", "num_of_shops", ">", "value", "or", "num_of_factories", "<", "value" ], "question": "Give me the name and year of opening of the manufacturers that have either less than 10 factories or more than 10 shops.", "question_toks": [ "give", "me", "name", "and", "year", "of", "opening", "of", "manufacturer", "that", "have", "either", "le", "than", "10", "factory", "or", "more", "than", "10", "shop", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 10.0, null ], "or", [ false, 4, [ 0, [ 0, 4, false ], null ], 10.0, null ] ] }, "names": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "name", "num of component", "market rate", "manufacturer id", "furniture id", "price in dollar" ], "table_names": [ "manufacturer", "furniture", "furniture manufacte" ], "col_set": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "num of component", "market rate", "price in dollar" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 6, "6": 6, "10": 10, "1": 1 }, "origin_question_toks": [ "Give", "me", "the", "name", "and", "year", "of", "opening", "of", "the", "manufacturers", "that", "have", "either", "less", "than", "10", "factories", "or", "more", "than", "10", "shops", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "name" ], [ "and" ], [ "year" ], [ "of" ], [ "opening" ], [ "of" ], [ "manufacturer" ], [ "that" ], [ "have" ], [ "either" ], [ "le" ], [ "than" ], [ "10" ], [ "factory" ], [ "or" ], [ "more" ], [ "than" ], [ "10" ], [ "shop" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "of", "IN" ], [ "opening", "NN" ], [ "of", "IN" ], [ "manufacturer", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "either", "DT" ], [ "le", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "factory", "NN" ], [ "or", "CC" ], [ "more", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "shop", "NN" ], [ ".", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(1) Filter(5) A(0) C(5) T(0) V(0) Filter(4) A(0) C(4) T(0) V(0)" }, { "db_id": "manufacturer", "query": "SELECT max(num_of_shops) , avg(Num_of_Factories) FROM manufacturer WHERE open_year < 1990", "query_toks": [ "SELECT", "max", "(", "num_of_shops", ")", ",", "avg", "(", "Num_of_Factories", ")", "FROM", "manufacturer", "WHERE", "open_year", "<", "1990" ], "query_toks_no_value": [ "select", "max", "(", "num_of_shops", ")", ",", "avg", "(", "num_of_factories", ")", "from", "manufacturer", "where", "open_year", "<", "value" ], "question": "what is the average number of factories and maximum number of shops for manufacturers that opened before 1990.", "question_toks": [ "what", "is", "average", "number", "of", "factory", "and", "maximum", "number", "of", "shop", "for", "manufacturer", "that", "opened", "before", "year", "." ], "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 ] ], [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 2, false ], null ], 1990.0, null ] ] }, "names": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "name", "num of component", "market rate", "manufacturer id", "furniture id", "price in dollar" ], "table_names": [ "manufacturer", "furniture", "furniture manufacte" ], "col_set": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "num of component", "market rate", "price in dollar" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 6, "6": 6, "10": 10, "1": 1 }, "origin_question_toks": [ "what", "is", "the", "average", "number", "of", "factories", "and", "maximum", "number", "of", "shops", "for", "manufacturers", "that", "opened", "before", "1990", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "num", "of", "factory" ], [ "and" ], [ "maximum" ], [ "number" ], [ "num", "of", "shop" ], [ "for" ], [ "manufacturer" ], [ "that" ], [ "opened" ], [ "before" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "factory", "NN" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "for", "IN" ], [ "manufacturer", "NN" ], [ "that", "WDT" ], [ "opened", "VBD" ], [ "before", "IN" ], [ "1990", "CD" ], [ ".", "." ] ], "values": [ "1990" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(5) T(0) A(5) C(4) T(0) Filter(4) A(0) C(2) T(0) V(0)" }, { "db_id": "manufacturer", "query": "SELECT t1.manufacturer_id , t1.num_of_shops FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id = t2.manufacturer_id ORDER BY t2.Price_in_Dollar DESC LIMIT 1", "query_toks": [ "SELECT", "t1.manufacturer_id", ",", "t1.num_of_shops", "FROM", "manufacturer", "AS", "t1", "JOIN", "furniture_manufacte", "AS", "t2", "ON", "t1.manufacturer_id", "=", "t2.manufacturer_id", "ORDER", "BY", "t2.Price_in_Dollar", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "manufacturer_id", ",", "t1", ".", "num_of_shops", "from", "manufacturer", "as", "t1", "join", "furniture_manufacte", "as", "t2", "on", "t1", ".", "manufacturer_id", "=", "t2", ".", "manufacturer_id", "order", "by", "t2", ".", "price_in_dollar", "desc", "limit", "value" ], "question": "Find the id and number of shops for the company that produces the most expensive furniture.", "question_toks": [ "find", "id", "and", "number", "of", "shop", "for", "company", "that", "produce", "most", "expensive", "furniture", "." ], "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": 1, "orderBy": [ "desc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "name", "num of component", "market rate", "manufacturer id", "furniture id", "price in dollar" ], "table_names": [ "manufacturer", "furniture", "furniture manufacte" ], "col_set": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "num of component", "market rate", "price in dollar" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 6, "6": 6, "10": 10, "1": 1 }, "origin_question_toks": [ "Find", "the", "id", "and", "number", "of", "shops", "for", "the", "company", "that", "produces", "the", "most", "expensive", "furniture", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "number" ], [ "num", "of", "shop" ], [ "for" ], [ "company" ], [ "that" ], [ "produce" ], [ "most" ], [ "expensive" ], [ "furniture" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "for", "IN" ], [ "company", "NN" ], [ "that", "WDT" ], [ "produce", "VBP" ], [ "most", "RBS" ], [ "expensive", "JJ" ], [ "furniture", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(0) A(0) C(5) T(0) Sup(0) A(0) C(9) T(2)" }, { "db_id": "manufacturer", "query": "SELECT count(*) , t1.name FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id = t2.manufacturer_id GROUP BY t1.manufacturer_id", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "t1.name", "FROM", "manufacturer", "AS", "t1", "JOIN", "furniture_manufacte", "AS", "t2", "ON", "t1.manufacturer_id", "=", "t2.manufacturer_id", "GROUP", "BY", "t1.manufacturer_id" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "manufacturer", "as", "t1", "join", "furniture_manufacte", "as", "t2", "on", "t1", ".", "manufacturer_id", "=", "t2", ".", "manufacturer_id", "group", "by", "t1", ".", "manufacturer_id" ], "question": "Find the number of funiture types produced by each manufacturer as well as the company names.", "question_toks": [ "find", "number", "of", "funiture", "type", "produced", "by", "each", "manufacturer", "a", "well", "a", "company", "name", "." ], "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, 1, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "name", "num of component", "market rate", "manufacturer id", "furniture id", "price in dollar" ], "table_names": [ "manufacturer", "furniture", "furniture manufacte" ], "col_set": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "num of component", "market rate", "price in dollar" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 6, "6": 6, "10": 10, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "funiture", "types", "produced", "by", "each", "manufacturer", "as", "well", "as", "the", "company", "names", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "funiture" ], [ "type" ], [ "produced" ], [ "by" ], [ "each" ], [ "manufacturer" ], [ "a" ], [ "well" ], [ "a" ], [ "company" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "funiture", "NN" ], [ "type", "NN" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "manufacturer", "NN" ], [ "a", "DT" ], [ "well", "NN" ], [ "a", "DT" ], [ "company", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(2) A(0) C(3) T(0)" }, { "db_id": "manufacturer", "query": "SELECT t1.name , t2.price_in_dollar FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID", "query_toks": [ "SELECT", "t1.name", ",", "t2.price_in_dollar", "FROM", "furniture", "AS", "t1", "JOIN", "furniture_manufacte", "AS", "t2", "ON", "t1.Furniture_ID", "=", "t2.Furniture_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "price_in_dollar", "from", "furniture", "as", "t1", "join", "furniture_manufacte", "as", "t2", "on", "t1", ".", "furniture_id", "=", "t2", ".", "furniture_id" ], "question": "Give me the names and prices of furnitures which some companies are manufacturing.", "question_toks": [ "give", "me", "name", "and", "price", "of", "furniture", "which", "some", "company", "are", "manufacturing", "." ], "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": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "name", "num of component", "market rate", "manufacturer id", "furniture id", "price in dollar" ], "table_names": [ "manufacturer", "furniture", "furniture manufacte" ], "col_set": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "num of component", "market rate", "price in dollar" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 6, "6": 6, "10": 10, "1": 1 }, "origin_question_toks": [ "Give", "me", "the", "names", "and", "prices", "of", "furnitures", "which", "some", "companies", "are", "manufacturing", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "name" ], [ "and" ], [ "price" ], [ "of" ], [ "furniture" ], [ "which" ], [ "some" ], [ "company" ], [ "are" ], [ "manufacturing" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "and", "CC" ], [ "price", "NN" ], [ "of", "IN" ], [ "furniture", "NN" ], [ "which", "WDT" ], [ "some", "DT" ], [ "company", "NN" ], [ "are", "VBP" ], [ "manufacturing", "VBG" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(1) A(0) C(9) T(2)" }, { "db_id": "manufacturer", "query": "SELECT Market_Rate , name FROM furniture WHERE Furniture_ID NOT IN (SELECT Furniture_ID FROM furniture_manufacte)", "query_toks": [ "SELECT", "Market_Rate", ",", "name", "FROM", "furniture", "WHERE", "Furniture_ID", "NOT", "IN", "(", "SELECT", "Furniture_ID", "FROM", "furniture_manufacte", ")" ], "query_toks_no_value": [ "select", "market_rate", ",", "name", "from", "furniture", "where", "furniture_id", "not", "in", "(", "select", "furniture_id", "from", "furniture_manufacte", ")" ], "question": "Find the market shares and names of furnitures which no any company is producing in our records.", "question_toks": [ "find", "market", "share", "and", "name", "of", "furniture", "which", "no", "any", "company", "is", "producing", "in", "our", "record", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "name", "num of component", "market rate", "manufacturer id", "furniture id", "price in dollar" ], "table_names": [ "manufacturer", "furniture", "furniture manufacte" ], "col_set": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "num of component", "market rate", "price in dollar" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 6, "6": 6, "10": 10, "1": 1 }, "origin_question_toks": [ "Find", "the", "market", "shares", "and", "names", "of", "furnitures", "which", "no", "any", "company", "is", "producing", "in", "our", "records", "." ], "question_arg": [ [ "find" ], [ "market" ], [ "share" ], [ "and" ], [ "name" ], [ "of" ], [ "furniture" ], [ "which" ], [ "no" ], [ "any" ], [ "company" ], [ "is" ], [ "producing" ], [ "in" ], [ "our" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "market", "NN" ], [ "share", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "furniture", "NN" ], [ "which", "WDT" ], [ "no", "DT" ], [ "any", "DT" ], [ "company", "NN" ], [ "is", "VBZ" ], [ "producing", "VBG" ], [ "in", "IN" ], [ "our", "PRP$" ], [ "record", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(1) A(0) C(3) T(1) Filter(19) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "manufacturer", "query": "SELECT t3.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID JOIN manufacturer AS t3 ON t2.manufacturer_id = t3.manufacturer_id WHERE t1.num_of_component < 6 INTERSECT SELECT t3.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID JOIN manufacturer AS t3 ON t2.manufacturer_id = t3.manufacturer_id WHERE t1.num_of_component > 10", "query_toks": [ "SELECT", "t3.name", "FROM", "furniture", "AS", "t1", "JOIN", "furniture_manufacte", "AS", "t2", "ON", "t1.Furniture_ID", "=", "t2.Furniture_ID", "JOIN", "manufacturer", "AS", "t3", "ON", "t2.manufacturer_id", "=", "t3.manufacturer_id", "WHERE", "t1.num_of_component", "<", "6", "INTERSECT", "SELECT", "t3.name", "FROM", "furniture", "AS", "t1", "JOIN", "furniture_manufacte", "AS", "t2", "ON", "t1.Furniture_ID", "=", "t2.Furniture_ID", "JOIN", "manufacturer", "AS", "t3", "ON", "t2.manufacturer_id", "=", "t3.manufacturer_id", "WHERE", "t1.num_of_component", ">", "10" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "furniture", "as", "t1", "join", "furniture_manufacte", "as", "t2", "on", "t1", ".", "furniture_id", "=", "t2", ".", "furniture_id", "join", "manufacturer", "as", "t3", "on", "t2", ".", "manufacturer_id", "=", "t3", ".", "manufacturer_id", "where", "t1", ".", "num_of_component", "<", "value", "intersect", "select", "t3", ".", "name", "from", "furniture", "as", "t1", "join", "furniture_manufacte", "as", "t2", "on", "t1", ".", "furniture_id", "=", "t2", ".", "furniture_id", "join", "manufacturer", "as", "t3", "on", "t2", ".", "manufacturer_id", "=", "t3", ".", "manufacturer_id", "where", "t1", ".", "num_of_component", ">", "value" ], "question": "Find the name of the company that produces both furnitures with less than 6 components and furnitures with more than 10 components.", "question_toks": [ "find", "name", "of", "company", "that", "produce", "both", "furniture", "with", "le", "than", "6", "component", "and", "furniture", "with", "more", "than", "10", "component", "." ], "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": [], "having": [], "intersect": { "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, 3, 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, 3, [ 0, [ 0, 8, false ], null ], 10.0, 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, 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, 4, [ 0, [ 0, 8, false ], null ], 6.0, null ] ] }, "names": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "name", "num of component", "market rate", "manufacturer id", "furniture id", "price in dollar" ], "table_names": [ "manufacturer", "furniture", "furniture manufacte" ], "col_set": [ "*", "manufacturer id", "open year", "name", "num of factories", "num of shops", "furniture id", "num of component", "market rate", "price in dollar" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 6, "6": 6, "10": 10, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "company", "that", "produces", "both", "furnitures", "with", "less", "than", "6", "components", "and", "furnitures", "with", "more", "than", "10", "components", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "company" ], [ "that" ], [ "produce" ], [ "both" ], [ "furniture" ], [ "with" ], [ "le" ], [ "than" ], [ "6" ], [ "component" ], [ "and" ], [ "furniture" ], [ "with" ], [ "more" ], [ "than" ], [ "10" ], [ "component" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "that", "WDT" ], [ "produce", "VBP" ], [ "both", "DT" ], [ "furniture", "NN" ], [ "with", "IN" ], [ "le", "NN" ], [ "than", "IN" ], [ "6", "CD" ], [ "component", "NN" ], [ "and", "CC" ], [ "furniture", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "component", "NN" ], [ ".", "." ] ], "values": [ "10", "6" ], "rule_label": "Root1(0) 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(4) A(0) C(7) T(1) V(1) 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(7) T(1) V(0)" }, { "db_id": "hr_1", "query": "SELECT T1.first_name , T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id", "query_toks": [ "SELECT", "T1.first_name", ",", "T2.department_name", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t2", ".", "department_name", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id" ], "question": "Display the first name and department name for each employee.", "question_toks": [ "display", "first", "name", "and", "department", "name", "for", "each", "employee", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Display", "the", "first", "name", "and", "department", "name", "for", "each", "employee", "." ], "question_arg": [ [ "display" ], [ "first", "name" ], [ "and" ], [ "department", "name" ], [ "for" ], [ "each" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "department", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(14) T(4) A(0) C(6) T(2)" }, { "db_id": "hr_1", "query": "SELECT T1.first_name , T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id", "query_toks": [ "SELECT", "T1.first_name", ",", "T2.department_name", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t2", ".", "department_name", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id" ], "question": "What are the first name and department name of all employees?", "question_toks": [ "what", "are", "first", "name", "and", "department", "name", "of", "all", "employee", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "first", "name", "and", "department", "name", "of", "all", "employees", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "and" ], [ "department", "name" ], [ "of" ], [ "all" ], [ "employee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "department", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(14) T(4) A(0) C(6) T(2)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , salary FROM employees WHERE salary < 6000", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "salary", "FROM", "employees", "WHERE", "salary", "<", "6000" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "salary", "from", "employees", "where", "salary", "<", "value" ], "question": "List the full name (first and last name), and salary for those employees who earn below 6000.", "question_toks": [ "list", "full", "name", "(", "first", "and", "last", "name", ")", ",", "and", "salary", "for", "those", "employee", "who", "earn", "below", "6000", "." ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 21, false ], null ], 6000.0, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "List", "the", "full", "name", "(", "first", "and", "last", "name", ")", ",", "and", "salary", "for", "those", "employees", "who", "earn", "below", "6000", "." ], "question_arg": [ [ "list" ], [ "full" ], [ "name" ], [ "(" ], [ "first" ], [ "and" ], [ "last", "name" ], [ ")" ], [ "," ], [ "and" ], [ "salary" ], [ "for" ], [ "those" ], [ "employee" ], [ "who" ], [ "earn" ], [ "below" ], [ "6000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "full", "JJ" ], [ "name", "NN" ], [ "(", "(" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ")", ")" ], [ ",", "," ], [ "and", "CC" ], [ "salary", "JJ" ], [ "for", "IN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "earn", "VBP" ], [ "below", "IN" ], [ "6000", "CD" ], [ ".", "." ] ], "values": [ "1", "6000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(19) T(4) Filter(4) A(0) C(19) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , salary FROM employees WHERE salary < 6000", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "salary", "FROM", "employees", "WHERE", "salary", "<", "6000" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "salary", "from", "employees", "where", "salary", "<", "value" ], "question": "What are the full names and salaries for any employees earning less than 6000?", "question_toks": [ "what", "are", "full", "name", "and", "salary", "for", "any", "employee", "earning", "le", "than", "6000", "?" ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 21, false ], null ], 6000.0, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "full", "names", "and", "salaries", "for", "any", "employees", "earning", "less", "than", "6000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "and" ], [ "salary" ], [ "for" ], [ "any" ], [ "employee" ], [ "earning" ], [ "le" ], [ "than" ], [ "6000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "salary", "NN" ], [ "for", "IN" ], [ "any", "DT" ], [ "employee", "NN" ], [ "earning", "VBG" ], [ "le", "NN" ], [ "than", "IN" ], [ "6000", "CD" ], [ "?", "." ] ], "values": [ "6000", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(19) T(4) Filter(4) A(0) C(19) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT first_name , department_id FROM employees WHERE last_name = 'McEwen'", "query_toks": [ "SELECT", "first_name", ",", "department_id", "FROM", "employees", "WHERE", "last_name", "=", "'McEwen", "'" ], "query_toks_no_value": [ "select", "first_name", ",", "department_id", "from", "employees", "where", "last_name", "=", "value" ], "question": "Display the first name, and department number for all employees whose last name is \"McEwen\".", "question_toks": [ "display", "first", "name", ",", "and", "department", "number", "for", "all", "employee", "whose", "last", "name", "is", "'", "mcewen", "'", "." ], "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 ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"McEwen\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Display", "the", "first", "name", ",", "and", "department", "number", "for", "all", "employees", "whose", "last", "name", "is", "``", "McEwen", "''", "." ], "question_arg": [ [ "display" ], [ "first", "name" ], [ "," ], [ "and" ], [ "department" ], [ "number" ], [ "for" ], [ "all" ], [ "employee" ], [ "whose" ], [ "last", "name" ], [ "is" ], [ "'" ], [ "mcewen" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "department", "NN" ], [ "number", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "whose", "WP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "mcewen", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "1", "McEwen" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(4) A(0) C(5) T(4) Filter(2) A(0) C(15) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT first_name , department_id FROM employees WHERE last_name = 'McEwen'", "query_toks": [ "SELECT", "first_name", ",", "department_id", "FROM", "employees", "WHERE", "last_name", "=", "'McEwen", "'" ], "query_toks_no_value": [ "select", "first_name", ",", "department_id", "from", "employees", "where", "last_name", "=", "value" ], "question": "What are the first names and department numbers for employees with last name McEwen?", "question_toks": [ "what", "are", "first", "name", "and", "department", "number", "for", "employee", "with", "last", "name", "mcewen", "?" ], "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 ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"McEwen\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "and", "department", "numbers", "for", "employees", "with", "last", "name", "McEwen", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "and" ], [ "department" ], [ "number" ], [ "for" ], [ "employee" ], [ "with" ], [ "last", "name" ], [ "mcewen" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "department", "NN" ], [ "number", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "mcewen", "NN" ], [ "?", "." ] ], "values": [ "1", "McEwen", "AMCEWEN", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(4) A(0) C(5) T(4) Filter(2) A(0) C(15) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT * FROM employees WHERE department_id = \"null\"", "query_toks": [ "SELECT", "*", "FROM", "employees", "WHERE", "department_id", "=", "``", "null", "''" ], "query_toks_no_value": [ "select", "*", "from", "employees", "where", "department_id", "=", "value" ], "question": "Return all the information for all employees without any department number.", "question_toks": [ "return", "all", "information", "for", "all", "employee", "without", "any", "department", "number", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"null\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Return", "all", "the", "information", "for", "all", "employees", "without", "any", "department", "number", "." ], "question_arg": [ [ "return" ], [ "all" ], [ "information" ], [ "for" ], [ "all" ], [ "employee" ], [ "without" ], [ "any" ], [ "department" ], [ "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "all", "DT" ], [ "information", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "without", "IN" ], [ "any", "DT" ], [ "department", "NN" ], [ "number", "NN" ], [ ".", "." ] ], "values": [ "null" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(4) Filter(2) A(0) C(5) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT * FROM employees WHERE department_id = \"null\"", "query_toks": [ "SELECT", "*", "FROM", "employees", "WHERE", "department_id", "=", "``", "null", "''" ], "query_toks_no_value": [ "select", "*", "from", "employees", "where", "department_id", "=", "value" ], "question": "What are all the employees without a department number?", "question_toks": [ "what", "are", "all", "employee", "without", "a", "department", "number", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"null\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "all", "the", "employees", "without", "a", "department", "number", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "employee" ], [ "without" ], [ "a" ], [ "department" ], [ "number" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "employee", "NN" ], [ "without", "IN" ], [ "a", "DT" ], [ "department", "NN" ], [ "number", "NN" ], [ "?", "." ] ], "values": [ "null" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(4) Filter(2) A(0) C(5) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT * FROM departments WHERE department_name = 'Marketing'", "query_toks": [ "SELECT", "*", "FROM", "departments", "WHERE", "department_name", "=", "'Marketing", "'" ], "query_toks_no_value": [ "select", "*", "from", "departments", "where", "department_name", "=", "value" ], "question": "Display all the information about the department Marketing.", "question_toks": [ "display", "all", "information", "about", "department", "marketing", "." ], "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, 7, false ], null ], "\"Marketing\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Display", "all", "the", "information", "about", "the", "department", "Marketing", "." ], "question_arg": [ [ "display" ], [ "all" ], [ "information" ], [ "about" ], [ "department" ], [ "marketing" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "VB" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "department", "NN" ], [ "marketing", "NN" ], [ ".", "." ] ], "values": [ "Marketing" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(2) Filter(2) A(0) C(6) T(2) V(0)" }, { "db_id": "hr_1", "query": "SELECT * FROM departments WHERE department_name = 'Marketing'", "query_toks": [ "SELECT", "*", "FROM", "departments", "WHERE", "department_name", "=", "'Marketing", "'" ], "query_toks_no_value": [ "select", "*", "from", "departments", "where", "department_name", "=", "value" ], "question": "What is all the information about the Marketing department?", "question_toks": [ "what", "is", "all", "information", "about", "marketing", "department", "?" ], "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, 7, false ], null ], "\"Marketing\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "is", "all", "the", "information", "about", "the", "Marketing", "department", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "all" ], [ "information" ], [ "about" ], [ "marketing" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "marketing", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Marketing" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(2) Filter(2) A(0) C(6) T(2) V(0)" }, { "db_id": "hr_1", "query": "SELECT hire_date FROM employees WHERE first_name NOT LIKE '%M%'", "query_toks": [ "SELECT", "hire_date", "FROM", "employees", "WHERE", "first_name", "NOT", "LIKE", "'", "%", "M", "%", "'" ], "query_toks_no_value": [ "select", "hire_date", "from", "employees", "where", "first_name", "not", "like", "value" ], "question": "when is the hire date for those employees whose first name does not containing the letter M?", "question_toks": [ "when", "is", "hire", "date", "for", "those", "employee", "whose", "first", "name", "doe", "not", "containing", "letter", "m", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ true, 9, [ 0, [ 0, 15, false ], null ], "\"%M%\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "when", "is", "the", "hire", "date", "for", "those", "employees", "whose", "first", "name", "does", "not", "containing", "the", "letter", "M", "?" ], "question_arg": [ [ "when" ], [ "is" ], [ "hire", "date" ], [ "for" ], [ "those" ], [ "employee" ], [ "whose" ], [ "first", "name" ], [ "doe" ], [ "not" ], [ "containing" ], [ "letter" ], [ "m" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "is", "VBZ" ], [ "hire", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "whose", "WP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "doe", "NN" ], [ "not", "RB" ], [ "containing", "VBG" ], [ "letter", "NN" ], [ "m", "NN" ], [ "?", "." ] ], "values": [ "1", "M" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(4) Filter(10) A(0) C(14) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT hire_date FROM employees WHERE first_name NOT LIKE '%M%'", "query_toks": [ "SELECT", "hire_date", "FROM", "employees", "WHERE", "first_name", "NOT", "LIKE", "'", "%", "M", "%", "'" ], "query_toks_no_value": [ "select", "hire_date", "from", "employees", "where", "first_name", "not", "like", "value" ], "question": "On what dates were employees without the letter M in their first names hired?", "question_toks": [ "on", "what", "date", "were", "employee", "without", "letter", "m", "in", "their", "first", "name", "hired", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ true, 9, [ 0, [ 0, 15, false ], null ], "\"%M%\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "On", "what", "dates", "were", "employees", "without", "the", "letter", "M", "in", "their", "first", "names", "hired", "?" ], "question_arg": [ [ "on" ], [ "what" ], [ "date" ], [ "were" ], [ "employee" ], [ "without" ], [ "letter" ], [ "m" ], [ "in" ], [ "their" ], [ "first", "name" ], [ "hired" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "on", "IN" ], [ "what", "WP" ], [ "date", "NN" ], [ "were", "VBD" ], [ "employee", "NN" ], [ "without", "IN" ], [ "letter", "NN" ], [ "m", "NN" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "hired", "VBN" ], [ "?", "." ] ], "values": [ "1", "M", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(4) Filter(10) A(0) C(14) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , hire_date , salary , department_id FROM employees WHERE first_name NOT LIKE '%M%'", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees", "WHERE", "first_name", "NOT", "LIKE", "'", "%", "M", "%", "'" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees", "where", "first_name", "not", "like", "value" ], "question": "display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M.", "question_toks": [ "display", "full", "name", "(", "first", "and", "last", ")", ",", "hire", "date", ",", "salary", ",", "and", "department", "number", "for", "those", "employee", "whose", "first", "name", "doe", "not", "containing", "letter", "m", "." ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ true, 9, [ 0, [ 0, 15, false ], null ], "\"%M%\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "full", "name", "(", "first", "and", "last", ")", ",", "hire", "date", ",", "salary", ",", "and", "department", "number", "for", "those", "employees", "whose", "first", "name", "does", "not", "containing", "the", "letter", "M", "." ], "question_arg": [ [ "display" ], [ "full" ], [ "name" ], [ "(" ], [ "first" ], [ "and" ], [ "last" ], [ ")" ], [ "," ], [ "hire", "date" ], [ "," ], [ "salary" ], [ "," ], [ "and" ], [ "department" ], [ "number" ], [ "for" ], [ "those" ], [ "employee" ], [ "whose" ], [ "first", "name" ], [ "doe" ], [ "not" ], [ "containing" ], [ "letter" ], [ "m" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "full", "JJ" ], [ "name", "NN" ], [ "(", "(" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ ")", ")" ], [ ",", "," ], [ "hire", "NN" ], [ "date", "NN" ], [ ",", "," ], [ "salary", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "department", "NN" ], [ "number", "NN" ], [ "for", "IN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "whose", "WP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "doe", "NN" ], [ "not", "RB" ], [ "containing", "VBG" ], [ "letter", "NN" ], [ "m", "NN" ], [ ".", "." ] ], "values": [ "1", "M" ], "rule_label": "Root1(3) Root(3) Sel(0) N(4) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(18) T(4) A(0) C(19) T(4) A(0) C(5) T(4) Filter(10) A(0) C(14) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , hire_date , salary , department_id FROM employees WHERE first_name NOT LIKE '%M%'", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees", "WHERE", "first_name", "NOT", "LIKE", "'", "%", "M", "%", "'" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees", "where", "first_name", "not", "like", "value" ], "question": "What are the full name, hire date, salary, and department id for employees without the letter M in their first name?", "question_toks": [ "what", "are", "full", "name", ",", "hire", "date", ",", "salary", ",", "and", "department", "id", "for", "employee", "without", "letter", "m", "in", "their", "first", "name", "?" ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ true, 9, [ 0, [ 0, 15, false ], null ], "\"%M%\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "full", "name", ",", "hire", "date", ",", "salary", ",", "and", "department", "id", "for", "employees", "without", "the", "letter", "M", "in", "their", "first", "name", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "," ], [ "hire", "date" ], [ "," ], [ "salary" ], [ "," ], [ "and" ], [ "department", "id" ], [ "for" ], [ "employee" ], [ "without" ], [ "letter" ], [ "m" ], [ "in" ], [ "their" ], [ "first", "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "hire", "NN" ], [ "date", "NN" ], [ ",", "," ], [ "salary", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "department", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "without", "IN" ], [ "letter", "NN" ], [ "m", "NN" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "1", "M" ], "rule_label": "Root1(3) Root(3) Sel(0) N(4) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(18) T(4) A(0) C(19) T(4) A(0) C(5) T(4) Filter(10) A(0) C(14) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , hire_date , salary , department_id FROM employees WHERE first_name NOT LIKE '%M%' ORDER BY department_id", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees", "WHERE", "first_name", "NOT", "LIKE", "'", "%", "M", "%", "'", "ORDER", "BY", "department_id" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees", "where", "first_name", "not", "like", "value", "order", "by", "department_id" ], "question": "display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M and make the result set in ascending order by department number.", "question_toks": [ "display", "full", "name", "(", "first", "and", "last", ")", ",", "hire", "date", ",", "salary", ",", "and", "department", "number", "for", "those", "employee", "whose", "first", "name", "doe", "not", "containing", "letter", "m", "and", "make", "result", "set", "in", "ascending", "order", "by", "department", "number", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 24, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ true, 9, [ 0, [ 0, 15, false ], null ], "\"%M%\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "full", "name", "(", "first", "and", "last", ")", ",", "hire", "date", ",", "salary", ",", "and", "department", "number", "for", "those", "employees", "whose", "first", "name", "does", "not", "containing", "the", "letter", "M", "and", "make", "the", "result", "set", "in", "ascending", "order", "by", "department", "number", "." ], "question_arg": [ [ "display" ], [ "full" ], [ "name" ], [ "(" ], [ "first" ], [ "and" ], [ "last" ], [ ")" ], [ "," ], [ "hire", "date" ], [ "," ], [ "salary" ], [ "," ], [ "and" ], [ "department" ], [ "number" ], [ "for" ], [ "those" ], [ "employee" ], [ "whose" ], [ "first", "name" ], [ "doe" ], [ "not" ], [ "containing" ], [ "letter" ], [ "m" ], [ "and" ], [ "make" ], [ "result" ], [ "set" ], [ "in" ], [ "ascending" ], [ "order" ], [ "by" ], [ "department" ], [ "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "full", "JJ" ], [ "name", "NN" ], [ "(", "(" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ ")", ")" ], [ ",", "," ], [ "hire", "NN" ], [ "date", "NN" ], [ ",", "," ], [ "salary", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "department", "NN" ], [ "number", "NN" ], [ "for", "IN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "whose", "WP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "doe", "NN" ], [ "not", "RB" ], [ "containing", "VBG" ], [ "letter", "NN" ], [ "m", "NN" ], [ "and", "CC" ], [ "make", "VB" ], [ "result", "NN" ], [ "set", "VBN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "by", "IN" ], [ "department", "NN" ], [ "number", "NN" ], [ ".", "." ] ], "values": [ "1", "M" ], "rule_label": "Root1(3) Root(1) Sel(0) N(4) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(18) T(4) A(0) C(19) T(4) A(0) C(5) T(4) Filter(10) A(0) C(14) T(4) V(1) Order(1) A(0) C(5) T(4)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , hire_date , salary , department_id FROM employees WHERE first_name NOT LIKE '%M%' ORDER BY department_id", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees", "WHERE", "first_name", "NOT", "LIKE", "'", "%", "M", "%", "'", "ORDER", "BY", "department_id" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees", "where", "first_name", "not", "like", "value", "order", "by", "department_id" ], "question": "What are the full name, hire data, salary and department id for employees without the letter M in their first name, ordered by ascending department id?", "question_toks": [ "what", "are", "full", "name", ",", "hire", "data", ",", "salary", "and", "department", "id", "for", "employee", "without", "letter", "m", "in", "their", "first", "name", ",", "ordered", "by", "ascending", "department", "id", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 24, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ true, 9, [ 0, [ 0, 15, false ], null ], "\"%M%\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "full", "name", ",", "hire", "data", ",", "salary", "and", "department", "id", "for", "employees", "without", "the", "letter", "M", "in", "their", "first", "name", ",", "ordered", "by", "ascending", "department", "id", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "," ], [ "hire" ], [ "data" ], [ "," ], [ "salary" ], [ "and" ], [ "department", "id" ], [ "for" ], [ "employee" ], [ "without" ], [ "letter" ], [ "m" ], [ "in" ], [ "their" ], [ "first", "name" ], [ "," ], [ "ordered" ], [ "by" ], [ "ascending" ], [ "department", "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "hire", "NN" ], [ "data", "NNS" ], [ ",", "," ], [ "salary", "JJ" ], [ "and", "CC" ], [ "department", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "without", "IN" ], [ "letter", "NN" ], [ "m", "NN" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "ascending", "VBG" ], [ "department", "NN" ], [ "id", "NN" ], [ "?", "." ] ], "values": [ "1", "M" ], "rule_label": "Root1(3) Root(1) Sel(0) N(4) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(18) T(4) A(0) C(19) T(4) A(0) C(5) T(4) Filter(10) A(0) C(14) T(4) V(1) Order(1) A(0) C(5) T(4)" }, { "db_id": "hr_1", "query": "SELECT phone_number FROM employees WHERE salary BETWEEN 8000 AND 12000", "query_toks": [ "SELECT", "phone_number", "FROM", "employees", "WHERE", "salary", "BETWEEN", "8000", "AND", "12000" ], "query_toks_no_value": [ "select", "phone_number", "from", "employees", "where", "salary", "between", "value", "and", "value" ], "question": "what is the phone number of employees whose salary is in the range of 8000 and 12000?", "question_toks": [ "what", "is", "phone", "number", "of", "employee", "whose", "salary", "is", "in", "range", "of", "8000", "and", "12000", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 21, false ], null ], 8000.0, 12000.0 ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "what", "is", "the", "phone", "number", "of", "employees", "whose", "salary", "is", "in", "the", "range", "of", "8000", "and", "12000", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "phone", "number" ], [ "of" ], [ "employee" ], [ "whose" ], [ "salary" ], [ "is" ], [ "in" ], [ "range" ], [ "of" ], [ "8000" ], [ "and" ], [ "12000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "whose", "WP$" ], [ "salary", "NN" ], [ "is", "VBZ" ], [ "in", "IN" ], [ "range", "NN" ], [ "of", "IN" ], [ "8000", "CD" ], [ "and", "CC" ], [ "12000", "CD" ], [ "?", "." ] ], "values": [ "8000", "12000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(17) T(4) Filter(8) A(0) C(19) T(4) V(0) V(1)" }, { "db_id": "hr_1", "query": "SELECT phone_number FROM employees WHERE salary BETWEEN 8000 AND 12000", "query_toks": [ "SELECT", "phone_number", "FROM", "employees", "WHERE", "salary", "BETWEEN", "8000", "AND", "12000" ], "query_toks_no_value": [ "select", "phone_number", "from", "employees", "where", "salary", "between", "value", "and", "value" ], "question": "Return the phone numbers of employees with salaries between 8000 and 12000.", "question_toks": [ "return", "phone", "number", "of", "employee", "with", "salary", "between", "8000", "and", "12000", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 21, false ], null ], 8000.0, 12000.0 ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Return", "the", "phone", "numbers", "of", "employees", "with", "salaries", "between", "8000", "and", "12000", "." ], "question_arg": [ [ "return" ], [ "phone", "number" ], [ "of" ], [ "employee" ], [ "with" ], [ "salary" ], [ "between" ], [ "8000" ], [ "and" ], [ "12000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "with", "IN" ], [ "salary", "NN" ], [ "between", "IN" ], [ "8000", "CD" ], [ "and", "CC" ], [ "12000", "CD" ], [ ".", "." ] ], "values": [ "8000", "12000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(17) T(4) Filter(8) A(0) C(19) T(4) V(0) V(1)" }, { "db_id": "hr_1", "query": "SELECT * FROM employees WHERE salary BETWEEN 8000 AND 12000 AND commission_pct != \"null\" OR department_id != 40", "query_toks": [ "SELECT", "*", "FROM", "employees", "WHERE", "salary", "BETWEEN", "8000", "AND", "12000", "AND", "commission_pct", "!", "=", "``", "null", "''", "OR", "department_id", "!", "=", "40" ], "query_toks_no_value": [ "select", "*", "from", "employees", "where", "salary", "between", "value", "and", "value", "and", "commission_pct", "!", "=", "value", "or", "department_id", "!", "=", "value" ], "question": "display all the information of employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40.", "question_toks": [ "display", "all", "information", "of", "employee", "whose", "salary", "is", "in", "range", "of", "8000", "and", "12000", "and", "commission", "is", "not", "null", "or", "department", "number", "doe", "not", "equal", "to", "40", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 21, false ], null ], 8000.0, 12000.0 ], "and", [ false, 7, [ 0, [ 0, 22, false ], null ], "\"null\"", null ], "or", [ false, 7, [ 0, [ 0, 24, false ], null ], 40.0, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "all", "the", "information", "of", "employees", "whose", "salary", "is", "in", "the", "range", "of", "8000", "and", "12000", "and", "commission", "is", "not", "null", "or", "department", "number", "does", "not", "equal", "to", "40", "." ], "question_arg": [ [ "display" ], [ "all" ], [ "information" ], [ "of" ], [ "employee" ], [ "whose" ], [ "salary" ], [ "is" ], [ "in" ], [ "range" ], [ "of" ], [ "8000" ], [ "and" ], [ "12000" ], [ "and" ], [ "commission" ], [ "is" ], [ "not" ], [ "null" ], [ "or" ], [ "department" ], [ "number" ], [ "doe" ], [ "not" ], [ "equal" ], [ "to" ], [ "40" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "VB" ], [ "all", "DT" ], [ "information", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "whose", "WP$" ], [ "salary", "NN" ], [ "is", "VBZ" ], [ "in", "IN" ], [ "range", "NN" ], [ "of", "IN" ], [ "8000", "CD" ], [ "and", "CC" ], [ "12000", "CD" ], [ "and", "CC" ], [ "commission", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "null", "JJ" ], [ "or", "CC" ], [ "department", "NN" ], [ "number", "NN" ], [ "doe", "IN" ], [ "not", "RB" ], [ "equal", "JJ" ], [ "to", "TO" ], [ "40", "CD" ], [ ".", "." ] ], "values": [ "null", "40", "8000", "12000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(4) Filter(0) Filter(8) A(0) C(19) T(4) V(2) V(3) Filter(1) Filter(3) A(0) C(20) T(4) V(0) Filter(3) A(0) C(5) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT * FROM employees WHERE salary BETWEEN 8000 AND 12000 AND commission_pct != \"null\" OR department_id != 40", "query_toks": [ "SELECT", "*", "FROM", "employees", "WHERE", "salary", "BETWEEN", "8000", "AND", "12000", "AND", "commission_pct", "!", "=", "``", "null", "''", "OR", "department_id", "!", "=", "40" ], "query_toks_no_value": [ "select", "*", "from", "employees", "where", "salary", "between", "value", "and", "value", "and", "commission_pct", "!", "=", "value", "or", "department_id", "!", "=", "value" ], "question": "Return all information about employees with salaries between 8000 and 12000 for which commission is not null or where their department id is not 40.", "question_toks": [ "return", "all", "information", "about", "employee", "with", "salary", "between", "8000", "and", "12000", "for", "which", "commission", "is", "not", "null", "or", "where", "their", "department", "id", "is", "not", "40", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 21, false ], null ], 8000.0, 12000.0 ], "and", [ false, 7, [ 0, [ 0, 22, false ], null ], "\"null\"", null ], "or", [ false, 7, [ 0, [ 0, 24, false ], null ], 40.0, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Return", "all", "information", "about", "employees", "with", "salaries", "between", "8000", "and", "12000", "for", "which", "commission", "is", "not", "null", "or", "where", "their", "department", "id", "is", "not", "40", "." ], "question_arg": [ [ "return" ], [ "all" ], [ "information" ], [ "about" ], [ "employee" ], [ "with" ], [ "salary" ], [ "between" ], [ "8000" ], [ "and" ], [ "12000" ], [ "for" ], [ "which" ], [ "commission" ], [ "is" ], [ "not" ], [ "null" ], [ "or" ], [ "where" ], [ "their" ], [ "department", "id" ], [ "is" ], [ "not" ], [ "40" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "employee", "NN" ], [ "with", "IN" ], [ "salary", "NN" ], [ "between", "IN" ], [ "8000", "CD" ], [ "and", "CC" ], [ "12000", "CD" ], [ "for", "IN" ], [ "which", "WDT" ], [ "commission", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "null", "JJ" ], [ "or", "CC" ], [ "where", "WRB" ], [ "their", "PRP$" ], [ "department", "NN" ], [ "id", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "40", "CD" ], [ ".", "." ] ], "values": [ "40", "12000", "8000", "null" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(4) Filter(0) Filter(8) A(0) C(19) T(4) V(2) V(1) Filter(1) Filter(3) A(0) C(20) T(4) V(3) Filter(3) A(0) C(5) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , salary FROM employees WHERE commission_pct = \"null\"", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "salary", "FROM", "employees", "WHERE", "commission_pct", "=", "``", "null", "''" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "salary", "from", "employees", "where", "commission_pct", "=", "value" ], "question": "What are the full name (first and last name) and salary for all employees who does not have any value for commission?", "question_toks": [ "what", "are", "full", "name", "(", "first", "and", "last", "name", ")", "and", "salary", "for", "all", "employee", "who", "doe", "not", "have", "any", "value", "for", "commission", "?" ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"null\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "full", "name", "(", "first", "and", "last", "name", ")", "and", "salary", "for", "all", "employees", "who", "does", "not", "have", "any", "value", "for", "commission", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "(" ], [ "first" ], [ "and" ], [ "last", "name" ], [ ")" ], [ "and" ], [ "salary" ], [ "for" ], [ "all" ], [ "employee" ], [ "who" ], [ "doe" ], [ "not" ], [ "have" ], [ "any" ], [ "value" ], [ "for" ], [ "commission" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "(", "(" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ")", ")" ], [ "and", "CC" ], [ "salary", "JJ" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "doe", "VBZ" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "value", "NN" ], [ "for", "IN" ], [ "commission", "NN" ], [ "?", "." ] ], "values": [ "1", "null" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(19) T(4) Filter(2) A(0) C(20) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , salary FROM employees WHERE commission_pct = \"null\"", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "salary", "FROM", "employees", "WHERE", "commission_pct", "=", "``", "null", "''" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "salary", "from", "employees", "where", "commission_pct", "=", "value" ], "question": "Return the full names and salaries of employees with null commissions.", "question_toks": [ "return", "full", "name", "and", "salary", "of", "employee", "with", "null", "commission", "." ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"null\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Return", "the", "full", "names", "and", "salaries", "of", "employees", "with", "null", "commissions", "." ], "question_arg": [ [ "return" ], [ "full" ], [ "name" ], [ "and" ], [ "salary" ], [ "of" ], [ "employee" ], [ "with" ], [ "null" ], [ "commission" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "salary", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "with", "IN" ], [ "null", "JJ" ], [ "commission", "NN" ], [ ".", "." ] ], "values": [ "James", "null" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(19) T(4) Filter(2) A(0) C(20) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , salary FROM employees WHERE first_name LIKE '%m'", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "salary", "FROM", "employees", "WHERE", "first_name", "LIKE", "'", "%", "m", "'" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "salary", "from", "employees", "where", "first_name", "like", "value" ], "question": "Display the first and last name, and salary for those employees whose first name is ending with the letter m.", "question_toks": [ "display", "first", "and", "last", "name", ",", "and", "salary", "for", "those", "employee", "whose", "first", "name", "is", "ending", "with", "letter", "m", "." ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%m\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Display", "the", "first", "and", "last", "name", ",", "and", "salary", "for", "those", "employees", "whose", "first", "name", "is", "ending", "with", "the", "letter", "m", "." ], "question_arg": [ [ "display" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "," ], [ "and" ], [ "salary" ], [ "for" ], [ "those" ], [ "employee" ], [ "whose" ], [ "first", "name" ], [ "is" ], [ "ending" ], [ "with" ], [ "letter" ], [ "m" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "salary", "JJ" ], [ "for", "IN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "whose", "WP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "ending", "VBG" ], [ "with", "IN" ], [ "letter", "NN" ], [ "m", "NN" ], [ ".", "." ] ], "values": [ "1", "m" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(19) T(4) Filter(9) A(0) C(14) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , salary FROM employees WHERE first_name LIKE '%m'", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "salary", "FROM", "employees", "WHERE", "first_name", "LIKE", "'", "%", "m", "'" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "salary", "from", "employees", "where", "first_name", "like", "value" ], "question": "Return the full names and salaries for employees with first names that end with the letter m.", "question_toks": [ "return", "full", "name", "and", "salary", "for", "employee", "with", "first", "name", "that", "end", "with", "letter", "m", "." ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%m\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Return", "the", "full", "names", "and", "salaries", "for", "employees", "with", "first", "names", "that", "end", "with", "the", "letter", "m", "." ], "question_arg": [ [ "return" ], [ "full" ], [ "name" ], [ "and" ], [ "salary" ], [ "for" ], [ "employee" ], [ "with" ], [ "first", "name" ], [ "that" ], [ "end" ], [ "with" ], [ "letter" ], [ "m" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "salary", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "that", "WDT" ], [ "end", "VBP" ], [ "with", "IN" ], [ "letter", "NN" ], [ "m", "NN" ], [ ".", "." ] ], "values": [ "m", "1", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(19) T(4) Filter(9) A(0) C(14) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT job_id , hire_date FROM employees WHERE hire_date BETWEEN '2007-11-05' AND '2009-07-05'", "query_toks": [ "SELECT", "job_id", ",", "hire_date", "FROM", "employees", "WHERE", "hire_date", "BETWEEN", "'2007-11-05", "'", "AND", "'2009-07-05", "'" ], "query_toks_no_value": [ "select", "job_id", ",", "hire_date", "from", "employees", "where", "hire_date", "between", "value", "and", "value" ], "question": "Find job id and date of hire for those employees who was hired between November 5th, 2007 and July 5th, 2009.", "question_toks": [ "find", "job", "id", "and", "date", "of", "hire", "for", "those", "employee", "who", "wa", "hired", "between", "november", "5th", ",", "year", "and", "july", "5th", ",", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 19, false ], null ], "\"2007-11-05\"", "\"2009-07-05\"" ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Find", "job", "id", "and", "date", "of", "hire", "for", "those", "employees", "who", "was", "hired", "between", "November", "5th", ",", "2007", "and", "July", "5th", ",", "2009", "." ], "question_arg": [ [ "find" ], [ "job", "id" ], [ "and" ], [ "date" ], [ "of" ], [ "hire" ], [ "for" ], [ "those" ], [ "employee" ], [ "who" ], [ "wa" ], [ "hired" ], [ "between" ], [ "november" ], [ "5th" ], [ "," ], [ "year" ], [ "and" ], [ "july" ], [ "5th" ], [ "," ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "job", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "hire", "NN" ], [ "for", "IN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "wa", "VBZ" ], [ "hired", "VBD" ], [ "between", "IN" ], [ "november", "JJ" ], [ "5th", "CD" ], [ ",", "," ], [ "2007", "CD" ], [ "and", "CC" ], [ "july", "RB" ], [ "5th", "CD" ], [ ",", "," ], [ "2009", "CD" ], [ ".", "." ] ], "values": [ "November 5th, 2007", "July 5th, 2009", "11/", "2007-11-05", "2009", "2007", "2009-07-05", "7/", "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(4) A(0) C(18) T(4) Filter(8) A(0) C(18) T(4) V(3) V(6)" }, { "db_id": "hr_1", "query": "SELECT job_id , hire_date FROM employees WHERE hire_date BETWEEN '2007-11-05' AND '2009-07-05'", "query_toks": [ "SELECT", "job_id", ",", "hire_date", "FROM", "employees", "WHERE", "hire_date", "BETWEEN", "'2007-11-05", "'", "AND", "'2009-07-05", "'" ], "query_toks_no_value": [ "select", "job_id", ",", "hire_date", "from", "employees", "where", "hire_date", "between", "value", "and", "value" ], "question": "What are the job ids and dates of hire for employees hired after November 5th, 2007 and before July 5th, 2009?", "question_toks": [ "what", "are", "job", "id", "and", "date", "of", "hire", "for", "employee", "hired", "after", "november", "5th", ",", "year", "and", "before", "july", "5th", ",", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 19, false ], null ], "\"2007-11-05\"", "\"2009-07-05\"" ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "job", "ids", "and", "dates", "of", "hire", "for", "employees", "hired", "after", "November", "5th", ",", "2007", "and", "before", "July", "5th", ",", "2009", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "job", "id" ], [ "and" ], [ "date" ], [ "of" ], [ "hire" ], [ "for" ], [ "employee" ], [ "hired" ], [ "after" ], [ "november" ], [ "5th" ], [ "," ], [ "year" ], [ "and" ], [ "before" ], [ "july" ], [ "5th" ], [ "," ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "job", "NN" ], [ "id", "NNS" ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "hire", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "hired", "VBN" ], [ "after", "IN" ], [ "november", "JJ" ], [ "5th", "CD" ], [ ",", "," ], [ "2007", "CD" ], [ "and", "CC" ], [ "before", "IN" ], [ "july", "NN" ], [ "5th", "CD" ], [ ",", "," ], [ "2009", "CD" ], [ "?", "." ] ], "values": [ "November 5th, 2007", "July 5th, 2009", "11/", "Bates", "2007-11-05", "2009", "2007", "Gates", "2009-07-05", "7/", "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(4) A(0) C(18) T(4) Filter(8) A(0) C(18) T(4) V(4) V(8)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name FROM employees WHERE department_id = 70 OR department_id = 90", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "employees", "WHERE", "department_id", "=", "70", "OR", "department_id", "=", "90" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "employees", "where", "department_id", "=", "value", "or", "department_id", "=", "value" ], "question": "What are the first and last name for those employees who works either in department 70 or 90?", "question_toks": [ "what", "are", "first", "and", "last", "name", "for", "those", "employee", "who", "work", "either", "in", "department", "70", "or", "90", "?" ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], 70.0, null ], "or", [ false, 2, [ 0, [ 0, 24, false ], null ], 90.0, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "name", "for", "those", "employees", "who", "works", "either", "in", "department", "70", "or", "90", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "for" ], [ "those" ], [ "employee" ], [ "who" ], [ "work" ], [ "either" ], [ "in" ], [ "department" ], [ "70" ], [ "or" ], [ "90" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "work", "VBP" ], [ "either", "RB" ], [ "in", "IN" ], [ "department", "NN" ], [ "70", "CD" ], [ "or", "CC" ], [ "90", "CD" ], [ "?", "." ] ], "values": [ "70", "1", "90" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(4) A(0) C(15) T(4) Filter(1) Filter(2) A(0) C(5) T(4) V(0) Filter(2) A(0) C(5) T(4) V(2)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name FROM employees WHERE department_id = 70 OR department_id = 90", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "employees", "WHERE", "department_id", "=", "70", "OR", "department_id", "=", "90" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "employees", "where", "department_id", "=", "value", "or", "department_id", "=", "value" ], "question": "What are the full names of employees who with in department 70 or 90?", "question_toks": [ "what", "are", "full", "name", "of", "employee", "who", "with", "in", "department", "70", "or", "90", "?" ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], 70.0, null ], "or", [ false, 2, [ 0, [ 0, 24, false ], null ], 90.0, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "full", "names", "of", "employees", "who", "with", "in", "department", "70", "or", "90", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "of" ], [ "employee" ], [ "who" ], [ "with" ], [ "in" ], [ "department" ], [ "70" ], [ "or" ], [ "90" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "with", "IN" ], [ "in", "IN" ], [ "department", "NN" ], [ "70", "CD" ], [ "or", "CC" ], [ "90", "CD" ], [ "?", "." ] ], "values": [ "James", "90", "70" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(4) A(0) C(15) T(4) Filter(1) Filter(2) A(0) C(5) T(4) V(2) Filter(2) A(0) C(5) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT salary , manager_id FROM employees WHERE manager_id != \"null\"", "query_toks": [ "SELECT", "salary", ",", "manager_id", "FROM", "employees", "WHERE", "manager_id", "!", "=", "``", "null", "''" ], "query_toks_no_value": [ "select", "salary", ",", "manager_id", "from", "employees", "where", "manager_id", "!", "=", "value" ], "question": "Find the salary and manager number for those employees who is working under a manager.", "question_toks": [ "find", "salary", "and", "manager", "number", "for", "those", "employee", "who", "is", "working", "under", "a", "manager", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 23, false ], null ], "\"null\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Find", "the", "salary", "and", "manager", "number", "for", "those", "employees", "who", "is", "working", "under", "a", "manager", "." ], "question_arg": [ [ "find" ], [ "salary" ], [ "and" ], [ "manager" ], [ "number" ], [ "for" ], [ "those" ], [ "employee" ], [ "who" ], [ "is" ], [ "working" ], [ "under" ], [ "a" ], [ "manager" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "salary", "JJ" ], [ "and", "CC" ], [ "manager", "NN" ], [ "number", "NN" ], [ "for", "IN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "working", "VBG" ], [ "under", "IN" ], [ "a", "DT" ], [ "manager", "NN" ], [ ".", "." ] ], "values": [ "null" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(4) A(0) C(7) T(4) Filter(3) A(0) C(7) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT salary , manager_id FROM employees WHERE manager_id != \"null\"", "query_toks": [ "SELECT", "salary", ",", "manager_id", "FROM", "employees", "WHERE", "manager_id", "!", "=", "``", "null", "''" ], "query_toks_no_value": [ "select", "salary", ",", "manager_id", "from", "employees", "where", "manager_id", "!", "=", "value" ], "question": "What are the salaries and manager ids for employees who have managers?", "question_toks": [ "what", "are", "salary", "and", "manager", "id", "for", "employee", "who", "have", "manager", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 23, false ], null ], "\"null\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "salaries", "and", "manager", "ids", "for", "employees", "who", "have", "managers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "salary" ], [ "and" ], [ "manager", "id" ], [ "for" ], [ "employee" ], [ "who" ], [ "have" ], [ "manager" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "salary", "JJ" ], [ "and", "CC" ], [ "manager", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "manager", "NN" ], [ "?", "." ] ], "values": [ "null" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(4) A(0) C(7) T(4) Filter(3) A(0) C(7) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT * FROM employees WHERE hire_date < '2002-06-21'", "query_toks": [ "SELECT", "*", "FROM", "employees", "WHERE", "hire_date", "<", "'2002-06-21", "'" ], "query_toks_no_value": [ "select", "*", "from", "employees", "where", "hire_date", "<", "value" ], "question": "display all the details from Employees table for those employees who was hired before 2002-06-21.", "question_toks": [ "display", "all", "detail", "from", "employee", "table", "for", "those", "employee", "who", "wa", "hired", "before", "2002-06-21", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 19, false ], null ], "\"2002-06-21\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "all", "the", "details", "from", "Employees", "table", "for", "those", "employees", "who", "was", "hired", "before", "2002-06-21", "." ], "question_arg": [ [ "display" ], [ "all" ], [ "detail" ], [ "from" ], [ "employee" ], [ "table" ], [ "for" ], [ "those" ], [ "employee" ], [ "who" ], [ "wa" ], [ "hired" ], [ "before" ], [ "2002-06-21" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "all", "DT" ], [ "detail", "NN" ], [ "from", "IN" ], [ "employee", "NN" ], [ "table", "NN" ], [ "for", "IN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "wa", "VBP" ], [ "hired", "VBN" ], [ "before", "IN" ], [ "2002-06-21", "JJ" ], [ ".", "." ] ], "values": [ "21", "2002-06-21", "6", "2002" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(4) Filter(4) A(0) C(18) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT * FROM employees WHERE hire_date < '2002-06-21'", "query_toks": [ "SELECT", "*", "FROM", "employees", "WHERE", "hire_date", "<", "'2002-06-21", "'" ], "query_toks_no_value": [ "select", "*", "from", "employees", "where", "hire_date", "<", "value" ], "question": "What is all the information about employees hired before June 21, 2002?", "question_toks": [ "what", "is", "all", "information", "about", "employee", "hired", "before", "june", "21", ",", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 19, false ], null ], "\"2002-06-21\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "is", "all", "the", "information", "about", "employees", "hired", "before", "June", "21", ",", "2002", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "all" ], [ "information" ], [ "about" ], [ "employee" ], [ "hired" ], [ "before" ], [ "june" ], [ "21" ], [ "," ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "employee", "NN" ], [ "hired", "VBN" ], [ "before", "IN" ], [ "june", "NN" ], [ "21", "CD" ], [ ",", "," ], [ "2002", "CD" ], [ "?", "." ] ], "values": [ "June 21, 2002", "6/", "2002", "21", "2002-06-21" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(4) Filter(4) A(0) C(18) T(4) V(4)" }, { "db_id": "hr_1", "query": "SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' ORDER BY salary DESC", "query_toks": [ "SELECT", "*", "FROM", "employees", "WHERE", "first_name", "LIKE", "'", "%", "D", "%", "'", "OR", "first_name", "LIKE", "'", "%", "S", "%", "'", "ORDER", "BY", "salary", "DESC" ], "query_toks_no_value": [ "select", "*", "from", "employees", "where", "first_name", "like", "value", "or", "first_name", "like", "value", "order", "by", "salary", "desc" ], "question": "display all the information for all employees who have the letters D or S in their first name and also arrange the result in descending order by salary.", "question_toks": [ "display", "all", "information", "for", "all", "employee", "who", "have", "letter", "d", "or", "s", "in", "their", "first", "name", "and", "also", "arrange", "result", "in", "descending", "order", "by", "salary", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%D%\"", null ], "or", [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%S%\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "all", "the", "information", "for", "all", "employees", "who", "have", "the", "letters", "D", "or", "S", "in", "their", "first", "name", "and", "also", "arrange", "the", "result", "in", "descending", "order", "by", "salary", "." ], "question_arg": [ [ "display" ], [ "all" ], [ "information" ], [ "for" ], [ "all" ], [ "employee" ], [ "who" ], [ "have" ], [ "letter" ], [ "d" ], [ "or" ], [ "s" ], [ "in" ], [ "their" ], [ "first", "name" ], [ "and" ], [ "also" ], [ "arrange" ], [ "result" ], [ "in" ], [ "descending" ], [ "order" ], [ "by" ], [ "salary" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "VB" ], [ "all", "DT" ], [ "information", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "letter", "NN" ], [ "d", "NN" ], [ "or", "CC" ], [ "s", "NN" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "also", "RB" ], [ "arrange", "VBP" ], [ "result", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "by", "IN" ], [ "salary", "NN" ], [ ".", "." ] ], "values": [ "S", "1", "D" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(0) T(4) Filter(1) Filter(9) A(0) C(14) T(4) V(2) Filter(9) A(0) C(14) T(4) V(0) Order(0) A(0) C(19) T(4)" }, { "db_id": "hr_1", "query": "SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' ORDER BY salary DESC", "query_toks": [ "SELECT", "*", "FROM", "employees", "WHERE", "first_name", "LIKE", "'", "%", "D", "%", "'", "OR", "first_name", "LIKE", "'", "%", "S", "%", "'", "ORDER", "BY", "salary", "DESC" ], "query_toks_no_value": [ "select", "*", "from", "employees", "where", "first_name", "like", "value", "or", "first_name", "like", "value", "order", "by", "salary", "desc" ], "question": "What is all the information about employees with D or S in their first name, ordered by salary descending?", "question_toks": [ "what", "is", "all", "information", "about", "employee", "with", "d", "or", "s", "in", "their", "first", "name", ",", "ordered", "by", "salary", "descending", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%D%\"", null ], "or", [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%S%\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "is", "all", "the", "information", "about", "employees", "with", "D", "or", "S", "in", "their", "first", "name", ",", "ordered", "by", "salary", "descending", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "all" ], [ "information" ], [ "about" ], [ "employee" ], [ "with" ], [ "d" ], [ "or" ], [ "s" ], [ "in" ], [ "their" ], [ "first", "name" ], [ "," ], [ "ordered" ], [ "by" ], [ "salary" ], [ "descending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "employee", "NN" ], [ "with", "IN" ], [ "d", "NN" ], [ "or", "CC" ], [ "s", "NN" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "salary", "JJ" ], [ "descending", "NN" ], [ "?", "." ] ], "values": [ "1", "D", "S" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(0) T(4) Filter(1) Filter(9) A(0) C(14) T(4) V(1) Filter(9) A(0) C(14) T(4) V(2) Order(0) A(0) C(19) T(4)" }, { "db_id": "hr_1", "query": "SELECT * FROM employees WHERE hire_date > '1987-09-07'", "query_toks": [ "SELECT", "*", "FROM", "employees", "WHERE", "hire_date", ">", "'1987-09-07", "'" ], "query_toks_no_value": [ "select", "*", "from", "employees", "where", "hire_date", ">", "value" ], "question": "display those employees who joined after 7th September, 1987.", "question_toks": [ "display", "those", "employee", "who", "joined", "after", "7th", "september", ",", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 19, false ], null ], "\"1987-09-07\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "those", "employees", "who", "joined", "after", "7th", "September", ",", "1987", "." ], "question_arg": [ [ "display" ], [ "those" ], [ "employee" ], [ "who" ], [ "joined" ], [ "after" ], [ "7th" ], [ "september" ], [ "," ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "joined", "VBD" ], [ "after", "IN" ], [ "7th", "CD" ], [ "september", "NN" ], [ ",", "," ], [ "1987", "CD" ], [ ".", "." ] ], "values": [ "1987-09-07", "9/", "1987", "7", "7th September, 1987" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(4) Filter(5) A(0) C(18) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT * FROM employees WHERE hire_date > '1987-09-07'", "query_toks": [ "SELECT", "*", "FROM", "employees", "WHERE", "hire_date", ">", "'1987-09-07", "'" ], "query_toks_no_value": [ "select", "*", "from", "employees", "where", "hire_date", ">", "value" ], "question": "Which employees were hired after September 7th, 1987?", "question_toks": [ "which", "employee", "were", "hired", "after", "september", "7th", ",", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 19, false ], null ], "\"1987-09-07\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Which", "employees", "were", "hired", "after", "September", "7th", ",", "1987", "?" ], "question_arg": [ [ "which" ], [ "employee" ], [ "were" ], [ "hired" ], [ "after" ], [ "september" ], [ "7th" ], [ "," ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "employee", "NN" ], [ "were", "VBD" ], [ "hired", "VBN" ], [ "after", "IN" ], [ "september", "JJ" ], [ "7th", "CD" ], [ ",", "," ], [ "1987", "CD" ], [ "?", "." ] ], "values": [ "September 7th, 1987", "1987-09-07", "9/", "1987", "7" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(4) Filter(5) A(0) C(18) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT job_title FROM jobs WHERE min_salary > 9000", "query_toks": [ "SELECT", "job_title", "FROM", "jobs", "WHERE", "min_salary", ">", "9000" ], "query_toks_no_value": [ "select", "job_title", "from", "jobs", "where", "min_salary", ">", "value" ], "question": "display the job title of jobs which minimum salary is greater than 9000.", "question_toks": [ "display", "job", "title", "of", "job", "which", "minimum", "salary", "is", "greater", "than", "9000", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 12, false ], null ], 9000.0, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "job", "title", "of", "jobs", "which", "minimum", "salary", "is", "greater", "than", "9000", "." ], "question_arg": [ [ "display" ], [ "job", "title" ], [ "of" ], [ "job" ], [ "which" ], [ "minimum" ], [ "salary" ], [ "is" ], [ "greater" ], [ "than" ], [ "9000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "job", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "job", "NN" ], [ "which", "WDT" ], [ "minimum", "JJ" ], [ "salary", "NN" ], [ "is", "VBZ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "9000", "CD" ], [ ".", "." ] ], "values": [ "9000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(5) A(0) C(11) T(3) V(0)" }, { "db_id": "hr_1", "query": "SELECT job_title FROM jobs WHERE min_salary > 9000", "query_toks": [ "SELECT", "job_title", "FROM", "jobs", "WHERE", "min_salary", ">", "9000" ], "query_toks_no_value": [ "select", "job_title", "from", "jobs", "where", "min_salary", ">", "value" ], "question": "Which job titles correspond to jobs with salaries over 9000?", "question_toks": [ "which", "job", "title", "correspond", "to", "job", "with", "salary", "over", "9000", "?" ], "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 12, false ], null ], 9000.0, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Which", "job", "titles", "correspond", "to", "jobs", "with", "salaries", "over", "9000", "?" ], "question_arg": [ [ "which" ], [ "job", "title" ], [ "correspond" ], [ "to" ], [ "job" ], [ "with" ], [ "salary" ], [ "over" ], [ "9000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "job", "NN" ], [ "title", "NN" ], [ "correspond", "NN" ], [ "to", "TO" ], [ "job", "NN" ], [ "with", "IN" ], [ "salary", "NN" ], [ "over", "IN" ], [ "9000", "CD" ], [ "?", "." ] ], "values": [ "9000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(5) A(0) C(11) T(3) V(0)" }, { "db_id": "hr_1", "query": "SELECT job_title , max_salary - min_salary FROM jobs WHERE max_salary BETWEEN 12000 AND 18000", "query_toks": [ "SELECT", "job_title", ",", "max_salary", "-", "min_salary", "FROM", "jobs", "WHERE", "max_salary", "BETWEEN", "12000", "AND", "18000" ], "query_toks_no_value": [ "select", "job_title", ",", "max_salary", "-", "min_salary", "from", "jobs", "where", "max_salary", "between", "value", "and", "value" ], "question": "display job Title, the difference between minimum and maximum salaries for those jobs which max salary within the range 12000 to 18000.", "question_toks": [ "display", "job", "title", ",", "difference", "between", "minimum", "and", "maximum", "salary", "for", "those", "job", "which", "max", "salary", "within", "range", "12000", "to", "18000", "." ], "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, [ 1, [ 0, 13, false ], [ 0, 12, false ] ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 13, false ], null ], 12000.0, 18000.0 ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "job", "Title", ",", "the", "difference", "between", "minimum", "and", "maximum", "salaries", "for", "those", "jobs", "which", "max", "salary", "within", "the", "range", "12000", "to", "18000", "." ], "question_arg": [ [ "display" ], [ "job", "title" ], [ "," ], [ "difference" ], [ "between" ], [ "minimum" ], [ "and" ], [ "maximum" ], [ "salary" ], [ "for" ], [ "those" ], [ "job" ], [ "which" ], [ "max", "salary" ], [ "within" ], [ "range" ], [ "12000" ], [ "to" ], [ "18000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "job", "NN" ], [ "title", "NN" ], [ ",", "," ], [ "difference", "NN" ], [ "between", "IN" ], [ "minimum", "NN" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "salary", "NN" ], [ "for", "IN" ], [ "those", "DT" ], [ "job", "NN" ], [ "which", "WDT" ], [ "max", "VBP" ], [ "salary", "NN" ], [ "within", "IN" ], [ "range", "NN" ], [ "12000", "CD" ], [ "to", "TO" ], [ "18000", "CD" ], [ ".", "." ] ], "values": [ "12000", "18000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(12) T(3) Filter(8) A(0) C(12) T(3) V(0) V(1)" }, { "db_id": "hr_1", "query": "SELECT job_title , max_salary - min_salary FROM jobs WHERE max_salary BETWEEN 12000 AND 18000", "query_toks": [ "SELECT", "job_title", ",", "max_salary", "-", "min_salary", "FROM", "jobs", "WHERE", "max_salary", "BETWEEN", "12000", "AND", "18000" ], "query_toks_no_value": [ "select", "job_title", ",", "max_salary", "-", "min_salary", "from", "jobs", "where", "max_salary", "between", "value", "and", "value" ], "question": "What are the job titles, and range of salaries for jobs with maximum salary between 12000 and 18000?", "question_toks": [ "what", "are", "job", "title", ",", "and", "range", "of", "salary", "for", "job", "with", "maximum", "salary", "between", "12000", "and", "18000", "?" ], "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, [ 1, [ 0, 13, false ], [ 0, 12, false ] ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 13, false ], null ], 12000.0, 18000.0 ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "job", "titles", ",", "and", "range", "of", "salaries", "for", "jobs", "with", "maximum", "salary", "between", "12000", "and", "18000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "job", "title" ], [ "," ], [ "and" ], [ "range" ], [ "of" ], [ "salary" ], [ "for" ], [ "job" ], [ "with" ], [ "maximum" ], [ "salary" ], [ "between" ], [ "12000" ], [ "and" ], [ "18000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "job", "NN" ], [ "title", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "range", "NN" ], [ "of", "IN" ], [ "salary", "NN" ], [ "for", "IN" ], [ "job", "NN" ], [ "with", "IN" ], [ "maximum", "JJ" ], [ "salary", "NN" ], [ "between", "IN" ], [ "12000", "CD" ], [ "and", "CC" ], [ "18000", "CD" ], [ "?", "." ] ], "values": [ "18000", "12000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(12) T(3) Filter(8) A(0) C(12) T(3) V(1) V(0)" }, { "db_id": "hr_1", "query": "SELECT email FROM employees WHERE commission_pct = \"null\" AND salary BETWEEN 7000 AND 12000 AND department_id = 50", "query_toks": [ "SELECT", "email", "FROM", "employees", "WHERE", "commission_pct", "=", "``", "null", "''", "AND", "salary", "BETWEEN", "7000", "AND", "12000", "AND", "department_id", "=", "50" ], "query_toks_no_value": [ "select", "email", "from", "employees", "where", "commission_pct", "=", "value", "and", "salary", "between", "value", "and", "value", "and", "department_id", "=", "value" ], "question": "display the emails of the employees who have no commission percentage and salary within the range 7000 to 12000 and works in that department which number is 50.", "question_toks": [ "display", "email", "of", "employee", "who", "have", "no", "commission", "percentage", "and", "salary", "within", "range", "7000", "to", "12000", "and", "work", "in", "that", "department", "which", "number", "is", "50", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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, 22, false ], null ], "\"null\"", null ], "and", [ false, 1, [ 0, [ 0, 21, false ], null ], 7000.0, 12000.0 ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], 50.0, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "emails", "of", "the", "employees", "who", "have", "no", "commission", "percentage", "and", "salary", "within", "the", "range", "7000", "to", "12000", "and", "works", "in", "that", "department", "which", "number", "is", "50", "." ], "question_arg": [ [ "display" ], [ "email" ], [ "of" ], [ "employee" ], [ "who" ], [ "have" ], [ "no" ], [ "commission" ], [ "percentage" ], [ "and" ], [ "salary" ], [ "within" ], [ "range" ], [ "7000" ], [ "to" ], [ "12000" ], [ "and" ], [ "work" ], [ "in" ], [ "that" ], [ "department" ], [ "which" ], [ "number" ], [ "is" ], [ "50" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "email", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "no", "DT" ], [ "commission", "NN" ], [ "percentage", "NN" ], [ "and", "CC" ], [ "salary", "NN" ], [ "within", "IN" ], [ "range", "NN" ], [ "7000", "CD" ], [ "to", "TO" ], [ "12000", "CD" ], [ "and", "CC" ], [ "work", "NN" ], [ "in", "IN" ], [ "that", "DT" ], [ "department", "NN" ], [ "which", "WDT" ], [ "number", "NN" ], [ "is", "VBZ" ], [ "50", "CD" ], [ ".", "." ] ], "values": [ "50", "7000", "12000", "null" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(4) Filter(0) Filter(2) A(0) C(20) T(4) V(3) Filter(0) Filter(8) A(0) C(19) T(4) V(1) V(2) Filter(2) A(0) C(5) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT email FROM employees WHERE commission_pct = \"null\" AND salary BETWEEN 7000 AND 12000 AND department_id = 50", "query_toks": [ "SELECT", "email", "FROM", "employees", "WHERE", "commission_pct", "=", "``", "null", "''", "AND", "salary", "BETWEEN", "7000", "AND", "12000", "AND", "department_id", "=", "50" ], "query_toks_no_value": [ "select", "email", "from", "employees", "where", "commission_pct", "=", "value", "and", "salary", "between", "value", "and", "value", "and", "department_id", "=", "value" ], "question": "What are the emails of employees with null commission, salary between 7000 and 12000, and who work in department 50?", "question_toks": [ "what", "are", "email", "of", "employee", "with", "null", "commission", ",", "salary", "between", "7000", "and", "12000", ",", "and", "who", "work", "in", "department", "50", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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, 22, false ], null ], "\"null\"", null ], "and", [ false, 1, [ 0, [ 0, 21, false ], null ], 7000.0, 12000.0 ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], 50.0, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "emails", "of", "employees", "with", "null", "commission", ",", "salary", "between", "7000", "and", "12000", ",", "and", "who", "work", "in", "department", "50", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "email" ], [ "of" ], [ "employee" ], [ "with" ], [ "null" ], [ "commission" ], [ "," ], [ "salary" ], [ "between" ], [ "7000" ], [ "and" ], [ "12000" ], [ "," ], [ "and" ], [ "who" ], [ "work" ], [ "in" ], [ "department" ], [ "50" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "email", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "with", "IN" ], [ "null", "JJ" ], [ "commission", "NN" ], [ ",", "," ], [ "salary", "NN" ], [ "between", "IN" ], [ "7000", "CD" ], [ "and", "CC" ], [ "12000", "CD" ], [ ",", "," ], [ "and", "CC" ], [ "who", "WP" ], [ "work", "VBP" ], [ "in", "IN" ], [ "department", "NN" ], [ "50", "CD" ], [ "?", "." ] ], "values": [ "12000", "7000", "50", "null" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(4) Filter(0) Filter(2) A(0) C(20) T(4) V(3) Filter(0) Filter(8) A(0) C(19) T(4) V(1) V(0) Filter(2) A(0) C(5) T(4) V(2)" }, { "db_id": "hr_1", "query": "SELECT employee_id , MAX(end_date) FROM job_history GROUP BY employee_id", "query_toks": [ "SELECT", "employee_id", ",", "MAX", "(", "end_date", ")", "FROM", "job_history", "GROUP", "BY", "employee_id" ], "query_toks_no_value": [ "select", "employee_id", ",", "max", "(", "end_date", ")", "from", "job_history", "group", "by", "employee_id" ], "question": "display the employee ID for each employee and the date on which he ended his previous job.", "question_toks": [ "display", "employee", "id", "for", "each", "employee", "and", "date", "on", "which", "he", "ended", "his", "previous", "job", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 1, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "employee", "ID", "for", "each", "employee", "and", "the", "date", "on", "which", "he", "ended", "his", "previous", "job", "." ], "question_arg": [ [ "display" ], [ "employee", "id" ], [ "for" ], [ "each" ], [ "employee" ], [ "and" ], [ "date" ], [ "on" ], [ "which" ], [ "he" ], [ "ended" ], [ "his" ], [ "previous" ], [ "job" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "employee", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "employee", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "on", "IN" ], [ "which", "WDT" ], [ "he", "PRP" ], [ "ended", "VBD" ], [ "his", "PRP$" ], [ "previous", "JJ" ], [ "job", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(5) A(1) C(22) T(5)" }, { "db_id": "hr_1", "query": "SELECT employee_id , MAX(end_date) FROM job_history GROUP BY employee_id", "query_toks": [ "SELECT", "employee_id", ",", "MAX", "(", "end_date", ")", "FROM", "job_history", "GROUP", "BY", "employee_id" ], "query_toks_no_value": [ "select", "employee_id", ",", "max", "(", "end_date", ")", "from", "job_history", "group", "by", "employee_id" ], "question": "What are the employee ids for each employee and final dates of employment at their last job?", "question_toks": [ "what", "are", "employee", "id", "for", "each", "employee", "and", "final", "date", "of", "employment", "at", "their", "last", "job", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 1, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "employee", "ids", "for", "each", "employee", "and", "final", "dates", "of", "employment", "at", "their", "last", "job", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "employee", "id" ], [ "for" ], [ "each" ], [ "employee" ], [ "and" ], [ "final" ], [ "date" ], [ "of" ], [ "employment" ], [ "at" ], [ "their" ], [ "last" ], [ "job" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "employee", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "employee", "NN" ], [ "and", "CC" ], [ "final", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "employment", "NN" ], [ "at", "IN" ], [ "their", "PRP$" ], [ "last", "JJ" ], [ "job", "NN" ], [ "?", "." ] ], "values": [ "Gates", "Bates" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(5) A(1) C(22) T(5)" }, { "db_id": "hr_1", "query": "SELECT department_id FROM employees GROUP BY department_id HAVING COUNT(commission_pct) > 10", "query_toks": [ "SELECT", "department_id", "FROM", "employees", "GROUP", "BY", "department_id", "HAVING", "COUNT", "(", "commission_pct", ")", ">", "10" ], "query_toks_no_value": [ "select", "department_id", "from", "employees", "group", "by", "department_id", "having", "count", "(", "commission_pct", ")", ">", "value" ], "question": "display those departments where more than ten employees work who got a commission percentage.", "question_toks": [ "display", "those", "department", "where", "more", "than", "ten", "employee", "work", "who", "got", "a", "commission", "percentage", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [ [ false, 3, [ 0, [ 3, 22, false ], null ], 10.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "those", "departments", "where", "more", "than", "ten", "employees", "work", "who", "got", "a", "commission", "percentage", "." ], "question_arg": [ [ "display" ], [ "those" ], [ "department" ], [ "where" ], [ "more" ], [ "than" ], [ "ten" ], [ "employee" ], [ "work" ], [ "who" ], [ "got" ], [ "a" ], [ "commission" ], [ "percentage" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "those", "DT" ], [ "department", "NN" ], [ "where", "WRB" ], [ "more", "JJR" ], [ "than", "IN" ], [ "ten", "VB" ], [ "employee", "NN" ], [ "work", "NN" ], [ "who", "WP" ], [ "got", "VBD" ], [ "a", "DT" ], [ "commission", "NN" ], [ "percentage", "NN" ], [ ".", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(4) Filter(5) A(3) C(20) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT department_id FROM employees GROUP BY department_id HAVING COUNT(commission_pct) > 10", "query_toks": [ "SELECT", "department_id", "FROM", "employees", "GROUP", "BY", "department_id", "HAVING", "COUNT", "(", "commission_pct", ")", ">", "10" ], "query_toks_no_value": [ "select", "department_id", "from", "employees", "group", "by", "department_id", "having", "count", "(", "commission_pct", ")", ">", "value" ], "question": "What are the department ids for which more than 10 employees had a commission?", "question_toks": [ "what", "are", "department", "id", "for", "which", "more", "than", "10", "employee", "had", "a", "commission", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [ [ false, 3, [ 0, [ 3, 22, false ], null ], 10.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "department", "ids", "for", "which", "more", "than", "10", "employees", "had", "a", "commission", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "department", "id" ], [ "for" ], [ "which" ], [ "more" ], [ "than" ], [ "10" ], [ "employee" ], [ "had" ], [ "a" ], [ "commission" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "department", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "which", "WDT" ], [ "more", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "employee", "NN" ], [ "had", "VBD" ], [ "a", "DT" ], [ "commission", "NN" ], [ "?", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(4) Filter(5) A(3) C(20) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT DISTINCT department_id FROM employees GROUP BY department_id , manager_id HAVING COUNT(employee_id) >= 4", "query_toks": [ "SELECT", "DISTINCT", "department_id", "FROM", "employees", "GROUP", "BY", "department_id", ",", "manager_id", "HAVING", "COUNT", "(", "employee_id", ")", ">", "=", "4" ], "query_toks_no_value": [ "select", "distinct", "department_id", "from", "employees", "group", "by", "department_id", ",", "manager_id", "having", "count", "(", "employee_id", ")", ">", "=", "value" ], "question": "Find the ids of the departments where any manager is managing 4 or more employees.", "question_toks": [ "find", "id", "of", "department", "where", "any", "manager", "is", "managing", "4", "or", "more", "employee", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 24, false ], [ 0, 23, false ] ], "having": [ [ false, 5, [ 0, [ 3, 14, false ], null ], 4.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Find", "the", "ids", "of", "the", "departments", "where", "any", "manager", "is", "managing", "4", "or", "more", "employees", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "department" ], [ "where" ], [ "any" ], [ "manager" ], [ "is" ], [ "managing" ], [ "4" ], [ "or" ], [ "more" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "where", "WRB" ], [ "any", "DT" ], [ "manager", "NN" ], [ "is", "VBZ" ], [ "managing", "VBG" ], [ "4", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(5) T(4) Filter(7) A(3) C(13) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT DISTINCT department_id FROM employees GROUP BY department_id , manager_id HAVING COUNT(employee_id) >= 4", "query_toks": [ "SELECT", "DISTINCT", "department_id", "FROM", "employees", "GROUP", "BY", "department_id", ",", "manager_id", "HAVING", "COUNT", "(", "employee_id", ")", ">", "=", "4" ], "query_toks_no_value": [ "select", "distinct", "department_id", "from", "employees", "group", "by", "department_id", ",", "manager_id", "having", "count", "(", "employee_id", ")", ">", "=", "value" ], "question": "What are department ids for departments with managers managing more than 3 employees?", "question_toks": [ "what", "are", "department", "id", "for", "department", "with", "manager", "managing", "more", "than", "3", "employee", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 24, false ], [ 0, 23, false ] ], "having": [ [ false, 5, [ 0, [ 3, 14, false ], null ], 4.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "department", "ids", "for", "departments", "with", "managers", "managing", "more", "than", "3", "employees", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "department", "id" ], [ "for" ], [ "department" ], [ "with" ], [ "manager" ], [ "managing" ], [ "more" ], [ "than" ], [ "3" ], [ "employee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "department", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "manager", "NN" ], [ "managing", "VBG" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "employee", "NN" ], [ "?", "." ] ], "values": [ "3", "4" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(5) T(4) Filter(7) A(3) C(13) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT department_id , AVG(salary) FROM employees WHERE commission_pct != \"null\" GROUP BY department_id", "query_toks": [ "SELECT", "department_id", ",", "AVG", "(", "salary", ")", "FROM", "employees", "WHERE", "commission_pct", "!", "=", "``", "null", "''", "GROUP", "BY", "department_id" ], "query_toks_no_value": [ "select", "department_id", ",", "avg", "(", "salary", ")", "from", "employees", "where", "commission_pct", "!", "=", "value", "group", "by", "department_id" ], "question": "display the average salary of employees for each department who gets a commission percentage.", "question_toks": [ "display", "average", "salary", "of", "employee", "for", "each", "department", "who", "get", "a", "commission", "percentage", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 22, false ], null ], "\"null\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "average", "salary", "of", "employees", "for", "each", "department", "who", "gets", "a", "commission", "percentage", "." ], "question_arg": [ [ "display" ], [ "average" ], [ "salary" ], [ "of" ], [ "employee" ], [ "for" ], [ "each" ], [ "department" ], [ "who" ], [ "get" ], [ "a" ], [ "commission" ], [ "percentage" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "average", "JJ" ], [ "salary", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ "who", "WP" ], [ "get", "VBP" ], [ "a", "DT" ], [ "commission", "NN" ], [ "percentage", "NN" ], [ ".", "." ] ], "values": [ "null" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(4) A(5) C(19) T(4) Filter(3) A(0) C(20) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT department_id , AVG(salary) FROM employees WHERE commission_pct != \"null\" GROUP BY department_id", "query_toks": [ "SELECT", "department_id", ",", "AVG", "(", "salary", ")", "FROM", "employees", "WHERE", "commission_pct", "!", "=", "``", "null", "''", "GROUP", "BY", "department_id" ], "query_toks_no_value": [ "select", "department_id", ",", "avg", "(", "salary", ")", "from", "employees", "where", "commission_pct", "!", "=", "value", "group", "by", "department_id" ], "question": "What is the average salary of employees who have a commission percentage that is not null?", "question_toks": [ "what", "is", "average", "salary", "of", "employee", "who", "have", "a", "commission", "percentage", "that", "is", "not", "null", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 22, false ], null ], "\"null\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "is", "the", "average", "salary", "of", "employees", "who", "have", "a", "commission", "percentage", "that", "is", "not", "null", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "salary" ], [ "of" ], [ "employee" ], [ "who" ], [ "have" ], [ "a" ], [ "commission" ], [ "percentage" ], [ "that" ], [ "is" ], [ "not" ], [ "null" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "salary", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "commission", "NN" ], [ "percentage", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "null", "JJ" ], [ "?", "." ] ], "values": [ "null" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(4) A(5) C(19) T(4) Filter(3) A(0) C(20) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT country_id , COUNT(*) FROM locations GROUP BY country_id", "query_toks": [ "SELECT", "country_id", ",", "COUNT", "(", "*", ")", "FROM", "locations", "GROUP", "BY", "country_id" ], "query_toks_no_value": [ "select", "country_id", ",", "count", "(", "*", ")", "from", "locations", "group", "by", "country_id" ], "question": "display the country ID and number of cities for each country.", "question_toks": [ "display", "country", "id", "and", "number", "of", "city", "for", "each", "country", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 35, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "country", "ID", "and", "number", "of", "cities", "for", "each", "country", "." ], "question_arg": [ [ "display" ], [ "country", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "city" ], [ "for" ], [ "each" ], [ "country" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "country", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "country", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(6) A(3) C(0) T(6)" }, { "db_id": "hr_1", "query": "SELECT country_id , COUNT(*) FROM locations GROUP BY country_id", "query_toks": [ "SELECT", "country_id", ",", "COUNT", "(", "*", ")", "FROM", "locations", "GROUP", "BY", "country_id" ], "query_toks_no_value": [ "select", "country_id", ",", "count", "(", "*", ")", "from", "locations", "group", "by", "country_id" ], "question": "Give the country id and corresponding count of cities in each country.", "question_toks": [ "give", "country", "id", "and", "corresponding", "count", "of", "city", "in", "each", "country", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 35, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Give", "the", "country", "id", "and", "corresponding", "count", "of", "cities", "in", "each", "country", "." ], "question_arg": [ [ "give" ], [ "country", "id" ], [ "and" ], [ "corresponding" ], [ "count" ], [ "of" ], [ "city" ], [ "in" ], [ "each" ], [ "country" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "country", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "count", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "country", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(6) A(3) C(0) T(6)" }, { "db_id": "hr_1", "query": "SELECT job_id FROM job_history WHERE end_date - start_date > 300 GROUP BY job_id HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "job_id", "FROM", "job_history", "WHERE", "end_date", "-", "start_date", ">", "300", "GROUP", "BY", "job_id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "job_id", "from", "job_history", "where", "end_date", "-", "start_date", ">", "value", "group", "by", "job_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "display job ID for those jobs that were done by two or more for more than 300 days.", "question_toks": [ "display", "job", "id", "for", "those", "job", "that", "were", "done", "by", "two", "or", "more", "for", "more", "than", "300", "day", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 28, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 1, [ 0, 27, false ], [ 0, 26, false ] ], 300.0, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "job", "ID", "for", "those", "jobs", "that", "were", "done", "by", "two", "or", "more", "for", "more", "than", "300", "days", "." ], "question_arg": [ [ "display" ], [ "job", "id" ], [ "for" ], [ "those" ], [ "job" ], [ "that" ], [ "were" ], [ "done" ], [ "by" ], [ "two" ], [ "or" ], [ "more" ], [ "for" ], [ "more" ], [ "than" ], [ "300" ], [ "day" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "job", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "those", "DT" ], [ "job", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "done", "VBN" ], [ "by", "IN" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "for", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "300", "CD" ], [ "day", "NN" ], [ ".", "." ] ], "values": [ "2", "300" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(5) Filter(0) Filter(5) A(0) C(22) T(5) V(1) Filter(7) A(3) C(0) T(5) V(0)" }, { "db_id": "hr_1", "query": "SELECT job_id FROM job_history WHERE end_date - start_date > 300 GROUP BY job_id HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "job_id", "FROM", "job_history", "WHERE", "end_date", "-", "start_date", ">", "300", "GROUP", "BY", "job_id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "job_id", "from", "job_history", "where", "end_date", "-", "start_date", ">", "value", "group", "by", "job_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the job ids for jobs done more than once for a period of more than 300 days?", "question_toks": [ "what", "are", "job", "id", "for", "job", "done", "more", "than", "once", "for", "a", "period", "of", "more", "than", "300", "day", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 28, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 1, [ 0, 27, false ], [ 0, 26, false ] ], 300.0, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "job", "ids", "for", "jobs", "done", "more", "than", "once", "for", "a", "period", "of", "more", "than", "300", "days", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "job", "id" ], [ "for" ], [ "job" ], [ "done" ], [ "more" ], [ "than" ], [ "once" ], [ "for" ], [ "a" ], [ "period" ], [ "of" ], [ "more" ], [ "than" ], [ "300" ], [ "day" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "job", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "job", "NN" ], [ "done", "VBN" ], [ "more", "RBR" ], [ "than", "IN" ], [ "once", "RB" ], [ "for", "IN" ], [ "a", "DT" ], [ "period", "NN" ], [ "of", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "300", "CD" ], [ "day", "NN" ], [ "?", "." ] ], "values": [ "1", "300", "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(5) Filter(0) Filter(5) A(0) C(22) T(5) V(1) Filter(7) A(3) C(0) T(5) V(2)" }, { "db_id": "hr_1", "query": "SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "employee_id", "FROM", "job_history", "GROUP", "BY", "employee_id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "employee_id", "from", "job_history", "group", "by", "employee_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "display the ID for those employees who did two or more jobs in the past.", "question_toks": [ "display", "id", "for", "those", "employee", "who", "did", "two", "or", "more", "job", "in", "past", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "ID", "for", "those", "employees", "who", "did", "two", "or", "more", "jobs", "in", "the", "past", "." ], "question_arg": [ [ "display" ], [ "id" ], [ "for" ], [ "those" ], [ "employee" ], [ "who" ], [ "did" ], [ "two" ], [ "or" ], [ "more" ], [ "job" ], [ "in" ], [ "past" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "job", "NN" ], [ "in", "IN" ], [ "past", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(5) Filter(7) A(3) C(0) T(5) V(0)" }, { "db_id": "hr_1", "query": "SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "employee_id", "FROM", "job_history", "GROUP", "BY", "employee_id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "employee_id", "from", "job_history", "group", "by", "employee_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the employee ids for employees who have held two or more jobs?", "question_toks": [ "what", "are", "employee", "id", "for", "employee", "who", "have", "held", "two", "or", "more", "job", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "employee", "ids", "for", "employees", "who", "have", "held", "two", "or", "more", "jobs", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "employee", "id" ], [ "for" ], [ "employee" ], [ "who" ], [ "have" ], [ "held" ], [ "two" ], [ "or" ], [ "more" ], [ "job" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "employee", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "held", "VBN" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "job", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(5) Filter(7) A(3) C(0) T(5) V(0)" }, { "db_id": "hr_1", "query": "SELECT T1.employee_id , T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id", "query_toks": [ "SELECT", "T1.employee_id", ",", "T4.country_name", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "JOIN", "locations", "AS", "T3", "ON", "T2.location_id", "=", "T3.location_id", "JOIN", "countries", "AS", "T4", "ON", "T3.country_id", "=", "T4.country_id" ], "query_toks_no_value": [ "select", "t1", ".", "employee_id", ",", "t4", ".", "country_name", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "join", "locations", "as", "t3", "on", "t2", ".", "location_id", "=", "t3", ".", "location_id", "join", "countries", "as", "t4", "on", "t3", ".", "country_id", "=", "t4", ".", "country_id" ], "question": "Find employee with ID and name of the country presently where (s)he is working.", "question_toks": [ "find", "employee", "with", "id", "and", "name", "of", "country", "presently", "where", "(", "s", ")", "he", "is", "working", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, 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": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Find", "employee", "with", "ID", "and", "name", "of", "the", "country", "presently", "where", "(", "s", ")", "he", "is", "working", "." ], "question_arg": [ [ "find" ], [ "employee" ], [ "with" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "country" ], [ "presently" ], [ "where" ], [ "(" ], [ "s" ], [ ")" ], [ "he" ], [ "is" ], [ "working" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "employee", "NN" ], [ "with", "IN" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "presently", "RB" ], [ "where", "WRB" ], [ "(", "(" ], [ "s", "NN" ], [ ")", ")" ], [ "he", "PRP" ], [ "is", "VBZ" ], [ "working", "VBG" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(13) T(4) A(0) C(4) T(1) Filter(18) A(0) C(5) T(4) Root(5) Sel(0) N(0) A(0) C(5) T(2)" }, { "db_id": "hr_1", "query": "SELECT T1.employee_id , T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id", "query_toks": [ "SELECT", "T1.employee_id", ",", "T4.country_name", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "JOIN", "locations", "AS", "T3", "ON", "T2.location_id", "=", "T3.location_id", "JOIN", "countries", "AS", "T4", "ON", "T3.country_id", "=", "T4.country_id" ], "query_toks_no_value": [ "select", "t1", ".", "employee_id", ",", "t4", ".", "country_name", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "join", "locations", "as", "t3", "on", "t2", ".", "location_id", "=", "t3", ".", "location_id", "join", "countries", "as", "t4", "on", "t3", ".", "country_id", "=", "t4", ".", "country_id" ], "question": "What are all the employee ids and the names of the countries in which they work?", "question_toks": [ "what", "are", "all", "employee", "id", "and", "name", "of", "country", "in", "which", "they", "work", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, 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": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "all", "the", "employee", "ids", "and", "the", "names", "of", "the", "countries", "in", "which", "they", "work", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "employee", "id" ], [ "and" ], [ "name" ], [ "of" ], [ "country" ], [ "in" ], [ "which" ], [ "they" ], [ "work" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "employee", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "they", "PRP" ], [ "work", "VBP" ], [ "?", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(13) T(4) A(0) C(4) T(1) Filter(18) A(0) C(5) T(4) Root(5) Sel(0) N(0) A(0) C(5) T(2)" }, { "db_id": "hr_1", "query": "SELECT T2.department_name , COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY T2.department_name", "query_toks": [ "SELECT", "T2.department_name", ",", "COUNT", "(", "*", ")", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "GROUP", "BY", "T2.department_name" ], "query_toks_no_value": [ "select", "t2", ".", "department_name", ",", "count", "(", "*", ")", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "group", "by", "t2", ".", "department_name" ], "question": "display the department name and number of employees in each of the department.", "question_toks": [ "display", "department", "name", "and", "number", "of", "employee", "in", "each", "of", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "department", "name", "and", "number", "of", "employees", "in", "each", "of", "the", "department", "." ], "question_arg": [ [ "display" ], [ "department", "name" ], [ "and" ], [ "number" ], [ "of" ], [ "employee" ], [ "in" ], [ "each" ], [ "of" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "department", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "of", "IN" ], [ "department", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(2) A(3) C(0) T(4)" }, { "db_id": "hr_1", "query": "SELECT T2.department_name , COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY T2.department_name", "query_toks": [ "SELECT", "T2.department_name", ",", "COUNT", "(", "*", ")", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "GROUP", "BY", "T2.department_name" ], "query_toks_no_value": [ "select", "t2", ".", "department_name", ",", "count", "(", "*", ")", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "group", "by", "t2", ".", "department_name" ], "question": "Give the name of each department and the number of employees in each.", "question_toks": [ "give", "name", "of", "each", "department", "and", "number", "of", "employee", "in", "each", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Give", "the", "name", "of", "each", "department", "and", "the", "number", "of", "employees", "in", "each", "." ], "question_arg": [ [ "give" ], [ "name" ], [ "of" ], [ "each" ], [ "department" ], [ "and" ], [ "number" ], [ "of" ], [ "employee" ], [ "in" ], [ "each" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(2) A(3) C(0) T(4)" }, { "db_id": "hr_1", "query": "SELECT * FROM job_history AS T1 JOIN employees AS T2 ON T1.employee_id = T2.employee_id WHERE T2.salary >= 12000", "query_toks": [ "SELECT", "*", "FROM", "job_history", "AS", "T1", "JOIN", "employees", "AS", "T2", "ON", "T1.employee_id", "=", "T2.employee_id", "WHERE", "T2.salary", ">", "=", "12000" ], "query_toks_no_value": [ "select", "*", "from", "job_history", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "employee_id", "=", "t2", ".", "employee_id", "where", "t2", ".", "salary", ">", "=", "value" ], "question": "Can you return all detailed info of jobs which was done by any of the employees who is presently earning a salary on and above 12000?", "question_toks": [ "can", "you", "return", "all", "detailed", "info", "of", "job", "which", "wa", "done", "by", "any", "of", "employee", "who", "is", "presently", "earning", "a", "salary", "on", "and", "above", "12000", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 21, false ], null ], 12000.0, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Can", "you", "return", "all", "detailed", "info", "of", "jobs", "which", "was", "done", "by", "any", "of", "the", "employees", "who", "is", "presently", "earning", "a", "salary", "on", "and", "above", "12000", "?" ], "question_arg": [ [ "can" ], [ "you" ], [ "return" ], [ "all" ], [ "detailed" ], [ "info" ], [ "of" ], [ "job" ], [ "which" ], [ "wa" ], [ "done" ], [ "by" ], [ "any" ], [ "of" ], [ "employee" ], [ "who" ], [ "is" ], [ "presently" ], [ "earning" ], [ "a" ], [ "salary" ], [ "on" ], [ "and" ], [ "above" ], [ "12000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "can", "MD" ], [ "you", "PRP" ], [ "return", "VB" ], [ "all", "DT" ], [ "detailed", "JJ" ], [ "info", "NN" ], [ "of", "IN" ], [ "job", "NN" ], [ "which", "WDT" ], [ "wa", "VBP" ], [ "done", "VBN" ], [ "by", "IN" ], [ "any", "DT" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "presently", "RB" ], [ "earning", "VBG" ], [ "a", "DT" ], [ "salary", "NN" ], [ "on", "IN" ], [ "and", "CC" ], [ "above", "IN" ], [ "12000", "CD" ], [ "?", "." ] ], "values": [ "12000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(5) Filter(7) A(0) C(19) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT * FROM job_history AS T1 JOIN employees AS T2 ON T1.employee_id = T2.employee_id WHERE T2.salary >= 12000", "query_toks": [ "SELECT", "*", "FROM", "job_history", "AS", "T1", "JOIN", "employees", "AS", "T2", "ON", "T1.employee_id", "=", "T2.employee_id", "WHERE", "T2.salary", ">", "=", "12000" ], "query_toks_no_value": [ "select", "*", "from", "job_history", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "employee_id", "=", "t2", ".", "employee_id", "where", "t2", ".", "salary", ">", "=", "value" ], "question": "What is all the job history info done by employees earning a salary greater than or equal to 12000?", "question_toks": [ "what", "is", "all", "job", "history", "info", "done", "by", "employee", "earning", "a", "salary", "greater", "than", "or", "equal", "to", "12000", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 21, false ], null ], 12000.0, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "is", "all", "the", "job", "history", "info", "done", "by", "employees", "earning", "a", "salary", "greater", "than", "or", "equal", "to", "12000", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "all" ], [ "job", "history" ], [ "info" ], [ "done" ], [ "by" ], [ "employee" ], [ "earning" ], [ "a" ], [ "salary" ], [ "greater" ], [ "than" ], [ "or" ], [ "equal" ], [ "to" ], [ "12000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "all", "DT" ], [ "job", "NN" ], [ "history", "NN" ], [ "info", "NN" ], [ "done", "VBN" ], [ "by", "IN" ], [ "employee", "NN" ], [ "earning", "VBG" ], [ "a", "DT" ], [ "salary", "JJ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "or", "CC" ], [ "equal", "JJ" ], [ "to", "TO" ], [ "12000", "CD" ], [ "?", "." ] ], "values": [ "12000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(5) Filter(7) A(0) C(19) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT job_title , AVG(salary) FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id GROUP BY T2.job_title", "query_toks": [ "SELECT", "job_title", ",", "AVG", "(", "salary", ")", "FROM", "employees", "AS", "T1", "JOIN", "jobs", "AS", "T2", "ON", "T1.job_id", "=", "T2.job_id", "GROUP", "BY", "T2.job_title" ], "query_toks_no_value": [ "select", "job_title", ",", "avg", "(", "salary", ")", "from", "employees", "as", "t1", "join", "jobs", "as", "t2", "on", "t1", ".", "job_id", "=", "t2", ".", "job_id", "group", "by", "t2", ".", "job_title" ], "question": "display job title and average salary of employees.", "question_toks": [ "display", "job", "title", "and", "average", "salary", "of", "employee", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "job", "title", "and", "average", "salary", "of", "employees", "." ], "question_arg": [ [ "display" ], [ "job", "title" ], [ "and" ], [ "average" ], [ "salary" ], [ "of" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "job", "NN" ], [ "title", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "salary", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(10) T(3) A(5) C(19) T(4)" }, { "db_id": "hr_1", "query": "SELECT job_title , AVG(salary) FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id GROUP BY T2.job_title", "query_toks": [ "SELECT", "job_title", ",", "AVG", "(", "salary", ")", "FROM", "employees", "AS", "T1", "JOIN", "jobs", "AS", "T2", "ON", "T1.job_id", "=", "T2.job_id", "GROUP", "BY", "T2.job_title" ], "query_toks_no_value": [ "select", "job_title", ",", "avg", "(", "salary", ")", "from", "employees", "as", "t1", "join", "jobs", "as", "t2", "on", "t1", ".", "job_id", "=", "t2", ".", "job_id", "group", "by", "t2", ".", "job_title" ], "question": "What is the average salary for each job title?", "question_toks": [ "what", "is", "average", "salary", "for", "each", "job", "title", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "is", "the", "average", "salary", "for", "each", "job", "title", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "salary" ], [ "for" ], [ "each" ], [ "job", "title" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "salary", "JJ" ], [ "for", "IN" ], [ "each", "DT" ], [ "job", "NN" ], [ "title", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(10) T(3) A(5) C(19) T(4)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name FROM employees WHERE salary > (SELECT salary FROM employees WHERE employee_id = 163 )", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "employees", "WHERE", "salary", ">", "(", "SELECT", "salary", "FROM", "employees", "WHERE", "employee_id", "=", "163", ")" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "employees", "where", "salary", ">", "(", "select", "salary", "from", "employees", "where", "employee_id", "=", "value", ")" ], "question": "What is the full name ( first name and last name ) for those employees who gets more salary than the employee whose id is 163?", "question_toks": [ "what", "is", "full", "name", "(", "first", "name", "and", "last", "name", ")", "for", "those", "employee", "who", "get", "more", "salary", "than", "employee", "whose", "id", "is", "163", "?" ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], 163.0, null ] ] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "is", "the", "full", "name", "(", "first", "name", "and", "last", "name", ")", "for", "those", "employees", "who", "gets", "more", "salary", "than", "the", "employee", "whose", "id", "is", "163", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "full" ], [ "name" ], [ "(" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ ")" ], [ "for" ], [ "those" ], [ "employee" ], [ "who" ], [ "get" ], [ "more" ], [ "salary" ], [ "than" ], [ "employee" ], [ "whose" ], [ "id" ], [ "is" ], [ "163" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "full", "JJ" ], [ "name", "NN" ], [ "(", "(" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ")", ")" ], [ "for", "IN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "get", "VBP" ], [ "more", "JJR" ], [ "salary", "JJ" ], [ "than", "IN" ], [ "employee", "NN" ], [ "whose", "WP$" ], [ "id", "NN" ], [ "is", "VBZ" ], [ "163", "CD" ], [ "?", "." ] ], "values": [ "1", "163" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(4) A(0) C(15) T(4) Filter(13) A(0) C(19) T(4) Root(3) Sel(0) N(0) A(0) C(19) T(4) Filter(2) A(0) C(13) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name FROM employees WHERE salary > (SELECT salary FROM employees WHERE employee_id = 163 )", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "employees", "WHERE", "salary", ">", "(", "SELECT", "salary", "FROM", "employees", "WHERE", "employee_id", "=", "163", ")" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "employees", "where", "salary", ">", "(", "select", "salary", "from", "employees", "where", "employee_id", "=", "value", ")" ], "question": "Provide the full names of employees earning more than the employee with id 163.", "question_toks": [ "provide", "full", "name", "of", "employee", "earning", "more", "than", "employee", "with", "id", "163", "." ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], 163.0, null ] ] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Provide", "the", "full", "names", "of", "employees", "earning", "more", "than", "the", "employee", "with", "id", "163", "." ], "question_arg": [ [ "provide" ], [ "full" ], [ "name" ], [ "of" ], [ "employee" ], [ "earning" ], [ "more" ], [ "than" ], [ "employee" ], [ "with" ], [ "id" ], [ "163" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "provide", "VB" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "earning", "VBG" ], [ "more", "JJR" ], [ "than", "IN" ], [ "employee", "NN" ], [ "with", "IN" ], [ "id", "JJ" ], [ "163", "CD" ], [ ".", "." ] ], "values": [ "163", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(4) A(0) C(15) T(4) Filter(13) A(0) C(19) T(4) Root(3) Sel(0) N(0) A(0) C(19) T(4) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT MIN(salary) , department_id FROM employees GROUP BY department_id", "query_toks": [ "SELECT", "MIN", "(", "salary", ")", ",", "department_id", "FROM", "employees", "GROUP", "BY", "department_id" ], "query_toks_no_value": [ "select", "min", "(", "salary", ")", ",", "department_id", "from", "employees", "group", "by", "department_id" ], "question": "return the smallest salary for every departments.", "question_toks": [ "return", "smallest", "salary", "for", "every", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "return", "the", "smallest", "salary", "for", "every", "departments", "." ], "question_arg": [ [ "return" ], [ "smallest" ], [ "salary" ], [ "for" ], [ "every" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "smallest", "JJS" ], [ "salary", "NN" ], [ "for", "IN" ], [ "every", "DT" ], [ "department", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(2) C(19) T(4) A(0) C(5) T(4)" }, { "db_id": "hr_1", "query": "SELECT MIN(salary) , department_id FROM employees GROUP BY department_id", "query_toks": [ "SELECT", "MIN", "(", "salary", ")", ",", "department_id", "FROM", "employees", "GROUP", "BY", "department_id" ], "query_toks_no_value": [ "select", "min", "(", "salary", ")", ",", "department_id", "from", "employees", "group", "by", "department_id" ], "question": "What is the minimum salary in each department?", "question_toks": [ "what", "is", "minimum", "salary", "in", "each", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "is", "the", "minimum", "salary", "in", "each", "department", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "minimum" ], [ "salary" ], [ "in" ], [ "each" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "minimum", "JJ" ], [ "salary", "JJ" ], [ "in", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(2) C(19) T(4) A(0) C(5) T(4)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , department_id FROM employees WHERE salary IN (SELECT MIN(salary) FROM employees GROUP BY department_id)", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "department_id", "FROM", "employees", "WHERE", "salary", "IN", "(", "SELECT", "MIN", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id", ")" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "department_id", "from", "employees", "where", "salary", "in", "(", "select", "min", "(", "salary", ")", "from", "employees", "group", "by", "department_id", ")" ], "question": "Find the first name and last name and department id for those employees who earn such amount of salary which is the smallest salary of any of the departments.", "question_toks": [ "find", "first", "name", "and", "last", "name", "and", "department", "id", "for", "those", "employee", "who", "earn", "such", "amount", "of", "salary", "which", "is", "smallest", "salary", "of", "any", "of", "department", "." ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Find", "the", "first", "name", "and", "last", "name", "and", "department", "id", "for", "those", "employees", "who", "earn", "such", "amount", "of", "salary", "which", "is", "the", "smallest", "salary", "of", "any", "of", "the", "departments", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "and" ], [ "department", "id" ], [ "for" ], [ "those" ], [ "employee" ], [ "who" ], [ "earn" ], [ "such" ], [ "amount" ], [ "of" ], [ "salary" ], [ "which" ], [ "is" ], [ "smallest" ], [ "salary" ], [ "of" ], [ "any" ], [ "of" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "department", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "earn", "VBP" ], [ "such", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "salary", "NN" ], [ "which", "WDT" ], [ "is", "VBZ" ], [ "smallest", "JJS" ], [ "salary", "NN" ], [ "of", "IN" ], [ "any", "DT" ], [ "of", "IN" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(5) T(4) Filter(18) A(0) C(19) T(4) Root(5) Sel(0) N(0) A(2) C(19) T(4)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , department_id FROM employees WHERE salary IN (SELECT MIN(salary) FROM employees GROUP BY department_id)", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "department_id", "FROM", "employees", "WHERE", "salary", "IN", "(", "SELECT", "MIN", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id", ")" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "department_id", "from", "employees", "where", "salary", "in", "(", "select", "min", "(", "salary", ")", "from", "employees", "group", "by", "department_id", ")" ], "question": "What are the full names and department ids for the lowest paid employees across all departments.", "question_toks": [ "what", "are", "full", "name", "and", "department", "id", "for", "lowest", "paid", "employee", "across", "all", "department", "." ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "full", "names", "and", "department", "ids", "for", "the", "lowest", "paid", "employees", "across", "all", "departments", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "and" ], [ "department", "id" ], [ "for" ], [ "lowest" ], [ "paid" ], [ "employee" ], [ "across" ], [ "all" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "department", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "lowest", "NN" ], [ "paid", "VBN" ], [ "employee", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(5) T(4) Filter(18) A(0) C(19) T(4) Root(5) Sel(0) N(0) A(2) C(19) T(4)" }, { "db_id": "hr_1", "query": "SELECT employee_id FROM employees WHERE salary > (SELECT AVG(salary) FROM employees)", "query_toks": [ "SELECT", "employee_id", "FROM", "employees", "WHERE", "salary", ">", "(", "SELECT", "AVG", "(", "salary", ")", "FROM", "employees", ")" ], "query_toks_no_value": [ "select", "employee_id", "from", "employees", "where", "salary", ">", "(", "select", "avg", "(", "salary", ")", "from", "employees", ")" ], "question": "Find the employee id for all employees who earn more than the average salary.", "question_toks": [ "find", "employee", "id", "for", "all", "employee", "who", "earn", "more", "than", "average", "salary", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Find", "the", "employee", "id", "for", "all", "employees", "who", "earn", "more", "than", "the", "average", "salary", "." ], "question_arg": [ [ "find" ], [ "employee", "id" ], [ "for" ], [ "all" ], [ "employee" ], [ "who" ], [ "earn" ], [ "more" ], [ "than" ], [ "average" ], [ "salary" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "employee", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "earn", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "salary", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(4) Filter(13) A(0) C(19) T(4) Root(5) Sel(0) N(0) A(5) C(19) T(4)" }, { "db_id": "hr_1", "query": "SELECT employee_id FROM employees WHERE salary > (SELECT AVG(salary) FROM employees)", "query_toks": [ "SELECT", "employee_id", "FROM", "employees", "WHERE", "salary", ">", "(", "SELECT", "AVG", "(", "salary", ")", "FROM", "employees", ")" ], "query_toks_no_value": [ "select", "employee_id", "from", "employees", "where", "salary", ">", "(", "select", "avg", "(", "salary", ")", "from", "employees", ")" ], "question": "What are the employee ids for employees who make more than the average?", "question_toks": [ "what", "are", "employee", "id", "for", "employee", "who", "make", "more", "than", "average", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "employee", "ids", "for", "employees", "who", "make", "more", "than", "the", "average", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "employee", "id" ], [ "for" ], [ "employee" ], [ "who" ], [ "make" ], [ "more" ], [ "than" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "employee", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "make", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(4) Filter(13) A(0) C(19) T(4) Root(5) Sel(0) N(0) A(5) C(19) T(4)" }, { "db_id": "hr_1", "query": "SELECT employee_id , salary FROM employees WHERE manager_id = (SELECT employee_id FROM employees WHERE first_name = 'Payam' )", "query_toks": [ "SELECT", "employee_id", ",", "salary", "FROM", "employees", "WHERE", "manager_id", "=", "(", "SELECT", "employee_id", "FROM", "employees", "WHERE", "first_name", "=", "'Payam", "'", ")" ], "query_toks_no_value": [ "select", "employee_id", ",", "salary", "from", "employees", "where", "manager_id", "=", "(", "select", "employee_id", "from", "employees", "where", "first_name", "=", "value", ")" ], "question": "display the employee id and salary of all employees who report to Payam (first name).", "question_toks": [ "display", "employee", "id", "and", "salary", "of", "all", "employee", "who", "report", "to", "payam", "(", "first", "name", ")", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Payam\"", null ] ] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "employee", "id", "and", "salary", "of", "all", "employees", "who", "report", "to", "Payam", "(", "first", "name", ")", "." ], "question_arg": [ [ "display" ], [ "employee", "id" ], [ "and" ], [ "salary" ], [ "of" ], [ "all" ], [ "employee" ], [ "who" ], [ "report" ], [ "to" ], [ "payam" ], [ "(" ], [ "first", "name" ], [ ")" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "employee", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "salary", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "report", "VBP" ], [ "to", "TO" ], [ "payam", "VB" ], [ "(", "(" ], [ "first", "JJ" ], [ "name", "NN" ], [ ")", ")" ], [ ".", "." ] ], "values": [ "1", "Payam" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(13) T(4) A(0) C(19) T(4) Filter(11) A(0) C(7) T(4) Root(3) Sel(0) N(0) A(0) C(13) T(4) Filter(2) A(0) C(14) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT employee_id , salary FROM employees WHERE manager_id = (SELECT employee_id FROM employees WHERE first_name = 'Payam' )", "query_toks": [ "SELECT", "employee_id", ",", "salary", "FROM", "employees", "WHERE", "manager_id", "=", "(", "SELECT", "employee_id", "FROM", "employees", "WHERE", "first_name", "=", "'Payam", "'", ")" ], "query_toks_no_value": [ "select", "employee_id", ",", "salary", "from", "employees", "where", "manager_id", "=", "(", "select", "employee_id", "from", "employees", "where", "first_name", "=", "value", ")" ], "question": "What are the employee ids of employees who report to Payam, and what are their salaries?", "question_toks": [ "what", "are", "employee", "id", "of", "employee", "who", "report", "to", "payam", ",", "and", "what", "are", "their", "salary", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Payam\"", null ] ] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "employee", "ids", "of", "employees", "who", "report", "to", "Payam", ",", "and", "what", "are", "their", "salaries", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "employee", "id" ], [ "of" ], [ "employee" ], [ "who" ], [ "report" ], [ "to" ], [ "payam" ], [ "," ], [ "and" ], [ "what" ], [ "are" ], [ "their" ], [ "salary" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "employee", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "report", "VBP" ], [ "to", "TO" ], [ "payam", "VB" ], [ ",", "," ], [ "and", "CC" ], [ "what", "WDT" ], [ "are", "VBP" ], [ "their", "PRP$" ], [ "salary", "JJ" ], [ "?", "." ] ], "values": [ "Payam" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(13) T(4) A(0) C(19) T(4) Filter(11) A(0) C(7) T(4) Root(3) Sel(0) N(0) A(0) C(13) T(4) Filter(2) A(0) C(14) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id", "query_toks": [ "SELECT", "DISTINCT", "T2.department_name", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "department_name", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id" ], "question": "find the name of all departments that do actually have one or more employees assigned to them.", "question_toks": [ "find", "name", "of", "all", "department", "that", "do", "actually", "have", "one", "or", "more", "employee", "assigned", "to", "them", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "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, 24, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "find", "the", "name", "of", "all", "departments", "that", "do", "actually", "have", "one", "or", "more", "employees", "assigned", "to", "them", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "department" ], [ "that" ], [ "do" ], [ "actually" ], [ "have" ], [ "one" ], [ "or" ], [ "more" ], [ "employee" ], [ "assigned" ], [ "to" ], [ "them" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "department", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "actually", "RB" ], [ "have", "VB" ], [ "one", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "employee", "NN" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "them", "PRP" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(2) Filter(18) A(0) C(5) T(2) Root(5) Sel(0) N(0) A(0) C(5) T(4)" }, { "db_id": "hr_1", "query": "SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id", "query_toks": [ "SELECT", "DISTINCT", "T2.department_name", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "department_name", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id" ], "question": "What are the names of departments that have at least one employee.", "question_toks": [ "what", "are", "name", "of", "department", "that", "have", "at", "least", "one", "employee", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "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, 24, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "departments", "that", "have", "at", "least", "one", "employee", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "department" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "one" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(2) Filter(18) A(0) C(5) T(2) Root(5) Sel(0) N(0) A(0) C(5) T(4)" }, { "db_id": "hr_1", "query": "SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T1.employee_id = T2.manager_id", "query_toks": [ "SELECT", "DISTINCT", "*", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "WHERE", "T1.employee_id", "=", "T2.manager_id" ], "query_toks_no_value": [ "select", "distinct", "*", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "where", "t1", ".", "employee_id", "=", "t2", ".", "manager_id" ], "question": "get the details of employees who manage a department.", "question_toks": [ "get", "detail", "of", "employee", "who", "manage", "a", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 8, false ], null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "get", "the", "details", "of", "employees", "who", "manage", "a", "department", "." ], "question_arg": [ [ "get" ], [ "detail" ], [ "of" ], [ "employee" ], [ "who" ], [ "manage" ], [ "a" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "get", "VB" ], [ "detail", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "manage", "VBP" ], [ "a", "DT" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "[0, 8, False]" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(0) T(2) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T1.employee_id = T2.manager_id", "query_toks": [ "SELECT", "DISTINCT", "*", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "WHERE", "T1.employee_id", "=", "T2.manager_id" ], "query_toks_no_value": [ "select", "distinct", "*", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "where", "t1", ".", "employee_id", "=", "t2", ".", "manager_id" ], "question": "What is all the information regarding employees who are managers?", "question_toks": [ "what", "is", "all", "information", "regarding", "employee", "who", "are", "manager", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 8, false ], null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "is", "all", "the", "information", "regarding", "employees", "who", "are", "managers", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "all" ], [ "information" ], [ "regarding" ], [ "employee" ], [ "who" ], [ "are" ], [ "manager" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "all", "DT" ], [ "information", "NN" ], [ "regarding", "VBG" ], [ "employee", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "manager", "NN" ], [ "?", "." ] ], "values": [ "[0, 8, False]" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(0) T(2) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT * FROM departments WHERE department_name = 'Marketing'", "query_toks": [ "SELECT", "*", "FROM", "departments", "WHERE", "department_name", "=", "'Marketing", "'" ], "query_toks_no_value": [ "select", "*", "from", "departments", "where", "department_name", "=", "value" ], "question": "display all the information about the department Marketing.", "question_toks": [ "display", "all", "information", "about", "department", "marketing", "." ], "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, 7, false ], null ], "\"Marketing\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "all", "the", "information", "about", "the", "department", "Marketing", "." ], "question_arg": [ [ "display" ], [ "all" ], [ "information" ], [ "about" ], [ "department" ], [ "marketing" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "VB" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "department", "NN" ], [ "marketing", "NN" ], [ ".", "." ] ], "values": [ "Marketing" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(2) Filter(2) A(0) C(6) T(2) V(0)" }, { "db_id": "hr_1", "query": "SELECT * FROM departments WHERE department_name = 'Marketing'", "query_toks": [ "SELECT", "*", "FROM", "departments", "WHERE", "department_name", "=", "'Marketing", "'" ], "query_toks_no_value": [ "select", "*", "from", "departments", "where", "department_name", "=", "value" ], "question": "What is all the information about the Marketing department?", "question_toks": [ "what", "is", "all", "information", "about", "marketing", "department", "?" ], "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, 7, false ], null ], "\"Marketing\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "is", "all", "the", "information", "about", "the", "Marketing", "department", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "all" ], [ "information" ], [ "about" ], [ "marketing" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "marketing", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Marketing" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(2) Filter(2) A(0) C(6) T(2) V(0)" }, { "db_id": "hr_1", "query": "SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "employee_id", "FROM", "job_history", "GROUP", "BY", "employee_id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "employee_id", "from", "job_history", "group", "by", "employee_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "display the ID for those employees who did two or more jobs in the past.", "question_toks": [ "display", "id", "for", "those", "employee", "who", "did", "two", "or", "more", "job", "in", "past", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "ID", "for", "those", "employees", "who", "did", "two", "or", "more", "jobs", "in", "the", "past", "." ], "question_arg": [ [ "display" ], [ "id" ], [ "for" ], [ "those" ], [ "employee" ], [ "who" ], [ "did" ], [ "two" ], [ "or" ], [ "more" ], [ "job" ], [ "in" ], [ "past" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "job", "NN" ], [ "in", "IN" ], [ "past", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(5) Filter(7) A(3) C(0) T(5) V(0)" }, { "db_id": "hr_1", "query": "SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "employee_id", "FROM", "job_history", "GROUP", "BY", "employee_id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "employee_id", "from", "job_history", "group", "by", "employee_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the employee ids for those who had two or more jobs.", "question_toks": [ "what", "are", "employee", "id", "for", "those", "who", "had", "two", "or", "more", "job", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "employee", "ids", "for", "those", "who", "had", "two", "or", "more", "jobs", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "employee", "id" ], [ "for" ], [ "those" ], [ "who" ], [ "had" ], [ "two" ], [ "or" ], [ "more" ], [ "job" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "employee", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "those", "DT" ], [ "who", "WP" ], [ "had", "VBD" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "job", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(5) Filter(7) A(3) C(0) T(5) V(0)" }, { "db_id": "hr_1", "query": "SELECT DISTINCT department_id FROM employees GROUP BY department_id , manager_id HAVING COUNT(employee_id) >= 4", "query_toks": [ "SELECT", "DISTINCT", "department_id", "FROM", "employees", "GROUP", "BY", "department_id", ",", "manager_id", "HAVING", "COUNT", "(", "employee_id", ")", ">", "=", "4" ], "query_toks_no_value": [ "select", "distinct", "department_id", "from", "employees", "group", "by", "department_id", ",", "manager_id", "having", "count", "(", "employee_id", ")", ">", "=", "value" ], "question": "What are the unique ids of those departments where any manager is managing 4 or more employees.", "question_toks": [ "what", "are", "unique", "id", "of", "those", "department", "where", "any", "manager", "is", "managing", "4", "or", "more", "employee", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 24, false ], [ 0, 23, false ] ], "having": [ [ false, 5, [ 0, [ 3, 14, false ], null ], 4.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "unique", "ids", "of", "those", "departments", "where", "any", "manager", "is", "managing", "4", "or", "more", "employees", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "unique" ], [ "id" ], [ "of" ], [ "those" ], [ "department" ], [ "where" ], [ "any" ], [ "manager" ], [ "is" ], [ "managing" ], [ "4" ], [ "or" ], [ "more" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "unique", "JJ" ], [ "id", "NN" ], [ "of", "IN" ], [ "those", "DT" ], [ "department", "NN" ], [ "where", "WRB" ], [ "any", "DT" ], [ "manager", "NN" ], [ "is", "VBZ" ], [ "managing", "VBG" ], [ "4", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(5) T(4) Filter(7) A(3) C(13) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT DISTINCT department_id FROM employees GROUP BY department_id , manager_id HAVING COUNT(employee_id) >= 4", "query_toks": [ "SELECT", "DISTINCT", "department_id", "FROM", "employees", "GROUP", "BY", "department_id", ",", "manager_id", "HAVING", "COUNT", "(", "employee_id", ")", ">", "=", "4" ], "query_toks_no_value": [ "select", "distinct", "department_id", "from", "employees", "group", "by", "department_id", ",", "manager_id", "having", "count", "(", "employee_id", ")", ">", "=", "value" ], "question": "Give the distinct department ids of departments in which a manager is in charge of 4 or more employees?", "question_toks": [ "give", "distinct", "department", "id", "of", "department", "in", "which", "a", "manager", "is", "in", "charge", "of", "4", "or", "more", "employee", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 24, false ], [ 0, 23, false ] ], "having": [ [ false, 5, [ 0, [ 3, 14, false ], null ], 4.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Give", "the", "distinct", "department", "ids", "of", "departments", "in", "which", "a", "manager", "is", "in", "charge", "of", "4", "or", "more", "employees", "?" ], "question_arg": [ [ "give" ], [ "distinct" ], [ "department", "id" ], [ "of" ], [ "department" ], [ "in" ], [ "which" ], [ "a" ], [ "manager" ], [ "is" ], [ "in" ], [ "charge" ], [ "of" ], [ "4" ], [ "or" ], [ "more" ], [ "employee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "distinct", "JJ" ], [ "department", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "a", "DT" ], [ "manager", "NN" ], [ "is", "VBZ" ], [ "in", "IN" ], [ "charge", "NN" ], [ "of", "IN" ], [ "4", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "employee", "NN" ], [ "?", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(5) T(4) Filter(7) A(3) C(13) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT job_id FROM employees GROUP BY job_id HAVING AVG(salary) > 8000", "query_toks": [ "SELECT", "job_id", "FROM", "employees", "GROUP", "BY", "job_id", "HAVING", "AVG", "(", "salary", ")", ">", "8000" ], "query_toks_no_value": [ "select", "job_id", "from", "employees", "group", "by", "job_id", "having", "avg", "(", "salary", ")", ">", "value" ], "question": "Find the job ID for those jobs which average salary is above 8000.", "question_toks": [ "find", "job", "id", "for", "those", "job", "which", "average", "salary", "is", "above", "8000", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [ [ false, 3, [ 0, [ 5, 21, false ], null ], 8000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Find", "the", "job", "ID", "for", "those", "jobs", "which", "average", "salary", "is", "above", "8000", "." ], "question_arg": [ [ "find" ], [ "job", "id" ], [ "for" ], [ "those" ], [ "job" ], [ "which" ], [ "average" ], [ "salary" ], [ "is" ], [ "above" ], [ "8000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "job", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "those", "DT" ], [ "job", "NN" ], [ "which", "WDT" ], [ "average", "JJ" ], [ "salary", "NN" ], [ "is", "VBZ" ], [ "above", "IN" ], [ "8000", "CD" ], [ ".", "." ] ], "values": [ "8000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(4) Filter(5) A(5) C(19) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT job_id FROM employees GROUP BY job_id HAVING AVG(salary) > 8000", "query_toks": [ "SELECT", "job_id", "FROM", "employees", "GROUP", "BY", "job_id", "HAVING", "AVG", "(", "salary", ")", ">", "8000" ], "query_toks_no_value": [ "select", "job_id", "from", "employees", "group", "by", "job_id", "having", "avg", "(", "salary", ")", ">", "value" ], "question": "What are the job ids corresponding to jobs with average salary above 8000?", "question_toks": [ "what", "are", "job", "id", "corresponding", "to", "job", "with", "average", "salary", "above", "8000", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [ [ false, 3, [ 0, [ 5, 21, false ], null ], 8000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "job", "ids", "corresponding", "to", "jobs", "with", "average", "salary", "above", "8000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "job", "id" ], [ "corresponding" ], [ "to" ], [ "job" ], [ "with" ], [ "average" ], [ "salary" ], [ "above" ], [ "8000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "job", "NN" ], [ "id", "JJ" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "job", "NN" ], [ "with", "IN" ], [ "average", "JJ" ], [ "salary", "JJ" ], [ "above", "IN" ], [ "8000", "CD" ], [ "?", "." ] ], "values": [ "8000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(4) Filter(5) A(5) C(19) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT T1.employee_id , T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.department_id = 80", "query_toks": [ "SELECT", "T1.employee_id", ",", "T2.job_title", "FROM", "employees", "AS", "T1", "JOIN", "jobs", "AS", "T2", "ON", "T1.job_id", "=", "T2.job_id", "WHERE", "T1.department_id", "=", "80" ], "query_toks_no_value": [ "select", "t1", ".", "employee_id", ",", "t2", ".", "job_title", "from", "employees", "as", "t1", "join", "jobs", "as", "t2", "on", "t1", ".", "job_id", "=", "t2", ".", "job_id", "where", "t1", ".", "department_id", "=", "value" ], "question": "display the employee ID and job name for all those jobs in department 80.", "question_toks": [ "display", "employee", "id", "and", "job", "name", "for", "all", "those", "job", "in", "department", "80", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], 80.0, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "employee", "ID", "and", "job", "name", "for", "all", "those", "jobs", "in", "department", "80", "." ], "question_arg": [ [ "display" ], [ "employee", "id" ], [ "and" ], [ "job" ], [ "name" ], [ "for" ], [ "all" ], [ "those" ], [ "job" ], [ "in" ], [ "department" ], [ "80" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "employee", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "job", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "PDT" ], [ "those", "DT" ], [ "job", "NN" ], [ "in", "IN" ], [ "department", "NN" ], [ "80", "CD" ], [ ".", "." ] ], "values": [ "80" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(13) T(4) A(0) C(10) T(3) Filter(2) A(0) C(5) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT T1.employee_id , T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.department_id = 80", "query_toks": [ "SELECT", "T1.employee_id", ",", "T2.job_title", "FROM", "employees", "AS", "T1", "JOIN", "jobs", "AS", "T2", "ON", "T1.job_id", "=", "T2.job_id", "WHERE", "T1.department_id", "=", "80" ], "query_toks_no_value": [ "select", "t1", ".", "employee_id", ",", "t2", ".", "job_title", "from", "employees", "as", "t1", "join", "jobs", "as", "t2", "on", "t1", ".", "job_id", "=", "t2", ".", "job_id", "where", "t1", ".", "department_id", "=", "value" ], "question": "what are the employee ids and job titles for employees in department 80?", "question_toks": [ "what", "are", "employee", "id", "and", "job", "title", "for", "employee", "in", "department", "80", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], 80.0, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "what", "are", "the", "employee", "ids", "and", "job", "titles", "for", "employees", "in", "department", "80", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "employee", "id" ], [ "and" ], [ "job", "title" ], [ "for" ], [ "employee" ], [ "in" ], [ "department" ], [ "80" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "employee", "NN" ], [ "id", "NNS" ], [ "and", "CC" ], [ "job", "NN" ], [ "title", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "in", "IN" ], [ "department", "NN" ], [ "80", "CD" ], [ "?", "." ] ], "values": [ "80" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(13) T(4) A(0) C(10) T(3) Filter(2) A(0) C(5) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT T1.first_name , T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance'", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.job_id", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "WHERE", "T2.department_name", "=", "'Finance", "'" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "job_id", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "where", "t2", ".", "department_name", "=", "value" ], "question": "What is the first name and job id for all employees in the Finance department?", "question_toks": [ "what", "is", "first", "name", "and", "job", "id", "for", "all", "employee", "in", "finance", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Finance\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "is", "the", "first", "name", "and", "job", "id", "for", "all", "employees", "in", "the", "Finance", "department", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first", "name" ], [ "and" ], [ "job", "id" ], [ "for" ], [ "all" ], [ "employee" ], [ "in" ], [ "finance" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "job", "NN" ], [ "id", "NNS" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "in", "IN" ], [ "finance", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Finance", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(4) A(0) C(9) T(4) Filter(2) A(0) C(6) T(2) V(0)" }, { "db_id": "hr_1", "query": "SELECT T1.first_name , T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance'", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.job_id", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "WHERE", "T2.department_name", "=", "'Finance", "'" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "job_id", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "where", "t2", ".", "department_name", "=", "value" ], "question": "Give the first name and job id for all employees in the Finance department.", "question_toks": [ "give", "first", "name", "and", "job", "id", "for", "all", "employee", "in", "finance", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Finance\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Give", "the", "first", "name", "and", "job", "id", "for", "all", "employees", "in", "the", "Finance", "department", "." ], "question_arg": [ [ "give" ], [ "first", "name" ], [ "and" ], [ "job", "id" ], [ "for" ], [ "all" ], [ "employee" ], [ "in" ], [ "finance" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "job", "NN" ], [ "id", "NNS" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "in", "IN" ], [ "finance", "NN" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "Finance", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(4) A(0) C(9) T(4) Filter(2) A(0) C(6) T(2) V(0)" }, { "db_id": "hr_1", "query": "SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500", "query_toks": [ "SELECT", "*", "FROM", "employees", "WHERE", "salary", "BETWEEN", "(", "SELECT", "MIN", "(", "salary", ")", "FROM", "employees", ")", "AND", "2500" ], "query_toks_no_value": [ "select", "*", "from", "employees", "where", "salary", "between", "(", "select", "min", "(", "salary", ")", "from", "employees", ")", "and", "value" ], "question": "display all the information of the employees whose salary if within the range of smallest salary and 2500.", "question_toks": [ "display", "all", "information", "of", "employee", "whose", "salary", "if", "within", "range", "of", "smallest", "salary", "and", "2500", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, 2500.0 ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "all", "the", "information", "of", "the", "employees", "whose", "salary", "if", "within", "the", "range", "of", "smallest", "salary", "and", "2500", "." ], "question_arg": [ [ "display" ], [ "all" ], [ "information" ], [ "of" ], [ "employee" ], [ "whose" ], [ "salary" ], [ "if" ], [ "within" ], [ "range" ], [ "of" ], [ "smallest" ], [ "salary" ], [ "and" ], [ "2500" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "VB" ], [ "all", "DT" ], [ "information", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "whose", "WP$" ], [ "salary", "JJ" ], [ "if", "IN" ], [ "within", "IN" ], [ "range", "NN" ], [ "of", "IN" ], [ "smallest", "JJS" ], [ "salary", "NN" ], [ "and", "CC" ], [ "2500", "CD" ], [ ".", "." ] ], "values": [ "2500" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(4) Filter(15) A(0) C(19) T(4) Root(5) Sel(0) N(0) A(2) C(19) T(4)" }, { "db_id": "hr_1", "query": "SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500", "query_toks": [ "SELECT", "*", "FROM", "employees", "WHERE", "salary", "BETWEEN", "(", "SELECT", "MIN", "(", "salary", ")", "FROM", "employees", ")", "AND", "2500" ], "query_toks_no_value": [ "select", "*", "from", "employees", "where", "salary", "between", "(", "select", "min", "(", "salary", ")", "from", "employees", ")", "and", "value" ], "question": "What is all the information regarding employees with salaries above the minimum and under 2500?", "question_toks": [ "what", "is", "all", "information", "regarding", "employee", "with", "salary", "above", "minimum", "and", "under", "2500", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, 2500.0 ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "is", "all", "the", "information", "regarding", "employees", "with", "salaries", "above", "the", "minimum", "and", "under", "2500", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "all" ], [ "information" ], [ "regarding" ], [ "employee" ], [ "with" ], [ "salary" ], [ "above" ], [ "minimum" ], [ "and" ], [ "under" ], [ "2500" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "all", "DT" ], [ "information", "NN" ], [ "regarding", "VBG" ], [ "employee", "NN" ], [ "with", "IN" ], [ "salary", "JJ" ], [ "above", "IN" ], [ "minimum", "NN" ], [ "and", "CC" ], [ "under", "IN" ], [ "2500", "CD" ], [ "?", "." ] ], "values": [ "2500" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(4) Filter(15) A(0) C(19) T(4) Root(5) Sel(0) N(0) A(2) C(19) T(4)" }, { "db_id": "hr_1", "query": "SELECT * FROM employees WHERE department_id NOT IN (SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200)", "query_toks": [ "SELECT", "*", "FROM", "employees", "WHERE", "department_id", "NOT", "IN", "(", "SELECT", "department_id", "FROM", "departments", "WHERE", "manager_id", "BETWEEN", "100", "AND", "200", ")" ], "query_toks_no_value": [ "select", "*", "from", "employees", "where", "department_id", "not", "in", "(", "select", "department_id", "from", "departments", "where", "manager_id", "between", "value", "and", "value", ")" ], "question": "Find the ids of the employees who does not work in those departments where some employees works whose manager id within the range 100 and 200.", "question_toks": [ "find", "id", "of", "employee", "who", "doe", "not", "work", "in", "those", "department", "where", "some", "employee", "work", "whose", "manager", "id", "within", "range", "100", "and", "200", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 24, false ], null ], { "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, 1, [ 0, [ 0, 8, false ], null ], 100.0, 200.0 ] ] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "Find", "the", "ids", "of", "the", "employees", "who", "does", "not", "work", "in", "those", "departments", "where", "some", "employees", "works", "whose", "manager", "id", "within", "the", "range", "100", "and", "200", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "employee" ], [ "who" ], [ "doe" ], [ "not" ], [ "work" ], [ "in" ], [ "those" ], [ "department" ], [ "where" ], [ "some" ], [ "employee" ], [ "work" ], [ "whose" ], [ "manager", "id" ], [ "within" ], [ "range" ], [ "100" ], [ "and" ], [ "200" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "doe", "VBZ" ], [ "not", "RB" ], [ "work", "NN" ], [ "in", "IN" ], [ "those", "DT" ], [ "department", "NN" ], [ "where", "WRB" ], [ "some", "DT" ], [ "employee", "NN" ], [ "work", "NN" ], [ "whose", "WP$" ], [ "manager", "NN" ], [ "id", "NN" ], [ "within", "IN" ], [ "range", "NN" ], [ "100", "CD" ], [ "and", "CC" ], [ "200", "CD" ], [ ".", "." ] ], "values": [ "100", "200" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(4) Filter(19) A(0) C(5) T(4) Root(3) Sel(0) N(0) A(0) C(5) T(2) Filter(8) A(0) C(7) T(2) V(0) V(1)" }, { "db_id": "hr_1", "query": "SELECT * FROM employees WHERE department_id NOT IN (SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200)", "query_toks": [ "SELECT", "*", "FROM", "employees", "WHERE", "department_id", "NOT", "IN", "(", "SELECT", "department_id", "FROM", "departments", "WHERE", "manager_id", "BETWEEN", "100", "AND", "200", ")" ], "query_toks_no_value": [ "select", "*", "from", "employees", "where", "department_id", "not", "in", "(", "select", "department_id", "from", "departments", "where", "manager_id", "between", "value", "and", "value", ")" ], "question": "What are the ids for employees who do not work in departments with managers that have ids between 100 and 200?", "question_toks": [ "what", "are", "id", "for", "employee", "who", "do", "not", "work", "in", "department", "with", "manager", "that", "have", "id", "between", "100", "and", "200", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 24, false ], null ], { "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, 1, [ 0, [ 0, 8, false ], null ], 100.0, 200.0 ] ] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "ids", "for", "employees", "who", "do", "not", "work", "in", "departments", "with", "managers", "that", "have", "ids", "between", "100", "and", "200", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "for" ], [ "employee" ], [ "who" ], [ "do" ], [ "not" ], [ "work" ], [ "in" ], [ "department" ], [ "with" ], [ "manager" ], [ "that" ], [ "have" ], [ "id" ], [ "between" ], [ "100" ], [ "and" ], [ "200" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "for", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "work", "VB" ], [ "in", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "manager", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "id", "VBN" ], [ "between", "IN" ], [ "100", "CD" ], [ "and", "CC" ], [ "200", "CD" ], [ "?", "." ] ], "values": [ "100", "200" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(4) Filter(19) A(0) C(5) T(4) Root(3) Sel(0) N(0) A(0) C(5) T(2) Filter(8) A(0) C(7) T(2) V(0) V(1)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , hire_date FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = \"Clara\")", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "hire_date", "FROM", "employees", "WHERE", "department_id", "=", "(", "SELECT", "department_id", "FROM", "employees", "WHERE", "first_name", "=", "``", "Clara", "''", ")" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "hire_date", "from", "employees", "where", "department_id", "=", "(", "select", "department_id", "from", "employees", "where", "first_name", "=", "value", ")" ], "question": "display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara.", "question_toks": [ "display", "employee", "name", "(", "first", "name", "and", "last", "name", ")", "and", "hire", "date", "for", "all", "employee", "in", "same", "department", "a", "clara", "." ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Clara\"", null ] ] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "employee", "name", "(", "first", "name", "and", "last", "name", ")", "and", "hire", "date", "for", "all", "employees", "in", "the", "same", "department", "as", "Clara", "." ], "question_arg": [ [ "display" ], [ "employee" ], [ "name" ], [ "(" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ ")" ], [ "and" ], [ "hire", "date" ], [ "for" ], [ "all" ], [ "employee" ], [ "in" ], [ "same" ], [ "department" ], [ "a" ], [ "clara" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "employee", "NN" ], [ "name", "NN" ], [ "(", "(" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ")", ")" ], [ "and", "CC" ], [ "hire", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "in", "IN" ], [ "same", "JJ" ], [ "department", "NN" ], [ "a", "DT" ], [ "clara", "NN" ], [ ".", "." ] ], "values": [ "1", "Clara" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(18) T(4) Filter(11) A(0) C(5) T(4) Root(3) Sel(0) N(0) A(0) C(5) T(4) Filter(2) A(0) C(14) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , hire_date FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = \"Clara\")", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "hire_date", "FROM", "employees", "WHERE", "department_id", "=", "(", "SELECT", "department_id", "FROM", "employees", "WHERE", "first_name", "=", "``", "Clara", "''", ")" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "hire_date", "from", "employees", "where", "department_id", "=", "(", "select", "department_id", "from", "employees", "where", "first_name", "=", "value", ")" ], "question": "What are the full names and hire dates for employees in the same department as someone with the first name Clara?", "question_toks": [ "what", "are", "full", "name", "and", "hire", "date", "for", "employee", "in", "same", "department", "a", "someone", "with", "first", "name", "clara", "?" ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Clara\"", null ] ] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "full", "names", "and", "hire", "dates", "for", "employees", "in", "the", "same", "department", "as", "someone", "with", "the", "first", "name", "Clara", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "and" ], [ "hire", "date" ], [ "for" ], [ "employee" ], [ "in" ], [ "same" ], [ "department" ], [ "a" ], [ "someone" ], [ "with" ], [ "first", "name" ], [ "clara" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "hire", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "in", "IN" ], [ "same", "JJ" ], [ "department", "NN" ], [ "a", "DT" ], [ "someone", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "clara", "NN" ], [ "?", "." ] ], "values": [ "1", "Clara", "James", "Bates", "Gates" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(18) T(4) Filter(11) A(0) C(5) T(4) Root(3) Sel(0) N(0) A(0) C(5) T(4) Filter(2) A(0) C(14) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , hire_date FROM employees WHERE department_id = ( SELECT department_id FROM employees WHERE first_name = \"Clara\") AND first_name != \"Clara\"", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "hire_date", "FROM", "employees", "WHERE", "department_id", "=", "(", "SELECT", "department_id", "FROM", "employees", "WHERE", "first_name", "=", "``", "Clara", "''", ")", "AND", "first_name", "!", "=", "``", "Clara", "''" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "hire_date", "from", "employees", "where", "department_id", "=", "(", "select", "department_id", "from", "employees", "where", "first_name", "=", "value", ")", "and", "first_name", "!", "=", "value" ], "question": "display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara excluding Clara.", "question_toks": [ "display", "employee", "name", "(", "first", "name", "and", "last", "name", ")", "and", "hire", "date", "for", "all", "employee", "in", "same", "department", "a", "clara", "excluding", "clara", "." ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Clara\"", null ] ] }, null ], "and", [ false, 7, [ 0, [ 0, 15, false ], null ], "\"Clara\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "employee", "name", "(", "first", "name", "and", "last", "name", ")", "and", "hire", "date", "for", "all", "employees", "in", "the", "same", "department", "as", "Clara", "excluding", "Clara", "." ], "question_arg": [ [ "display" ], [ "employee" ], [ "name" ], [ "(" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ ")" ], [ "and" ], [ "hire", "date" ], [ "for" ], [ "all" ], [ "employee" ], [ "in" ], [ "same" ], [ "department" ], [ "a" ], [ "clara" ], [ "excluding" ], [ "clara" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "employee", "NN" ], [ "name", "NN" ], [ "(", "(" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ")", ")" ], [ "and", "CC" ], [ "hire", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "in", "IN" ], [ "same", "JJ" ], [ "department", "NN" ], [ "a", "DT" ], [ "clara", "NN" ], [ "excluding", "VBG" ], [ "clara", "NN" ], [ ".", "." ] ], "values": [ "Clara", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(18) T(4) Filter(0) Filter(11) A(0) C(5) T(4) Root(3) Sel(0) N(0) A(0) C(5) T(4) Filter(2) A(0) C(14) T(4) V(0) Filter(3) A(0) C(14) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , hire_date FROM employees WHERE department_id = ( SELECT department_id FROM employees WHERE first_name = \"Clara\") AND first_name != \"Clara\"", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "hire_date", "FROM", "employees", "WHERE", "department_id", "=", "(", "SELECT", "department_id", "FROM", "employees", "WHERE", "first_name", "=", "``", "Clara", "''", ")", "AND", "first_name", "!", "=", "``", "Clara", "''" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "hire_date", "from", "employees", "where", "department_id", "=", "(", "select", "department_id", "from", "employees", "where", "first_name", "=", "value", ")", "and", "first_name", "!", "=", "value" ], "question": "What are the full names and hire dates for employees in the same department as someone with the first name Clara, not including Clara?", "question_toks": [ "what", "are", "full", "name", "and", "hire", "date", "for", "employee", "in", "same", "department", "a", "someone", "with", "first", "name", "clara", ",", "not", "including", "clara", "?" ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Clara\"", null ] ] }, null ], "and", [ false, 7, [ 0, [ 0, 15, false ], null ], "\"Clara\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "full", "names", "and", "hire", "dates", "for", "employees", "in", "the", "same", "department", "as", "someone", "with", "the", "first", "name", "Clara", ",", "not", "including", "Clara", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "and" ], [ "hire", "date" ], [ "for" ], [ "employee" ], [ "in" ], [ "same" ], [ "department" ], [ "a" ], [ "someone" ], [ "with" ], [ "first", "name" ], [ "clara" ], [ "," ], [ "not" ], [ "including" ], [ "clara" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "hire", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "in", "IN" ], [ "same", "JJ" ], [ "department", "NN" ], [ "a", "DT" ], [ "someone", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "clara", "NN" ], [ ",", "," ], [ "not", "RB" ], [ "including", "VBG" ], [ "clara", "NN" ], [ "?", "." ] ], "values": [ "1", "Clara", "James", "Bates", "Gates" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(18) T(4) Filter(0) Filter(11) A(0) C(5) T(4) Root(3) Sel(0) N(0) A(0) C(5) T(4) Filter(2) A(0) C(14) T(4) V(1) Filter(3) A(0) C(14) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT employee_id , first_name , last_name FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%T%' )", "query_toks": [ "SELECT", "employee_id", ",", "first_name", ",", "last_name", "FROM", "employees", "WHERE", "department_id", "IN", "(", "SELECT", "department_id", "FROM", "employees", "WHERE", "first_name", "LIKE", "'", "%", "T", "%", "'", ")" ], "query_toks_no_value": [ "select", "employee_id", ",", "first_name", ",", "last_name", "from", "employees", "where", "department_id", "in", "(", "select", "department_id", "from", "employees", "where", "first_name", "like", "value", ")" ], "question": "display the employee number and name( first name and last name ) for all employees who work in a department with any employee whose name contains a \u2019T\u2019.", "question_toks": [ "display", "employee", "number", "and", "name", "(", "first", "name", "and", "last", "name", ")", "for", "all", "employee", "who", "work", "in", "a", "department", "with", "any", "employee", "whose", "name", "contains", "a", "\u2019t\u2019", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%T%\"", null ] ] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "employee", "number", "and", "name", "(", "first", "name", "and", "last", "name", ")", "for", "all", "employees", "who", "work", "in", "a", "department", "with", "any", "employee", "whose", "name", "contains", "a", "\u2019T\u2019", "." ], "question_arg": [ [ "display" ], [ "employee" ], [ "number" ], [ "and" ], [ "name" ], [ "(" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ ")" ], [ "for" ], [ "all" ], [ "employee" ], [ "who" ], [ "work" ], [ "in" ], [ "a" ], [ "department" ], [ "with" ], [ "any" ], [ "employee" ], [ "whose" ], [ "name" ], [ "contains" ], [ "a" ], [ "\u2019t\u2019" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "employee", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "(", "(" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ")", ")" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "work", "VBP" ], [ "in", "IN" ], [ "a", "DT" ], [ "department", "NN" ], [ "with", "IN" ], [ "any", "DT" ], [ "employee", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "a", "DT" ], [ "\u2019t\u2019", "NN" ], [ ".", "." ] ], "values": [ "1", "T" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(13) T(4) A(0) C(14) T(4) A(0) C(15) T(4) Filter(18) A(0) C(5) T(4) Root(3) Sel(0) N(0) A(0) C(5) T(4) Filter(9) A(0) C(14) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT employee_id , first_name , last_name FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%T%' )", "query_toks": [ "SELECT", "employee_id", ",", "first_name", ",", "last_name", "FROM", "employees", "WHERE", "department_id", "IN", "(", "SELECT", "department_id", "FROM", "employees", "WHERE", "first_name", "LIKE", "'", "%", "T", "%", "'", ")" ], "query_toks_no_value": [ "select", "employee_id", ",", "first_name", ",", "last_name", "from", "employees", "where", "department_id", "in", "(", "select", "department_id", "from", "employees", "where", "first_name", "like", "value", ")" ], "question": "What are the ids and full names for employees who work in a department that has someone with a first name that contains the letter T?", "question_toks": [ "what", "are", "id", "and", "full", "name", "for", "employee", "who", "work", "in", "a", "department", "that", "ha", "someone", "with", "a", "first", "name", "that", "contains", "letter", "t", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%T%\"", null ] ] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "full", "names", "for", "employees", "who", "work", "in", "a", "department", "that", "has", "someone", "with", "a", "first", "name", "that", "contains", "the", "letter", "T", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "full" ], [ "name" ], [ "for" ], [ "employee" ], [ "who" ], [ "work" ], [ "in" ], [ "a" ], [ "department" ], [ "that" ], [ "ha" ], [ "someone" ], [ "with" ], [ "a" ], [ "first", "name" ], [ "that" ], [ "contains" ], [ "letter" ], [ "t" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "full", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "work", "VBP" ], [ "in", "IN" ], [ "a", "DT" ], [ "department", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "someone", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "first", "JJ" ], [ "name", "NN" ], [ "that", "WDT" ], [ "contains", "VBZ" ], [ "letter", "NN" ], [ "t", "NN" ], [ "?", "." ] ], "values": [ "1", "James", "a", "T" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(13) T(4) A(0) C(14) T(4) A(0) C(15) T(4) Filter(18) A(0) C(5) T(4) Root(3) Sel(0) N(0) A(0) C(5) T(4) Filter(9) A(0) C(14) T(4) V(3)" }, { "db_id": "hr_1", "query": "SELECT employee_id , first_name , last_name , salary FROM employees WHERE salary > ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%')", "query_toks": [ "SELECT", "employee_id", ",", "first_name", ",", "last_name", ",", "salary", "FROM", "employees", "WHERE", "salary", ">", "(", "SELECT", "AVG", "(", "salary", ")", "FROM", "employees", ")", "AND", "department_id", "IN", "(", "SELECT", "department_id", "FROM", "employees", "WHERE", "first_name", "LIKE", "'", "%", "J", "%", "'", ")" ], "query_toks_no_value": [ "select", "employee_id", ",", "first_name", ",", "last_name", ",", "salary", "from", "employees", "where", "salary", ">", "(", "select", "avg", "(", "salary", ")", "from", "employees", ")", "and", "department_id", "in", "(", "select", "department_id", "from", "employees", "where", "first_name", "like", "value", ")" ], "question": "display the employee number, name( first name and last name ), and salary for all employees who earn more than the average salary and who work in a department with any employee with a 'J' in their first name.", "question_toks": [ "display", "employee", "number", ",", "name", "(", "first", "name", "and", "last", "name", ")", ",", "and", "salary", "for", "all", "employee", "who", "earn", "more", "than", "average", "salary", "and", "who", "work", "in", "a", "department", "with", "any", "employee", "with", "a", "'j", "'", "in", "their", "first", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, null ], "and", [ false, 8, [ 0, [ 0, 24, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%J%\"", null ] ] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "employee", "number", ",", "name", "(", "first", "name", "and", "last", "name", ")", ",", "and", "salary", "for", "all", "employees", "who", "earn", "more", "than", "the", "average", "salary", "and", "who", "work", "in", "a", "department", "with", "any", "employee", "with", "a", "'J", "'", "in", "their", "first", "name", "." ], "question_arg": [ [ "display" ], [ "employee" ], [ "number" ], [ "," ], [ "name" ], [ "(" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ ")" ], [ "," ], [ "and" ], [ "salary" ], [ "for" ], [ "all" ], [ "employee" ], [ "who" ], [ "earn" ], [ "more" ], [ "than" ], [ "average" ], [ "salary" ], [ "and" ], [ "who" ], [ "work" ], [ "in" ], [ "a" ], [ "department" ], [ "with" ], [ "any" ], [ "employee" ], [ "with" ], [ "a" ], [ "'j" ], [ "'" ], [ "in" ], [ "their" ], [ "first", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "employee", "NN" ], [ "number", "NN" ], [ ",", "," ], [ "name", "NN" ], [ "(", "(" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ")", ")" ], [ ",", "," ], [ "and", "CC" ], [ "salary", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "earn", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "salary", "JJ" ], [ "and", "CC" ], [ "who", "WP" ], [ "work", "VBP" ], [ "in", "IN" ], [ "a", "DT" ], [ "department", "NN" ], [ "with", "IN" ], [ "any", "DT" ], [ "employee", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "'j", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1", "J" ], "rule_label": "Root1(3) Root(3) Sel(0) N(3) A(0) C(13) T(4) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(19) T(4) Filter(0) Filter(13) A(0) C(19) T(4) Root(5) Sel(0) N(0) A(5) C(19) T(4) Filter(18) A(0) C(5) T(4) Root(3) Sel(0) N(0) A(0) C(5) T(4) Filter(9) A(0) C(14) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT employee_id , first_name , last_name , salary FROM employees WHERE salary > ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%')", "query_toks": [ "SELECT", "employee_id", ",", "first_name", ",", "last_name", ",", "salary", "FROM", "employees", "WHERE", "salary", ">", "(", "SELECT", "AVG", "(", "salary", ")", "FROM", "employees", ")", "AND", "department_id", "IN", "(", "SELECT", "department_id", "FROM", "employees", "WHERE", "first_name", "LIKE", "'", "%", "J", "%", "'", ")" ], "query_toks_no_value": [ "select", "employee_id", ",", "first_name", ",", "last_name", ",", "salary", "from", "employees", "where", "salary", ">", "(", "select", "avg", "(", "salary", ")", "from", "employees", ")", "and", "department_id", "in", "(", "select", "department_id", "from", "employees", "where", "first_name", "like", "value", ")" ], "question": "What are the ids, full names, and salaries for employees making more than average and who work in a department with employees who have the letter J in their first name?", "question_toks": [ "what", "are", "id", ",", "full", "name", ",", "and", "salary", "for", "employee", "making", "more", "than", "average", "and", "who", "work", "in", "a", "department", "with", "employee", "who", "have", "letter", "j", "in", "their", "first", "name", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, null ], "and", [ false, 8, [ 0, [ 0, 24, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%J%\"", null ] ] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "ids", ",", "full", "names", ",", "and", "salaries", "for", "employees", "making", "more", "than", "average", "and", "who", "work", "in", "a", "department", "with", "employees", "who", "have", "the", "letter", "J", "in", "their", "first", "name", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "," ], [ "full" ], [ "name" ], [ "," ], [ "and" ], [ "salary" ], [ "for" ], [ "employee" ], [ "making" ], [ "more" ], [ "than" ], [ "average" ], [ "and" ], [ "who" ], [ "work" ], [ "in" ], [ "a" ], [ "department" ], [ "with" ], [ "employee" ], [ "who" ], [ "have" ], [ "letter" ], [ "j" ], [ "in" ], [ "their" ], [ "first", "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ ",", "," ], [ "full", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "salary", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "making", "VBG" ], [ "more", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ "and", "CC" ], [ "who", "WP" ], [ "work", "VBP" ], [ "in", "IN" ], [ "a", "DT" ], [ "department", "NN" ], [ "with", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "letter", "NN" ], [ "j", "NN" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "1", "J", "James", "a" ], "rule_label": "Root1(3) Root(3) Sel(0) N(3) A(0) C(13) T(4) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(19) T(4) Filter(0) Filter(13) A(0) C(19) T(4) Root(5) Sel(0) N(0) A(5) C(19) T(4) Filter(18) A(0) C(5) T(4) Root(3) Sel(0) N(0) A(0) C(5) T(4) Filter(9) A(0) C(14) T(4) V(1)" }, { "db_id": "hr_1", "query": "SELECT employee_id , job_id FROM employees WHERE salary < ( SELECT min(salary) FROM employees WHERE job_id = 'MK_MAN' )", "query_toks": [ "SELECT", "employee_id", ",", "job_id", "FROM", "employees", "WHERE", "salary", "<", "(", "SELECT", "min", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "'MK_MAN", "'", ")" ], "query_toks_no_value": [ "select", "employee_id", ",", "job_id", "from", "employees", "where", "salary", "<", "(", "select", "min", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "value", ")" ], "question": "display the employee number and job id for all employees whose salary is smaller than any salary of those employees whose job title is MK_MAN.", "question_toks": [ "display", "employee", "number", "and", "job", "id", "for", "all", "employee", "whose", "salary", "is", "smaller", "than", "any", "salary", "of", "those", "employee", "whose", "job", "title", "is", "mk_man", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"MK_MAN\"", null ] ] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "employee", "number", "and", "job", "id", "for", "all", "employees", "whose", "salary", "is", "smaller", "than", "any", "salary", "of", "those", "employees", "whose", "job", "title", "is", "MK_MAN", "." ], "question_arg": [ [ "display" ], [ "employee" ], [ "number" ], [ "and" ], [ "job", "id" ], [ "for" ], [ "all" ], [ "employee" ], [ "whose" ], [ "salary" ], [ "is" ], [ "smaller" ], [ "than" ], [ "any" ], [ "salary" ], [ "of" ], [ "those" ], [ "employee" ], [ "whose" ], [ "job", "title" ], [ "is" ], [ "mk_man" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "employee", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "job", "NN" ], [ "id", "NNS" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "whose", "WP$" ], [ "salary", "NN" ], [ "is", "VBZ" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "any", "DT" ], [ "salary", "JJ" ], [ "of", "IN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "whose", "WP$" ], [ "job", "NN" ], [ "title", "NN" ], [ "is", "VBZ" ], [ "mk_man", "JJ" ], [ ".", "." ] ], "values": [ "MK_MAN" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(13) T(4) A(0) C(9) T(4) Filter(12) A(0) C(19) T(4) Root(3) Sel(0) N(0) A(2) C(19) T(4) Filter(2) A(0) C(9) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT employee_id , job_id FROM employees WHERE salary < ( SELECT min(salary) FROM employees WHERE job_id = 'MK_MAN' )", "query_toks": [ "SELECT", "employee_id", ",", "job_id", "FROM", "employees", "WHERE", "salary", "<", "(", "SELECT", "min", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "'MK_MAN", "'", ")" ], "query_toks_no_value": [ "select", "employee_id", ",", "job_id", "from", "employees", "where", "salary", "<", "(", "select", "min", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "value", ")" ], "question": "What are the employee ids and job ids for employees who make less than the lowest earning employee with title MK_MAN?", "question_toks": [ "what", "are", "employee", "id", "and", "job", "id", "for", "employee", "who", "make", "le", "than", "lowest", "earning", "employee", "with", "title", "mk_man", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"MK_MAN\"", null ] ] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "employee", "ids", "and", "job", "ids", "for", "employees", "who", "make", "less", "than", "the", "lowest", "earning", "employee", "with", "title", "MK_MAN", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "employee", "id" ], [ "and" ], [ "job", "id" ], [ "for" ], [ "employee" ], [ "who" ], [ "make" ], [ "le" ], [ "than" ], [ "lowest" ], [ "earning" ], [ "employee" ], [ "with" ], [ "title" ], [ "mk_man" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "employee", "NN" ], [ "id", "NNS" ], [ "and", "CC" ], [ "job", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "make", "VBP" ], [ "le", "JJR" ], [ "than", "IN" ], [ "lowest", "JJS" ], [ "earning", "VBG" ], [ "employee", "NN" ], [ "with", "IN" ], [ "title", "NN" ], [ "mk_man", "NN" ], [ "?", "." ] ], "values": [ "MK_MAN" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(13) T(4) A(0) C(9) T(4) Filter(12) A(0) C(19) T(4) Root(3) Sel(0) N(0) A(2) C(19) T(4) Filter(2) A(0) C(9) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT employee_id , first_name , last_name , job_id FROM employees WHERE salary > ( SELECT max(salary) FROM employees WHERE job_id = 'PU_MAN' )", "query_toks": [ "SELECT", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "FROM", "employees", "WHERE", "salary", ">", "(", "SELECT", "max", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "'PU_MAN", "'", ")" ], "query_toks_no_value": [ "select", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "from", "employees", "where", "salary", ">", "(", "select", "max", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "value", ")" ], "question": "display the employee number, name( first name and last name ) and job title for all employees whose salary is more than any salary of those employees whose job title is PU_MAN.", "question_toks": [ "display", "employee", "number", ",", "name", "(", "first", "name", "and", "last", "name", ")", "and", "job", "title", "for", "all", "employee", "whose", "salary", "is", "more", "than", "any", "salary", "of", "those", "employee", "whose", "job", "title", "is", "pu_man", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"PU_MAN\"", null ] ] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "employee", "number", ",", "name", "(", "first", "name", "and", "last", "name", ")", "and", "job", "title", "for", "all", "employees", "whose", "salary", "is", "more", "than", "any", "salary", "of", "those", "employees", "whose", "job", "title", "is", "PU_MAN", "." ], "question_arg": [ [ "display" ], [ "employee" ], [ "number" ], [ "," ], [ "name" ], [ "(" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ ")" ], [ "and" ], [ "job", "title" ], [ "for" ], [ "all" ], [ "employee" ], [ "whose" ], [ "salary" ], [ "is" ], [ "more" ], [ "than" ], [ "any" ], [ "salary" ], [ "of" ], [ "those" ], [ "employee" ], [ "whose" ], [ "job", "title" ], [ "is" ], [ "pu_man" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "employee", "NN" ], [ "number", "NN" ], [ ",", "," ], [ "name", "NN" ], [ "(", "(" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ")", ")" ], [ "and", "CC" ], [ "job", "NN" ], [ "title", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "whose", "WP$" ], [ "salary", "NN" ], [ "is", "VBZ" ], [ "more", "RBR" ], [ "than", "IN" ], [ "any", "DT" ], [ "salary", "JJ" ], [ "of", "IN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "whose", "WP$" ], [ "job", "NN" ], [ "title", "NN" ], [ "is", "VBZ" ], [ "pu_man", "JJ" ], [ ".", "." ] ], "values": [ "PU_MAN", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(3) A(0) C(13) T(4) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(9) T(4) Filter(13) A(0) C(19) T(4) Root(3) Sel(0) N(0) A(1) C(19) T(4) Filter(2) A(0) C(9) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT employee_id , first_name , last_name , job_id FROM employees WHERE salary > ( SELECT max(salary) FROM employees WHERE job_id = 'PU_MAN' )", "query_toks": [ "SELECT", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "FROM", "employees", "WHERE", "salary", ">", "(", "SELECT", "max", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "'PU_MAN", "'", ")" ], "query_toks_no_value": [ "select", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "from", "employees", "where", "salary", ">", "(", "select", "max", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "value", ")" ], "question": "What are the employee ids, full names, and job ids for employees who make more than the highest earning employee with title PU_MAN?", "question_toks": [ "what", "are", "employee", "id", ",", "full", "name", ",", "and", "job", "id", "for", "employee", "who", "make", "more", "than", "highest", "earning", "employee", "with", "title", "pu_man", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"PU_MAN\"", null ] ] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "employee", "ids", ",", "full", "names", ",", "and", "job", "ids", "for", "employees", "who", "make", "more", "than", "the", "highest", "earning", "employee", "with", "title", "PU_MAN", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "employee", "id" ], [ "," ], [ "full" ], [ "name" ], [ "," ], [ "and" ], [ "job", "id" ], [ "for" ], [ "employee" ], [ "who" ], [ "make" ], [ "more" ], [ "than" ], [ "highest" ], [ "earning" ], [ "employee" ], [ "with" ], [ "title" ], [ "pu_man" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "employee", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "full", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "job", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "make", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "highest", "JJS" ], [ "earning", "VBG" ], [ "employee", "NN" ], [ "with", "IN" ], [ "title", "NN" ], [ "pu_man", "NN" ], [ "?", "." ] ], "values": [ "PU_MAN", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(3) A(0) C(13) T(4) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(9) T(4) Filter(13) A(0) C(19) T(4) Root(3) Sel(0) N(0) A(1) C(19) T(4) Filter(2) A(0) C(9) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT department_id , SUM(salary) FROM employees GROUP BY department_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "department_id", ",", "SUM", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "department_id", ",", "sum", "(", "salary", ")", "from", "employees", "group", "by", "department_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "display the department id and the total salary for those departments which contains at least two employees.", "question_toks": [ "display", "department", "id", "and", "total", "salary", "for", "those", "department", "which", "contains", "at", "least", "two", "employee", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 4, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "department", "id", "and", "the", "total", "salary", "for", "those", "departments", "which", "contains", "at", "least", "two", "employees", "." ], "question_arg": [ [ "display" ], [ "department", "id" ], [ "and" ], [ "total" ], [ "salary" ], [ "for" ], [ "those" ], [ "department" ], [ "which" ], [ "contains" ], [ "at" ], [ "least" ], [ "two" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "department", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "salary", "NN" ], [ "for", "IN" ], [ "those", "DT" ], [ "department", "NN" ], [ "which", "WDT" ], [ "contains", "VBZ" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(4) A(4) C(19) T(4) Filter(7) A(3) C(0) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT department_id , SUM(salary) FROM employees GROUP BY department_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "department_id", ",", "SUM", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "department_id", ",", "sum", "(", "salary", ")", "from", "employees", "group", "by", "department_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are total salaries and department id for each department that has more than 2 employees?", "question_toks": [ "what", "are", "total", "salary", "and", "department", "id", "for", "each", "department", "that", "ha", "more", "than", "2", "employee", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 4, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "total", "salaries", "and", "department", "id", "for", "each", "department", "that", "has", "more", "than", "2", "employees", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "total" ], [ "salary" ], [ "and" ], [ "department", "id" ], [ "for" ], [ "each" ], [ "department" ], [ "that" ], [ "ha" ], [ "more" ], [ "than" ], [ "2" ], [ "employee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "salary", "JJ" ], [ "and", "CC" ], [ "department", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "employee", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(4) A(4) C(19) T(4) Filter(7) A(3) C(0) T(4) V(0)" }, { "db_id": "hr_1", "query": "SELECT * FROM employees WHERE employee_id NOT IN (SELECT employee_id FROM job_history)", "query_toks": [ "SELECT", "*", "FROM", "employees", "WHERE", "employee_id", "NOT", "IN", "(", "SELECT", "employee_id", "FROM", "job_history", ")" ], "query_toks_no_value": [ "select", "*", "from", "employees", "where", "employee_id", "not", "in", "(", "select", "employee_id", "from", "job_history", ")" ], "question": "display all the information of those employees who did not have any job in the past.", "question_toks": [ "display", "all", "information", "of", "those", "employee", "who", "did", "not", "have", "any", "job", "in", "past", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 14, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "all", "the", "information", "of", "those", "employees", "who", "did", "not", "have", "any", "job", "in", "the", "past", "." ], "question_arg": [ [ "display" ], [ "all" ], [ "information" ], [ "of" ], [ "those" ], [ "employee" ], [ "who" ], [ "did" ], [ "not" ], [ "have" ], [ "any" ], [ "job" ], [ "in" ], [ "past" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "VB" ], [ "all", "DT" ], [ "information", "NN" ], [ "of", "IN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "job", "NN" ], [ "in", "IN" ], [ "past", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(4) Filter(19) A(0) C(13) T(4) Root(5) Sel(0) N(0) A(0) C(13) T(5)" }, { "db_id": "hr_1", "query": "SELECT * FROM employees WHERE employee_id NOT IN (SELECT employee_id FROM job_history)", "query_toks": [ "SELECT", "*", "FROM", "employees", "WHERE", "employee_id", "NOT", "IN", "(", "SELECT", "employee_id", "FROM", "job_history", ")" ], "query_toks_no_value": [ "select", "*", "from", "employees", "where", "employee_id", "not", "in", "(", "select", "employee_id", "from", "job_history", ")" ], "question": "What is all the information about employees who have never had a job in the past?", "question_toks": [ "what", "is", "all", "information", "about", "employee", "who", "have", "never", "had", "a", "job", "in", "past", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 14, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "is", "all", "the", "information", "about", "employees", "who", "have", "never", "had", "a", "job", "in", "the", "past", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "all" ], [ "information" ], [ "about" ], [ "employee" ], [ "who" ], [ "have" ], [ "never" ], [ "had" ], [ "a" ], [ "job" ], [ "in" ], [ "past" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "never", "RB" ], [ "had", "VBN" ], [ "a", "DT" ], [ "job", "NN" ], [ "in", "IN" ], [ "past", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(4) Filter(19) A(0) C(13) T(4) Root(5) Sel(0) N(0) A(0) C(13) T(5)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , salary , department_id , MAX(salary) FROM employees GROUP BY department_id", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "MAX", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "max", "(", "salary", ")", "from", "employees", "group", "by", "department_id" ], "question": "display the department ID, full name (first and last name), salary for those employees who is highest salary in every department.", "question_toks": [ "display", "department", "id", ",", "full", "name", "(", "first", "and", "last", "name", ")", ",", "salary", "for", "those", "employee", "who", "is", "highest", "salary", "in", "every", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ], [ 1, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "department", "ID", ",", "full", "name", "(", "first", "and", "last", "name", ")", ",", "salary", "for", "those", "employees", "who", "is", "highest", "salary", "in", "every", "department", "." ], "question_arg": [ [ "display" ], [ "department", "id" ], [ "," ], [ "full" ], [ "name" ], [ "(" ], [ "first" ], [ "and" ], [ "last", "name" ], [ ")" ], [ "," ], [ "salary" ], [ "for" ], [ "those" ], [ "employee" ], [ "who" ], [ "is" ], [ "highest" ], [ "salary" ], [ "in" ], [ "every" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "department", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "full", "JJ" ], [ "name", "NN" ], [ "(", "(" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ")", ")" ], [ ",", "," ], [ "salary", "JJ" ], [ "for", "IN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "highest", "JJS" ], [ "salary", "JJ" ], [ "in", "IN" ], [ "every", "DT" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(4) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(19) T(4) A(0) C(5) T(4) A(1) C(19) T(4)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , salary , department_id , MAX(salary) FROM employees GROUP BY department_id", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "MAX", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "max", "(", "salary", ")", "from", "employees", "group", "by", "department_id" ], "question": "What are the department ids, full names, and salaries for employees who make the most in their departments?", "question_toks": [ "what", "are", "department", "id", ",", "full", "name", ",", "and", "salary", "for", "employee", "who", "make", "most", "in", "their", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ], [ 1, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "department", "ids", ",", "full", "names", ",", "and", "salaries", "for", "employees", "who", "make", "the", "most", "in", "their", "departments", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "department", "id" ], [ "," ], [ "full" ], [ "name" ], [ "," ], [ "and" ], [ "salary" ], [ "for" ], [ "employee" ], [ "who" ], [ "make" ], [ "most" ], [ "in" ], [ "their" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "department", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "full", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "salary", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "make", "VBP" ], [ "most", "RBS" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(5) Sel(0) N(4) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(19) T(4) A(0) C(5) T(4) A(1) C(19) T(4)" }, { "db_id": "hr_1", "query": "SELECT T1.first_name , T1.last_name , T2.department_name , T3.city , T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "T2.department_name", ",", "T3.city", ",", "T3.state_province", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "JOIN", "locations", "AS", "T3", "ON", "T2.location_id", "=", "T3.location_id" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "t2", ".", "department_name", ",", "t3", ".", "city", ",", "t3", ".", "state_province", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "join", "locations", "as", "t3", "on", "t2", ".", "location_id", "=", "t3", ".", "location_id" ], "question": "display the first and last name, department, city, and state province for each employee.", "question_toks": [ "display", "first", "and", "last", "name", ",", "department", ",", "city", ",", "and", "state", "province", "for", "each", "employee", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "first", "and", "last", "name", ",", "department", ",", "city", ",", "and", "state", "province", "for", "each", "employee", "." ], "question_arg": [ [ "display" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "," ], [ "department" ], [ "," ], [ "city" ], [ "," ], [ "and" ], [ "state", "province" ], [ "for" ], [ "each" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "department", "NN" ], [ ",", "," ], [ "city", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "state", "NN" ], [ "province", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(4) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(6) T(2) A(0) C(25) T(6) A(0) C(26) T(6)" }, { "db_id": "hr_1", "query": "SELECT T1.first_name , T1.last_name , T2.department_name , T3.city , T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "T2.department_name", ",", "T3.city", ",", "T3.state_province", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "JOIN", "locations", "AS", "T3", "ON", "T2.location_id", "=", "T3.location_id" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "t2", ".", "department_name", ",", "t3", ".", "city", ",", "t3", ".", "state_province", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "join", "locations", "as", "t3", "on", "t2", ".", "location_id", "=", "t3", ".", "location_id" ], "question": "What are the full names, departments, cities, and state provinces for each employee?", "question_toks": [ "what", "are", "full", "name", ",", "department", ",", "city", ",", "and", "state", "province", "for", "each", "employee", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "full", "names", ",", "departments", ",", "cities", ",", "and", "state", "provinces", "for", "each", "employee", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "," ], [ "department" ], [ "," ], [ "city" ], [ "," ], [ "and" ], [ "state", "province" ], [ "for" ], [ "each" ], [ "employee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "department", "NN" ], [ ",", "," ], [ "city", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "state", "NN" ], [ "province", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "employee", "NN" ], [ "?", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(5) Sel(0) N(4) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(6) T(2) A(0) C(25) T(6) A(0) C(26) T(6)" }, { "db_id": "hr_1", "query": "SELECT T1.first_name , T1.last_name , T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%'", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "T3.city", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "JOIN", "locations", "AS", "T3", "ON", "T2.location_id", "=", "T3.location_id", "WHERE", "T1.first_name", "LIKE", "'", "%", "z", "%", "'" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "t3", ".", "city", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "join", "locations", "as", "t3", "on", "t2", ".", "location_id", "=", "t3", ".", "location_id", "where", "t1", ".", "first_name", "like", "value" ], "question": "display those employees who contain a letter z to their first name and also display their last name, city.", "question_toks": [ "display", "those", "employee", "who", "contain", "a", "letter", "z", "to", "their", "first", "name", "and", "also", "display", "their", "last", "name", ",", "city", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%z%\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "those", "employees", "who", "contain", "a", "letter", "z", "to", "their", "first", "name", "and", "also", "display", "their", "last", "name", ",", "city", "." ], "question_arg": [ [ "display" ], [ "those" ], [ "employee" ], [ "who" ], [ "contain" ], [ "a" ], [ "letter" ], [ "z" ], [ "to" ], [ "their" ], [ "first", "name" ], [ "and" ], [ "also" ], [ "display" ], [ "their" ], [ "last", "name" ], [ "," ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "contain", "VBP" ], [ "a", "DT" ], [ "letter", "NN" ], [ "z", "NN" ], [ "to", "TO" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "also", "RB" ], [ "display", "VBP" ], [ "their", "PRP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "city", "NN" ], [ ".", "." ] ], "values": [ "1", "a", "z" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(25) T(6) Filter(0) Filter(18) A(0) C(5) T(4) Root(5) Sel(0) N(0) A(0) C(5) T(2) Filter(9) A(0) C(14) T(4) V(2)" }, { "db_id": "hr_1", "query": "SELECT T1.first_name , T1.last_name , T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%'", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "T3.city", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "JOIN", "locations", "AS", "T3", "ON", "T2.location_id", "=", "T3.location_id", "WHERE", "T1.first_name", "LIKE", "'", "%", "z", "%", "'" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "t3", ".", "city", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "join", "locations", "as", "t3", "on", "t2", ".", "location_id", "=", "t3", ".", "location_id", "where", "t1", ".", "first_name", "like", "value" ], "question": "What are the full names and cities of employees who have the letter Z in their first names?", "question_toks": [ "what", "are", "full", "name", "and", "city", "of", "employee", "who", "have", "letter", "z", "in", "their", "first", "name", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%z%\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "full", "names", "and", "cities", "of", "employees", "who", "have", "the", "letter", "Z", "in", "their", "first", "names", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "and" ], [ "city" ], [ "of" ], [ "employee" ], [ "who" ], [ "have" ], [ "letter" ], [ "z" ], [ "in" ], [ "their" ], [ "first", "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "city", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "letter", "NN" ], [ "z", "NN" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "Z", "1", "James", "z" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(25) T(6) Filter(0) Filter(18) A(0) C(5) T(4) Root(5) Sel(0) N(0) A(0) C(5) T(2) Filter(9) A(0) C(14) T(4) V(3)" }, { "db_id": "hr_1", "query": "SELECT T1.department_name , T2.city , T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id = T1.location_id", "query_toks": [ "SELECT", "T1.department_name", ",", "T2.city", ",", "T2.state_province", "FROM", "departments", "AS", "T1", "JOIN", "locations", "AS", "T2", "ON", "T2.location_id", "=", "T1.location_id" ], "query_toks_no_value": [ "select", "t1", ".", "department_name", ",", "t2", ".", "city", ",", "t2", ".", "state_province", "from", "departments", "as", "t1", "join", "locations", "as", "t2", "on", "t2", ".", "location_id", "=", "t1", ".", "location_id" ], "question": "display the department name, city, and state province for each department.", "question_toks": [ "display", "department", "name", ",", "city", ",", "and", "state", "province", "for", "each", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 30, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "department", "name", ",", "city", ",", "and", "state", "province", "for", "each", "department", "." ], "question_arg": [ [ "display" ], [ "department", "name" ], [ "," ], [ "city" ], [ "," ], [ "and" ], [ "state", "province" ], [ "for" ], [ "each" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "department", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "city", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "state", "NN" ], [ "province", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(6) T(2) A(0) C(25) T(6) A(0) C(26) T(6)" }, { "db_id": "hr_1", "query": "SELECT T1.department_name , T2.city , T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id = T1.location_id", "query_toks": [ "SELECT", "T1.department_name", ",", "T2.city", ",", "T2.state_province", "FROM", "departments", "AS", "T1", "JOIN", "locations", "AS", "T2", "ON", "T2.location_id", "=", "T1.location_id" ], "query_toks_no_value": [ "select", "t1", ".", "department_name", ",", "t2", ".", "city", ",", "t2", ".", "state_province", "from", "departments", "as", "t1", "join", "locations", "as", "t2", "on", "t2", ".", "location_id", "=", "t1", ".", "location_id" ], "question": "What are the department names, cities, and state provinces for each department?", "question_toks": [ "what", "are", "department", "name", ",", "city", ",", "and", "state", "province", "for", "each", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 30, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "department", "names", ",", "cities", ",", "and", "state", "provinces", "for", "each", "department", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "department", "name" ], [ "," ], [ "city" ], [ "," ], [ "and" ], [ "state", "province" ], [ "for" ], [ "each" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "department", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "city", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "state", "NN" ], [ "province", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(6) T(2) A(0) C(25) T(6) A(0) C(26) T(6)" }, { "db_id": "hr_1", "query": "SELECT T1.first_name , T1.last_name , T1.employee_id , T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "T1.employee_id", ",", "T4.country_name", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "JOIN", "locations", "AS", "T3", "ON", "T2.location_id", "=", "T3.location_id", "JOIN", "countries", "AS", "T4", "ON", "T3.country_id", "=", "T4.country_id" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "t1", ".", "employee_id", ",", "t4", ".", "country_name", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "join", "locations", "as", "t3", "on", "t2", ".", "location_id", "=", "t3", ".", "location_id", "join", "countries", "as", "t4", "on", "t3", ".", "country_id", "=", "t4", ".", "country_id" ], "question": "display the full name (first and last name ) of employee with ID and name of the country presently where (s)he is working.", "question_toks": [ "display", "full", "name", "(", "first", "and", "last", "name", ")", "of", "employee", "with", "id", "and", "name", "of", "country", "presently", "where", "(", "s", ")", "he", "is", "working", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, 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": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "full", "name", "(", "first", "and", "last", "name", ")", "of", "employee", "with", "ID", "and", "name", "of", "the", "country", "presently", "where", "(", "s", ")", "he", "is", "working", "." ], "question_arg": [ [ "display" ], [ "full" ], [ "name" ], [ "(" ], [ "first" ], [ "and" ], [ "last", "name" ], [ ")" ], [ "of" ], [ "employee" ], [ "with" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "country" ], [ "presently" ], [ "where" ], [ "(" ], [ "s" ], [ ")" ], [ "he" ], [ "is" ], [ "working" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "full", "JJ" ], [ "name", "NN" ], [ "(", "(" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ")", ")" ], [ "of", "IN" ], [ "employee", "NN" ], [ "with", "IN" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "presently", "RB" ], [ "where", "WRB" ], [ "(", "(" ], [ "s", "NN" ], [ ")", ")" ], [ "he", "PRP" ], [ "is", "VBZ" ], [ "working", "VBG" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(3) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(13) T(4) A(0) C(4) T(1) Filter(18) A(0) C(5) T(4) Root(5) Sel(0) N(0) A(0) C(5) T(2)" }, { "db_id": "hr_1", "query": "SELECT T1.first_name , T1.last_name , T1.employee_id , T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "T1.employee_id", ",", "T4.country_name", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "JOIN", "locations", "AS", "T3", "ON", "T2.location_id", "=", "T3.location_id", "JOIN", "countries", "AS", "T4", "ON", "T3.country_id", "=", "T4.country_id" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "t1", ".", "employee_id", ",", "t4", ".", "country_name", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "join", "locations", "as", "t3", "on", "t2", ".", "location_id", "=", "t3", ".", "location_id", "join", "countries", "as", "t4", "on", "t3", ".", "country_id", "=", "t4", ".", "country_id" ], "question": "What the full names, ids of each employee and the name of the country they are in?", "question_toks": [ "what", "full", "name", ",", "id", "of", "each", "employee", "and", "name", "of", "country", "they", "are", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, 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": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "the", "full", "names", ",", "ids", "of", "each", "employee", "and", "the", "name", "of", "the", "country", "they", "are", "in", "?" ], "question_arg": [ [ "what" ], [ "full" ], [ "name" ], [ "," ], [ "id" ], [ "of" ], [ "each" ], [ "employee" ], [ "and" ], [ "name" ], [ "of" ], [ "country" ], [ "they" ], [ "are" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "full", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "id", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "employee", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(3) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(13) T(4) A(0) C(4) T(1) Filter(18) A(0) C(5) T(4) Root(5) Sel(0) N(0) A(0) C(5) T(2)" }, { "db_id": "hr_1", "query": "SELECT department_name , COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name", "query_toks": [ "SELECT", "department_name", ",", "COUNT", "(", "*", ")", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "GROUP", "BY", "department_name" ], "query_toks_no_value": [ "select", "department_name", ",", "count", "(", "*", ")", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "group", "by", "department_name" ], "question": "display the department name and number of employees in each of the department.", "question_toks": [ "display", "department", "name", "and", "number", "of", "employee", "in", "each", "of", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "department", "name", "and", "number", "of", "employees", "in", "each", "of", "the", "department", "." ], "question_arg": [ [ "display" ], [ "department", "name" ], [ "and" ], [ "number" ], [ "of" ], [ "employee" ], [ "in" ], [ "each" ], [ "of" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "department", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "of", "IN" ], [ "department", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(2) A(3) C(0) T(4)" }, { "db_id": "hr_1", "query": "SELECT department_name , COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name", "query_toks": [ "SELECT", "department_name", ",", "COUNT", "(", "*", ")", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "GROUP", "BY", "department_name" ], "query_toks_no_value": [ "select", "department_name", ",", "count", "(", "*", ")", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "group", "by", "department_name" ], "question": "What are the department names and how many employees work in each of them?", "question_toks": [ "what", "are", "department", "name", "and", "how", "many", "employee", "work", "in", "each", "of", "them", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "department", "names", "and", "how", "many", "employees", "work", "in", "each", "of", "them", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "department", "name" ], [ "and" ], [ "how" ], [ "many" ], [ "employee" ], [ "work" ], [ "in" ], [ "each" ], [ "of" ], [ "them" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "department", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "employee", "NN" ], [ "work", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "of", "IN" ], [ "them", "PRP" ], [ "?", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(2) A(3) C(0) T(4)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "salary", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "JOIN", "locations", "AS", "T3", "ON", "T2.location_id", "=", "T3.location_id", "WHERE", "T3.city", "=", "'London", "'" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "salary", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "join", "locations", "as", "t3", "on", "t2", ".", "location_id", "=", "t3", ".", "location_id", "where", "t3", ".", "city", "=", "value" ], "question": "display the full name (first and last name), and salary of those employees who working in any department located in London.", "question_toks": [ "display", "full", "name", "(", "first", "and", "last", "name", ")", ",", "and", "salary", "of", "those", "employee", "who", "working", "in", "any", "department", "located", "in", "london", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 33, false ], null ], "\"London\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "display", "the", "full", "name", "(", "first", "and", "last", "name", ")", ",", "and", "salary", "of", "those", "employees", "who", "working", "in", "any", "department", "located", "in", "London", "." ], "question_arg": [ [ "display" ], [ "full" ], [ "name" ], [ "(" ], [ "first" ], [ "and" ], [ "last", "name" ], [ ")" ], [ "," ], [ "and" ], [ "salary" ], [ "of" ], [ "those" ], [ "employee" ], [ "who" ], [ "working" ], [ "in" ], [ "any" ], [ "department" ], [ "located" ], [ "in" ], [ "london" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "NONE" ] ], "nltk_pos": [ [ "display", "NN" ], [ "full", "JJ" ], [ "name", "NN" ], [ "(", "(" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ")", ")" ], [ ",", "," ], [ "and", "CC" ], [ "salary", "NN" ], [ "of", "IN" ], [ "those", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "working", "VBG" ], [ "in", "IN" ], [ "any", "DT" ], [ "department", "NN" ], [ "located", "VBN" ], [ "in", "IN" ], [ "london", "NN" ], [ ".", "." ] ], "values": [ "London", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(19) T(4) Filter(0) Filter(18) A(0) C(5) T(4) Root(5) Sel(0) N(0) A(0) C(5) T(2) Filter(2) A(0) C(25) T(6) V(0)" }, { "db_id": "hr_1", "query": "SELECT first_name , last_name , salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "salary", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "JOIN", "locations", "AS", "T3", "ON", "T2.location_id", "=", "T3.location_id", "WHERE", "T3.city", "=", "'London", "'" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "salary", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "join", "locations", "as", "t3", "on", "t2", ".", "location_id", "=", "t3", ".", "location_id", "where", "t3", ".", "city", "=", "value" ], "question": "What are full names and salaries of employees working in the city of London?", "question_toks": [ "what", "are", "full", "name", "and", "salary", "of", "employee", "working", "in", "city", "of", "london", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 33, false ], null ], "\"London\"", null ] ] }, "names": [ "*", "region id", "region name", "country id", "country name", "region id", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "job id", "salary", "commission pct", "manager id", "department id", "employee id", "start date", "end date", "job id", "department id", "location id", "street address", "postal code", "city", "state province", "country id" ], "table_names": [ "regions", "countries", "departments", "jobs", "employees", "job history", "locations" ], "col_set": [ "*", "region id", "region name", "country id", "country name", "department id", "department name", "manager id", "location id", "job id", "job title", "min salary", "max salary", "employee id", "first name", "last name", "email", "phone number", "hire date", "salary", "commission pct", "start date", "end date", "street address", "postal code", "city", "state province" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 ], "keys": { "5": 1, "1": 1, "20": 10, "10": 10, "24": 6, "6": 6, "28": 10, "29": 6, "25": 25, "14": 14, "35": 3, "3": 3, "30": 30 }, "origin_question_toks": [ "What", "are", "full", "names", "and", "salaries", "of", "employees", "working", "in", "the", "city", "of", "London", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "and" ], [ "salary" ], [ "of" ], [ "employee" ], [ "working" ], [ "in" ], [ "city" ], [ "of" ], [ "london" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "city" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "salary", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "working", "VBG" ], [ "in", "IN" ], [ "city", "NN" ], [ "of", "IN" ], [ "london", "NN" ], [ "?", "." ] ], "values": [ "James", "London" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(14) T(4) A(0) C(15) T(4) A(0) C(19) T(4) Filter(0) Filter(18) A(0) C(5) T(4) Root(5) Sel(0) N(0) A(0) C(5) T(2) Filter(2) A(0) C(25) T(6) V(1)" }, { "db_id": "music_1", "query": "SELECT song_name , releasedate FROM song ORDER BY releasedate DESC LIMIT 1", "query_toks": [ "SELECT", "song_name", ",", "releasedate", "FROM", "song", "ORDER", "BY", "releasedate", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "song_name", ",", "releasedate", "from", "song", "order", "by", "releasedate", "desc", "limit", "value" ], "question": "What is the name of the song that was released in the most recent year?", "question_toks": [ "what", "is", "name", "of", "song", "that", "wa", "released", "in", "most", "recent", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 20, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "song", "that", "was", "released", "in", "the", "most", "recent", "year", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "song" ], [ "that" ], [ "wa" ], [ "released" ], [ "most", "popular", "in" ], [ "recent" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "that", "IN" ], [ "wa", "NN" ], [ "released", "VBN" ], [ "in", "IN" ], [ "most", "JJS" ], [ "recent", "JJ" ], [ "year", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(12) T(3) A(0) C(15) T(3) Sup(0) A(0) C(15) T(3)" }, { "db_id": "music_1", "query": "SELECT song_name , releasedate FROM song ORDER BY releasedate DESC LIMIT 1", "query_toks": [ "SELECT", "song_name", ",", "releasedate", "FROM", "song", "ORDER", "BY", "releasedate", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "song_name", ",", "releasedate", "from", "song", "order", "by", "releasedate", "desc", "limit", "value" ], "question": "What is the name of the song that was released most recently?", "question_toks": [ "what", "is", "name", "of", "song", "that", "wa", "released", "most", "recently", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 20, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "song", "that", "was", "released", "most", "recently", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "song" ], [ "that" ], [ "wa" ], [ "released" ], [ "most" ], [ "recently" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "that", "IN" ], [ "wa", "NN" ], [ "released", "VBN" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(12) T(3) A(0) C(15) T(3) Sup(0) A(0) C(15) T(3)" }, { "db_id": "music_1", "query": "SELECT f_id FROM files ORDER BY duration DESC LIMIT 1", "query_toks": [ "SELECT", "f_id", "FROM", "files", "ORDER", "BY", "duration", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "f_id", "from", "files", "order", "by", "duration", "desc", "limit", "value" ], "question": "What is the id of the longest song?", "question_toks": [ "what", "is", "id", "of", "longest", "song", "?" ], "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": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "longest", "song", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "longest" ], [ "song" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "longest", "JJS" ], [ "song", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(2) Sup(0) A(0) C(10) T(2)" }, { "db_id": "music_1", "query": "SELECT f_id FROM files ORDER BY duration DESC LIMIT 1", "query_toks": [ "SELECT", "f_id", "FROM", "files", "ORDER", "BY", "duration", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "f_id", "from", "files", "order", "by", "duration", "desc", "limit", "value" ], "question": "Find the id of the song that lasts the longest.", "question_toks": [ "find", "id", "of", "song", "that", "last", "longest", "." ], "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": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "Find", "the", "id", "of", "the", "song", "that", "lasts", "the", "longest", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "song" ], [ "that" ], [ "last" ], [ "longest" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "that", "IN" ], [ "last", "JJ" ], [ "longest", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(2) Sup(0) A(0) C(10) T(2)" }, { "db_id": "music_1", "query": "SELECT song_name FROM song WHERE languages = \"english\"", "query_toks": [ "SELECT", "song_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''" ], "query_toks_no_value": [ "select", "song_name", "from", "song", "where", "languages", "=", "value" ], "question": "Find the names of all English songs.", "question_toks": [ "find", "name", "of", "all", "english", "song", "." ], "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, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "English", "songs", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "english" ], [ "song" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "english", "JJ" ], [ "song", "NN" ], [ ".", "." ] ], "values": [ "english" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(3) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT song_name FROM song WHERE languages = \"english\"", "query_toks": [ "SELECT", "song_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''" ], "query_toks_no_value": [ "select", "song_name", "from", "song", "where", "languages", "=", "value" ], "question": "What are the names of all songs in English?", "question_toks": [ "what", "are", "name", "of", "all", "song", "in", "english", "?" ], "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, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "songs", "in", "English", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "song" ], [ "in" ], [ "english" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ "in", "IN" ], [ "english", "NN" ], [ "?", "." ] ], "values": [ "english" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(3) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT f_id FROM files WHERE formats = \"mp3\"", "query_toks": [ "SELECT", "f_id", "FROM", "files", "WHERE", "formats", "=", "``", "mp3", "''" ], "query_toks_no_value": [ "select", "f_id", "from", "files", "where", "formats", "=", "value" ], "question": "What are the id of songs whose format is mp3.", "question_toks": [ "what", "are", "id", "of", "song", "whose", "format", "is", "mp3", "." ], "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, 12, false ], null ], "\"mp3\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "id", "of", "songs", "whose", "format", "is", "mp3", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "song" ], [ "whose" ], [ "format" ], [ "is" ], [ "mp3" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "song", "NN" ], [ "whose", "WP$" ], [ "format", "NN" ], [ "is", "VBZ" ], [ "mp3", "VBN" ], [ ".", "." ] ], "values": [ "mp3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "music_1", "query": "SELECT f_id FROM files WHERE formats = \"mp3\"", "query_toks": [ "SELECT", "f_id", "FROM", "files", "WHERE", "formats", "=", "``", "mp3", "''" ], "query_toks_no_value": [ "select", "f_id", "from", "files", "where", "formats", "=", "value" ], "question": "What are the id of all the files in mp3 format?", "question_toks": [ "what", "are", "id", "of", "all", "file", "in", "mp3", "format", "?" ], "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, 12, false ], null ], "\"mp3\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "id", "of", "all", "the", "files", "in", "mp3", "format", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "file" ], [ "in" ], [ "mp3" ], [ "format" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "file", "NN" ], [ "in", "IN" ], [ "mp3", "NN" ], [ "format", "NN" ], [ "?", "." ] ], "values": [ "mp3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "music_1", "query": "SELECT DISTINCT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.rating > 9", "query_toks": [ "SELECT", "DISTINCT", "T1.artist_name", ",", "T1.country", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.rating", ">", "9" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "artist_name", ",", "t1", ".", "country", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "rating", ">", "value" ], "question": "List the name and country of origin for all singers who have produced songs with rating above 9.", "question_toks": [ "list", "name", "and", "country", "of", "origin", "for", "all", "singer", "who", "have", "produced", "song", "with", "rating", "above", "9", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 9.0, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "List", "the", "name", "and", "country", "of", "origin", "for", "all", "singers", "who", "have", "produced", "songs", "with", "rating", "above", "9", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "country" ], [ "of" ], [ "origin" ], [ "for" ], [ "all" ], [ "singer" ], [ "who" ], [ "have" ], [ "produced" ], [ "song" ], [ "with" ], [ "rating" ], [ "above" ], [ "9" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "country", "NN" ], [ "of", "IN" ], [ "origin", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "singer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "produced", "VBN" ], [ "song", "NN" ], [ "with", "IN" ], [ "rating", "NN" ], [ "above", "IN" ], [ "9", "CD" ], [ ".", "." ] ], "values": [ "9" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(4) T(1) A(0) C(5) T(1) Filter(5) A(0) C(2) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT DISTINCT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.rating > 9", "query_toks": [ "SELECT", "DISTINCT", "T1.artist_name", ",", "T1.country", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.rating", ">", "9" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "artist_name", ",", "t1", ".", "country", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "rating", ">", "value" ], "question": "What are the different names and countries of origins for all artists whose song ratings are above 9?", "question_toks": [ "what", "are", "different", "name", "and", "country", "of", "origin", "for", "all", "artist", "whose", "song", "rating", "are", "above", "9", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 9.0, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "different", "names", "and", "countries", "of", "origins", "for", "all", "artists", "whose", "song", "ratings", "are", "above", "9", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "name" ], [ "and" ], [ "country" ], [ "of" ], [ "origin" ], [ "for" ], [ "all" ], [ "artist" ], [ "whose" ], [ "song" ], [ "rating" ], [ "are" ], [ "above" ], [ "9" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "country", "NN" ], [ "of", "IN" ], [ "origin", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "artist", "NN" ], [ "whose", "WP$" ], [ "song", "NN" ], [ "rating", "NN" ], [ "are", "VBP" ], [ "above", "IN" ], [ "9", "CD" ], [ "?", "." ] ], "values": [ "9" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(4) T(1) A(0) C(5) T(1) Filter(5) A(0) C(2) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT DISTINCT T1.file_size , T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800", "query_toks": [ "SELECT", "DISTINCT", "T1.file_size", ",", "T1.formats", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T2.resolution", "<", "800" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "file_size", ",", "t1", ".", "formats", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t2", ".", "resolution", "<", "value" ], "question": "List the file size and format for all songs that have resolution lower than 800.", "question_toks": [ "list", "file", "size", "and", "format", "for", "all", "song", "that", "have", "resolution", "lower", "than", "800", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 21, false ], null ], 800.0, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "List", "the", "file", "size", "and", "format", "for", "all", "songs", "that", "have", "resolution", "lower", "than", "800", "." ], "question_arg": [ [ "list" ], [ "file", "size" ], [ "and" ], [ "format" ], [ "for" ], [ "all" ], [ "song" ], [ "that" ], [ "have" ], [ "resolution" ], [ "lower" ], [ "than" ], [ "800" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "file", "NN" ], [ "size", "NN" ], [ "and", "CC" ], [ "format", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "resolution", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "800", "CD" ], [ ".", "." ] ], "values": [ "800" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(9) T(2) A(0) C(11) T(2) Filter(4) A(0) C(16) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT DISTINCT T1.file_size , T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800", "query_toks": [ "SELECT", "DISTINCT", "T1.file_size", ",", "T1.formats", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T2.resolution", "<", "800" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "file_size", ",", "t1", ".", "formats", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t2", ".", "resolution", "<", "value" ], "question": "What are the file sizes and formats for all songs with a resolution lower than 800?", "question_toks": [ "what", "are", "file", "size", "and", "format", "for", "all", "song", "with", "a", "resolution", "lower", "than", "800", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 21, false ], null ], 800.0, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "file", "sizes", "and", "formats", "for", "all", "songs", "with", "a", "resolution", "lower", "than", "800", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "file", "size" ], [ "and" ], [ "format" ], [ "for" ], [ "all" ], [ "song" ], [ "with" ], [ "a" ], [ "resolution" ], [ "lower" ], [ "than" ], [ "800" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "file", "JJ" ], [ "size", "NN" ], [ "and", "CC" ], [ "format", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "resolution", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "800", "CD" ], [ "?", "." ] ], "values": [ "800" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(9) T(2) A(0) C(11) T(2) Filter(4) A(0) C(16) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1", "query_toks": [ "SELECT", "T1.artist_name", "FROM", "song", "AS", "T1", "JOIN", "files", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "ORDER", "BY", "T2.duration", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "artist_name", "from", "song", "as", "t1", "join", "files", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "order", "by", "t2", ".", "duration", "limit", "value" ], "question": "What is the name of the artist who produced the shortest song?", "question_toks": [ "what", "is", "name", "of", "artist", "who", "produced", "shortest", "song", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "artist", "who", "produced", "the", "shortest", "song", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "produced" ], [ "shortest" ], [ "song" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "produced", "VBD" ], [ "shortest", "JJS" ], [ "song", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(3) Sup(1) A(0) C(10) T(2)" }, { "db_id": "music_1", "query": "SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1", "query_toks": [ "SELECT", "T1.artist_name", "FROM", "song", "AS", "T1", "JOIN", "files", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "ORDER", "BY", "T2.duration", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "artist_name", "from", "song", "as", "t1", "join", "files", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "order", "by", "t2", ".", "duration", "limit", "value" ], "question": "What are the names of the artists who sang the shortest song?", "question_toks": [ "what", "are", "name", "of", "artist", "who", "sang", "shortest", "song", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "artists", "who", "sang", "the", "shortest", "song", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "sang" ], [ "shortest" ], [ "song" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "sang", "VBD" ], [ "shortest", "JJS" ], [ "song", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(3) Sup(1) A(0) C(10) T(2)" }, { "db_id": "music_1", "query": "SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.rating DESC LIMIT 3", "query_toks": [ "SELECT", "T1.artist_name", ",", "T1.country", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "ORDER", "BY", "T2.rating", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t1", ".", "artist_name", ",", "t1", ".", "country", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "order", "by", "t2", ".", "rating", "desc", "limit", "value" ], "question": "What are the names and countries of origin for the artists who produced the top three highly rated songs.", "question_toks": [ "what", "are", "name", "and", "country", "of", "origin", "for", "artist", "who", "produced", "top", "three", "highly", "rated", "song", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "countries", "of", "origin", "for", "the", "artists", "who", "produced", "the", "top", "three", "highly", "rated", "songs", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "country" ], [ "of" ], [ "origin" ], [ "for" ], [ "artist" ], [ "who" ], [ "produced" ], [ "top" ], [ "three" ], [ "highly" ], [ "rated" ], [ "song" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "country", "NN" ], [ "of", "IN" ], [ "origin", "NN" ], [ "for", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "produced", "VBD" ], [ "top", "JJ" ], [ "three", "CD" ], [ "highly", "RB" ], [ "rated", "VBN" ], [ "song", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(4) T(1) A(0) C(5) T(1) Sup(0) A(0) C(2) T(3)" }, { "db_id": "music_1", "query": "SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.rating DESC LIMIT 3", "query_toks": [ "SELECT", "T1.artist_name", ",", "T1.country", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "ORDER", "BY", "T2.rating", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t1", ".", "artist_name", ",", "t1", ".", "country", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "order", "by", "t2", ".", "rating", "desc", "limit", "value" ], "question": "What are the names of the singers who sang the top 3 most highly rated songs and what countries do they hail from?", "question_toks": [ "what", "are", "name", "of", "singer", "who", "sang", "top", "3", "most", "highly", "rated", "song", "and", "what", "country", "do", "they", "hail", "from", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "singers", "who", "sang", "the", "top", "3", "most", "highly", "rated", "songs", "and", "what", "countries", "do", "they", "hail", "from", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "singer" ], [ "who" ], [ "sang" ], [ "top" ], [ "3" ], [ "most" ], [ "highly" ], [ "rated" ], [ "song" ], [ "and" ], [ "what" ], [ "country" ], [ "do" ], [ "they" ], [ "hail" ], [ "from" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ "who", "WP" ], [ "sang", "VBD" ], [ "top", "JJ" ], [ "3", "CD" ], [ "most", "JJS" ], [ "highly", "RB" ], [ "rated", "VBN" ], [ "song", "NN" ], [ "and", "CC" ], [ "what", "WP" ], [ "country", "NN" ], [ "do", "VBP" ], [ "they", "PRP" ], [ "hail", "VB" ], [ "from", "IN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(4) T(1) A(0) C(5) T(1) Sup(0) A(0) C(2) T(3)" }, { "db_id": "music_1", "query": "SELECT count(*) FROM files WHERE duration LIKE \"4:%\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "files", "WHERE", "duration", "LIKE", "``", "4", ":", "%", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "files", "where", "duration", "like", "value" ], "question": "How many songs have 4 minute duration?", "question_toks": [ "how", "many", "song", "have", "4", "minute", "duration", "?" ], "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, 11, false ], null ], "\"4:%\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "How", "many", "songs", "have", "4", "minute", "duration", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "song" ], [ "have" ], [ "4" ], [ "minute" ], [ "duration" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "song", "NN" ], [ "have", "VBP" ], [ "4", "CD" ], [ "minute", "NN" ], [ "duration", "NN" ], [ "?", "." ] ], "values": [ "4", "4:" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(9) A(0) C(10) T(2) V(1)" }, { "db_id": "music_1", "query": "SELECT count(*) FROM files WHERE duration LIKE \"4:%\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "files", "WHERE", "duration", "LIKE", "``", "4", ":", "%", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "files", "where", "duration", "like", "value" ], "question": "What is the count of the songs that last approximately 4 minutes?", "question_toks": [ "what", "is", "count", "of", "song", "that", "last", "approximately", "4", "minute", "?" ], "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, 11, false ], null ], "\"4:%\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "count", "of", "the", "songs", "that", "last", "approximately", "4", "minutes", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "count" ], [ "of" ], [ "song" ], [ "that" ], [ "last" ], [ "approximately" ], [ "4" ], [ "minute" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "count", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "that", "IN" ], [ "last", "JJ" ], [ "approximately", "RB" ], [ "4", "CD" ], [ "minute", "NN" ], [ "?", "." ] ], "values": [ "4", "4:" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(9) A(0) C(10) T(2) V(1)" }, { "db_id": "music_1", "query": "SELECT count(*) FROM artist WHERE country = \"Bangladesh\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "artist", "WHERE", "country", "=", "``", "Bangladesh", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "artist", "where", "country", "=", "value" ], "question": "How many artists are from Bangladesh?", "question_toks": [ "how", "many", "artist", "are", "from", "bangladesh", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Bangladesh\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "How", "many", "artists", "are", "from", "Bangladesh", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "artist" ], [ "are" ], [ "from" ], [ "bangladesh" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "artist", "NN" ], [ "are", "VBP" ], [ "from", "IN" ], [ "bangladesh", "NN" ], [ "?", "." ] ], "values": [ "Bangladesh" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "music_1", "query": "SELECT count(*) FROM artist WHERE country = \"Bangladesh\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "artist", "WHERE", "country", "=", "``", "Bangladesh", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "artist", "where", "country", "=", "value" ], "question": "How many Bangladeshi artists are listed?", "question_toks": [ "how", "many", "bangladeshi", "artist", "are", "listed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Bangladesh\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "How", "many", "Bangladeshi", "artists", "are", "listed", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "bangladeshi" ], [ "artist" ], [ "are" ], [ "listed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "bangladeshi", "JJ" ], [ "artist", "NN" ], [ "are", "VBP" ], [ "listed", "VBN" ], [ "?", "." ] ], "values": [ "Bangladesh" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "music_1", "query": "SELECT avg(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = \"Female\"", "query_toks": [ "SELECT", "avg", "(", "T2.rating", ")", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T1.gender", "=", "``", "Female", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "rating", ")", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t1", ".", "gender", "=", "value" ], "question": "What is the average rating of songs produced by female artists?", "question_toks": [ "what", "is", "average", "rating", "of", "song", "produced", "by", "female", "artist", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Female\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "average", "rating", "of", "songs", "produced", "by", "female", "artists", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "rating" ], [ "of" ], [ "song" ], [ "produced" ], [ "by" ], [ "female" ], [ "artist" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "rating", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "female", "JJ" ], [ "artist", "NN" ], [ "?", "." ] ], "values": [ "Female" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(2) T(3) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "music_1", "query": "SELECT avg(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = \"Female\"", "query_toks": [ "SELECT", "avg", "(", "T2.rating", ")", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T1.gender", "=", "``", "Female", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "rating", ")", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t1", ".", "gender", "=", "value" ], "question": "How many songs, on average, are sung by a female artist?", "question_toks": [ "how", "many", "song", ",", "on", "average", ",", "are", "sung", "by", "a", "female", "artist", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Female\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "How", "many", "songs", ",", "on", "average", ",", "are", "sung", "by", "a", "female", "artist", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "song" ], [ "," ], [ "on" ], [ "average" ], [ "," ], [ "are" ], [ "sung" ], [ "by" ], [ "a" ], [ "female" ], [ "artist" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "song", "NN" ], [ ",", "," ], [ "on", "IN" ], [ "average", "NN" ], [ ",", "," ], [ "are", "VBP" ], [ "sung", "VBN" ], [ "by", "IN" ], [ "a", "DT" ], [ "female", "JJ" ], [ "artist", "NN" ], [ "?", "." ] ], "values": [ "Female" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(2) T(3) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "music_1", "query": "SELECT formats FROM files GROUP BY formats ORDER BY COUNT (*) DESC LIMIT 1", "query_toks": [ "SELECT", "formats", "FROM", "files", "GROUP", "BY", "formats", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "formats", "from", "files", "group", "by", "formats", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most popular file format?", "question_toks": [ "what", "is", "most", "popular", "file", "format", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "most", "popular", "file", "format", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most", "popular", "in" ], [ "file" ], [ "format" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "popular", "JJ" ], [ "file", "NN" ], [ "format", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(11) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "music_1", "query": "SELECT formats FROM files GROUP BY formats ORDER BY COUNT (*) DESC LIMIT 1", "query_toks": [ "SELECT", "formats", "FROM", "files", "GROUP", "BY", "formats", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "formats", "from", "files", "group", "by", "formats", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the file format that is used by the most files.", "question_toks": [ "find", "file", "format", "that", "is", "used", "by", "most", "file", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "Find", "the", "file", "format", "that", "is", "used", "by", "the", "most", "files", "." ], "question_arg": [ [ "find" ], [ "file" ], [ "format" ], [ "that" ], [ "is" ], [ "used" ], [ "by" ], [ "most" ], [ "file" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "file", "JJ" ], [ "format", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "used", "VBN" ], [ "by", "IN" ], [ "most", "JJS" ], [ "file", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(11) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "music_1", "query": "SELECT artist_name FROM artist WHERE country = \"UK\" INTERSECT SELECT artist_name FROM song WHERE languages = \"english\"", "query_toks": [ "SELECT", "artist_name", "FROM", "artist", "WHERE", "country", "=", "``", "UK", "''", "INTERSECT", "SELECT", "artist_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''" ], "query_toks_no_value": [ "select", "artist_name", "from", "artist", "where", "country", "=", "value", "intersect", "select", "artist_name", "from", "song", "where", "languages", "=", "value" ], "question": "Find the names of the artists who are from UK and have produced English songs.", "question_toks": [ "find", "name", "of", "artist", "who", "are", "from", "uk", "and", "have", "produced", "english", "song", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"UK\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "artists", "who", "are", "from", "UK", "and", "have", "produced", "English", "songs", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "are" ], [ "from" ], [ "uk" ], [ "and" ], [ "have" ], [ "produced" ], [ "english" ], [ "song" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "from", "IN" ], [ "uk", "JJ" ], [ "and", "CC" ], [ "have", "VBP" ], [ "produced", "VBN" ], [ "english", "JJ" ], [ "song", "NN" ], [ ".", "." ] ], "values": [ "english", "UK" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(5) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(4) T(3) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT artist_name FROM artist WHERE country = \"UK\" INTERSECT SELECT artist_name FROM song WHERE languages = \"english\"", "query_toks": [ "SELECT", "artist_name", "FROM", "artist", "WHERE", "country", "=", "``", "UK", "''", "INTERSECT", "SELECT", "artist_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''" ], "query_toks_no_value": [ "select", "artist_name", "from", "artist", "where", "country", "=", "value", "intersect", "select", "artist_name", "from", "song", "where", "languages", "=", "value" ], "question": "What are the names of the artists that are from the UK and sang songs in English?", "question_toks": [ "what", "are", "name", "of", "artist", "that", "are", "from", "uk", "and", "sang", "song", "in", "english", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"UK\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "artists", "that", "are", "from", "the", "UK", "and", "sang", "songs", "in", "English", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "artist" ], [ "that" ], [ "are" ], [ "from" ], [ "uk" ], [ "and" ], [ "sang" ], [ "song" ], [ "in" ], [ "english" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "from", "IN" ], [ "uk", "JJ" ], [ "and", "CC" ], [ "sang", "NN" ], [ "song", "NN" ], [ "in", "IN" ], [ "english", "NN" ], [ "?", "." ] ], "values": [ "english", "UK" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(5) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(4) T(3) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT f_id FROM files WHERE formats = \"mp4\" INTERSECT SELECT f_id FROM song WHERE resolution < 1000", "query_toks": [ "SELECT", "f_id", "FROM", "files", "WHERE", "formats", "=", "``", "mp4", "''", "INTERSECT", "SELECT", "f_id", "FROM", "song", "WHERE", "resolution", "<", "1000" ], "query_toks_no_value": [ "select", "f_id", "from", "files", "where", "formats", "=", "value", "intersect", "select", "f_id", "from", "song", "where", "resolution", "<", "value" ], "question": "Find the id of songs that are available in mp4 format and have resolution lower than 1000.", "question_toks": [ "find", "id", "of", "song", "that", "are", "available", "in", "mp4", "format", "and", "have", "resolution", "lower", "than", "1000", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 21, false ], null ], 1000.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"mp4\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "Find", "the", "id", "of", "songs", "that", "are", "available", "in", "mp4", "format", "and", "have", "resolution", "lower", "than", "1000", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "song" ], [ "that" ], [ "are" ], [ "available" ], [ "in" ], [ "mp4" ], [ "format" ], [ "and" ], [ "have" ], [ "resolution" ], [ "lower" ], [ "than" ], [ "1000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "available", "JJ" ], [ "in", "IN" ], [ "mp4", "JJ" ], [ "format", "NN" ], [ "and", "CC" ], [ "have", "VBP" ], [ "resolution", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ ".", "." ] ], "values": [ "1000", "mp4" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(2) A(0) C(11) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(4) A(0) C(16) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT f_id FROM files WHERE formats = \"mp4\" INTERSECT SELECT f_id FROM song WHERE resolution < 1000", "query_toks": [ "SELECT", "f_id", "FROM", "files", "WHERE", "formats", "=", "``", "mp4", "''", "INTERSECT", "SELECT", "f_id", "FROM", "song", "WHERE", "resolution", "<", "1000" ], "query_toks_no_value": [ "select", "f_id", "from", "files", "where", "formats", "=", "value", "intersect", "select", "f_id", "from", "song", "where", "resolution", "<", "value" ], "question": "What is the id of the files that are available in the format of mp4 and a resolution smaller than 1000?", "question_toks": [ "what", "is", "id", "of", "file", "that", "are", "available", "in", "format", "of", "mp4", "and", "a", "resolution", "smaller", "than", "1000", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 21, false ], null ], 1000.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"mp4\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "files", "that", "are", "available", "in", "the", "format", "of", "mp4", "and", "a", "resolution", "smaller", "than", "1000", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "file" ], [ "that" ], [ "are" ], [ "available" ], [ "in" ], [ "format" ], [ "of" ], [ "mp4" ], [ "and" ], [ "a" ], [ "resolution" ], [ "smaller" ], [ "than" ], [ "1000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "file", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "available", "JJ" ], [ "in", "IN" ], [ "format", "NN" ], [ "of", "IN" ], [ "mp4", "NN" ], [ "and", "CC" ], [ "a", "DT" ], [ "resolution", "NN" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ "?", "." ] ], "values": [ "1000", "mp4" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(2) A(0) C(11) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(4) A(0) C(16) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = \"Female\" AND T2.languages = \"bangla\"", "query_toks": [ "SELECT", "T1.country", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T1.gender", "=", "``", "Female", "''", "AND", "T2.languages", "=", "``", "bangla", "''" ], "query_toks_no_value": [ "select", "t1", ".", "country", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t1", ".", "gender", "=", "value", "and", "t2", ".", "languages", "=", "value" ], "question": "What is the country of origin of the artist who is female and produced a song in Bangla?", "question_toks": [ "what", "is", "country", "of", "origin", "of", "artist", "who", "is", "female", "and", "produced", "a", "song", "in", "bangla", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Female\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"bangla\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "country", "of", "origin", "of", "the", "artist", "who", "is", "female", "and", "produced", "a", "song", "in", "Bangla", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "country" ], [ "of" ], [ "origin" ], [ "of" ], [ "artist" ], [ "who" ], [ "is" ], [ "female" ], [ "and" ], [ "produced" ], [ "a" ], [ "song" ], [ "in" ], [ "bangla" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "country", "NN" ], [ "of", "IN" ], [ "origin", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "female", "JJ" ], [ "and", "CC" ], [ "produced", "VBD" ], [ "a", "DT" ], [ "song", "NN" ], [ "in", "IN" ], [ "bangla", "NN" ], [ "?", "." ] ], "values": [ "bangla", "Female" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(2) A(0) C(6) T(1) V(1) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = \"Female\" AND T2.languages = \"bangla\"", "query_toks": [ "SELECT", "T1.country", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T1.gender", "=", "``", "Female", "''", "AND", "T2.languages", "=", "``", "bangla", "''" ], "query_toks_no_value": [ "select", "t1", ".", "country", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t1", ".", "gender", "=", "value", "and", "t2", ".", "languages", "=", "value" ], "question": "What countries are the female artists who sung in the language Bangla from?", "question_toks": [ "what", "country", "are", "female", "artist", "who", "sung", "in", "language", "bangla", "from", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Female\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"bangla\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "countries", "are", "the", "female", "artists", "who", "sung", "in", "the", "language", "Bangla", "from", "?" ], "question_arg": [ [ "what" ], [ "country" ], [ "are" ], [ "female" ], [ "artist" ], [ "who" ], [ "sung" ], [ "in" ], [ "language" ], [ "bangla" ], [ "from" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "country", "NN" ], [ "are", "VBP" ], [ "female", "JJ" ], [ "artist", "NN" ], [ "who", "WP" ], [ "sung", "VBP" ], [ "in", "IN" ], [ "language", "NN" ], [ "bangla", "NN" ], [ "from", "IN" ], [ "?", "." ] ], "values": [ "bangla", "Female" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(2) A(0) C(6) T(1) V(1) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = \"mp3\" AND T2.resolution < 800", "query_toks": [ "SELECT", "avg", "(", "T1.duration", ")", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.formats", "=", "``", "mp3", "''", "AND", "T2.resolution", "<", "800" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "duration", ")", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "formats", "=", "value", "and", "t2", ".", "resolution", "<", "value" ], "question": "What is the average duration of songs that have mp3 format and resolution below 800?", "question_toks": [ "what", "is", "average", "duration", "of", "song", "that", "have", "mp3", "format", "and", "resolution", "below", "800", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"mp3\"", null ], "and", [ false, 4, [ 0, [ 0, 21, false ], null ], 800.0, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "average", "duration", "of", "songs", "that", "have", "mp3", "format", "and", "resolution", "below", "800", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "duration" ], [ "of" ], [ "song" ], [ "that" ], [ "have" ], [ "mp3" ], [ "format" ], [ "and" ], [ "resolution" ], [ "below" ], [ "800" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "duration", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "mp3", "VBN" ], [ "format", "NN" ], [ "and", "CC" ], [ "resolution", "NN" ], [ "below", "IN" ], [ "800", "CD" ], [ "?", "." ] ], "values": [ "mp3", "800" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(10) T(2) Filter(0) Filter(2) A(0) C(11) T(2) V(0) Filter(4) A(0) C(16) T(3) V(1)" }, { "db_id": "music_1", "query": "SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = \"mp3\" AND T2.resolution < 800", "query_toks": [ "SELECT", "avg", "(", "T1.duration", ")", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.formats", "=", "``", "mp3", "''", "AND", "T2.resolution", "<", "800" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "duration", ")", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "formats", "=", "value", "and", "t2", ".", "resolution", "<", "value" ], "question": "What is the average song duration for the songs that are in mp3 format and whose resolution below 800?", "question_toks": [ "what", "is", "average", "song", "duration", "for", "song", "that", "are", "in", "mp3", "format", "and", "whose", "resolution", "below", "800", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"mp3\"", null ], "and", [ false, 4, [ 0, [ 0, 21, false ], null ], 800.0, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "average", "song", "duration", "for", "the", "songs", "that", "are", "in", "mp3", "format", "and", "whose", "resolution", "below", "800", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "song" ], [ "duration" ], [ "for" ], [ "song" ], [ "that" ], [ "are" ], [ "in" ], [ "mp3" ], [ "format" ], [ "and" ], [ "whose" ], [ "resolution" ], [ "below" ], [ "800" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "song", "JJ" ], [ "duration", "NN" ], [ "for", "IN" ], [ "song", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "mp3", "JJ" ], [ "format", "NN" ], [ "and", "CC" ], [ "whose", "WP$" ], [ "resolution", "NN" ], [ "below", "IN" ], [ "800", "CD" ], [ "?", "." ] ], "values": [ "mp3", "800" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(10) T(2) Filter(0) Filter(2) A(0) C(11) T(2) V(0) Filter(4) A(0) C(16) T(3) V(1)" }, { "db_id": "music_1", "query": "SELECT count(*) , gender FROM artist GROUP BY gender", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "gender", "FROM", "artist", "GROUP", "BY", "gender" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "gender", "from", "artist", "group", "by", "gender" ], "question": "What is the number of artists for each gender?", "question_toks": [ "what", "is", "number", "of", "artist", "for", "each", "gender", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "artists", "for", "each", "gender", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "artist" ], [ "for" ], [ "each" ], [ "gender" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "gender", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(1) A(0) C(6) T(1)" }, { "db_id": "music_1", "query": "SELECT count(*) , gender FROM artist GROUP BY gender", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "gender", "FROM", "artist", "GROUP", "BY", "gender" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "gender", "from", "artist", "group", "by", "gender" ], "question": "How many artists are male and how many are female?", "question_toks": [ "how", "many", "artist", "are", "male", "and", "how", "many", "are", "female", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "How", "many", "artists", "are", "male", "and", "how", "many", "are", "female", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "artist" ], [ "are" ], [ "male" ], [ "and" ], [ "how" ], [ "many" ], [ "are" ], [ "female" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "artist", "NN" ], [ "are", "VBP" ], [ "male", "JJ" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "are", "VBP" ], [ "female", "JJ" ], [ "?", "." ] ], "values": [ "Female", "Male" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(1) A(0) C(6) T(1)" }, { "db_id": "music_1", "query": "SELECT avg(rating) , languages FROM song GROUP BY languages", "query_toks": [ "SELECT", "avg", "(", "rating", ")", ",", "languages", "FROM", "song", "GROUP", "BY", "languages" ], "query_toks_no_value": [ "select", "avg", "(", "rating", ")", ",", "languages", "from", "song", "group", "by", "languages" ], "question": "What is the average rating of songs for each language?", "question_toks": [ "what", "is", "average", "rating", "of", "song", "for", "each", "language", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "average", "rating", "of", "songs", "for", "each", "language", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "rating" ], [ "of" ], [ "song" ], [ "for" ], [ "each" ], [ "language" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "rating", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "language", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(2) T(3) A(0) C(14) T(3)" }, { "db_id": "music_1", "query": "SELECT avg(rating) , languages FROM song GROUP BY languages", "query_toks": [ "SELECT", "avg", "(", "rating", ")", ",", "languages", "FROM", "song", "GROUP", "BY", "languages" ], "query_toks_no_value": [ "select", "avg", "(", "rating", ")", ",", "languages", "from", "song", "group", "by", "languages" ], "question": "What is the average song rating for each language?", "question_toks": [ "what", "is", "average", "song", "rating", "for", "each", "language", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "average", "song", "rating", "for", "each", "language", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "song" ], [ "rating" ], [ "for" ], [ "each" ], [ "language" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "song", "JJ" ], [ "rating", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "language", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(2) T(3) A(0) C(14) T(3)" }, { "db_id": "music_1", "query": "SELECT T1.gender , T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.resolution LIMIT 1", "query_toks": [ "SELECT", "T1.gender", ",", "T1.artist_name", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "ORDER", "BY", "T2.resolution", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "gender", ",", "t1", ".", "artist_name", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "order", "by", "t2", ".", "resolution", "limit", "value" ], "question": "Return the gender and name of artist who produced the song with the lowest resolution.", "question_toks": [ "return", "gender", "and", "name", "of", "artist", "who", "produced", "song", "with", "lowest", "resolution", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "Return", "the", "gender", "and", "name", "of", "artist", "who", "produced", "the", "song", "with", "the", "lowest", "resolution", "." ], "question_arg": [ [ "return" ], [ "gender" ], [ "and" ], [ "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "produced" ], [ "song" ], [ "with" ], [ "lowest" ], [ "resolution" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "gender", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "produced", "VBD" ], [ "song", "NN" ], [ "with", "IN" ], [ "lowest", "JJS" ], [ "resolution", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(6) T(1) A(0) C(4) T(1) Sup(1) A(0) C(16) T(3)" }, { "db_id": "music_1", "query": "SELECT T1.gender , T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.resolution LIMIT 1", "query_toks": [ "SELECT", "T1.gender", ",", "T1.artist_name", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "ORDER", "BY", "T2.resolution", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "gender", ",", "t1", ".", "artist_name", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "order", "by", "t2", ".", "resolution", "limit", "value" ], "question": "What is the gender and name of the artist who sang the song with the smallest resolution?", "question_toks": [ "what", "is", "gender", "and", "name", "of", "artist", "who", "sang", "song", "with", "smallest", "resolution", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "gender", "and", "name", "of", "the", "artist", "who", "sang", "the", "song", "with", "the", "smallest", "resolution", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "gender" ], [ "and" ], [ "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "sang" ], [ "song" ], [ "with" ], [ "smallest" ], [ "resolution" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "gender", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "sang", "VBD" ], [ "song", "NN" ], [ "with", "IN" ], [ "smallest", "JJS" ], [ "resolution", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(6) T(1) A(0) C(4) T(1) Sup(1) A(0) C(16) T(3)" }, { "db_id": "music_1", "query": "SELECT count(*) , formats FROM files GROUP BY formats", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "formats", "FROM", "files", "GROUP", "BY", "formats" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "formats", "from", "files", "group", "by", "formats" ], "question": "For each file format, return the number of artists who released songs in that format.", "question_toks": [ "for", "each", "file", "format", ",", "return", "number", "of", "artist", "who", "released", "song", "in", "that", "format", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "For", "each", "file", "format", ",", "return", "the", "number", "of", "artists", "who", "released", "songs", "in", "that", "format", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "file" ], [ "format" ], [ "," ], [ "return" ], [ "number" ], [ "of" ], [ "artist" ], [ "who" ], [ "released" ], [ "song" ], [ "in" ], [ "that" ], [ "format" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "file", "NN" ], [ "format", "NN" ], [ ",", "," ], [ "return", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "released", "VBD" ], [ "song", "NN" ], [ "in", "IN" ], [ "that", "DT" ], [ "format", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(2) A(0) C(11) T(2)" }, { "db_id": "music_1", "query": "SELECT count(*) , formats FROM files GROUP BY formats", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "formats", "FROM", "files", "GROUP", "BY", "formats" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "formats", "from", "files", "group", "by", "formats" ], "question": "How many songs were released for each format?", "question_toks": [ "how", "many", "song", "were", "released", "for", "each", "format", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "How", "many", "songs", "were", "released", "for", "each", "format", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "song" ], [ "were" ], [ "released" ], [ "for" ], [ "each" ], [ "format" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "song", "NN" ], [ "were", "VBD" ], [ "released", "VBN" ], [ "for", "IN" ], [ "each", "DT" ], [ "format", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(2) A(0) C(11) T(2)" }, { "db_id": "music_1", "query": "SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT min(resolution) FROM song WHERE languages = \"english\")", "query_toks": [ "SELECT", "DISTINCT", "song_name", "FROM", "song", "WHERE", "resolution", ">", "(", "SELECT", "min", "(", "resolution", ")", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''", ")" ], "query_toks_no_value": [ "select", "distinct", "song_name", "from", "song", "where", "resolution", ">", "(", "select", "min", "(", "resolution", ")", "from", "song", "where", "languages", "=", "value", ")" ], "question": "Find the distinct names of all songs that have a higher resolution than some songs in English.", "question_toks": [ "find", "distinct", "name", "of", "all", "song", "that", "have", "a", "higher", "resolution", "than", "some", "song", "in", "english", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "Find", "the", "distinct", "names", "of", "all", "songs", "that", "have", "a", "higher", "resolution", "than", "some", "songs", "in", "English", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "name" ], [ "of" ], [ "all" ], [ "song" ], [ "that" ], [ "have" ], [ "a" ], [ "higher" ], [ "resolution" ], [ "than" ], [ "some" ], [ "song" ], [ "in" ], [ "english" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "higher", "JJR" ], [ "resolution", "NN" ], [ "than", "IN" ], [ "some", "DT" ], [ "song", "NN" ], [ "in", "IN" ], [ "english", "NN" ], [ ".", "." ] ], "values": [ "english" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(12) T(3) Filter(13) A(0) C(16) T(3) Root(3) Sel(0) N(0) A(2) C(16) T(3) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT min(resolution) FROM song WHERE languages = \"english\")", "query_toks": [ "SELECT", "DISTINCT", "song_name", "FROM", "song", "WHERE", "resolution", ">", "(", "SELECT", "min", "(", "resolution", ")", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''", ")" ], "query_toks_no_value": [ "select", "distinct", "song_name", "from", "song", "where", "resolution", ">", "(", "select", "min", "(", "resolution", ")", "from", "song", "where", "languages", "=", "value", ")" ], "question": "What are the different names for all songs that have a higher resolution than English songs?", "question_toks": [ "what", "are", "different", "name", "for", "all", "song", "that", "have", "a", "higher", "resolution", "than", "english", "song", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "different", "names", "for", "all", "songs", "that", "have", "a", "higher", "resolution", "than", "English", "songs", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "name" ], [ "for" ], [ "all" ], [ "song" ], [ "that" ], [ "have" ], [ "a" ], [ "higher" ], [ "resolution" ], [ "than" ], [ "english" ], [ "song" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "higher", "JJR" ], [ "resolution", "NN" ], [ "than", "IN" ], [ "english", "VB" ], [ "song", "NN" ], [ "?", "." ] ], "values": [ "english" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(12) T(3) Filter(13) A(0) C(16) T(3) Root(3) Sel(0) N(0) A(2) C(16) T(3) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT song_name FROM song WHERE rating < (SELECT max(rating) FROM song WHERE genre_is = \"blues\")", "query_toks": [ "SELECT", "song_name", "FROM", "song", "WHERE", "rating", "<", "(", "SELECT", "max", "(", "rating", ")", "FROM", "song", "WHERE", "genre_is", "=", "``", "blues", "''", ")" ], "query_toks_no_value": [ "select", "song_name", "from", "song", "where", "rating", "<", "(", "select", "max", "(", "rating", ")", "from", "song", "where", "genre_is", "=", "value", ")" ], "question": "What are the names of all songs that have a lower rating than some song of blues genre?", "question_toks": [ "what", "are", "name", "of", "all", "song", "that", "have", "a", "lower", "rating", "than", "some", "song", "of", "blue", "genre", "?" ], "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, 4, [ 0, [ 0, 18, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"blues\"", null ] ] }, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "songs", "that", "have", "a", "lower", "rating", "than", "some", "song", "of", "blues", "genre", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "song" ], [ "that" ], [ "have" ], [ "a" ], [ "lower" ], [ "rating" ], [ "than" ], [ "some" ], [ "song" ], [ "of" ], [ "blue" ], [ "genre" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "lower", "JJR" ], [ "rating", "NN" ], [ "than", "IN" ], [ "some", "DT" ], [ "song", "NN" ], [ "of", "IN" ], [ "blue", "JJ" ], [ "genre", "NN" ], [ "?", "." ] ], "values": [ "blues" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(3) Filter(12) A(0) C(2) T(3) Root(3) Sel(0) N(0) A(1) C(2) T(3) Filter(2) A(0) C(13) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT song_name FROM song WHERE rating < (SELECT max(rating) FROM song WHERE genre_is = \"blues\")", "query_toks": [ "SELECT", "song_name", "FROM", "song", "WHERE", "rating", "<", "(", "SELECT", "max", "(", "rating", ")", "FROM", "song", "WHERE", "genre_is", "=", "``", "blues", "''", ")" ], "query_toks_no_value": [ "select", "song_name", "from", "song", "where", "rating", "<", "(", "select", "max", "(", "rating", ")", "from", "song", "where", "genre_is", "=", "value", ")" ], "question": "What are the names of the songs that have a lower rating than at least one blues song?", "question_toks": [ "what", "are", "name", "of", "song", "that", "have", "a", "lower", "rating", "than", "at", "least", "one", "blue", "song", "?" ], "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, 4, [ 0, [ 0, 18, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"blues\"", null ] ] }, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "songs", "that", "have", "a", "lower", "rating", "than", "at", "least", "one", "blues", "song", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "song" ], [ "that" ], [ "have" ], [ "a" ], [ "lower" ], [ "rating" ], [ "than" ], [ "at" ], [ "least" ], [ "one" ], [ "blue" ], [ "song" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "lower", "JJR" ], [ "rating", "NN" ], [ "than", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "blue", "NN" ], [ "song", "NN" ], [ "?", "." ] ], "values": [ "1", "blues" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(3) Filter(12) A(0) C(2) T(3) Root(3) Sel(0) N(0) A(1) C(2) T(3) Filter(2) A(0) C(13) T(3) V(1)" }, { "db_id": "music_1", "query": "SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.song_name LIKE \"%love%\"", "query_toks": [ "SELECT", "T1.artist_name", ",", "T1.country", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.song_name", "LIKE", "``", "%", "love", "%", "''" ], "query_toks_no_value": [ "select", "t1", ".", "artist_name", ",", "t1", ".", "country", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "song_name", "like", "value" ], "question": "What is the name and country of origin of the artist who released a song that has \"love\" in its title?", "question_toks": [ "what", "is", "name", "and", "country", "of", "origin", "of", "artist", "who", "released", "a", "song", "that", "ha", "'", "love", "'", "in", "it", "title", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "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, 9, [ 0, [ 0, 13, false ], null ], "\"%love%\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "country", "of", "origin", "of", "the", "artist", "who", "released", "a", "song", "that", "has", "``", "love", "''", "in", "its", "title", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "country" ], [ "of" ], [ "origin" ], [ "of" ], [ "artist" ], [ "who" ], [ "released" ], [ "a" ], [ "song" ], [ "that" ], [ "ha" ], [ "'" ], [ "love" ], [ "'" ], [ "in" ], [ "it" ], [ "title" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "JJ" ], [ "and", "CC" ], [ "country", "NN" ], [ "of", "IN" ], [ "origin", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "released", "VBD" ], [ "a", "DT" ], [ "song", "NN" ], [ "that", "WDT" ], [ "ha", "NN" ], [ "'", "''" ], [ "love", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "it", "PRP" ], [ "title", "VB" ], [ "?", "." ] ], "values": [ "love" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(0) C(5) T(1) Filter(9) A(0) C(12) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.song_name LIKE \"%love%\"", "query_toks": [ "SELECT", "T1.artist_name", ",", "T1.country", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.song_name", "LIKE", "``", "%", "love", "%", "''" ], "query_toks_no_value": [ "select", "t1", ".", "artist_name", ",", "t1", ".", "country", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "song_name", "like", "value" ], "question": "What are the names of the artists who released a song that has the word love in its title, and where are the artists from?", "question_toks": [ "what", "are", "name", "of", "artist", "who", "released", "a", "song", "that", "ha", "word", "love", "in", "it", "title", ",", "and", "where", "are", "artist", "from", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "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, 9, [ 0, [ 0, 13, false ], null ], "\"%love%\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "artists", "who", "released", "a", "song", "that", "has", "the", "word", "love", "in", "its", "title", ",", "and", "where", "are", "the", "artists", "from", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "released" ], [ "a" ], [ "song" ], [ "that" ], [ "ha" ], [ "word" ], [ "love" ], [ "in" ], [ "it" ], [ "title" ], [ "," ], [ "and" ], [ "where" ], [ "are" ], [ "artist" ], [ "from" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "released", "VBD" ], [ "a", "DT" ], [ "song", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "word", "NN" ], [ "love", "NN" ], [ "in", "IN" ], [ "it", "PRP" ], [ "title", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "where", "WRB" ], [ "are", "VBP" ], [ "artist", "NN" ], [ "from", "IN" ], [ "?", "." ] ], "values": [ "love" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(0) C(5) T(1) Filter(9) A(0) C(12) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT T1.artist_name , T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.releasedate LIKE \"%Mar%\"", "query_toks": [ "SELECT", "T1.artist_name", ",", "T1.gender", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.releasedate", "LIKE", "``", "%", "Mar", "%", "''" ], "query_toks_no_value": [ "select", "t1", ".", "artist_name", ",", "t1", ".", "gender", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "releasedate", "like", "value" ], "question": "List the name and gender for all artists who released songs in March.", "question_toks": [ "list", "name", "and", "gender", "for", "all", "artist", "who", "released", "song", "in", "march", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "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, 9, [ 0, [ 0, 20, false ], null ], "\"%Mar%\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "List", "the", "name", "and", "gender", "for", "all", "artists", "who", "released", "songs", "in", "March", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "gender" ], [ "for" ], [ "all" ], [ "artist" ], [ "who" ], [ "released" ], [ "song" ], [ "in" ], [ "march" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "gender", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "artist", "NN" ], [ "who", "WP" ], [ "released", "VBD" ], [ "song", "NN" ], [ "in", "IN" ], [ "march", "NN" ], [ ".", "." ] ], "values": [ "3/", "Mar" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(0) C(6) T(1) Filter(9) A(0) C(15) T(3) V(1)" }, { "db_id": "music_1", "query": "SELECT T1.artist_name , T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.releasedate LIKE \"%Mar%\"", "query_toks": [ "SELECT", "T1.artist_name", ",", "T1.gender", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.releasedate", "LIKE", "``", "%", "Mar", "%", "''" ], "query_toks_no_value": [ "select", "t1", ".", "artist_name", ",", "t1", ".", "gender", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "releasedate", "like", "value" ], "question": "What are the names and genders of all artists who released songs in the month of March?", "question_toks": [ "what", "are", "name", "and", "gender", "of", "all", "artist", "who", "released", "song", "in", "month", "of", "march", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "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, 9, [ 0, [ 0, 20, false ], null ], "\"%Mar%\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "genders", "of", "all", "artists", "who", "released", "songs", "in", "the", "month", "of", "March", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "gender" ], [ "of" ], [ "all" ], [ "artist" ], [ "who" ], [ "released" ], [ "song" ], [ "in" ], [ "month" ], [ "of" ], [ "march" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "gender", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "artist", "NN" ], [ "who", "WP" ], [ "released", "VBD" ], [ "song", "NN" ], [ "in", "IN" ], [ "month", "NN" ], [ "of", "IN" ], [ "march", "NN" ], [ "?", "." ] ], "values": [ "3/", "Mar" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(0) C(6) T(1) Filter(9) A(0) C(15) T(3) V(1)" }, { "db_id": "music_1", "query": "SELECT g_name , rating FROM genre ORDER BY g_name", "query_toks": [ "SELECT", "g_name", ",", "rating", "FROM", "genre", "ORDER", "BY", "g_name" ], "query_toks_no_value": [ "select", "g_name", ",", "rating", "from", "genre", "order", "by", "g_name" ], "question": "List the names of all genres in alphabetical oder, together with its ratings.", "question_toks": [ "list", "name", "of", "all", "genre", "in", "alphabetical", "oder", ",", "together", "with", "it", "rating", "." ], "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": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "genres", "in", "alphabetical", "oder", ",", "together", "with", "its", "ratings", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "genre" ], [ "in" ], [ "alphabetical" ], [ "oder" ], [ "," ], [ "together" ], [ "with" ], [ "it" ], [ "rating" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "genre", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "oder", "NN" ], [ ",", "," ], [ "together", "RB" ], [ "with", "IN" ], [ "it", "PRP" ], [ "rating", "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": "music_1", "query": "SELECT g_name , rating FROM genre ORDER BY g_name", "query_toks": [ "SELECT", "g_name", ",", "rating", "FROM", "genre", "ORDER", "BY", "g_name" ], "query_toks_no_value": [ "select", "g_name", ",", "rating", "from", "genre", "order", "by", "g_name" ], "question": "What are the names of all genres in alphabetical order, combined with its ratings?", "question_toks": [ "what", "are", "name", "of", "all", "genre", "in", "alphabetical", "order", ",", "combined", "with", "it", "rating", "?" ], "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": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "genres", "in", "alphabetical", "order", ",", "combined", "with", "its", "ratings", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "genre" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "," ], [ "combined" ], [ "with" ], [ "it" ], [ "rating" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "genre", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ",", "," ], [ "combined", "VBN" ], [ "with", "IN" ], [ "it", "PRP" ], [ "rating", "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": "music_1", "query": "SELECT song_name FROM song ORDER BY resolution", "query_toks": [ "SELECT", "song_name", "FROM", "song", "ORDER", "BY", "resolution" ], "query_toks_no_value": [ "select", "song_name", "from", "song", "order", "by", "resolution" ], "question": "Give me a list of the names of all songs ordered by their resolution.", "question_toks": [ "give", "me", "a", "list", "of", "name", "of", "all", "song", "ordered", "by", "their", "resolution", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "Give", "me", "a", "list", "of", "the", "names", "of", "all", "songs", "ordered", "by", "their", "resolution", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "a" ], [ "list" ], [ "of" ], [ "name" ], [ "of" ], [ "all" ], [ "song" ], [ "ordered" ], [ "by" ], [ "their" ], [ "resolution" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "a", "DT" ], [ "list", "NN" ], [ "of", "IN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "resolution", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(12) T(3) Order(1) A(0) C(16) T(3)" }, { "db_id": "music_1", "query": "SELECT song_name FROM song ORDER BY resolution", "query_toks": [ "SELECT", "song_name", "FROM", "song", "ORDER", "BY", "resolution" ], "query_toks_no_value": [ "select", "song_name", "from", "song", "order", "by", "resolution" ], "question": "What are the names of all songs that are ordered by their resolution numbers?", "question_toks": [ "what", "are", "name", "of", "all", "song", "that", "are", "ordered", "by", "their", "resolution", "number", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "songs", "that", "are", "ordered", "by", "their", "resolution", "numbers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "song" ], [ "that" ], [ "are" ], [ "ordered" ], [ "by" ], [ "their" ], [ "resolution" ], [ "number" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "resolution", "NN" ], [ "number", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(12) T(3) Order(1) A(0) C(16) T(3)" }, { "db_id": "music_1", "query": "SELECT f_id FROM files WHERE formats = \"mp4\" UNION SELECT f_id FROM song WHERE resolution > 720", "query_toks": [ "SELECT", "f_id", "FROM", "files", "WHERE", "formats", "=", "``", "mp4", "''", "UNION", "SELECT", "f_id", "FROM", "song", "WHERE", "resolution", ">", "720" ], "query_toks_no_value": [ "select", "f_id", "from", "files", "where", "formats", "=", "value", "union", "select", "f_id", "from", "song", "where", "resolution", ">", "value" ], "question": "What are the ids of songs that are available in either mp4 format or have resolution above 720?", "question_toks": [ "what", "are", "id", "of", "song", "that", "are", "available", "in", "either", "mp4", "format", "or", "have", "resolution", "above", "720", "?" ], "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": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], 720.0, null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"mp4\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "songs", "that", "are", "available", "in", "either", "mp4", "format", "or", "have", "resolution", "above", "720", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "song" ], [ "that" ], [ "are" ], [ "available" ], [ "in" ], [ "either" ], [ "mp4" ], [ "format" ], [ "or" ], [ "have" ], [ "resolution" ], [ "above" ], [ "720" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "song", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "available", "JJ" ], [ "in", "IN" ], [ "either", "DT" ], [ "mp4", "JJ" ], [ "format", "NN" ], [ "or", "CC" ], [ "have", "VBP" ], [ "resolution", "VBN" ], [ "above", "IN" ], [ "720", "CD" ], [ "?", "." ] ], "values": [ "mp4", "720" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(2) A(0) C(11) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(5) A(0) C(16) T(3) V(1)" }, { "db_id": "music_1", "query": "SELECT f_id FROM files WHERE formats = \"mp4\" UNION SELECT f_id FROM song WHERE resolution > 720", "query_toks": [ "SELECT", "f_id", "FROM", "files", "WHERE", "formats", "=", "``", "mp4", "''", "UNION", "SELECT", "f_id", "FROM", "song", "WHERE", "resolution", ">", "720" ], "query_toks_no_value": [ "select", "f_id", "from", "files", "where", "formats", "=", "value", "union", "select", "f_id", "from", "song", "where", "resolution", ">", "value" ], "question": "What are the ids of all songs that are available on mp4 or have a higher resolution than 720?", "question_toks": [ "what", "are", "id", "of", "all", "song", "that", "are", "available", "on", "mp4", "or", "have", "a", "higher", "resolution", "than", "720", "?" ], "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": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], 720.0, null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"mp4\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "songs", "that", "are", "available", "on", "mp4", "or", "have", "a", "higher", "resolution", "than", "720", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "song" ], [ "that" ], [ "are" ], [ "available" ], [ "on" ], [ "mp4" ], [ "or" ], [ "have" ], [ "a" ], [ "higher" ], [ "resolution" ], [ "than" ], [ "720" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "available", "JJ" ], [ "on", "IN" ], [ "mp4", "NN" ], [ "or", "CC" ], [ "have", "VB" ], [ "a", "DT" ], [ "higher", "JJR" ], [ "resolution", "NN" ], [ "than", "IN" ], [ "720", "CD" ], [ "?", "." ] ], "values": [ "mp4", "720" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(2) A(0) C(11) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(5) A(0) C(16) T(3) V(1)" }, { "db_id": "music_1", "query": "SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE \"4:%\" UNION SELECT song_name FROM song WHERE languages = \"english\"", "query_toks": [ "SELECT", "T2.song_name", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.duration", "LIKE", "``", "4", ":", "%", "''", "UNION", "SELECT", "song_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''" ], "query_toks_no_value": [ "select", "t2", ".", "song_name", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value", "union", "select", "song_name", "from", "song", "where", "languages", "=", "value" ], "question": "List the names of all songs that have 4 minute duration or are in English.", "question_toks": [ "list", "name", "of", "all", "song", "that", "have", "4", "minute", "duration", "or", "are", "in", "english", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 16, 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": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, "where": [ [ false, 9, [ 0, [ 0, 11, false ], null ], "\"4:%\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "songs", "that", "have", "4", "minute", "duration", "or", "are", "in", "English", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "song" ], [ "that" ], [ "have" ], [ "4" ], [ "minute" ], [ "duration" ], [ "or" ], [ "are" ], [ "in" ], [ "english" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "4", "CD" ], [ "minute", "JJ" ], [ "duration", "NN" ], [ "or", "CC" ], [ "are", "VBP" ], [ "in", "IN" ], [ "english", "JJ" ], [ ".", "." ] ], "values": [ "english", "4", "4:" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(12) T(3) Filter(9) A(0) C(10) T(2) V(2) Root(3) Sel(0) N(0) A(0) C(12) T(3) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE \"4:%\" UNION SELECT song_name FROM song WHERE languages = \"english\"", "query_toks": [ "SELECT", "T2.song_name", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.duration", "LIKE", "``", "4", ":", "%", "''", "UNION", "SELECT", "song_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''" ], "query_toks_no_value": [ "select", "t2", ".", "song_name", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value", "union", "select", "song_name", "from", "song", "where", "languages", "=", "value" ], "question": "What are the names of all songs that are approximately 4 minutes long or are in English?", "question_toks": [ "what", "are", "name", "of", "all", "song", "that", "are", "approximately", "4", "minute", "long", "or", "are", "in", "english", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 16, 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": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, "where": [ [ false, 9, [ 0, [ 0, 11, false ], null ], "\"4:%\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "songs", "that", "are", "approximately", "4", "minutes", "long", "or", "are", "in", "English", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "song" ], [ "that" ], [ "are" ], [ "approximately" ], [ "4" ], [ "minute" ], [ "long" ], [ "or" ], [ "are" ], [ "in" ], [ "english" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "approximately", "RB" ], [ "4", "CD" ], [ "minute", "NN" ], [ "long", "RB" ], [ "or", "CC" ], [ "are", "VBP" ], [ "in", "IN" ], [ "english", "JJ" ], [ "?", "." ] ], "values": [ "english", "4", "4:" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(12) T(3) Filter(9) A(0) C(10) T(2) V(2) Root(3) Sel(0) N(0) A(0) C(12) T(3) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "languages", "FROM", "song", "GROUP", "BY", "languages", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "languages", "from", "song", "group", "by", "languages", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the language used most often in the songs?", "question_toks": [ "what", "is", "language", "used", "most", "often", "in", "song", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "language", "used", "most", "often", "in", "the", "songs", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "language" ], [ "used" ], [ "most" ], [ "often" ], [ "in" ], [ "song" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "language", "NN" ], [ "used", "VBN" ], [ "most", "RBS" ], [ "often", "RB" ], [ "in", "IN" ], [ "song", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(14) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "music_1", "query": "SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "languages", "FROM", "song", "GROUP", "BY", "languages", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "languages", "from", "song", "group", "by", "languages", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the languages that are used most often in songs?", "question_toks": [ "what", "are", "language", "that", "are", "used", "most", "often", "in", "song", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "languages", "that", "are", "used", "most", "often", "in", "songs", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "language" ], [ "that" ], [ "are" ], [ "used" ], [ "most" ], [ "often" ], [ "in" ], [ "song" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "language", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "most", "RBS" ], [ "often", "RB" ], [ "in", "IN" ], [ "song", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(14) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "music_1", "query": "SELECT artist_name FROM song WHERE resolution > 500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "artist_name", "FROM", "song", "WHERE", "resolution", ">", "500", "GROUP", "BY", "languages", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "artist_name", "from", "song", "where", "resolution", ">", "value", "group", "by", "languages", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the language that was used most often in songs with resolution above 500?", "question_toks": [ "what", "is", "language", "that", "wa", "used", "most", "often", "in", "song", "with", "resolution", "above", "500", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], 500.0, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "language", "that", "was", "used", "most", "often", "in", "songs", "with", "resolution", "above", "500", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "language" ], [ "that" ], [ "wa" ], [ "used" ], [ "most" ], [ "often" ], [ "in" ], [ "song" ], [ "with" ], [ "resolution" ], [ "above" ], [ "500" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "language", "NN" ], [ "that", "WDT" ], [ "wa", "VBP" ], [ "used", "VBN" ], [ "most", "RBS" ], [ "often", "RB" ], [ "in", "IN" ], [ "song", "NN" ], [ "with", "IN" ], [ "resolution", "NN" ], [ "above", "IN" ], [ "500", "CD" ], [ "?", "." ] ], "values": [ "500" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(4) T(3) Sup(0) A(3) C(0) T(3) Filter(5) A(0) C(16) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT artist_name FROM song WHERE resolution > 500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "artist_name", "FROM", "song", "WHERE", "resolution", ">", "500", "GROUP", "BY", "languages", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "artist_name", "from", "song", "where", "resolution", ">", "value", "group", "by", "languages", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the artist, for each language, that has the most songs with a higher resolution than 500?", "question_toks": [ "what", "is", "name", "of", "artist", ",", "for", "each", "language", ",", "that", "ha", "most", "song", "with", "a", "higher", "resolution", "than", "500", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], 500.0, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "artist", ",", "for", "each", "language", ",", "that", "has", "the", "most", "songs", "with", "a", "higher", "resolution", "than", "500", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "artist" ], [ "," ], [ "for" ], [ "each" ], [ "language" ], [ "," ], [ "that" ], [ "ha" ], [ "most" ], [ "song" ], [ "with" ], [ "a" ], [ "higher" ], [ "resolution" ], [ "than" ], [ "500" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ ",", "," ], [ "for", "IN" ], [ "each", "DT" ], [ "language", "NN" ], [ ",", "," ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "song", "JJ" ], [ "with", "IN" ], [ "a", "DT" ], [ "higher", "JJR" ], [ "resolution", "NN" ], [ "than", "IN" ], [ "500", "CD" ], [ "?", "." ] ], "values": [ "500" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(4) T(3) Sup(0) A(3) C(0) T(3) Filter(5) A(0) C(16) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT artist_name FROM artist WHERE country = \"UK\" AND gender = \"Male\"", "query_toks": [ "SELECT", "artist_name", "FROM", "artist", "WHERE", "country", "=", "``", "UK", "''", "AND", "gender", "=", "``", "Male", "''" ], "query_toks_no_value": [ "select", "artist_name", "from", "artist", "where", "country", "=", "value", "and", "gender", "=", "value" ], "question": "What are the names of artists who are Male and are from UK?", "question_toks": [ "what", "are", "name", "of", "artist", "who", "are", "male", "and", "are", "from", "uk", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"UK\"", null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Male\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "artists", "who", "are", "Male", "and", "are", "from", "UK", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "are" ], [ "male" ], [ "and" ], [ "are" ], [ "from" ], [ "uk" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "gender" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "male", "JJ" ], [ "and", "CC" ], [ "are", "VBP" ], [ "from", "IN" ], [ "uk", "JJ" ], [ "?", "." ] ], "values": [ "Male", "UK" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(0) Filter(2) A(0) C(5) T(1) V(1) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "music_1", "query": "SELECT artist_name FROM artist WHERE country = \"UK\" AND gender = \"Male\"", "query_toks": [ "SELECT", "artist_name", "FROM", "artist", "WHERE", "country", "=", "``", "UK", "''", "AND", "gender", "=", "``", "Male", "''" ], "query_toks_no_value": [ "select", "artist_name", "from", "artist", "where", "country", "=", "value", "and", "gender", "=", "value" ], "question": "What are the names of all male British artists?", "question_toks": [ "what", "are", "name", "of", "all", "male", "british", "artist", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"UK\"", null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Male\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "male", "British", "artists", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "male" ], [ "british" ], [ "artist" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "male", "JJ" ], [ "british", "JJ" ], [ "artist", "NN" ], [ "?", "." ] ], "values": [ "Male", "UK" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(0) Filter(2) A(0) C(5) T(1) V(1) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "music_1", "query": "SELECT song_name FROM song WHERE genre_is = \"modern\" OR languages = \"english\"", "query_toks": [ "SELECT", "song_name", "FROM", "song", "WHERE", "genre_is", "=", "``", "modern", "''", "OR", "languages", "=", "``", "english", "''" ], "query_toks_no_value": [ "select", "song_name", "from", "song", "where", "genre_is", "=", "value", "or", "languages", "=", "value" ], "question": "Find the names of songs whose genre is modern or language is English.", "question_toks": [ "find", "name", "of", "song", "whose", "genre", "is", "modern", "or", "language", "is", "english", "." ], "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, 2, [ 0, [ 0, 17, false ], null ], "\"modern\"", null ], "or", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "Find", "the", "names", "of", "songs", "whose", "genre", "is", "modern", "or", "language", "is", "English", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "song" ], [ "whose" ], [ "genre", "is" ], [ "modern" ], [ "or" ], [ "language" ], [ "is" ], [ "english" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "whose", "WP$" ], [ "genre", "NN" ], [ "is", "VBZ" ], [ "modern", "JJ" ], [ "or", "CC" ], [ "language", "NN" ], [ "is", "VBZ" ], [ "english", "JJ" ], [ ".", "." ] ], "values": [ "english", "modern" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(3) Filter(1) Filter(2) A(0) C(13) T(3) V(1) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT song_name FROM song WHERE genre_is = \"modern\" OR languages = \"english\"", "query_toks": [ "SELECT", "song_name", "FROM", "song", "WHERE", "genre_is", "=", "``", "modern", "''", "OR", "languages", "=", "``", "english", "''" ], "query_toks_no_value": [ "select", "song_name", "from", "song", "where", "genre_is", "=", "value", "or", "languages", "=", "value" ], "question": "What are the names of the songs that are modern or sung in English?", "question_toks": [ "what", "are", "name", "of", "song", "that", "are", "modern", "or", "sung", "in", "english", "?" ], "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, 2, [ 0, [ 0, 17, false ], null ], "\"modern\"", null ], "or", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "songs", "that", "are", "modern", "or", "sung", "in", "English", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "song" ], [ "that" ], [ "are" ], [ "modern" ], [ "or" ], [ "sung" ], [ "in" ], [ "english" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "modern", "JJ" ], [ "or", "CC" ], [ "sung", "NN" ], [ "in", "IN" ], [ "english", "JJ" ], [ "?", "." ] ], "values": [ "english", "modern" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(3) Filter(1) Filter(2) A(0) C(13) T(3) V(1) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = \"mp3\" INTERSECT SELECT song_name FROM song WHERE resolution < 1000", "query_toks": [ "SELECT", "T2.song_name", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.formats", "=", "``", "mp3", "''", "INTERSECT", "SELECT", "song_name", "FROM", "song", "WHERE", "resolution", "<", "1000" ], "query_toks_no_value": [ "select", "t2", ".", "song_name", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "formats", "=", "value", "intersect", "select", "song_name", "from", "song", "where", "resolution", "<", "value" ], "question": "Return the names of songs for which format is mp3 and resolution is below 1000.", "question_toks": [ "return", "name", "of", "song", "for", "which", "format", "is", "mp3", "and", "resolution", "is", "below", "1000", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 21, false ], null ], 1000.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"mp3\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "Return", "the", "names", "of", "songs", "for", "which", "format", "is", "mp3", "and", "resolution", "is", "below", "1000", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "song" ], [ "for" ], [ "which" ], [ "format" ], [ "is" ], [ "mp3" ], [ "and" ], [ "resolution" ], [ "is" ], [ "below" ], [ "1000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "for", "IN" ], [ "which", "WDT" ], [ "format", "NN" ], [ "is", "VBZ" ], [ "mp3", "JJ" ], [ "and", "CC" ], [ "resolution", "NN" ], [ "is", "VBZ" ], [ "below", "IN" ], [ "1000", "CD" ], [ ".", "." ] ], "values": [ "1000", "mp3" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(12) T(3) Filter(2) A(0) C(11) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(12) T(3) Filter(4) A(0) C(16) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = \"mp3\" INTERSECT SELECT song_name FROM song WHERE resolution < 1000", "query_toks": [ "SELECT", "T2.song_name", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.formats", "=", "``", "mp3", "''", "INTERSECT", "SELECT", "song_name", "FROM", "song", "WHERE", "resolution", "<", "1000" ], "query_toks_no_value": [ "select", "t2", ".", "song_name", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "formats", "=", "value", "intersect", "select", "song_name", "from", "song", "where", "resolution", "<", "value" ], "question": "What are the names of all songs that are in mp3 format and have a resolution lower than 1000?", "question_toks": [ "what", "are", "name", "of", "all", "song", "that", "are", "in", "mp3", "format", "and", "have", "a", "resolution", "lower", "than", "1000", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 21, false ], null ], 1000.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"mp3\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "songs", "that", "are", "in", "mp3", "format", "and", "have", "a", "resolution", "lower", "than", "1000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "song" ], [ "that" ], [ "are" ], [ "in" ], [ "mp3" ], [ "format" ], [ "and" ], [ "have" ], [ "a" ], [ "resolution" ], [ "lower" ], [ "than" ], [ "1000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "mp3", "JJ" ], [ "format", "NN" ], [ "and", "CC" ], [ "have", "VBP" ], [ "a", "DT" ], [ "resolution", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ "?", "." ] ], "values": [ "1000", "mp3" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(12) T(3) Filter(2) A(0) C(11) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(12) T(3) Filter(4) A(0) C(16) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT artist_name FROM artist WHERE country = \"UK\" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = \"english\"", "query_toks": [ "SELECT", "artist_name", "FROM", "artist", "WHERE", "country", "=", "``", "UK", "''", "INTERSECT", "SELECT", "T1.artist_name", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.languages", "=", "``", "english", "''" ], "query_toks_no_value": [ "select", "artist_name", "from", "artist", "where", "country", "=", "value", "intersect", "select", "t1", ".", "artist_name", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "languages", "=", "value" ], "question": "Return the names of singers who are from UK and released an English song.", "question_toks": [ "return", "name", "of", "singer", "who", "are", "from", "uk", "and", "released", "an", "english", "song", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"UK\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "Return", "the", "names", "of", "singers", "who", "are", "from", "UK", "and", "released", "an", "English", "song", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "singer" ], [ "who" ], [ "are" ], [ "from" ], [ "uk" ], [ "and" ], [ "released" ], [ "an" ], [ "english" ], [ "song" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "from", "IN" ], [ "uk", "JJ" ], [ "and", "CC" ], [ "released", "VBD" ], [ "an", "DT" ], [ "english", "JJ" ], [ "song", "NN" ], [ ".", "." ] ], "values": [ "english", "UK" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(5) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT artist_name FROM artist WHERE country = \"UK\" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = \"english\"", "query_toks": [ "SELECT", "artist_name", "FROM", "artist", "WHERE", "country", "=", "``", "UK", "''", "INTERSECT", "SELECT", "T1.artist_name", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.languages", "=", "``", "english", "''" ], "query_toks_no_value": [ "select", "artist_name", "from", "artist", "where", "country", "=", "value", "intersect", "select", "t1", ".", "artist_name", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "languages", "=", "value" ], "question": "What are the names of all singers that are from the UK and released a song in English?", "question_toks": [ "what", "are", "name", "of", "all", "singer", "that", "are", "from", "uk", "and", "released", "a", "song", "in", "english", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"UK\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "singers", "that", "are", "from", "the", "UK", "and", "released", "a", "song", "in", "English", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "singer" ], [ "that" ], [ "are" ], [ "from" ], [ "uk" ], [ "and" ], [ "released" ], [ "a" ], [ "song" ], [ "in" ], [ "english" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "singer", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "from", "IN" ], [ "uk", "JJ" ], [ "and", "CC" ], [ "released", "VBD" ], [ "a", "DT" ], [ "song", "NN" ], [ "in", "IN" ], [ "english", "NN" ], [ "?", "." ] ], "values": [ "english", "UK" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(5) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT avg(rating) , avg(resolution) FROM song WHERE languages = \"bangla\"", "query_toks": [ "SELECT", "avg", "(", "rating", ")", ",", "avg", "(", "resolution", ")", "FROM", "song", "WHERE", "languages", "=", "``", "bangla", "''" ], "query_toks_no_value": [ "select", "avg", "(", "rating", ")", ",", "avg", "(", "resolution", ")", "from", "song", "where", "languages", "=", "value" ], "question": "What are the average rating and resolution of songs that are in Bangla?", "question_toks": [ "what", "are", "average", "rating", "and", "resolution", "of", "song", "that", "are", "in", "bangla", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 18, false ], null ] ], [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"bangla\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "average", "rating", "and", "resolution", "of", "songs", "that", "are", "in", "Bangla", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "rating" ], [ "and" ], [ "resolution" ], [ "of" ], [ "song" ], [ "that" ], [ "are" ], [ "in" ], [ "bangla" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "rating", "NN" ], [ "and", "CC" ], [ "resolution", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "bangla", "NN" ], [ "?", "." ] ], "values": [ "bangla" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(2) T(3) A(5) C(16) T(3) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT avg(rating) , avg(resolution) FROM song WHERE languages = \"bangla\"", "query_toks": [ "SELECT", "avg", "(", "rating", ")", ",", "avg", "(", "resolution", ")", "FROM", "song", "WHERE", "languages", "=", "``", "bangla", "''" ], "query_toks_no_value": [ "select", "avg", "(", "rating", ")", ",", "avg", "(", "resolution", ")", "from", "song", "where", "languages", "=", "value" ], "question": "What is the average rating and resolution of all bangla songs?", "question_toks": [ "what", "is", "average", "rating", "and", "resolution", "of", "all", "bangla", "song", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 18, false ], null ] ], [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"bangla\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "average", "rating", "and", "resolution", "of", "all", "bangla", "songs", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "rating" ], [ "and" ], [ "resolution" ], [ "of" ], [ "all" ], [ "bangla" ], [ "song" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "rating", "NN" ], [ "and", "CC" ], [ "resolution", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "bangla", "NN" ], [ "song", "NN" ], [ "?", "." ] ], "values": [ "bangla" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(2) T(3) A(5) C(16) T(3) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT max(T2.resolution) , min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE \"3:%\"", "query_toks": [ "SELECT", "max", "(", "T2.resolution", ")", ",", "min", "(", "T2.resolution", ")", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.duration", "LIKE", "``", "3", ":", "%", "''" ], "query_toks_no_value": [ "select", "max", "(", "t2", ".", "resolution", ")", ",", "min", "(", "t2", ".", "resolution", ")", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value" ], "question": "What are the maximum and minimum resolution of songs whose duration is 3 minutes?", "question_toks": [ "what", "are", "maximum", "and", "minimum", "resolution", "of", "song", "whose", "duration", "is", "3", "minute", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 21, false ], null ] ], [ 2, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 11, false ], null ], "\"3:%\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "maximum", "and", "minimum", "resolution", "of", "songs", "whose", "duration", "is", "3", "minutes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "resolution" ], [ "of" ], [ "song" ], [ "whose" ], [ "duration" ], [ "is" ], [ "3" ], [ "minute" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "resolution", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "whose", "WP$" ], [ "duration", "NN" ], [ "is", "VBZ" ], [ "3", "CD" ], [ "minute", "NN" ], [ "?", "." ] ], "values": [ "3", "3:" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(16) T(3) A(2) C(16) T(3) Filter(9) A(0) C(10) T(2) V(1)" }, { "db_id": "music_1", "query": "SELECT max(T2.resolution) , min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE \"3:%\"", "query_toks": [ "SELECT", "max", "(", "T2.resolution", ")", ",", "min", "(", "T2.resolution", ")", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.duration", "LIKE", "``", "3", ":", "%", "''" ], "query_toks_no_value": [ "select", "max", "(", "t2", ".", "resolution", ")", ",", "min", "(", "t2", ".", "resolution", ")", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value" ], "question": "What is the maximum and minimum resolution of all songs that are approximately 3 minutes long?", "question_toks": [ "what", "is", "maximum", "and", "minimum", "resolution", "of", "all", "song", "that", "are", "approximately", "3", "minute", "long", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 21, false ], null ] ], [ 2, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 11, false ], null ], "\"3:%\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "maximum", "and", "minimum", "resolution", "of", "all", "songs", "that", "are", "approximately", "3", "minutes", "long", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "resolution" ], [ "of" ], [ "all" ], [ "song" ], [ "that" ], [ "are" ], [ "approximately" ], [ "3" ], [ "minute" ], [ "long" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "resolution", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "approximately", "RB" ], [ "3", "CD" ], [ "minute", "NN" ], [ "long", "RB" ], [ "?", "." ] ], "values": [ "3", "3:" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(16) T(3) A(2) C(16) T(3) Filter(9) A(0) C(10) T(2) V(1)" }, { "db_id": "music_1", "query": "SELECT max(T1.duration) , max(T2.resolution) , T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.languages ORDER BY T2.languages", "query_toks": [ "SELECT", "max", "(", "T1.duration", ")", ",", "max", "(", "T2.resolution", ")", ",", "T2.languages", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "GROUP", "BY", "T2.languages", "ORDER", "BY", "T2.languages" ], "query_toks_no_value": [ "select", "max", "(", "t1", ".", "duration", ")", ",", "max", "(", "t2", ".", "resolution", ")", ",", "t2", ".", "languages", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "languages", "order", "by", "t2", ".", "languages" ], "question": "What are the maximum duration and resolution of songs grouped and ordered by languages?", "question_toks": [ "what", "are", "maximum", "duration", "and", "resolution", "of", "song", "grouped", "and", "ordered", "by", "language", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 19, false ], null ] ] ], "select": [ false, [ [ 1, [ 0, [ 0, 11, false ], null ] ], [ 1, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "maximum", "duration", "and", "resolution", "of", "songs", "grouped", "and", "ordered", "by", "languages", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "duration" ], [ "and" ], [ "resolution" ], [ "of" ], [ "song" ], [ "grouped" ], [ "and" ], [ "ordered" ], [ "by" ], [ "language" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "duration", "NN" ], [ "and", "CC" ], [ "resolution", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "grouped", "VBN" ], [ "and", "CC" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "language", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(1) C(10) T(2) A(1) C(16) T(3) A(0) C(14) T(3) Order(1) A(0) C(14) T(3)" }, { "db_id": "music_1", "query": "SELECT max(T1.duration) , max(T2.resolution) , T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.languages ORDER BY T2.languages", "query_toks": [ "SELECT", "max", "(", "T1.duration", ")", ",", "max", "(", "T2.resolution", ")", ",", "T2.languages", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "GROUP", "BY", "T2.languages", "ORDER", "BY", "T2.languages" ], "query_toks_no_value": [ "select", "max", "(", "t1", ".", "duration", ")", ",", "max", "(", "t2", ".", "resolution", ")", ",", "t2", ".", "languages", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "languages", "order", "by", "t2", ".", "languages" ], "question": "What are the maximum duration and resolution of all songs, for each language, ordered alphabetically by language?", "question_toks": [ "what", "are", "maximum", "duration", "and", "resolution", "of", "all", "song", ",", "for", "each", "language", ",", "ordered", "alphabetically", "by", "language", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 19, false ], null ] ] ], "select": [ false, [ [ 1, [ 0, [ 0, 11, false ], null ] ], [ 1, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "maximum", "duration", "and", "resolution", "of", "all", "songs", ",", "for", "each", "language", ",", "ordered", "alphabetically", "by", "language", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "duration" ], [ "and" ], [ "resolution" ], [ "of" ], [ "all" ], [ "song" ], [ "," ], [ "for" ], [ "each" ], [ "language" ], [ "," ], [ "ordered" ], [ "alphabetically" ], [ "by" ], [ "language" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "duration", "NN" ], [ "and", "CC" ], [ "resolution", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ ",", "," ], [ "for", "IN" ], [ "each", "DT" ], [ "language", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "alphabetically", "RB" ], [ "by", "IN" ], [ "language", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(1) C(10) T(2) A(1) C(16) T(3) A(0) C(14) T(3) Order(1) A(0) C(14) T(3)" }, { "db_id": "music_1", "query": "SELECT min(T1.duration) , min(T2.rating) , T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is", "query_toks": [ "SELECT", "min", "(", "T1.duration", ")", ",", "min", "(", "T2.rating", ")", ",", "T2.genre_is", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "GROUP", "BY", "T2.genre_is", "ORDER", "BY", "T2.genre_is" ], "query_toks_no_value": [ "select", "min", "(", "t1", ".", "duration", ")", ",", "min", "(", "t2", ".", "rating", ")", ",", "t2", ".", "genre_is", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "genre_is", "order", "by", "t2", ".", "genre_is" ], "question": "What are the shortest duration and lowest rating of songs grouped by genre and ordered by genre?", "question_toks": [ "what", "are", "shortest", "duration", "and", "lowest", "rating", "of", "song", "grouped", "by", "genre", "and", "ordered", "by", "genre", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 17, false ], null ] ] ], "select": [ false, [ [ 2, [ 0, [ 0, 11, false ], null ] ], [ 2, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "shortest", "duration", "and", "lowest", "rating", "of", "songs", "grouped", "by", "genre", "and", "ordered", "by", "genre", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "shortest" ], [ "duration" ], [ "and" ], [ "lowest" ], [ "rating" ], [ "of" ], [ "song" ], [ "grouped" ], [ "by" ], [ "genre" ], [ "and" ], [ "ordered" ], [ "by" ], [ "genre" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "shortest", "JJ" ], [ "duration", "NN" ], [ "and", "CC" ], [ "lowest", "JJS" ], [ "rating", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "grouped", "VBN" ], [ "by", "IN" ], [ "genre", "NN" ], [ "and", "CC" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "genre", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(2) C(10) T(2) A(2) C(2) T(3) A(0) C(13) T(3) Order(1) A(0) C(13) T(3)" }, { "db_id": "music_1", "query": "SELECT min(T1.duration) , min(T2.rating) , T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is", "query_toks": [ "SELECT", "min", "(", "T1.duration", ")", ",", "min", "(", "T2.rating", ")", ",", "T2.genre_is", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "GROUP", "BY", "T2.genre_is", "ORDER", "BY", "T2.genre_is" ], "query_toks_no_value": [ "select", "min", "(", "t1", ".", "duration", ")", ",", "min", "(", "t2", ".", "rating", ")", ",", "t2", ".", "genre_is", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "genre_is", "order", "by", "t2", ".", "genre_is" ], "question": "What is the shortest and most poorly rated song for each genre, ordered alphabetically by genre?", "question_toks": [ "what", "is", "shortest", "and", "most", "poorly", "rated", "song", "for", "each", "genre", ",", "ordered", "alphabetically", "by", "genre", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 17, false ], null ] ] ], "select": [ false, [ [ 2, [ 0, [ 0, 11, false ], null ] ], [ 2, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "shortest", "and", "most", "poorly", "rated", "song", "for", "each", "genre", ",", "ordered", "alphabetically", "by", "genre", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "shortest" ], [ "and" ], [ "most" ], [ "poorly" ], [ "rated" ], [ "song" ], [ "for" ], [ "each" ], [ "genre" ], [ "," ], [ "ordered" ], [ "alphabetically" ], [ "by" ], [ "genre" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "shortest", "VBN" ], [ "and", "CC" ], [ "most", "JJS" ], [ "poorly", "RB" ], [ "rated", "VBN" ], [ "song", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "genre", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "alphabetically", "RB" ], [ "by", "IN" ], [ "genre", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(2) C(10) T(2) A(2) C(2) T(3) A(0) C(13) T(3) Order(1) A(0) C(13) T(3)" }, { "db_id": "music_1", "query": "SELECT T1.artist_name , count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = \"english\" GROUP BY T2.artist_name HAVING count(*) >= 1", "query_toks": [ "SELECT", "T1.artist_name", ",", "count", "(", "*", ")", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.languages", "=", "``", "english", "''", "GROUP", "BY", "T2.artist_name", "HAVING", "count", "(", "*", ")", ">", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "artist_name", ",", "count", "(", "*", ")", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "languages", "=", "value", "group", "by", "t2", ".", "artist_name", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Find the names and number of works of all artists who have at least one English songs.", "question_toks": [ "find", "name", "and", "number", "of", "work", "of", "all", "artist", "who", "have", "at", "least", "one", "english", "song", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "Find", "the", "names", "and", "number", "of", "works", "of", "all", "artists", "who", "have", "at", "least", "one", "English", "songs", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "work" ], [ "of" ], [ "all" ], [ "artist" ], [ "who" ], [ "have" ], [ "at" ], [ "least" ], [ "one" ], [ "english" ], [ "song" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "work", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "artist", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "english", "NN" ], [ "song", "NN" ], [ ".", "." ] ], "values": [ "1", "english" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(3) C(0) T(3) Filter(0) Filter(2) A(0) C(14) T(3) V(1) Filter(7) A(3) C(0) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT T1.artist_name , count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = \"english\" GROUP BY T2.artist_name HAVING count(*) >= 1", "query_toks": [ "SELECT", "T1.artist_name", ",", "count", "(", "*", ")", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.languages", "=", "``", "english", "''", "GROUP", "BY", "T2.artist_name", "HAVING", "count", "(", "*", ")", ">", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "artist_name", ",", "count", "(", "*", ")", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "languages", "=", "value", "group", "by", "t2", ".", "artist_name", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the names and number of works for all artists who have sung at least one song in English?", "question_toks": [ "what", "are", "name", "and", "number", "of", "work", "for", "all", "artist", "who", "have", "sung", "at", "least", "one", "song", "in", "english", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "number", "of", "works", "for", "all", "artists", "who", "have", "sung", "at", "least", "one", "song", "in", "English", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "work" ], [ "for" ], [ "all" ], [ "artist" ], [ "who" ], [ "have" ], [ "sung" ], [ "at" ], [ "least" ], [ "one" ], [ "song" ], [ "in" ], [ "english" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "work", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "artist", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "sung", "VBN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "song", "NN" ], [ "in", "IN" ], [ "english", "NN" ], [ "?", "." ] ], "values": [ "1", "english" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(3) C(0) T(3) Filter(0) Filter(2) A(0) C(14) T(3) V(1) Filter(7) A(3) C(0) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.resolution > 900 GROUP BY T2.artist_name HAVING count(*) >= 1", "query_toks": [ "SELECT", "T1.artist_name", ",", "T1.country", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.resolution", ">", "900", "GROUP", "BY", "T2.artist_name", "HAVING", "count", "(", "*", ")", ">", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "artist_name", ",", "t1", ".", "country", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "resolution", ">", "value", "group", "by", "t2", ".", "artist_name", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Find the name and country of origin for all artists who have release at least one song of resolution above 900.", "question_toks": [ "find", "name", "and", "country", "of", "origin", "for", "all", "artist", "who", "have", "release", "at", "least", "one", "song", "of", "resolution", "above", "900", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], 900.0, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "Find", "the", "name", "and", "country", "of", "origin", "for", "all", "artists", "who", "have", "release", "at", "least", "one", "song", "of", "resolution", "above", "900", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "country" ], [ "of" ], [ "origin" ], [ "for" ], [ "all" ], [ "artist" ], [ "who" ], [ "have" ], [ "release" ], [ "at" ], [ "least" ], [ "one" ], [ "song" ], [ "of" ], [ "resolution" ], [ "above" ], [ "900" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "country", "NN" ], [ "of", "IN" ], [ "origin", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "artist", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "release", "VBN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "song", "NN" ], [ "of", "IN" ], [ "resolution", "NN" ], [ "above", "IN" ], [ "900", "CD" ], [ ".", "." ] ], "values": [ "900", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(0) C(5) T(1) Filter(0) Filter(5) A(0) C(16) T(3) V(0) Filter(7) A(3) C(0) T(3) V(1)" }, { "db_id": "music_1", "query": "SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.resolution > 900 GROUP BY T2.artist_name HAVING count(*) >= 1", "query_toks": [ "SELECT", "T1.artist_name", ",", "T1.country", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.resolution", ">", "900", "GROUP", "BY", "T2.artist_name", "HAVING", "count", "(", "*", ")", ">", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "artist_name", ",", "t1", ".", "country", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "resolution", ">", "value", "group", "by", "t2", ".", "artist_name", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What is the name and country of origin for each artist who has released a song with a resolution higher than 900?", "question_toks": [ "what", "is", "name", "and", "country", "of", "origin", "for", "each", "artist", "who", "ha", "released", "a", "song", "with", "a", "resolution", "higher", "than", "900", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], 900.0, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "country", "of", "origin", "for", "each", "artist", "who", "has", "released", "a", "song", "with", "a", "resolution", "higher", "than", "900", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "country" ], [ "of" ], [ "origin" ], [ "for" ], [ "each" ], [ "artist" ], [ "who" ], [ "ha" ], [ "released" ], [ "a" ], [ "song" ], [ "with" ], [ "a" ], [ "resolution" ], [ "higher" ], [ "than" ], [ "900" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "JJ" ], [ "and", "CC" ], [ "country", "NN" ], [ "of", "IN" ], [ "origin", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "artist", "NN" ], [ "who", "WP" ], [ "ha", "VBP" ], [ "released", "VBN" ], [ "a", "DT" ], [ "song", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "resolution", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "900", "CD" ], [ "?", "." ] ], "values": [ "900", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(0) C(5) T(1) Filter(0) Filter(5) A(0) C(16) T(3) V(0) Filter(7) A(3) C(0) T(3) V(1)" }, { "db_id": "music_1", "query": "SELECT T1.artist_name , count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "T1.artist_name", ",", "count", "(", "*", ")", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "GROUP", "BY", "T2.artist_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t1", ".", "artist_name", ",", "count", "(", "*", ")", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "group", "by", "t2", ".", "artist_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the names and number of works of the three artists who have produced the most songs.", "question_toks": [ "find", "name", "and", "number", "of", "work", "of", "three", "artist", "who", "have", "produced", "most", "song", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "Find", "the", "names", "and", "number", "of", "works", "of", "the", "three", "artists", "who", "have", "produced", "the", "most", "songs", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "work" ], [ "of" ], [ "three" ], [ "artist" ], [ "who" ], [ "have" ], [ "produced" ], [ "most" ], [ "song" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "work", "NN" ], [ "of", "IN" ], [ "three", "CD" ], [ "artist", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "produced", "VBN" ], [ "most", "JJS" ], [ "song", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(4) T(1) A(3) C(0) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "music_1", "query": "SELECT T1.artist_name , count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "T1.artist_name", ",", "count", "(", "*", ")", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "GROUP", "BY", "T2.artist_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t1", ".", "artist_name", ",", "count", "(", "*", ")", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "group", "by", "t2", ".", "artist_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the names of the three artists who have produced the most songs, and how many works did they produce?", "question_toks": [ "what", "are", "name", "of", "three", "artist", "who", "have", "produced", "most", "song", ",", "and", "how", "many", "work", "did", "they", "produce", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "three", "artists", "who", "have", "produced", "the", "most", "songs", ",", "and", "how", "many", "works", "did", "they", "produce", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "three" ], [ "artist" ], [ "who" ], [ "have" ], [ "produced" ], [ "most" ], [ "song" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "work" ], [ "did" ], [ "they" ], [ "produce" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "three", "CD" ], [ "artist", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "produced", "VBN" ], [ "most", "JJS" ], [ "song", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "work", "NN" ], [ "did", "VBD" ], [ "they", "PRP" ], [ "produce", "VB" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(4) T(1) A(3) C(0) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "music_1", "query": "SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "T1.country", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "GROUP", "BY", "T2.artist_name", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "country", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "group", "by", "t2", ".", "artist_name", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Find the country of origin for the artist who made the least number of songs?", "question_toks": [ "find", "country", "of", "origin", "for", "artist", "who", "made", "least", "number", "of", "song", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 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, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "Find", "the", "country", "of", "origin", "for", "the", "artist", "who", "made", "the", "least", "number", "of", "songs", "?" ], "question_arg": [ [ "find" ], [ "country" ], [ "of" ], [ "origin" ], [ "for" ], [ "artist" ], [ "who" ], [ "made" ], [ "least" ], [ "number" ], [ "of" ], [ "song" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "country", "NN" ], [ "of", "IN" ], [ "origin", "NN" ], [ "for", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(5) T(1) Sup(1) A(3) C(0) T(3) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3)" }, { "db_id": "music_1", "query": "SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "T1.country", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "GROUP", "BY", "T2.artist_name", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "country", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "group", "by", "t2", ".", "artist_name", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "What country is the artist who made the fewest songs from?", "question_toks": [ "what", "country", "is", "artist", "who", "made", "fewest", "song", "from", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 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, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "country", "is", "the", "artist", "who", "made", "the", "fewest", "songs", "from", "?" ], "question_arg": [ [ "what" ], [ "country" ], [ "is" ], [ "artist" ], [ "who" ], [ "made" ], [ "fewest" ], [ "song" ], [ "from" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "country", "NN" ], [ "is", "VBZ" ], [ "artist", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "fewest", "JJS" ], [ "song", "NN" ], [ "from", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(5) T(1) Sup(1) A(3) C(0) T(3) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(3)" }, { "db_id": "music_1", "query": "SELECT song_name FROM song WHERE rating < (SELECT min(rating) FROM song WHERE languages = 'english')", "query_toks": [ "SELECT", "song_name", "FROM", "song", "WHERE", "rating", "<", "(", "SELECT", "min", "(", "rating", ")", "FROM", "song", "WHERE", "languages", "=", "'english", "'", ")" ], "query_toks_no_value": [ "select", "song_name", "from", "song", "where", "rating", "<", "(", "select", "min", "(", "rating", ")", "from", "song", "where", "languages", "=", "value", ")" ], "question": "What are the names of the songs whose rating is below the rating of all songs in English?", "question_toks": [ "what", "are", "name", "of", "song", "whose", "rating", "is", "below", "rating", "of", "all", "song", "in", "english", "?" ], "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, 4, [ 0, [ 0, 18, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "songs", "whose", "rating", "is", "below", "the", "rating", "of", "all", "songs", "in", "English", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "song" ], [ "whose" ], [ "rating" ], [ "is" ], [ "below" ], [ "rating" ], [ "of" ], [ "all" ], [ "song" ], [ "in" ], [ "english" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "whose", "WP$" ], [ "rating", "NN" ], [ "is", "VBZ" ], [ "below", "IN" ], [ "rating", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ "in", "IN" ], [ "english", "NN" ], [ "?", "." ] ], "values": [ "english" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(3) Filter(12) A(0) C(2) T(3) Root(3) Sel(0) N(0) A(2) C(2) T(3) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT song_name FROM song WHERE rating < (SELECT min(rating) FROM song WHERE languages = 'english')", "query_toks": [ "SELECT", "song_name", "FROM", "song", "WHERE", "rating", "<", "(", "SELECT", "min", "(", "rating", ")", "FROM", "song", "WHERE", "languages", "=", "'english", "'", ")" ], "query_toks_no_value": [ "select", "song_name", "from", "song", "where", "rating", "<", "(", "select", "min", "(", "rating", ")", "from", "song", "where", "languages", "=", "value", ")" ], "question": "What are the song names for every song whose rating is less than the minimum rating for English songs?", "question_toks": [ "what", "are", "song", "name", "for", "every", "song", "whose", "rating", "is", "le", "than", "minimum", "rating", "for", "english", "song", "?" ], "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, 4, [ 0, [ 0, 18, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "song", "names", "for", "every", "song", "whose", "rating", "is", "less", "than", "the", "minimum", "rating", "for", "English", "songs", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "song", "name" ], [ "for" ], [ "every" ], [ "song" ], [ "whose" ], [ "rating" ], [ "is" ], [ "le" ], [ "than" ], [ "minimum" ], [ "rating" ], [ "for" ], [ "english" ], [ "song" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "song", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "every", "DT" ], [ "song", "NN" ], [ "whose", "WP$" ], [ "rating", "NN" ], [ "is", "VBZ" ], [ "le", "JJR" ], [ "than", "IN" ], [ "minimum", "NN" ], [ "rating", "NN" ], [ "for", "IN" ], [ "english", "JJ" ], [ "song", "NN" ], [ "?", "." ] ], "values": [ "english" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(3) Filter(12) A(0) C(2) T(3) Root(3) Sel(0) N(0) A(2) C(2) T(3) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT f_id FROM song WHERE resolution > (SELECT max(resolution) FROM song WHERE rating < 8)", "query_toks": [ "SELECT", "f_id", "FROM", "song", "WHERE", "resolution", ">", "(", "SELECT", "max", "(", "resolution", ")", "FROM", "song", "WHERE", "rating", "<", "8", ")" ], "query_toks_no_value": [ "select", "f_id", "from", "song", "where", "resolution", ">", "(", "select", "max", "(", "resolution", ")", "from", "song", "where", "rating", "<", "value", ")" ], "question": "What is ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8?", "question_toks": [ "what", "is", "id", "of", "song", "whose", "resolution", "is", "higher", "than", "resolution", "of", "any", "song", "with", "rating", "lower", "than", "8", "?" ], "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 18, false ], null ], 8.0, null ] ] }, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "ids", "of", "the", "songs", "whose", "resolution", "is", "higher", "than", "the", "resolution", "of", "any", "songs", "with", "rating", "lower", "than", "8", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "song" ], [ "whose" ], [ "resolution" ], [ "is" ], [ "higher" ], [ "than" ], [ "resolution" ], [ "of" ], [ "any" ], [ "song" ], [ "with" ], [ "rating" ], [ "lower" ], [ "than" ], [ "8" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "whose", "WP$" ], [ "resolution", "NN" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "resolution", "NN" ], [ "of", "IN" ], [ "any", "DT" ], [ "song", "NN" ], [ "with", "IN" ], [ "rating", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "8", "CD" ], [ "?", "." ] ], "values": [ "8" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(13) A(0) C(16) T(3) Root(3) Sel(0) N(0) A(1) C(16) T(3) Filter(4) A(0) C(2) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT f_id FROM song WHERE resolution > (SELECT max(resolution) FROM song WHERE rating < 8)", "query_toks": [ "SELECT", "f_id", "FROM", "song", "WHERE", "resolution", ">", "(", "SELECT", "max", "(", "resolution", ")", "FROM", "song", "WHERE", "rating", "<", "8", ")" ], "query_toks_no_value": [ "select", "f_id", "from", "song", "where", "resolution", ">", "(", "select", "max", "(", "resolution", ")", "from", "song", "where", "rating", "<", "value", ")" ], "question": "What is the id of every song that has a resolution higher than that of a song with a rating below 8?", "question_toks": [ "what", "is", "id", "of", "every", "song", "that", "ha", "a", "resolution", "higher", "than", "that", "of", "a", "song", "with", "a", "rating", "below", "8", "?" ], "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 18, false ], null ], 8.0, null ] ] }, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "every", "song", "that", "has", "a", "resolution", "higher", "than", "that", "of", "a", "song", "with", "a", "rating", "below", "8", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "every" ], [ "song" ], [ "that" ], [ "ha" ], [ "a" ], [ "resolution" ], [ "higher" ], [ "than" ], [ "that" ], [ "of" ], [ "a" ], [ "song" ], [ "with" ], [ "a" ], [ "rating" ], [ "below" ], [ "8" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "song", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "a", "DT" ], [ "resolution", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "that", "DT" ], [ "of", "IN" ], [ "a", "DT" ], [ "song", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "rating", "NN" ], [ "below", "IN" ], [ "8", "CD" ], [ "?", "." ] ], "values": [ "8" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(13) A(0) C(16) T(3) Root(3) Sel(0) N(0) A(1) C(16) T(3) Filter(4) A(0) C(2) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT f_id FROM song WHERE resolution > (SELECT avg(resolution) FROM song WHERE genre_is = \"modern\")", "query_toks": [ "SELECT", "f_id", "FROM", "song", "WHERE", "resolution", ">", "(", "SELECT", "avg", "(", "resolution", ")", "FROM", "song", "WHERE", "genre_is", "=", "``", "modern", "''", ")" ], "query_toks_no_value": [ "select", "f_id", "from", "song", "where", "resolution", ">", "(", "select", "avg", "(", "resolution", ")", "from", "song", "where", "genre_is", "=", "value", ")" ], "question": "What is ids of the songs whose resolution is higher than the average resolution of songs in modern genre?", "question_toks": [ "what", "is", "id", "of", "song", "whose", "resolution", "is", "higher", "than", "average", "resolution", "of", "song", "in", "modern", "genre", "?" ], "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"modern\"", null ] ] }, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "ids", "of", "the", "songs", "whose", "resolution", "is", "higher", "than", "the", "average", "resolution", "of", "songs", "in", "modern", "genre", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "song" ], [ "whose" ], [ "resolution" ], [ "is" ], [ "higher" ], [ "than" ], [ "average" ], [ "resolution" ], [ "of" ], [ "song" ], [ "in" ], [ "modern" ], [ "genre" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "whose", "WP$" ], [ "resolution", "NN" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "resolution", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "in", "IN" ], [ "modern", "JJ" ], [ "genre", "NN" ], [ "?", "." ] ], "values": [ "modern" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(13) A(0) C(16) T(3) Root(3) Sel(0) N(0) A(5) C(16) T(3) Filter(2) A(0) C(13) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT f_id FROM song WHERE resolution > (SELECT avg(resolution) FROM song WHERE genre_is = \"modern\")", "query_toks": [ "SELECT", "f_id", "FROM", "song", "WHERE", "resolution", ">", "(", "SELECT", "avg", "(", "resolution", ")", "FROM", "song", "WHERE", "genre_is", "=", "``", "modern", "''", ")" ], "query_toks_no_value": [ "select", "f_id", "from", "song", "where", "resolution", ">", "(", "select", "avg", "(", "resolution", ")", "from", "song", "where", "genre_is", "=", "value", ")" ], "question": "What are the ids of all songs that have higher resolution of the average resolution in the modern genre?", "question_toks": [ "what", "are", "id", "of", "all", "song", "that", "have", "higher", "resolution", "of", "average", "resolution", "in", "modern", "genre", "?" ], "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"modern\"", null ] ] }, null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "songs", "that", "have", "higher", "resolution", "of", "the", "average", "resolution", "in", "the", "modern", "genre", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "song" ], [ "that" ], [ "have" ], [ "higher" ], [ "resolution" ], [ "of" ], [ "average" ], [ "resolution" ], [ "in" ], [ "modern" ], [ "genre" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "higher", "JJR" ], [ "resolution", "NN" ], [ "of", "IN" ], [ "average", "JJ" ], [ "resolution", "NN" ], [ "in", "IN" ], [ "modern", "JJ" ], [ "genre", "NN" ], [ "?", "." ] ], "values": [ "modern" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(13) A(0) C(16) T(3) Root(3) Sel(0) N(0) A(5) C(16) T(3) Filter(2) A(0) C(13) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = \"bangla\" GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "T1.artist_name", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.languages", "=", "``", "bangla", "''", "GROUP", "BY", "T2.artist_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t1", ".", "artist_name", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "languages", "=", "value", "group", "by", "t2", ".", "artist_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the top 3 artists who have the largest number of songs works whose language is Bangla.", "question_toks": [ "find", "top", "3", "artist", "who", "have", "largest", "number", "of", "song", "work", "whose", "language", "is", "bangla", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"bangla\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "Find", "the", "top", "3", "artists", "who", "have", "the", "largest", "number", "of", "songs", "works", "whose", "language", "is", "Bangla", "." ], "question_arg": [ [ "find" ], [ "top" ], [ "3" ], [ "artist" ], [ "who" ], [ "have" ], [ "largest" ], [ "number" ], [ "of" ], [ "song" ], [ "work" ], [ "whose" ], [ "language" ], [ "is" ], [ "bangla" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "top", "JJ" ], [ "3", "CD" ], [ "artist", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "song", "JJ" ], [ "work", "NN" ], [ "whose", "WP$" ], [ "language", "NN" ], [ "is", "VBZ" ], [ "bangla", "VBN" ], [ ".", "." ] ], "values": [ "bangla", "3" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(4) T(1) Sup(0) A(3) C(0) T(3) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = \"bangla\" GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "T1.artist_name", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.languages", "=", "``", "bangla", "''", "GROUP", "BY", "T2.artist_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t1", ".", "artist_name", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "languages", "=", "value", "group", "by", "t2", ".", "artist_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the top 3 artists with the largest number of songs in the language Bangla?", "question_toks": [ "what", "are", "top", "3", "artist", "with", "largest", "number", "of", "song", "in", "language", "bangla", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"bangla\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "top", "3", "artists", "with", "the", "largest", "number", "of", "songs", "in", "the", "language", "Bangla", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "top" ], [ "3" ], [ "artist" ], [ "with" ], [ "largest" ], [ "number" ], [ "of" ], [ "song" ], [ "in" ], [ "language" ], [ "bangla" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "top", "JJ" ], [ "3", "CD" ], [ "artist", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "in", "IN" ], [ "language", "NN" ], [ "bangla", "NN" ], [ "?", "." ] ], "values": [ "3", "bangla" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(4) T(1) Sup(0) A(3) C(0) T(3) Filter(2) A(0) C(14) T(3) V(1)" }, { "db_id": "music_1", "query": "SELECT f_id , genre_is , artist_name FROM song WHERE languages = \"english\" ORDER BY rating", "query_toks": [ "SELECT", "f_id", ",", "genre_is", ",", "artist_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''", "ORDER", "BY", "rating" ], "query_toks_no_value": [ "select", "f_id", ",", "genre_is", ",", "artist_name", "from", "song", "where", "languages", "=", "value", "order", "by", "rating" ], "question": "List the id, genre and artist name of English songs ordered by rating.", "question_toks": [ "list", "id", ",", "genre", "and", "artist", "name", "of", "english", "song", "ordered", "by", "rating", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "List", "the", "id", ",", "genre", "and", "artist", "name", "of", "English", "songs", "ordered", "by", "rating", "." ], "question_arg": [ [ "list" ], [ "id" ], [ "," ], [ "genre" ], [ "and" ], [ "artist", "name" ], [ "of" ], [ "english" ], [ "song" ], [ "ordered" ], [ "by" ], [ "rating" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "genre", "NN" ], [ "and", "CC" ], [ "artist", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "english", "JJ" ], [ "song", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "rating", "NN" ], [ ".", "." ] ], "values": [ "english" ], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(0) C(8) T(3) A(0) C(13) T(3) A(0) C(4) T(3) Filter(2) A(0) C(14) T(3) V(0) Order(1) A(0) C(2) T(3)" }, { "db_id": "music_1", "query": "SELECT f_id , genre_is , artist_name FROM song WHERE languages = \"english\" ORDER BY rating", "query_toks": [ "SELECT", "f_id", ",", "genre_is", ",", "artist_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''", "ORDER", "BY", "rating" ], "query_toks_no_value": [ "select", "f_id", ",", "genre_is", ",", "artist_name", "from", "song", "where", "languages", "=", "value", "order", "by", "rating" ], "question": "What is the id, genre, and name of the artist for every English song ordered by ascending rating?", "question_toks": [ "what", "is", "id", ",", "genre", ",", "and", "name", "of", "artist", "for", "every", "english", "song", "ordered", "by", "ascending", "rating", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "id", ",", "genre", ",", "and", "name", "of", "the", "artist", "for", "every", "English", "song", "ordered", "by", "ascending", "rating", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "," ], [ "genre" ], [ "," ], [ "and" ], [ "name" ], [ "of" ], [ "artist" ], [ "for" ], [ "every" ], [ "english" ], [ "song" ], [ "ordered" ], [ "by" ], [ "ascending" ], [ "rating" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ ",", "," ], [ "genre", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "for", "IN" ], [ "every", "DT" ], [ "english", "NN" ], [ "song", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "ascending", "VBG" ], [ "rating", "NN" ], [ "?", "." ] ], "values": [ "english" ], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(0) C(8) T(3) A(0) C(13) T(3) A(0) C(4) T(3) Filter(2) A(0) C(14) T(3) V(0) Order(1) A(0) C(2) T(3)" }, { "db_id": "music_1", "query": "SELECT T1.duration , T1.file_size , T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.genre_is = \"pop\" ORDER BY T2.song_name", "query_toks": [ "SELECT", "T1.duration", ",", "T1.file_size", ",", "T1.formats", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T2.genre_is", "=", "``", "pop", "''", "ORDER", "BY", "T2.song_name" ], "query_toks_no_value": [ "select", "t1", ".", "duration", ",", "t1", ".", "file_size", ",", "t1", ".", "formats", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t2", ".", "genre_is", "=", "value", "order", "by", "t2", ".", "song_name" ], "question": "List the duration, file size and format of songs whose genre is pop, ordered by title?", "question_toks": [ "list", "duration", ",", "file", "size", "and", "format", "of", "song", "whose", "genre", "is", "pop", ",", "ordered", "by", "title", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"pop\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "List", "the", "duration", ",", "file", "size", "and", "format", "of", "songs", "whose", "genre", "is", "pop", ",", "ordered", "by", "title", "?" ], "question_arg": [ [ "list" ], [ "duration" ], [ "," ], [ "file", "size" ], [ "and" ], [ "format" ], [ "of" ], [ "song" ], [ "whose" ], [ "genre", "is" ], [ "pop" ], [ "," ], [ "ordered" ], [ "by" ], [ "title" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "duration", "NN" ], [ ",", "," ], [ "file", "NN" ], [ "size", "NN" ], [ "and", "CC" ], [ "format", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "whose", "WP$" ], [ "genre", "NN" ], [ "is", "VBZ" ], [ "pop", "JJ" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "title", "NN" ], [ "?", "." ] ], "values": [ "pop" ], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(0) C(10) T(2) A(0) C(9) T(2) A(0) C(11) T(2) Filter(2) A(0) C(13) T(3) V(0) Order(1) A(0) C(12) T(3)" }, { "db_id": "music_1", "query": "SELECT T1.duration , T1.file_size , T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.genre_is = \"pop\" ORDER BY T2.song_name", "query_toks": [ "SELECT", "T1.duration", ",", "T1.file_size", ",", "T1.formats", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T2.genre_is", "=", "``", "pop", "''", "ORDER", "BY", "T2.song_name" ], "query_toks_no_value": [ "select", "t1", ".", "duration", ",", "t1", ".", "file_size", ",", "t1", ".", "formats", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t2", ".", "genre_is", "=", "value", "order", "by", "t2", ".", "song_name" ], "question": "What is the duration, file size, and song format for every pop song, ordered by title alphabetically?", "question_toks": [ "what", "is", "duration", ",", "file", "size", ",", "and", "song", "format", "for", "every", "pop", "song", ",", "ordered", "by", "title", "alphabetically", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"pop\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "duration", ",", "file", "size", ",", "and", "song", "format", "for", "every", "pop", "song", ",", "ordered", "by", "title", "alphabetically", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "duration" ], [ "," ], [ "file", "size" ], [ "," ], [ "and" ], [ "song" ], [ "format" ], [ "for" ], [ "every" ], [ "pop" ], [ "song" ], [ "," ], [ "ordered" ], [ "by" ], [ "title" ], [ "alphabetically" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "duration", "NN" ], [ ",", "," ], [ "file", "NN" ], [ "size", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "song", "JJ" ], [ "format", "NN" ], [ "for", "IN" ], [ "every", "DT" ], [ "pop", "NN" ], [ "song", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "title", "NN" ], [ "alphabetically", "RB" ], [ "?", "." ] ], "values": [ "pop" ], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(0) C(10) T(2) A(0) C(9) T(2) A(0) C(11) T(2) Filter(2) A(0) C(13) T(3) V(0) Order(1) A(0) C(12) T(3)" }, { "db_id": "music_1", "query": "SELECT DISTINCT artist_name FROM song WHERE languages = \"english\" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 8", "query_toks": [ "SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''", "EXCEPT", "SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "rating", ">", "8" ], "query_toks_no_value": [ "select", "distinct", "artist_name", "from", "song", "where", "languages", "=", "value", "except", "select", "distinct", "artist_name", "from", "song", "where", "rating", ">", "value" ], "question": "Find the names of the artists who have produced English songs but have never received rating higher than 8.", "question_toks": [ "find", "name", "of", "artist", "who", "have", "produced", "english", "song", "but", "have", "never", "received", "rating", "higher", "than", "8", "." ], "sql": { "except": { "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, 3, [ 0, [ 0, 18, false ], null ], 8.0, 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, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "artists", "who", "have", "produced", "English", "songs", "but", "have", "never", "received", "rating", "higher", "than", "8", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "have" ], [ "produced" ], [ "english" ], [ "song" ], [ "but" ], [ "have" ], [ "never" ], [ "received" ], [ "rating" ], [ "higher" ], [ "than" ], [ "8" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "produced", "VBN" ], [ "english", "JJ" ], [ "song", "NN" ], [ "but", "CC" ], [ "have", "VBP" ], [ "never", "RB" ], [ "received", "VBN" ], [ "rating", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "8", "CD" ], [ ".", "." ] ], "values": [ "8", "english" ], "rule_label": "Root1(2) Root(3) Sel(1) N(0) A(0) C(4) T(3) Filter(2) A(0) C(14) T(3) V(1) Root(3) Sel(1) N(0) A(0) C(4) T(3) Filter(5) A(0) C(2) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT DISTINCT artist_name FROM song WHERE languages = \"english\" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 8", "query_toks": [ "SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''", "EXCEPT", "SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "rating", ">", "8" ], "query_toks_no_value": [ "select", "distinct", "artist_name", "from", "song", "where", "languages", "=", "value", "except", "select", "distinct", "artist_name", "from", "song", "where", "rating", ">", "value" ], "question": "What are the names of the different artists that have produced a song in English but have never receieved a rating higher than 8?", "question_toks": [ "what", "are", "name", "of", "different", "artist", "that", "have", "produced", "a", "song", "in", "english", "but", "have", "never", "receieved", "a", "rating", "higher", "than", "8", "?" ], "sql": { "except": { "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, 3, [ 0, [ 0, 18, false ], null ], 8.0, 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, 2, [ 0, [ 0, 19, false ], null ], "\"english\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "different", "artists", "that", "have", "produced", "a", "song", "in", "English", "but", "have", "never", "receieved", "a", "rating", "higher", "than", "8", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "different" ], [ "artist" ], [ "that" ], [ "have" ], [ "produced" ], [ "a" ], [ "song" ], [ "in" ], [ "english" ], [ "but" ], [ "have" ], [ "never" ], [ "receieved" ], [ "a" ], [ "rating" ], [ "higher" ], [ "than" ], [ "8" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "artist", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "produced", "VBN" ], [ "a", "DT" ], [ "song", "NN" ], [ "in", "IN" ], [ "english", "JJ" ], [ "but", "CC" ], [ "have", "VBP" ], [ "never", "RB" ], [ "receieved", "VBN" ], [ "a", "DT" ], [ "rating", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "8", "CD" ], [ "?", "." ] ], "values": [ "8", "english" ], "rule_label": "Root1(2) Root(3) Sel(1) N(0) A(0) C(4) T(3) Filter(2) A(0) C(14) T(3) V(1) Root(3) Sel(1) N(0) A(0) C(4) T(3) Filter(5) A(0) C(2) T(3) V(0)" }, { "db_id": "music_1", "query": "SELECT DISTINCT artist_name FROM artist WHERE country = \"Bangladesh\" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 7", "query_toks": [ "SELECT", "DISTINCT", "artist_name", "FROM", "artist", "WHERE", "country", "=", "``", "Bangladesh", "''", "EXCEPT", "SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "rating", ">", "7" ], "query_toks_no_value": [ "select", "distinct", "artist_name", "from", "artist", "where", "country", "=", "value", "except", "select", "distinct", "artist_name", "from", "song", "where", "rating", ">", "value" ], "question": "Find the names of the artists who are from Bangladesh and have never received rating higher than 7.", "question_toks": [ "find", "name", "of", "artist", "who", "are", "from", "bangladesh", "and", "have", "never", "received", "rating", "higher", "than", "7", "." ], "sql": { "except": { "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, 3, [ 0, [ 0, 18, false ], null ], 7.0, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Bangladesh\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "artists", "who", "are", "from", "Bangladesh", "and", "have", "never", "received", "rating", "higher", "than", "7", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "are" ], [ "from" ], [ "bangladesh" ], [ "and" ], [ "have" ], [ "never" ], [ "received" ], [ "rating" ], [ "higher" ], [ "than" ], [ "7" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "from", "IN" ], [ "bangladesh", "NN" ], [ "and", "CC" ], [ "have", "VBP" ], [ "never", "RB" ], [ "received", "VBN" ], [ "rating", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "7", "CD" ], [ ".", "." ] ], "values": [ "Bangladesh", "7" ], "rule_label": "Root1(2) Root(3) Sel(1) N(0) A(0) C(4) T(1) Filter(2) A(0) C(5) T(1) V(0) Root(3) Sel(1) N(0) A(0) C(4) T(3) Filter(5) A(0) C(2) T(3) V(1)" }, { "db_id": "music_1", "query": "SELECT DISTINCT artist_name FROM artist WHERE country = \"Bangladesh\" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 7", "query_toks": [ "SELECT", "DISTINCT", "artist_name", "FROM", "artist", "WHERE", "country", "=", "``", "Bangladesh", "''", "EXCEPT", "SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "rating", ">", "7" ], "query_toks_no_value": [ "select", "distinct", "artist_name", "from", "artist", "where", "country", "=", "value", "except", "select", "distinct", "artist_name", "from", "song", "where", "rating", ">", "value" ], "question": "What are the names of the different artists from Bangladesh who never received a rating higher than a 7?", "question_toks": [ "what", "are", "name", "of", "different", "artist", "from", "bangladesh", "who", "never", "received", "a", "rating", "higher", "than", "a", "7", "?" ], "sql": { "except": { "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, 3, [ 0, [ 0, 18, false ], null ], 7.0, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Bangladesh\"", null ] ] }, "names": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "artist name", "file size", "duration", "formats", "song name", "artist name", "country", "song id", "genre is", "rating", "languages", "releasedate", "resolution" ], "table_names": [ "genre", "artist", "files", "song" ], "col_set": [ "*", "genre name", "rating", "most popular in", "artist name", "country", "gender", "preferred genre", "song id", "file size", "duration", "formats", "song name", "genre is", "languages", "releasedate", "resolution" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "7": 1, "1": 1, "9": 4, "4": 4, "17": 1, "16": 8, "8": 8, "14": 4, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "different", "artists", "from", "Bangladesh", "who", "never", "received", "a", "rating", "higher", "than", "a", "7", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "different" ], [ "artist" ], [ "from" ], [ "bangladesh" ], [ "who" ], [ "never" ], [ "received" ], [ "a" ], [ "rating" ], [ "higher" ], [ "than" ], [ "a" ], [ "7" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "artist", "NN" ], [ "from", "IN" ], [ "bangladesh", "NN" ], [ "who", "WP" ], [ "never", "RB" ], [ "received", "VBD" ], [ "a", "DT" ], [ "rating", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "a", "DT" ], [ "7", "CD" ], [ "?", "." ] ], "values": [ "Bangladesh", "7" ], "rule_label": "Root1(2) Root(3) Sel(1) N(0) A(0) C(4) T(1) Filter(2) A(0) C(5) T(1) V(0) Root(3) Sel(1) N(0) A(0) C(4) T(3) Filter(5) A(0) C(2) T(3) V(1)" }, { "db_id": "baseball_1", "query": "SELECT T1.name_full , T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.name_full", ",", "T1.college_id", "FROM", "college", "AS", "T1", "JOIN", "player_college", "AS", "T2", "ON", "T1.college_id", "=", "T2.college_id", "GROUP", "BY", "T1.college_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name_full", ",", "t1", ".", "college_id", "from", "college", "as", "t1", "join", "player_college", "as", "t2", "on", "t1", ".", "college_id", "=", "t2", ".", "college_id", "group", "by", "t1", ".", "college_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "what is the full name and id of the college with the largest number of baseball players?", "question_toks": [ "what", "is", "full", "name", "and", "id", "of", "college", "with", "largest", "number", "of", "baseball", "player", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 156, false ], null ], [ 0, 101, false ], null ] ], "table_units": [ [ "table_unit", 14 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 156, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 157, false ], null ] ], [ 0, [ 0, [ 0, 156, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 156, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 101, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "what", "is", "the", "full", "name", "and", "id", "of", "the", "college", "with", "the", "largest", "number", "of", "baseball", "players", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name", "full" ], [ "and" ], [ "id" ], [ "of" ], [ "college" ], [ "with" ], [ "largest" ], [ "number" ], [ "of" ], [ "baseball" ], [ "player" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "baseball", "NN" ], [ "player", "NN" ], [ "?", "." ] ], "values": [ "ID", "Nate", "Nome", "Basgall", "Humber", "mscollege", "ilcollege", "Player", "macollege", "lacollege", "gacollege" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(95) T(14) A(0) C(51) T(14) Sup(0) A(3) C(0) T(8) Filter(18) A(0) C(51) T(14) Root(5) Sel(0) N(0) A(0) C(51) T(8)" }, { "db_id": "baseball_1", "query": "SELECT T1.name_full , T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.name_full", ",", "T1.college_id", "FROM", "college", "AS", "T1", "JOIN", "player_college", "AS", "T2", "ON", "T1.college_id", "=", "T2.college_id", "GROUP", "BY", "T1.college_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name_full", ",", "t1", ".", "college_id", "from", "college", "as", "t1", "join", "player_college", "as", "t2", "on", "t1", ".", "college_id", "=", "t2", ".", "college_id", "group", "by", "t1", ".", "college_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the full name and id of the college that has the most baseball players.", "question_toks": [ "find", "full", "name", "and", "id", "of", "college", "that", "ha", "most", "baseball", "player", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 156, false ], null ], [ 0, 101, false ], null ] ], "table_units": [ [ "table_unit", 14 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 156, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 157, false ], null ] ], [ 0, [ 0, [ 0, 156, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 156, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 101, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Find", "the", "full", "name", "and", "id", "of", "the", "college", "that", "has", "the", "most", "baseball", "players", "." ], "question_arg": [ [ "find" ], [ "name", "full" ], [ "and" ], [ "id" ], [ "of" ], [ "college" ], [ "that" ], [ "ha" ], [ "most" ], [ "baseball" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "baseball", "NN" ], [ "player", "NN" ], [ ".", "." ] ], "values": [ "ID", "Nate", "Nome", "Basgall", "ilcollege", "mscollege", "Player", "macollege", "lacollege", "gacollege" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(95) T(14) A(0) C(51) T(14) Sup(0) A(3) C(0) T(8) Filter(18) A(0) C(51) T(14) Root(5) Sel(0) N(0) A(0) C(51) T(8)" }, { "db_id": "baseball_1", "query": "SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings'", "query_toks": [ "SELECT", "avg", "(", "T1.salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value" ], "question": "What is average salary of the players in the team named 'Boston Red Stockings' ?", "question_toks": [ "what", "is", "average", "salary", "of", "player", "in", "team", "named", "'", "boston", "red", "stocking", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 152, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 155, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "is", "average", "salary", "of", "the", "players", "in", "the", "team", "named", "'Boston", "Red", "Stockings", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "salary" ], [ "of" ], [ "player" ], [ "in" ], [ "team" ], [ "named" ], [ "'" ], [ "boston" ], [ "red" ], [ "stocking" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "salary", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "in", "IN" ], [ "team", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "boston", "NN" ], [ "red", "VBD" ], [ "stocking", "VBG" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Reid", "Bouton", "Red", "Reed", "Fred", "Bolton", "Boston Red Stockings", "Tam", "Boston Reds", "Player", "Beam", "Borton", "Boston" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(94) T(13) Filter(2) A(0) C(127) T(16) V(6)" }, { "db_id": "baseball_1", "query": "SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings'", "query_toks": [ "SELECT", "avg", "(", "T1.salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value" ], "question": "Compute the average salary of the players in the team called 'Boston Red Stockings'.", "question_toks": [ "compute", "average", "salary", "of", "player", "in", "team", "called", "'", "boston", "red", "stocking", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 152, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 155, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Compute", "the", "average", "salary", "of", "the", "players", "in", "the", "team", "called", "'Boston", "Red", "Stockings", "'", "." ], "question_arg": [ [ "compute" ], [ "average" ], [ "salary" ], [ "of" ], [ "player" ], [ "in" ], [ "team" ], [ "called" ], [ "'" ], [ "boston" ], [ "red" ], [ "stocking" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "compute", "JJ" ], [ "average", "JJ" ], [ "salary", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "in", "IN" ], [ "team", "NN" ], [ "called", "VBN" ], [ "'", "POS" ], [ "boston", "NN" ], [ "red", "VBD" ], [ "stocking", "VBG" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "Red", "Reed", "Tam", "Player", "Borton", "Boston", "Reid", "Bolton", "Beam", "Fred", "Boston Reds", "Boston Red Stockings", "Bouton" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(94) T(13) Filter(2) A(0) C(127) T(16) V(11)" }, { "db_id": "baseball_1", "query": "SELECT name_first , name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998", "query_toks": [ "SELECT", "name_first", ",", "name_last", "FROM", "player", "AS", "T1", "JOIN", "all_star", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "WHERE", "YEAR", "=", "1998" ], "query_toks_no_value": [ "select", "name_first", ",", "name_last", "from", "player", "as", "t1", "join", "all_star", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "where", "year", "=", "value" ], "question": "What are first and last names of players participating in all star game in 1998?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "player", "participating", "in", "all", "star", "game", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 121, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], 1998.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "are", "first", "and", "last", "names", "of", "players", "participating", "in", "all", "star", "game", "in", "1998", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "name", "last" ], [ "of" ], [ "player" ], [ "participating" ], [ "in" ], [ "all", "star" ], [ "game" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "participating", "VBG" ], [ "in", "IN" ], [ "all", "DT" ], [ "star", "NN" ], [ "game", "NN" ], [ "in", "IN" ], [ "1998", "CD" ], [ "?", "." ] ], "values": [ "Gabe", "Gall", "Wall", "Player", "James", "1998", "Start", "Ball", "Hall", "1", "Stan", "Starr", "Gamel", "Gale", "Stark", "Pall", "Ames" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(78) T(11) A(0) C(79) T(11) Filter(2) A(0) C(2) T(0) V(5)" }, { "db_id": "baseball_1", "query": "SELECT name_first , name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998", "query_toks": [ "SELECT", "name_first", ",", "name_last", "FROM", "player", "AS", "T1", "JOIN", "all_star", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "WHERE", "YEAR", "=", "1998" ], "query_toks_no_value": [ "select", "name_first", ",", "name_last", "from", "player", "as", "t1", "join", "all_star", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "where", "year", "=", "value" ], "question": "List the first and last name for players who participated in all star game in 1998.", "question_toks": [ "list", "first", "and", "last", "name", "for", "player", "who", "participated", "in", "all", "star", "game", "in", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 121, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], 1998.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "List", "the", "first", "and", "last", "name", "for", "players", "who", "participated", "in", "all", "star", "game", "in", "1998", "." ], "question_arg": [ [ "list" ], [ "first" ], [ "and" ], [ "name", "last" ], [ "for" ], [ "player" ], [ "who" ], [ "participated" ], [ "in" ], [ "all", "star" ], [ "game" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "player", "NN" ], [ "who", "WP" ], [ "participated", "VBD" ], [ "in", "IN" ], [ "all", "DT" ], [ "star", "NN" ], [ "game", "NN" ], [ "in", "IN" ], [ "1998", "CD" ], [ ".", "." ] ], "values": [ "Nome", "Gabe", "Gall", "Wall", "Player", "1998", "Start", "Nate", "Ball", "Hall", "1", "Stan", "Starr", "Gamel", "Gale", "Stark", "Pall" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(78) T(11) A(0) C(79) T(11) Filter(2) A(0) C(2) T(0) V(5)" }, { "db_id": "baseball_1", "query": "SELECT T1.name_first , T1.name_last , T1.player_id , count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.name_first", ",", "T1.name_last", ",", "T1.player_id", ",", "count", "(", "*", ")", "FROM", "player", "AS", "T1", "JOIN", "all_star", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.player_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t1", ".", "player_id", ",", "count", "(", "*", ")", "from", "player", "as", "t1", "join", "all_star", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "player_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the first name, last name and id of the player with the most all star game experiences? Also list the count.", "question_toks": [ "what", "are", "first", "name", ",", "last", "name", "and", "id", "of", "player", "with", "most", "all", "star", "game", "experience", "?", "also", "list", "count", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 121, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 121, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ], [ 0, [ 0, [ 0, 121, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "are", "the", "first", "name", ",", "last", "name", "and", "id", "of", "the", "player", "with", "the", "most", "all", "star", "game", "experiences", "?", "Also", "list", "the", "count", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name", "first" ], [ "," ], [ "name", "last" ], [ "and" ], [ "id" ], [ "of" ], [ "player" ], [ "with" ], [ "most" ], [ "all", "star" ], [ "game" ], [ "experience" ], [ "?" ], [ "also" ], [ "list" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "all", "DT" ], [ "star", "NN" ], [ "game", "NN" ], [ "experience", "NN" ], [ "?", "." ], [ "also", "RB" ], [ "list", "NN" ], [ "count", "NN" ], [ ".", "." ] ], "values": [ "Count", "Nome", "Gabe", "Player", "Starr", "Nate", "Start", "1", "Stan", "ID", "Gamel", "Gale", "Yount", "Stark" ], "rule_label": "Root1(3) Root(2) Sel(0) N(3) A(0) C(78) T(11) A(0) C(79) T(11) A(0) C(1) T(11) A(3) C(0) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "baseball_1", "query": "SELECT T1.name_first , T1.name_last , T1.player_id , count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.name_first", ",", "T1.name_last", ",", "T1.player_id", ",", "count", "(", "*", ")", "FROM", "player", "AS", "T1", "JOIN", "all_star", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.player_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t1", ".", "player_id", ",", "count", "(", "*", ")", "from", "player", "as", "t1", "join", "all_star", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "player_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which player has the most all star game experiences? Give me the first name, last name and id of the player, as well as the number of times the player participated in all star game.", "question_toks": [ "which", "player", "ha", "most", "all", "star", "game", "experience", "?", "give", "me", "first", "name", ",", "last", "name", "and", "id", "of", "player", ",", "a", "well", "a", "number", "of", "time", "player", "participated", "in", "all", "star", "game", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 121, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 121, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ], [ 0, [ 0, [ 0, 121, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Which", "player", "has", "the", "most", "all", "star", "game", "experiences", "?", "Give", "me", "the", "first", "name", ",", "last", "name", "and", "id", "of", "the", "player", ",", "as", "well", "as", "the", "number", "of", "times", "the", "player", "participated", "in", "all", "star", "game", "." ], "question_arg": [ [ "which" ], [ "player" ], [ "ha" ], [ "most" ], [ "all", "star" ], [ "game" ], [ "experience" ], [ "?" ], [ "give" ], [ "me" ], [ "name", "first" ], [ "," ], [ "name", "last" ], [ "and" ], [ "id" ], [ "of" ], [ "player" ], [ "," ], [ "a" ], [ "well" ], [ "a" ], [ "number" ], [ "of" ], [ "time" ], [ "player" ], [ "participated" ], [ "in" ], [ "all", "star" ], [ "game" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "MOST" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "player", "NN" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "all", "DT" ], [ "star", "NN" ], [ "game", "NN" ], [ "experience", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "first", "RB" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ ",", "," ], [ "a", "DT" ], [ "well", "RB" ], [ "a", "DT" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "player", "NN" ], [ "participated", "VBN" ], [ "in", "IN" ], [ "all", "DT" ], [ "star", "NN" ], [ "game", "NN" ], [ ".", "." ] ], "values": [ "Nome", "1", "Hall", "Stan", "Nate", "Pall", "ID", "Player", "Gabe", "Ball", "Gale", "Start", "Gall", "Wall", "Stark", "Gamel", "Starr", "Humber", "Himes" ], "rule_label": "Root1(3) Root(2) Sel(0) N(3) A(0) C(78) T(11) A(0) C(79) T(11) A(0) C(1) T(11) A(3) C(0) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "baseball_1", "query": "SELECT yearid , count(*) FROM hall_of_fame GROUP BY yearid;", "query_toks": [ "SELECT", "yearid", ",", "count", "(", "*", ")", "FROM", "hall_of_fame", "GROUP", "BY", "yearid", ";" ], "query_toks_no_value": [ "select", "yearid", ",", "count", "(", "*", ")", "from", "hall_of_fame", "group", "by", "yearid" ], "question": "How many players enter hall of fame each year?", "question_toks": [ "how", "many", "player", "enter", "hall", "of", "fame", "each", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 104, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 104, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "How", "many", "players", "enter", "hall", "of", "fame", "each", "year", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "player" ], [ "enter" ], [ "hall", "of", "fame" ], [ "each" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "player", "NN" ], [ "enter", "VBP" ], [ "hall", "NN" ], [ "of", "IN" ], [ "fame", "NN" ], [ "each", "DT" ], [ "year", "NN" ], [ "?", "." ] ], "values": [ "Hill", "Hall", "Pall", "Player", "OF", "Hale", "Hull", "Halt", "Ball", "Gall", "Face", "Halla", "Wall", "Faye", "Hal", "Harl", "Flame" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(52) T(9) A(3) C(0) T(9)" }, { "db_id": "baseball_1", "query": "SELECT yearid , count(*) FROM hall_of_fame GROUP BY yearid;", "query_toks": [ "SELECT", "yearid", ",", "count", "(", "*", ")", "FROM", "hall_of_fame", "GROUP", "BY", "yearid", ";" ], "query_toks_no_value": [ "select", "yearid", ",", "count", "(", "*", ")", "from", "hall_of_fame", "group", "by", "yearid" ], "question": "Count the number of players who enter hall of fame for each year.", "question_toks": [ "count", "number", "of", "player", "who", "enter", "hall", "of", "fame", "for", "each", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 104, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 104, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Count", "the", "number", "of", "players", "who", "enter", "hall", "of", "fame", "for", "each", "year", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "player" ], [ "who" ], [ "enter" ], [ "hall", "of", "fame" ], [ "for" ], [ "each" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "who", "WP" ], [ "enter", "VBP" ], [ "hall", "NN" ], [ "of", "IN" ], [ "fame", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "year", "NN" ], [ ".", "." ] ], "values": [ "Hill", "Hall", "Pall", "Player", "OF", "Hale", "Hull", "Halt", "Ball", "Gall", "Face", "Halla", "Wall", "Faye", "Hal", "Harl", "Humber", "Flame" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(52) T(9) A(3) C(0) T(9)" }, { "db_id": "baseball_1", "query": "SELECT YEAR , avg(attendance) FROM home_game GROUP BY YEAR;", "query_toks": [ "SELECT", "YEAR", ",", "avg", "(", "attendance", ")", "FROM", "home_game", "GROUP", "BY", "YEAR", ";" ], "query_toks_no_value": [ "select", "year", ",", "avg", "(", "attendance", ")", "from", "home_game", "group", "by", "year" ], "question": "What is the average number of attendance at home games for each year?", "question_toks": [ "what", "is", "average", "number", "of", "attendance", "at", "home", "game", "for", "each", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 112, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 112, false ], null ] ], [ 5, [ 0, [ 0, 120, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "attendance", "at", "home", "games", "for", "each", "year", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "attendance" ], [ "at" ], [ "home", "game" ], [ "for" ], [ "each" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "attendance", "NN" ], [ "at", "IN" ], [ "home", "NN" ], [ "game", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "year", "NN" ], [ "?", "." ] ], "values": [ "Hume", "Nome", "Hoge", "James", "Hobe", "Rome", "Thome", "Ohme", "Hope", "Homer", "Gamel", "Gomes", "Gates", "Humber", "Howe", "Ames" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(10) A(5) C(65) T(10)" }, { "db_id": "baseball_1", "query": "SELECT YEAR , avg(attendance) FROM home_game GROUP BY YEAR;", "query_toks": [ "SELECT", "YEAR", ",", "avg", "(", "attendance", ")", "FROM", "home_game", "GROUP", "BY", "YEAR", ";" ], "query_toks_no_value": [ "select", "year", ",", "avg", "(", "attendance", ")", "from", "home_game", "group", "by", "year" ], "question": "For each year, return the year and the average number of attendance at home games.", "question_toks": [ "for", "each", "year", ",", "return", "year", "and", "average", "number", "of", "attendance", "at", "home", "game", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 112, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 112, false ], null ] ], [ 5, [ 0, [ 0, 120, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "For", "each", "year", ",", "return", "the", "year", "and", "the", "average", "number", "of", "attendance", "at", "home", "games", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "year" ], [ "," ], [ "return" ], [ "year" ], [ "and" ], [ "average" ], [ "number" ], [ "of" ], [ "attendance" ], [ "at" ], [ "home", "game" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "year", "NN" ], [ ",", "," ], [ "return", "VBP" ], [ "year", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "attendance", "NN" ], [ "at", "IN" ], [ "home", "NN" ], [ "game", "NN" ], [ ".", "." ] ], "values": [ "Howe", "Hobe", "Homer", "Humber", "Nome", "Hope", "Hoge", "Ohme", "Gomes", "James", "Gamel", "Ames", "Hume", "Thome", "Rome", "Gates" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(10) A(5) C(65) T(10)" }, { "db_id": "baseball_1", "query": "SELECT T2.team_id , T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id WHERE T1.year = 2014 GROUP BY T1.team_id ORDER BY avg(T1.attendance) DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.team_id", ",", "T2.rank", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id", "WHERE", "T1.year", "=", "2014", "GROUP", "BY", "T1.team_id", "ORDER", "BY", "avg", "(", "T1.attendance", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "team_id", ",", "t2", ".", "rank", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id", "where", "t1", ".", "year", "=", "value", "group", "by", "t1", ".", "team_id", "order", "by", "avg", "(", "t1", ".", "attendance", ")", "desc", "limit", "value" ], "question": "In 2014, what are the id and rank of the team that has the largest average number of attendance?", "question_toks": [ "in", "year", ",", "what", "are", "id", "and", "rank", "of", "team", "that", "ha", "largest", "average", "number", "of", "attendance", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 114, false ], null ], [ 0, 172, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 16 ] ] }, "groupBy": [ [ 0, 114, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 120, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 172, false ], null ] ], [ 0, [ 0, [ 0, 175, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 112, false ], null ], 2014.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "In", "2014", ",", "what", "are", "the", "id", "and", "rank", "of", "the", "team", "that", "has", "the", "largest", "average", "number", "of", "attendance", "?" ], "question_arg": [ [ "in" ], [ "year" ], [ "," ], [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "rank" ], [ "of" ], [ "team" ], [ "that" ], [ "ha" ], [ "largest" ], [ "average" ], [ "number" ], [ "of" ], [ "attendance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MOST" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "2014", "CD" ], [ ",", "," ], [ "what", "WP" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "rank", "NN" ], [ "of", "IN" ], [ "team", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "largest", "JJS" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "attendance", "NN" ], [ "?", "." ] ], "values": [ "Frank", "Beam", "Humber", "Hank", "Rand", "Yank", "Tam", "ID", "2014" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(5) T(16) A(0) C(105) T(16) Sup(0) A(5) C(65) T(10) Filter(2) A(0) C(2) T(10) V(8)" }, { "db_id": "baseball_1", "query": "SELECT T2.team_id , T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id WHERE T1.year = 2014 GROUP BY T1.team_id ORDER BY avg(T1.attendance) DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.team_id", ",", "T2.rank", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id", "WHERE", "T1.year", "=", "2014", "GROUP", "BY", "T1.team_id", "ORDER", "BY", "avg", "(", "T1.attendance", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "team_id", ",", "t2", ".", "rank", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id", "where", "t1", ".", "year", "=", "value", "group", "by", "t1", ".", "team_id", "order", "by", "avg", "(", "t1", ".", "attendance", ")", "desc", "limit", "value" ], "question": "Find the id and rank of the team that has the highest average attendance rate in 2014.", "question_toks": [ "find", "id", "and", "rank", "of", "team", "that", "ha", "highest", "average", "attendance", "rate", "in", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 114, false ], null ], [ 0, 172, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 16 ] ] }, "groupBy": [ [ 0, 114, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 120, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 172, false ], null ] ], [ 0, [ 0, [ 0, 175, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 112, false ], null ], 2014.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Find", "the", "id", "and", "rank", "of", "the", "team", "that", "has", "the", "highest", "average", "attendance", "rate", "in", "2014", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "rank" ], [ "of" ], [ "team" ], [ "that" ], [ "ha" ], [ "highest" ], [ "average" ], [ "attendance" ], [ "rate" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MOST" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "rank", "NN" ], [ "of", "IN" ], [ "team", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "highest", "JJS" ], [ "average", "JJ" ], [ "attendance", "NN" ], [ "rate", "NN" ], [ "in", "IN" ], [ "2014", "CD" ], [ ".", "." ] ], "values": [ "Frank", "Beam", "Rabe", "Rath", "Nate", "Rae", "Hank", "Rand", "Yank", "Tam", "ID", "Cate", "Pate", "2014", "Tate", "Grate" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(5) T(16) A(0) C(105) T(16) Sup(0) A(5) C(65) T(10) Filter(2) A(0) C(2) T(10) V(13)" }, { "db_id": "baseball_1", "query": "SELECT T1.name_first , T1.name_last , T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id = T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.name_first", ",", "T1.name_last", ",", "T2.player_id", "FROM", "player", "AS", "T1", "JOIN", "manager_award", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T2.player_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t2", ".", "player_id", "from", "player", "as", "t1", "join", "manager_award", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t2", ".", "player_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the manager's first name, last name and id who won the most manager award?", "question_toks": [ "what", "are", "manager", "'s", "first", "name", ",", "last", "name", "and", "id", "who", "won", "most", "manager", "award", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 121, false ], null ], [ 0, 30, false ], null ] ], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 30, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ], [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "are", "the", "manager", "'s", "first", "name", ",", "last", "name", "and", "id", "who", "won", "the", "most", "manager", "award", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "manager" ], [ "'s" ], [ "name", "first" ], [ "," ], [ "name", "last" ], [ "and" ], [ "id" ], [ "who" ], [ "won" ], [ "most" ], [ "manager", "award" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "manager", "NN" ], [ "'s", "POS" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "who", "WP" ], [ "won", "VBD" ], [ "most", "JJS" ], [ "manager", "NN" ], [ "award", "NN" ], [ "?", "." ] ], "values": [ "1", "Manager", "Ward", "Nate", "ID", "Nome" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(78) T(11) A(0) C(79) T(11) A(0) C(1) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "baseball_1", "query": "SELECT T1.name_first , T1.name_last , T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id = T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.name_first", ",", "T1.name_last", ",", "T2.player_id", "FROM", "player", "AS", "T1", "JOIN", "manager_award", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T2.player_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t2", ".", "player_id", "from", "player", "as", "t1", "join", "manager_award", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t2", ".", "player_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which manager won the most manager award? Give me the manager's first name, last name and id.", "question_toks": [ "which", "manager", "won", "most", "manager", "award", "?", "give", "me", "manager", "'s", "first", "name", ",", "last", "name", "and", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 121, false ], null ], [ 0, 30, false ], null ] ], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 30, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ], [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Which", "manager", "won", "the", "most", "manager", "award", "?", "Give", "me", "the", "manager", "'s", "first", "name", ",", "last", "name", "and", "id", "." ], "question_arg": [ [ "which" ], [ "manager" ], [ "won" ], [ "most" ], [ "manager", "award" ], [ "?" ], [ "give" ], [ "me" ], [ "manager" ], [ "'s" ], [ "name", "first" ], [ "," ], [ "name", "last" ], [ "and" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "manager", "NN" ], [ "won", "VBD" ], [ "most", "JJS" ], [ "manager", "NN" ], [ "award", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "manager", "NN" ], [ "'s", "POS" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "Manager", "ID", "Nome", "Ward", "1", "Nate" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(78) T(11) A(0) C(79) T(11) A(0) C(1) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM park WHERE state = 'NY';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "park", "WHERE", "state", "=", "'NY", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "park", "where", "state", "=", "value" ], "question": "How many parks are there in the state of NY?", "question_toks": [ "how", "many", "park", "are", "there", "in", "state", "of", "ny", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 149, false ], null ], "\"NY\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "How", "many", "parks", "are", "there", "in", "the", "state", "of", "NY", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "park" ], [ "are" ], [ "there" ], [ "in" ], [ "state" ], [ "of" ], [ "ny" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "park", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "state", "NN" ], [ "of", "IN" ], [ "ny", "NN" ], [ "?", "." ] ], "values": [ "Parke", "Marks", "Statz", "Park", "Sparks", "New York", "Paris", "Tate", "Parks", "NY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(12) Filter(2) A(0) C(92) T(12) V(9)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM park WHERE state = 'NY';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "park", "WHERE", "state", "=", "'NY", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "park", "where", "state", "=", "value" ], "question": "Show me the number of parks the state of NY has.", "question_toks": [ "show", "me", "number", "of", "park", "state", "of", "ny", "ha", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 149, false ], null ], "\"NY\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Show", "me", "the", "number", "of", "parks", "the", "state", "of", "NY", "has", "." ], "question_arg": [ [ "show" ], [ "me" ], [ "number" ], [ "of" ], [ "park" ], [ "state" ], [ "of" ], [ "ny" ], [ "ha" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "me", "PRP" ], [ "number", "NN" ], [ "of", "IN" ], [ "park", "JJ" ], [ "state", "NN" ], [ "of", "IN" ], [ "ny", "JJ" ], [ "ha", "NN" ], [ ".", "." ] ], "values": [ "Parke", "Marks", "Statz", "Park", "Sparks", "New York", "Paris", "Parks", "Tate", "Humber", "NY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(12) Filter(2) A(0) C(92) T(12) V(10)" }, { "db_id": "baseball_1", "query": "SELECT T1.name_first , T1.name_last , T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3;", "query_toks": [ "SELECT", "T1.name_first", ",", "T1.name_last", ",", "T1.player_id", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.player_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t1", ".", "player_id", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "player_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which 3 players won the most player awards? List their full name and id.", "question_toks": [ "which", "3", "player", "won", "most", "player", "award", "?", "list", "their", "full", "name", "and", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 121, false ], null ], [ 0, 36, false ], null ] ], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 121, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ], [ 0, [ 0, [ 0, 121, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 121, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 36, 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", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Which", "3", "players", "won", "the", "most", "player", "awards", "?", "List", "their", "full", "name", "and", "id", "." ], "question_arg": [ [ "which" ], [ "3" ], [ "player" ], [ "won" ], [ "most" ], [ "player", "award" ], [ "?" ], [ "list" ], [ "their" ], [ "name", "full" ], [ "and" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "3", "CD" ], [ "player", "NN" ], [ "won", "VBD" ], [ "most", "JJS" ], [ "player", "NN" ], [ "award", "NN" ], [ "?", "." ], [ "list", "VB" ], [ "their", "PRP$" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "ID", "Player", "Nome", "3", "Nate" ], "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(78) T(11) A(0) C(79) T(11) A(0) C(1) T(11) Sup(0) A(3) C(0) T(3) Filter(18) A(0) C(1) T(11) Root(5) Sel(0) N(0) A(0) C(1) T(3)" }, { "db_id": "baseball_1", "query": "SELECT T1.name_first , T1.name_last , T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3;", "query_toks": [ "SELECT", "T1.name_first", ",", "T1.name_last", ",", "T1.player_id", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.player_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t1", ".", "player_id", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "player_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the first name, last name and id for the top three players won the most player awards.", "question_toks": [ "find", "first", "name", ",", "last", "name", "and", "id", "for", "top", "three", "player", "won", "most", "player", "award", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 121, false ], null ], [ 0, 36, false ], null ] ], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 121, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ], [ 0, [ 0, [ 0, 121, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 121, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 36, 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", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Find", "the", "first", "name", ",", "last", "name", "and", "id", "for", "the", "top", "three", "players", "won", "the", "most", "player", "awards", "." ], "question_arg": [ [ "find" ], [ "name", "first" ], [ "," ], [ "name", "last" ], [ "and" ], [ "id" ], [ "for" ], [ "top" ], [ "three" ], [ "player" ], [ "won" ], [ "most" ], [ "player", "award" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "for", "IN" ], [ "top", "JJ" ], [ "three", "CD" ], [ "player", "NN" ], [ "won", "VBD" ], [ "most", "JJS" ], [ "player", "NN" ], [ "award", "NN" ], [ ".", "." ] ], "values": [ "Nome", "3", "Player", "ID", "Nate", "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(78) T(11) A(0) C(79) T(11) A(0) C(1) T(11) Sup(0) A(3) C(0) T(3) Filter(18) A(0) C(1) T(11) Root(5) Sel(0) N(0) A(0) C(1) T(3)" }, { "db_id": "baseball_1", "query": "SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3;", "query_toks": [ "SELECT", "birth_country", "FROM", "player", "GROUP", "BY", "birth_country", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "3", ";" ], "query_toks_no_value": [ "select", "birth_country", "from", "player", "group", "by", "birth_country", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "List three countries which are the origins of the least players.", "question_toks": [ "list", "three", "country", "which", "are", "origin", "of", "least", "player", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 125, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 125, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "List", "three", "countries", "which", "are", "the", "origins", "of", "the", "least", "players", "." ], "question_arg": [ [ "list" ], [ "three" ], [ "country" ], [ "which" ], [ "are" ], [ "origin" ], [ "of" ], [ "least" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "three", "CD" ], [ "country", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "origin", "IN" ], [ "of", "IN" ], [ "least", "JJS" ], [ "player", "NN" ], [ ".", "." ] ], "values": [ "3", "Lint", "Player", "Lis", "Lisi" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(69) T(11) Sup(1) A(3) C(0) T(11)" }, { "db_id": "baseball_1", "query": "SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3;", "query_toks": [ "SELECT", "birth_country", "FROM", "player", "GROUP", "BY", "birth_country", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "3", ";" ], "query_toks_no_value": [ "select", "birth_country", "from", "player", "group", "by", "birth_country", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "What are the three countries that the least players are from?", "question_toks": [ "what", "are", "three", "country", "that", "least", "player", "are", "from", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 125, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 125, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "are", "the", "three", "countries", "that", "the", "least", "players", "are", "from", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "three" ], [ "country" ], [ "that" ], [ "least" ], [ "player" ], [ "are" ], [ "from" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "three", "CD" ], [ "country", "NN" ], [ "that", "WDT" ], [ "least", "JJS" ], [ "player", "NN" ], [ "are", "VBP" ], [ "from", "IN" ], [ "?", "." ] ], "values": [ "3", "Player" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(69) T(11) Sup(1) A(3) C(0) T(11)" }, { "db_id": "baseball_1", "query": "SELECT name_first , name_last FROM player WHERE death_year = '';", "query_toks": [ "SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "death_year", "=", "''", ";" ], "query_toks_no_value": [ "select", "name_first", ",", "name_last", "from", "player", "where", "death_year", "=", "value" ], "question": "Find all the players' first name and last name who have empty death record.", "question_toks": [ "find", "all", "player", "'", "first", "name", "and", "last", "name", "who", "have", "empty", "death", "record", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 128, false ], null ], "\"\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Find", "all", "the", "players", "'", "first", "name", "and", "last", "name", "who", "have", "empty", "death", "record", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "player" ], [ "'" ], [ "name", "first" ], [ "and" ], [ "name", "last" ], [ "who" ], [ "have" ], [ "empty" ], [ "death" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "player", "NN" ], [ "'", "POS" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "empty", "VBN" ], [ "death", "NN" ], [ "record", "NN" ], [ ".", "." ] ], "values": [ "", "Neath", "Nome", "Player", "Heath", "Nate", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(78) T(11) A(0) C(79) T(11) Filter(2) A(0) C(72) T(11) V(0)" }, { "db_id": "baseball_1", "query": "SELECT name_first , name_last FROM player WHERE death_year = '';", "query_toks": [ "SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "death_year", "=", "''", ";" ], "query_toks_no_value": [ "select", "name_first", ",", "name_last", "from", "player", "where", "death_year", "=", "value" ], "question": "What are the first name and last name of the players whose death record is empty?", "question_toks": [ "what", "are", "first", "name", "and", "last", "name", "of", "player", "whose", "death", "record", "is", "empty", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 128, false ], null ], "\"\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "are", "the", "first", "name", "and", "last", "name", "of", "the", "players", "whose", "death", "record", "is", "empty", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name", "first" ], [ "and" ], [ "name", "last" ], [ "of" ], [ "player" ], [ "whose" ], [ "death" ], [ "record" ], [ "is" ], [ "empty" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "whose", "WP$" ], [ "death", "NN" ], [ "record", "NN" ], [ "is", "VBZ" ], [ "empty", "JJ" ], [ "?", "." ] ], "values": [ "", "Player", "1", "Neath", "Nate", "Heath", "Nome" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(78) T(11) A(0) C(79) T(11) Filter(2) A(0) C(72) T(11) V(0)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM player WHERE birth_country = 'USA' AND bats = 'R';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "player", "WHERE", "birth_country", "=", "'USA", "'", "AND", "bats", "=", "'R", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "player", "where", "birth_country", "=", "value", "and", "bats", "=", "value" ], "question": "How many players born in USA are right-handed batters? That is, have the batter value 'R'.", "question_toks": [ "how", "many", "player", "born", "in", "usa", "are", "right-handed", "batter", "?", "that", "is", ",", "have", "batter", "value", "'r", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 125, false ], null ], "\"USA\"", null ], "and", [ false, 2, [ 0, [ 0, 139, false ], null ], "\"R\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "How", "many", "players", "born", "in", "USA", "are", "right-handed", "batters", "?", "That", "is", ",", "have", "the", "batter", "value", "'R", "'", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "player" ], [ "born" ], [ "in" ], [ "usa" ], [ "are" ], [ "right-handed" ], [ "batter" ], [ "?" ], [ "that" ], [ "is" ], [ "," ], [ "have" ], [ "batter" ], [ "value" ], [ "'r" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "player", "NN" ], [ "born", "VBN" ], [ "in", "IN" ], [ "usa", "JJ" ], [ "are", "VBP" ], [ "right-handed", "JJ" ], [ "batter", "NN" ], [ "?", "." ], [ "that", "DT" ], [ "is", "VBZ" ], [ ",", "," ], [ "have", "VBP" ], [ "batter", "VBN" ], [ "value", "NN" ], [ "'r", "POS" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Batten", "R", "Hatter", "USA", "Valle", "Player", "Baxter", "Battey", "Blattner", "US" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(11) Filter(0) Filter(2) A(0) C(69) T(11) V(3) Filter(2) A(0) C(83) T(11) V(1)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM player WHERE birth_country = 'USA' AND bats = 'R';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "player", "WHERE", "birth_country", "=", "'USA", "'", "AND", "bats", "=", "'R", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "player", "where", "birth_country", "=", "value", "and", "bats", "=", "value" ], "question": "Count the number of players who were born in USA and have bats information 'R'.", "question_toks": [ "count", "number", "of", "player", "who", "were", "born", "in", "usa", "and", "have", "bat", "information", "'r", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 125, false ], null ], "\"USA\"", null ], "and", [ false, 2, [ 0, [ 0, 139, false ], null ], "\"R\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Count", "the", "number", "of", "players", "who", "were", "born", "in", "USA", "and", "have", "bats", "information", "'R", "'", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "player" ], [ "who" ], [ "were" ], [ "born" ], [ "in" ], [ "usa" ], [ "and" ], [ "have" ], [ "bat" ], [ "information" ], [ "'r" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "who", "WP" ], [ "were", "VBD" ], [ "born", "VBN" ], [ "in", "IN" ], [ "usa", "JJ" ], [ "and", "CC" ], [ "have", "VBP" ], [ "bat", "VBN" ], [ "information", "NN" ], [ "'r", "POS" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Bass", "R", "USA", "Batts", "Bath", "Humber", "Player", "Yats", "Bates", "Bots", "Fats", "US" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(11) Filter(0) Filter(2) A(0) C(69) T(11) V(2) Filter(2) A(0) C(83) T(11) V(1)" }, { "db_id": "baseball_1", "query": "SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id = T2.player_id JOIN college AS T3 ON T3.college_id = T2.college_id WHERE T3.name_full = 'Yale University';", "query_toks": [ "SELECT", "avg", "(", "T1.height", ")", "FROM", "player", "AS", "T1", "JOIN", "player_college", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "JOIN", "college", "AS", "T3", "ON", "T3.college_id", "=", "T2.college_id", "WHERE", "T3.name_full", "=", "'Yale", "University", "'", ";" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "height", ")", "from", "player", "as", "t1", "join", "player_college", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "join", "college", "as", "t3", "on", "t3", ".", "college_id", "=", "t2", ".", "college_id", "where", "t3", ".", "name_full", "=", "value" ], "question": "What is the average height of the players from the college named 'Yale University'?", "question_toks": [ "what", "is", "average", "height", "of", "player", "from", "college", "named", "'", "yale", "university", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 121, false ], null ], [ 0, 100, false ], null ] ], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 138, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 121, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 100, 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, 157, false ], null ], "\"Yale University\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "is", "the", "average", "height", "of", "the", "players", "from", "the", "college", "named", "'Yale", "University", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "height" ], [ "of" ], [ "player" ], [ "from" ], [ "college" ], [ "named" ], [ "'" ], [ "yale" ], [ "university" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "height", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "from", "IN" ], [ "college", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "yale", "JJ" ], [ "university", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Yale", "gacollege", "Yale University", "macollege", "yale", "Hale", "Player", "Sale", "mscollege", "Bale", "Gale", "ilcollege", "lacollege", "Dale" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(82) T(11) Filter(0) Filter(18) A(0) C(1) T(11) Root(5) Sel(0) N(0) A(0) C(1) T(8) Filter(2) A(0) C(95) T(14) V(2)" }, { "db_id": "baseball_1", "query": "SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id = T2.player_id JOIN college AS T3 ON T3.college_id = T2.college_id WHERE T3.name_full = 'Yale University';", "query_toks": [ "SELECT", "avg", "(", "T1.height", ")", "FROM", "player", "AS", "T1", "JOIN", "player_college", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "JOIN", "college", "AS", "T3", "ON", "T3.college_id", "=", "T2.college_id", "WHERE", "T3.name_full", "=", "'Yale", "University", "'", ";" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "height", ")", "from", "player", "as", "t1", "join", "player_college", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "join", "college", "as", "t3", "on", "t3", ".", "college_id", "=", "t2", ".", "college_id", "where", "t3", ".", "name_full", "=", "value" ], "question": "Find the average height of the players who belong to the college called 'Yale University'.", "question_toks": [ "find", "average", "height", "of", "player", "who", "belong", "to", "college", "called", "'", "yale", "university", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 121, false ], null ], [ 0, 100, false ], null ] ], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 138, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 121, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 100, 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, 157, false ], null ], "\"Yale University\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Find", "the", "average", "height", "of", "the", "players", "who", "belong", "to", "the", "college", "called", "'Yale", "University", "'", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "height" ], [ "of" ], [ "player" ], [ "who" ], [ "belong" ], [ "to" ], [ "college" ], [ "called" ], [ "'" ], [ "yale" ], [ "university" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "height", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "who", "WP" ], [ "belong", "VBP" ], [ "to", "TO" ], [ "college", "NN" ], [ "called", "VBN" ], [ "'", "POS" ], [ "yale", "NN" ], [ "university", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "yale", "gacollege", "Hale", "Dale", "Player", "Yale University", "lacollege", "macollege", "Bale", "Sale", "mscollege", "ilcollege", "Yale", "Gale" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(82) T(11) Filter(0) Filter(18) A(0) C(1) T(11) Root(5) Sel(0) N(0) A(0) C(1) T(8) Filter(2) A(0) C(95) T(14) V(5)" }, { "db_id": "baseball_1", "query": "SELECT T1.name , T1.team_id , max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id;", "query_toks": [ "SELECT", "T1.name", ",", "T1.team_id", ",", "max", "(", "T2.salary", ")", "FROM", "team", "AS", "T1", "JOIN", "salary", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id", "GROUP", "BY", "T1.team_id", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "team_id", ",", "max", "(", "t2", ".", "salary", ")", "from", "team", "as", "t1", "join", "salary", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id", "group", "by", "t1", ".", "team_id" ], "question": "What is the highest salary among each team? List the team name, id and maximum salary.", "question_toks": [ "what", "is", "highest", "salary", "among", "each", "team", "?", "list", "team", "name", ",", "id", "and", "maximum", "salary", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 172, false ], null ], [ 0, 152, false ], null ] ], "table_units": [ [ "table_unit", 16 ], [ "table_unit", 13 ] ] }, "groupBy": [ [ 0, 172, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 210, false ], null ] ], [ 0, [ 0, [ 0, 172, false ], null ] ], [ 1, [ 0, [ 0, 155, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "is", "the", "highest", "salary", "among", "each", "team", "?", "List", "the", "team", "name", ",", "id", "and", "maximum", "salary", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "highest" ], [ "salary" ], [ "among" ], [ "each" ], [ "team" ], [ "?" ], [ "list" ], [ "team" ], [ "name" ], [ "," ], [ "id" ], [ "and" ], [ "maximum" ], [ "salary" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "highest", "JJS" ], [ "salary", "JJ" ], [ "among", "IN" ], [ "each", "DT" ], [ "team", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "team", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "id", "NN" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "salary", "NN" ], [ ".", "." ] ], "values": [ "Beam", "Nome", "Tam", "ID", "Nate" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(127) T(16) A(0) C(5) T(16) A(1) C(94) T(13)" }, { "db_id": "baseball_1", "query": "SELECT T1.name , T1.team_id , max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id;", "query_toks": [ "SELECT", "T1.name", ",", "T1.team_id", ",", "max", "(", "T2.salary", ")", "FROM", "team", "AS", "T1", "JOIN", "salary", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id", "GROUP", "BY", "T1.team_id", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "team_id", ",", "max", "(", "t2", ".", "salary", ")", "from", "team", "as", "t1", "join", "salary", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id", "group", "by", "t1", ".", "team_id" ], "question": "For each team, return the team name, id and the maximum salary among the team.", "question_toks": [ "for", "each", "team", ",", "return", "team", "name", ",", "id", "and", "maximum", "salary", "among", "team", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 172, false ], null ], [ 0, 152, false ], null ] ], "table_units": [ [ "table_unit", 16 ], [ "table_unit", 13 ] ] }, "groupBy": [ [ 0, 172, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 210, false ], null ] ], [ 0, [ 0, [ 0, 172, false ], null ] ], [ 1, [ 0, [ 0, 155, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "For", "each", "team", ",", "return", "the", "team", "name", ",", "id", "and", "the", "maximum", "salary", "among", "the", "team", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "team" ], [ "," ], [ "return" ], [ "team" ], [ "name" ], [ "," ], [ "id" ], [ "and" ], [ "maximum" ], [ "salary" ], [ "among" ], [ "team" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "team", "NN" ], [ ",", "," ], [ "return", "VBP" ], [ "team", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "id", "NN" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "salary", "NN" ], [ "among", "IN" ], [ "team", "NN" ], [ ".", "." ] ], "values": [ "Beam", "Nome", "Tam", "ID", "Nate" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(127) T(16) A(0) C(5) T(16) A(1) C(94) T(13)" }, { "db_id": "baseball_1", "query": "SELECT T1.name , T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary) ASC LIMIT 1;", "query_toks": [ "SELECT", "T1.name", ",", "T1.team_id", "FROM", "team", "AS", "T1", "JOIN", "salary", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id", "GROUP", "BY", "T1.team_id", "ORDER", "BY", "avg", "(", "T2.salary", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "team_id", "from", "team", "as", "t1", "join", "salary", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id", "group", "by", "t1", ".", "team_id", "order", "by", "avg", "(", "t2", ".", "salary", ")", "asc", "limit", "value" ], "question": "What are the name and id of the team offering the lowest average salary?", "question_toks": [ "what", "are", "name", "and", "id", "of", "team", "offering", "lowest", "average", "salary", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 172, false ], null ], [ 0, 152, false ], null ] ], "table_units": [ [ "table_unit", 16 ], [ "table_unit", 13 ] ] }, "groupBy": [ [ 0, 172, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 5, 155, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 210, false ], null ] ], [ 0, [ 0, [ 0, 172, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "id", "of", "the", "team", "offering", "the", "lowest", "average", "salary", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "team" ], [ "offering" ], [ "lowest" ], [ "average" ], [ "salary" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "team", "NN" ], [ "offering", "NN" ], [ "lowest", "JJS" ], [ "average", "NN" ], [ "salary", "NN" ], [ "?", "." ] ], "values": [ "Beam", "Nome", "Tam", "ID", "Nate" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(127) T(16) A(0) C(5) T(16) Sup(1) A(5) C(94) T(13)" }, { "db_id": "baseball_1", "query": "SELECT T1.name , T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary) ASC LIMIT 1;", "query_toks": [ "SELECT", "T1.name", ",", "T1.team_id", "FROM", "team", "AS", "T1", "JOIN", "salary", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id", "GROUP", "BY", "T1.team_id", "ORDER", "BY", "avg", "(", "T2.salary", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "team_id", "from", "team", "as", "t1", "join", "salary", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id", "group", "by", "t1", ".", "team_id", "order", "by", "avg", "(", "t2", ".", "salary", ")", "asc", "limit", "value" ], "question": "Which team offers the lowest average salary? Give me the name and id of the team.", "question_toks": [ "which", "team", "offer", "lowest", "average", "salary", "?", "give", "me", "name", "and", "id", "of", "team", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 172, false ], null ], [ 0, 152, false ], null ] ], "table_units": [ [ "table_unit", 16 ], [ "table_unit", 13 ] ] }, "groupBy": [ [ 0, 172, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 5, 155, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 210, false ], null ] ], [ 0, [ 0, [ 0, 172, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Which", "team", "offers", "the", "lowest", "average", "salary", "?", "Give", "me", "the", "name", "and", "id", "of", "the", "team", "." ], "question_arg": [ [ "which" ], [ "team" ], [ "offer" ], [ "lowest" ], [ "average" ], [ "salary" ], [ "?" ], [ "give" ], [ "me" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "team" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "team", "NN" ], [ "offer", "NN" ], [ "lowest", "JJS" ], [ "average", "NN" ], [ "salary", "JJ" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "team", "NN" ], [ ".", "." ] ], "values": [ "Nome", "Tam", "Nate", "ID", "Beam" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(127) T(16) A(0) C(5) T(16) Sup(1) A(5) C(94) T(13)" }, { "db_id": "baseball_1", "query": "SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1960 INTERSECT SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1961", "query_toks": [ "SELECT", "T1.name_first", ",", "T1.name_last", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "WHERE", "T2.year", "=", "1960", "INTERSECT", "SELECT", "T1.name_first", ",", "T1.name_last", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "WHERE", "T2.year", "=", "1961" ], "query_toks_no_value": [ "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "where", "t2", ".", "year", "=", "value", "intersect", "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "where", "t2", ".", "year", "=", "value" ], "question": "Find the players' first name and last name who won award both in 1960 and in 1961.", "question_toks": [ "find", "player", "'", "first", "name", "and", "last", "name", "who", "won", "award", "both", "in", "year", "and", "in", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 1961.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 1960.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Find", "the", "players", "'", "first", "name", "and", "last", "name", "who", "won", "award", "both", "in", "1960", "and", "in", "1961", "." ], "question_arg": [ [ "find" ], [ "player" ], [ "'" ], [ "name", "first" ], [ "and" ], [ "name", "last" ], [ "who" ], [ "won" ], [ "award" ], [ "both" ], [ "in" ], [ "year" ], [ "and" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "player", "NN" ], [ "'", "''" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "who", "WP" ], [ "won", "VBD" ], [ "award", "RB" ], [ "both", "DT" ], [ "in", "IN" ], [ "1960", "CD" ], [ "and", "CC" ], [ "in", "IN" ], [ "1961", "CD" ], [ ".", "." ] ], "values": [ "1960", "Player", "Nome", "1961", "Ward", "1", "Nate" ], "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(78) T(11) A(0) C(79) T(11) Filter(2) A(0) C(2) T(3) V(0) Root(3) Sel(0) N(1) A(0) C(78) T(11) A(0) C(79) T(11) Filter(2) A(0) C(2) T(3) V(3)" }, { "db_id": "baseball_1", "query": "SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1960 INTERSECT SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1961", "query_toks": [ "SELECT", "T1.name_first", ",", "T1.name_last", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "WHERE", "T2.year", "=", "1960", "INTERSECT", "SELECT", "T1.name_first", ",", "T1.name_last", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "WHERE", "T2.year", "=", "1961" ], "query_toks_no_value": [ "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "where", "t2", ".", "year", "=", "value", "intersect", "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "where", "t2", ".", "year", "=", "value" ], "question": "Which players won awards in both 1960 and 1961? Return their first names and last names.", "question_toks": [ "which", "player", "won", "award", "in", "both", "year", "and", "year", "?", "return", "their", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 1961.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 1960.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Which", "players", "won", "awards", "in", "both", "1960", "and", "1961", "?", "Return", "their", "first", "names", "and", "last", "names", "." ], "question_arg": [ [ "which" ], [ "player" ], [ "won" ], [ "award" ], [ "in" ], [ "both" ], [ "year" ], [ "and" ], [ "year" ], [ "?" ], [ "return" ], [ "their" ], [ "name", "first" ], [ "and" ], [ "name", "last" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "player", "NN" ], [ "won", "VBD" ], [ "award", "RB" ], [ "in", "IN" ], [ "both", "DT" ], [ "1960", "CD" ], [ "and", "CC" ], [ "1961", "CD" ], [ "?", "." ], [ "return", "VB" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1960", "Player", "1961", "1", "Ames", "James" ], "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(78) T(11) A(0) C(79) T(11) Filter(2) A(0) C(2) T(3) V(0) Root(3) Sel(0) N(1) A(0) C(78) T(11) A(0) C(79) T(11) Filter(2) A(0) C(2) T(3) V(2)" }, { "db_id": "baseball_1", "query": "SELECT name_first , name_last FROM player WHERE weight > 220 OR height < 75", "query_toks": [ "SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "weight", ">", "220", "OR", "height", "<", "75" ], "query_toks_no_value": [ "select", "name_first", ",", "name_last", "from", "player", "where", "weight", ">", "value", "or", "height", "<", "value" ], "question": "List players' first name and last name who have weight greater than 220 or height shorter than 75.", "question_toks": [ "list", "player", "'", "first", "name", "and", "last", "name", "who", "have", "weight", "greater", "than", "220", "or", "height", "shorter", "than", "75", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 137, false ], null ], 220.0, null ], "or", [ false, 4, [ 0, [ 0, 138, false ], null ], 75.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "List", "players", "'", "first", "name", "and", "last", "name", "who", "have", "weight", "greater", "than", "220", "or", "height", "shorter", "than", "75", "." ], "question_arg": [ [ "list" ], [ "player" ], [ "'" ], [ "name", "first" ], [ "and" ], [ "name", "last" ], [ "who" ], [ "have" ], [ "weight" ], [ "greater" ], [ "than" ], [ "220" ], [ "or" ], [ "height" ], [ "shorter" ], [ "than" ], [ "75" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "player", "NN" ], [ "'", "POS" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "weight", "VBN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "220", "CD" ], [ "or", "CC" ], [ "height", "VBD" ], [ "shorter", "JJR" ], [ "than", "IN" ], [ "75", "CD" ], [ ".", "." ] ], "values": [ "220", "Player", "Wright", "Nome", "Wight", "1", "Nate", "75" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(78) T(11) A(0) C(79) T(11) Filter(1) Filter(5) A(0) C(81) T(11) V(0) Filter(4) A(0) C(82) T(11) V(7)" }, { "db_id": "baseball_1", "query": "SELECT name_first , name_last FROM player WHERE weight > 220 OR height < 75", "query_toks": [ "SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "weight", ">", "220", "OR", "height", "<", "75" ], "query_toks_no_value": [ "select", "name_first", ",", "name_last", "from", "player", "where", "weight", ">", "value", "or", "height", "<", "value" ], "question": "What are the first name and last name of the players who have weight above 220 or height below 75?", "question_toks": [ "what", "are", "first", "name", "and", "last", "name", "of", "player", "who", "have", "weight", "above", "220", "or", "height", "below", "75", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 137, false ], null ], 220.0, null ], "or", [ false, 4, [ 0, [ 0, 138, false ], null ], 75.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "are", "the", "first", "name", "and", "last", "name", "of", "the", "players", "who", "have", "weight", "above", "220", "or", "height", "below", "75", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name", "first" ], [ "and" ], [ "name", "last" ], [ "of" ], [ "player" ], [ "who" ], [ "have" ], [ "weight" ], [ "above" ], [ "220" ], [ "or" ], [ "height" ], [ "below" ], [ "75" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "weight", "VBN" ], [ "above", "IN" ], [ "220", "CD" ], [ "or", "CC" ], [ "height", "VBD" ], [ "below", "IN" ], [ "75", "CD" ], [ "?", "." ] ], "values": [ "Wright", "Nate", "75", "220", "1", "Wight", "Player", "Nome" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(78) T(11) A(0) C(79) T(11) Filter(1) Filter(5) A(0) C(81) T(11) V(3) Filter(4) A(0) C(82) T(11) V(2)" }, { "db_id": "baseball_1", "query": "SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings';", "query_toks": [ "SELECT", "max", "(", "T1.wins", ")", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", ";" ], "query_toks_no_value": [ "select", "max", "(", "t1", ".", "wins", ")", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value" ], "question": "List the maximum scores of the team Boston Red Stockings when the team won in postseason?", "question_toks": [ "list", "maximum", "score", "of", "team", "boston", "red", "stocking", "when", "team", "won", "in", "postseason", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 163, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 15 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 167, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "List", "the", "maximum", "scores", "of", "the", "team", "Boston", "Red", "Stockings", "when", "the", "team", "won", "in", "postseason", "?" ], "question_arg": [ [ "list" ], [ "maximum" ], [ "score" ], [ "of" ], [ "team" ], [ "boston" ], [ "red" ], [ "stocking" ], [ "when" ], [ "team" ], [ "won" ], [ "in" ], [ "postseason" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "maximum", "JJ" ], [ "score", "NN" ], [ "of", "IN" ], [ "team", "NN" ], [ "boston", "NN" ], [ "red", "VBD" ], [ "stocking", "NN" ], [ "when", "WRB" ], [ "team", "NN" ], [ "won", "VBD" ], [ "in", "IN" ], [ "postseason", "NN" ], [ "?", "." ] ], "values": [ "Tam", "Beam", "Reid", "Fred", "Bolton", "Red", "Score", "Boston Reds", "Boston", "Shores", "Reed", "Boston Red Stockings", "Bouton", "Borton" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(1) C(100) T(15) Filter(2) A(0) C(127) T(16) V(11)" }, { "db_id": "baseball_1", "query": "SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings';", "query_toks": [ "SELECT", "max", "(", "T1.wins", ")", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", ";" ], "query_toks_no_value": [ "select", "max", "(", "t1", ".", "wins", ")", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value" ], "question": "What are the maximum scores the team Boston Red Stockings got when the team won in postseason?", "question_toks": [ "what", "are", "maximum", "score", "team", "boston", "red", "stocking", "got", "when", "team", "won", "in", "postseason", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 163, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 15 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 167, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "are", "the", "maximum", "scores", "the", "team", "Boston", "Red", "Stockings", "got", "when", "the", "team", "won", "in", "postseason", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "score" ], [ "team" ], [ "boston" ], [ "red" ], [ "stocking" ], [ "got" ], [ "when" ], [ "team" ], [ "won" ], [ "in" ], [ "postseason" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "score", "NN" ], [ "team", "NN" ], [ "boston", "NN" ], [ "red", "VBD" ], [ "stocking", "VBG" ], [ "got", "VBD" ], [ "when", "WRB" ], [ "team", "NN" ], [ "won", "VBD" ], [ "in", "IN" ], [ "postseason", "NN" ], [ "?", "." ] ], "values": [ "Tam", "Beam", "Reid", "Fred", "Bolton", "Red", "Score", "Boston Reds", "Boston", "Shores", "Reed", "Boston Red Stockings", "Bouton", "Borton" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(1) C(100) T(15) Filter(2) A(0) C(127) T(16) V(11)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2009;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_loser", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2009", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_loser", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "How many times did Boston Red Stockings lose in 2009 postseason?", "question_toks": [ "how", "many", "time", "did", "boston", "red", "stocking", "lose", "in", "year", "postseason", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 165, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 15 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 2, [ 0, [ 0, 161, false ], null ], 2009.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "How", "many", "times", "did", "Boston", "Red", "Stockings", "lose", "in", "2009", "postseason", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "time" ], [ "did" ], [ "boston" ], [ "red" ], [ "stocking" ], [ "lose" ], [ "in" ], [ "year" ], [ "postseason" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "time", "NN" ], [ "did", "VBD" ], [ "boston", "RB" ], [ "red", "JJ" ], [ "stocking", "VBG" ], [ "lose", "NN" ], [ "in", "IN" ], [ "2009", "CD" ], [ "postseason", "NN" ], [ "?", "." ] ], "values": [ "Reid", "Fred", "Bolton", "Red", "Boston Reds", "Boston", "Himes", "Boston Red Stockings", "Reed", "2009", "Bouton", "Borton" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(15) Filter(0) Filter(2) A(0) C(127) T(16) V(7) Filter(2) A(0) C(2) T(15) V(9)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2009;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_loser", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2009", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_loser", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "Count the number of times the team \"Boston Red Stockings\" lost in 2009 postseason.", "question_toks": [ "count", "number", "of", "time", "team", "'", "boston", "red", "stocking", "'", "lost", "in", "year", "postseason", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 165, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 15 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 2, [ 0, [ 0, 161, false ], null ], 2009.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Count", "the", "number", "of", "times", "the", "team", "``", "Boston", "Red", "Stockings", "''", "lost", "in", "2009", "postseason", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "time" ], [ "team" ], [ "'" ], [ "boston" ], [ "red" ], [ "stocking" ], [ "'" ], [ "lost" ], [ "in" ], [ "year" ], [ "postseason" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "team", "NN" ], [ "'", "''" ], [ "boston", "NN" ], [ "red", "VBD" ], [ "stocking", "VBG" ], [ "'", "''" ], [ "lost", "VBN" ], [ "in", "IN" ], [ "2009", "CD" ], [ "postseason", "NN" ], [ ".", "." ] ], "values": [ "Boston Reds", "Bouton", "Humber", "Tam", "Borton", "Red", "Bolton", "Reed", "Reid", "2009", "Boston", "Himes", "Beam", "Fred", "Boston Red Stockings" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(15) Filter(0) Filter(2) A(0) C(127) T(16) V(14) Filter(2) A(0) C(2) T(15) V(9)" }, { "db_id": "baseball_1", "query": "SELECT T2.name , T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T1.year = 2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.name", ",", "T1.team_id_winner", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T1.year", "=", "2008", "GROUP", "BY", "T1.team_id_winner", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "team_id_winner", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t1", ".", "year", "=", "value", "group", "by", "t1", ".", "team_id_winner", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the name and id of the team with the most victories in 2008 postseason?", "question_toks": [ "what", "are", "name", "and", "id", "of", "team", "with", "most", "victory", "in", "year", "postseason", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 163, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 15 ], [ "table_unit", 16 ] ] }, "groupBy": [ [ 0, 163, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 210, false ], null ] ], [ 0, [ 0, [ 0, 163, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 161, false ], null ], 2008.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "id", "of", "the", "team", "with", "the", "most", "victories", "in", "2008", "postseason", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "team" ], [ "with" ], [ "most" ], [ "victory" ], [ "in" ], [ "year" ], [ "postseason" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "team", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "victory", "NN" ], [ "in", "IN" ], [ "2008", "CD" ], [ "postseason", "NN" ], [ "?", "." ] ], "values": [ "ID", "Nome", "Victorino", "Nate", "Victoria", "2008", "Tam", "Beam" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(127) T(16) A(0) C(96) T(15) Sup(0) A(3) C(0) T(15) Filter(2) A(0) C(2) T(15) V(5)" }, { "db_id": "baseball_1", "query": "SELECT T2.name , T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T1.year = 2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.name", ",", "T1.team_id_winner", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T1.year", "=", "2008", "GROUP", "BY", "T1.team_id_winner", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "team_id_winner", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t1", ".", "year", "=", "value", "group", "by", "t1", ".", "team_id_winner", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name and id of the team that won the most times in 2008 postseason.", "question_toks": [ "find", "name", "and", "id", "of", "team", "that", "won", "most", "time", "in", "year", "postseason", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 163, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 15 ], [ "table_unit", 16 ] ] }, "groupBy": [ [ 0, 163, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 210, false ], null ] ], [ 0, [ 0, [ 0, 163, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 161, false ], null ], 2008.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Find", "the", "name", "and", "id", "of", "the", "team", "that", "won", "the", "most", "times", "in", "2008", "postseason", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "team" ], [ "that" ], [ "won" ], [ "most" ], [ "time" ], [ "in" ], [ "year" ], [ "postseason" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "team", "NN" ], [ "that", "IN" ], [ "won", "VBD" ], [ "most", "RBS" ], [ "time", "NN" ], [ "in", "IN" ], [ "2008", "CD" ], [ "postseason", "NN" ], [ ".", "." ] ], "values": [ "ID", "Nome", "Nate", "2008", "Tam", "Himes", "Beam" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(127) T(16) A(0) C(96) T(15) Sup(0) A(3) C(0) T(15) Filter(2) A(0) C(2) T(15) V(3)" }, { "db_id": "baseball_1", "query": "SELECT count(*) , T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' GROUP BY T1.year", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.year", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "GROUP", "BY", "T1.year" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "year", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "group", "by", "t1", ".", "year" ], "question": "What is the number of wins the team Boston Red Stockings got in the postseasons each year in history?", "question_toks": [ "what", "is", "number", "of", "win", "team", "boston", "red", "stocking", "got", "in", "postseasons", "each", "year", "in", "history", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 163, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 15 ], [ "table_unit", 16 ] ] }, "groupBy": [ [ 0, 161, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 161, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "wins", "the", "team", "Boston", "Red", "Stockings", "got", "in", "the", "postseasons", "each", "year", "in", "history", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "win" ], [ "team" ], [ "boston" ], [ "red" ], [ "stocking" ], [ "got" ], [ "in" ], [ "postseasons" ], [ "each" ], [ "year" ], [ "in" ], [ "history" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "win", "JJ" ], [ "team", "NN" ], [ "boston", "NN" ], [ "red", "VBD" ], [ "stocking", "VBG" ], [ "got", "VBD" ], [ "in", "IN" ], [ "postseasons", "NNS" ], [ "each", "DT" ], [ "year", "NN" ], [ "in", "IN" ], [ "history", "NN" ], [ "?", "." ] ], "values": [ "Wine", "Boston Reds", "Bouton", "Humber", "Borton", "Red", "Bolton", "Winn", "Win", "Reed", "Reid", "Boston", "Fred", "Boston Red Stockings" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(15) A(0) C(2) T(15) Filter(2) A(0) C(127) T(16) V(13)" }, { "db_id": "baseball_1", "query": "SELECT count(*) , T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' GROUP BY T1.year", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.year", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "GROUP", "BY", "T1.year" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "year", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "group", "by", "t1", ".", "year" ], "question": "For each year, return the year and the number of times the team Boston Red Stockings won in the postseasons.", "question_toks": [ "for", "each", "year", ",", "return", "year", "and", "number", "of", "time", "team", "boston", "red", "stocking", "won", "in", "postseasons", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 163, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 15 ], [ "table_unit", 16 ] ] }, "groupBy": [ [ 0, 161, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 161, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "For", "each", "year", ",", "return", "the", "year", "and", "the", "number", "of", "times", "the", "team", "Boston", "Red", "Stockings", "won", "in", "the", "postseasons", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "year" ], [ "," ], [ "return" ], [ "year" ], [ "and" ], [ "number" ], [ "of" ], [ "time" ], [ "team" ], [ "boston" ], [ "red" ], [ "stocking" ], [ "won" ], [ "in" ], [ "postseasons" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "year", "NN" ], [ ",", "," ], [ "return", "VBP" ], [ "year", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "team", "NN" ], [ "boston", "NN" ], [ "red", "VBD" ], [ "stocking", "VBG" ], [ "won", "NN" ], [ "in", "IN" ], [ "postseasons", "NNS" ], [ ".", "." ] ], "values": [ "Boston Reds", "Bolton", "Boston", "Boston Red Stockings", "Reed", "Bouton", "Red", "Fred", "Borton", "Humber", "Himes", "Reid" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(15) A(0) C(2) T(15) Filter(2) A(0) C(127) T(16) V(3)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM ( SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' UNION SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' );", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "(", "SELECT", "*", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "UNION", "SELECT", "*", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_loser", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "(", "select", "*", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "union", "select", "*", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_loser", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", ")" ], "question": "What is the total number of postseason games that team Boston Red Stockings participated in?", "question_toks": [ "what", "is", "total", "number", "of", "postseason", "game", "that", "team", "boston", "red", "stocking", "participated", "in", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "sql", { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 163, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 15 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 165, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 15 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ] ] } ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "postseason", "games", "that", "team", "Boston", "Red", "Stockings", "participated", "in", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "postseason" ], [ "game" ], [ "that" ], [ "team" ], [ "boston" ], [ "red" ], [ "stocking" ], [ "participated" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "postseason", "JJ" ], [ "game", "NN" ], [ "that", "WDT" ], [ "team", "VBZ" ], [ "boston", "RB" ], [ "red", "JJ" ], [ "stocking", "NN" ], [ "participated", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "Boston Reds", "Bolton", "Boston", "Gamel", "Boston Red Stockings", "Reed", "Bouton", "Red", "Ames", "Gates", "Gomes", "Fred", "Borton", "Humber", "James", "Reid" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(15)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM ( SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' UNION SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' );", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "(", "SELECT", "*", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "UNION", "SELECT", "*", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_loser", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "(", "select", "*", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "union", "select", "*", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_loser", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", ")" ], "question": "How many times in total did the team Boston Red Stockings participate in postseason games?", "question_toks": [ "how", "many", "time", "in", "total", "did", "team", "boston", "red", "stocking", "participate", "in", "postseason", "game", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "sql", { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 163, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 15 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 165, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 15 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ] ] } ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "How", "many", "times", "in", "total", "did", "the", "team", "Boston", "Red", "Stockings", "participate", "in", "postseason", "games", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "time" ], [ "in" ], [ "total" ], [ "did" ], [ "team" ], [ "boston" ], [ "red" ], [ "stocking" ], [ "participate" ], [ "in" ], [ "postseason" ], [ "game" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "time", "NN" ], [ "in", "IN" ], [ "total", "JJ" ], [ "did", "VBD" ], [ "team", "NN" ], [ "boston", "NN" ], [ "red", "VBD" ], [ "stocking", "VBG" ], [ "participate", "NN" ], [ "in", "IN" ], [ "postseason", "NN" ], [ "game", "NN" ], [ "?", "." ] ], "values": [ "Boston Reds", "Bolton", "Boston", "Gamel", "Boston Red Stockings", "Reed", "Bouton", "Red", "Ames", "Gates", "Gomes", "Fred", "Borton", "James", "Himes", "Reid" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(15)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM postseason WHERE YEAR = 1885 AND ties = 1;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "postseason", "WHERE", "YEAR", "=", "1885", "AND", "ties", "=", "1", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "postseason", "where", "year", "=", "value", "and", "ties", "=", "value" ], "question": "How many games in 1885 postseason resulted in ties (that is, the value of \"ties\" is '1')?", "question_toks": [ "how", "many", "game", "in", "year", "postseason", "resulted", "in", "tie", "(", "that", "is", ",", "value", "of", "'", "tie", "'", "is", "'1", "'", ")", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 15 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 161, false ], null ], 1885.0, null ], "and", [ false, 2, [ 0, [ 0, 169, false ], null ], 1.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "How", "many", "games", "in", "1885", "postseason", "resulted", "in", "ties", "(", "that", "is", ",", "the", "value", "of", "``", "ties", "''", "is", "'1", "'", ")", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "game" ], [ "in" ], [ "year" ], [ "postseason" ], [ "resulted" ], [ "in" ], [ "tie" ], [ "(" ], [ "that" ], [ "is" ], [ "," ], [ "value" ], [ "of" ], [ "'" ], [ "tie" ], [ "'" ], [ "is" ], [ "'1" ], [ "'" ], [ ")" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "game", "NN" ], [ "in", "IN" ], [ "1885", "CD" ], [ "postseason", "NN" ], [ "resulted", "VBD" ], [ "in", "IN" ], [ "tie", "NN" ], [ "(", "(" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ ",", "," ], [ "value", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "tie", "NN" ], [ "'", "''" ], [ "is", "VBZ" ], [ "'1", "NNP" ], [ "'", "POS" ], [ ")", ")" ], [ "?", "." ] ], "values": [ "Valle", "Gamel", "Gates", "Gomes", "1885", "Ames", "James", "ties", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(15) Filter(0) Filter(2) A(0) C(2) T(15) V(4) Filter(2) A(0) C(102) T(15) V(8)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM postseason WHERE YEAR = 1885 AND ties = 1;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "postseason", "WHERE", "YEAR", "=", "1885", "AND", "ties", "=", "1", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "postseason", "where", "year", "=", "value", "and", "ties", "=", "value" ], "question": "Find the number of tied games (the value of \"ties\" is '1') in 1885 postseason.", "question_toks": [ "find", "number", "of", "tied", "game", "(", "value", "of", "'", "tie", "'", "is", "'1", "'", ")", "in", "year", "postseason", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 15 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 161, false ], null ], 1885.0, null ], "and", [ false, 2, [ 0, [ 0, 169, false ], null ], 1.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Find", "the", "number", "of", "tied", "games", "(", "the", "value", "of", "``", "ties", "''", "is", "'1", "'", ")", "in", "1885", "postseason", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "tied" ], [ "game" ], [ "(" ], [ "value" ], [ "of" ], [ "'" ], [ "tie" ], [ "'" ], [ "is" ], [ "'1" ], [ "'" ], [ ")" ], [ "in" ], [ "year" ], [ "postseason" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "tied", "JJ" ], [ "game", "NN" ], [ "(", "(" ], [ "value", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "tie", "NN" ], [ "'", "''" ], [ "is", "VBZ" ], [ "'1", "NNP" ], [ "'", "POS" ], [ ")", ")" ], [ "in", "IN" ], [ "1885", "CD" ], [ "postseason", "NN" ], [ ".", "." ] ], "values": [ "1", "1885", "ties", "Ames", "Gates", "Valle", "James", "Gomes", "Humber", "Gamel" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(15) Filter(0) Filter(2) A(0) C(2) T(15) V(1) Filter(2) A(0) C(102) T(15) V(0)" }, { "db_id": "baseball_1", "query": "SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2010", "query_toks": [ "SELECT", "sum", "(", "T1.salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2010" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "What is the total salary paid by team Boston Red Stockings in 2010?", "question_toks": [ "what", "is", "total", "salary", "paid", "by", "team", "boston", "red", "stocking", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 152, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 155, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 2, [ 0, [ 0, 151, false ], null ], 2010.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "is", "the", "total", "salary", "paid", "by", "team", "Boston", "Red", "Stockings", "in", "2010", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "salary" ], [ "paid" ], [ "by" ], [ "team" ], [ "boston" ], [ "red" ], [ "stocking" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "salary", "JJ" ], [ "paid", "VBN" ], [ "by", "IN" ], [ "team", "NN" ], [ "boston", "NN" ], [ "red", "VBD" ], [ "stocking", "NN" ], [ "in", "IN" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "Bolton", "2010", "Fred", "Borton", "Boston Reds", "Reid", "Bouton", "Boston", "Boston Red Stockings", "Red", "Reed" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(94) T(13) Filter(0) Filter(2) A(0) C(127) T(16) V(8) Filter(2) A(0) C(2) T(13) V(1)" }, { "db_id": "baseball_1", "query": "SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2010", "query_toks": [ "SELECT", "sum", "(", "T1.salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2010" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "What is the total salary expenses of team Boston Red Stockings in 2010?", "question_toks": [ "what", "is", "total", "salary", "expense", "of", "team", "boston", "red", "stocking", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 152, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 155, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 2, [ 0, [ 0, 151, false ], null ], 2010.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "is", "the", "total", "salary", "expenses", "of", "team", "Boston", "Red", "Stockings", "in", "2010", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "salary" ], [ "expense" ], [ "of" ], [ "team" ], [ "boston" ], [ "red" ], [ "stocking" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "salary", "JJ" ], [ "expense", "NN" ], [ "of", "IN" ], [ "team", "NN" ], [ "boston", "NN" ], [ "red", "VBD" ], [ "stocking", "NN" ], [ "in", "IN" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "Bolton", "2010", "Fred", "Borton", "Boston Reds", "Reid", "Bouton", "Boston", "Boston Red Stockings", "Red", "Reed" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(94) T(13) Filter(0) Filter(2) A(0) C(127) T(16) V(8) Filter(2) A(0) C(2) T(13) V(1)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2000", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "salary", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2000" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "salary", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "How many players were in the team Boston Red Stockings in 2000?", "question_toks": [ "how", "many", "player", "were", "in", "team", "boston", "red", "stocking", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 152, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 2, [ 0, [ 0, 151, false ], null ], 2000.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "How", "many", "players", "were", "in", "the", "team", "Boston", "Red", "Stockings", "in", "2000", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "player" ], [ "were" ], [ "in" ], [ "team" ], [ "boston" ], [ "red" ], [ "stocking" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "player", "NN" ], [ "were", "VBD" ], [ "in", "IN" ], [ "team", "NN" ], [ "boston", "NN" ], [ "red", "VBD" ], [ "stocking", "NN" ], [ "in", "IN" ], [ "2000", "CD" ], [ "?", "." ] ], "values": [ "2000", "Bolton", "Fred", "Borton", "Player", "Boston Reds", "Reid", "Bouton", "Boston", "Boston Red Stockings", "Red", "Reed" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(13) Filter(0) Filter(2) A(0) C(127) T(16) V(9) Filter(2) A(0) C(2) T(13) V(0)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2000", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "salary", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2000" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "salary", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "How many players did Boston Red Stockings have in 2000?", "question_toks": [ "how", "many", "player", "did", "boston", "red", "stocking", "have", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 152, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 2, [ 0, [ 0, 151, false ], null ], 2000.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "How", "many", "players", "did", "Boston", "Red", "Stockings", "have", "in", "2000", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "player" ], [ "did" ], [ "boston" ], [ "red" ], [ "stocking" ], [ "have" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "player", "NN" ], [ "did", "VBD" ], [ "boston", "RB" ], [ "red", "VBN" ], [ "stocking", "NN" ], [ "have", "VBP" ], [ "in", "IN" ], [ "2000", "CD" ], [ "?", "." ] ], "values": [ "Player", "2000", "Boston", "Bolton", "Red", "Borton", "Boston Red Stockings", "Boston Reds", "Reed", "Bouton", "Fred", "Reid" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(13) Filter(0) Filter(2) A(0) C(127) T(16) V(6) Filter(2) A(0) C(2) T(13) V(1)" }, { "db_id": "baseball_1", "query": "SELECT salary FROM salary WHERE YEAR = 2001 ORDER BY salary DESC LIMIT 3;", "query_toks": [ "SELECT", "salary", "FROM", "salary", "WHERE", "YEAR", "=", "2001", "ORDER", "BY", "salary", "DESC", "LIMIT", "3", ";" ], "query_toks_no_value": [ "select", "salary", "from", "salary", "where", "year", "=", "value", "order", "by", "salary", "desc", "limit", "value" ], "question": "List the 3 highest salaries of the players in 2001?", "question_toks": [ "list", "3", "highest", "salary", "of", "player", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 155, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 155, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 151, false ], null ], 2001.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "List", "the", "3", "highest", "salaries", "of", "the", "players", "in", "2001", "?" ], "question_arg": [ [ "list" ], [ "3" ], [ "highest" ], [ "salary" ], [ "of" ], [ "player" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "value" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "3", "CD" ], [ "highest", "JJS" ], [ "salary", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "in", "IN" ], [ "2001", "CD" ], [ "?", "." ] ], "values": [ "3", "2001", "Player" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(94) T(13) Sup(0) A(0) C(94) T(13) Filter(2) A(0) C(2) T(13) V(1)" }, { "db_id": "baseball_1", "query": "SELECT salary FROM salary WHERE YEAR = 2001 ORDER BY salary DESC LIMIT 3;", "query_toks": [ "SELECT", "salary", "FROM", "salary", "WHERE", "YEAR", "=", "2001", "ORDER", "BY", "salary", "DESC", "LIMIT", "3", ";" ], "query_toks_no_value": [ "select", "salary", "from", "salary", "where", "year", "=", "value", "order", "by", "salary", "desc", "limit", "value" ], "question": "How much salary did the top 3 well-paid players get in 2001?", "question_toks": [ "how", "much", "salary", "did", "top", "3", "well-paid", "player", "get", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 155, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 155, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 151, false ], null ], 2001.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "How", "much", "salary", "did", "the", "top", "3", "well-paid", "players", "get", "in", "2001", "?" ], "question_arg": [ [ "how" ], [ "much" ], [ "salary" ], [ "did" ], [ "top" ], [ "3" ], [ "well-paid" ], [ "player" ], [ "get" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "much", "JJ" ], [ "salary", "NN" ], [ "did", "VBD" ], [ "top", "JJ" ], [ "3", "CD" ], [ "well-paid", "JJ" ], [ "player", "NN" ], [ "get", "NN" ], [ "in", "IN" ], [ "2001", "CD" ], [ "?", "." ] ], "values": [ "3", "2001", "Player" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(94) T(13) Sup(0) A(0) C(94) T(13) Filter(2) A(0) C(2) T(13) V(1)" }, { "db_id": "baseball_1", "query": "SELECT salary FROM salary WHERE YEAR = 2010 UNION SELECT salary FROM salary WHERE YEAR = 2001", "query_toks": [ "SELECT", "salary", "FROM", "salary", "WHERE", "YEAR", "=", "2010", "UNION", "SELECT", "salary", "FROM", "salary", "WHERE", "YEAR", "=", "2001" ], "query_toks_no_value": [ "select", "salary", "from", "salary", "where", "year", "=", "value", "union", "select", "salary", "from", "salary", "where", "year", "=", "value" ], "question": "What were all the salary values of players in 2010 and 2001?", "question_toks": [ "what", "were", "all", "salary", "value", "of", "player", "in", "year", "and", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 155, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 155, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 151, false ], null ], 2001.0, null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 151, false ], null ], 2010.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "were", "all", "the", "salary", "values", "of", "players", "in", "2010", "and", "2001", "?" ], "question_arg": [ [ "what" ], [ "were" ], [ "all" ], [ "salary" ], [ "value" ], [ "of" ], [ "player" ], [ "in" ], [ "year" ], [ "and" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "were", "VBD" ], [ "all", "DT" ], [ "salary", "JJ" ], [ "value", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "in", "IN" ], [ "2010", "CD" ], [ "and", "CC" ], [ "2001", "CD" ], [ "?", "." ] ], "values": [ "Player", "2001", "Valdes", "2010" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(94) T(13) Filter(2) A(0) C(2) T(13) V(3) Root(3) Sel(0) N(0) A(0) C(94) T(13) Filter(2) A(0) C(2) T(13) V(1)" }, { "db_id": "baseball_1", "query": "SELECT salary FROM salary WHERE YEAR = 2010 UNION SELECT salary FROM salary WHERE YEAR = 2001", "query_toks": [ "SELECT", "salary", "FROM", "salary", "WHERE", "YEAR", "=", "2010", "UNION", "SELECT", "salary", "FROM", "salary", "WHERE", "YEAR", "=", "2001" ], "query_toks_no_value": [ "select", "salary", "from", "salary", "where", "year", "=", "value", "union", "select", "salary", "from", "salary", "where", "year", "=", "value" ], "question": "List all the salary values players received in 2010 and 2001.", "question_toks": [ "list", "all", "salary", "value", "player", "received", "in", "year", "and", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 155, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 155, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 151, false ], null ], 2001.0, null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 151, false ], null ], 2010.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "List", "all", "the", "salary", "values", "players", "received", "in", "2010", "and", "2001", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "salary" ], [ "value" ], [ "player" ], [ "received" ], [ "in" ], [ "year" ], [ "and" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "salary", "JJ" ], [ "value", "NN" ], [ "player", "NN" ], [ "received", "VBN" ], [ "in", "IN" ], [ "2010", "CD" ], [ "and", "CC" ], [ "2001", "CD" ], [ ".", "." ] ], "values": [ "2001", "Player", "2010", "Valdes" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(94) T(13) Filter(2) A(0) C(2) T(13) V(2) Root(3) Sel(0) N(0) A(0) C(94) T(13) Filter(2) A(0) C(2) T(13) V(0)" }, { "db_id": "baseball_1", "query": "SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;", "query_toks": [ "SELECT", "yearid", "FROM", "hall_of_fame", "GROUP", "BY", "yearid", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "yearid", "from", "hall_of_fame", "group", "by", "yearid", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "In which year did the least people enter hall of fame?", "question_toks": [ "in", "which", "year", "did", "least", "people", "enter", "hall", "of", "fame", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 104, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 104, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "In", "which", "year", "did", "the", "least", "people", "enter", "hall", "of", "fame", "?" ], "question_arg": [ [ "in" ], [ "which" ], [ "year" ], [ "did" ], [ "least" ], [ "people" ], [ "enter" ], [ "hall", "of", "fame" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "which", "WDT" ], [ "year", "NN" ], [ "did", "VBD" ], [ "least", "JJS" ], [ "people", "NNS" ], [ "enter", "VBP" ], [ "hall", "NN" ], [ "of", "IN" ], [ "fame", "NN" ], [ "?", "." ] ], "values": [ "OF", "Flame", "Ball", "Faye", "Halla", "Hall", "Face", "Hill", "Wall", "Halt", "Hale", "Pall", "Harl", "Gall", "Hal", "Hull", "Peoples" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(52) T(9) Sup(1) A(3) C(0) T(9)" }, { "db_id": "baseball_1", "query": "SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;", "query_toks": [ "SELECT", "yearid", "FROM", "hall_of_fame", "GROUP", "BY", "yearid", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "yearid", "from", "hall_of_fame", "group", "by", "yearid", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Find the year in which the least people enter hall of fame.", "question_toks": [ "find", "year", "in", "which", "least", "people", "enter", "hall", "of", "fame", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 104, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 104, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Find", "the", "year", "in", "which", "the", "least", "people", "enter", "hall", "of", "fame", "." ], "question_arg": [ [ "find" ], [ "year" ], [ "in" ], [ "which" ], [ "least" ], [ "people" ], [ "enter" ], [ "hall", "of", "fame" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "year", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "least", "JJS" ], [ "people", "NNS" ], [ "enter", "VBP" ], [ "hall", "NN" ], [ "of", "IN" ], [ "fame", "NN" ], [ ".", "." ] ], "values": [ "OF", "Flame", "Ball", "Faye", "Halla", "Hall", "Face", "Hill", "Wall", "Halt", "Hale", "Pall", "Harl", "Gall", "Hal", "Hull", "Peoples" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(52) T(9) Sup(1) A(3) C(0) T(9)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM park WHERE city = 'Atlanta';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "park", "WHERE", "city", "=", "'Atlanta", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "park", "where", "city", "=", "value" ], "question": "How many parks are there in Atlanta city?", "question_toks": [ "how", "many", "park", "are", "there", "in", "atlanta", "city", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 148, false ], null ], "\"Atlanta\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "How", "many", "parks", "are", "there", "in", "Atlanta", "city", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "park" ], [ "are" ], [ "there" ], [ "in" ], [ "atlanta" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "park", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "atlanta", "JJ" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "Cito", "Parke", "Parks", "Sparks", "Atlanta", "Marks", "Park", "Paris" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(12) Filter(2) A(0) C(91) T(12) V(4)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM park WHERE city = 'Atlanta';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "park", "WHERE", "city", "=", "'Atlanta", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "park", "where", "city", "=", "value" ], "question": "How many parks does Atlanta city have?", "question_toks": [ "how", "many", "park", "doe", "atlanta", "city", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 148, false ], null ], "\"Atlanta\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "How", "many", "parks", "does", "Atlanta", "city", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "park" ], [ "doe" ], [ "atlanta" ], [ "city" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "city" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "park", "NN" ], [ "doe", "JJ" ], [ "atlanta", "JJ" ], [ "city", "NN" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "Parke", "Atlanta", "Marks", "Cito", "Park", "Sparks", "Paris", "Parks" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(12) Filter(2) A(0) C(91) T(12) V(1)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "home_game", "AS", "T1", "JOIN", "park", "AS", "T2", "ON", "T1.park_id", "=", "T2.park_id", "WHERE", "T1.year", "=", "1907", "AND", "T2.park_name", "=", "'Columbia", "Park", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "home_game", "as", "t1", "join", "park", "as", "t2", "on", "t1", ".", "park_id", "=", "t2", ".", "park_id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "park_name", "=", "value" ], "question": "How many games were played in park \"Columbia Park\" in 1907?", "question_toks": [ "how", "many", "game", "were", "played", "in", "park", "'", "columbia", "park", "'", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 115, false ], null ], [ 0, 145, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 112, false ], null ], 1907.0, null ], "and", [ false, 2, [ 0, [ 0, 146, false ], null ], "\"Columbia Park\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "How", "many", "games", "were", "played", "in", "park", "``", "Columbia", "Park", "''", "in", "1907", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "game" ], [ "were" ], [ "played" ], [ "in" ], [ "park" ], [ "'" ], [ "columbia" ], [ "park" ], [ "'" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "game", "NN" ], [ "were", "VBD" ], [ "played", "VBN" ], [ "in", "IN" ], [ "park", "NN" ], [ "'", "''" ], [ "columbia", "NN" ], [ "park", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "1907", "CD" ], [ "?", "." ] ], "values": [ "Parke", "James", "Gates", "Bark", "Parr", "Dark", "Mark", "Ames", "Park", "Gamel", "Colombia", "Columbus", "columbia", "Columbia Park", "1907", "Pack", "Parks", "Columbia", "Gomes", "Columbiana" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(10) Filter(0) Filter(2) A(0) C(2) T(10) V(14) Filter(2) A(0) C(89) T(12) V(13)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "home_game", "AS", "T1", "JOIN", "park", "AS", "T2", "ON", "T1.park_id", "=", "T2.park_id", "WHERE", "T1.year", "=", "1907", "AND", "T2.park_name", "=", "'Columbia", "Park", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "home_game", "as", "t1", "join", "park", "as", "t2", "on", "t1", ".", "park_id", "=", "t2", ".", "park_id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "park_name", "=", "value" ], "question": "Count the number of games taken place in park \"Columbia Park\" in 1907.", "question_toks": [ "count", "number", "of", "game", "taken", "place", "in", "park", "'", "columbia", "park", "'", "in", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 115, false ], null ], [ 0, 145, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 112, false ], null ], 1907.0, null ], "and", [ false, 2, [ 0, [ 0, 146, false ], null ], "\"Columbia Park\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Count", "the", "number", "of", "games", "taken", "place", "in", "park", "``", "Columbia", "Park", "''", "in", "1907", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "game" ], [ "taken" ], [ "place" ], [ "in" ], [ "park" ], [ "'" ], [ "columbia" ], [ "park" ], [ "'" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "game", "NN" ], [ "taken", "VBN" ], [ "place", "NN" ], [ "in", "IN" ], [ "park", "NN" ], [ "'", "''" ], [ "columbia", "NN" ], [ "park", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "1907", "CD" ], [ ".", "." ] ], "values": [ "Bark", "Gamel", "1907", "Pack", "Parks", "Humber", "Parr", "Park", "Colombia", "Columbus", "Gomes", "Parke", "Gates", "Dark", "Ames", "columbia", "Columbiana", "James", "Columbia Park", "Mark", "Columbia" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(10) Filter(0) Filter(2) A(0) C(2) T(10) V(2) Filter(2) A(0) C(89) T(12) V(18)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2000 AND T2.city = 'Atlanta';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "home_game", "AS", "T1", "JOIN", "park", "AS", "T2", "ON", "T1.park_id", "=", "T2.park_id", "WHERE", "T1.year", "=", "2000", "AND", "T2.city", "=", "'Atlanta", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "home_game", "as", "t1", "join", "park", "as", "t2", "on", "t1", ".", "park_id", "=", "t2", ".", "park_id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "city", "=", "value" ], "question": "How many games were played in city Atlanta in 2000?", "question_toks": [ "how", "many", "game", "were", "played", "in", "city", "atlanta", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 115, false ], null ], [ 0, 145, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 112, false ], null ], 2000.0, null ], "and", [ false, 2, [ 0, [ 0, 148, false ], null ], "\"Atlanta\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "How", "many", "games", "were", "played", "in", "city", "Atlanta", "in", "2000", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "game" ], [ "were" ], [ "played" ], [ "in" ], [ "city" ], [ "atlanta" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "city" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "game", "NN" ], [ "were", "VBD" ], [ "played", "VBN" ], [ "in", "IN" ], [ "city", "NN" ], [ "atlanta", "NN" ], [ "in", "IN" ], [ "2000", "CD" ], [ "?", "." ] ], "values": [ "James", "Gates", "Atlanta", "2000", "Ames", "Gamel", "Gomes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(10) Filter(0) Filter(2) A(0) C(2) T(10) V(3) Filter(2) A(0) C(91) T(12) V(2)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2000 AND T2.city = 'Atlanta';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "home_game", "AS", "T1", "JOIN", "park", "AS", "T2", "ON", "T1.park_id", "=", "T2.park_id", "WHERE", "T1.year", "=", "2000", "AND", "T2.city", "=", "'Atlanta", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "home_game", "as", "t1", "join", "park", "as", "t2", "on", "t1", ".", "park_id", "=", "t2", ".", "park_id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "city", "=", "value" ], "question": "Find the number of games taken place in city Atlanta in 2000.", "question_toks": [ "find", "number", "of", "game", "taken", "place", "in", "city", "atlanta", "in", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 115, false ], null ], [ 0, 145, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 112, false ], null ], 2000.0, null ], "and", [ false, 2, [ 0, [ 0, 148, false ], null ], "\"Atlanta\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Find", "the", "number", "of", "games", "taken", "place", "in", "city", "Atlanta", "in", "2000", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "game" ], [ "taken" ], [ "place" ], [ "in" ], [ "city" ], [ "atlanta" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "city" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "game", "NN" ], [ "taken", "VBN" ], [ "place", "NN" ], [ "in", "IN" ], [ "city", "NN" ], [ "atlanta", "NN" ], [ "in", "IN" ], [ "2000", "CD" ], [ ".", "." ] ], "values": [ "Humber", "2000", "Gomes", "James", "Gamel", "Ames", "Atlanta", "Gates" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(10) Filter(0) Filter(2) A(0) C(2) T(10) V(1) Filter(2) A(0) C(91) T(12) V(6)" }, { "db_id": "baseball_1", "query": "SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010;", "query_toks": [ "SELECT", "sum", "(", "T1.attendance", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "BETWEEN", "2000", "AND", "2010", ";" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "attendance", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value" ], "question": "What is the total home game attendance of team Boston Red Stockings from 2000 to 2010?", "question_toks": [ "what", "is", "total", "home", "game", "attendance", "of", "team", "boston", "red", "stocking", "from", "year", "to", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 114, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 120, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 1, [ 0, [ 0, 112, false ], null ], 2000.0, 2010.0 ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "is", "the", "total", "home", "game", "attendance", "of", "team", "Boston", "Red", "Stockings", "from", "2000", "to", "2010", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "home", "game" ], [ "attendance" ], [ "of" ], [ "team" ], [ "boston" ], [ "red" ], [ "stocking" ], [ "from" ], [ "year" ], [ "to" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "home", "NN" ], [ "game", "NN" ], [ "attendance", "NN" ], [ "of", "IN" ], [ "team", "NN" ], [ "boston", "NN" ], [ "red", "VBD" ], [ "stocking", "VBG" ], [ "from", "IN" ], [ "2000", "CD" ], [ "to", "TO" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "Ohme", "Borton", "Gamel", "Fred", "Thome", "Rome", "Howe", "Gabe", "Hope", "Reid", "2010", "Boston", "Reed", "Boston Red Stockings", "Boston Reds", "Homer", "2000", "Hume", "Bolton", "Hobe", "Bouton", "Gale", "Hoge", "Red", "Nome" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(65) T(10) Filter(0) Filter(2) A(0) C(127) T(16) V(13) Filter(8) A(0) C(2) T(10) V(16) V(10)" }, { "db_id": "baseball_1", "query": "SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010;", "query_toks": [ "SELECT", "sum", "(", "T1.attendance", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "BETWEEN", "2000", "AND", "2010", ";" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "attendance", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value" ], "question": "How many games in total did team Boston Red Stockings attend from 2000 to 2010?", "question_toks": [ "how", "many", "game", "in", "total", "did", "team", "boston", "red", "stocking", "attend", "from", "year", "to", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 114, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 120, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 1, [ 0, [ 0, 112, false ], null ], 2000.0, 2010.0 ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "How", "many", "games", "in", "total", "did", "team", "Boston", "Red", "Stockings", "attend", "from", "2000", "to", "2010", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "game" ], [ "in" ], [ "total" ], [ "did" ], [ "team" ], [ "boston" ], [ "red" ], [ "stocking" ], [ "attend" ], [ "from" ], [ "year" ], [ "to" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "game", "NN" ], [ "in", "IN" ], [ "total", "NN" ], [ "did", "VBD" ], [ "team", "NN" ], [ "boston", "NN" ], [ "red", "VBD" ], [ "stocking", "VBG" ], [ "attend", "NN" ], [ "from", "IN" ], [ "2000", "CD" ], [ "to", "TO" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "Boston Red Stockings", "Reed", "Boston Reds", "Bolton", "Bouton", "2000", "Reid", "Gomes", "Red", "Borton", "James", "Gamel", "2010", "Ames", "Fred", "Boston", "Gates" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(65) T(10) Filter(0) Filter(2) A(0) C(127) T(16) V(0) Filter(8) A(0) C(2) T(10) V(5) V(12)" }, { "db_id": "baseball_1", "query": "SELECT sum(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first = 'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990;", "query_toks": [ "SELECT", "sum", "(", "T1.salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "WHERE", "T2.name_first", "=", "'Len", "'", "AND", "T2.name_last", "=", "'Barker", "'", "AND", "T1.year", "BETWEEN", "1985", "AND", "1990", ";" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "where", "t2", ".", "name_first", "=", "value", "and", "t2", ".", "name_last", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value" ], "question": "How much did the the player with first name Len and last name Barker earn between 1985 to 1990 in total?", "question_toks": [ "how", "much", "did", "player", "with", "first", "name", "len", "and", "last", "name", "barker", "earn", "between", "year", "to", "year", "in", "total", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 154, false ], null ], [ 0, 121, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 155, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 134, false ], null ], "\"Len\"", null ], "and", [ false, 2, [ 0, [ 0, 135, false ], null ], "\"Barker\"", null ], "and", [ false, 1, [ 0, [ 0, 151, false ], null ], 1985.0, 1990.0 ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "How", "much", "did", "the", "the", "player", "with", "first", "name", "Len", "and", "last", "name", "Barker", "earn", "between", "1985", "to", "1990", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "much" ], [ "did" ], [ "player" ], [ "with" ], [ "name", "first" ], [ "len" ], [ "and" ], [ "name", "last" ], [ "barker" ], [ "earn" ], [ "between" ], [ "year" ], [ "to" ], [ "year" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "much", "RB" ], [ "did", "VBD" ], [ "player", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "len", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "barker", "NN" ], [ "earn", "VBP" ], [ "between", "IN" ], [ "1985", "CD" ], [ "to", "TO" ], [ "1990", "CD" ], [ "in", "IN" ], [ "total", "JJ" ], [ "?", "." ] ], "values": [ "1", "Len", "Parker", "Baker", "Nate", "Nome", "Larker", "Barber", "Barker", "1990", "1985", "Player", "Barger" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(94) T(13) Filter(0) Filter(2) A(0) C(78) T(11) V(1) Filter(0) Filter(2) A(0) C(79) T(11) V(8) Filter(8) A(0) C(2) T(13) V(10) V(9)" }, { "db_id": "baseball_1", "query": "SELECT sum(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first = 'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990;", "query_toks": [ "SELECT", "sum", "(", "T1.salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "WHERE", "T2.name_first", "=", "'Len", "'", "AND", "T2.name_last", "=", "'Barker", "'", "AND", "T1.year", "BETWEEN", "1985", "AND", "1990", ";" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "where", "t2", ".", "name_first", "=", "value", "and", "t2", ".", "name_last", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value" ], "question": "Compute the total salary that the player with first name Len and last name Barker received between 1985 to 1990.", "question_toks": [ "compute", "total", "salary", "that", "player", "with", "first", "name", "len", "and", "last", "name", "barker", "received", "between", "year", "to", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 154, false ], null ], [ 0, 121, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 155, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 134, false ], null ], "\"Len\"", null ], "and", [ false, 2, [ 0, [ 0, 135, false ], null ], "\"Barker\"", null ], "and", [ false, 1, [ 0, [ 0, 151, false ], null ], 1985.0, 1990.0 ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Compute", "the", "total", "salary", "that", "the", "player", "with", "first", "name", "Len", "and", "last", "name", "Barker", "received", "between", "1985", "to", "1990", "." ], "question_arg": [ [ "compute" ], [ "total" ], [ "salary" ], [ "that" ], [ "player" ], [ "with" ], [ "name", "first" ], [ "len" ], [ "and" ], [ "name", "last" ], [ "barker" ], [ "received" ], [ "between" ], [ "year" ], [ "to" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "compute", "NN" ], [ "total", "JJ" ], [ "salary", "NN" ], [ "that", "WDT" ], [ "player", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "len", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "barker", "NN" ], [ "received", "VBD" ], [ "between", "IN" ], [ "1985", "CD" ], [ "to", "TO" ], [ "1990", "CD" ], [ ".", "." ] ], "values": [ "Nome", "Parker", "Barger", "1", "1990", "Baker", "Barker", "Larker", "1985", "Player", "Nate", "Len", "Barber" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(94) T(13) Filter(0) Filter(2) A(0) C(78) T(11) V(11) Filter(0) Filter(2) A(0) C(79) T(11) V(6) Filter(8) A(0) C(2) T(13) V(8) V(4)" }, { "db_id": "baseball_1", "query": "SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'", "query_toks": [ "SELECT", "T2.name_first", ",", "T2.name_last", "FROM", "salary", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "JOIN", "team", "AS", "T3", "ON", "T3.team_id_br", "=", "T1.team_id", "WHERE", "T1.year", "=", "2005", "AND", "T3.name", "=", "'Washington", "Nationals", "'", "INTERSECT", "SELECT", "T2.name_first", ",", "T2.name_last", "FROM", "salary", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "JOIN", "team", "AS", "T3", "ON", "T3.team_id_br", "=", "T1.team_id", "WHERE", "T1.year", "=", "2007", "AND", "T3.name", "=", "'Washington", "Nationals", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name_first", ",", "t2", ".", "name_last", "from", "salary", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "join", "team", "as", "t3", "on", "t3", ".", "team_id_br", "=", "t1", ".", "team_id", "where", "t1", ".", "year", "=", "value", "and", "t3", ".", "name", "=", "value", "intersect", "select", "t2", ".", "name_first", ",", "t2", ".", "name_last", "from", "salary", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "join", "team", "as", "t3", "on", "t3", ".", "team_id_br", "=", "t1", ".", "team_id", "where", "t1", ".", "year", "=", "value", "and", "t3", ".", "name", "=", "value" ], "question": "List players' first name and last name who received salary from team Washington Nationals in both 2005 and 2007.", "question_toks": [ "list", "player", "'", "first", "name", "and", "last", "name", "who", "received", "salary", "from", "team", "washington", "national", "in", "both", "year", "and", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 154, false ], null ], [ 0, 121, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 154, false ], null ], [ 0, 121, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 151, false ], null ], 2007.0, null ], "and", [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Washington Nationals\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 151, false ], null ], 2005.0, null ], "and", [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Washington Nationals\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "List", "players", "'", "first", "name", "and", "last", "name", "who", "received", "salary", "from", "team", "Washington", "Nationals", "in", "both", "2005", "and", "2007", "." ], "question_arg": [ [ "list" ], [ "player" ], [ "'" ], [ "name", "first" ], [ "and" ], [ "name", "last" ], [ "who" ], [ "received" ], [ "salary" ], [ "from" ], [ "team" ], [ "washington" ], [ "national" ], [ "in" ], [ "both" ], [ "year" ], [ "and" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "state" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "player", "NN" ], [ "'", "POS" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "who", "WP" ], [ "received", "VBD" ], [ "salary", "JJ" ], [ "from", "IN" ], [ "team", "NN" ], [ "washington", "NN" ], [ "national", "JJ" ], [ "in", "IN" ], [ "both", "DT" ], [ "2005", "CD" ], [ "and", "CC" ], [ "2007", "CD" ], [ ".", "." ] ], "values": [ "2007", "washington", "Nome", "1", "WA", "2005", "Nate", "Player", "Washington", "Washington Nationals" ], "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(78) T(11) A(0) C(79) T(11) Filter(0) Filter(2) A(0) C(2) T(13) V(5) Filter(2) A(0) C(127) T(16) V(9) Root(3) Sel(0) N(1) A(0) C(78) T(11) A(0) C(79) T(11) Filter(0) Filter(2) A(0) C(2) T(13) V(0) Filter(2) A(0) C(127) T(16) V(9)" }, { "db_id": "baseball_1", "query": "SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'", "query_toks": [ "SELECT", "T2.name_first", ",", "T2.name_last", "FROM", "salary", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "JOIN", "team", "AS", "T3", "ON", "T3.team_id_br", "=", "T1.team_id", "WHERE", "T1.year", "=", "2005", "AND", "T3.name", "=", "'Washington", "Nationals", "'", "INTERSECT", "SELECT", "T2.name_first", ",", "T2.name_last", "FROM", "salary", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "JOIN", "team", "AS", "T3", "ON", "T3.team_id_br", "=", "T1.team_id", "WHERE", "T1.year", "=", "2007", "AND", "T3.name", "=", "'Washington", "Nationals", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name_first", ",", "t2", ".", "name_last", "from", "salary", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "join", "team", "as", "t3", "on", "t3", ".", "team_id_br", "=", "t1", ".", "team_id", "where", "t1", ".", "year", "=", "value", "and", "t3", ".", "name", "=", "value", "intersect", "select", "t2", ".", "name_first", ",", "t2", ".", "name_last", "from", "salary", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "join", "team", "as", "t3", "on", "t3", ".", "team_id_br", "=", "t1", ".", "team_id", "where", "t1", ".", "year", "=", "value", "and", "t3", ".", "name", "=", "value" ], "question": "What are the first name and last name of the players who were paid salary by team Washington Nationals in both 2005 and 2007?", "question_toks": [ "what", "are", "first", "name", "and", "last", "name", "of", "player", "who", "were", "paid", "salary", "by", "team", "washington", "national", "in", "both", "year", "and", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 154, false ], null ], [ 0, 121, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 154, false ], null ], [ 0, 121, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 151, false ], null ], 2007.0, null ], "and", [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Washington Nationals\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 134, false ], null ] ], [ 0, [ 0, [ 0, 135, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 151, false ], null ], 2005.0, null ], "and", [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Washington Nationals\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "What", "are", "the", "first", "name", "and", "last", "name", "of", "the", "players", "who", "were", "paid", "salary", "by", "team", "Washington", "Nationals", "in", "both", "2005", "and", "2007", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name", "first" ], [ "and" ], [ "name", "last" ], [ "of" ], [ "player" ], [ "who" ], [ "were" ], [ "paid" ], [ "salary" ], [ "by" ], [ "team" ], [ "washington" ], [ "national" ], [ "in" ], [ "both" ], [ "year" ], [ "and" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "state" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "who", "WP" ], [ "were", "VBD" ], [ "paid", "VBN" ], [ "salary", "NN" ], [ "by", "IN" ], [ "team", "NN" ], [ "washington", "NN" ], [ "national", "JJ" ], [ "in", "IN" ], [ "both", "DT" ], [ "2005", "CD" ], [ "and", "CC" ], [ "2007", "CD" ], [ "?", "." ] ], "values": [ "2007", "washington", "Nome", "1", "WA", "2005", "Nate", "Player", "Washington", "Washington Nationals" ], "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(78) T(11) A(0) C(79) T(11) Filter(0) Filter(2) A(0) C(2) T(13) V(5) Filter(2) A(0) C(127) T(16) V(9) Root(3) Sel(0) N(1) A(0) C(78) T(11) A(0) C(79) T(11) Filter(0) Filter(2) A(0) C(2) T(13) V(0) Filter(2) A(0) C(127) T(16) V(9)" }, { "db_id": "baseball_1", "query": "SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000;", "query_toks": [ "SELECT", "sum", "(", "T1.games", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "BETWEEN", "1990", "AND", "2000", ";" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "games", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value" ], "question": "How many home games did the team Boston Red Stockings play from 1990 to 2000 in total?", "question_toks": [ "how", "many", "home", "game", "did", "team", "boston", "red", "stocking", "play", "from", "year", "to", "year", "in", "total", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 114, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 118, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 1, [ 0, [ 0, 112, false ], null ], 1990.0, 2000.0 ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "How", "many", "home", "games", "did", "the", "team", "Boston", "Red", "Stockings", "play", "from", "1990", "to", "2000", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "home", "game" ], [ "did" ], [ "team" ], [ "boston" ], [ "red" ], [ "stocking" ], [ "play" ], [ "from" ], [ "year" ], [ "to" ], [ "year" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "home", "NN" ], [ "game", "NN" ], [ "did", "VBD" ], [ "team", "VB" ], [ "boston", "NN" ], [ "red", "JJ" ], [ "stocking", "NN" ], [ "play", "NN" ], [ "from", "IN" ], [ "1990", "CD" ], [ "to", "TO" ], [ "2000", "CD" ], [ "in", "IN" ], [ "total", "JJ" ], [ "?", "." ] ], "values": [ "Howe", "Gomes", "Red", "Homer", "Hope", "Gamel", "Reid", "Gates", "Ames", "Bolton", "Hoge", "2000", "Nome", "Boston Reds", "Rome", "Boston", "1990", "Boston Red Stockings", "Fred", "Hume", "Reed", "Hobe", "Thome", "Bouton", "James", "Ohme", "Borton" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(63) T(10) Filter(0) Filter(2) A(0) C(127) T(16) V(17) Filter(8) A(0) C(2) T(10) V(16) V(11)" }, { "db_id": "baseball_1", "query": "SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000;", "query_toks": [ "SELECT", "sum", "(", "T1.games", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "BETWEEN", "1990", "AND", "2000", ";" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "games", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value" ], "question": "Count the total number of games the team Boston Red Stockings attended from 1990 to 2000.", "question_toks": [ "count", "total", "number", "of", "game", "team", "boston", "red", "stocking", "attended", "from", "year", "to", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 114, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 118, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 1, [ 0, [ 0, 112, false ], null ], 1990.0, 2000.0 ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Count", "the", "total", "number", "of", "games", "the", "team", "Boston", "Red", "Stockings", "attended", "from", "1990", "to", "2000", "." ], "question_arg": [ [ "count" ], [ "total" ], [ "number" ], [ "of" ], [ "game" ], [ "team" ], [ "boston" ], [ "red" ], [ "stocking" ], [ "attended" ], [ "from" ], [ "year" ], [ "to" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "game", "NN" ], [ "team", "NN" ], [ "boston", "NN" ], [ "red", "VBD" ], [ "stocking", "VBG" ], [ "attended", "VBN" ], [ "from", "IN" ], [ "1990", "CD" ], [ "to", "TO" ], [ "2000", "CD" ], [ ".", "." ] ], "values": [ "Borton", "1990", "Boston Reds", "Reed", "Ames", "Reid", "Boston Red Stockings", "Bolton", "Humber", "Boston", "2000", "Red", "Gomes", "Gamel", "James", "Fred", "Gates", "Bouton" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(63) T(10) Filter(0) Filter(2) A(0) C(127) T(16) V(6) Filter(8) A(0) C(2) T(10) V(1) V(10)" }, { "db_id": "baseball_1", "query": "SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1;", "query_toks": [ "SELECT", "T2.name", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T1.year", "=", "1980", "ORDER", "BY", "T1.attendance", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t1", ".", "year", "=", "value", "order", "by", "t1", ".", "attendance", "asc", "limit", "value" ], "question": "Which team had the least number of attendances in home games in 1980?", "question_toks": [ "which", "team", "had", "least", "number", "of", "attendance", "in", "home", "game", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 114, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 120, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 210, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 112, false ], null ], 1980.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Which", "team", "had", "the", "least", "number", "of", "attendances", "in", "home", "games", "in", "1980", "?" ], "question_arg": [ [ "which" ], [ "team" ], [ "had" ], [ "least" ], [ "number" ], [ "of" ], [ "attendance" ], [ "in" ], [ "home", "game" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "team", "NN" ], [ "had", "VBD" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "attendance", "NN" ], [ "in", "IN" ], [ "home", "NN" ], [ "game", "NN" ], [ "in", "IN" ], [ "1980", "CD" ], [ "?", "." ] ], "values": [ "1980", "Ames", "Tam", "Rome", "Ohme", "Humber", "Hoge", "Hope", "Gomes", "Hume", "Homer", "Beam", "Gamel", "Thome", "James", "Hobe", "Gates", "Howe", "Nome" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(127) T(16) Sup(1) A(0) C(65) T(10) Filter(2) A(0) C(2) T(10) V(0)" }, { "db_id": "baseball_1", "query": "SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1;", "query_toks": [ "SELECT", "T2.name", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T1.year", "=", "1980", "ORDER", "BY", "T1.attendance", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t1", ".", "year", "=", "value", "order", "by", "t1", ".", "attendance", "asc", "limit", "value" ], "question": "Find the team that attended the least number of home games in 1980.", "question_toks": [ "find", "team", "that", "attended", "least", "number", "of", "home", "game", "in", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 114, false ], null ], [ 0, 215, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 16 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 120, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 210, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 112, false ], null ], 1980.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Find", "the", "team", "that", "attended", "the", "least", "number", "of", "home", "games", "in", "1980", "." ], "question_arg": [ [ "find" ], [ "team" ], [ "that" ], [ "attended" ], [ "least" ], [ "number" ], [ "of" ], [ "home", "game" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "team", "NN" ], [ "that", "WDT" ], [ "attended", "VBD" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "home", "NN" ], [ "game", "NN" ], [ "in", "IN" ], [ "1980", "CD" ], [ ".", "." ] ], "values": [ "1980", "Ames", "Tam", "Rome", "Ohme", "Humber", "Hoge", "Hope", "Gomes", "Hume", "Homer", "Beam", "Gamel", "Thome", "James", "Hobe", "Gates", "Howe", "Nome" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(127) T(16) Sup(1) A(0) C(65) T(10) Filter(2) A(0) C(2) T(10) V(0)" }, { "db_id": "baseball_1", "query": "SELECT state FROM park GROUP BY state HAVING count(*) > 2;", "query_toks": [ "SELECT", "state", "FROM", "park", "GROUP", "BY", "state", "HAVING", "count", "(", "*", ")", ">", "2", ";" ], "query_toks_no_value": [ "select", "state", "from", "park", "group", "by", "state", "having", "count", "(", "*", ")", ">", "value" ], "question": "List the names of states that have more than 2 parks.", "question_toks": [ "list", "name", "of", "state", "that", "have", "more", "than", "2", "park", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 149, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 149, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "List", "the", "names", "of", "states", "that", "have", "more", "than", "2", "parks", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "state" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "2" ], [ "park" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "state", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "park", "NN" ], [ ".", "." ] ], "values": [ "Parke", "Ames", "James", "Paris", "Marks", "Parks", "Sparks", "Stites", "Stutes", "2", "Park" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(92) T(12) Filter(5) A(3) C(0) T(12) V(9)" }, { "db_id": "baseball_1", "query": "SELECT state FROM park GROUP BY state HAVING count(*) > 2;", "query_toks": [ "SELECT", "state", "FROM", "park", "GROUP", "BY", "state", "HAVING", "count", "(", "*", ")", ">", "2", ";" ], "query_toks_no_value": [ "select", "state", "from", "park", "group", "by", "state", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which states have more than 2 parks?", "question_toks": [ "which", "state", "have", "more", "than", "2", "park", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 149, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 149, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Which", "states", "have", "more", "than", "2", "parks", "?" ], "question_arg": [ [ "which" ], [ "state" ], [ "have" ], [ "more" ], [ "than" ], [ "2" ], [ "park" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "state", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "park", "NN" ], [ "?", "." ] ], "values": [ "Paris", "Marks", "Parks", "Sparks", "Park", "Stites", "2", "Parke", "Stutes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(92) T(12) Filter(5) A(3) C(0) T(12) V(6)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM team_franchise WHERE active = 'Y';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "team_franchise", "WHERE", "active", "=", "'Y", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "team_franchise", "where", "active", "=", "value" ], "question": "How many team franchises are active, with active value 'Y'?", "question_toks": [ "how", "many", "team", "franchise", "are", "active", ",", "with", "active", "value", "'y", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 17 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 220, false ], null ], "\"Y\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "How", "many", "team", "franchises", "are", "active", ",", "with", "active", "value", "'Y", "'", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "team", "franchise" ], [ "are" ], [ "active" ], [ "," ], [ "with" ], [ "active" ], [ "value" ], [ "'y" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "team", "NN" ], [ "franchise", "NN" ], [ "are", "VBP" ], [ "active", "JJ" ], [ ",", "," ], [ "with", "IN" ], [ "active", "JJ" ], [ "value", "NN" ], [ "'y", "POS" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Beam", "Y", "Valle", "Tam" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(17) Filter(2) A(0) C(135) T(17) V(1)" }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM team_franchise WHERE active = 'Y';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "team_franchise", "WHERE", "active", "=", "'Y", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "team_franchise", "where", "active", "=", "value" ], "question": "Find the number of team franchises that are active (have 'Y' as \"active\" information).", "question_toks": [ "find", "number", "of", "team", "franchise", "that", "are", "active", "(", "have", "'y", "'", "a", "'", "active", "'", "information", ")", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 17 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 220, false ], null ], "\"Y\"", null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Find", "the", "number", "of", "team", "franchises", "that", "are", "active", "(", "have", "'Y", "'", "as", "``", "active", "''", "information", ")", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "team", "franchise" ], [ "that" ], [ "are" ], [ "active" ], [ "(" ], [ "have" ], [ "'y" ], [ "'" ], [ "a" ], [ "'" ], [ "active" ], [ "'" ], [ "information" ], [ ")" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "team", "NN" ], [ "franchise", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "active", "JJ" ], [ "(", "(" ], [ "have", "VBP" ], [ "'y", "VBN" ], [ "'", "''" ], [ "a", "DT" ], [ "'", "POS" ], [ "active", "JJ" ], [ "'", "POS" ], [ "information", "NN" ], [ ")", ")" ], [ ".", "." ] ], "values": [ "Y", "Humber", "active", "Tam", "Beam" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(17) Filter(2) A(0) C(135) T(17) V(0)" }, { "db_id": "baseball_1", "query": "SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;", "query_toks": [ "SELECT", "city", "FROM", "park", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", "BETWEEN", "2", "AND", "4", ";" ], "query_toks_no_value": [ "select", "city", "from", "park", "group", "by", "city", "having", "count", "(", "*", ")", "between", "value", "and", "value" ], "question": "Which cities have 2 to 4 parks?", "question_toks": [ "which", "city", "have", "2", "to", "4", "park", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 148, false ] ], "having": [ [ false, 1, [ 0, [ 3, 0, false ], null ], 2.0, 4.0 ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 148, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Which", "cities", "have", "2", "to", "4", "parks", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "have" ], [ "2" ], [ "to" ], [ "4" ], [ "park" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "have", "VBP" ], [ "2", "CD" ], [ "to", "TO" ], [ "4", "CD" ], [ "park", "NN" ], [ "?", "." ] ], "values": [ "Paris", "Marks", "Parks", "4", "Sparks", "Park", "2", "Parke" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(91) T(12) Filter(8) A(3) C(0) T(12) V(6) V(3)" }, { "db_id": "baseball_1", "query": "SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;", "query_toks": [ "SELECT", "city", "FROM", "park", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", "BETWEEN", "2", "AND", "4", ";" ], "query_toks_no_value": [ "select", "city", "from", "park", "group", "by", "city", "having", "count", "(", "*", ")", "between", "value", "and", "value" ], "question": "Find all the cities that have 2 to 4 parks.", "question_toks": [ "find", "all", "city", "that", "have", "2", "to", "4", "park", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 148, false ] ], "having": [ [ false, 1, [ 0, [ 3, 0, false ], null ], 2.0, 4.0 ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 148, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Find", "all", "the", "cities", "that", "have", "2", "to", "4", "parks", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "city" ], [ "that" ], [ "have" ], [ "2" ], [ "to" ], [ "4" ], [ "park" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "city", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "2", "CD" ], [ "to", "TO" ], [ "4", "CD" ], [ "park", "NN" ], [ ".", "." ] ], "values": [ "Parks", "2", "Marks", "Parke", "Park", "Sparks", "Paris", "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(91) T(12) Filter(8) A(3) C(0) T(12) V(1) V(7)" }, { "db_id": "baseball_1", "query": "SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.park_name", "FROM", "home_game", "AS", "T1", "JOIN", "park", "AS", "T2", "ON", "T1.park_id", "=", "T2.park_id", "WHERE", "T1.year", "=", "2008", "ORDER", "BY", "T1.attendance", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "park_name", "from", "home_game", "as", "t1", "join", "park", "as", "t2", "on", "t1", ".", "park_id", "=", "t2", ".", "park_id", "where", "t1", ".", "year", "=", "value", "order", "by", "t1", ".", "attendance", "desc", "limit", "value" ], "question": "Which park had most attendances in 2008?", "question_toks": [ "which", "park", "had", "most", "attendance", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 115, false ], null ], [ 0, 145, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 120, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 146, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 112, false ], null ], 2008.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Which", "park", "had", "most", "attendances", "in", "2008", "?" ], "question_arg": [ [ "which" ], [ "park" ], [ "had" ], [ "most" ], [ "attendance" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "park", "NN" ], [ "had", "VBD" ], [ "most", "JJS" ], [ "attendance", "NN" ], [ "in", "IN" ], [ "2008", "CD" ], [ "?", "." ] ], "values": [ "Mark", "2008", "Parks", "Dark", "Parr", "Pack", "Bark", "Park", "Parke" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(89) T(12) Sup(0) A(0) C(65) T(10) Filter(2) A(0) C(2) T(10) V(1)" }, { "db_id": "baseball_1", "query": "SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.park_name", "FROM", "home_game", "AS", "T1", "JOIN", "park", "AS", "T2", "ON", "T1.park_id", "=", "T2.park_id", "WHERE", "T1.year", "=", "2008", "ORDER", "BY", "T1.attendance", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "park_name", "from", "home_game", "as", "t1", "join", "park", "as", "t2", "on", "t1", ".", "park_id", "=", "t2", ".", "park_id", "where", "t1", ".", "year", "=", "value", "order", "by", "t1", ".", "attendance", "desc", "limit", "value" ], "question": "Which park did the most people attend in 2008?", "question_toks": [ "which", "park", "did", "most", "people", "attend", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 115, false ], null ], [ 0, 145, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 120, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 146, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 112, false ], null ], 2008.0, null ] ] }, "names": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "year", "team id", "league id", "player id", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "player id", "award id", "year", "league id", "tie", "notes", "player id", "award id", "year", "league id", "tie", "notes", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "award id", "year", "league id", "player id", "points won", "points max", "votes first", "player id", "year", "stint", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "year", "round", "player id", "team id", "league id", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "player id", "college id", "year", "player id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "year", "league id", "team id", "park id", "span first", "span last", "games", "openings", "attendance", "player id", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park id", "park name", "park alias", "city", "state", "country", "year", "team id", "league id", "player id", "salary", "college id", "name full", "city", "state", "country", "year", "round", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "year", "league id", "team id", "franchise id", "div id", "rank", "g", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "r", "ab", "h", "double", "triple", "hr", "bb", "so", "sb", "cs", "hbp", "sf", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "attendance", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise id", "franchise name", "active", "na assoc" ], "table_names": [ "all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "hall of fame", "home game", "player", "park", "salary", "college", "postseason", "team", "team franchise" ], "col_set": [ "*", "player id", "year", "game num", "game id", "team id", "league id", "gp", "starting pos", "g all", "gs", "g batting", "g defense", "g p", "g c", "g 1b", "g 2b", "g 3b", "g ss", "g lf", "g cf", "g rf", "g of", "g dh", "g ph", "g pr", "award id", "tie", "notes", "points won", "points max", "votes first", "stint", "g", "ab", "r", "h", "double", "triple", "hr", "rbi", "sb", "cs", "bb", "so", "ibb", "hbp", "sh", "sf", "g idp", "round", "college id", "yearid", "votedby", "ballots", "needed", "votes", "inducted", "category", "needed note", "park id", "span first", "span last", "games", "openings", "attendance", "birth year", "birth month", "birth day", "birth country", "birth state", "birth city", "death year", "death month", "death day", "death country", "death state", "death city", "name first", "name last", "name given", "weight", "height", "bats", "throws", "debut", "final game", "retro id", "bbref id", "park name", "park alias", "city", "state", "country", "salary", "name full", "team id winner", "league id winner", "team id loser", "league id loser", "wins", "losses", "ties", "franchise id", "div id", "rank", "ghome", "w", "l", "div win", "wc win", "lg win", "ws win", "ra", "er", "era", "cg", "sho", "sv", "ipouts", "ha", "hra", "bba", "soa", "e", "dp", "fp", "name", "park", "bpf", "ppf", "team id br", "team id lahman45", "team id retro", "franchise name", "active", "na assoc" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17 ], "keys": { "1": 121, "121": 103, "12": 121, "10": 172, "172": 114, "30": 121, "36": 121, "52": 121, "56": 121, "81": 172, "80": 121, "101": 156, "156": 101, "100": 121, "103": 121, "115": 145, "145": 115, "114": 172 }, "origin_question_toks": [ "Which", "park", "did", "the", "most", "people", "attend", "in", "2008", "?" ], "question_arg": [ [ "which" ], [ "park" ], [ "did" ], [ "most" ], [ "people" ], [ "attend" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "park", "NN" ], [ "did", "VBD" ], [ "most", "JJS" ], [ "people", "NNS" ], [ "attend", "VBP" ], [ "in", "IN" ], [ "2008", "CD" ], [ "?", "." ] ], "values": [ "Mark", "2008", "Parks", "Dark", "Peoples", "Parr", "Pack", "Bark", "Park", "Parke" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(89) T(12) Sup(0) A(0) C(65) T(10) Filter(2) A(0) C(2) T(10) V(1)" }, { "db_id": "mountain_photos", "query": "SELECT count(*) FROM camera_lens WHERE focal_length_mm > 15", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "camera_lens", "WHERE", "focal_length_mm", ">", "15" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "camera_lens", "where", "focal_length_mm", ">", "value" ], "question": "How many camera lenses have a focal length longer than 15 mm?", "question_toks": [ "how", "many", "camera", "lens", "have", "a", "focal", "length", "longer", "than", "15", "mm", "?" ], "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 ], 15.0, null ] ] }, "names": [ "*", "id", "name", "height", "prominence", "range", "country", "id", "brand", "name", "focal length mm", "max aperture", "id", "camera lens id", "mountain id", "color", "name" ], "table_names": [ "mountain", "camera lens", "photos" ], "col_set": [ "*", "id", "name", "height", "prominence", "range", "country", "brand", "focal length mm", "max aperture", "camera lens id", "mountain id", "color" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 7, "7": 7, "12": 12 }, "origin_question_toks": [ "How", "many", "camera", "lenses", "have", "a", "focal", "length", "longer", "than", "15", "mm", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "camera", "lens" ], [ "have" ], [ "a" ], [ "focal", "length", "mm" ], [ "longer" ], [ "than" ], [ "15" ], [ "mm" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "camera", "NN" ], [ "lens", "NNS" ], [ "have", "VBP" ], [ "a", "DT" ], [ "focal", "JJ" ], [ "length", "NN" ], [ "longer", "JJR" ], [ "than", "IN" ], [ "15", "CD" ], [ "mm", "NNS" ], [ "?", "." ] ], "values": [ "15" ], "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": "mountain_photos", "query": "SELECT brand , name FROM camera_lens ORDER BY max_aperture DESC", "query_toks": [ "SELECT", "brand", ",", "name", "FROM", "camera_lens", "ORDER", "BY", "max_aperture", "DESC" ], "query_toks_no_value": [ "select", "brand", ",", "name", "from", "camera_lens", "order", "by", "max_aperture", "desc" ], "question": "Find the brand and name for each camera lens, and sort in descending order of maximum aperture.", "question_toks": [ "find", "brand", "and", "name", "for", "each", "camera", "lens", ",", "and", "sort", "in", "descending", "order", "of", "maximum", "aperture", "." ], "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 ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "height", "prominence", "range", "country", "id", "brand", "name", "focal length mm", "max aperture", "id", "camera lens id", "mountain id", "color", "name" ], "table_names": [ "mountain", "camera lens", "photos" ], "col_set": [ "*", "id", "name", "height", "prominence", "range", "country", "brand", "focal length mm", "max aperture", "camera lens id", "mountain id", "color" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 7, "7": 7, "12": 12 }, "origin_question_toks": [ "Find", "the", "brand", "and", "name", "for", "each", "camera", "lens", ",", "and", "sort", "in", "descending", "order", "of", "maximum", "aperture", "." ], "question_arg": [ [ "find" ], [ "brand" ], [ "and" ], [ "name" ], [ "for" ], [ "each" ], [ "camera", "lens" ], [ "," ], [ "and" ], [ "sort" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "maximum" ], [ "aperture" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "brand", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "camera", "NN" ], [ "lens", "VBZ" ], [ ",", "," ], [ "and", "CC" ], [ "sort", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "maximum", "JJ" ], [ "aperture", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(7) T(1) A(0) C(2) T(1) Order(0) A(0) C(9) T(1)" }, { "db_id": "mountain_photos", "query": "SELECT id , color , name FROM photos", "query_toks": [ "SELECT", "id", ",", "color", ",", "name", "FROM", "photos" ], "query_toks_no_value": [ "select", "id", ",", "color", ",", "name", "from", "photos" ], "question": "List the id, color scheme, and name for all the photos.", "question_toks": [ "list", "id", ",", "color", "scheme", ",", "and", "name", "for", "all", "photo", "." ], "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, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "height", "prominence", "range", "country", "id", "brand", "name", "focal length mm", "max aperture", "id", "camera lens id", "mountain id", "color", "name" ], "table_names": [ "mountain", "camera lens", "photos" ], "col_set": [ "*", "id", "name", "height", "prominence", "range", "country", "brand", "focal length mm", "max aperture", "camera lens id", "mountain id", "color" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 7, "7": 7, "12": 12 }, "origin_question_toks": [ "List", "the", "id", ",", "color", "scheme", ",", "and", "name", "for", "all", "the", "photos", "." ], "question_arg": [ [ "list" ], [ "id" ], [ "," ], [ "color" ], [ "scheme" ], [ "," ], [ "and" ], [ "name" ], [ "for" ], [ "all" ], [ "photo" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "color", "NN" ], [ "scheme", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "photo", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(1) T(2) A(0) C(12) T(2) A(0) C(2) T(2)" }, { "db_id": "mountain_photos", "query": "SELECT max(height) , avg(height) FROM mountain", "query_toks": [ "SELECT", "max", "(", "height", ")", ",", "avg", "(", "height", ")", "FROM", "mountain" ], "query_toks_no_value": [ "select", "max", "(", "height", ")", ",", "avg", "(", "height", ")", "from", "mountain" ], "question": "What are the maximum and average height of the mountains?", "question_toks": [ "what", "are", "maximum", "and", "average", "height", "of", "mountain", "?" ], "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 ] ], [ 5, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "height", "prominence", "range", "country", "id", "brand", "name", "focal length mm", "max aperture", "id", "camera lens id", "mountain id", "color", "name" ], "table_names": [ "mountain", "camera lens", "photos" ], "col_set": [ "*", "id", "name", "height", "prominence", "range", "country", "brand", "focal length mm", "max aperture", "camera lens id", "mountain id", "color" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 7, "7": 7, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "maximum", "and", "average", "height", "of", "the", "mountains", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "and" ], [ "average" ], [ "height" ], [ "of" ], [ "mountain" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "average", "JJ" ], [ "height", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(3) T(0) A(5) C(3) T(0)" }, { "db_id": "mountain_photos", "query": "SELECT avg(prominence) FROM mountain WHERE country = 'Morocco'", "query_toks": [ "SELECT", "avg", "(", "prominence", ")", "FROM", "mountain", "WHERE", "country", "=", "'Morocco", "'" ], "query_toks_no_value": [ "select", "avg", "(", "prominence", ")", "from", "mountain", "where", "country", "=", "value" ], "question": "What are the average prominence of the mountains in country 'Morocco'?", "question_toks": [ "what", "are", "average", "prominence", "of", "mountain", "in", "country", "'", "morocco", "'", "?" ], "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": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Morocco\"", null ] ] }, "names": [ "*", "id", "name", "height", "prominence", "range", "country", "id", "brand", "name", "focal length mm", "max aperture", "id", "camera lens id", "mountain id", "color", "name" ], "table_names": [ "mountain", "camera lens", "photos" ], "col_set": [ "*", "id", "name", "height", "prominence", "range", "country", "brand", "focal length mm", "max aperture", "camera lens id", "mountain id", "color" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 7, "7": 7, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "average", "prominence", "of", "the", "mountains", "in", "country", "'Morocco", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "prominence" ], [ "of" ], [ "mountain" ], [ "in" ], [ "country" ], [ "'" ], [ "morocco" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "prominence", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "in", "IN" ], [ "country", "NN" ], [ "'", "''" ], [ "morocco", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Morocco" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "mountain_photos", "query": "SELECT name , height , prominence FROM mountain WHERE range != 'Aberdare Range'", "query_toks": [ "SELECT", "name", ",", "height", ",", "prominence", "FROM", "mountain", "WHERE", "range", "!", "=", "'Aberdare", "Range", "'" ], "query_toks_no_value": [ "select", "name", ",", "height", ",", "prominence", "from", "mountain", "where", "range", "!", "=", "value" ], "question": "What are the name, height and prominence of mountains which do not belong to the range 'Aberdare Range'?", "question_toks": [ "what", "are", "name", ",", "height", "and", "prominence", "of", "mountain", "which", "do", "not", "belong", "to", "range", "'", "aberdare", "range", "'", "?" ], "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": [ [ false, 7, [ 0, [ 0, 5, false ], null ], "\"Aberdare Range\"", null ] ] }, "names": [ "*", "id", "name", "height", "prominence", "range", "country", "id", "brand", "name", "focal length mm", "max aperture", "id", "camera lens id", "mountain id", "color", "name" ], "table_names": [ "mountain", "camera lens", "photos" ], "col_set": [ "*", "id", "name", "height", "prominence", "range", "country", "brand", "focal length mm", "max aperture", "camera lens id", "mountain id", "color" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 7, "7": 7, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "name", ",", "height", "and", "prominence", "of", "mountains", "which", "do", "not", "belong", "to", "the", "range", "'Aberdare", "Range", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "height" ], [ "and" ], [ "prominence" ], [ "of" ], [ "mountain" ], [ "which" ], [ "do" ], [ "not" ], [ "belong" ], [ "to" ], [ "range" ], [ "'" ], [ "aberdare" ], [ "range" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "height", "JJ" ], [ "and", "CC" ], [ "prominence", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "which", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "belong", "VB" ], [ "to", "TO" ], [ "range", "VB" ], [ "'", "''" ], [ "aberdare", "JJ" ], [ "range", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Aberdare Range" ], "rule_label": "Root1(3) 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(3) A(0) C(5) T(0) V(0)" }, { "db_id": "mountain_photos", "query": "SELECT T1.id , T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.height > 4000", "query_toks": [ "SELECT", "T1.id", ",", "T1.name", "FROM", "mountain", "AS", "T1", "JOIN", "photos", "AS", "T2", "ON", "T1.id", "=", "T2.mountain_id", "WHERE", "T1.height", ">", "4000" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", "from", "mountain", "as", "t1", "join", "photos", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "mountain_id", "where", "t1", ".", "height", ">", "value" ], "question": "What are the id and name of the photos for mountains?", "question_toks": [ "what", "are", "id", "and", "name", "of", "photo", "for", "mountain", "?" ], "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, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 3, [ 0, [ 0, 3, false ], null ], 4000.0, null ] ] }, "names": [ "*", "id", "name", "height", "prominence", "range", "country", "id", "brand", "name", "focal length mm", "max aperture", "id", "camera lens id", "mountain id", "color", "name" ], "table_names": [ "mountain", "camera lens", "photos" ], "col_set": [ "*", "id", "name", "height", "prominence", "range", "country", "brand", "focal length mm", "max aperture", "camera lens id", "mountain id", "color" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 7, "7": 7, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "id", "and", "name", "of", "the", "photos", "for", "mountains", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "photo" ], [ "for" ], [ "mountain" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "photo", "NN" ], [ "for", "IN" ], [ "mountain", "NN" ], [ "?", "." ] ], "values": [ "4000" ], "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(5) A(0) C(3) T(0) V(0)" }, { "db_id": "mountain_photos", "query": "SELECT T1.id , T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id GROUP BY T1.id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.id", ",", "T1.name", "FROM", "mountain", "AS", "T1", "JOIN", "photos", "AS", "T2", "ON", "T1.id", "=", "T2.mountain_id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", "from", "mountain", "as", "t1", "join", "photos", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "mountain_id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the id and name of the mountains that have at least 2 photos?", "question_toks": [ "what", "are", "id", "and", "name", "of", "mountain", "that", "have", "at", "least", "2", "photo", "?" ], "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": [ [ 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, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "name", "height", "prominence", "range", "country", "id", "brand", "name", "focal length mm", "max aperture", "id", "camera lens id", "mountain id", "color", "name" ], "table_names": [ "mountain", "camera lens", "photos" ], "col_set": [ "*", "id", "name", "height", "prominence", "range", "country", "brand", "focal length mm", "max aperture", "camera lens id", "mountain id", "color" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 7, "7": 7, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "id", "and", "name", "of", "the", "mountains", "that", "have", "at", "least", "2", "photos", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "mountain" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "2" ], [ "photo" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "photo", "NN" ], [ "?", "." ] ], "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": "mountain_photos", "query": "SELECT T2.name FROM photos AS T1 JOIN camera_lens AS T2 ON T1.camera_lens_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", "FROM", "photos", "AS", "T1", "JOIN", "camera_lens", "AS", "T2", "ON", "T1.camera_lens_id", "=", "T2.id", "GROUP", "BY", "T2.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "photos", "as", "t1", "join", "camera_lens", "as", "t2", "on", "t1", ".", "camera_lens_id", "=", "t2", ".", "id", "group", "by", "t2", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the names of the cameras that have taken picture of the most mountains?", "question_toks": [ "what", "are", "name", "of", "camera", "that", "have", "taken", "picture", "of", "most", "mountain", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 7, 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, 7, 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", "height", "prominence", "range", "country", "id", "brand", "name", "focal length mm", "max aperture", "id", "camera lens id", "mountain id", "color", "name" ], "table_names": [ "mountain", "camera lens", "photos" ], "col_set": [ "*", "id", "name", "height", "prominence", "range", "country", "brand", "focal length mm", "max aperture", "camera lens id", "mountain id", "color" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 7, "7": 7, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "cameras", "that", "have", "taken", "picture", "of", "the", "most", "mountains", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "camera" ], [ "that" ], [ "have" ], [ "taken" ], [ "picture" ], [ "of" ], [ "most" ], [ "mountain" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "camera", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "taken", "VBN" ], [ "picture", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "mountain", "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(2) Filter(18) A(0) C(1) T(1) Root(5) Sel(0) N(0) A(0) C(10) T(2)" }, { "db_id": "mountain_photos", "query": "SELECT T1.name FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id = T1.id WHERE T1.brand = 'Sigma' OR T1.brand = 'Olympus'", "query_toks": [ "SELECT", "T1.name", "FROM", "camera_lens", "AS", "T1", "JOIN", "photos", "AS", "T2", "ON", "T2.camera_lens_id", "=", "T1.id", "WHERE", "T1.brand", "=", "'Sigma", "'", "OR", "T1.brand", "=", "'Olympus", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "camera_lens", "as", "t1", "join", "photos", "as", "t2", "on", "t2", ".", "camera_lens_id", "=", "t1", ".", "id", "where", "t1", ".", "brand", "=", "value", "or", "t1", ".", "brand", "=", "value" ], "question": "What are the names of photos taken with the lens brand 'Sigma' or 'Olympus'?", "question_toks": [ "what", "are", "name", "of", "photo", "taken", "with", "lens", "brand", "'", "sigma", "'", "or", "'", "olympus", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 7, 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, 8, [ 0, [ 0, 7, 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 ], "\"Sigma\"", null ], "or", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Olympus\"", null ] ] }, "names": [ "*", "id", "name", "height", "prominence", "range", "country", "id", "brand", "name", "focal length mm", "max aperture", "id", "camera lens id", "mountain id", "color", "name" ], "table_names": [ "mountain", "camera lens", "photos" ], "col_set": [ "*", "id", "name", "height", "prominence", "range", "country", "brand", "focal length mm", "max aperture", "camera lens id", "mountain id", "color" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 7, "7": 7, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "photos", "taken", "with", "the", "lens", "brand", "'Sigma", "'", "or", "'Olympus", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "photo" ], [ "taken" ], [ "with" ], [ "lens" ], [ "brand" ], [ "'" ], [ "sigma" ], [ "'" ], [ "or" ], [ "'" ], [ "olympus" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "photo", "NN" ], [ "taken", "VBN" ], [ "with", "IN" ], [ "lens", "JJ" ], [ "brand", "NN" ], [ "'", "''" ], [ "sigma", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "olympus", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Sigma", "Olympus" ], "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(1) Root(5) Sel(0) N(0) A(0) C(10) T(2) Filter(1) Filter(2) A(0) C(7) T(1) V(0) Filter(2) A(0) C(7) T(1) V(1)" }, { "db_id": "mountain_photos", "query": "SELECT count(DISTINCT brand) FROM camera_lens", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "brand", ")", "FROM", "camera_lens" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "brand", ")", "from", "camera_lens" ], "question": "How many different kinds of lens brands are there?", "question_toks": [ "how", "many", "different", "kind", "of", "lens", "brand", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 8, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "height", "prominence", "range", "country", "id", "brand", "name", "focal length mm", "max aperture", "id", "camera lens id", "mountain id", "color", "name" ], "table_names": [ "mountain", "camera lens", "photos" ], "col_set": [ "*", "id", "name", "height", "prominence", "range", "country", "brand", "focal length mm", "max aperture", "camera lens id", "mountain id", "color" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 7, "7": 7, "12": 12 }, "origin_question_toks": [ "How", "many", "different", "kinds", "of", "lens", "brands", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "kind" ], [ "of" ], [ "lens" ], [ "brand" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "kind", "NN" ], [ "of", "IN" ], [ "lens", "NNS" ], [ "brand", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(7) T(1)" }, { "db_id": "mountain_photos", "query": "SELECT count(*) FROM camera_lens WHERE id NOT IN ( SELECT camera_lens_id FROM photos )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "camera_lens", "WHERE", "id", "NOT", "IN", "(", "SELECT", "camera_lens_id", "FROM", "photos", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "camera_lens", "where", "id", "not", "in", "(", "select", "camera_lens_id", "from", "photos", ")" ], "question": "How many camera lenses are not used in taking any photos?", "question_toks": [ "how", "many", "camera", "lens", "are", "not", "used", "in", "taking", "any", "photo", "?" ], "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, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "id", "name", "height", "prominence", "range", "country", "id", "brand", "name", "focal length mm", "max aperture", "id", "camera lens id", "mountain id", "color", "name" ], "table_names": [ "mountain", "camera lens", "photos" ], "col_set": [ "*", "id", "name", "height", "prominence", "range", "country", "brand", "focal length mm", "max aperture", "camera lens id", "mountain id", "color" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 7, "7": 7, "12": 12 }, "origin_question_toks": [ "How", "many", "camera", "lenses", "are", "not", "used", "in", "taking", "any", "photos", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "camera", "lens" ], [ "are" ], [ "not" ], [ "used" ], [ "in" ], [ "taking" ], [ "any" ], [ "photo" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "camera", "NN" ], [ "lens", "NNS" ], [ "are", "VBP" ], [ "not", "RB" ], [ "used", "VBN" ], [ "in", "IN" ], [ "taking", "VBG" ], [ "any", "DT" ], [ "photo", "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": "mountain_photos", "query": "SELECT count(DISTINCT T2.camera_lens_id) FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.country = 'Ethiopia'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T2.camera_lens_id", ")", "FROM", "mountain", "AS", "T1", "JOIN", "photos", "AS", "T2", "ON", "T1.id", "=", "T2.mountain_id", "WHERE", "T1.country", "=", "'Ethiopia", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t2", ".", "camera_lens_id", ")", "from", "mountain", "as", "t1", "join", "photos", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "mountain_id", "where", "t1", ".", "country", "=", "value" ], "question": "How many distinct kinds of camera lenses are used to take photos of mountains in the country 'Ethiopia'?", "question_toks": [ "how", "many", "distinct", "kind", "of", "camera", "lens", "are", "used", "to", "take", "photo", "of", "mountain", "in", "country", "'", "ethiopia", "'", "?" ], "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, [ [ 3, [ 0, [ 0, 13, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Ethiopia\"", null ] ] }, "names": [ "*", "id", "name", "height", "prominence", "range", "country", "id", "brand", "name", "focal length mm", "max aperture", "id", "camera lens id", "mountain id", "color", "name" ], "table_names": [ "mountain", "camera lens", "photos" ], "col_set": [ "*", "id", "name", "height", "prominence", "range", "country", "brand", "focal length mm", "max aperture", "camera lens id", "mountain id", "color" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 7, "7": 7, "12": 12 }, "origin_question_toks": [ "How", "many", "distinct", "kinds", "of", "camera", "lenses", "are", "used", "to", "take", "photos", "of", "mountains", "in", "the", "country", "'Ethiopia", "'", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "kind" ], [ "of" ], [ "camera", "lens" ], [ "are" ], [ "used" ], [ "to" ], [ "take" ], [ "photo" ], [ "of" ], [ "mountain" ], [ "in" ], [ "country" ], [ "'" ], [ "ethiopia" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "kind", "NN" ], [ "of", "IN" ], [ "camera", "NN" ], [ "lens", "NNS" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "to", "TO" ], [ "take", "VB" ], [ "photo", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "in", "IN" ], [ "country", "NN" ], [ "'", "''" ], [ "ethiopia", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Ethiopia" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(10) T(2) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "mountain_photos", "query": "SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T1.range = 'Toubkal Atlas' INTERSECT SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T1.range = 'Lasta Massif'", "query_toks": [ "SELECT", "T3.brand", "FROM", "mountain", "AS", "T1", "JOIN", "photos", "AS", "T2", "ON", "T1.id", "=", "T2.mountain_id", "JOIN", "camera_lens", "AS", "T3", "ON", "T2.camera_lens_id", "=", "T3.id", "WHERE", "T1.range", "=", "'Toubkal", "Atlas", "'", "INTERSECT", "SELECT", "T3.brand", "FROM", "mountain", "AS", "T1", "JOIN", "photos", "AS", "T2", "ON", "T1.id", "=", "T2.mountain_id", "JOIN", "camera_lens", "AS", "T3", "ON", "T2.camera_lens_id", "=", "T3.id", "WHERE", "T1.range", "=", "'Lasta", "Massif", "'" ], "query_toks_no_value": [ "select", "t3", ".", "brand", "from", "mountain", "as", "t1", "join", "photos", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "mountain_id", "join", "camera_lens", "as", "t3", "on", "t2", ".", "camera_lens_id", "=", "t3", ".", "id", "where", "t1", ".", "range", "=", "value", "intersect", "select", "t3", ".", "brand", "from", "mountain", "as", "t1", "join", "photos", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "mountain_id", "join", "camera_lens", "as", "t3", "on", "t2", ".", "camera_lens_id", "=", "t3", ".", "id", "where", "t1", ".", "range", "=", "value" ], "question": "List the brands of lenses that took both a picture of mountains with range 'Toubkal Atlas' and a picture of mountains with range 'Lasta Massif'", "question_toks": [ "list", "brand", "of", "lens", "that", "took", "both", "a", "picture", "of", "mountain", "with", "range", "'", "toubkal", "atlas", "'", "and", "a", "picture", "of", "mountain", "with", "range", "'", "lasta", "massif", "'" ], "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": { "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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Lasta Massif\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Toubkal Atlas\"", null ] ] }, "names": [ "*", "id", "name", "height", "prominence", "range", "country", "id", "brand", "name", "focal length mm", "max aperture", "id", "camera lens id", "mountain id", "color", "name" ], "table_names": [ "mountain", "camera lens", "photos" ], "col_set": [ "*", "id", "name", "height", "prominence", "range", "country", "brand", "focal length mm", "max aperture", "camera lens id", "mountain id", "color" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 7, "7": 7, "12": 12 }, "origin_question_toks": [ "List", "the", "brands", "of", "lenses", "that", "took", "both", "a", "picture", "of", "mountains", "with", "range", "'Toubkal", "Atlas", "'", "and", "a", "picture", "of", "mountains", "with", "range", "'Lasta", "Massif", "'" ], "question_arg": [ [ "list" ], [ "brand" ], [ "of" ], [ "lens" ], [ "that" ], [ "took" ], [ "both" ], [ "a" ], [ "picture" ], [ "of" ], [ "mountain" ], [ "with" ], [ "range" ], [ "'" ], [ "toubkal" ], [ "atlas" ], [ "'" ], [ "and" ], [ "a" ], [ "picture" ], [ "of" ], [ "mountain" ], [ "with" ], [ "range" ], [ "'" ], [ "lasta" ], [ "massif" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "brand", "NN" ], [ "of", "IN" ], [ "lens", "NNS" ], [ "that", "WDT" ], [ "took", "VBD" ], [ "both", "DT" ], [ "a", "DT" ], [ "picture", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "with", "IN" ], [ "range", "NN" ], [ "'", "''" ], [ "toubkal", "JJ" ], [ "atlas", "NNS" ], [ "'", "POS" ], [ "and", "CC" ], [ "a", "DT" ], [ "picture", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "with", "IN" ], [ "range", "NN" ], [ "'", "''" ], [ "lasta", "JJ" ], [ "massif", "NN" ], [ "'", "''" ] ], "values": [ "Lasta Massif", "Toubkal Atlas" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) 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(5) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(7) T(1) 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(5) T(0) V(0)" }, { "db_id": "mountain_photos", "query": "SELECT name , prominence FROM mountain EXCEPT SELECT T1.name , T1.prominence FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T3.brand = 'Sigma'", "query_toks": [ "SELECT", "name", ",", "prominence", "FROM", "mountain", "EXCEPT", "SELECT", "T1.name", ",", "T1.prominence", "FROM", "mountain", "AS", "T1", "JOIN", "photos", "AS", "T2", "ON", "T1.id", "=", "T2.mountain_id", "JOIN", "camera_lens", "AS", "T3", "ON", "T2.camera_lens_id", "=", "T3.id", "WHERE", "T3.brand", "=", "'Sigma", "'" ], "query_toks_no_value": [ "select", "name", ",", "prominence", "from", "mountain", "except", "select", "t1", ".", "name", ",", "t1", ".", "prominence", "from", "mountain", "as", "t1", "join", "photos", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "mountain_id", "join", "camera_lens", "as", "t3", "on", "t2", ".", "camera_lens_id", "=", "t3", ".", "id", "where", "t3", ".", "brand", "=", "value" ], "question": "Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'.", "question_toks": [ "show", "name", "and", "prominence", "of", "mountain", "whose", "picture", "is", "not", "taken", "by", "a", "lens", "of", "brand", "'", "sigma", "'", "." ], "sql": { "except": { "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, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Sigma\"", 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": [] }, "names": [ "*", "id", "name", "height", "prominence", "range", "country", "id", "brand", "name", "focal length mm", "max aperture", "id", "camera lens id", "mountain id", "color", "name" ], "table_names": [ "mountain", "camera lens", "photos" ], "col_set": [ "*", "id", "name", "height", "prominence", "range", "country", "brand", "focal length mm", "max aperture", "camera lens id", "mountain id", "color" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 7, "7": 7, "12": 12 }, "origin_question_toks": [ "Show", "the", "name", "and", "prominence", "of", "the", "mountains", "whose", "picture", "is", "not", "taken", "by", "a", "lens", "of", "brand", "'Sigma", "'", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "prominence" ], [ "of" ], [ "mountain" ], [ "whose" ], [ "picture" ], [ "is" ], [ "not" ], [ "taken" ], [ "by" ], [ "a" ], [ "lens" ], [ "of" ], [ "brand" ], [ "'" ], [ "sigma" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "prominence", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "whose", "WP$" ], [ "picture", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "taken", "VBN" ], [ "by", "IN" ], [ "a", "DT" ], [ "lens", "NN" ], [ "of", "IN" ], [ "brand", "NN" ], [ "'", "''" ], [ "sigma", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Sigma" ], "rule_label": "Root1(2) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(4) T(0) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(4) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(11) T(2) Filter(2) A(0) C(7) T(1) V(0)" }, { "db_id": "mountain_photos", "query": "SELECT name FROM camera_lens WHERE name LIKE \"%Digital%\"", "query_toks": [ "SELECT", "name", "FROM", "camera_lens", "WHERE", "name", "LIKE", "``", "%", "Digital", "%", "''" ], "query_toks_no_value": [ "select", "name", "from", "camera_lens", "where", "name", "like", "value" ], "question": "List the camera lens names containing substring \"Digital\".", "question_toks": [ "list", "camera", "lens", "name", "containing", "substring", "'", "digital", "'", "." ], "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, 9, [ 0, [ 0, 9, false ], null ], "\"%Digital%\"", null ] ] }, "names": [ "*", "id", "name", "height", "prominence", "range", "country", "id", "brand", "name", "focal length mm", "max aperture", "id", "camera lens id", "mountain id", "color", "name" ], "table_names": [ "mountain", "camera lens", "photos" ], "col_set": [ "*", "id", "name", "height", "prominence", "range", "country", "brand", "focal length mm", "max aperture", "camera lens id", "mountain id", "color" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 7, "7": 7, "12": 12 }, "origin_question_toks": [ "List", "the", "camera", "lens", "names", "containing", "substring", "``", "Digital", "''", "." ], "question_arg": [ [ "list" ], [ "camera", "lens" ], [ "name" ], [ "containing" ], [ "substring" ], [ "'" ], [ "digital" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "camera", "NN" ], [ "lens", "VBZ" ], [ "name", "NN" ], [ "containing", "VBG" ], [ "substring", "VBG" ], [ "'", "''" ], [ "digital", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Digital" ], "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": "mountain_photos", "query": "SELECT T1.name , count(*) FROM camera_lens AS T1 JOIN photos AS T2 ON T1.id = T2.camera_lens_id GROUP BY T1.id ORDER BY count(*)", "query_toks": [ "SELECT", "T1.name", ",", "count", "(", "*", ")", "FROM", "camera_lens", "AS", "T1", "JOIN", "photos", "AS", "T2", "ON", "T1.id", "=", "T2.camera_lens_id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "camera_lens", "as", "t1", "join", "photos", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "camera_lens_id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")" ], "question": "What is the name of each camera lens and the number of photos taken by it? Order the result by the count of photos.", "question_toks": [ "what", "is", "name", "of", "each", "camera", "lens", "and", "number", "of", "photo", "taken", "by", "it", "?", "order", "result", "by", "count", "of", "photo", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "height", "prominence", "range", "country", "id", "brand", "name", "focal length mm", "max aperture", "id", "camera lens id", "mountain id", "color", "name" ], "table_names": [ "mountain", "camera lens", "photos" ], "col_set": [ "*", "id", "name", "height", "prominence", "range", "country", "brand", "focal length mm", "max aperture", "camera lens id", "mountain id", "color" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 7, "7": 7, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "each", "camera", "lens", "and", "the", "number", "of", "photos", "taken", "by", "it", "?", "Order", "the", "result", "by", "the", "count", "of", "photos", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "each" ], [ "camera", "lens" ], [ "and" ], [ "number" ], [ "of" ], [ "photo" ], [ "taken" ], [ "by" ], [ "it" ], [ "?" ], [ "order" ], [ "result" ], [ "by" ], [ "count" ], [ "of" ], [ "photo" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "camera", "NN" ], [ "lens", "VBZ" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "photo", "NN" ], [ "taken", "VBN" ], [ "by", "IN" ], [ "it", "PRP" ], [ "?", "." ], [ "order", "NN" ], [ "result", "NN" ], [ "by", "IN" ], [ "count", "NN" ], [ "of", "IN" ], [ "photo", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(1) A(3) C(0) T(2) Order(1) A(3) C(0) T(2)" }, { "db_id": "program_share", "query": "SELECT name FROM channel WHERE OWNER != 'CCTV'", "query_toks": [ "SELECT", "name", "FROM", "channel", "WHERE", "OWNER", "!", "=", "'CCTV", "'" ], "query_toks_no_value": [ "select", "name", "from", "channel", "where", "owner", "!", "=", "value" ], "question": "Find the names of channels that are not owned by CCTV.", "question_toks": [ "find", "name", "of", "channel", "that", "are", "not", "owned", "by", "cctv", "." ], "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, 8, false ], null ], "\"CCTV\"", null ] ] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "Find", "the", "names", "of", "channels", "that", "are", "not", "owned", "by", "CCTV", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "channel" ], [ "that" ], [ "are" ], [ "not" ], [ "owned" ], [ "by" ], [ "cctv" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "channel", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "owned", "VBN" ], [ "by", "IN" ], [ "cctv", "NN" ], [ ".", "." ] ], "values": [ "CCTV" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(3) A(0) C(5) T(1) V(0)" }, { "db_id": "program_share", "query": "SELECT name FROM channel WHERE OWNER != 'CCTV'", "query_toks": [ "SELECT", "name", "FROM", "channel", "WHERE", "OWNER", "!", "=", "'CCTV", "'" ], "query_toks_no_value": [ "select", "name", "from", "channel", "where", "owner", "!", "=", "value" ], "question": "Which channels are not owned by CCTV? Give me the channel names.", "question_toks": [ "which", "channel", "are", "not", "owned", "by", "cctv", "?", "give", "me", "channel", "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 ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 8, false ], null ], "\"CCTV\"", null ] ] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "Which", "channels", "are", "not", "owned", "by", "CCTV", "?", "Give", "me", "the", "channel", "names", "." ], "question_arg": [ [ "which" ], [ "channel" ], [ "are" ], [ "not" ], [ "owned" ], [ "by" ], [ "cctv" ], [ "?" ], [ "give" ], [ "me" ], [ "channel" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "channel", "NNS" ], [ "are", "VBP" ], [ "not", "RB" ], [ "owned", "VBN" ], [ "by", "IN" ], [ "cctv", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "channel", "VB" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "CCTV" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(3) A(0) C(5) T(1) V(0)" }, { "db_id": "program_share", "query": "SELECT name FROM channel ORDER BY rating_in_percent DESC", "query_toks": [ "SELECT", "name", "FROM", "channel", "ORDER", "BY", "rating_in_percent", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "channel", "order", "by", "rating_in_percent", "desc" ], "question": "List all channel names ordered by their rating in percent from big to small.", "question_toks": [ "list", "all", "channel", "name", "ordered", "by", "their", "rating", "in", "percent", "from", "big", "to", "small", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "List", "all", "channel", "names", "ordered", "by", "their", "rating", "in", "percent", "from", "big", "to", "small", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "channel" ], [ "name" ], [ "ordered" ], [ "by" ], [ "their" ], [ "rating", "in", "percent" ], [ "from" ], [ "big" ], [ "to" ], [ "small" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "channel", "NNS" ], [ "name", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "rating", "NN" ], [ "in", "IN" ], [ "percent", "NN" ], [ "from", "IN" ], [ "big", "JJ" ], [ "to", "TO" ], [ "small", "JJ" ], [ ".", "." ] ], "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": "program_share", "query": "SELECT name FROM channel ORDER BY rating_in_percent DESC", "query_toks": [ "SELECT", "name", "FROM", "channel", "ORDER", "BY", "rating_in_percent", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "channel", "order", "by", "rating_in_percent", "desc" ], "question": "Give me a list of all the channel names sorted by the channel rating in descending order.", "question_toks": [ "give", "me", "a", "list", "of", "all", "channel", "name", "sorted", "by", "channel", "rating", "in", "descending", "order", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "Give", "me", "a", "list", "of", "all", "the", "channel", "names", "sorted", "by", "the", "channel", "rating", "in", "descending", "order", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "a" ], [ "list" ], [ "of" ], [ "all" ], [ "channel" ], [ "name" ], [ "sorted" ], [ "by" ], [ "channel" ], [ "rating", "in", "percent" ], [ "descending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "a", "DT" ], [ "list", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "channel", "NNS" ], [ "name", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "channel", "NN" ], [ "rating", "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(8) T(1)" }, { "db_id": "program_share", "query": "SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1", "query_toks": [ "SELECT", "OWNER", "FROM", "channel", "ORDER", "BY", "rating_in_percent", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "owner", "from", "channel", "order", "by", "rating_in_percent", "desc", "limit", "value" ], "question": "What is the owner of the channel that has the highest rating ratio?", "question_toks": [ "what", "is", "owner", "of", "channel", "that", "ha", "highest", "rating", "ratio", "?" ], "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, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "owner", "of", "the", "channel", "that", "has", "the", "highest", "rating", "ratio", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "owner" ], [ "of" ], [ "channel" ], [ "that" ], [ "ha" ], [ "highest" ], [ "rating" ], [ "ratio" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "owner", "NN" ], [ "of", "IN" ], [ "channel", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "highest", "JJS" ], [ "rating", "NN" ], [ "ratio", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(1) Sup(0) A(0) C(8) T(1)" }, { "db_id": "program_share", "query": "SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1", "query_toks": [ "SELECT", "OWNER", "FROM", "channel", "ORDER", "BY", "rating_in_percent", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "owner", "from", "channel", "order", "by", "rating_in_percent", "desc", "limit", "value" ], "question": "Show me the owner of the channel with the highest rating.", "question_toks": [ "show", "me", "owner", "of", "channel", "with", "highest", "rating", "." ], "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, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "Show", "me", "the", "owner", "of", "the", "channel", "with", "the", "highest", "rating", "." ], "question_arg": [ [ "show" ], [ "me" ], [ "owner" ], [ "of" ], [ "channel" ], [ "with" ], [ "highest" ], [ "rating" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "me", "PRP" ], [ "owner", "NN" ], [ "of", "IN" ], [ "channel", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "rating", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(1) Sup(0) A(0) C(8) T(1)" }, { "db_id": "program_share", "query": "SELECT count(*) FROM program", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "program" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "program" ], "question": "how many programs are there?", "question_toks": [ "how", "many", "program", "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": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "how", "many", "programs", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "program" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "program", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "program_share", "query": "SELECT count(*) FROM program", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "program" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "program" ], "question": "Count the number of programs.", "question_toks": [ "count", "number", "of", "program", "." ], "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": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "Count", "the", "number", "of", "programs", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "program" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "program", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "program_share", "query": "SELECT name FROM program ORDER BY launch", "query_toks": [ "SELECT", "name", "FROM", "program", "ORDER", "BY", "launch" ], "query_toks_no_value": [ "select", "name", "from", "program", "order", "by", "launch" ], "question": "list all the names of programs, ordering by launch time.", "question_toks": [ "list", "all", "name", "of", "program", ",", "ordering", "by", "launch", "time", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "list", "all", "the", "names", "of", "programs", ",", "ordering", "by", "launch", "time", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "name" ], [ "of" ], [ "program" ], [ "," ], [ "ordering" ], [ "by" ], [ "launch" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "name", "NN" ], [ "of", "IN" ], [ "program", "NN" ], [ ",", "," ], [ "ordering", "VBG" ], [ "by", "IN" ], [ "launch", "JJ" ], [ "time", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(4) T(0)" }, { "db_id": "program_share", "query": "SELECT name FROM program ORDER BY launch", "query_toks": [ "SELECT", "name", "FROM", "program", "ORDER", "BY", "launch" ], "query_toks_no_value": [ "select", "name", "from", "program", "order", "by", "launch" ], "question": "What is the list of program names, sorted by the order of launch date?", "question_toks": [ "what", "is", "list", "of", "program", "name", ",", "sorted", "by", "order", "of", "launch", "date", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "list", "of", "program", "names", ",", "sorted", "by", "the", "order", "of", "launch", "date", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "list" ], [ "of" ], [ "program" ], [ "name" ], [ "," ], [ "sorted" ], [ "by" ], [ "order" ], [ "of" ], [ "launch" ], [ "date" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "list", "NN" ], [ "of", "IN" ], [ "program", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "launch", "NN" ], [ "date", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(4) T(0)" }, { "db_id": "program_share", "query": "SELECT name , origin , OWNER FROM program", "query_toks": [ "SELECT", "name", ",", "origin", ",", "OWNER", "FROM", "program" ], "query_toks_no_value": [ "select", "name", ",", "origin", ",", "owner", "from", "program" ], "question": "List the name, origin and owner of each program.", "question_toks": [ "list", "name", ",", "origin", "and", "owner", "of", "each", "program", "." ], "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, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "List", "the", "name", ",", "origin", "and", "owner", "of", "each", "program", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "," ], [ "origin" ], [ "and" ], [ "owner" ], [ "of" ], [ "each" ], [ "program" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "origin", "NN" ], [ "and", "CC" ], [ "owner", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "program", "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(5) T(0)" }, { "db_id": "program_share", "query": "SELECT name , origin , OWNER FROM program", "query_toks": [ "SELECT", "name", ",", "origin", ",", "OWNER", "FROM", "program" ], "query_toks_no_value": [ "select", "name", ",", "origin", ",", "owner", "from", "program" ], "question": "What are the name, origin and owner of each program?", "question_toks": [ "what", "are", "name", ",", "origin", "and", "owner", "of", "each", "program", "?" ], "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, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "name", ",", "origin", "and", "owner", "of", "each", "program", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "origin" ], [ "and" ], [ "owner" ], [ "of" ], [ "each" ], [ "program" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "origin", "JJ" ], [ "and", "CC" ], [ "owner", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "program", "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(5) T(0)" }, { "db_id": "program_share", "query": "SELECT name FROM program ORDER BY launch DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "program", "ORDER", "BY", "launch", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "program", "order", "by", "launch", "desc", "limit", "value" ], "question": "find the name of the program that was launched most recently.", "question_toks": [ "find", "name", "of", "program", "that", "wa", "launched", "most", "recently", "." ], "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": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "find", "the", "name", "of", "the", "program", "that", "was", "launched", "most", "recently", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "program" ], [ "that" ], [ "wa" ], [ "launched" ], [ "most" ], [ "recently" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "program", "NN" ], [ "that", "WDT" ], [ "wa", "VBZ" ], [ "launched", "VBN" ], [ "most", "RBS" ], [ "recently", "RB" ], [ ".", "." ] ], "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": "program_share", "query": "SELECT name FROM program ORDER BY launch DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "program", "ORDER", "BY", "launch", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "program", "order", "by", "launch", "desc", "limit", "value" ], "question": "Which program was launched most recently? Return the program name.", "question_toks": [ "which", "program", "wa", "launched", "most", "recently", "?", "return", "program", "name", "." ], "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": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "Which", "program", "was", "launched", "most", "recently", "?", "Return", "the", "program", "name", "." ], "question_arg": [ [ "which" ], [ "program" ], [ "wa" ], [ "launched" ], [ "most" ], [ "recently" ], [ "?" ], [ "return" ], [ "program" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "program", "NN" ], [ "wa", "NN" ], [ "launched", "VBD" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "?", "." ], [ "return", "NN" ], [ "program", "NN" ], [ "name", "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": "program_share", "query": "SELECT sum(Share_in_percent) FROM channel WHERE OWNER = 'CCTV'", "query_toks": [ "SELECT", "sum", "(", "Share_in_percent", ")", "FROM", "channel", "WHERE", "OWNER", "=", "'CCTV", "'" ], "query_toks_no_value": [ "select", "sum", "(", "share_in_percent", ")", "from", "channel", "where", "owner", "=", "value" ], "question": "find the total percentage share of all channels owned by CCTV.", "question_toks": [ "find", "total", "percentage", "share", "of", "all", "channel", "owned", "by", "cctv", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"CCTV\"", null ] ] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "find", "the", "total", "percentage", "share", "of", "all", "channels", "owned", "by", "CCTV", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "percentage" ], [ "share" ], [ "of" ], [ "all" ], [ "channel" ], [ "owned" ], [ "by" ], [ "cctv" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "percentage", "NN" ], [ "share", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "channel", "NNS" ], [ "owned", "VBN" ], [ "by", "IN" ], [ "cctv", "NN" ], [ ".", "." ] ], "values": [ "CCTV" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(7) T(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "program_share", "query": "SELECT sum(Share_in_percent) FROM channel WHERE OWNER = 'CCTV'", "query_toks": [ "SELECT", "sum", "(", "Share_in_percent", ")", "FROM", "channel", "WHERE", "OWNER", "=", "'CCTV", "'" ], "query_toks_no_value": [ "select", "sum", "(", "share_in_percent", ")", "from", "channel", "where", "owner", "=", "value" ], "question": "What is the total share (in percent) of all the channels owned by CCTV?", "question_toks": [ "what", "is", "total", "share", "(", "in", "percent", ")", "of", "all", "channel", "owned", "by", "cctv", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"CCTV\"", null ] ] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "total", "share", "(", "in", "percent", ")", "of", "all", "the", "channels", "owned", "by", "CCTV", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "share" ], [ "(" ], [ "in" ], [ "percent" ], [ ")" ], [ "of" ], [ "all" ], [ "channel" ], [ "owned" ], [ "by" ], [ "cctv" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "share", "NN" ], [ "(", "(" ], [ "in", "IN" ], [ "percent", "NN" ], [ ")", ")" ], [ "of", "IN" ], [ "all", "DT" ], [ "channel", "NNS" ], [ "owned", "VBN" ], [ "by", "IN" ], [ "cctv", "NN" ], [ "?", "." ] ], "values": [ "CCTV" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(7) T(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "program_share", "query": "SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning'", "query_toks": [ "SELECT", "t1.name", "FROM", "channel", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.channel_id", "=", "t2.channel_id", "WHERE", "t2.time_of_day", "=", "'Morning", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "channel", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "channel_id", "=", "t2", ".", "channel_id", "where", "t2", ".", "time_of_day", "=", "value" ], "question": "Find the names of the channels that are broadcast in the morning.", "question_toks": [ "find", "name", "of", "channel", "that", "are", "broadcast", "in", "morning", "." ], "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": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Morning\"", null ] ] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "channels", "that", "are", "broadcast", "in", "the", "morning", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "channel" ], [ "that" ], [ "are" ], [ "broadcast" ], [ "in" ], [ "morning" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "channel", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "broadcast", "VBN" ], [ "in", "IN" ], [ "morning", "NN" ], [ ".", "." ] ], "values": [ "Morning" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "program_share", "query": "SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning'", "query_toks": [ "SELECT", "t1.name", "FROM", "channel", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.channel_id", "=", "t2.channel_id", "WHERE", "t2.time_of_day", "=", "'Morning", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "channel", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "channel_id", "=", "t2", ".", "channel_id", "where", "t2", ".", "time_of_day", "=", "value" ], "question": "Which channels are broadcast in the morning? Give me the channel names.", "question_toks": [ "which", "channel", "are", "broadcast", "in", "morning", "?", "give", "me", "channel", "name", "." ], "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": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Morning\"", null ] ] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "Which", "channels", "are", "broadcast", "in", "the", "morning", "?", "Give", "me", "the", "channel", "names", "." ], "question_arg": [ [ "which" ], [ "channel" ], [ "are" ], [ "broadcast" ], [ "in" ], [ "morning" ], [ "?" ], [ "give" ], [ "me" ], [ "channel" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "channel", "NN" ], [ "are", "VBP" ], [ "broadcast", "VBN" ], [ "in", "IN" ], [ "morning", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "channel", "VB" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Morning" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "program_share", "query": "SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Night'", "query_toks": [ "SELECT", "t1.name", "FROM", "channel", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.channel_id", "=", "t2.channel_id", "WHERE", "t2.time_of_day", "=", "'Morning", "'", "INTERSECT", "SELECT", "t1.name", "FROM", "channel", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.channel_id", "=", "t2.channel_id", "WHERE", "t2.time_of_day", "=", "'Night", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "channel", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "channel_id", "=", "t2", ".", "channel_id", "where", "t2", ".", "time_of_day", "=", "value", "intersect", "select", "t1", ".", "name", "from", "channel", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "channel_id", "=", "t2", ".", "channel_id", "where", "t2", ".", "time_of_day", "=", "value" ], "question": "what are the names of the channels that broadcast in both morning and night?", "question_toks": [ "what", "are", "name", "of", "channel", "that", "broadcast", "in", "both", "morning", "and", "night", "?" ], "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": [], "having": [], "intersect": { "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, 13, false ], null ], "\"Night\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Morning\"", null ] ] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "what", "are", "the", "names", "of", "the", "channels", "that", "broadcast", "in", "both", "morning", "and", "night", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "channel" ], [ "that" ], [ "broadcast" ], [ "in" ], [ "both" ], [ "morning" ], [ "and" ], [ "night" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "channel", "NN" ], [ "that", "IN" ], [ "broadcast", "NN" ], [ "in", "IN" ], [ "both", "DT" ], [ "morning", "NN" ], [ "and", "CC" ], [ "night", "NN" ], [ "?", "." ] ], "values": [ "Morning", "Night" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(9) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(9) T(2) V(1)" }, { "db_id": "program_share", "query": "SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Night'", "query_toks": [ "SELECT", "t1.name", "FROM", "channel", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.channel_id", "=", "t2.channel_id", "WHERE", "t2.time_of_day", "=", "'Morning", "'", "INTERSECT", "SELECT", "t1.name", "FROM", "channel", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.channel_id", "=", "t2.channel_id", "WHERE", "t2.time_of_day", "=", "'Night", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "channel", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "channel_id", "=", "t2", ".", "channel_id", "where", "t2", ".", "time_of_day", "=", "value", "intersect", "select", "t1", ".", "name", "from", "channel", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "channel_id", "=", "t2", ".", "channel_id", "where", "t2", ".", "time_of_day", "=", "value" ], "question": "Which channels broadcast both in the morning and at night? Give me the channel names.", "question_toks": [ "which", "channel", "broadcast", "both", "in", "morning", "and", "at", "night", "?", "give", "me", "channel", "name", "." ], "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": [], "having": [], "intersect": { "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, 13, false ], null ], "\"Night\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Morning\"", null ] ] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "Which", "channels", "broadcast", "both", "in", "the", "morning", "and", "at", "night", "?", "Give", "me", "the", "channel", "names", "." ], "question_arg": [ [ "which" ], [ "channel" ], [ "broadcast" ], [ "both" ], [ "in" ], [ "morning" ], [ "and" ], [ "at" ], [ "night" ], [ "?" ], [ "give" ], [ "me" ], [ "channel" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "channel", "NN" ], [ "broadcast", "NN" ], [ "both", "DT" ], [ "in", "IN" ], [ "morning", "NN" ], [ "and", "CC" ], [ "at", "IN" ], [ "night", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "channel", "VB" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Morning", "Night" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(9) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(9) T(2) V(1)" }, { "db_id": "program_share", "query": "SELECT count(*) , time_of_day FROM broadcast GROUP BY time_of_day", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "time_of_day", "FROM", "broadcast", "GROUP", "BY", "time_of_day" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "time_of_day", "from", "broadcast", "group", "by", "time_of_day" ], "question": "how many programs are broadcast in each time section of the day?", "question_toks": [ "how", "many", "program", "are", "broadcast", "in", "each", "time", "section", "of", "day", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "how", "many", "programs", "are", "broadcast", "in", "each", "time", "section", "of", "the", "day", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "program" ], [ "are" ], [ "broadcast" ], [ "in" ], [ "each" ], [ "time" ], [ "section" ], [ "time", "of", "day" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "program", "NN" ], [ "are", "VBP" ], [ "broadcast", "VBN" ], [ "in", "IN" ], [ "each", "DT" ], [ "time", "NN" ], [ "section", "NN" ], [ "of", "IN" ], [ "day", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(2) A(0) C(9) T(2)" }, { "db_id": "program_share", "query": "SELECT count(*) , time_of_day FROM broadcast GROUP BY time_of_day", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "time_of_day", "FROM", "broadcast", "GROUP", "BY", "time_of_day" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "time_of_day", "from", "broadcast", "group", "by", "time_of_day" ], "question": "Count the number of programs broadcast for each time section of a day.", "question_toks": [ "count", "number", "of", "program", "broadcast", "for", "each", "time", "section", "of", "a", "day", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "Count", "the", "number", "of", "programs", "broadcast", "for", "each", "time", "section", "of", "a", "day", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "program" ], [ "broadcast" ], [ "for" ], [ "each" ], [ "time" ], [ "section" ], [ "of" ], [ "a" ], [ "day" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "program", "NN" ], [ "broadcast", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "time", "NN" ], [ "section", "NN" ], [ "of", "IN" ], [ "a", "DT" ], [ "day", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(2) A(0) C(9) T(2)" }, { "db_id": "program_share", "query": "SELECT count(DISTINCT program_id) FROM broadcast WHERE time_of_day = 'Night'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "program_id", ")", "FROM", "broadcast", "WHERE", "time_of_day", "=", "'Night", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "program_id", ")", "from", "broadcast", "where", "time_of_day", "=", "value" ], "question": "find the number of different programs that are broadcast during night time.", "question_toks": [ "find", "number", "of", "different", "program", "that", "are", "broadcast", "during", "night", "time", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Night\"", null ] ] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "find", "the", "number", "of", "different", "programs", "that", "are", "broadcast", "during", "night", "time", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "different" ], [ "program" ], [ "that" ], [ "are" ], [ "broadcast" ], [ "during" ], [ "night" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "program", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "broadcast", "VBN" ], [ "during", "IN" ], [ "night", "NN" ], [ "time", "NN" ], [ ".", "." ] ], "values": [ "Night" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(1) T(2) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "program_share", "query": "SELECT count(DISTINCT program_id) FROM broadcast WHERE time_of_day = 'Night'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "program_id", ")", "FROM", "broadcast", "WHERE", "time_of_day", "=", "'Night", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "program_id", ")", "from", "broadcast", "where", "time_of_day", "=", "value" ], "question": "How many distinct programs are broadcast at \"Night\" time?", "question_toks": [ "how", "many", "distinct", "program", "are", "broadcast", "at", "'", "night", "'", "time", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Night\"", null ] ] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "How", "many", "distinct", "programs", "are", "broadcast", "at", "``", "Night", "''", "time", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "program" ], [ "are" ], [ "broadcast" ], [ "at" ], [ "'" ], [ "night" ], [ "'" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "time of day" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "program", "NN" ], [ "are", "VBP" ], [ "broadcast", "VBN" ], [ "at", "IN" ], [ "'", "''" ], [ "night", "NN" ], [ "'", "POS" ], [ "time", "NN" ], [ "?", "." ] ], "values": [ "Night" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(1) T(2) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "program_share", "query": "SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = \"Morning\"", "query_toks": [ "SELECT", "name", "FROM", "program", "EXCEPT", "SELECT", "t1.name", "FROM", "program", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.program_id", "=", "t2.program_id", "WHERE", "t2.Time_of_day", "=", "``", "Morning", "''" ], "query_toks_no_value": [ "select", "name", "from", "program", "except", "select", "t1", ".", "name", "from", "program", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "program_id", "=", "t2", ".", "program_id", "where", "t2", ".", "time_of_day", "=", "value" ], "question": "Find the names of programs that are never broadcasted in the morning.", "question_toks": [ "find", "name", "of", "program", "that", "are", "never", "broadcasted", "in", "morning", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Morning\"", 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": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "Find", "the", "names", "of", "programs", "that", "are", "never", "broadcasted", "in", "the", "morning", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "program" ], [ "that" ], [ "are" ], [ "never" ], [ "broadcasted" ], [ "in" ], [ "morning" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "program", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "never", "RB" ], [ "broadcasted", "VBN" ], [ "in", "IN" ], [ "morning", "NN" ], [ ".", "." ] ], "values": [ "Morning" ], "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(9) T(2) V(0)" }, { "db_id": "program_share", "query": "SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = \"Morning\"", "query_toks": [ "SELECT", "name", "FROM", "program", "EXCEPT", "SELECT", "t1.name", "FROM", "program", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.program_id", "=", "t2.program_id", "WHERE", "t2.Time_of_day", "=", "``", "Morning", "''" ], "query_toks_no_value": [ "select", "name", "from", "program", "except", "select", "t1", ".", "name", "from", "program", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "program_id", "=", "t2", ".", "program_id", "where", "t2", ".", "time_of_day", "=", "value" ], "question": "Which programs are never broadcasted in the morning? Give me the names of the programs.", "question_toks": [ "which", "program", "are", "never", "broadcasted", "in", "morning", "?", "give", "me", "name", "of", "program", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Morning\"", 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": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "Which", "programs", "are", "never", "broadcasted", "in", "the", "morning", "?", "Give", "me", "the", "names", "of", "the", "programs", "." ], "question_arg": [ [ "which" ], [ "program" ], [ "are" ], [ "never" ], [ "broadcasted" ], [ "in" ], [ "morning" ], [ "?" ], [ "give" ], [ "me" ], [ "name" ], [ "of" ], [ "program" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "program", "NN" ], [ "are", "VBP" ], [ "never", "RB" ], [ "broadcasted", "VBN" ], [ "in", "IN" ], [ "morning", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "of", "IN" ], [ "program", "NN" ], [ ".", "." ] ], "values": [ "Morning" ], "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(9) T(2) V(0)" }, { "db_id": "program_share", "query": "SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = \"Morning\" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = \"Night\"", "query_toks": [ "SELECT", "t1.owner", "FROM", "program", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.program_id", "=", "t2.program_id", "WHERE", "t2.Time_of_day", "=", "``", "Morning", "''", "INTERSECT", "SELECT", "t1.owner", "FROM", "program", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.program_id", "=", "t2.program_id", "WHERE", "t2.Time_of_day", "=", "``", "Night", "''" ], "query_toks_no_value": [ "select", "t1", ".", "owner", "from", "program", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "program_id", "=", "t2", ".", "program_id", "where", "t2", ".", "time_of_day", "=", "value", "intersect", "select", "t1", ".", "owner", "from", "program", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "program_id", "=", "t2", ".", "program_id", "where", "t2", ".", "time_of_day", "=", "value" ], "question": "find the program owners that have some programs in both morning and night time.", "question_toks": [ "find", "program", "owner", "that", "have", "some", "program", "in", "both", "morning", "and", "night", "time", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, 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, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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, 13, false ], null ], "\"Night\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Morning\"", null ] ] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "find", "the", "program", "owners", "that", "have", "some", "programs", "in", "both", "morning", "and", "night", "time", "." ], "question_arg": [ [ "find" ], [ "program" ], [ "owner" ], [ "that" ], [ "have" ], [ "some" ], [ "program" ], [ "in" ], [ "both" ], [ "morning" ], [ "and" ], [ "night" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "program", "NN" ], [ "owner", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "some", "DT" ], [ "program", "NN" ], [ "in", "IN" ], [ "both", "DT" ], [ "morning", "NN" ], [ "and", "CC" ], [ "night", "NN" ], [ "time", "NN" ], [ ".", "." ] ], "values": [ "Morning", "Night" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(2) A(0) C(9) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(2) A(0) C(9) T(2) V(1)" }, { "db_id": "program_share", "query": "SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = \"Morning\" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = \"Night\"", "query_toks": [ "SELECT", "t1.owner", "FROM", "program", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.program_id", "=", "t2.program_id", "WHERE", "t2.Time_of_day", "=", "``", "Morning", "''", "INTERSECT", "SELECT", "t1.owner", "FROM", "program", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.program_id", "=", "t2.program_id", "WHERE", "t2.Time_of_day", "=", "``", "Night", "''" ], "query_toks_no_value": [ "select", "t1", ".", "owner", "from", "program", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "program_id", "=", "t2", ".", "program_id", "where", "t2", ".", "time_of_day", "=", "value", "intersect", "select", "t1", ".", "owner", "from", "program", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "program_id", "=", "t2", ".", "program_id", "where", "t2", ".", "time_of_day", "=", "value" ], "question": "Who are the owners of the programs that broadcast both in the morning and at night?", "question_toks": [ "who", "are", "owner", "of", "program", "that", "broadcast", "both", "in", "morning", "and", "at", "night", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, 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, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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, 13, false ], null ], "\"Night\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Morning\"", null ] ] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "Who", "are", "the", "owners", "of", "the", "programs", "that", "broadcast", "both", "in", "the", "morning", "and", "at", "night", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "owner" ], [ "of" ], [ "program" ], [ "that" ], [ "broadcast" ], [ "both" ], [ "in" ], [ "morning" ], [ "and" ], [ "at" ], [ "night" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "owner", "NN" ], [ "of", "IN" ], [ "program", "NN" ], [ "that", "IN" ], [ "broadcast", "VBD" ], [ "both", "DT" ], [ "in", "IN" ], [ "morning", "NN" ], [ "and", "CC" ], [ "at", "IN" ], [ "night", "NN" ], [ "?", "." ] ], "values": [ "Morning", "Night" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(2) A(0) C(9) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(2) A(0) C(9) T(2) V(1)" }, { "db_id": "program_share", "query": "SELECT origin FROM program ORDER BY origin", "query_toks": [ "SELECT", "origin", "FROM", "program", "ORDER", "BY", "origin" ], "query_toks_no_value": [ "select", "origin", "from", "program", "order", "by", "origin" ], "question": "List all program origins in the alphabetical order.", "question_toks": [ "list", "all", "program", "origin", "in", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "List", "all", "program", "origins", "in", "the", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "program" ], [ "origin" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "program", "NN" ], [ "origin", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(1) A(0) C(3) T(0)" }, { "db_id": "program_share", "query": "SELECT origin FROM program ORDER BY origin", "query_toks": [ "SELECT", "origin", "FROM", "program", "ORDER", "BY", "origin" ], "query_toks_no_value": [ "select", "origin", "from", "program", "order", "by", "origin" ], "question": "What is the list of program origins ordered alphabetically?", "question_toks": [ "what", "is", "list", "of", "program", "origin", "ordered", "alphabetically", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "list", "of", "program", "origins", "ordered", "alphabetically", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "list" ], [ "of" ], [ "program" ], [ "origin" ], [ "ordered" ], [ "alphabetically" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "list", "NN" ], [ "of", "IN" ], [ "program", "NN" ], [ "origin", "NN" ], [ "ordered", "VBD" ], [ "alphabetically", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(1) A(0) C(3) T(0)" }, { "db_id": "program_share", "query": "SELECT count(DISTINCT OWNER) FROM channel", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "OWNER", ")", "FROM", "channel" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "owner", ")", "from", "channel" ], "question": "what is the number of different channel owners?", "question_toks": [ "what", "is", "number", "of", "different", "channel", "owner", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 8, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "what", "is", "the", "number", "of", "different", "channel", "owners", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "different" ], [ "channel" ], [ "owner" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "channel", "NN" ], [ "owner", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(5) T(1)" }, { "db_id": "program_share", "query": "SELECT count(DISTINCT OWNER) FROM channel", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "OWNER", ")", "FROM", "channel" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "owner", ")", "from", "channel" ], "question": "Count the number of distinct channel owners.", "question_toks": [ "count", "number", "of", "distinct", "channel", "owner", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 8, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "Count", "the", "number", "of", "distinct", "channel", "owners", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "distinct" ], [ "channel" ], [ "owner" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "channel", "NN" ], [ "owner", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(5) T(1)" }, { "db_id": "program_share", "query": "SELECT name FROM program WHERE origin != 'Beijing'", "query_toks": [ "SELECT", "name", "FROM", "program", "WHERE", "origin", "!", "=", "'Beijing", "'" ], "query_toks_no_value": [ "select", "name", "from", "program", "where", "origin", "!", "=", "value" ], "question": "find the names of programs whose origin is not in Beijing.", "question_toks": [ "find", "name", "of", "program", "whose", "origin", "is", "not", "in", "beijing", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 3, false ], null ], "\"Beijing\"", null ] ] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "find", "the", "names", "of", "programs", "whose", "origin", "is", "not", "in", "Beijing", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "program" ], [ "whose" ], [ "origin" ], [ "is" ], [ "not" ], [ "in" ], [ "beijing" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "program", "NN" ], [ "whose", "WP$" ], [ "origin", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "in", "IN" ], [ "beijing", "NN" ], [ ".", "." ] ], "values": [ "Beijing" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(3) A(0) C(3) T(0) V(0)" }, { "db_id": "program_share", "query": "SELECT name FROM program WHERE origin != 'Beijing'", "query_toks": [ "SELECT", "name", "FROM", "program", "WHERE", "origin", "!", "=", "'Beijing", "'" ], "query_toks_no_value": [ "select", "name", "from", "program", "where", "origin", "!", "=", "value" ], "question": "Which programs' origins are not \"Beijing\"? Give me the program names.", "question_toks": [ "which", "program", "'", "origin", "are", "not", "'", "beijing", "'", "?", "give", "me", "program", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 3, false ], null ], "\"Beijing\"", null ] ] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "Which", "programs", "'", "origins", "are", "not", "``", "Beijing", "''", "?", "Give", "me", "the", "program", "names", "." ], "question_arg": [ [ "which" ], [ "program" ], [ "'" ], [ "origin" ], [ "are" ], [ "not" ], [ "'" ], [ "beijing" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "program" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "program", "NN" ], [ "'", "''" ], [ "origin", "NNS" ], [ "are", "VBP" ], [ "not", "RB" ], [ "'", "''" ], [ "beijing", "VBG" ], [ "'", "''" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "program", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Beijing" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(3) A(0) C(3) T(0) V(0)" }, { "db_id": "program_share", "query": "SELECT name FROM channel WHERE OWNER = 'CCTV' OR OWNER = 'HBS'", "query_toks": [ "SELECT", "name", "FROM", "channel", "WHERE", "OWNER", "=", "'CCTV", "'", "OR", "OWNER", "=", "'HBS", "'" ], "query_toks_no_value": [ "select", "name", "from", "channel", "where", "owner", "=", "value", "or", "owner", "=", "value" ], "question": "What are the names of the channels owned by CCTV or HBS?", "question_toks": [ "what", "are", "name", "of", "channel", "owned", "by", "cctv", "or", "hb", "?" ], "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, 8, false ], null ], "\"CCTV\"", null ], "or", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"HBS\"", null ] ] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "channels", "owned", "by", "CCTV", "or", "HBS", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "channel" ], [ "owned" ], [ "by" ], [ "cctv" ], [ "or" ], [ "hb" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "channel", "NNS" ], [ "owned", "VBN" ], [ "by", "IN" ], [ "cctv", "NN" ], [ "or", "CC" ], [ "hb", "NN" ], [ "?", "." ] ], "values": [ "CCTV", "HBS" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(1) Filter(2) A(0) C(5) T(1) V(0) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "program_share", "query": "SELECT name FROM channel WHERE OWNER = 'CCTV' OR OWNER = 'HBS'", "query_toks": [ "SELECT", "name", "FROM", "channel", "WHERE", "OWNER", "=", "'CCTV", "'", "OR", "OWNER", "=", "'HBS", "'" ], "query_toks_no_value": [ "select", "name", "from", "channel", "where", "owner", "=", "value", "or", "owner", "=", "value" ], "question": "List the names of all the channels owned by either CCTV or HBS", "question_toks": [ "list", "name", "of", "all", "channel", "owned", "by", "either", "cctv", "or", "hb" ], "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, 8, false ], null ], "\"CCTV\"", null ], "or", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"HBS\"", null ] ] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "the", "channels", "owned", "by", "either", "CCTV", "or", "HBS" ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "channel" ], [ "owned" ], [ "by" ], [ "either" ], [ "cctv" ], [ "or" ], [ "hb" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "channel", "NNS" ], [ "owned", "VBN" ], [ "by", "IN" ], [ "either", "DT" ], [ "cctv", "NN" ], [ "or", "CC" ], [ "hb", "NN" ] ], "values": [ "CCTV", "HBS" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(1) Filter(2) A(0) C(5) T(1) V(0) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "program_share", "query": "SELECT sum(Rating_in_percent) , OWNER FROM channel GROUP BY OWNER", "query_toks": [ "SELECT", "sum", "(", "Rating_in_percent", ")", ",", "OWNER", "FROM", "channel", "GROUP", "BY", "OWNER" ], "query_toks_no_value": [ "select", "sum", "(", "rating_in_percent", ")", ",", "owner", "from", "channel", "group", "by", "owner" ], "question": "Find the total rating ratio for each channel owner.", "question_toks": [ "find", "total", "rating", "ratio", "for", "each", "channel", "owner", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "Find", "the", "total", "rating", "ratio", "for", "each", "channel", "owner", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "rating" ], [ "ratio" ], [ "for" ], [ "each" ], [ "channel" ], [ "owner" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "rating", "NN" ], [ "ratio", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "channel", "NN" ], [ "owner", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(8) T(1) A(0) C(5) T(1)" }, { "db_id": "program_share", "query": "SELECT sum(Rating_in_percent) , OWNER FROM channel GROUP BY OWNER", "query_toks": [ "SELECT", "sum", "(", "Rating_in_percent", ")", ",", "OWNER", "FROM", "channel", "GROUP", "BY", "OWNER" ], "query_toks_no_value": [ "select", "sum", "(", "rating_in_percent", ")", ",", "owner", "from", "channel", "group", "by", "owner" ], "question": "What is the total rating of channel for each channel owner?", "question_toks": [ "what", "is", "total", "rating", "of", "channel", "for", "each", "channel", "owner", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "total", "rating", "of", "channel", "for", "each", "channel", "owner", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "rating" ], [ "of" ], [ "channel" ], [ "for" ], [ "each" ], [ "channel" ], [ "owner" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "rating", "NN" ], [ "of", "IN" ], [ "channel", "NNS" ], [ "for", "IN" ], [ "each", "DT" ], [ "channel", "NN" ], [ "owner", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(8) T(1) A(0) C(5) T(1)" }, { "db_id": "program_share", "query": "SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id GROUP BY t2.program_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", "FROM", "program", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.program_id", "=", "t2.program_id", "GROUP", "BY", "t2.program_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "program", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "program_id", "=", "t2", ".", "program_id", "group", "by", "t2", ".", "program_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name of the program that is broadcast most frequently.", "question_toks": [ "find", "name", "of", "program", "that", "is", "broadcast", "most", "frequently", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 12, 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, 12, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "program", "that", "is", "broadcast", "most", "frequently", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "program" ], [ "that" ], [ "is" ], [ "broadcast" ], [ "most" ], [ "frequently" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "program", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "broadcast", "VBN" ], [ "most", "RBS" ], [ "frequently", "RB" ], [ ".", "." ] ], "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": "program_share", "query": "SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id GROUP BY t2.program_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", "FROM", "program", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.program_id", "=", "t2.program_id", "GROUP", "BY", "t2.program_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "program", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "program_id", "=", "t2", ".", "program_id", "group", "by", "t2", ".", "program_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which program is broadcast most frequently? Give me the program name.", "question_toks": [ "which", "program", "is", "broadcast", "most", "frequently", "?", "give", "me", "program", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 12, 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, 12, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "name", "owner", "share in percent", "rating in percent", "channel id", "program id", "time of day", "channel id", "program id", "date", "share in percent" ], "table_names": [ "program", "channel", "broadcast", "broadcast share" ], "col_set": [ "*", "program id", "name", "origin", "launch", "owner", "channel id", "share in percent", "rating in percent", "time of day", "date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6, "15": 1, "14": 14 }, "origin_question_toks": [ "Which", "program", "is", "broadcast", "most", "frequently", "?", "Give", "me", "the", "program", "name", "." ], "question_arg": [ [ "which" ], [ "program" ], [ "is" ], [ "broadcast" ], [ "most" ], [ "frequently" ], [ "?" ], [ "give" ], [ "me" ], [ "program" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "program", "NN" ], [ "is", "VBZ" ], [ "broadcast", "VBN" ], [ "most", "RBS" ], [ "frequently", "RB" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "program", "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(2) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "e_learning", "query": "SELECT count(*) FROM COURSES", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "COURSES" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "courses" ], "question": "How many courses are there in total?", "question_toks": [ "how", "many", "course", "are", "there", "in", "total", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "How", "many", "courses", "are", "there", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "course" ], [ "are" ], [ "there" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "course", "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(3)" }, { "db_id": "e_learning", "query": "SELECT count(*) FROM COURSES", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "COURSES" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "courses" ], "question": "Find the total number of courses offered.", "question_toks": [ "find", "total", "number", "of", "course", "offered", "." ], "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": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "total", "number", "of", "courses", "offered", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "number" ], [ "of" ], [ "course" ], [ "offered" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "offered", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "e_learning", "query": "SELECT course_description FROM COURSES WHERE course_name = \"database\"", "query_toks": [ "SELECT", "course_description", "FROM", "COURSES", "WHERE", "course_name", "=", "``", "database", "''" ], "query_toks_no_value": [ "select", "course_description", "from", "courses", "where", "course_name", "=", "value" ], "question": "What are the descriptions of the courses with name \"database\"?", "question_toks": [ "what", "are", "description", "of", "course", "with", "name", "'", "database", "'", "?" ], "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, 23, false ], null ], "\"database\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "descriptions", "of", "the", "courses", "with", "name", "``", "database", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "description" ], [ "of" ], [ "course" ], [ "with" ], [ "name" ], [ "'" ], [ "database" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "description", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "database", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "database" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(17) T(3) Filter(2) A(0) C(16) T(3) V(0)" }, { "db_id": "e_learning", "query": "SELECT course_description FROM COURSES WHERE course_name = \"database\"", "query_toks": [ "SELECT", "course_description", "FROM", "COURSES", "WHERE", "course_name", "=", "``", "database", "''" ], "query_toks_no_value": [ "select", "course_description", "from", "courses", "where", "course_name", "=", "value" ], "question": "Return the description for the courses named \"database\".", "question_toks": [ "return", "description", "for", "course", "named", "'", "database", "'", "." ], "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, 23, false ], null ], "\"database\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Return", "the", "description", "for", "the", "courses", "named", "``", "database", "''", "." ], "question_arg": [ [ "return" ], [ "description" ], [ "for" ], [ "course" ], [ "named" ], [ "'" ], [ "database" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "description", "NN" ], [ "for", "IN" ], [ "course", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "database", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "database" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(17) T(3) Filter(2) A(0) C(16) T(3) V(0)" }, { "db_id": "e_learning", "query": "SELECT address_line_1 FROM Course_Authors_and_Tutors WHERE personal_name = \"Cathrine\"", "query_toks": [ "SELECT", "address_line_1", "FROM", "Course_Authors_and_Tutors", "WHERE", "personal_name", "=", "``", "Cathrine", "''" ], "query_toks_no_value": [ "select", "address_line_1", "from", "course_authors_and_tutors", "where", "personal_name", "=", "value" ], "question": "What are the addresses of the course authors or tutors with personal name \"Cathrine\"", "question_toks": [ "what", "are", "address", "of", "course", "author", "or", "tutor", "with", "personal", "name", "'", "cathrine", "'" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Cathrine\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "addresses", "of", "the", "course", "authors", "or", "tutors", "with", "personal", "name", "``", "Cathrine", "''" ], "question_arg": [ [ "what" ], [ "are" ], [ "address" ], [ "of" ], [ "course" ], [ "author" ], [ "or" ], [ "tutor" ], [ "with" ], [ "personal", "name" ], [ "'" ], [ "cathrine" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "address", "JJ" ], [ "of", "IN" ], [ "course", "NN" ], [ "author", "NN" ], [ "or", "CC" ], [ "tutor", "NN" ], [ "with", "IN" ], [ "personal", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "cathrine", "NN" ], [ "'", "''" ] ], "values": [ "Cathrine" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "e_learning", "query": "SELECT address_line_1 FROM Course_Authors_and_Tutors WHERE personal_name = \"Cathrine\"", "query_toks": [ "SELECT", "address_line_1", "FROM", "Course_Authors_and_Tutors", "WHERE", "personal_name", "=", "``", "Cathrine", "''" ], "query_toks_no_value": [ "select", "address_line_1", "from", "course_authors_and_tutors", "where", "personal_name", "=", "value" ], "question": "Return the addresses of the course authors or tutors whose personal name is \"Cathrine\".", "question_toks": [ "return", "address", "of", "course", "author", "or", "tutor", "whose", "personal", "name", "is", "'", "cathrine", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Cathrine\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Return", "the", "addresses", "of", "the", "course", "authors", "or", "tutors", "whose", "personal", "name", "is", "``", "Cathrine", "''", "." ], "question_arg": [ [ "return" ], [ "address" ], [ "of" ], [ "course" ], [ "author" ], [ "or" ], [ "tutor" ], [ "whose" ], [ "personal", "name" ], [ "is" ], [ "'" ], [ "cathrine" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "address", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "author", "NN" ], [ "or", "CC" ], [ "tutor", "NN" ], [ "whose", "WP$" ], [ "personal", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "cathrine", "NN" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "Cathrine" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "e_learning", "query": "SELECT address_line_1 FROM Course_Authors_and_Tutors", "query_toks": [ "SELECT", "address_line_1", "FROM", "Course_Authors_and_Tutors" ], "query_toks_no_value": [ "select", "address_line_1", "from", "course_authors_and_tutors" ], "question": "List the addresses of all the course authors or tutors.", "question_toks": [ "list", "address", "of", "all", "course", "author", "or", "tutor", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "List", "the", "addresses", "of", "all", "the", "course", "authors", "or", "tutors", "." ], "question_arg": [ [ "list" ], [ "address" ], [ "of" ], [ "all" ], [ "course" ], [ "author" ], [ "or" ], [ "tutor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "address", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "course", "NN" ], [ "author", "NN" ], [ "or", "CC" ], [ "tutor", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(9) T(0)" }, { "db_id": "e_learning", "query": "SELECT address_line_1 FROM Course_Authors_and_Tutors", "query_toks": [ "SELECT", "address_line_1", "FROM", "Course_Authors_and_Tutors" ], "query_toks_no_value": [ "select", "address_line_1", "from", "course_authors_and_tutors" ], "question": "What is the address of each course author or tutor?", "question_toks": [ "what", "is", "address", "of", "each", "course", "author", "or", "tutor", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "is", "the", "address", "of", "each", "course", "author", "or", "tutor", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "address" ], [ "of" ], [ "each" ], [ "course" ], [ "author" ], [ "or" ], [ "tutor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "address", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "course", "NN" ], [ "author", "NN" ], [ "or", "CC" ], [ "tutor", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(9) T(0)" }, { "db_id": "e_learning", "query": "SELECT login_name , family_name FROM Course_Authors_and_Tutors", "query_toks": [ "SELECT", "login_name", ",", "family_name", "FROM", "Course_Authors_and_Tutors" ], "query_toks_no_value": [ "select", "login_name", ",", "family_name", "from", "course_authors_and_tutors" ], "question": "List all the login names and family names of course author and tutors.", "question_toks": [ "list", "all", "login", "name", "and", "family", "name", "of", "course", "author", "and", "tutor", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "List", "all", "the", "login", "names", "and", "family", "names", "of", "course", "author", "and", "tutors", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "login", "name" ], [ "and" ], [ "family", "name" ], [ "of" ], [ "course", "author", "and", "tutor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "login", "VBP" ], [ "name", "NN" ], [ "and", "CC" ], [ "family", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "author", "NN" ], [ "and", "CC" ], [ "tutor", "NN" ], [ ".", "." ] ], "values": [ "Logan" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(0) C(7) T(0)" }, { "db_id": "e_learning", "query": "SELECT login_name , family_name FROM Course_Authors_and_Tutors", "query_toks": [ "SELECT", "login_name", ",", "family_name", "FROM", "Course_Authors_and_Tutors" ], "query_toks_no_value": [ "select", "login_name", ",", "family_name", "from", "course_authors_and_tutors" ], "question": "What are the login names and family names of course author and tutors?", "question_toks": [ "what", "are", "login", "name", "and", "family", "name", "of", "course", "author", "and", "tutor", "?" ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "login", "names", "and", "family", "names", "of", "course", "author", "and", "tutors", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "login", "name" ], [ "and" ], [ "family", "name" ], [ "of" ], [ "course", "author", "and", "tutor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "login", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "family", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "author", "NN" ], [ "and", "CC" ], [ "tutor", "NN" ], [ "?", "." ] ], "values": [ "Logan" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(0) C(7) T(0)" }, { "db_id": "e_learning", "query": "SELECT date_of_enrolment , date_of_completion FROM Student_Course_Enrolment", "query_toks": [ "SELECT", "date_of_enrolment", ",", "date_of_completion", "FROM", "Student_Course_Enrolment" ], "query_toks_no_value": [ "select", "date_of_enrolment", ",", "date_of_completion", "from", "student_course_enrolment" ], "question": "List all the dates of enrollment and completion of students.", "question_toks": [ "list", "all", "date", "of", "enrollment", "and", "completion", "of", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "List", "all", "the", "dates", "of", "enrollment", "and", "completion", "of", "students", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "date" ], [ "of" ], [ "enrollment" ], [ "and" ], [ "date", "of", "completion" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "date", "NN" ], [ "of", "IN" ], [ "enrollment", "NN" ], [ "and", "CC" ], [ "completion", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(19) T(4) A(0) C(20) T(4)" }, { "db_id": "e_learning", "query": "SELECT date_of_enrolment , date_of_completion FROM Student_Course_Enrolment", "query_toks": [ "SELECT", "date_of_enrolment", ",", "date_of_completion", "FROM", "Student_Course_Enrolment" ], "query_toks_no_value": [ "select", "date_of_enrolment", ",", "date_of_completion", "from", "student_course_enrolment" ], "question": "What are all the dates of enrollment and completion in record?", "question_toks": [ "what", "are", "all", "date", "of", "enrollment", "and", "completion", "in", "record", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "all", "the", "dates", "of", "enrollment", "and", "completion", "in", "record", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "date" ], [ "of" ], [ "enrollment" ], [ "and" ], [ "completion" ], [ "in" ], [ "record" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "date", "NN" ], [ "of", "IN" ], [ "enrollment", "NN" ], [ "and", "CC" ], [ "completion", "NN" ], [ "in", "IN" ], [ "record", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(19) T(4) A(0) C(20) T(4)" }, { "db_id": "e_learning", "query": "SELECT count(DISTINCT student_id) FROM Student_Course_Enrolment", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "student_id", ")", "FROM", "Student_Course_Enrolment" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "student_id", ")", "from", "student_course_enrolment" ], "question": "How many distinct students are enrolled in courses?", "question_toks": [ "how", "many", "distinct", "student", "are", "enrolled", "in", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 26, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "How", "many", "distinct", "students", "are", "enrolled", "in", "courses", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "student" ], [ "are" ], [ "enrolled" ], [ "in" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(10) T(4)" }, { "db_id": "e_learning", "query": "SELECT count(DISTINCT student_id) FROM Student_Course_Enrolment", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "student_id", ")", "FROM", "Student_Course_Enrolment" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "student_id", ")", "from", "student_course_enrolment" ], "question": "Find the number of distinct students enrolled in courses.", "question_toks": [ "find", "number", "of", "distinct", "student", "enrolled", "in", "course", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 26, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "number", "of", "distinct", "students", "enrolled", "in", "courses", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "distinct" ], [ "student" ], [ "enrolled" ], [ "in" ], [ "course" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "student", "NN" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "course", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(10) T(4)" }, { "db_id": "e_learning", "query": "SELECT count(course_id) FROM Student_Course_Enrolment", "query_toks": [ "SELECT", "count", "(", "course_id", ")", "FROM", "Student_Course_Enrolment" ], "query_toks_no_value": [ "select", "count", "(", "course_id", ")", "from", "student_course_enrolment" ], "question": "How many distinct courses are enrolled in by students?", "question_toks": [ "how", "many", "distinct", "course", "are", "enrolled", "in", "by", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "How", "many", "distinct", "courses", "are", "enrolled", "in", "by", "students", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "course" ], [ "are" ], [ "enrolled" ], [ "in" ], [ "by" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "course", "NN" ], [ "are", "VBP" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "by", "IN" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(15) T(4)" }, { "db_id": "e_learning", "query": "SELECT count(course_id) FROM Student_Course_Enrolment", "query_toks": [ "SELECT", "count", "(", "course_id", ")", "FROM", "Student_Course_Enrolment" ], "query_toks_no_value": [ "select", "count", "(", "course_id", ")", "from", "student_course_enrolment" ], "question": "Find the number of distinct courses that have enrolled students.", "question_toks": [ "find", "number", "of", "distinct", "course", "that", "have", "enrolled", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "number", "of", "distinct", "courses", "that", "have", "enrolled", "students", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "distinct" ], [ "course" ], [ "that" ], [ "have" ], [ "enrolled" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "course", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "enrolled", "VBN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(15) T(4)" }, { "db_id": "e_learning", "query": "SELECT date_test_taken FROM Student_Tests_Taken WHERE test_result = \"Pass\"", "query_toks": [ "SELECT", "date_test_taken", "FROM", "Student_Tests_Taken", "WHERE", "test_result", "=", "``", "Pass", "''" ], "query_toks_no_value": [ "select", "date_test_taken", "from", "student_tests_taken", "where", "test_result", "=", "value" ], "question": "Find the dates of the tests taken with result \"Pass\".", "question_toks": [ "find", "date", "of", "test", "taken", "with", "result", "'", "pas", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 32, false ], null ], "\"Pass\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "dates", "of", "the", "tests", "taken", "with", "result", "``", "Pass", "''", "." ], "question_arg": [ [ "find" ], [ "date" ], [ "of" ], [ "date", "test", "taken" ], [ "with" ], [ "result" ], [ "'" ], [ "pas" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "date", "NN" ], [ "of", "IN" ], [ "test", "NN" ], [ "taken", "VBN" ], [ "with", "IN" ], [ "result", "NN" ], [ "'", "''" ], [ "pas", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Pass" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(21) T(5) Filter(2) A(0) C(22) T(5) V(0)" }, { "db_id": "e_learning", "query": "SELECT date_test_taken FROM Student_Tests_Taken WHERE test_result = \"Pass\"", "query_toks": [ "SELECT", "date_test_taken", "FROM", "Student_Tests_Taken", "WHERE", "test_result", "=", "``", "Pass", "''" ], "query_toks_no_value": [ "select", "date_test_taken", "from", "student_tests_taken", "where", "test_result", "=", "value" ], "question": "Which tests have \"Pass\" results? Return the dates when the tests were taken.", "question_toks": [ "which", "test", "have", "'", "pas", "'", "result", "?", "return", "date", "when", "test", "were", "taken", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 32, false ], null ], "\"Pass\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Which", "tests", "have", "``", "Pass", "''", "results", "?", "Return", "the", "dates", "when", "the", "tests", "were", "taken", "." ], "question_arg": [ [ "which" ], [ "test" ], [ "have" ], [ "'" ], [ "pas" ], [ "'" ], [ "result" ], [ "?" ], [ "return" ], [ "date" ], [ "when" ], [ "test" ], [ "were" ], [ "taken" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "test", "NN" ], [ "have", "VBP" ], [ "'", "VBN" ], [ "pas", "NN" ], [ "'", "''" ], [ "result", "NN" ], [ "?", "." ], [ "return", "NN" ], [ "date", "NN" ], [ "when", "WRB" ], [ "test", "NN" ], [ "were", "VBD" ], [ "taken", "VBN" ], [ ".", "." ] ], "values": [ "Pass" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(21) T(5) Filter(2) A(0) C(22) T(5) V(0)" }, { "db_id": "e_learning", "query": "SELECT count(*) FROM Student_Tests_Taken WHERE test_result = \"Fail\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student_Tests_Taken", "WHERE", "test_result", "=", "``", "Fail", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student_tests_taken", "where", "test_result", "=", "value" ], "question": "How many tests have result \"Fail\"?", "question_toks": [ "how", "many", "test", "have", "result", "'", "fail", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 32, false ], null ], "\"Fail\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "How", "many", "tests", "have", "result", "``", "Fail", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "test" ], [ "have" ], [ "result" ], [ "'" ], [ "fail" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "test", "NN" ], [ "have", "VBP" ], [ "result", "NN" ], [ "'", "''" ], [ "fail", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Fail" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(22) T(5) V(0)" }, { "db_id": "e_learning", "query": "SELECT count(*) FROM Student_Tests_Taken WHERE test_result = \"Fail\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student_Tests_Taken", "WHERE", "test_result", "=", "``", "Fail", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student_tests_taken", "where", "test_result", "=", "value" ], "question": "Count the number of tests with \"Fail\" result.", "question_toks": [ "count", "number", "of", "test", "with", "'", "fail", "'", "result", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 32, false ], null ], "\"Fail\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Count", "the", "number", "of", "tests", "with", "``", "Fail", "''", "result", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "test" ], [ "with" ], [ "'" ], [ "fail" ], [ "'" ], [ "result" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "test", "NN" ], [ "with", "IN" ], [ "'", "''" ], [ "fail", "NN" ], [ "'", "POS" ], [ "result", "NN" ], [ ".", "." ] ], "values": [ "Fail" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(22) T(5) V(0)" }, { "db_id": "e_learning", "query": "SELECT login_name FROM Students WHERE family_name = \"Ward\"", "query_toks": [ "SELECT", "login_name", "FROM", "Students", "WHERE", "family_name", "=", "``", "Ward", "''" ], "query_toks_no_value": [ "select", "login_name", "from", "students", "where", "family_name", "=", "value" ], "question": "What are the login names of the students with family name \"Ward\"?", "question_toks": [ "what", "are", "login", "name", "of", "student", "with", "family", "name", "'", "ward", "'", "?" ], "sql": { "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, 2, [ 0, [ 0, 17, false ], null ], "\"Ward\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "login", "names", "of", "the", "students", "with", "family", "name", "``", "Ward", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "login", "name" ], [ "of" ], [ "student" ], [ "with" ], [ "family", "name" ], [ "'" ], [ "ward" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "login", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "family", "NN" ], [ "name", "NN" ], [ "'", "''" ], [ "ward", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Logan", "Ward" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(7) T(1) V(1)" }, { "db_id": "e_learning", "query": "SELECT login_name FROM Students WHERE family_name = \"Ward\"", "query_toks": [ "SELECT", "login_name", "FROM", "Students", "WHERE", "family_name", "=", "``", "Ward", "''" ], "query_toks_no_value": [ "select", "login_name", "from", "students", "where", "family_name", "=", "value" ], "question": "Return the login names of the students whose family name is \"Ward\".", "question_toks": [ "return", "login", "name", "of", "student", "whose", "family", "name", "is", "'", "ward", "'", "." ], "sql": { "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, 2, [ 0, [ 0, 17, false ], null ], "\"Ward\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Return", "the", "login", "names", "of", "the", "students", "whose", "family", "name", "is", "``", "Ward", "''", "." ], "question_arg": [ [ "return" ], [ "login", "name" ], [ "of" ], [ "student" ], [ "whose" ], [ "family", "name" ], [ "is" ], [ "'" ], [ "ward" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "login", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "family", "NN" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "ward", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Logan", "Ward" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(7) T(1) V(1)" }, { "db_id": "e_learning", "query": "SELECT date_of_latest_logon FROM Students WHERE family_name = \"Jaskolski\" OR family_name = \"Langosh\"", "query_toks": [ "SELECT", "date_of_latest_logon", "FROM", "Students", "WHERE", "family_name", "=", "``", "Jaskolski", "''", "OR", "family_name", "=", "``", "Langosh", "''" ], "query_toks_no_value": [ "select", "date_of_latest_logon", "from", "students", "where", "family_name", "=", "value", "or", "family_name", "=", "value" ], "question": "What are the dates of the latest logon of the students with family name \"Jaskolski\" or \"Langosh\"?", "question_toks": [ "what", "are", "date", "of", "latest", "logon", "of", "student", "with", "family", "name", "'", "jaskolski", "'", "or", "'", "langosh", "'", "?" ], "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, 17, false ], null ], "\"Jaskolski\"", null ], "or", [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Langosh\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "dates", "of", "the", "latest", "logon", "of", "the", "students", "with", "family", "name", "``", "Jaskolski", "''", "or", "``", "Langosh", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date", "of", "latest", "logon" ], [ "of" ], [ "student" ], [ "with" ], [ "family", "name" ], [ "'" ], [ "jaskolski" ], [ "'" ], [ "or" ], [ "'" ], [ "langosh" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "of", "IN" ], [ "latest", "JJS" ], [ "logon", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "family", "NN" ], [ "name", "NN" ], [ "'", "''" ], [ "jaskolski", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "langosh", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Logan", "Langosh", "Jaskolski" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(1) Filter(2) A(0) C(7) T(1) V(2) Filter(2) A(0) C(7) T(1) V(1)" }, { "db_id": "e_learning", "query": "SELECT date_of_latest_logon FROM Students WHERE family_name = \"Jaskolski\" OR family_name = \"Langosh\"", "query_toks": [ "SELECT", "date_of_latest_logon", "FROM", "Students", "WHERE", "family_name", "=", "``", "Jaskolski", "''", "OR", "family_name", "=", "``", "Langosh", "''" ], "query_toks_no_value": [ "select", "date_of_latest_logon", "from", "students", "where", "family_name", "=", "value", "or", "family_name", "=", "value" ], "question": "Find the latest logon date of the students whose family name is \"Jaskolski\" or \"Langosh\".", "question_toks": [ "find", "latest", "logon", "date", "of", "student", "whose", "family", "name", "is", "'", "jaskolski", "'", "or", "'", "langosh", "'", "." ], "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, 17, false ], null ], "\"Jaskolski\"", null ], "or", [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Langosh\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "latest", "logon", "date", "of", "the", "students", "whose", "family", "name", "is", "``", "Jaskolski", "''", "or", "``", "Langosh", "''", "." ], "question_arg": [ [ "find" ], [ "latest" ], [ "logon" ], [ "date" ], [ "of" ], [ "student" ], [ "whose" ], [ "family", "name" ], [ "is" ], [ "'" ], [ "jaskolski" ], [ "'" ], [ "or" ], [ "'" ], [ "langosh" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "latest", "JJS" ], [ "logon", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "family", "NN" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "jaskolski", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "langosh", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Langosh", "Jaskolski" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(1) Filter(2) A(0) C(7) T(1) V(1) Filter(2) A(0) C(7) T(1) V(0)" }, { "db_id": "e_learning", "query": "SELECT COUNT(*) FROM Students WHERE personal_name LIKE \"%son%\"", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "Students", "WHERE", "personal_name", "LIKE", "``", "%", "son", "%", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "students", "where", "personal_name", "like", "value" ], "question": "How many students have personal names that contain the word \"son\"?", "question_toks": [ "how", "many", "student", "have", "personal", "name", "that", "contain", "word", "'", "son", "'", "?" ], "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 ], "\"%son%\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "How", "many", "students", "have", "personal", "names", "that", "contain", "the", "word", "``", "son", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "have" ], [ "personal", "name" ], [ "that" ], [ "contain" ], [ "word" ], [ "'" ], [ "son" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "have", "VBP" ], [ "personal", "JJ" ], [ "name", "NN" ], [ "that", "WDT" ], [ "contain", "VBP" ], [ "word", "NN" ], [ "'", "''" ], [ "son", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "son", "Ward" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(9) A(0) C(5) T(1) V(0)" }, { "db_id": "e_learning", "query": "SELECT COUNT(*) FROM Students WHERE personal_name LIKE \"%son%\"", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "Students", "WHERE", "personal_name", "LIKE", "``", "%", "son", "%", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "students", "where", "personal_name", "like", "value" ], "question": "Find the number of students who have the word \"son\" in their personal names.", "question_toks": [ "find", "number", "of", "student", "who", "have", "word", "'", "son", "'", "in", "their", "personal", "name", "." ], "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 ], "\"%son%\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "number", "of", "students", "who", "have", "the", "word", "``", "son", "''", "in", "their", "personal", "names", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "word" ], [ "'" ], [ "son" ], [ "'" ], [ "in" ], [ "their" ], [ "personal", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "word", "NN" ], [ "'", "''" ], [ "son", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "personal", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "son", "Ward" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(9) A(0) C(5) T(1) V(0)" }, { "db_id": "e_learning", "query": "SELECT subject_name FROM SUBJECTS", "query_toks": [ "SELECT", "subject_name", "FROM", "SUBJECTS" ], "query_toks_no_value": [ "select", "subject_name", "from", "subjects" ], "question": "List all the subject names.", "question_toks": [ "list", "all", "subject", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "List", "all", "the", "subject", "names", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "subject", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "subject", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(14) T(2)" }, { "db_id": "e_learning", "query": "SELECT subject_name FROM SUBJECTS", "query_toks": [ "SELECT", "subject_name", "FROM", "SUBJECTS" ], "query_toks_no_value": [ "select", "subject_name", "from", "subjects" ], "question": "What are the names of all the subjects.", "question_toks": [ "what", "are", "name", "of", "all", "subject", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "subjects", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "subject" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "subject", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(14) T(2)" }, { "db_id": "e_learning", "query": "SELECT * FROM Course_Authors_and_Tutors ORDER BY personal_name", "query_toks": [ "SELECT", "*", "FROM", "Course_Authors_and_Tutors", "ORDER", "BY", "personal_name" ], "query_toks_no_value": [ "select", "*", "from", "course_authors_and_tutors", "order", "by", "personal_name" ], "question": "List all the information about course authors and tutors in alphabetical order of the personal name.", "question_toks": [ "list", "all", "information", "about", "course", "author", "and", "tutor", "in", "alphabetical", "order", "of", "personal", "name", "." ], "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, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "List", "all", "the", "information", "about", "course", "authors", "and", "tutors", "in", "alphabetical", "order", "of", "the", "personal", "name", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "information" ], [ "about" ], [ "course", "author", "and", "tutor" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "personal", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "course", "NN" ], [ "author", "NN" ], [ "and", "CC" ], [ "tutor", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "personal", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(0) T(0) Order(1) A(0) C(5) T(0)" }, { "db_id": "e_learning", "query": "SELECT * FROM Course_Authors_and_Tutors ORDER BY personal_name", "query_toks": [ "SELECT", "*", "FROM", "Course_Authors_and_Tutors", "ORDER", "BY", "personal_name" ], "query_toks_no_value": [ "select", "*", "from", "course_authors_and_tutors", "order", "by", "personal_name" ], "question": "Sort the information about course authors and tutors in alphabetical order of the personal name.", "question_toks": [ "sort", "information", "about", "course", "author", "and", "tutor", "in", "alphabetical", "order", "of", "personal", "name", "." ], "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, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Sort", "the", "information", "about", "course", "authors", "and", "tutors", "in", "alphabetical", "order", "of", "the", "personal", "name", "." ], "question_arg": [ [ "sort" ], [ "information" ], [ "about" ], [ "course", "author", "and", "tutor" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "personal", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "sort", "NN" ], [ "information", "NN" ], [ "about", "IN" ], [ "course", "NN" ], [ "author", "NN" ], [ "and", "CC" ], [ "tutor", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "personal", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(0) T(0) Order(1) A(0) C(5) T(0)" }, { "db_id": "e_learning", "query": "SELECT personal_name , family_name FROM Students ORDER BY family_name", "query_toks": [ "SELECT", "personal_name", ",", "family_name", "FROM", "Students", "ORDER", "BY", "family_name" ], "query_toks_no_value": [ "select", "personal_name", ",", "family_name", "from", "students", "order", "by", "family_name" ], "question": "List the personal names and family names of all the students in alphabetical order of family name.", "question_toks": [ "list", "personal", "name", "and", "family", "name", "of", "all", "student", "in", "alphabetical", "order", "of", "family", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 17, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "List", "the", "personal", "names", "and", "family", "names", "of", "all", "the", "students", "in", "alphabetical", "order", "of", "family", "name", "." ], "question_arg": [ [ "list" ], [ "personal", "name" ], [ "and" ], [ "family", "name" ], [ "of" ], [ "all" ], [ "student" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "family", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "personal", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "family", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "family", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(5) T(1) A(0) C(7) T(1) Order(1) A(0) C(7) T(1)" }, { "db_id": "e_learning", "query": "SELECT personal_name , family_name FROM Students ORDER BY family_name", "query_toks": [ "SELECT", "personal_name", ",", "family_name", "FROM", "Students", "ORDER", "BY", "family_name" ], "query_toks_no_value": [ "select", "personal_name", ",", "family_name", "from", "students", "order", "by", "family_name" ], "question": "What are the personal names and family names of the students? Sort the result in alphabetical order of the family name.", "question_toks": [ "what", "are", "personal", "name", "and", "family", "name", "of", "student", "?", "sort", "result", "in", "alphabetical", "order", "of", "family", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 17, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "personal", "names", "and", "family", "names", "of", "the", "students", "?", "Sort", "the", "result", "in", "alphabetical", "order", "of", "the", "family", "name", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "personal", "name" ], [ "and" ], [ "family", "name" ], [ "of" ], [ "student" ], [ "?" ], [ "sort" ], [ "result" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "family", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "personal", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "family", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "?", "." ], [ "sort", "NN" ], [ "result", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "family", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(5) T(1) A(0) C(7) T(1) Order(1) A(0) C(7) T(1)" }, { "db_id": "e_learning", "query": "SELECT test_result , COUNT(*) FROM Student_Tests_Taken GROUP BY test_result ORDER BY COUNT(*) DESC", "query_toks": [ "SELECT", "test_result", ",", "COUNT", "(", "*", ")", "FROM", "Student_Tests_Taken", "GROUP", "BY", "test_result", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "test_result", ",", "count", "(", "*", ")", "from", "student_tests_taken", "group", "by", "test_result", "order", "by", "count", "(", "*", ")", "desc" ], "question": "List each test result and its count in descending order of count.", "question_toks": [ "list", "each", "test", "result", "and", "it", "count", "in", "descending", "order", "of", "count", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 32, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "List", "each", "test", "result", "and", "its", "count", "in", "descending", "order", "of", "count", "." ], "question_arg": [ [ "list" ], [ "each" ], [ "test", "result" ], [ "and" ], [ "it" ], [ "count" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "each", "DT" ], [ "test", "NN" ], [ "result", "NN" ], [ "and", "CC" ], [ "it", "PRP" ], [ "count", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "count", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(22) T(5) A(3) C(0) T(5) Order(0) A(3) C(0) T(5)" }, { "db_id": "e_learning", "query": "SELECT test_result , COUNT(*) FROM Student_Tests_Taken GROUP BY test_result ORDER BY COUNT(*) DESC", "query_toks": [ "SELECT", "test_result", ",", "COUNT", "(", "*", ")", "FROM", "Student_Tests_Taken", "GROUP", "BY", "test_result", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "test_result", ",", "count", "(", "*", ")", "from", "student_tests_taken", "group", "by", "test_result", "order", "by", "count", "(", "*", ")", "desc" ], "question": "For each distinct test result, find the number of students who got the result.", "question_toks": [ "for", "each", "distinct", "test", "result", ",", "find", "number", "of", "student", "who", "got", "result", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 32, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "For", "each", "distinct", "test", "result", ",", "find", "the", "number", "of", "students", "who", "got", "the", "result", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "distinct" ], [ "test", "result" ], [ "," ], [ "find" ], [ "number" ], [ "of" ], [ "student" ], [ "who" ], [ "got" ], [ "result" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "distinct", "JJ" ], [ "test", "NN" ], [ "result", "NN" ], [ ",", "," ], [ "find", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "got", "VBD" ], [ "result", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(22) T(5) A(3) C(0) T(5) Order(0) A(3) C(0) T(5)" }, { "db_id": "e_learning", "query": "SELECT T1.login_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = \"advanced database\"", "query_toks": [ "SELECT", "T1.login_name", "FROM", "Course_Authors_and_Tutors", "AS", "T1", "JOIN", "Courses", "AS", "T2", "ON", "T1.author_id", "=", "T2.author_id", "WHERE", "T2.course_name", "=", "``", "advanced", "database", "''" ], "query_toks_no_value": [ "select", "t1", ".", "login_name", "from", "course_authors_and_tutors", "as", "t1", "join", "courses", "as", "t2", "on", "t1", ".", "author_id", "=", "t2", ".", "author_id", "where", "t2", ".", "course_name", "=", "value" ], "question": "Find the login name of the course author that teaches the course with name \"advanced database\".", "question_toks": [ "find", "login", "name", "of", "course", "author", "that", "teach", "course", "with", "name", "'", "advanced", "database", "'", "." ], "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": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"advanced database\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "login", "name", "of", "the", "course", "author", "that", "teaches", "the", "course", "with", "name", "``", "advanced", "database", "''", "." ], "question_arg": [ [ "find" ], [ "login", "name" ], [ "of" ], [ "course" ], [ "author" ], [ "that" ], [ "teach" ], [ "course" ], [ "with" ], [ "name" ], [ "'" ], [ "advanced" ], [ "database" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "login", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "author", "NN" ], [ "that", "IN" ], [ "teach", "VBZ" ], [ "course", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "advanced", "JJ" ], [ "database", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Logan", "advanced database", "database" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(16) T(3) V(1)" }, { "db_id": "e_learning", "query": "SELECT T1.login_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = \"advanced database\"", "query_toks": [ "SELECT", "T1.login_name", "FROM", "Course_Authors_and_Tutors", "AS", "T1", "JOIN", "Courses", "AS", "T2", "ON", "T1.author_id", "=", "T2.author_id", "WHERE", "T2.course_name", "=", "``", "advanced", "database", "''" ], "query_toks_no_value": [ "select", "t1", ".", "login_name", "from", "course_authors_and_tutors", "as", "t1", "join", "courses", "as", "t2", "on", "t1", ".", "author_id", "=", "t2", ".", "author_id", "where", "t2", ".", "course_name", "=", "value" ], "question": "Which course author teaches the \"advanced database\" course? Give me his or her login name.", "question_toks": [ "which", "course", "author", "teach", "'", "advanced", "database", "'", "course", "?", "give", "me", "his", "or", "her", "login", "name", "." ], "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": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"advanced database\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Which", "course", "author", "teaches", "the", "``", "advanced", "database", "''", "course", "?", "Give", "me", "his", "or", "her", "login", "name", "." ], "question_arg": [ [ "which" ], [ "course" ], [ "author" ], [ "teach" ], [ "'" ], [ "advanced" ], [ "database" ], [ "'" ], [ "course" ], [ "?" ], [ "give" ], [ "me" ], [ "his" ], [ "or" ], [ "her" ], [ "login", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "course", "NN" ], [ "author", "NN" ], [ "teach", "NN" ], [ "'", "''" ], [ "advanced", "JJ" ], [ "database", "NN" ], [ "'", "''" ], [ "course", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "his", "PRP$" ], [ "or", "CC" ], [ "her", "PRP$" ], [ "login", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Logan", "advanced database", "database" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(16) T(3) V(1)" }, { "db_id": "e_learning", "query": "SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = \"operating system\" OR T2.course_name = \"data structure\"", "query_toks": [ "SELECT", "T1.address_line_1", "FROM", "Course_Authors_and_Tutors", "AS", "T1", "JOIN", "Courses", "AS", "T2", "ON", "T1.author_id", "=", "T2.author_id", "WHERE", "T2.course_name", "=", "``", "operating", "system", "''", "OR", "T2.course_name", "=", "``", "data", "structure", "''" ], "query_toks_no_value": [ "select", "t1", ".", "address_line_1", "from", "course_authors_and_tutors", "as", "t1", "join", "courses", "as", "t2", "on", "t1", ".", "author_id", "=", "t2", ".", "author_id", "where", "t2", ".", "course_name", "=", "value", "or", "t2", ".", "course_name", "=", "value" ], "question": "Find the addresses of the course authors who teach the course with name \"operating system\" or \"data structure\".", "question_toks": [ "find", "address", "of", "course", "author", "who", "teach", "course", "with", "name", "'", "operating", "system", "'", "or", "'", "data", "structure", "'", "." ], "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": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"operating system\"", null ], "or", [ false, 2, [ 0, [ 0, 23, false ], null ], "\"data structure\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "addresses", "of", "the", "course", "authors", "who", "teach", "the", "course", "with", "name", "``", "operating", "system", "''", "or", "``", "data", "structure", "''", "." ], "question_arg": [ [ "find" ], [ "address" ], [ "of" ], [ "course" ], [ "author" ], [ "who" ], [ "teach" ], [ "course" ], [ "with" ], [ "name" ], [ "'" ], [ "operating" ], [ "system" ], [ "'" ], [ "or" ], [ "'" ], [ "data" ], [ "structure" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "address", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "author", "NN" ], [ "who", "WP" ], [ "teach", "VBP" ], [ "course", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "operating", "VBG" ], [ "system", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "data", "NNS" ], [ "structure", "NN" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "operating system", "data structure" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(0) Filter(1) Filter(2) A(0) C(16) T(3) V(0) Filter(2) A(0) C(16) T(3) V(1)" }, { "db_id": "e_learning", "query": "SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = \"operating system\" OR T2.course_name = \"data structure\"", "query_toks": [ "SELECT", "T1.address_line_1", "FROM", "Course_Authors_and_Tutors", "AS", "T1", "JOIN", "Courses", "AS", "T2", "ON", "T1.author_id", "=", "T2.author_id", "WHERE", "T2.course_name", "=", "``", "operating", "system", "''", "OR", "T2.course_name", "=", "``", "data", "structure", "''" ], "query_toks_no_value": [ "select", "t1", ".", "address_line_1", "from", "course_authors_and_tutors", "as", "t1", "join", "courses", "as", "t2", "on", "t1", ".", "author_id", "=", "t2", ".", "author_id", "where", "t2", ".", "course_name", "=", "value", "or", "t2", ".", "course_name", "=", "value" ], "question": "What are the addresses of the course authors who teach either \"operating system\" or \"data structure\" course.", "question_toks": [ "what", "are", "address", "of", "course", "author", "who", "teach", "either", "'", "operating", "system", "'", "or", "'", "data", "structure", "'", "course", "." ], "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": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"operating system\"", null ], "or", [ false, 2, [ 0, [ 0, 23, false ], null ], "\"data structure\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "addresses", "of", "the", "course", "authors", "who", "teach", "either", "``", "operating", "system", "''", "or", "``", "data", "structure", "''", "course", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "address" ], [ "of" ], [ "course" ], [ "author" ], [ "who" ], [ "teach" ], [ "either" ], [ "'" ], [ "operating" ], [ "system" ], [ "'" ], [ "or" ], [ "'" ], [ "data" ], [ "structure" ], [ "'" ], [ "course" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "address", "JJ" ], [ "of", "IN" ], [ "course", "NN" ], [ "author", "NN" ], [ "who", "WP" ], [ "teach", "VBP" ], [ "either", "DT" ], [ "'", "''" ], [ "operating", "NN" ], [ "system", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "data", "NNS" ], [ "structure", "NN" ], [ "'", "''" ], [ "course", "NN" ], [ ".", "." ] ], "values": [ "operating system", "data structure" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(0) Filter(1) Filter(2) A(0) C(16) T(3) V(0) Filter(2) A(0) C(16) T(3) V(1)" }, { "db_id": "e_learning", "query": "SELECT T1.personal_name , T1.family_name , T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.personal_name", ",", "T1.family_name", ",", "T2.author_id", "FROM", "Course_Authors_and_Tutors", "AS", "T1", "JOIN", "Courses", "AS", "T2", "ON", "T1.author_id", "=", "T2.author_id", "GROUP", "BY", "T2.author_id", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "personal_name", ",", "t1", ".", "family_name", ",", "t2", ".", "author_id", "from", "course_authors_and_tutors", "as", "t1", "join", "courses", "as", "t2", "on", "t1", ".", "author_id", "=", "t2", ".", "author_id", "group", "by", "t2", ".", "author_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the personal name, family name, and author ID of the course author that teaches the most courses.", "question_toks": [ "find", "personal", "name", ",", "family", "name", ",", "and", "author", "id", "of", "course", "author", "that", "teach", "most", "course", "." ], "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": [ [ 0, 21, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "personal", "name", ",", "family", "name", ",", "and", "author", "ID", "of", "the", "course", "author", "that", "teaches", "the", "most", "courses", "." ], "question_arg": [ [ "find" ], [ "personal", "name" ], [ "," ], [ "family", "name" ], [ "," ], [ "and" ], [ "author", "id" ], [ "of" ], [ "course" ], [ "author" ], [ "that" ], [ "teach" ], [ "most" ], [ "course" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "personal", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "family", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "author", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "author", "NN" ], [ "that", "WDT" ], [ "teach", "VBZ" ], [ "most", "RBS" ], [ "course", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(5) T(0) A(0) C(7) T(0) A(0) C(1) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "e_learning", "query": "SELECT T1.personal_name , T1.family_name , T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.personal_name", ",", "T1.family_name", ",", "T2.author_id", "FROM", "Course_Authors_and_Tutors", "AS", "T1", "JOIN", "Courses", "AS", "T2", "ON", "T1.author_id", "=", "T2.author_id", "GROUP", "BY", "T2.author_id", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "personal_name", ",", "t1", ".", "family_name", ",", "t2", ".", "author_id", "from", "course_authors_and_tutors", "as", "t1", "join", "courses", "as", "t2", "on", "t1", ".", "author_id", "=", "t2", ".", "author_id", "group", "by", "t2", ".", "author_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the personal name, family name, and author ID of the course author who teaches the most courses?", "question_toks": [ "what", "are", "personal", "name", ",", "family", "name", ",", "and", "author", "id", "of", "course", "author", "who", "teach", "most", "course", "?" ], "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": [ [ 0, 21, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "personal", "name", ",", "family", "name", ",", "and", "author", "ID", "of", "the", "course", "author", "who", "teaches", "the", "most", "courses", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "personal", "name" ], [ "," ], [ "family", "name" ], [ "," ], [ "and" ], [ "author", "id" ], [ "of" ], [ "course" ], [ "author" ], [ "who" ], [ "teach" ], [ "most" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "personal", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "family", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "author", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "author", "NN" ], [ "who", "WP" ], [ "teach", "VBP" ], [ "most", "RBS" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(5) T(0) A(0) C(7) T(0) A(0) C(1) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "e_learning", "query": "SELECT T1.address_line_1 , T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id HAVING Count(*) >= 2", "query_toks": [ "SELECT", "T1.address_line_1", ",", "T2.author_id", "FROM", "Course_Authors_and_Tutors", "AS", "T1", "JOIN", "Courses", "AS", "T2", "ON", "T1.author_id", "=", "T2.author_id", "GROUP", "BY", "T2.author_id", "HAVING", "Count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "address_line_1", ",", "t2", ".", "author_id", "from", "course_authors_and_tutors", "as", "t1", "join", "courses", "as", "t2", "on", "t1", ".", "author_id", "=", "t2", ".", "author_id", "group", "by", "t2", ".", "author_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Find the addresses and author IDs of the course authors that teach at least two courses.", "question_toks": [ "find", "address", "and", "author", "id", "of", "course", "author", "that", "teach", "at", "least", "two", "course", "." ], "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": [ [ 0, 21, 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 ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "addresses", "and", "author", "IDs", "of", "the", "course", "authors", "that", "teach", "at", "least", "two", "courses", "." ], "question_arg": [ [ "find" ], [ "address" ], [ "and" ], [ "author", "id" ], [ "of" ], [ "course" ], [ "author" ], [ "that" ], [ "teach" ], [ "at" ], [ "least" ], [ "two" ], [ "course" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "address", "NN" ], [ "and", "CC" ], [ "author", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "author", "NN" ], [ "that", "IN" ], [ "teach", "NN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "course", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(0) A(0) C(1) T(3) Filter(7) A(3) C(0) T(3) V(0)" }, { "db_id": "e_learning", "query": "SELECT T1.address_line_1 , T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id HAVING Count(*) >= 2", "query_toks": [ "SELECT", "T1.address_line_1", ",", "T2.author_id", "FROM", "Course_Authors_and_Tutors", "AS", "T1", "JOIN", "Courses", "AS", "T2", "ON", "T1.author_id", "=", "T2.author_id", "GROUP", "BY", "T2.author_id", "HAVING", "Count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "address_line_1", ",", "t2", ".", "author_id", "from", "course_authors_and_tutors", "as", "t1", "join", "courses", "as", "t2", "on", "t1", ".", "author_id", "=", "t2", ".", "author_id", "group", "by", "t2", ".", "author_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Which course authors teach two or more courses? Give me their addresses and author IDs.", "question_toks": [ "which", "course", "author", "teach", "two", "or", "more", "course", "?", "give", "me", "their", "address", "and", "author", "id", "." ], "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": [ [ 0, 21, 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 ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Which", "course", "authors", "teach", "two", "or", "more", "courses", "?", "Give", "me", "their", "addresses", "and", "author", "IDs", "." ], "question_arg": [ [ "which" ], [ "course" ], [ "author" ], [ "teach" ], [ "two" ], [ "or" ], [ "more" ], [ "course" ], [ "?" ], [ "give" ], [ "me" ], [ "their" ], [ "address" ], [ "and" ], [ "author", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "course", "NN" ], [ "author", "NN" ], [ "teach", "VBP" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "course", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "address", "NN" ], [ "and", "CC" ], [ "author", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(0) A(0) C(1) T(3) Filter(7) A(3) C(0) T(3) V(0)" }, { "db_id": "e_learning", "query": "SELECT T2.course_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T1.personal_name = \"Julio\"", "query_toks": [ "SELECT", "T2.course_name", "FROM", "Course_Authors_and_Tutors", "AS", "T1", "JOIN", "Courses", "AS", "T2", "ON", "T1.author_id", "=", "T2.author_id", "WHERE", "T1.personal_name", "=", "``", "Julio", "''" ], "query_toks_no_value": [ "select", "t2", ".", "course_name", "from", "course_authors_and_tutors", "as", "t1", "join", "courses", "as", "t2", "on", "t1", ".", "author_id", "=", "t2", ".", "author_id", "where", "t1", ".", "personal_name", "=", "value" ], "question": "Find the names of courses taught by the tutor who has personal name \"Julio\".", "question_toks": [ "find", "name", "of", "course", "taught", "by", "tutor", "who", "ha", "personal", "name", "'", "julio", "'", "." ], "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": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Julio\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "names", "of", "courses", "taught", "by", "the", "tutor", "who", "has", "personal", "name", "``", "Julio", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "course" ], [ "taught" ], [ "by" ], [ "tutor" ], [ "who" ], [ "ha" ], [ "personal", "name" ], [ "'" ], [ "julio" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "tutor", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "personal", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "julio", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Julio" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "e_learning", "query": "SELECT T2.course_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T1.personal_name = \"Julio\"", "query_toks": [ "SELECT", "T2.course_name", "FROM", "Course_Authors_and_Tutors", "AS", "T1", "JOIN", "Courses", "AS", "T2", "ON", "T1.author_id", "=", "T2.author_id", "WHERE", "T1.personal_name", "=", "``", "Julio", "''" ], "query_toks_no_value": [ "select", "t2", ".", "course_name", "from", "course_authors_and_tutors", "as", "t1", "join", "courses", "as", "t2", "on", "t1", ".", "author_id", "=", "t2", ".", "author_id", "where", "t1", ".", "personal_name", "=", "value" ], "question": "What are the names of the courses taught by the tutor whose personal name is \"Julio\"?", "question_toks": [ "what", "are", "name", "of", "course", "taught", "by", "tutor", "whose", "personal", "name", "is", "'", "julio", "'", "?" ], "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": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Julio\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "courses", "taught", "by", "the", "tutor", "whose", "personal", "name", "is", "``", "Julio", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "course" ], [ "taught" ], [ "by" ], [ "tutor" ], [ "whose" ], [ "personal", "name" ], [ "is" ], [ "'" ], [ "julio" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "tutor", "NN" ], [ "whose", "WP$" ], [ "personal", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "julio", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Julio" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "e_learning", "query": "SELECT T1.course_name , T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id WHERE T2.subject_name = \"Computer Science\"", "query_toks": [ "SELECT", "T1.course_name", ",", "T1.course_description", "FROM", "Courses", "AS", "T1", "JOIN", "Subjects", "AS", "T2", "ON", "T1.subject_id", "=", "T2.subject_id", "WHERE", "T2.subject_name", "=", "``", "Computer", "Science", "''" ], "query_toks_no_value": [ "select", "t1", ".", "course_name", ",", "t1", ".", "course_description", "from", "courses", "as", "t1", "join", "subjects", "as", "t2", "on", "t1", ".", "subject_id", "=", "t2", ".", "subject_id", "where", "t2", ".", "subject_name", "=", "value" ], "question": "Find the names and descriptions of courses that belong to the subject named \"Computer Science\".", "question_toks": [ "find", "name", "and", "description", "of", "course", "that", "belong", "to", "subject", "named", "'", "computer", "science", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "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, 19, false ], null ], "\"Computer Science\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "names", "and", "descriptions", "of", "courses", "that", "belong", "to", "the", "subject", "named", "``", "Computer", "Science", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "description" ], [ "of" ], [ "course" ], [ "that" ], [ "belong" ], [ "to" ], [ "subject" ], [ "named" ], [ "'" ], [ "computer" ], [ "science" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "belong", "VBP" ], [ "to", "TO" ], [ "subject", "VB" ], [ "named", "VBN" ], [ "'", "POS" ], [ "computer", "NN" ], [ "science", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Computer Science" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(3) A(0) C(17) T(3) Filter(2) A(0) C(14) T(2) V(0)" }, { "db_id": "e_learning", "query": "SELECT T1.course_name , T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id WHERE T2.subject_name = \"Computer Science\"", "query_toks": [ "SELECT", "T1.course_name", ",", "T1.course_description", "FROM", "Courses", "AS", "T1", "JOIN", "Subjects", "AS", "T2", "ON", "T1.subject_id", "=", "T2.subject_id", "WHERE", "T2.subject_name", "=", "``", "Computer", "Science", "''" ], "query_toks_no_value": [ "select", "t1", ".", "course_name", ",", "t1", ".", "course_description", "from", "courses", "as", "t1", "join", "subjects", "as", "t2", "on", "t1", ".", "subject_id", "=", "t2", ".", "subject_id", "where", "t2", ".", "subject_name", "=", "value" ], "question": "What are the names and descriptions of the all courses under the \"Computer Science\" subject?", "question_toks": [ "what", "are", "name", "and", "description", "of", "all", "course", "under", "'", "computer", "science", "'", "subject", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "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, 19, false ], null ], "\"Computer Science\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "descriptions", "of", "the", "all", "courses", "under", "the", "``", "Computer", "Science", "''", "subject", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "description" ], [ "of" ], [ "all" ], [ "course" ], [ "under" ], [ "'" ], [ "computer" ], [ "science" ], [ "'" ], [ "subject" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "course", "NN" ], [ "under", "IN" ], [ "'", "''" ], [ "computer", "NN" ], [ "science", "NN" ], [ "'", "''" ], [ "subject", "NN" ], [ "?", "." ] ], "values": [ "Computer Science" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(3) A(0) C(17) T(3) Filter(2) A(0) C(14) T(2) V(0)" }, { "db_id": "e_learning", "query": "SELECT T1.subject_id , T2.subject_name , COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id", "query_toks": [ "SELECT", "T1.subject_id", ",", "T2.subject_name", ",", "COUNT", "(", "*", ")", "FROM", "Courses", "AS", "T1", "JOIN", "Subjects", "AS", "T2", "ON", "T1.subject_id", "=", "T2.subject_id", "GROUP", "BY", "T1.subject_id" ], "query_toks_no_value": [ "select", "t1", ".", "subject_id", ",", "t2", ".", "subject_name", ",", "count", "(", "*", ")", "from", "courses", "as", "t1", "join", "subjects", "as", "t2", "on", "t1", ".", "subject_id", "=", "t2", ".", "subject_id", "group", "by", "t1", ".", "subject_id" ], "question": "Find the subject ID, subject name, and the corresponding number of available courses for each subject.", "question_toks": [ "find", "subject", "id", ",", "subject", "name", ",", "and", "corresponding", "number", "of", "available", "course", "for", "each", "subject", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 22, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "subject", "ID", ",", "subject", "name", ",", "and", "the", "corresponding", "number", "of", "available", "courses", "for", "each", "subject", "." ], "question_arg": [ [ "find" ], [ "subject", "id" ], [ "," ], [ "subject", "name" ], [ "," ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "available" ], [ "course" ], [ "for" ], [ "each" ], [ "subject" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "subject", "JJ" ], [ "id", "NN" ], [ ",", "," ], [ "subject", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "available", "JJ" ], [ "course", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "subject", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(13) T(3) A(0) C(14) T(2) A(3) C(0) T(3)" }, { "db_id": "e_learning", "query": "SELECT T1.subject_id , T2.subject_name , COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id", "query_toks": [ "SELECT", "T1.subject_id", ",", "T2.subject_name", ",", "COUNT", "(", "*", ")", "FROM", "Courses", "AS", "T1", "JOIN", "Subjects", "AS", "T2", "ON", "T1.subject_id", "=", "T2.subject_id", "GROUP", "BY", "T1.subject_id" ], "query_toks_no_value": [ "select", "t1", ".", "subject_id", ",", "t2", ".", "subject_name", ",", "count", "(", "*", ")", "from", "courses", "as", "t1", "join", "subjects", "as", "t2", "on", "t1", ".", "subject_id", "=", "t2", ".", "subject_id", "group", "by", "t1", ".", "subject_id" ], "question": "What are the subject ID, subject name, and the number of available courses for each subject?", "question_toks": [ "what", "are", "subject", "id", ",", "subject", "name", ",", "and", "number", "of", "available", "course", "for", "each", "subject", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 22, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "subject", "ID", ",", "subject", "name", ",", "and", "the", "number", "of", "available", "courses", "for", "each", "subject", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "subject", "id" ], [ "," ], [ "subject", "name" ], [ "," ], [ "and" ], [ "number" ], [ "of" ], [ "available" ], [ "course" ], [ "for" ], [ "each" ], [ "subject" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "subject", "JJ" ], [ "id", "NN" ], [ ",", "," ], [ "subject", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "available", "JJ" ], [ "course", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "subject", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(13) T(3) A(0) C(14) T(2) A(3) C(0) T(3)" }, { "db_id": "e_learning", "query": "SELECT T1.subject_id , T2.subject_name , COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*) ASC", "query_toks": [ "SELECT", "T1.subject_id", ",", "T2.subject_name", ",", "COUNT", "(", "*", ")", "FROM", "Courses", "AS", "T1", "JOIN", "Subjects", "AS", "T2", "ON", "T1.subject_id", "=", "T2.subject_id", "GROUP", "BY", "T1.subject_id", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC" ], "query_toks_no_value": [ "select", "t1", ".", "subject_id", ",", "t2", ".", "subject_name", ",", "count", "(", "*", ")", "from", "courses", "as", "t1", "join", "subjects", "as", "t2", "on", "t1", ".", "subject_id", "=", "t2", ".", "subject_id", "group", "by", "t1", ".", "subject_id", "order", "by", "count", "(", "*", ")", "asc" ], "question": "Find the subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order.", "question_toks": [ "find", "subject", "id", ",", "name", "of", "subject", "and", "corresponding", "number", "of", "course", "for", "each", "subject", ",", "and", "sort", "by", "course", "count", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 22, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "subject", "ID", ",", "name", "of", "subject", "and", "the", "corresponding", "number", "of", "courses", "for", "each", "subject", ",", "and", "sort", "by", "the", "course", "count", "in", "ascending", "order", "." ], "question_arg": [ [ "find" ], [ "subject", "id" ], [ "," ], [ "name" ], [ "of" ], [ "subject" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "course" ], [ "for" ], [ "each" ], [ "subject" ], [ "," ], [ "and" ], [ "sort" ], [ "by" ], [ "course" ], [ "count" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "subject", "JJ" ], [ "id", "NN" ], [ ",", "," ], [ "name", "NN" ], [ "of", "IN" ], [ "subject", "JJ" ], [ "and", "CC" ], [ "corresponding", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "subject", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "sort", "NN" ], [ "by", "IN" ], [ "course", "NN" ], [ "count", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(13) T(3) A(0) C(14) T(2) A(3) C(0) T(3) Order(1) A(3) C(0) T(3)" }, { "db_id": "e_learning", "query": "SELECT T1.subject_id , T2.subject_name , COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*) ASC", "query_toks": [ "SELECT", "T1.subject_id", ",", "T2.subject_name", ",", "COUNT", "(", "*", ")", "FROM", "Courses", "AS", "T1", "JOIN", "Subjects", "AS", "T2", "ON", "T1.subject_id", "=", "T2.subject_id", "GROUP", "BY", "T1.subject_id", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC" ], "query_toks_no_value": [ "select", "t1", ".", "subject_id", ",", "t2", ".", "subject_name", ",", "count", "(", "*", ")", "from", "courses", "as", "t1", "join", "subjects", "as", "t2", "on", "t1", ".", "subject_id", "=", "t2", ".", "subject_id", "group", "by", "t1", ".", "subject_id", "order", "by", "count", "(", "*", ")", "asc" ], "question": "List the subject ID, name of subject and the number of courses available for each subject in ascending order of the course counts.", "question_toks": [ "list", "subject", "id", ",", "name", "of", "subject", "and", "number", "of", "course", "available", "for", "each", "subject", "in", "ascending", "order", "of", "course", "count", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 22, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "List", "the", "subject", "ID", ",", "name", "of", "subject", "and", "the", "number", "of", "courses", "available", "for", "each", "subject", "in", "ascending", "order", "of", "the", "course", "counts", "." ], "question_arg": [ [ "list" ], [ "subject", "id" ], [ "," ], [ "name" ], [ "of" ], [ "subject" ], [ "and" ], [ "number" ], [ "of" ], [ "course" ], [ "available" ], [ "for" ], [ "each" ], [ "subject" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "course" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "subject", "JJ" ], [ "id", "NN" ], [ ",", "," ], [ "name", "NN" ], [ "of", "IN" ], [ "subject", "JJ" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "available", "JJ" ], [ "for", "IN" ], [ "each", "DT" ], [ "subject", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "count", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(13) T(3) A(0) C(14) T(2) A(3) C(0) T(3) Order(1) A(3) C(0) T(3)" }, { "db_id": "e_learning", "query": "SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"Spanish\"", "query_toks": [ "SELECT", "T2.date_of_enrolment", "FROM", "Courses", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T1.course_name", "=", "``", "Spanish", "''" ], "query_toks_no_value": [ "select", "t2", ".", "date_of_enrolment", "from", "courses", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t1", ".", "course_name", "=", "value" ], "question": "What is the date of enrollment of the course named \"Spanish\"?", "question_toks": [ "what", "is", "date", "of", "enrollment", "of", "course", "named", "'", "spanish", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Spanish\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "is", "the", "date", "of", "enrollment", "of", "the", "course", "named", "``", "Spanish", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "date" ], [ "of" ], [ "enrollment" ], [ "of" ], [ "course" ], [ "named" ], [ "'" ], [ "spanish" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "date", "NN" ], [ "of", "IN" ], [ "enrollment", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "spanish", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Spanish" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(4) Filter(2) A(0) C(16) T(3) V(0)" }, { "db_id": "e_learning", "query": "SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"Spanish\"", "query_toks": [ "SELECT", "T2.date_of_enrolment", "FROM", "Courses", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T1.course_name", "=", "``", "Spanish", "''" ], "query_toks_no_value": [ "select", "t2", ".", "date_of_enrolment", "from", "courses", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t1", ".", "course_name", "=", "value" ], "question": "Find the the date of enrollment of the \"Spanish\" course.", "question_toks": [ "find", "date", "of", "enrollment", "of", "'", "spanish", "'", "course", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Spanish\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "the", "date", "of", "enrollment", "of", "the", "``", "Spanish", "''", "course", "." ], "question_arg": [ [ "find" ], [ "date" ], [ "of" ], [ "enrollment" ], [ "of" ], [ "'" ], [ "spanish" ], [ "'" ], [ "course" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "date", "NN" ], [ "of", "IN" ], [ "enrollment", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "spanish", "JJ" ], [ "'", "POS" ], [ "course", "NN" ], [ ".", "." ] ], "values": [ "Spanish" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(4) Filter(2) A(0) C(16) T(3) V(0)" }, { "db_id": "e_learning", "query": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.course_name", "FROM", "Courses", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T1.course_name", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "course_name", "from", "courses", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t1", ".", "course_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the course that has the most student enrollment?", "question_toks": [ "what", "is", "name", "of", "course", "that", "ha", "most", "student", "enrollment", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 20, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "course", "that", "has", "the", "most", "student", "enrollment", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "course" ], [ "that" ], [ "ha" ], [ "most" ], [ "student" ], [ "enrollment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "student", "JJ" ], [ "enrollment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(16) T(3) Sup(0) A(3) C(0) T(4) Filter(18) A(0) C(15) T(3) Root(5) Sel(0) N(0) A(0) C(15) T(4)" }, { "db_id": "e_learning", "query": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.course_name", "FROM", "Courses", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T1.course_name", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "course_name", "from", "courses", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t1", ".", "course_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which course is enrolled in by the most students? Give me the course name.", "question_toks": [ "which", "course", "is", "enrolled", "in", "by", "most", "student", "?", "give", "me", "course", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 20, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Which", "course", "is", "enrolled", "in", "by", "the", "most", "students", "?", "Give", "me", "the", "course", "name", "." ], "question_arg": [ [ "which" ], [ "course" ], [ "is" ], [ "enrolled" ], [ "in" ], [ "by" ], [ "most" ], [ "student" ], [ "?" ], [ "give" ], [ "me" ], [ "course", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "course", "NN" ], [ "is", "VBZ" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "by", "IN" ], [ "most", "JJS" ], [ "student", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "course", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(16) T(3) Sup(0) A(3) C(0) T(4) Filter(18) A(0) C(15) T(3) Root(5) Sel(0) N(0) A(0) C(15) T(4)" }, { "db_id": "e_learning", "query": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) = 1", "query_toks": [ "SELECT", "T1.course_name", "FROM", "Courses", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T1.course_name", "HAVING", "COUNT", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "course_name", "from", "courses", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t1", ".", "course_name", "having", "count", "(", "*", ")", "=", "value" ], "question": "What are the names of the courses that have exactly 1 student enrollment?", "question_toks": [ "what", "are", "name", "of", "course", "that", "have", "exactly", "1", "student", "enrollment", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 20, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "courses", "that", "have", "exactly", "1", "student", "enrollment", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "course" ], [ "that" ], [ "have" ], [ "exactly" ], [ "1" ], [ "student" ], [ "enrollment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "exactly", "RB" ], [ "1", "CD" ], [ "student", "NN" ], [ "enrollment", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(0) Filter(18) A(0) C(15) T(3) Root(5) Sel(0) N(0) A(0) C(15) T(4) Filter(2) A(3) C(0) T(4) V(0)" }, { "db_id": "e_learning", "query": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) = 1", "query_toks": [ "SELECT", "T1.course_name", "FROM", "Courses", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T1.course_name", "HAVING", "COUNT", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "course_name", "from", "courses", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t1", ".", "course_name", "having", "count", "(", "*", ")", "=", "value" ], "question": "Find the names of the courses that have just one student enrollment.", "question_toks": [ "find", "name", "of", "course", "that", "have", "just", "one", "student", "enrollment", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 20, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "courses", "that", "have", "just", "one", "student", "enrollment", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "course" ], [ "that" ], [ "have" ], [ "just" ], [ "one" ], [ "student" ], [ "enrollment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "just", "RB" ], [ "one", "CD" ], [ "student", "NN" ], [ "enrollment", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(0) Filter(18) A(0) C(15) T(3) Root(5) Sel(0) N(0) A(0) C(15) T(4) Filter(2) A(3) C(0) T(4) V(0)" }, { "db_id": "e_learning", "query": "SELECT T1.course_description , T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) > 2", "query_toks": [ "SELECT", "T1.course_description", ",", "T1.course_name", "FROM", "Courses", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T1.course_name", "HAVING", "COUNT", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "t1", ".", "course_description", ",", "t1", ".", "course_name", "from", "courses", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t1", ".", "course_name", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the descriptions and names of the courses that have student enrollment bigger than 2?", "question_toks": [ "what", "are", "description", "and", "name", "of", "course", "that", "have", "student", "enrollment", "bigger", "than", "2", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 20, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "descriptions", "and", "names", "of", "the", "courses", "that", "have", "student", "enrollment", "bigger", "than", "2", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "description" ], [ "and" ], [ "name" ], [ "of" ], [ "course" ], [ "that" ], [ "have" ], [ "student" ], [ "enrollment" ], [ "bigger" ], [ "than" ], [ "2" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "description", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "student", "VBN" ], [ "enrollment", "NN" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(17) T(3) A(0) C(16) T(3) Filter(0) Filter(18) A(0) C(15) T(3) Root(5) Sel(0) N(0) A(0) C(15) T(4) Filter(5) A(3) C(0) T(4) V(0)" }, { "db_id": "e_learning", "query": "SELECT T1.course_description , T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) > 2", "query_toks": [ "SELECT", "T1.course_description", ",", "T1.course_name", "FROM", "Courses", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T1.course_name", "HAVING", "COUNT", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "t1", ".", "course_description", ",", "t1", ".", "course_name", "from", "courses", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t1", ".", "course_name", "having", "count", "(", "*", ")", ">", "value" ], "question": "Return the descriptions and names of the courses that have more than two students enrolled in.", "question_toks": [ "return", "description", "and", "name", "of", "course", "that", "have", "more", "than", "two", "student", "enrolled", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 20, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Return", "the", "descriptions", "and", "names", "of", "the", "courses", "that", "have", "more", "than", "two", "students", "enrolled", "in", "." ], "question_arg": [ [ "return" ], [ "description" ], [ "and" ], [ "name" ], [ "of" ], [ "course" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "two" ], [ "student" ], [ "enrolled" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "description", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "two", "CD" ], [ "student", "NN" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(17) T(3) A(0) C(16) T(3) Filter(0) Filter(18) A(0) C(15) T(3) Root(5) Sel(0) N(0) A(0) C(15) T(4) Filter(5) A(3) C(0) T(4) V(0)" }, { "db_id": "e_learning", "query": "SELECT T1.course_name , COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name", "query_toks": [ "SELECT", "T1.course_name", ",", "COUNT", "(", "*", ")", "FROM", "Courses", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T1.course_name" ], "query_toks_no_value": [ "select", "t1", ".", "course_name", ",", "count", "(", "*", ")", "from", "courses", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t1", ".", "course_name" ], "question": "What is the name of each course and the corresponding number of student enrollment?", "question_toks": [ "what", "is", "name", "of", "each", "course", "and", "corresponding", "number", "of", "student", "enrollment", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "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": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "each", "course", "and", "the", "corresponding", "number", "of", "student", "enrollment", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "each" ], [ "course" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "student" ], [ "enrollment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "course", "NN" ], [ "and", "CC" ], [ "corresponding", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "enrollment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(16) T(3) A(3) C(0) T(4)" }, { "db_id": "e_learning", "query": "SELECT T1.course_name , COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name", "query_toks": [ "SELECT", "T1.course_name", ",", "COUNT", "(", "*", ")", "FROM", "Courses", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T1.course_name" ], "query_toks_no_value": [ "select", "t1", ".", "course_name", ",", "count", "(", "*", ")", "from", "courses", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t1", ".", "course_name" ], "question": "List the name and the number of enrolled student for each course.", "question_toks": [ "list", "name", "and", "number", "of", "enrolled", "student", "for", "each", "course", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "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": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "List", "the", "name", "and", "the", "number", "of", "enrolled", "student", "for", "each", "course", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "enrolled" ], [ "student" ], [ "for" ], [ "each" ], [ "course" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "enrolled", "JJ" ], [ "student", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "course", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(16) T(3) A(3) C(0) T(4)" }, { "db_id": "e_learning", "query": "SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = \"Pass\"", "query_toks": [ "SELECT", "T1.date_of_enrolment", "FROM", "Student_Course_Enrolment", "AS", "T1", "JOIN", "Student_Tests_Taken", "AS", "T2", "ON", "T1.registration_id", "=", "T2.registration_id", "WHERE", "T2.test_result", "=", "``", "Pass", "''" ], "query_toks_no_value": [ "select", "t1", ".", "date_of_enrolment", "from", "student_course_enrolment", "as", "t1", "join", "student_tests_taken", "as", "t2", "on", "t1", ".", "registration_id", "=", "t2", ".", "registration_id", "where", "t2", ".", "test_result", "=", "value" ], "question": "What are the enrollment dates of all the tests that have result \"Pass\"?", "question_toks": [ "what", "are", "enrollment", "date", "of", "all", "test", "that", "have", "result", "'", "pas", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 30, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 32, false ], null ], "\"Pass\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "enrollment", "dates", "of", "all", "the", "tests", "that", "have", "result", "``", "Pass", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "enrollment" ], [ "date" ], [ "of" ], [ "all" ], [ "test" ], [ "that" ], [ "have" ], [ "result" ], [ "'" ], [ "pas" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "enrollment", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "test", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "result", "VBN" ], [ "'", "''" ], [ "pas", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Pass" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(4) Filter(2) A(0) C(22) T(5) V(0)" }, { "db_id": "e_learning", "query": "SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = \"Pass\"", "query_toks": [ "SELECT", "T1.date_of_enrolment", "FROM", "Student_Course_Enrolment", "AS", "T1", "JOIN", "Student_Tests_Taken", "AS", "T2", "ON", "T1.registration_id", "=", "T2.registration_id", "WHERE", "T2.test_result", "=", "``", "Pass", "''" ], "query_toks_no_value": [ "select", "t1", ".", "date_of_enrolment", "from", "student_course_enrolment", "as", "t1", "join", "student_tests_taken", "as", "t2", "on", "t1", ".", "registration_id", "=", "t2", ".", "registration_id", "where", "t2", ".", "test_result", "=", "value" ], "question": "Find the enrollment date for all the tests that have \"Pass\" result.", "question_toks": [ "find", "enrollment", "date", "for", "all", "test", "that", "have", "'", "pas", "'", "result", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 30, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 32, false ], null ], "\"Pass\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "enrollment", "date", "for", "all", "the", "tests", "that", "have", "``", "Pass", "''", "result", "." ], "question_arg": [ [ "find" ], [ "enrollment" ], [ "date" ], [ "for" ], [ "all" ], [ "test" ], [ "that" ], [ "have" ], [ "'" ], [ "pas" ], [ "'" ], [ "result" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "enrollment", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "test", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "'", "''" ], [ "pas", "NN" ], [ "'", "POS" ], [ "result", "NN" ], [ ".", "." ] ], "values": [ "Pass" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(4) Filter(2) A(0) C(22) T(5) V(0)" }, { "db_id": "e_learning", "query": "SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = \"Fail\"", "query_toks": [ "SELECT", "T1.date_of_completion", "FROM", "Student_Course_Enrolment", "AS", "T1", "JOIN", "Student_Tests_Taken", "AS", "T2", "ON", "T1.registration_id", "=", "T2.registration_id", "WHERE", "T2.test_result", "=", "``", "Fail", "''" ], "query_toks_no_value": [ "select", "t1", ".", "date_of_completion", "from", "student_course_enrolment", "as", "t1", "join", "student_tests_taken", "as", "t2", "on", "t1", ".", "registration_id", "=", "t2", ".", "registration_id", "where", "t2", ".", "test_result", "=", "value" ], "question": "What are the completion dates of all the tests that have result \"Fail\"?", "question_toks": [ "what", "are", "completion", "date", "of", "all", "test", "that", "have", "result", "'", "fail", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 30, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 32, false ], null ], "\"Fail\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "completion", "dates", "of", "all", "the", "tests", "that", "have", "result", "``", "Fail", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date", "of", "completion" ], [ "all" ], [ "test" ], [ "that" ], [ "have" ], [ "result" ], [ "'" ], [ "fail" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "completion", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "test", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "result", "VBN" ], [ "'", "''" ], [ "fail", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Fail" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(20) T(4) Filter(2) A(0) C(22) T(5) V(0)" }, { "db_id": "e_learning", "query": "SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = \"Fail\"", "query_toks": [ "SELECT", "T1.date_of_completion", "FROM", "Student_Course_Enrolment", "AS", "T1", "JOIN", "Student_Tests_Taken", "AS", "T2", "ON", "T1.registration_id", "=", "T2.registration_id", "WHERE", "T2.test_result", "=", "``", "Fail", "''" ], "query_toks_no_value": [ "select", "t1", ".", "date_of_completion", "from", "student_course_enrolment", "as", "t1", "join", "student_tests_taken", "as", "t2", "on", "t1", ".", "registration_id", "=", "t2", ".", "registration_id", "where", "t2", ".", "test_result", "=", "value" ], "question": "Return the completion date for all the tests that have \"Fail\" result.", "question_toks": [ "return", "completion", "date", "for", "all", "test", "that", "have", "'", "fail", "'", "result", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 30, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 32, false ], null ], "\"Fail\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Return", "the", "completion", "date", "for", "all", "the", "tests", "that", "have", "``", "Fail", "''", "result", "." ], "question_arg": [ [ "return" ], [ "date", "of", "completion" ], [ "for" ], [ "all" ], [ "test" ], [ "that" ], [ "have" ], [ "'" ], [ "fail" ], [ "'" ], [ "result" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "completion", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "test", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "'", "''" ], [ "fail", "NN" ], [ "'", "POS" ], [ "result", "NN" ], [ ".", "." ] ], "values": [ "Fail" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(20) T(4) Filter(2) A(0) C(22) T(5) V(0)" }, { "db_id": "e_learning", "query": "SELECT T1.date_of_enrolment , T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.personal_name = \"Karson\"", "query_toks": [ "SELECT", "T1.date_of_enrolment", ",", "T1.date_of_completion", "FROM", "Student_Course_Enrolment", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "WHERE", "T2.personal_name", "=", "``", "Karson", "''" ], "query_toks_no_value": [ "select", "t1", ".", "date_of_enrolment", ",", "t1", ".", "date_of_completion", "from", "student_course_enrolment", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "where", "t2", ".", "personal_name", "=", "value" ], "question": "List the dates of enrollment and completion of the student with personal name \"Karson\".", "question_toks": [ "list", "date", "of", "enrollment", "and", "completion", "of", "student", "with", "personal", "name", "'", "karson", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Karson\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "List", "the", "dates", "of", "enrollment", "and", "completion", "of", "the", "student", "with", "personal", "name", "``", "Karson", "''", "." ], "question_arg": [ [ "list" ], [ "date" ], [ "of" ], [ "enrollment" ], [ "and" ], [ "date", "of", "completion" ], [ "student" ], [ "with" ], [ "personal", "name" ], [ "'" ], [ "karson" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "enrollment", "NN" ], [ "and", "CC" ], [ "completion", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "personal", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "karson", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Karson" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(4) A(0) C(20) T(4) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "e_learning", "query": "SELECT T1.date_of_enrolment , T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.personal_name = \"Karson\"", "query_toks": [ "SELECT", "T1.date_of_enrolment", ",", "T1.date_of_completion", "FROM", "Student_Course_Enrolment", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "WHERE", "T2.personal_name", "=", "``", "Karson", "''" ], "query_toks_no_value": [ "select", "t1", ".", "date_of_enrolment", ",", "t1", ".", "date_of_completion", "from", "student_course_enrolment", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "where", "t2", ".", "personal_name", "=", "value" ], "question": "On what dates did the student whose personal name is \"Karson\" enroll in and complete the courses?", "question_toks": [ "on", "what", "date", "did", "student", "whose", "personal", "name", "is", "'", "karson", "'", "enroll", "in", "and", "complete", "course", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Karson\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "On", "what", "dates", "did", "the", "student", "whose", "personal", "name", "is", "``", "Karson", "''", "enroll", "in", "and", "complete", "the", "courses", "?" ], "question_arg": [ [ "on" ], [ "what" ], [ "date" ], [ "did" ], [ "student" ], [ "whose" ], [ "personal", "name" ], [ "is" ], [ "'" ], [ "karson" ], [ "'" ], [ "enroll" ], [ "in" ], [ "and" ], [ "complete" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "on", "IN" ], [ "what", "WP" ], [ "date", "NN" ], [ "did", "VBD" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "personal", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "karson", "NN" ], [ "'", "''" ], [ "enroll", "NN" ], [ "in", "IN" ], [ "and", "CC" ], [ "complete", "JJ" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "Karson" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(4) A(0) C(20) T(4) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "e_learning", "query": "SELECT T1.date_of_enrolment , T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.family_name = \"Zieme\" AND T2.personal_name = \"Bernie\"", "query_toks": [ "SELECT", "T1.date_of_enrolment", ",", "T1.date_of_completion", "FROM", "Student_Course_Enrolment", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "WHERE", "T2.family_name", "=", "``", "Zieme", "''", "AND", "T2.personal_name", "=", "``", "Bernie", "''" ], "query_toks_no_value": [ "select", "t1", ".", "date_of_enrolment", ",", "t1", ".", "date_of_completion", "from", "student_course_enrolment", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "where", "t2", ".", "family_name", "=", "value", "and", "t2", ".", "personal_name", "=", "value" ], "question": "List the dates of enrollment and completion of the student with family name \"Zieme\" and personal name \"Bernie\".", "question_toks": [ "list", "date", "of", "enrollment", "and", "completion", "of", "student", "with", "family", "name", "'", "zieme", "'", "and", "personal", "name", "'", "bernie", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Zieme\"", null ], "and", [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Bernie\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "List", "the", "dates", "of", "enrollment", "and", "completion", "of", "the", "student", "with", "family", "name", "``", "Zieme", "''", "and", "personal", "name", "``", "Bernie", "''", "." ], "question_arg": [ [ "list" ], [ "date" ], [ "of" ], [ "enrollment" ], [ "and" ], [ "date", "of", "completion" ], [ "student" ], [ "with" ], [ "family", "name" ], [ "'" ], [ "zieme" ], [ "'" ], [ "and" ], [ "personal", "name" ], [ "'" ], [ "bernie" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "enrollment", "NN" ], [ "and", "CC" ], [ "completion", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "family", "NN" ], [ "name", "NN" ], [ "'", "''" ], [ "zieme", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "personal", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "bernie", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Zieme", "Bernie" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(4) A(0) C(20) T(4) Filter(0) Filter(2) A(0) C(7) T(1) V(0) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "e_learning", "query": "SELECT T1.date_of_enrolment , T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.family_name = \"Zieme\" AND T2.personal_name = \"Bernie\"", "query_toks": [ "SELECT", "T1.date_of_enrolment", ",", "T1.date_of_completion", "FROM", "Student_Course_Enrolment", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "WHERE", "T2.family_name", "=", "``", "Zieme", "''", "AND", "T2.personal_name", "=", "``", "Bernie", "''" ], "query_toks_no_value": [ "select", "t1", ".", "date_of_enrolment", ",", "t1", ".", "date_of_completion", "from", "student_course_enrolment", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "where", "t2", ".", "family_name", "=", "value", "and", "t2", ".", "personal_name", "=", "value" ], "question": "On what dates did the student with family name \"Zieme\" and personal name \"Bernie\" enroll in and complete the courses?", "question_toks": [ "on", "what", "date", "did", "student", "with", "family", "name", "'", "zieme", "'", "and", "personal", "name", "'", "bernie", "'", "enroll", "in", "and", "complete", "course", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Zieme\"", null ], "and", [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Bernie\"", null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "On", "what", "dates", "did", "the", "student", "with", "family", "name", "``", "Zieme", "''", "and", "personal", "name", "``", "Bernie", "''", "enroll", "in", "and", "complete", "the", "courses", "?" ], "question_arg": [ [ "on" ], [ "what" ], [ "date" ], [ "did" ], [ "student" ], [ "with" ], [ "family", "name" ], [ "'" ], [ "zieme" ], [ "'" ], [ "and" ], [ "personal", "name" ], [ "'" ], [ "bernie" ], [ "'" ], [ "enroll" ], [ "in" ], [ "and" ], [ "complete" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "on", "IN" ], [ "what", "WP" ], [ "date", "NN" ], [ "did", "VBD" ], [ "student", "NN" ], [ "with", "IN" ], [ "family", "NN" ], [ "name", "NN" ], [ "'", "''" ], [ "zieme", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "personal", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "bernie", "NN" ], [ "'", "''" ], [ "enroll", "NN" ], [ "in", "IN" ], [ "and", "CC" ], [ "complete", "JJ" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "Zieme", "Bernie" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(4) A(0) C(20) T(4) Filter(0) Filter(2) A(0) C(7) T(1) V(0) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "e_learning", "query": "SELECT T1.student_id , T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.student_id", ",", "T2.login_name", "FROM", "Student_Course_Enrolment", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "student_id", ",", "t2", ".", "login_name", "from", "student_course_enrolment", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the student ID and login name of the student with the most course enrollments", "question_toks": [ "find", "student", "id", "and", "login", "name", "of", "student", "with", "most", "course", "enrollment" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 26, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "student", "ID", "and", "login", "name", "of", "the", "student", "with", "the", "most", "course", "enrollments" ], "question_arg": [ [ "find" ], [ "student", "id" ], [ "and" ], [ "login", "name" ], [ "of" ], [ "student" ], [ "with" ], [ "most" ], [ "course" ], [ "enrollment" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "student", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "login", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "course", "NN" ], [ "enrollment", "NN" ] ], "values": [ "Logan" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(10) T(4) A(0) C(3) T(1) Sup(0) A(3) C(0) T(4)" }, { "db_id": "e_learning", "query": "SELECT T1.student_id , T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.student_id", ",", "T2.login_name", "FROM", "Student_Course_Enrolment", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "student_id", ",", "t2", ".", "login_name", "from", "student_course_enrolment", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the student ID and login name of the student who are enrolled in the most courses?", "question_toks": [ "what", "are", "student", "id", "and", "login", "name", "of", "student", "who", "are", "enrolled", "in", "most", "course", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 26, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "student", "ID", "and", "login", "name", "of", "the", "student", "who", "are", "enrolled", "in", "the", "most", "courses", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "student", "id" ], [ "and" ], [ "login", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "enrolled" ], [ "in" ], [ "most" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "student", "JJ" ], [ "id", "NN" ], [ "and", "CC" ], [ "login", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "most", "JJS" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "Logan" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(10) T(4) A(0) C(3) T(1) Sup(0) A(3) C(0) T(4)" }, { "db_id": "e_learning", "query": "SELECT T1.student_id , T2.personal_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "T1.student_id", ",", "T2.personal_name", "FROM", "Student_Course_Enrolment", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "student_id", ",", "t2", ".", "personal_name", "from", "student_course_enrolment", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Find the student ID and personal name of the student with at least two enrollments.", "question_toks": [ "find", "student", "id", "and", "personal", "name", "of", "student", "with", "at", "least", "two", "enrollment", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 26, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "student", "ID", "and", "personal", "name", "of", "the", "student", "with", "at", "least", "two", "enrollments", "." ], "question_arg": [ [ "find" ], [ "student", "id" ], [ "and" ], [ "personal", "name" ], [ "of" ], [ "student" ], [ "with" ], [ "at" ], [ "least" ], [ "two" ], [ "enrollment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "student", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "personal", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "enrollment", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(4) A(0) C(5) T(1) Filter(7) A(3) C(0) T(4) V(0)" }, { "db_id": "e_learning", "query": "SELECT T1.student_id , T2.personal_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "T1.student_id", ",", "T2.personal_name", "FROM", "Student_Course_Enrolment", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "student_id", ",", "t2", ".", "personal_name", "from", "student_course_enrolment", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Which student are enrolled in at least two courses? Give me the student ID and personal name.", "question_toks": [ "which", "student", "are", "enrolled", "in", "at", "least", "two", "course", "?", "give", "me", "student", "id", "and", "personal", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 26, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Which", "student", "are", "enrolled", "in", "at", "least", "two", "courses", "?", "Give", "me", "the", "student", "ID", "and", "personal", "name", "." ], "question_arg": [ [ "which" ], [ "student" ], [ "are" ], [ "enrolled" ], [ "in" ], [ "at" ], [ "least" ], [ "two" ], [ "course" ], [ "?" ], [ "give" ], [ "me" ], [ "student", "id" ], [ "and" ], [ "personal", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "student", "NN" ], [ "are", "VBP" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "course", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "student", "JJ" ], [ "id", "NN" ], [ "and", "CC" ], [ "personal", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(4) A(0) C(5) T(1) Filter(7) A(3) C(0) T(4) V(0)" }, { "db_id": "e_learning", "query": "SELECT T1.student_id , T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) <= 2", "query_toks": [ "SELECT", "T1.student_id", ",", "T2.middle_name", "FROM", "Student_Course_Enrolment", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "HAVING", "COUNT", "(", "*", ")", "<", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "student_id", ",", "t2", ".", "middle_name", "from", "student_course_enrolment", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", "<", "=", "value" ], "question": "Find the student ID and middle name for all the students with at most two enrollments.", "question_toks": [ "find", "student", "id", "and", "middle", "name", "for", "all", "student", "with", "at", "most", "two", "enrollment", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 26, false ] ], "having": [ [ false, 6, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "student", "ID", "and", "middle", "name", "for", "all", "the", "students", "with", "at", "most", "two", "enrollments", "." ], "question_arg": [ [ "find" ], [ "student", "id" ], [ "and" ], [ "middle", "name" ], [ "for" ], [ "all" ], [ "student" ], [ "with" ], [ "at" ], [ "most" ], [ "two" ], [ "enrollment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "student", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "middle", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "most", "JJS" ], [ "two", "CD" ], [ "enrollment", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(4) A(0) C(6) T(1) Filter(6) A(3) C(0) T(4) V(0)" }, { "db_id": "e_learning", "query": "SELECT T1.student_id , T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) <= 2", "query_toks": [ "SELECT", "T1.student_id", ",", "T2.middle_name", "FROM", "Student_Course_Enrolment", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "HAVING", "COUNT", "(", "*", ")", "<", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "student_id", ",", "t2", ".", "middle_name", "from", "student_course_enrolment", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", "<", "=", "value" ], "question": "What are the student IDs and middle names of the students enrolled in at most two courses?", "question_toks": [ "what", "are", "student", "id", "and", "middle", "name", "of", "student", "enrolled", "in", "at", "most", "two", "course", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 26, false ] ], "having": [ [ false, 6, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "student", "IDs", "and", "middle", "names", "of", "the", "students", "enrolled", "in", "at", "most", "two", "courses", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "student", "id" ], [ "and" ], [ "middle", "name" ], [ "of" ], [ "student" ], [ "enrolled" ], [ "in" ], [ "at" ], [ "most" ], [ "two" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "student", "JJ" ], [ "id", "NN" ], [ "and", "CC" ], [ "middle", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "at", "IN" ], [ "most", "JJS" ], [ "two", "CD" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(4) A(0) C(6) T(1) Filter(6) A(3) C(0) T(4) V(0)" }, { "db_id": "e_learning", "query": "SELECT personal_name FROM Students EXCEPT SELECT T1.personal_name FROM Students AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.student_id = T2.student_id", "query_toks": [ "SELECT", "personal_name", "FROM", "Students", "EXCEPT", "SELECT", "T1.personal_name", "FROM", "Students", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id" ], "query_toks_no_value": [ "select", "personal_name", "from", "students", "except", "select", "t1", ".", "personal_name", "from", "students", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id" ], "question": "Find the personal names of students not enrolled in any course.", "question_toks": [ "find", "personal", "name", "of", "student", "not", "enrolled", "in", "any", "course", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "personal", "names", "of", "students", "not", "enrolled", "in", "any", "course", "." ], "question_arg": [ [ "find" ], [ "personal", "name" ], [ "of" ], [ "student" ], [ "not" ], [ "enrolled" ], [ "in" ], [ "any" ], [ "course" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "personal", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "not", "RB" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "any", "DT" ], [ "course", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(5) T(1) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(18) A(0) C(10) T(1) Root(5) Sel(0) N(0) A(0) C(10) T(4)" }, { "db_id": "e_learning", "query": "SELECT personal_name FROM Students EXCEPT SELECT T1.personal_name FROM Students AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.student_id = T2.student_id", "query_toks": [ "SELECT", "personal_name", "FROM", "Students", "EXCEPT", "SELECT", "T1.personal_name", "FROM", "Students", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id" ], "query_toks_no_value": [ "select", "personal_name", "from", "students", "except", "select", "t1", ".", "personal_name", "from", "students", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id" ], "question": "Which students not enrolled in any course? Find their personal names.", "question_toks": [ "which", "student", "not", "enrolled", "in", "any", "course", "?", "find", "their", "personal", "name", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Which", "students", "not", "enrolled", "in", "any", "course", "?", "Find", "their", "personal", "names", "." ], "question_arg": [ [ "which" ], [ "student" ], [ "not" ], [ "enrolled" ], [ "in" ], [ "any" ], [ "course" ], [ "?" ], [ "find" ], [ "their" ], [ "personal", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "student", "NN" ], [ "not", "RB" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "any", "DT" ], [ "course", "NN" ], [ "?", "." ], [ "find", "VBP" ], [ "their", "PRP$" ], [ "personal", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(5) T(1) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(18) A(0) C(10) T(1) Root(5) Sel(0) N(0) A(0) C(10) T(4)" }, { "db_id": "e_learning", "query": "SELECT count(*) FROM Students WHERE student_id NOT IN (SELECT student_id FROM Student_Course_Enrolment)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Students", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "Student_Course_Enrolment", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_enrolment", ")" ], "question": "How many students did not have any course enrollment?", "question_toks": [ "how", "many", "student", "did", "not", "have", "any", "course", "enrollment", "?" ], "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, 10, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "How", "many", "students", "did", "not", "have", "any", "course", "enrollment", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "did" ], [ "not" ], [ "have" ], [ "any" ], [ "course" ], [ "enrollment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "did", "VBD" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "course", "NN" ], [ "enrollment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(19) A(0) C(10) T(1) Root(5) Sel(0) N(0) A(0) C(10) T(4)" }, { "db_id": "e_learning", "query": "SELECT count(*) FROM Students WHERE student_id NOT IN (SELECT student_id FROM Student_Course_Enrolment)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Students", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "Student_Course_Enrolment", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_enrolment", ")" ], "question": "Count the number of students who did not enroll in any course.", "question_toks": [ "count", "number", "of", "student", "who", "did", "not", "enroll", "in", "any", "course", "." ], "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, 10, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Count", "the", "number", "of", "students", "who", "did", "not", "enroll", "in", "any", "course", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "student" ], [ "who" ], [ "did" ], [ "not" ], [ "enroll" ], [ "in" ], [ "any" ], [ "course" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "enroll", "VB" ], [ "in", "IN" ], [ "any", "DT" ], [ "course", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(19) A(0) C(10) T(1) Root(5) Sel(0) N(0) A(0) C(10) T(4)" }, { "db_id": "e_learning", "query": "SELECT login_name FROM Course_Authors_and_Tutors INTERSECT SELECT login_name FROM Students", "query_toks": [ "SELECT", "login_name", "FROM", "Course_Authors_and_Tutors", "INTERSECT", "SELECT", "login_name", "FROM", "Students" ], "query_toks_no_value": [ "select", "login_name", "from", "course_authors_and_tutors", "intersect", "select", "login_name", "from", "students" ], "question": "Find the common login name of course authors and students.", "question_toks": [ "find", "common", "login", "name", "of", "course", "author", "and", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "common", "login", "name", "of", "course", "authors", "and", "students", "." ], "question_arg": [ [ "find" ], [ "common" ], [ "login", "name" ], [ "of" ], [ "course" ], [ "author" ], [ "and" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "common", "JJ" ], [ "login", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "author", "NN" ], [ "and", "CC" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "Logan" ], "rule_label": "Root1(0) Root(5) Sel(0) N(0) A(0) C(3) T(0) Root(5) Sel(0) N(0) A(0) C(3) T(1)" }, { "db_id": "e_learning", "query": "SELECT login_name FROM Course_Authors_and_Tutors INTERSECT SELECT login_name FROM Students", "query_toks": [ "SELECT", "login_name", "FROM", "Course_Authors_and_Tutors", "INTERSECT", "SELECT", "login_name", "FROM", "Students" ], "query_toks_no_value": [ "select", "login_name", "from", "course_authors_and_tutors", "intersect", "select", "login_name", "from", "students" ], "question": "What are the login names used both by some course authors and some students?", "question_toks": [ "what", "are", "login", "name", "used", "both", "by", "some", "course", "author", "and", "some", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "login", "names", "used", "both", "by", "some", "course", "authors", "and", "some", "students", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "login", "name" ], [ "used" ], [ "both" ], [ "by" ], [ "some" ], [ "course" ], [ "author" ], [ "and" ], [ "some" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "login", "JJ" ], [ "name", "NN" ], [ "used", "VBN" ], [ "both", "DT" ], [ "by", "IN" ], [ "some", "DT" ], [ "course", "NN" ], [ "author", "NN" ], [ "and", "CC" ], [ "some", "DT" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "Logan" ], "rule_label": "Root1(0) Root(5) Sel(0) N(0) A(0) C(3) T(0) Root(5) Sel(0) N(0) A(0) C(3) T(1)" }, { "db_id": "e_learning", "query": "SELECT personal_name FROM Course_Authors_and_Tutors INTERSECT SELECT personal_name FROM Students", "query_toks": [ "SELECT", "personal_name", "FROM", "Course_Authors_and_Tutors", "INTERSECT", "SELECT", "personal_name", "FROM", "Students" ], "query_toks_no_value": [ "select", "personal_name", "from", "course_authors_and_tutors", "intersect", "select", "personal_name", "from", "students" ], "question": "Find the common personal name of course authors and students.", "question_toks": [ "find", "common", "personal", "name", "of", "course", "author", "and", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "Find", "the", "common", "personal", "name", "of", "course", "authors", "and", "students", "." ], "question_arg": [ [ "find" ], [ "common" ], [ "personal", "name" ], [ "of" ], [ "course" ], [ "author" ], [ "and" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "common", "JJ" ], [ "personal", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "author", "NN" ], [ "and", "CC" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(0) Root(5) Sel(0) N(0) A(0) C(5) T(0) Root(5) Sel(0) N(0) A(0) C(5) T(1)" }, { "db_id": "e_learning", "query": "SELECT personal_name FROM Course_Authors_and_Tutors INTERSECT SELECT personal_name FROM Students", "query_toks": [ "SELECT", "personal_name", "FROM", "Course_Authors_and_Tutors", "INTERSECT", "SELECT", "personal_name", "FROM", "Students" ], "query_toks_no_value": [ "select", "personal_name", "from", "course_authors_and_tutors", "intersect", "select", "personal_name", "from", "students" ], "question": "What are the personal names used both by some course authors and some students?", "question_toks": [ "what", "are", "personal", "name", "used", "both", "by", "some", "course", "author", "and", "some", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "login name", "password", "personal name", "middle name", "family name", "subject id", "subject name", "course id", "author id", "subject id", "course name", "course description", "registration id", "student id", "course id", "date of enrolment", "date of completion", "registration id", "date test taken", "test result" ], "table_names": [ "course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken" ], "col_set": [ "*", "author id", "author tutor atb", "login name", "password", "personal name", "middle name", "family name", "gender mf", "address line 1", "student id", "date of registration", "date of latest logon", "subject id", "subject name", "course id", "course name", "course description", "registration id", "date of enrolment", "date of completion", "date test taken", "test result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "22": 18, "18": 18, "21": 1, "1": 1, "26": 10, "10": 10, "27": 20, "20": 20, "30": 25, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "personal", "names", "used", "both", "by", "some", "course", "authors", "and", "some", "students", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "personal", "name" ], [ "used" ], [ "both" ], [ "by" ], [ "some" ], [ "course" ], [ "author" ], [ "and" ], [ "some" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "personal", "JJ" ], [ "name", "NN" ], [ "used", "VBN" ], [ "both", "DT" ], [ "by", "IN" ], [ "some", "DT" ], [ "course", "NN" ], [ "author", "NN" ], [ "and", "CC" ], [ "some", "DT" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(0) Root(5) Sel(0) N(0) A(0) C(5) T(0) Root(5) Sel(0) N(0) A(0) C(5) T(1)" }, { "db_id": "insurance_policies", "query": "SELECT T1.Date_Claim_Made , T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.Claim_id HAVING count(*) > 2 UNION SELECT T1.Date_Claim_Made , T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id WHERE T1.Amount_Claimed = ( SELECT max(Amount_Claimed) FROM Claims )", "query_toks": [ "SELECT", "T1.Date_Claim_Made", ",", "T1.Claim_id", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1.Claim_id", "=", "T2.Claim_id", "GROUP", "BY", "T1.Claim_id", "HAVING", "count", "(", "*", ")", ">", "2", "UNION", "SELECT", "T1.Date_Claim_Made", ",", "T1.Claim_id", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1.Claim_id", "=", "T2.Claim_id", "WHERE", "T1.Amount_Claimed", "=", "(", "SELECT", "max", "(", "Amount_Claimed", ")", "FROM", "Claims", ")" ], "query_toks_no_value": [ "select", "t1", ".", "date_claim_made", ",", "t1", ".", "claim_id", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1", ".", "date_claim_made", ",", "t1", ".", "claim_id", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "where", "t1", ".", "amount_claimed", "=", "(", "select", "max", "(", "amount_claimed", ")", "from", "claims", ")" ], "question": "Which claims caused more than 2 settlements or have the maximum claim value? List the date the claim was made and the claim id.", "question_toks": [ "which", "claim", "caused", "more", "than", "2", "settlement", "or", "have", "maximum", "claim", "value", "?", "list", "date", "claim", "wa", "made", "and", "claim", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, 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 ] ], [ 0, [ 0, [ 0, 8, 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", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "where": [ [ false, 8, [ 0, [ 0, 8, 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": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Which", "claims", "caused", "more", "than", "2", "settlements", "or", "have", "the", "maximum", "claim", "value", "?", "List", "the", "date", "the", "claim", "was", "made", "and", "the", "claim", "id", "." ], "question_arg": [ [ "which" ], [ "claim" ], [ "caused" ], [ "more" ], [ "than" ], [ "2" ], [ "settlement" ], [ "or" ], [ "have" ], [ "maximum" ], [ "claim" ], [ "value" ], [ "?" ], [ "list" ], [ "date" ], [ "claim" ], [ "wa" ], [ "made" ], [ "and" ], [ "claim", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "claim", "NN" ], [ "caused", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "settlement", "NN" ], [ "or", "CC" ], [ "have", "VBP" ], [ "maximum", "VBN" ], [ "claim", "NN" ], [ "value", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "date", "NN" ], [ "claim", "NN" ], [ "wa", "NN" ], [ "made", "VBD" ], [ "and", "CC" ], [ "claim", "JJ" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(1) Root(3) Sel(0) N(1) A(0) C(8) T(2) A(0) C(7) T(2) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(3) Filter(5) A(3) C(0) T(3) V(0) Root(3) Sel(0) N(1) A(0) C(8) T(2) A(0) C(7) T(2) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(3) Filter(11) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(1) C(10) T(2)" }, { "db_id": "insurance_policies", "query": "SELECT T1.Date_Claim_Made , T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.Claim_id HAVING count(*) > 2 UNION SELECT T1.Date_Claim_Made , T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id WHERE T1.Amount_Claimed = ( SELECT max(Amount_Claimed) FROM Claims )", "query_toks": [ "SELECT", "T1.Date_Claim_Made", ",", "T1.Claim_id", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1.Claim_id", "=", "T2.Claim_id", "GROUP", "BY", "T1.Claim_id", "HAVING", "count", "(", "*", ")", ">", "2", "UNION", "SELECT", "T1.Date_Claim_Made", ",", "T1.Claim_id", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1.Claim_id", "=", "T2.Claim_id", "WHERE", "T1.Amount_Claimed", "=", "(", "SELECT", "max", "(", "Amount_Claimed", ")", "FROM", "Claims", ")" ], "query_toks_no_value": [ "select", "t1", ".", "date_claim_made", ",", "t1", ".", "claim_id", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1", ".", "date_claim_made", ",", "t1", ".", "claim_id", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "where", "t1", ".", "amount_claimed", "=", "(", "select", "max", "(", "amount_claimed", ")", "from", "claims", ")" ], "question": "Find the claims that led to more than two settlements or have the maximum claim value. For each of them, return the date the claim was made and the id of the claim.", "question_toks": [ "find", "claim", "that", "led", "to", "more", "than", "two", "settlement", "or", "have", "maximum", "claim", "value", ".", "for", "each", "of", "them", ",", "return", "date", "claim", "wa", "made", "and", "id", "of", "claim", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, 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 ] ], [ 0, [ 0, [ 0, 8, 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", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "where": [ [ false, 8, [ 0, [ 0, 8, 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": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Find", "the", "claims", "that", "led", "to", "more", "than", "two", "settlements", "or", "have", "the", "maximum", "claim", "value", ".", "For", "each", "of", "them", ",", "return", "the", "date", "the", "claim", "was", "made", "and", "the", "id", "of", "the", "claim", "." ], "question_arg": [ [ "find" ], [ "claim" ], [ "that" ], [ "led" ], [ "to" ], [ "more" ], [ "than" ], [ "two" ], [ "settlement" ], [ "or" ], [ "have" ], [ "maximum" ], [ "claim" ], [ "value" ], [ "." ], [ "for" ], [ "each" ], [ "of" ], [ "them" ], [ "," ], [ "return" ], [ "date" ], [ "claim" ], [ "wa" ], [ "made" ], [ "and" ], [ "id" ], [ "of" ], [ "claim" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "claim", "NN" ], [ "that", "WDT" ], [ "led", "VBD" ], [ "to", "TO" ], [ "more", "JJR" ], [ "than", "IN" ], [ "two", "CD" ], [ "settlement", "NN" ], [ "or", "CC" ], [ "have", "VBP" ], [ "maximum", "VBN" ], [ "claim", "NN" ], [ "value", "NN" ], [ ".", "." ], [ "for", "IN" ], [ "each", "DT" ], [ "of", "IN" ], [ "them", "PRP" ], [ ",", "," ], [ "return", "VB" ], [ "date", "NN" ], [ "claim", "NN" ], [ "wa", "NN" ], [ "made", "VBN" ], [ "and", "CC" ], [ "id", "JJ" ], [ "of", "IN" ], [ "claim", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(1) Root(3) Sel(0) N(1) A(0) C(8) T(2) A(0) C(7) T(2) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(3) Filter(5) A(3) C(0) T(3) V(0) Root(3) Sel(0) N(1) A(0) C(8) T(2) A(0) C(7) T(2) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(3) Filter(11) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(1) C(10) T(2)" }, { "db_id": "insurance_policies", "query": "SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 2 EXCEPT SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id JOIN Claims AS T3 ON T2.policy_id = T3.policy_id", "query_toks": [ "SELECT", "T1.customer_details", ",", "T1.customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.Customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "2", "EXCEPT", "SELECT", "T1.customer_details", ",", "T1.customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.Customer_id", "=", "T2.customer_id", "JOIN", "Claims", "AS", "T3", "ON", "T2.policy_id", "=", "T3.policy_id" ], "query_toks_no_value": [ "select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value", "except", "select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "claims", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id" ], "question": "Which customer had at least 2 policies but did not file any claims? List the customer details and id.", "question_toks": [ "which", "customer", "had", "at", "least", "2", "policy", "but", "did", "not", "file", "any", "claim", "?", "list", "customer", "detail", "and", "id", "." ], "sql": { "except": { "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": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "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, 2, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Which", "customer", "had", "at", "least", "2", "policies", "but", "did", "not", "file", "any", "claims", "?", "List", "the", "customer", "details", "and", "id", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "had" ], [ "at" ], [ "least" ], [ "2" ], [ "policy" ], [ "but" ], [ "did" ], [ "not" ], [ "file" ], [ "any" ], [ "claim" ], [ "?" ], [ "list" ], [ "customer", "detail" ], [ "and" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "had", "VBD" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "policy", "NN" ], [ "but", "CC" ], [ "did", "VBD" ], [ "not", "RB" ], [ "file", "VB" ], [ "any", "DT" ], [ "claim", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "customer", "NN" ], [ "detail", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(2) 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(1) T(1) Filter(7) A(3) C(0) T(1) V(0) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1)" }, { "db_id": "insurance_policies", "query": "SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 2 EXCEPT SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id JOIN Claims AS T3 ON T2.policy_id = T3.policy_id", "query_toks": [ "SELECT", "T1.customer_details", ",", "T1.customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.Customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "2", "EXCEPT", "SELECT", "T1.customer_details", ",", "T1.customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.Customer_id", "=", "T2.customer_id", "JOIN", "Claims", "AS", "T3", "ON", "T2.policy_id", "=", "T3.policy_id" ], "query_toks_no_value": [ "select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value", "except", "select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "claims", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id" ], "question": "Give me the the customer details and id for the customers who had two or more policies but did not file any claims.", "question_toks": [ "give", "me", "customer", "detail", "and", "id", "for", "customer", "who", "had", "two", "or", "more", "policy", "but", "did", "not", "file", "any", "claim", "." ], "sql": { "except": { "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": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "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, 2, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Give", "me", "the", "the", "customer", "details", "and", "id", "for", "the", "customers", "who", "had", "two", "or", "more", "policies", "but", "did", "not", "file", "any", "claims", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "customer", "detail" ], [ "and" ], [ "id" ], [ "for" ], [ "customer" ], [ "who" ], [ "had" ], [ "two" ], [ "or" ], [ "more" ], [ "policy" ], [ "but" ], [ "did" ], [ "not" ], [ "file" ], [ "any" ], [ "claim" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "customer", "NN" ], [ "detail", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "policy", "NN" ], [ "but", "CC" ], [ "did", "VBD" ], [ "not", "RB" ], [ "file", "VB" ], [ "any", "DT" ], [ "claim", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(2) 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(1) T(1) Filter(7) A(3) C(0) T(1) V(0) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1)" }, { "db_id": "insurance_policies", "query": "SELECT Payment_Method_Code , Date_Payment_Made , Amount_Payment FROM Payments ORDER BY Date_Payment_Made ASC", "query_toks": [ "SELECT", "Payment_Method_Code", ",", "Date_Payment_Made", ",", "Amount_Payment", "FROM", "Payments", "ORDER", "BY", "Date_Payment_Made", "ASC" ], "query_toks_no_value": [ "select", "payment_method_code", ",", "date_payment_made", ",", "amount_payment", "from", "payments", "order", "by", "date_payment_made", "asc" ], "question": "List the method, date and amount of all the payments, in ascending order of date.", "question_toks": [ "list", "method", ",", "date", "and", "amount", "of", "all", "payment", ",", "in", "ascending", "order", "of", "date", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 24, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "List", "the", "method", ",", "date", "and", "amount", "of", "all", "the", "payments", ",", "in", "ascending", "order", "of", "date", "." ], "question_arg": [ [ "list" ], [ "method" ], [ "," ], [ "date" ], [ "and" ], [ "amount" ], [ "of" ], [ "all" ], [ "payment" ], [ "," ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "method", "NN" ], [ ",", "," ], [ "date", "NN" ], [ "and", "CC" ], [ "amount", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "payment", "NN" ], [ ",", "," ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "date", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(15) T(4) A(0) C(16) T(4) A(0) C(17) T(4) Order(1) A(0) C(16) T(4)" }, { "db_id": "insurance_policies", "query": "SELECT Payment_Method_Code , Date_Payment_Made , Amount_Payment FROM Payments ORDER BY Date_Payment_Made ASC", "query_toks": [ "SELECT", "Payment_Method_Code", ",", "Date_Payment_Made", ",", "Amount_Payment", "FROM", "Payments", "ORDER", "BY", "Date_Payment_Made", "ASC" ], "query_toks_no_value": [ "select", "payment_method_code", ",", "date_payment_made", ",", "amount_payment", "from", "payments", "order", "by", "date_payment_made", "asc" ], "question": "What are the method, date and amount of each payment? Sort the list in ascending order of date.", "question_toks": [ "what", "are", "method", ",", "date", "and", "amount", "of", "each", "payment", "?", "sort", "list", "in", "ascending", "order", "of", "date", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 24, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "What", "are", "the", "method", ",", "date", "and", "amount", "of", "each", "payment", "?", "Sort", "the", "list", "in", "ascending", "order", "of", "date", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "method" ], [ "," ], [ "date" ], [ "and" ], [ "amount" ], [ "of" ], [ "each" ], [ "payment" ], [ "?" ], [ "sort" ], [ "list" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "method", "JJ" ], [ ",", "," ], [ "date", "NN" ], [ "and", "CC" ], [ "amount", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "payment", "NN" ], [ "?", "." ], [ "sort", "NN" ], [ "list", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "date", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(15) T(4) A(0) C(16) T(4) A(0) C(17) T(4) Order(1) A(0) C(16) T(4)" }, { "db_id": "insurance_policies", "query": "SELECT Amount_Settled , Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1", "query_toks": [ "SELECT", "Amount_Settled", ",", "Amount_Claimed", "FROM", "Claims", "ORDER", "BY", "Amount_Claimed", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "amount_settled", ",", "amount_claimed", "from", "claims", "order", "by", "amount_claimed", "desc", "limit", "value" ], "question": "Among all the claims, what is the settlement amount of the claim with the largest claim amount? List both the settlement amount and claim amount.", "question_toks": [ "among", "all", "claim", ",", "what", "is", "settlement", "amount", "of", "claim", "with", "largest", "claim", "amount", "?", "list", "both", "settlement", "amount", "and", "claim", "amount", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Among", "all", "the", "claims", ",", "what", "is", "the", "settlement", "amount", "of", "the", "claim", "with", "the", "largest", "claim", "amount", "?", "List", "both", "the", "settlement", "amount", "and", "claim", "amount", "." ], "question_arg": [ [ "among" ], [ "all" ], [ "claim" ], [ "," ], [ "what" ], [ "is" ], [ "settlement" ], [ "amount" ], [ "of" ], [ "claim" ], [ "with" ], [ "largest" ], [ "claim" ], [ "amount" ], [ "?" ], [ "list" ], [ "both" ], [ "settlement" ], [ "amount" ], [ "and" ], [ "claim" ], [ "amount" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "among", "IN" ], [ "all", "DT" ], [ "claim", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "settlement", "NN" ], [ "amount", "NN" ], [ "of", "IN" ], [ "claim", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "claim", "NN" ], [ "amount", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "both", "DT" ], [ "settlement", "NN" ], [ "amount", "NN" ], [ "and", "CC" ], [ "claim", "NN" ], [ "amount", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(11) T(2) A(0) C(10) T(2) Sup(0) A(0) C(10) T(2)" }, { "db_id": "insurance_policies", "query": "SELECT Amount_Settled , Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1", "query_toks": [ "SELECT", "Amount_Settled", ",", "Amount_Claimed", "FROM", "Claims", "ORDER", "BY", "Amount_Claimed", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "amount_settled", ",", "amount_claimed", "from", "claims", "order", "by", "amount_claimed", "desc", "limit", "value" ], "question": "Find the settlement amount of the claim with the largest claim amount. Show both the settlement amount and claim amount.", "question_toks": [ "find", "settlement", "amount", "of", "claim", "with", "largest", "claim", "amount", ".", "show", "both", "settlement", "amount", "and", "claim", "amount", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Find", "the", "settlement", "amount", "of", "the", "claim", "with", "the", "largest", "claim", "amount", ".", "Show", "both", "the", "settlement", "amount", "and", "claim", "amount", "." ], "question_arg": [ [ "find" ], [ "settlement" ], [ "amount" ], [ "of" ], [ "claim" ], [ "with" ], [ "largest" ], [ "claim" ], [ "amount" ], [ "." ], [ "show" ], [ "both" ], [ "settlement" ], [ "amount" ], [ "and" ], [ "claim" ], [ "amount" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "settlement", "NN" ], [ "amount", "NN" ], [ "of", "IN" ], [ "claim", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "claim", "NN" ], [ "amount", "NN" ], [ ".", "." ], [ "show", "VB" ], [ "both", "DT" ], [ "settlement", "NN" ], [ "amount", "NN" ], [ "and", "CC" ], [ "claim", "NN" ], [ "amount", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(11) T(2) A(0) C(10) T(2) Sup(0) A(0) C(10) T(2)" }, { "db_id": "insurance_policies", "query": "SELECT Amount_Settled , Amount_Claimed FROM Claims ORDER BY Amount_Settled ASC LIMIT 1", "query_toks": [ "SELECT", "Amount_Settled", ",", "Amount_Claimed", "FROM", "Claims", "ORDER", "BY", "Amount_Settled", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "amount_settled", ",", "amount_claimed", "from", "claims", "order", "by", "amount_settled", "asc", "limit", "value" ], "question": "Among all the claims, what is the amount claimed in the claim with the least amount settled? List both the settlement amount and claim amount.", "question_toks": [ "among", "all", "claim", ",", "what", "is", "amount", "claimed", "in", "claim", "with", "least", "amount", "settled", "?", "list", "both", "settlement", "amount", "and", "claim", "amount", "." ], "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, 13, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Among", "all", "the", "claims", ",", "what", "is", "the", "amount", "claimed", "in", "the", "claim", "with", "the", "least", "amount", "settled", "?", "List", "both", "the", "settlement", "amount", "and", "claim", "amount", "." ], "question_arg": [ [ "among" ], [ "all" ], [ "claim" ], [ "," ], [ "what" ], [ "is" ], [ "amount", "claimed" ], [ "in" ], [ "claim" ], [ "with" ], [ "least" ], [ "amount", "settled" ], [ "?" ], [ "list" ], [ "both" ], [ "settlement" ], [ "amount" ], [ "and" ], [ "claim" ], [ "amount" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "among", "IN" ], [ "all", "DT" ], [ "claim", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "amount", "NN" ], [ "claimed", "VBD" ], [ "in", "IN" ], [ "claim", "NN" ], [ "with", "IN" ], [ "least", "JJS" ], [ "amount", "NN" ], [ "settled", "VBD" ], [ "?", "." ], [ "list", "NN" ], [ "both", "DT" ], [ "settlement", "NN" ], [ "amount", "NN" ], [ "and", "CC" ], [ "claim", "NN" ], [ "amount", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(11) T(2) A(0) C(10) T(2) Sup(1) A(0) C(11) T(2)" }, { "db_id": "insurance_policies", "query": "SELECT Amount_Settled , Amount_Claimed FROM Claims ORDER BY Amount_Settled ASC LIMIT 1", "query_toks": [ "SELECT", "Amount_Settled", ",", "Amount_Claimed", "FROM", "Claims", "ORDER", "BY", "Amount_Settled", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "amount_settled", ",", "amount_claimed", "from", "claims", "order", "by", "amount_settled", "asc", "limit", "value" ], "question": "Find the claimed amount in the claim with the least amount settled. Show both the settlement amount and claim amount.", "question_toks": [ "find", "claimed", "amount", "in", "claim", "with", "least", "amount", "settled", ".", "show", "both", "settlement", "amount", "and", "claim", "amount", "." ], "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, 13, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Find", "the", "claimed", "amount", "in", "the", "claim", "with", "the", "least", "amount", "settled", ".", "Show", "both", "the", "settlement", "amount", "and", "claim", "amount", "." ], "question_arg": [ [ "find" ], [ "amount", "claimed" ], [ "in" ], [ "claim" ], [ "with" ], [ "least" ], [ "amount", "settled" ], [ "." ], [ "show" ], [ "both" ], [ "settlement" ], [ "amount" ], [ "and" ], [ "claim" ], [ "amount" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "RB" ], [ "claimed", "JJ" ], [ "amount", "NN" ], [ "in", "IN" ], [ "claim", "NN" ], [ "with", "IN" ], [ "least", "JJS" ], [ "amount", "NN" ], [ "settled", "VBD" ], [ ".", "." ], [ "show", "VB" ], [ "both", "DT" ], [ "settlement", "NN" ], [ "amount", "NN" ], [ "and", "CC" ], [ "claim", "NN" ], [ "amount", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(11) T(2) A(0) C(10) T(2) Sup(1) A(0) C(11) T(2)" }, { "db_id": "insurance_policies", "query": "SELECT Date_Claim_Made , Date_Claim_Settled FROM Claims WHERE Amount_Claimed > ( SELECT avg(Amount_Claimed) FROM Claims )", "query_toks": [ "SELECT", "Date_Claim_Made", ",", "Date_Claim_Settled", "FROM", "Claims", "WHERE", "Amount_Claimed", ">", "(", "SELECT", "avg", "(", "Amount_Claimed", ")", "FROM", "Claims", ")" ], "query_toks_no_value": [ "select", "date_claim_made", ",", "date_claim_settled", "from", "claims", "where", "amount_claimed", ">", "(", "select", "avg", "(", "amount_claimed", ")", "from", "claims", ")" ], "question": "Among all the claims, which claims have a claimed amount larger than the average? List the date the claim was made and the date it was settled.", "question_toks": [ "among", "all", "claim", ",", "which", "claim", "have", "a", "claimed", "amount", "larger", "than", "average", "?", "list", "date", "claim", "wa", "made", "and", "date", "it", "wa", "settled", "." ], "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 ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 12, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Among", "all", "the", "claims", ",", "which", "claims", "have", "a", "claimed", "amount", "larger", "than", "the", "average", "?", "List", "the", "date", "the", "claim", "was", "made", "and", "the", "date", "it", "was", "settled", "." ], "question_arg": [ [ "among" ], [ "all" ], [ "claim" ], [ "," ], [ "which" ], [ "claim" ], [ "have" ], [ "a" ], [ "amount", "claimed" ], [ "larger" ], [ "than" ], [ "average" ], [ "?" ], [ "list" ], [ "date" ], [ "claim" ], [ "wa" ], [ "made" ], [ "and" ], [ "date" ], [ "it" ], [ "wa" ], [ "settled" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "among", "IN" ], [ "all", "DT" ], [ "claim", "NN" ], [ ",", "," ], [ "which", "WDT" ], [ "claim", "VBP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "claimed", "JJ" ], [ "amount", "NN" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "date", "NN" ], [ "claim", "NN" ], [ "wa", "NN" ], [ "made", "VBN" ], [ "and", "CC" ], [ "date", "NN" ], [ "it", "PRP" ], [ "wa", "VBD" ], [ "settled", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(2) A(0) C(9) T(2) Filter(13) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(5) C(10) T(2)" }, { "db_id": "insurance_policies", "query": "SELECT Date_Claim_Made , Date_Claim_Settled FROM Claims WHERE Amount_Claimed > ( SELECT avg(Amount_Claimed) FROM Claims )", "query_toks": [ "SELECT", "Date_Claim_Made", ",", "Date_Claim_Settled", "FROM", "Claims", "WHERE", "Amount_Claimed", ">", "(", "SELECT", "avg", "(", "Amount_Claimed", ")", "FROM", "Claims", ")" ], "query_toks_no_value": [ "select", "date_claim_made", ",", "date_claim_settled", "from", "claims", "where", "amount_claimed", ">", "(", "select", "avg", "(", "amount_claimed", ")", "from", "claims", ")" ], "question": "Give me the claim date, settlement date for all the claims whose claimed amount is larger than the average.", "question_toks": [ "give", "me", "claim", "date", ",", "settlement", "date", "for", "all", "claim", "whose", "claimed", "amount", "is", "larger", "than", "average", "." ], "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 ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 12, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Give", "me", "the", "claim", "date", ",", "settlement", "date", "for", "all", "the", "claims", "whose", "claimed", "amount", "is", "larger", "than", "the", "average", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "claim" ], [ "date" ], [ "," ], [ "settlement" ], [ "date" ], [ "for" ], [ "all" ], [ "claim" ], [ "whose" ], [ "amount", "claimed" ], [ "is" ], [ "larger" ], [ "than" ], [ "average" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "claim", "NN" ], [ "date", "NN" ], [ ",", "," ], [ "settlement", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "claim", "NN" ], [ "whose", "WP$" ], [ "claimed", "JJ" ], [ "amount", "NN" ], [ "is", "VBZ" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(2) A(0) C(9) T(2) Filter(13) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(5) C(10) T(2)" }, { "db_id": "insurance_policies", "query": "SELECT Date_Claim_Made FROM Claims WHERE Amount_Settled <= ( SELECT avg(Amount_Settled) FROM Claims )", "query_toks": [ "SELECT", "Date_Claim_Made", "FROM", "Claims", "WHERE", "Amount_Settled", "<", "=", "(", "SELECT", "avg", "(", "Amount_Settled", ")", "FROM", "Claims", ")" ], "query_toks_no_value": [ "select", "date_claim_made", "from", "claims", "where", "amount_settled", "<", "=", "(", "select", "avg", "(", "amount_settled", ")", "from", "claims", ")" ], "question": "Among all the claims, which settlements have a claimed amount that is no more than the average? List the claim start date.", "question_toks": [ "among", "all", "claim", ",", "which", "settlement", "have", "a", "claimed", "amount", "that", "is", "no", "more", "than", "average", "?", "list", "claim", "start", "date", "." ], "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, 6, [ 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": [] }, null ] ] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Among", "all", "the", "claims", ",", "which", "settlements", "have", "a", "claimed", "amount", "that", "is", "no", "more", "than", "the", "average", "?", "List", "the", "claim", "start", "date", "." ], "question_arg": [ [ "among" ], [ "all" ], [ "claim" ], [ "," ], [ "which" ], [ "settlement" ], [ "have" ], [ "a" ], [ "amount", "claimed" ], [ "that" ], [ "is" ], [ "no" ], [ "more" ], [ "than" ], [ "average" ], [ "?" ], [ "list" ], [ "claim" ], [ "start", "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "among", "IN" ], [ "all", "DT" ], [ "claim", "NN" ], [ ",", "," ], [ "which", "WDT" ], [ "settlement", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "claimed", "JJ" ], [ "amount", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "no", "DT" ], [ "more", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "claim", "NN" ], [ "start", "NN" ], [ "date", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(17) A(0) C(11) T(2) Root(5) Sel(0) N(0) A(5) C(11) T(2)" }, { "db_id": "insurance_policies", "query": "SELECT Date_Claim_Made FROM Claims WHERE Amount_Settled <= ( SELECT avg(Amount_Settled) FROM Claims )", "query_toks": [ "SELECT", "Date_Claim_Made", "FROM", "Claims", "WHERE", "Amount_Settled", "<", "=", "(", "SELECT", "avg", "(", "Amount_Settled", ")", "FROM", "Claims", ")" ], "query_toks_no_value": [ "select", "date_claim_made", "from", "claims", "where", "amount_settled", "<", "=", "(", "select", "avg", "(", "amount_settled", ")", "from", "claims", ")" ], "question": "Return the claim start date for the claims whose claimed amount is no more than the average", "question_toks": [ "return", "claim", "start", "date", "for", "claim", "whose", "claimed", "amount", "is", "no", "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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 6, [ 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": [] }, null ] ] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Return", "the", "claim", "start", "date", "for", "the", "claims", "whose", "claimed", "amount", "is", "no", "more", "than", "the", "average" ], "question_arg": [ [ "return" ], [ "claim" ], [ "start", "date" ], [ "for" ], [ "claim" ], [ "whose" ], [ "amount", "claimed" ], [ "is" ], [ "no" ], [ "more" ], [ "than" ], [ "average" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ] ], "nltk_pos": [ [ "return", "NN" ], [ "claim", "NN" ], [ "start", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "claim", "NN" ], [ "whose", "WP$" ], [ "claimed", "JJ" ], [ "amount", "NN" ], [ "is", "VBZ" ], [ "no", "DT" ], [ "more", "JJR" ], [ "than", "IN" ], [ "average", "NN" ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(17) A(0) C(11) T(2) Root(5) Sel(0) N(0) A(5) C(11) T(2)" }, { "db_id": "insurance_policies", "query": "SELECT T1.Claim_id , count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id", "query_toks": [ "SELECT", "T1.Claim_id", ",", "count", "(", "*", ")", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1.claim_id", "=", "T2.claim_id", "GROUP", "BY", "T1.claim_id" ], "query_toks_no_value": [ "select", "t1", ".", "claim_id", ",", "count", "(", "*", ")", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id" ], "question": "How many settlements does each claim correspond to? List the claim id and the number of settlements.", "question_toks": [ "how", "many", "settlement", "doe", "each", "claim", "correspond", "to", "?", "list", "claim", "id", "and", "number", "of", "settlement", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "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": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "How", "many", "settlements", "does", "each", "claim", "correspond", "to", "?", "List", "the", "claim", "id", "and", "the", "number", "of", "settlements", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "settlement" ], [ "doe" ], [ "each" ], [ "claim" ], [ "correspond" ], [ "to" ], [ "?" ], [ "list" ], [ "claim", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "settlement" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "settlement", "NN" ], [ "doe", "VBZ" ], [ "each", "DT" ], [ "claim", "NN" ], [ "correspond", "NN" ], [ "to", "TO" ], [ "?", "." ], [ "list", "NN" ], [ "claim", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "settlement", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(2) A(3) C(0) T(3)" }, { "db_id": "insurance_policies", "query": "SELECT T1.Claim_id , count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id", "query_toks": [ "SELECT", "T1.Claim_id", ",", "count", "(", "*", ")", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1.claim_id", "=", "T2.claim_id", "GROUP", "BY", "T1.claim_id" ], "query_toks_no_value": [ "select", "t1", ".", "claim_id", ",", "count", "(", "*", ")", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id" ], "question": "Find the number of settlements each claim corresponds to. Show the number together with the claim id.", "question_toks": [ "find", "number", "of", "settlement", "each", "claim", "corresponds", "to", ".", "show", "number", "together", "with", "claim", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "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": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Find", "the", "number", "of", "settlements", "each", "claim", "corresponds", "to", ".", "Show", "the", "number", "together", "with", "the", "claim", "id", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "settlement" ], [ "each" ], [ "claim" ], [ "corresponds" ], [ "to" ], [ "." ], [ "show" ], [ "number" ], [ "together" ], [ "with" ], [ "claim", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "settlement", "NN" ], [ "each", "DT" ], [ "claim", "NN" ], [ "corresponds", "VBZ" ], [ "to", "TO" ], [ ".", "." ], [ "show", "VB" ], [ "number", "NN" ], [ "together", "RB" ], [ "with", "IN" ], [ "claim", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(2) A(3) C(0) T(3)" }, { "db_id": "insurance_policies", "query": "SELECT T1.claim_id , T1.date_claim_made , count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.claim_id", ",", "T1.date_claim_made", ",", "count", "(", "*", ")", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1.claim_id", "=", "T2.claim_id", "GROUP", "BY", "T1.claim_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "claim_id", ",", "t1", ".", "date_claim_made", ",", "count", "(", "*", ")", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number.", "question_toks": [ "which", "claim", "incurred", "most", "number", "of", "settlement", "?", "list", "claim", "id", ",", "date", "claim", "wa", "made", ",", "and", "number", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Which", "claim", "incurred", "the", "most", "number", "of", "settlements", "?", "List", "the", "claim", "id", ",", "the", "date", "the", "claim", "was", "made", ",", "and", "the", "number", "." ], "question_arg": [ [ "which" ], [ "claim" ], [ "incurred" ], [ "most" ], [ "number" ], [ "of" ], [ "settlement" ], [ "?" ], [ "list" ], [ "claim", "id" ], [ "," ], [ "date" ], [ "claim" ], [ "wa" ], [ "made" ], [ "," ], [ "and" ], [ "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "claim", "NN" ], [ "incurred", "VBD" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "settlement", "NN" ], [ "?", "." ], [ "list", "JJ" ], [ "claim", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "date", "NN" ], [ "claim", "NN" ], [ "wa", "NN" ], [ "made", "VBN" ], [ ",", "," ], [ "and", "CC" ], [ "number", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(7) T(2) A(0) C(8) T(2) A(3) C(0) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "insurance_policies", "query": "SELECT T1.claim_id , T1.date_claim_made , count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.claim_id", ",", "T1.date_claim_made", ",", "count", "(", "*", ")", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1.claim_id", "=", "T2.claim_id", "GROUP", "BY", "T1.claim_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "claim_id", ",", "t1", ".", "date_claim_made", ",", "count", "(", "*", ")", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the claim id and claim date of the claim that incurred the most settlement count. Also tell me the count.", "question_toks": [ "find", "claim", "id", "and", "claim", "date", "of", "claim", "that", "incurred", "most", "settlement", "count", ".", "also", "tell", "me", "count", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Find", "the", "claim", "id", "and", "claim", "date", "of", "the", "claim", "that", "incurred", "the", "most", "settlement", "count", ".", "Also", "tell", "me", "the", "count", "." ], "question_arg": [ [ "find" ], [ "claim", "id" ], [ "and" ], [ "claim" ], [ "date" ], [ "of" ], [ "claim" ], [ "that" ], [ "incurred" ], [ "most" ], [ "settlement" ], [ "count" ], [ "." ], [ "also" ], [ "tell" ], [ "me" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "claim", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "claim", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "claim", "NN" ], [ "that", "WDT" ], [ "incurred", "VBD" ], [ "most", "RBS" ], [ "settlement", "NN" ], [ "count", "NN" ], [ ".", "." ], [ "also", "RB" ], [ "tell", "VBP" ], [ "me", "PRP" ], [ "count", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(7) T(2) A(0) C(8) T(2) A(3) C(0) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "insurance_policies", "query": "SELECT count(*) , T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.claim_id", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1.claim_id", "=", "T2.claim_id", "GROUP", "BY", "T1.claim_id", "ORDER", "BY", "T1.Date_Claim_Settled", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "claim_id", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id", "order", "by", "t1", ".", "date_claim_settled", "desc", "limit", "value" ], "question": "How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id.", "question_toks": [ "how", "many", "settlement", "were", "made", "on", "claim", "with", "most", "recent", "claim", "settlement", "date", "?", "list", "number", "and", "claim", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "How", "many", "settlements", "were", "made", "on", "the", "claim", "with", "the", "most", "recent", "claim", "settlement", "date", "?", "List", "the", "number", "and", "the", "claim", "id", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "settlement" ], [ "were" ], [ "made" ], [ "on" ], [ "claim" ], [ "with" ], [ "most" ], [ "recent" ], [ "claim" ], [ "settlement" ], [ "date" ], [ "?" ], [ "list" ], [ "number" ], [ "and" ], [ "claim", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "settlement", "NN" ], [ "were", "VBD" ], [ "made", "VBN" ], [ "on", "IN" ], [ "claim", "NN" ], [ "with", "IN" ], [ "most", "RBS" ], [ "recent", "JJ" ], [ "claim", "NN" ], [ "settlement", "NN" ], [ "date", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "claim", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(3) C(0) T(3) A(0) C(7) T(2) Sup(0) A(0) C(9) T(2)" }, { "db_id": "insurance_policies", "query": "SELECT count(*) , T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.claim_id", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1.claim_id", "=", "T2.claim_id", "GROUP", "BY", "T1.claim_id", "ORDER", "BY", "T1.Date_Claim_Settled", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "claim_id", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id", "order", "by", "t1", ".", "date_claim_settled", "desc", "limit", "value" ], "question": "Find the claim id and the number of settlements made for the claim with the most recent settlement date.", "question_toks": [ "find", "claim", "id", "and", "number", "of", "settlement", "made", "for", "claim", "with", "most", "recent", "settlement", "date", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Find", "the", "claim", "id", "and", "the", "number", "of", "settlements", "made", "for", "the", "claim", "with", "the", "most", "recent", "settlement", "date", "." ], "question_arg": [ [ "find" ], [ "claim", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "settlement" ], [ "made" ], [ "for" ], [ "claim" ], [ "with" ], [ "most" ], [ "recent" ], [ "settlement" ], [ "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "claim", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "settlement", "NN" ], [ "made", "VBN" ], [ "for", "IN" ], [ "claim", "NN" ], [ "with", "IN" ], [ "most", "RBS" ], [ "recent", "JJ" ], [ "settlement", "NN" ], [ "date", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(3) C(0) T(3) A(0) C(7) T(2) Sup(0) A(0) C(9) T(2)" }, { "db_id": "insurance_policies", "query": "SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made ASC LIMIT 1", "query_toks": [ "SELECT", "Date_Claim_Made", "FROM", "Claims", "ORDER", "BY", "Date_Claim_Made", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "date_claim_made", "from", "claims", "order", "by", "date_claim_made", "asc", "limit", "value" ], "question": "Of all the claims, what was the earliest date when any claim was made?", "question_toks": [ "of", "all", "claim", ",", "what", "wa", "earliest", "date", "when", "any", "claim", "wa", "made", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Of", "all", "the", "claims", ",", "what", "was", "the", "earliest", "date", "when", "any", "claim", "was", "made", "?" ], "question_arg": [ [ "of" ], [ "all" ], [ "claim" ], [ "," ], [ "what" ], [ "wa" ], [ "earliest" ], [ "date" ], [ "when" ], [ "any" ], [ "claim" ], [ "wa" ], [ "made" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "of", "IN" ], [ "all", "DT" ], [ "claim", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "wa", "VBD" ], [ "earliest", "JJS" ], [ "date", "NN" ], [ "when", "WRB" ], [ "any", "DT" ], [ "claim", "NN" ], [ "wa", "NN" ], [ "made", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(2) Sup(1) A(0) C(8) T(2)" }, { "db_id": "insurance_policies", "query": "SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made ASC LIMIT 1", "query_toks": [ "SELECT", "Date_Claim_Made", "FROM", "Claims", "ORDER", "BY", "Date_Claim_Made", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "date_claim_made", "from", "claims", "order", "by", "date_claim_made", "asc", "limit", "value" ], "question": "Tell me the the date when the first claim was made.", "question_toks": [ "tell", "me", "date", "when", "first", "claim", "wa", "made", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Tell", "me", "the", "the", "date", "when", "the", "first", "claim", "was", "made", "." ], "question_arg": [ [ "tell" ], [ "me" ], [ "date" ], [ "when" ], [ "first" ], [ "claim" ], [ "wa" ], [ "made" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "tell", "VB" ], [ "me", "PRP" ], [ "date", "NN" ], [ "when", "WRB" ], [ "first", "JJ" ], [ "claim", "NN" ], [ "wa", "NN" ], [ "made", "VBD" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(2) Sup(1) A(0) C(8) T(2)" }, { "db_id": "insurance_policies", "query": "SELECT sum(Amount_Settled) FROM Settlements", "query_toks": [ "SELECT", "sum", "(", "Amount_Settled", ")", "FROM", "Settlements" ], "query_toks_no_value": [ "select", "sum", "(", "amount_settled", ")", "from", "settlements" ], "question": "What is the total amount of settlement made for all the settlements?", "question_toks": [ "what", "is", "total", "amount", "of", "settlement", "made", "for", "all", "settlement", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "What", "is", "the", "total", "amount", "of", "settlement", "made", "for", "all", "the", "settlements", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "amount" ], [ "of" ], [ "settlement" ], [ "made" ], [ "for" ], [ "all" ], [ "settlement" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "settlement", "NN" ], [ "made", "VBN" ], [ "for", "IN" ], [ "all", "DT" ], [ "settlement", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(11) T(3)" }, { "db_id": "insurance_policies", "query": "SELECT sum(Amount_Settled) FROM Settlements", "query_toks": [ "SELECT", "sum", "(", "Amount_Settled", ")", "FROM", "Settlements" ], "query_toks_no_value": [ "select", "sum", "(", "amount_settled", ")", "from", "settlements" ], "question": "Compute the total amount of settlement across all the settlements.", "question_toks": [ "compute", "total", "amount", "of", "settlement", "across", "all", "settlement", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Compute", "the", "total", "amount", "of", "settlement", "across", "all", "the", "settlements", "." ], "question_arg": [ [ "compute" ], [ "total" ], [ "amount" ], [ "of" ], [ "settlement" ], [ "across" ], [ "all" ], [ "settlement" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "compute", "NN" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "settlement", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "settlement", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(11) T(3)" }, { "db_id": "insurance_policies", "query": "SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id GROUP BY T1.customer_id HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.customer_details", ",", "T1.customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.Customer_id", "=", "T2.Customer_id", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Who are the customers that had more than 1 policy? List the customer details and id.", "question_toks": [ "who", "are", "customer", "that", "had", "more", "than", "1", "policy", "?", "list", "customer", "detail", "and", "id", "." ], "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": [ [ 0, 1, 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 ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Who", "are", "the", "customers", "that", "had", "more", "than", "1", "policy", "?", "List", "the", "customer", "details", "and", "id", "." ], "question_arg": [ [ "who" ], [ "are" ], [ "customer" ], [ "that" ], [ "had" ], [ "more" ], [ "than" ], [ "1" ], [ "policy" ], [ "?" ], [ "list" ], [ "customer", "detail" ], [ "and" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "customer", "NN" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1", "CD" ], [ "policy", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "customer", "NN" ], [ "detail", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) 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(1) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "insurance_policies", "query": "SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id GROUP BY T1.customer_id HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.customer_details", ",", "T1.customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.Customer_id", "=", "T2.Customer_id", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the the customer details and id for the customers who had more than one policy.", "question_toks": [ "find", "customer", "detail", "and", "id", "for", "customer", "who", "had", "more", "than", "one", "policy", "." ], "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": [ [ 0, 1, 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 ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Find", "the", "the", "customer", "details", "and", "id", "for", "the", "customers", "who", "had", "more", "than", "one", "policy", "." ], "question_arg": [ [ "find" ], [ "customer", "detail" ], [ "and" ], [ "id" ], [ "for" ], [ "customer" ], [ "who" ], [ "had" ], [ "more" ], [ "than" ], [ "one" ], [ "policy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "customer", "NN" ], [ "detail", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "policy", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) 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(1) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "insurance_policies", "query": "SELECT Date_Claim_Made , Date_Claim_Settled FROM Settlements", "query_toks": [ "SELECT", "Date_Claim_Made", ",", "Date_Claim_Settled", "FROM", "Settlements" ], "query_toks_no_value": [ "select", "date_claim_made", ",", "date_claim_settled", "from", "settlements" ], "question": "What are the claim dates and settlement dates of all the settlements?", "question_toks": [ "what", "are", "claim", "date", "and", "settlement", "date", "of", "all", "settlement", "?" ], "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": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "What", "are", "the", "claim", "dates", "and", "settlement", "dates", "of", "all", "the", "settlements", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "claim" ], [ "date" ], [ "and" ], [ "settlement" ], [ "date" ], [ "of" ], [ "all" ], [ "settlement" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "claim", "JJ" ], [ "date", "NN" ], [ "and", "CC" ], [ "settlement", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "settlement", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(3) A(0) C(9) T(3)" }, { "db_id": "insurance_policies", "query": "SELECT Date_Claim_Made , Date_Claim_Settled FROM Settlements", "query_toks": [ "SELECT", "Date_Claim_Made", ",", "Date_Claim_Settled", "FROM", "Settlements" ], "query_toks_no_value": [ "select", "date_claim_made", ",", "date_claim_settled", "from", "settlements" ], "question": "Tell me the the claim date and settlement date for each settlement case.", "question_toks": [ "tell", "me", "claim", "date", "and", "settlement", "date", "for", "each", "settlement", "case", "." ], "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": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Tell", "me", "the", "the", "claim", "date", "and", "settlement", "date", "for", "each", "settlement", "case", "." ], "question_arg": [ [ "tell" ], [ "me" ], [ "claim" ], [ "date" ], [ "and" ], [ "settlement" ], [ "date" ], [ "for" ], [ "each" ], [ "settlement" ], [ "case" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "tell", "VB" ], [ "me", "PRP" ], [ "claim", "NN" ], [ "date", "NN" ], [ "and", "CC" ], [ "settlement", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "settlement", "NN" ], [ "case", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(3) A(0) C(9) T(3)" }, { "db_id": "insurance_policies", "query": "SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Payment_Method_Code", "FROM", "Payments", "GROUP", "BY", "Payment_Method_Code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "payment_method_code", "from", "payments", "group", "by", "payment_method_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most popular payment method?", "question_toks": [ "what", "is", "most", "popular", "payment", "method", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "What", "is", "the", "most", "popular", "payment", "method", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "popular" ], [ "payment" ], [ "method" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "popular", "JJ" ], [ "payment", "NN" ], [ "method", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(15) T(4) Sup(0) A(3) C(0) T(4)" }, { "db_id": "insurance_policies", "query": "SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Payment_Method_Code", "FROM", "Payments", "GROUP", "BY", "Payment_Method_Code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "payment_method_code", "from", "payments", "group", "by", "payment_method_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which payment method is used the most often?", "question_toks": [ "which", "payment", "method", "is", "used", "most", "often", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Which", "payment", "method", "is", "used", "the", "most", "often", "?" ], "question_arg": [ [ "which" ], [ "payment" ], [ "method" ], [ "is" ], [ "used" ], [ "most" ], [ "often" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "payment", "NN" ], [ "method", "NN" ], [ "is", "VBZ" ], [ "used", "VBN" ], [ "most", "RBS" ], [ "often", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(15) T(4) Sup(0) A(3) C(0) T(4)" }, { "db_id": "insurance_policies", "query": "SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "Payment_Method_Code", "FROM", "Payments", "GROUP", "BY", "Payment_Method_Code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "payment_method_code", "from", "payments", "group", "by", "payment_method_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "With which kind of payment method were the least number of payments processed?", "question_toks": [ "with", "which", "kind", "of", "payment", "method", "were", "least", "number", "of", "payment", "processed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "With", "which", "kind", "of", "payment", "method", "were", "the", "least", "number", "of", "payments", "processed", "?" ], "question_arg": [ [ "with" ], [ "which" ], [ "kind" ], [ "of" ], [ "payment" ], [ "method" ], [ "were" ], [ "least" ], [ "number" ], [ "of" ], [ "payment" ], [ "processed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "with", "IN" ], [ "which", "WDT" ], [ "kind", "NN" ], [ "of", "IN" ], [ "payment", "NN" ], [ "method", "NN" ], [ "were", "VBD" ], [ "least", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "payment", "NN" ], [ "processed", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(15) T(4) Sup(1) A(3) C(0) T(4)" }, { "db_id": "insurance_policies", "query": "SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "Payment_Method_Code", "FROM", "Payments", "GROUP", "BY", "Payment_Method_Code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "payment_method_code", "from", "payments", "group", "by", "payment_method_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "What is the payment method that were used the least often?", "question_toks": [ "what", "is", "payment", "method", "that", "were", "used", "least", "often", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "What", "is", "the", "payment", "method", "that", "were", "used", "the", "least", "often", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "payment" ], [ "method" ], [ "that" ], [ "were" ], [ "used" ], [ "least" ], [ "often" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "payment", "NN" ], [ "method", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "used", "VBN" ], [ "least", "JJS" ], [ "often", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(15) T(4) Sup(1) A(3) C(0) T(4)" }, { "db_id": "insurance_policies", "query": "SELECT sum(Amount_Payment) FROM Payments", "query_toks": [ "SELECT", "sum", "(", "Amount_Payment", ")", "FROM", "Payments" ], "query_toks_no_value": [ "select", "sum", "(", "amount_payment", ")", "from", "payments" ], "question": "What is the total amount of payment?", "question_toks": [ "what", "is", "total", "amount", "of", "payment", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "What", "is", "the", "total", "amount", "of", "payment", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "amount" ], [ "of" ], [ "payment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "payment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(17) T(4)" }, { "db_id": "insurance_policies", "query": "SELECT sum(Amount_Payment) FROM Payments", "query_toks": [ "SELECT", "sum", "(", "Amount_Payment", ")", "FROM", "Payments" ], "query_toks_no_value": [ "select", "sum", "(", "amount_payment", ")", "from", "payments" ], "question": "Compute the total amount of payment processed.", "question_toks": [ "compute", "total", "amount", "of", "payment", "processed", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Compute", "the", "total", "amount", "of", "payment", "processed", "." ], "question_arg": [ [ "compute" ], [ "total" ], [ "amount" ], [ "of" ], [ "payment" ], [ "processed" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "compute", "NN" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "payment", "NN" ], [ "processed", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(17) T(4)" }, { "db_id": "insurance_policies", "query": "SELECT DISTINCT customer_details FROM Customers", "query_toks": [ "SELECT", "DISTINCT", "customer_details", "FROM", "Customers" ], "query_toks_no_value": [ "select", "distinct", "customer_details", "from", "customers" ], "question": "What are all the distinct details of the customers?", "question_toks": [ "what", "are", "all", "distinct", "detail", "of", "customer", "?" ], "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": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "What", "are", "all", "the", "distinct", "details", "of", "the", "customers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "distinct" ], [ "detail" ], [ "of" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "detail", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(2) T(0)" }, { "db_id": "insurance_policies", "query": "SELECT DISTINCT customer_details FROM Customers", "query_toks": [ "SELECT", "DISTINCT", "customer_details", "FROM", "Customers" ], "query_toks_no_value": [ "select", "distinct", "customer_details", "from", "customers" ], "question": "Return the distinct customer details.", "question_toks": [ "return", "distinct", "customer", "detail", "." ], "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": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Return", "the", "distinct", "customer", "details", "." ], "question_arg": [ [ "return" ], [ "distinct" ], [ "customer", "detail" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "distinct", "JJ" ], [ "customer", "NN" ], [ "detail", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(2) T(0)" }, { "db_id": "insurance_policies", "query": "SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Policy_Type_Code", "FROM", "Customer_Policies", "GROUP", "BY", "Policy_Type_Code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "policy_type_code", "from", "customer_policies", "group", "by", "policy_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which kind of policy type was chosen by the most customers?", "question_toks": [ "which", "kind", "of", "policy", "type", "wa", "chosen", "by", "most", "customer", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Which", "kind", "of", "policy", "type", "was", "chosen", "by", "the", "most", "customers", "?" ], "question_arg": [ [ "which" ], [ "kind" ], [ "of" ], [ "policy", "type", "code" ], [ "wa" ], [ "chosen" ], [ "by" ], [ "most" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "kind", "NN" ], [ "of", "IN" ], [ "policy", "NN" ], [ "type", "NN" ], [ "wa", "NN" ], [ "chosen", "VBN" ], [ "by", "IN" ], [ "most", "JJS" ], [ "customer", "NN" ], [ "?", "." ] ], "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": "insurance_policies", "query": "SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Policy_Type_Code", "FROM", "Customer_Policies", "GROUP", "BY", "Policy_Type_Code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "policy_type_code", "from", "customer_policies", "group", "by", "policy_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the policy type the most customers choose.", "question_toks": [ "find", "policy", "type", "most", "customer", "choose", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Find", "the", "policy", "type", "the", "most", "customers", "choose", "." ], "question_arg": [ [ "find" ], [ "policy", "type", "code" ], [ "most" ], [ "customer" ], [ "choose" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "policy", "NN" ], [ "type", "NN" ], [ "most", "RBS" ], [ "customer", "NN" ], [ "choose", "NN" ], [ ".", "." ] ], "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": "insurance_policies", "query": "SELECT count(*) FROM Settlements", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Settlements" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "settlements" ], "question": "How many settlements are there in total?", "question_toks": [ "how", "many", "settlement", "are", "there", "in", "total", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "How", "many", "settlements", "are", "there", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "settlement" ], [ "are" ], [ "there" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "settlement", "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(3)" }, { "db_id": "insurance_policies", "query": "SELECT count(*) FROM Settlements", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Settlements" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "settlements" ], "question": "Count the total number of settlements made.", "question_toks": [ "count", "total", "number", "of", "settlement", "made", "." ], "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 details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Count", "the", "total", "number", "of", "settlements", "made", "." ], "question_arg": [ [ "count" ], [ "total" ], [ "number" ], [ "of" ], [ "settlement" ], [ "made" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "settlement", "NN" ], [ "made", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "insurance_policies", "query": "SELECT Payment_ID , Date_Payment_Made , Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa'", "query_toks": [ "SELECT", "Payment_ID", ",", "Date_Payment_Made", ",", "Amount_Payment", "FROM", "Payments", "WHERE", "Payment_Method_Code", "=", "'Visa", "'" ], "query_toks_no_value": [ "select", "payment_id", ",", "date_payment_made", ",", "amount_payment", "from", "payments", "where", "payment_method_code", "=", "value" ], "question": "Which Payments were processed with Visa? List the payment Id, the date and the amount.", "question_toks": [ "which", "payment", "were", "processed", "with", "visa", "?", "list", "payment", "id", ",", "date", "and", "amount", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Visa\"", null ] ] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Which", "Payments", "were", "processed", "with", "Visa", "?", "List", "the", "payment", "Id", ",", "the", "date", "and", "the", "amount", "." ], "question_arg": [ [ "which" ], [ "payment" ], [ "were" ], [ "processed" ], [ "with" ], [ "visa" ], [ "?" ], [ "list" ], [ "payment", "id" ], [ "," ], [ "date" ], [ "and" ], [ "amount" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "payment", "NN" ], [ "were", "VBD" ], [ "processed", "VBN" ], [ "with", "IN" ], [ "visa", "NNS" ], [ "?", "." ], [ "list", "JJ" ], [ "payment", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "date", "NN" ], [ "and", "CC" ], [ "amount", "NN" ], [ ".", "." ] ], "values": [ "Visa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(14) T(4) A(0) C(16) T(4) A(0) C(17) T(4) Filter(2) A(0) C(15) T(4) V(0)" }, { "db_id": "insurance_policies", "query": "SELECT Payment_ID , Date_Payment_Made , Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa'", "query_toks": [ "SELECT", "Payment_ID", ",", "Date_Payment_Made", ",", "Amount_Payment", "FROM", "Payments", "WHERE", "Payment_Method_Code", "=", "'Visa", "'" ], "query_toks_no_value": [ "select", "payment_id", ",", "date_payment_made", ",", "amount_payment", "from", "payments", "where", "payment_method_code", "=", "value" ], "question": "Give me the payment Id, the date and the amount for all the payments processed with Visa.", "question_toks": [ "give", "me", "payment", "id", ",", "date", "and", "amount", "for", "all", "payment", "processed", "with", "visa", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Visa\"", null ] ] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Give", "me", "the", "payment", "Id", ",", "the", "date", "and", "the", "amount", "for", "all", "the", "payments", "processed", "with", "Visa", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "payment", "id" ], [ "," ], [ "date" ], [ "and" ], [ "amount" ], [ "for" ], [ "all" ], [ "payment" ], [ "processed" ], [ "with" ], [ "visa" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "payment", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "date", "NN" ], [ "and", "CC" ], [ "amount", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "payment", "NN" ], [ "processed", "VBN" ], [ "with", "IN" ], [ "visa", "NN" ], [ ".", "." ] ], "values": [ "Visa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(14) T(4) A(0) C(16) T(4) A(0) C(17) T(4) Filter(2) A(0) C(15) T(4) V(0)" }, { "db_id": "insurance_policies", "query": "SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id = T2.customer_id", "query_toks": [ "SELECT", "customer_details", "FROM", "Customers", "EXCEPT", "SELECT", "T1.customer_details", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id" ], "query_toks_no_value": [ "select", "customer_details", "from", "customers", "except", "select", "t1", ".", "customer_details", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id" ], "question": "List the details of the customers who do not have any policies.", "question_toks": [ "list", "detail", "of", "customer", "who", "do", "not", "have", "any", "policy", "." ], "sql": { "except": { "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": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "List", "the", "details", "of", "the", "customers", "who", "do", "not", "have", "any", "policies", "." ], "question_arg": [ [ "list" ], [ "detail" ], [ "of" ], [ "customer" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "policy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "detail", "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(1)" }, { "db_id": "insurance_policies", "query": "SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id = T2.customer_id", "query_toks": [ "SELECT", "customer_details", "FROM", "Customers", "EXCEPT", "SELECT", "T1.customer_details", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id" ], "query_toks_no_value": [ "select", "customer_details", "from", "customers", "except", "select", "t1", ".", "customer_details", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id" ], "question": "Which customers do not have any policies? Find the details of these customers.", "question_toks": [ "which", "customer", "do", "not", "have", "any", "policy", "?", "find", "detail", "of", "these", "customer", "." ], "sql": { "except": { "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": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Which", "customers", "do", "not", "have", "any", "policies", "?", "Find", "the", "details", "of", "these", "customers", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "policy" ], [ "?" ], [ "find" ], [ "detail" ], [ "of" ], [ "these" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "policy", "NN" ], [ "?", "." ], [ "find", "VBP" ], [ "detail", "NN" ], [ "of", "IN" ], [ "these", "DT" ], [ "customer", "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(1)" }, { "db_id": "insurance_policies", "query": "SELECT T1.claim_id , T1.date_claim_made , T1.Date_Claim_Settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.claim_id HAVING count(*) = 1", "query_toks": [ "SELECT", "T1.claim_id", ",", "T1.date_claim_made", ",", "T1.Date_Claim_Settled", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1.Claim_id", "=", "T2.Claim_id", "GROUP", "BY", "T1.claim_id", "HAVING", "count", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "claim_id", ",", "t1", ".", "date_claim_made", ",", "t1", ".", "date_claim_settled", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id", "having", "count", "(", "*", ")", "=", "value" ], "question": "List the date the claim was made, the date it was settled and the amount settled for all the claims which had exactly one settlement.", "question_toks": [ "list", "date", "claim", "wa", "made", ",", "date", "it", "wa", "settled", "and", "amount", "settled", "for", "all", "claim", "which", "had", "exactly", "one", "settlement", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 2, [ 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, 11, 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", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "List", "the", "date", "the", "claim", "was", "made", ",", "the", "date", "it", "was", "settled", "and", "the", "amount", "settled", "for", "all", "the", "claims", "which", "had", "exactly", "one", "settlement", "." ], "question_arg": [ [ "list" ], [ "date" ], [ "claim" ], [ "wa" ], [ "made" ], [ "," ], [ "date" ], [ "it" ], [ "wa" ], [ "settled" ], [ "and" ], [ "amount", "settled" ], [ "for" ], [ "all" ], [ "claim" ], [ "which" ], [ "had" ], [ "exactly" ], [ "one" ], [ "settlement" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "date", "NN" ], [ "claim", "NN" ], [ "wa", "NN" ], [ "made", "VBD" ], [ ",", "," ], [ "date", "NN" ], [ "it", "PRP" ], [ "wa", "VBZ" ], [ "settled", "VBN" ], [ "and", "CC" ], [ "amount", "NN" ], [ "settled", "VBD" ], [ "for", "IN" ], [ "all", "DT" ], [ "claim", "NN" ], [ "which", "WDT" ], [ "had", "VBD" ], [ "exactly", "RB" ], [ "one", "CD" ], [ "settlement", "NN" ], [ ".", "." ] ], "values": [ "1" ], "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(9) T(2) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(3) Filter(2) A(3) C(0) T(3) V(0)" }, { "db_id": "insurance_policies", "query": "SELECT T1.claim_id , T1.date_claim_made , T1.Date_Claim_Settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.claim_id HAVING count(*) = 1", "query_toks": [ "SELECT", "T1.claim_id", ",", "T1.date_claim_made", ",", "T1.Date_Claim_Settled", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1.Claim_id", "=", "T2.Claim_id", "GROUP", "BY", "T1.claim_id", "HAVING", "count", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "claim_id", ",", "t1", ".", "date_claim_made", ",", "t1", ".", "date_claim_settled", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id", "having", "count", "(", "*", ")", "=", "value" ], "question": "Which claims had exactly one settlement? For each, tell me the the date the claim was made, the date it was settled and the amount settled.", "question_toks": [ "which", "claim", "had", "exactly", "one", "settlement", "?", "for", "each", ",", "tell", "me", "date", "claim", "wa", "made", ",", "date", "it", "wa", "settled", "and", "amount", "settled", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 2, [ 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, 11, 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", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Which", "claims", "had", "exactly", "one", "settlement", "?", "For", "each", ",", "tell", "me", "the", "the", "date", "the", "claim", "was", "made", ",", "the", "date", "it", "was", "settled", "and", "the", "amount", "settled", "." ], "question_arg": [ [ "which" ], [ "claim" ], [ "had" ], [ "exactly" ], [ "one" ], [ "settlement" ], [ "?" ], [ "for" ], [ "each" ], [ "," ], [ "tell" ], [ "me" ], [ "date" ], [ "claim" ], [ "wa" ], [ "made" ], [ "," ], [ "date" ], [ "it" ], [ "wa" ], [ "settled" ], [ "and" ], [ "amount", "settled" ], [ "." ] ], "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" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "claim", "NN" ], [ "had", "VBD" ], [ "exactly", "RB" ], [ "one", "CD" ], [ "settlement", "NN" ], [ "?", "." ], [ "for", "IN" ], [ "each", "DT" ], [ ",", "," ], [ "tell", "VB" ], [ "me", "PRP" ], [ "date", "NN" ], [ "claim", "NN" ], [ "wa", "NN" ], [ "made", "VBD" ], [ ",", "," ], [ "date", "NN" ], [ "it", "PRP" ], [ "wa", "VBZ" ], [ "settled", "VBN" ], [ "and", "CC" ], [ "amount", "NN" ], [ "settled", "VBD" ], [ ".", "." ] ], "values": [ "1" ], "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(9) T(2) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(3) Filter(2) A(3) C(0) T(3) V(0)" }, { "db_id": "insurance_policies", "query": "SELECT sum(Amount_Claimed) FROM Claims", "query_toks": [ "SELECT", "sum", "(", "Amount_Claimed", ")", "FROM", "Claims" ], "query_toks_no_value": [ "select", "sum", "(", "amount_claimed", ")", "from", "claims" ], "question": "Find the total claimed amount of all the claims.", "question_toks": [ "find", "total", "claimed", "amount", "of", "all", "claim", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "Find", "the", "total", "claimed", "amount", "of", "all", "the", "claims", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "amount", "claimed" ], [ "of" ], [ "all" ], [ "claim" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "claimed", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "claim", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(10) T(2)" }, { "db_id": "insurance_policies", "query": "SELECT sum(Amount_Claimed) FROM Claims", "query_toks": [ "SELECT", "sum", "(", "Amount_Claimed", ")", "FROM", "Claims" ], "query_toks_no_value": [ "select", "sum", "(", "amount_claimed", ")", "from", "claims" ], "question": "What is total amount claimed summed across all the claims?", "question_toks": [ "what", "is", "total", "amount", "claimed", "summed", "across", "all", "claim", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "policy id", "customer id", "policy type code", "start date", "end date", "claim id", "policy id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "customer policy id", "payment id", "settlement id", "payment method code", "date payment made", "amount payment" ], "table_names": [ "customers", "customer policies", "claims", "settlements", "payments" ], "col_set": [ "*", "customer id", "customer details", "policy id", "policy type code", "start date", "end date", "claim id", "date claim made", "date claim settled", "amount claimed", "amount settled", "settlement id", "customer policy id", "payment id", "payment method code", "date payment made", "amount payment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "9": 3, "3": 3, "15": 8, "8": 8, "22": 14, "14": 14, "21": 21 }, "origin_question_toks": [ "What", "is", "total", "amount", "claimed", "summed", "across", "all", "the", "claims", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "amount", "claimed" ], [ "summed" ], [ "across" ], [ "all" ], [ "claim" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "claimed", "VBD" ], [ "summed", "VBN" ], [ "across", "IN" ], [ "all", "DT" ], [ "claim", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(10) T(2)" }, { "db_id": "hospital_1", "query": "SELECT name FROM department GROUP BY departmentID ORDER BY count(departmentID) DESC LIMIT 1;", "query_toks": [ "SELECT", "name", "FROM", "department", "GROUP", "BY", "departmentID", "ORDER", "BY", "count", "(", "departmentID", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "name", "from", "department", "group", "by", "departmentid", "order", "by", "count", "(", "departmentid", ")", "desc", "limit", "value" ], "question": "Which department has the largest number of employees?", "question_toks": [ "which", "department", "ha", "largest", "number", "of", "employee", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Which", "department", "has", "the", "largest", "number", "of", "employees", "?" ], "question_arg": [ [ "which" ], [ "department" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "employee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "department", "NN" ], [ "ha", "NN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(1) Sup(0) A(3) C(5) T(1)" }, { "db_id": "hospital_1", "query": "SELECT name FROM department GROUP BY departmentID ORDER BY count(departmentID) DESC LIMIT 1;", "query_toks": [ "SELECT", "name", "FROM", "department", "GROUP", "BY", "departmentID", "ORDER", "BY", "count", "(", "departmentID", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "name", "from", "department", "group", "by", "departmentid", "order", "by", "count", "(", "departmentid", ")", "desc", "limit", "value" ], "question": "Find the department with the most employees.", "question_toks": [ "find", "department", "with", "most", "employee", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "department", "with", "the", "most", "employees", "." ], "question_arg": [ [ "find" ], [ "department" ], [ "with" ], [ "most" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "department", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(1) Sup(0) A(3) C(5) T(1)" }, { "db_id": "hospital_1", "query": "SELECT head FROM department GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;", "query_toks": [ "SELECT", "head", "FROM", "department", "GROUP", "BY", "departmentID", "ORDER", "BY", "count", "(", "departmentID", ")", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "head", "from", "department", "group", "by", "departmentid", "order", "by", "count", "(", "departmentid", ")", "limit", "value" ], "question": "What is the employee id of the head whose department has the least number of employees?", "question_toks": [ "what", "is", "employee", "id", "of", "head", "whose", "department", "ha", "least", "number", "of", "employee", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "is", "the", "employee", "id", "of", "the", "head", "whose", "department", "has", "the", "least", "number", "of", "employees", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "employee", "id" ], [ "of" ], [ "head" ], [ "whose" ], [ "department" ], [ "ha" ], [ "least" ], [ "number" ], [ "of" ], [ "employee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "employee", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "head", "NN" ], [ "whose", "WP$" ], [ "department", "NN" ], [ "ha", "NN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(1) Sup(1) A(3) C(5) T(1)" }, { "db_id": "hospital_1", "query": "SELECT head FROM department GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;", "query_toks": [ "SELECT", "head", "FROM", "department", "GROUP", "BY", "departmentID", "ORDER", "BY", "count", "(", "departmentID", ")", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "head", "from", "department", "group", "by", "departmentid", "order", "by", "count", "(", "departmentid", ")", "limit", "value" ], "question": "Tell me the employee id of the head of the department with the least employees.", "question_toks": [ "tell", "me", "employee", "id", "of", "head", "of", "department", "with", "least", "employee", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Tell", "me", "the", "employee", "id", "of", "the", "head", "of", "the", "department", "with", "the", "least", "employees", "." ], "question_arg": [ [ "tell" ], [ "me" ], [ "employee", "id" ], [ "of" ], [ "head" ], [ "of" ], [ "department" ], [ "with" ], [ "least" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "tell", "VB" ], [ "me", "PRP" ], [ "employee", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "head", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "least", "JJS" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(1) Sup(1) A(3) C(5) T(1)" }, { "db_id": "hospital_1", "query": "SELECT T2.name , T2.position FROM department AS T1 JOIN physician AS T2 ON T1.head = T2.EmployeeID GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;", "query_toks": [ "SELECT", "T2.name", ",", "T2.position", "FROM", "department", "AS", "T1", "JOIN", "physician", "AS", "T2", "ON", "T1.head", "=", "T2.EmployeeID", "GROUP", "BY", "departmentID", "ORDER", "BY", "count", "(", "departmentID", ")", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "position", "from", "department", "as", "t1", "join", "physician", "as", "t2", "on", "t1", ".", "head", "=", "t2", ".", "employeeid", "group", "by", "departmentid", "order", "by", "count", "(", "departmentid", ")", "limit", "value" ], "question": "what is the name and position of the head whose department has least number of employees?", "question_toks": [ "what", "is", "name", "and", "position", "of", "head", "whose", "department", "ha", "least", "number", "of", "employee", "?" ], "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": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "what", "is", "the", "name", "and", "position", "of", "the", "head", "whose", "department", "has", "least", "number", "of", "employees", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "position" ], [ "of" ], [ "head" ], [ "whose" ], [ "department" ], [ "ha" ], [ "least" ], [ "number" ], [ "of" ], [ "employee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "position", "NN" ], [ "of", "IN" ], [ "head", "NN" ], [ "whose", "WP$" ], [ "department", "NN" ], [ "ha", "NN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "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(1) A(3) C(5) T(1)" }, { "db_id": "hospital_1", "query": "SELECT T2.name , T2.position FROM department AS T1 JOIN physician AS T2 ON T1.head = T2.EmployeeID GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;", "query_toks": [ "SELECT", "T2.name", ",", "T2.position", "FROM", "department", "AS", "T1", "JOIN", "physician", "AS", "T2", "ON", "T1.head", "=", "T2.EmployeeID", "GROUP", "BY", "departmentID", "ORDER", "BY", "count", "(", "departmentID", ")", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "position", "from", "department", "as", "t1", "join", "physician", "as", "t2", "on", "t1", ".", "head", "=", "t2", ".", "employeeid", "group", "by", "departmentid", "order", "by", "count", "(", "departmentid", ")", "limit", "value" ], "question": "Find the name and position of the head of the department with the least employees.", "question_toks": [ "find", "name", "and", "position", "of", "head", "of", "department", "with", "least", "employee", "." ], "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": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "name", "and", "position", "of", "the", "head", "of", "the", "department", "with", "the", "least", "employees", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "position" ], [ "of" ], [ "head" ], [ "of" ], [ "department" ], [ "with" ], [ "least" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "position", "NN" ], [ "of", "IN" ], [ "head", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "least", "JJS" ], [ "employee", "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(1) A(3) C(5) T(1)" }, { "db_id": "hospital_1", "query": "SELECT name FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn", "query_toks": [ "SELECT", "name", "FROM", "appointment", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1.patient", "=", "T2.ssn" ], "query_toks_no_value": [ "select", "name", "from", "appointment", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "patient", "=", "t2", ".", "ssn" ], "question": "What are names of patients who made an appointment?", "question_toks": [ "what", "are", "name", "of", "patient", "who", "made", "an", "appointment", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 30, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "are", "names", "of", "patients", "who", "made", "an", "appointment", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "patient" ], [ "who" ], [ "made" ], [ "an" ], [ "appointment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "patient", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "an", "DT" ], [ "appointment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(5) Filter(18) A(0) C(4) T(5) Root(5) Sel(0) N(0) A(0) C(21) T(7)" }, { "db_id": "hospital_1", "query": "SELECT name FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn", "query_toks": [ "SELECT", "name", "FROM", "appointment", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1.patient", "=", "T2.ssn" ], "query_toks_no_value": [ "select", "name", "from", "appointment", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "patient", "=", "t2", ".", "ssn" ], "question": "List the names of patients who have made appointments.", "question_toks": [ "list", "name", "of", "patient", "who", "have", "made", "appointment", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 30, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "List", "the", "names", "of", "patients", "who", "have", "made", "appointments", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "patient" ], [ "who" ], [ "have" ], [ "made" ], [ "appointment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "patient", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "made", "VBN" ], [ "appointment", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(5) Filter(18) A(0) C(4) T(5) Root(5) Sel(0) N(0) A(0) C(21) T(7)" }, { "db_id": "hospital_1", "query": "SELECT name , phone FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn GROUP BY T1.patient HAVING count(*) > 1", "query_toks": [ "SELECT", "name", ",", "phone", "FROM", "appointment", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1.patient", "=", "T2.ssn", "GROUP", "BY", "T1.patient", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "name", ",", "phone", "from", "appointment", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "patient", "=", "t2", ".", "ssn", "group", "by", "t1", ".", "patient", "having", "count", "(", "*", ")", ">", "value" ], "question": "what are name and phone number of patients who had more than one appointment?", "question_toks": [ "what", "are", "name", "and", "phone", "number", "of", "patient", "who", "had", "more", "than", "one", "appointment", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 30, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 30, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "what", "are", "name", "and", "phone", "number", "of", "patients", "who", "had", "more", "than", "one", "appointment", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "phone" ], [ "number" ], [ "of" ], [ "patient" ], [ "who" ], [ "had" ], [ "more" ], [ "than" ], [ "one" ], [ "appointment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "patient", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "appointment", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(5) A(0) C(16) T(5) Filter(0) Filter(18) A(0) C(4) T(5) Root(5) Sel(0) N(0) A(0) C(21) T(7) Filter(5) A(3) C(0) T(7) V(0)" }, { "db_id": "hospital_1", "query": "SELECT name , phone FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn GROUP BY T1.patient HAVING count(*) > 1", "query_toks": [ "SELECT", "name", ",", "phone", "FROM", "appointment", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1.patient", "=", "T2.ssn", "GROUP", "BY", "T1.patient", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "name", ",", "phone", "from", "appointment", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "patient", "=", "t2", ".", "ssn", "group", "by", "t1", ".", "patient", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which patients made more than one appointment? Tell me the name and phone number of these patients.", "question_toks": [ "which", "patient", "made", "more", "than", "one", "appointment", "?", "tell", "me", "name", "and", "phone", "number", "of", "these", "patient", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 30, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 30, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Which", "patients", "made", "more", "than", "one", "appointment", "?", "Tell", "me", "the", "name", "and", "phone", "number", "of", "these", "patients", "." ], "question_arg": [ [ "which" ], [ "patient" ], [ "made" ], [ "more" ], [ "than" ], [ "one" ], [ "appointment" ], [ "?" ], [ "tell" ], [ "me" ], [ "name" ], [ "and" ], [ "phone" ], [ "number" ], [ "of" ], [ "these" ], [ "patient" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "patient", "NN" ], [ "made", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "appointment", "NN" ], [ "?", "." ], [ "tell", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "these", "DT" ], [ "patient", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(5) A(0) C(16) T(5) Filter(0) Filter(18) A(0) C(4) T(5) Root(5) Sel(0) N(0) A(0) C(21) T(7) Filter(5) A(3) C(0) T(7) V(0)" }, { "db_id": "hospital_1", "query": "SELECT appointmentid FROM appointment ORDER BY START DESC LIMIT 1", "query_toks": [ "SELECT", "appointmentid", "FROM", "appointment", "ORDER", "BY", "START", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "appointmentid", "from", "appointment", "order", "by", "start", "desc", "limit", "value" ], "question": "Find the id of the appointment with the most recent start date?", "question_toks": [ "find", "id", "of", "appointment", "with", "most", "recent", "start", "date", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 33, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "id", "of", "the", "appointment", "with", "the", "most", "recent", "start", "date", "?" ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "appointment" ], [ "with" ], [ "most" ], [ "recent" ], [ "start" ], [ "date" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "appointment", "NN" ], [ "with", "IN" ], [ "most", "RBS" ], [ "recent", "JJ" ], [ "start", "NN" ], [ "date", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(20) T(7) Sup(0) A(0) C(23) T(7)" }, { "db_id": "hospital_1", "query": "SELECT appointmentid FROM appointment ORDER BY START DESC LIMIT 1", "query_toks": [ "SELECT", "appointmentid", "FROM", "appointment", "ORDER", "BY", "START", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "appointmentid", "from", "appointment", "order", "by", "start", "desc", "limit", "value" ], "question": "What is the id of the appointment that started most recently?", "question_toks": [ "what", "is", "id", "of", "appointment", "that", "started", "most", "recently", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 33, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "appointment", "that", "started", "most", "recently", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "appointment" ], [ "that" ], [ "started" ], [ "most" ], [ "recently" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "appointment", "NN" ], [ "that", "WDT" ], [ "started", "VBD" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(20) T(7) Sup(0) A(0) C(23) T(7)" }, { "db_id": "hospital_1", "query": "SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician = T2.EmployeeID", "query_toks": [ "SELECT", "T2.name", "FROM", "appointment", "AS", "T1", "JOIN", "physician", "AS", "T2", "ON", "T1.Physician", "=", "T2.EmployeeID" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "appointment", "as", "t1", "join", "physician", "as", "t2", "on", "t1", ".", "physician", "=", "t2", ".", "employeeid" ], "question": "List the name of physicians who took some appointment.", "question_toks": [ "list", "name", "of", "physician", "who", "took", "some", "appointment", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "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, 32, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "List", "the", "name", "of", "physicians", "who", "took", "some", "appointment", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "physician" ], [ "who" ], [ "took" ], [ "some" ], [ "appointment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "physician", "NN" ], [ "who", "WP" ], [ "took", "VBD" ], [ "some", "DT" ], [ "appointment", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) 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(7) T(7)" }, { "db_id": "hospital_1", "query": "SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician = T2.EmployeeID", "query_toks": [ "SELECT", "T2.name", "FROM", "appointment", "AS", "T1", "JOIN", "physician", "AS", "T2", "ON", "T1.Physician", "=", "T2.EmployeeID" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "appointment", "as", "t1", "join", "physician", "as", "t2", "on", "t1", ".", "physician", "=", "t2", ".", "employeeid" ], "question": "What are the names of all the physicians who took appointments.", "question_toks": [ "what", "are", "name", "of", "all", "physician", "who", "took", "appointment", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "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, 32, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "physicians", "who", "took", "appointments", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "physician" ], [ "who" ], [ "took" ], [ "appointment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "physician", "NN" ], [ "who", "WP" ], [ "took", "VBD" ], [ "appointment", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) 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(7) T(7)" }, { "db_id": "hospital_1", "query": "SELECT name FROM physician EXCEPT SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician = T2.EmployeeID", "query_toks": [ "SELECT", "name", "FROM", "physician", "EXCEPT", "SELECT", "T2.name", "FROM", "appointment", "AS", "T1", "JOIN", "physician", "AS", "T2", "ON", "T1.Physician", "=", "T2.EmployeeID" ], "query_toks_no_value": [ "select", "name", "from", "physician", "except", "select", "t2", ".", "name", "from", "appointment", "as", "t1", "join", "physician", "as", "t2", "on", "t1", ".", "physician", "=", "t2", ".", "employeeid" ], "question": "List the name of physicians who never took any appointment.", "question_toks": [ "list", "name", "of", "physician", "who", "never", "took", "any", "appointment", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "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, 32, 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", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "List", "the", "name", "of", "physicians", "who", "never", "took", "any", "appointment", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "physician" ], [ "who" ], [ "never" ], [ "took" ], [ "any" ], [ "appointment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "physician", "NN" ], [ "who", "WP" ], [ "never", "RB" ], [ "took", "VBD" ], [ "any", "DT" ], [ "appointment", "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(7) T(7)" }, { "db_id": "hospital_1", "query": "SELECT name FROM physician EXCEPT SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician = T2.EmployeeID", "query_toks": [ "SELECT", "name", "FROM", "physician", "EXCEPT", "SELECT", "T2.name", "FROM", "appointment", "AS", "T1", "JOIN", "physician", "AS", "T2", "ON", "T1.Physician", "=", "T2.EmployeeID" ], "query_toks_no_value": [ "select", "name", "from", "physician", "except", "select", "t2", ".", "name", "from", "appointment", "as", "t1", "join", "physician", "as", "t2", "on", "t1", ".", "physician", "=", "t2", ".", "employeeid" ], "question": "Which physicians have never taken any appointment? Find their names.", "question_toks": [ "which", "physician", "have", "never", "taken", "any", "appointment", "?", "find", "their", "name", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "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, 32, 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", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Which", "physicians", "have", "never", "taken", "any", "appointment", "?", "Find", "their", "names", "." ], "question_arg": [ [ "which" ], [ "physician" ], [ "have" ], [ "never" ], [ "taken" ], [ "any" ], [ "appointment" ], [ "?" ], [ "find" ], [ "their" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "physician", "NN" ], [ "have", "VBP" ], [ "never", "RB" ], [ "taken", "VBN" ], [ "any", "DT" ], [ "appointment", "NN" ], [ "?", "." ], [ "find", "VB" ], [ "their", "PRP$" ], [ "name", "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(7) T(7)" }, { "db_id": "hospital_1", "query": "SELECT T1.name , T3.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T2.PrimaryAffiliation = 1", "query_toks": [ "SELECT", "T1.name", ",", "T3.name", "FROM", "physician", "AS", "T1", "JOIN", "affiliated_with", "AS", "T2", "ON", "T1.EmployeeID", "=", "T2.physician", "JOIN", "department", "AS", "T3", "ON", "T2.department", "=", "T3.DepartmentID", "WHERE", "T2.PrimaryAffiliation", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t3", ".", "name", "from", "physician", "as", "t1", "join", "affiliated_with", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "department", "as", "t3", "on", "t2", ".", "department", "=", "t3", ".", "departmentid", "where", "t2", ".", "primaryaffiliation", "=", "value" ], "question": "Find the names of all physicians and their primary affiliated departments' names.", "question_toks": [ "find", "name", "of", "all", "physician", "and", "their", "primary", "affiliated", "department", "'", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, 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, 10, false ], null ], 1.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "physicians", "and", "their", "primary", "affiliated", "departments", "'", "names", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "physician" ], [ "and" ], [ "their" ], [ "primary" ], [ "affiliated" ], [ "department" ], [ "'" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "physician", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "primary", "JJ" ], [ "affiliated", "VBN" ], [ "department", "NN" ], [ "'", "''" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(2) T(1) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "hospital_1", "query": "SELECT T1.name , T3.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T2.PrimaryAffiliation = 1", "query_toks": [ "SELECT", "T1.name", ",", "T3.name", "FROM", "physician", "AS", "T1", "JOIN", "affiliated_with", "AS", "T2", "ON", "T1.EmployeeID", "=", "T2.physician", "JOIN", "department", "AS", "T3", "ON", "T2.department", "=", "T3.DepartmentID", "WHERE", "T2.PrimaryAffiliation", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t3", ".", "name", "from", "physician", "as", "t1", "join", "affiliated_with", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "department", "as", "t3", "on", "t2", ".", "department", "=", "t3", ".", "departmentid", "where", "t2", ".", "primaryaffiliation", "=", "value" ], "question": "What are the name and primarily affiliated department name of each physician?", "question_toks": [ "what", "are", "name", "and", "primarily", "affiliated", "department", "name", "of", "each", "physician", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, 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, 10, false ], null ], 1.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "primarily", "affiliated", "department", "name", "of", "each", "physician", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "primarily" ], [ "affiliated" ], [ "department" ], [ "name" ], [ "of" ], [ "each" ], [ "physician" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "primarily", "RB" ], [ "affiliated", "VBN" ], [ "department", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "physician", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(2) T(1) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "hospital_1", "query": "SELECT T1.name FROM patient AS T1 JOIN appointment AS T2 ON T1.ssn = T2.patient ORDER BY T2.start DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "patient", "AS", "T1", "JOIN", "appointment", "AS", "T2", "ON", "T1.ssn", "=", "T2.patient", "ORDER", "BY", "T2.start", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "patient", "as", "t1", "join", "appointment", "as", "t2", "on", "t1", ".", "ssn", "=", "t2", ".", "patient", "order", "by", "t2", ".", "start", "desc", "limit", "value" ], "question": "What is the name of the patient who made the most recent appointment?", "question_toks": [ "what", "is", "name", "of", "patient", "who", "made", "most", "recent", "appointment", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 30, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 33, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "patient", "who", "made", "the", "most", "recent", "appointment", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "patient" ], [ "who" ], [ "made" ], [ "most" ], [ "recent" ], [ "appointment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "patient", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "most", "RBS" ], [ "recent", "JJ" ], [ "appointment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(5) Sup(0) A(0) C(23) T(7)" }, { "db_id": "hospital_1", "query": "SELECT T1.name FROM patient AS T1 JOIN appointment AS T2 ON T1.ssn = T2.patient ORDER BY T2.start DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "patient", "AS", "T1", "JOIN", "appointment", "AS", "T2", "ON", "T1.ssn", "=", "T2.patient", "ORDER", "BY", "T2.start", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "patient", "as", "t1", "join", "appointment", "as", "t2", "on", "t1", ".", "ssn", "=", "t2", ".", "patient", "order", "by", "t2", ".", "start", "desc", "limit", "value" ], "question": "Find the name of the patient who made the appointment with the most recent start date.", "question_toks": [ "find", "name", "of", "patient", "who", "made", "appointment", "with", "most", "recent", "start", "date", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 30, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 33, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "patient", "who", "made", "the", "appointment", "with", "the", "most", "recent", "start", "date", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "patient" ], [ "who" ], [ "made" ], [ "appointment" ], [ "with" ], [ "most" ], [ "recent" ], [ "start" ], [ "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "patient", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "appointment", "NN" ], [ "with", "IN" ], [ "most", "RBS" ], [ "recent", "JJ" ], [ "start", "NN" ], [ "date", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(5) Sup(0) A(0) C(23) T(7)" }, { "db_id": "hospital_1", "query": "SELECT count(patient) FROM stay WHERE room = 112", "query_toks": [ "SELECT", "count", "(", "patient", ")", "FROM", "stay", "WHERE", "room", "=", "112" ], "query_toks_no_value": [ "select", "count", "(", "patient", ")", "from", "stay", "where", "room", "=", "value" ], "question": "How many patients stay in room 112?", "question_toks": [ "how", "many", "patient", "stay", "in", "room", "112", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 59, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 60, false ], null ], 112.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "How", "many", "patients", "stay", "in", "room", "112", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "patient" ], [ "stay" ], [ "in" ], [ "room" ], [ "112" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "patient", "JJ" ], [ "stay", "NN" ], [ "in", "IN" ], [ "room", "NN" ], [ "112", "CD" ], [ "?", "." ] ], "values": [ "112" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(21) T(13) Filter(2) A(0) C(41) T(13) V(0)" }, { "db_id": "hospital_1", "query": "SELECT count(patient) FROM stay WHERE room = 112", "query_toks": [ "SELECT", "count", "(", "patient", ")", "FROM", "stay", "WHERE", "room", "=", "112" ], "query_toks_no_value": [ "select", "count", "(", "patient", ")", "from", "stay", "where", "room", "=", "value" ], "question": "Count the number of patients who stayed in room 112.", "question_toks": [ "count", "number", "of", "patient", "who", "stayed", "in", "room", "112", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 59, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 60, false ], null ], 112.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Count", "the", "number", "of", "patients", "who", "stayed", "in", "room", "112", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "patient" ], [ "who" ], [ "stayed" ], [ "in" ], [ "room" ], [ "112" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "patient", "NN" ], [ "who", "WP" ], [ "stayed", "VBD" ], [ "in", "IN" ], [ "room", "NN" ], [ "112", "CD" ], [ ".", "." ] ], "values": [ "112" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(21) T(13) Filter(2) A(0) C(41) T(13) V(0)" }, { "db_id": "hospital_1", "query": "SELECT count(T1.SSN) FROM patient AS T1 JOIN prescribes AS T2 ON T1.SSN = T2.patient JOIN physician AS T3 ON T2.physician = T3.employeeid WHERE T3.name = \"John Dorian\"", "query_toks": [ "SELECT", "count", "(", "T1.SSN", ")", "FROM", "patient", "AS", "T1", "JOIN", "prescribes", "AS", "T2", "ON", "T1.SSN", "=", "T2.patient", "JOIN", "physician", "AS", "T3", "ON", "T2.physician", "=", "T3.employeeid", "WHERE", "T3.name", "=", "``", "John", "Dorian", "''" ], "query_toks_no_value": [ "select", "count", "(", "t1", ".", "ssn", ")", "from", "patient", "as", "t1", "join", "prescribes", "as", "t2", "on", "t1", ".", "ssn", "=", "t2", ".", "patient", "join", "physician", "as", "t3", "on", "t2", ".", "physician", "=", "t3", ".", "employeeid", "where", "t3", ".", "name", "=", "value" ], "question": "How many patients' prescriptions are made by physician John Dorian?", "question_toks": [ "how", "many", "patient", "'", "prescription", "are", "made", "by", "physician", "john", "dorian", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 41, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 41, 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, 2, false ], null ], "\"John Dorian\"", null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "How", "many", "patients", "'", "prescriptions", "are", "made", "by", "physician", "John", "Dorian", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "patient" ], [ "'" ], [ "prescription" ], [ "are" ], [ "made" ], [ "by" ], [ "physician" ], [ "john" ], [ "dorian" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "patient", "NN" ], [ "'", "POS" ], [ "prescription", "NN" ], [ "are", "VBP" ], [ "made", "VBN" ], [ "by", "IN" ], [ "physician", "JJ" ], [ "john", "NN" ], [ "dorian", "NN" ], [ "?", "." ] ], "values": [ "John Dorian" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(4) T(5) Filter(0) Filter(18) A(0) C(4) T(5) Root(5) Sel(0) N(0) A(0) C(21) T(9) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "hospital_1", "query": "SELECT count(T1.SSN) FROM patient AS T1 JOIN prescribes AS T2 ON T1.SSN = T2.patient JOIN physician AS T3 ON T2.physician = T3.employeeid WHERE T3.name = \"John Dorian\"", "query_toks": [ "SELECT", "count", "(", "T1.SSN", ")", "FROM", "patient", "AS", "T1", "JOIN", "prescribes", "AS", "T2", "ON", "T1.SSN", "=", "T2.patient", "JOIN", "physician", "AS", "T3", "ON", "T2.physician", "=", "T3.employeeid", "WHERE", "T3.name", "=", "``", "John", "Dorian", "''" ], "query_toks_no_value": [ "select", "count", "(", "t1", ".", "ssn", ")", "from", "patient", "as", "t1", "join", "prescribes", "as", "t2", "on", "t1", ".", "ssn", "=", "t2", ".", "patient", "join", "physician", "as", "t3", "on", "t2", ".", "physician", "=", "t3", ".", "employeeid", "where", "t3", ".", "name", "=", "value" ], "question": "Find the number of patients' prescriptions physician John Dorian made.", "question_toks": [ "find", "number", "of", "patient", "'", "prescription", "physician", "john", "dorian", "made", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 41, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 41, 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, 2, false ], null ], "\"John Dorian\"", null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "number", "of", "patients", "'", "prescriptions", "physician", "John", "Dorian", "made", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "patient" ], [ "'" ], [ "prescription" ], [ "physician" ], [ "john" ], [ "dorian" ], [ "made" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "patient", "NN" ], [ "'", "POS" ], [ "prescription", "NN" ], [ "physician", "NN" ], [ "john", "NN" ], [ "dorian", "JJ" ], [ "made", "VBN" ], [ ".", "." ] ], "values": [ "John Dorian" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(4) T(5) Filter(0) Filter(18) A(0) C(4) T(5) Root(5) Sel(0) N(0) A(0) C(21) T(9) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "hospital_1", "query": "SELECT T4.name FROM stay AS T1 JOIN patient AS T2 ON T1.Patient = T2.SSN JOIN Prescribes AS T3 ON T3.Patient = T2.SSN JOIN Medication AS T4 ON T3.Medication = T4.Code WHERE room = 111", "query_toks": [ "SELECT", "T4.name", "FROM", "stay", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1.Patient", "=", "T2.SSN", "JOIN", "Prescribes", "AS", "T3", "ON", "T3.Patient", "=", "T2.SSN", "JOIN", "Medication", "AS", "T4", "ON", "T3.Medication", "=", "T4.Code", "WHERE", "room", "=", "111" ], "query_toks_no_value": [ "select", "t4", ".", "name", "from", "stay", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "patient", "=", "t2", ".", "ssn", "join", "prescribes", "as", "t3", "on", "t3", ".", "patient", "=", "t2", ".", "ssn", "join", "medication", "as", "t4", "on", "t3", ".", "medication", "=", "t4", ".", "code", "where", "room", "=", "value" ], "question": "Find the name of medication used on the patient who stays in room 111?", "question_toks": [ "find", "name", "of", "medication", "used", "on", "patient", "who", "stay", "in", "room", "111", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 59, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 59, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 18, 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, 60, false ], null ], 111.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "name", "of", "medication", "used", "on", "the", "patient", "who", "stays", "in", "room", "111", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "medication" ], [ "used" ], [ "on" ], [ "patient" ], [ "who" ], [ "stay" ], [ "in" ], [ "room" ], [ "111" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "medication", "NN" ], [ "used", "VBN" ], [ "on", "IN" ], [ "patient", "NN" ], [ "who", "WP" ], [ "stay", "VBP" ], [ "in", "IN" ], [ "room", "NN" ], [ "111", "CD" ], [ "?", "." ] ], "values": [ "111" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(8) Filter(0) Filter(18) A(0) C(21) T(13) Root(5) Sel(0) N(0) A(0) C(4) T(5) Filter(2) A(0) C(41) T(13) V(0)" }, { "db_id": "hospital_1", "query": "SELECT T4.name FROM stay AS T1 JOIN patient AS T2 ON T1.Patient = T2.SSN JOIN Prescribes AS T3 ON T3.Patient = T2.SSN JOIN Medication AS T4 ON T3.Medication = T4.Code WHERE room = 111", "query_toks": [ "SELECT", "T4.name", "FROM", "stay", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1.Patient", "=", "T2.SSN", "JOIN", "Prescribes", "AS", "T3", "ON", "T3.Patient", "=", "T2.SSN", "JOIN", "Medication", "AS", "T4", "ON", "T3.Medication", "=", "T4.Code", "WHERE", "room", "=", "111" ], "query_toks_no_value": [ "select", "t4", ".", "name", "from", "stay", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "patient", "=", "t2", ".", "ssn", "join", "prescribes", "as", "t3", "on", "t3", ".", "patient", "=", "t2", ".", "ssn", "join", "medication", "as", "t4", "on", "t3", ".", "medication", "=", "t4", ".", "code", "where", "room", "=", "value" ], "question": "What is the name of the medication used for the patient staying in room 111?", "question_toks": [ "what", "is", "name", "of", "medication", "used", "for", "patient", "staying", "in", "room", "111", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 59, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 59, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 18, 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, 60, false ], null ], 111.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "medication", "used", "for", "the", "patient", "staying", "in", "room", "111", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "medication" ], [ "used" ], [ "for" ], [ "patient" ], [ "staying" ], [ "in" ], [ "room" ], [ "111" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "medication", "NN" ], [ "used", "VBN" ], [ "for", "IN" ], [ "patient", "JJ" ], [ "staying", "VBG" ], [ "in", "IN" ], [ "room", "NN" ], [ "111", "CD" ], [ "?", "." ] ], "values": [ "111" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(8) Filter(0) Filter(18) A(0) C(21) T(13) Root(5) Sel(0) N(0) A(0) C(4) T(5) Filter(2) A(0) C(41) T(13) V(0)" }, { "db_id": "hospital_1", "query": "SELECT patient FROM stay WHERE room = 111 ORDER BY staystart DESC LIMIT 1", "query_toks": [ "SELECT", "patient", "FROM", "stay", "WHERE", "room", "=", "111", "ORDER", "BY", "staystart", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "patient", "from", "stay", "where", "room", "=", "value", "order", "by", "staystart", "desc", "limit", "value" ], "question": "Find the patient who most recently stayed in room 111.", "question_toks": [ "find", "patient", "who", "most", "recently", "stayed", "in", "room", "111", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 61, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 59, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 60, false ], null ], 111.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "patient", "who", "most", "recently", "stayed", "in", "room", "111", "." ], "question_arg": [ [ "find" ], [ "patient" ], [ "who" ], [ "most" ], [ "recently" ], [ "stayed" ], [ "in" ], [ "room" ], [ "111" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "patient", "NN" ], [ "who", "WP" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "stayed", "VBN" ], [ "in", "IN" ], [ "room", "NN" ], [ "111", "CD" ], [ ".", "." ] ], "values": [ "111" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(21) T(13) Sup(0) A(0) C(42) T(13) Filter(2) A(0) C(41) T(13) V(0)" }, { "db_id": "hospital_1", "query": "SELECT patient FROM stay WHERE room = 111 ORDER BY staystart DESC LIMIT 1", "query_toks": [ "SELECT", "patient", "FROM", "stay", "WHERE", "room", "=", "111", "ORDER", "BY", "staystart", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "patient", "from", "stay", "where", "room", "=", "value", "order", "by", "staystart", "desc", "limit", "value" ], "question": "What is the id of the patient who stayed in room 111 most recently?", "question_toks": [ "what", "is", "id", "of", "patient", "who", "stayed", "in", "room", "111", "most", "recently", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 61, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 59, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 60, false ], null ], 111.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "patient", "who", "stayed", "in", "room", "111", "most", "recently", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "patient" ], [ "who" ], [ "stayed" ], [ "in" ], [ "room" ], [ "111" ], [ "most" ], [ "recently" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "patient", "NN" ], [ "who", "WP" ], [ "stayed", "VBD" ], [ "in", "IN" ], [ "room", "NN" ], [ "111", "CD" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "?", "." ] ], "values": [ "111" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(21) T(13) Sup(0) A(0) C(42) T(13) Filter(2) A(0) C(41) T(13) V(0)" }, { "db_id": "hospital_1", "query": "SELECT T1.name FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid = T2.prepnurse GROUP BY T1.employeeid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "nurse", "AS", "T1", "JOIN", "appointment", "AS", "T2", "ON", "T1.employeeid", "=", "T2.prepnurse", "GROUP", "BY", "T1.employeeid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "nurse", "as", "t1", "join", "appointment", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "prepnurse", "group", "by", "t1", ".", "employeeid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the nurse has the most appointments?", "question_toks": [ "what", "is", "name", "of", "nurse", "ha", "most", "appointment", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "nurse", "has", "the", "most", "appointments", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "nurse" ], [ "ha" ], [ "most" ], [ "appointment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "nurse", "JJ" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "appointment", "NN" ], [ "?", "." ] ], "values": [ "Nurse" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(6) Sup(0) A(3) C(0) T(7) Filter(18) A(0) C(1) T(6) Root(5) Sel(0) N(0) A(0) C(22) T(7)" }, { "db_id": "hospital_1", "query": "SELECT T1.name FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid = T2.prepnurse GROUP BY T1.employeeid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "nurse", "AS", "T1", "JOIN", "appointment", "AS", "T2", "ON", "T1.employeeid", "=", "T2.prepnurse", "GROUP", "BY", "T1.employeeid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "nurse", "as", "t1", "join", "appointment", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "prepnurse", "group", "by", "t1", ".", "employeeid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name of the nurse who has the largest number of appointments.", "question_toks": [ "find", "name", "of", "nurse", "who", "ha", "largest", "number", "of", "appointment", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "nurse", "who", "has", "the", "largest", "number", "of", "appointments", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "nurse" ], [ "who" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "appointment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "nurse", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "appointment", "NN" ], [ ".", "." ] ], "values": [ "Nurse" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(6) Sup(0) A(3) C(0) T(7) Filter(18) A(0) C(1) T(6) Root(5) Sel(0) N(0) A(0) C(22) T(7)" }, { "db_id": "hospital_1", "query": "SELECT T1.name , count(*) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid", "query_toks": [ "SELECT", "T1.name", ",", "count", "(", "*", ")", "FROM", "physician", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1.employeeid", "=", "T2.PCP", "GROUP", "BY", "T1.employeeid" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "physician", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "pcp", "group", "by", "t1", ".", "employeeid" ], "question": "How many patients do each physician take care of? List their names and number of patients they take care of.", "question_toks": [ "how", "many", "patient", "do", "each", "physician", "take", "care", "of", "?", "list", "their", "name", "and", "number", "of", "patient", "they", "take", "care", "of", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 1, 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": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "How", "many", "patients", "do", "each", "physician", "take", "care", "of", "?", "List", "their", "names", "and", "number", "of", "patients", "they", "take", "care", "of", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "patient" ], [ "do" ], [ "each" ], [ "physician" ], [ "take" ], [ "care" ], [ "of" ], [ "?" ], [ "list" ], [ "their" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "patient" ], [ "they" ], [ "take" ], [ "care" ], [ "of" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "patient", "JJ" ], [ "do", "VBP" ], [ "each", "DT" ], [ "physician", "NN" ], [ "take", "NN" ], [ "care", "NN" ], [ "of", "IN" ], [ "?", "." ], [ "list", "VB" ], [ "their", "PRP$" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "patient", "NN" ], [ "they", "PRP" ], [ "take", "VBP" ], [ "care", "NN" ], [ "of", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(5)" }, { "db_id": "hospital_1", "query": "SELECT T1.name , count(*) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid", "query_toks": [ "SELECT", "T1.name", ",", "count", "(", "*", ")", "FROM", "physician", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1.employeeid", "=", "T2.PCP", "GROUP", "BY", "T1.employeeid" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "physician", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "pcp", "group", "by", "t1", ".", "employeeid" ], "question": "Return the name of each physician and the number of patients he or she treats.", "question_toks": [ "return", "name", "of", "each", "physician", "and", "number", "of", "patient", "he", "or", "she", "treat", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 1, 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": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Return", "the", "name", "of", "each", "physician", "and", "the", "number", "of", "patients", "he", "or", "she", "treats", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "each" ], [ "physician" ], [ "and" ], [ "number" ], [ "of" ], [ "patient" ], [ "he" ], [ "or" ], [ "she" ], [ "treat" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "physician", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "patient", "NN" ], [ "he", "PRP" ], [ "or", "CC" ], [ "she", "PRP" ], [ "treat", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(5)" }, { "db_id": "hospital_1", "query": "SELECT T1.name FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.name", "FROM", "physician", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1.employeeid", "=", "T2.PCP", "GROUP", "BY", "T1.employeeid", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "physician", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "pcp", "group", "by", "t1", ".", "employeeid", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the name of physicians who are in charge of more than one patient.", "question_toks": [ "find", "name", "of", "physician", "who", "are", "in", "charge", "of", "more", "than", "one", "patient", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 1, 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, 23, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "name", "of", "physicians", "who", "are", "in", "charge", "of", "more", "than", "one", "patient", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "physician" ], [ "who" ], [ "are" ], [ "in" ], [ "charge" ], [ "of" ], [ "more" ], [ "than" ], [ "one" ], [ "patient" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "physician", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "in", "IN" ], [ "charge", "NN" ], [ "of", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "patient", "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(18) T(5) Filter(5) A(3) C(0) T(5) V(0)" }, { "db_id": "hospital_1", "query": "SELECT T1.name FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.name", "FROM", "physician", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1.employeeid", "=", "T2.PCP", "GROUP", "BY", "T1.employeeid", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "physician", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "pcp", "group", "by", "t1", ".", "employeeid", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which physicians are in charge of more than one patient? Give me their names.", "question_toks": [ "which", "physician", "are", "in", "charge", "of", "more", "than", "one", "patient", "?", "give", "me", "their", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 1, 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, 23, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Which", "physicians", "are", "in", "charge", "of", "more", "than", "one", "patient", "?", "Give", "me", "their", "names", "." ], "question_arg": [ [ "which" ], [ "physician" ], [ "are" ], [ "in" ], [ "charge" ], [ "of" ], [ "more" ], [ "than" ], [ "one" ], [ "patient" ], [ "?" ], [ "give" ], [ "me" ], [ "their" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "physician", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "charge", "NN" ], [ "of", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "patient", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "name", "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(18) T(5) Filter(5) A(3) C(0) T(5) V(0)" }, { "db_id": "hospital_1", "query": "SELECT count(*) , T1.blockfloor FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockfloor", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.blockfloor", "FROM", "BLOCK", "AS", "T1", "JOIN", "room", "AS", "T2", "ON", "T1.blockfloor", "=", "T2.blockfloor", "AND", "T1.blockcode", "=", "T2.blockcode", "GROUP", "BY", "T1.blockfloor" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "blockfloor", "from", "block", "as", "t1", "join", "room", "as", "t2", "on", "t1", ".", "blockfloor", "=", "t2", ".", "blockfloor", "and", "t1", ".", "blockcode", "=", "t2", ".", "blockcode", "group", "by", "t1", ".", "blockfloor" ], "question": "Find the number of rooms located on each block floor.", "question_toks": [ "find", "number", "of", "room", "located", "on", "each", "block", "floor", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 50, false ], null ], "and", [ false, 2, [ 0, [ 0, 47, false ], null ], [ 0, 51, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 46, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "number", "of", "rooms", "located", "on", "each", "block", "floor", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "room" ], [ "located" ], [ "on" ], [ "each" ], [ "block", "floor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "located", "VBN" ], [ "on", "IN" ], [ "each", "DT" ], [ "block", "NN" ], [ "floor", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(11) A(0) C(32) T(10)" }, { "db_id": "hospital_1", "query": "SELECT count(*) , T1.blockfloor FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockfloor", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.blockfloor", "FROM", "BLOCK", "AS", "T1", "JOIN", "room", "AS", "T2", "ON", "T1.blockfloor", "=", "T2.blockfloor", "AND", "T1.blockcode", "=", "T2.blockcode", "GROUP", "BY", "T1.blockfloor" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "blockfloor", "from", "block", "as", "t1", "join", "room", "as", "t2", "on", "t1", ".", "blockfloor", "=", "t2", ".", "blockfloor", "and", "t1", ".", "blockcode", "=", "t2", ".", "blockcode", "group", "by", "t1", ".", "blockfloor" ], "question": "How many rooms does each block floor have?", "question_toks": [ "how", "many", "room", "doe", "each", "block", "floor", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 50, false ], null ], "and", [ false, 2, [ 0, [ 0, 47, false ], null ], [ 0, 51, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 46, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "How", "many", "rooms", "does", "each", "block", "floor", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "room" ], [ "doe" ], [ "each" ], [ "block", "floor" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "room", "NN" ], [ "doe", "NNS" ], [ "each", "DT" ], [ "block", "NN" ], [ "floor", "NN" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(11) A(0) C(32) T(10)" }, { "db_id": "hospital_1", "query": "SELECT count(*) , T1.blockcode FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockcode", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.blockcode", "FROM", "BLOCK", "AS", "T1", "JOIN", "room", "AS", "T2", "ON", "T1.blockfloor", "=", "T2.blockfloor", "AND", "T1.blockcode", "=", "T2.blockcode", "GROUP", "BY", "T1.blockcode" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "blockcode", "from", "block", "as", "t1", "join", "room", "as", "t2", "on", "t1", ".", "blockfloor", "=", "t2", ".", "blockfloor", "and", "t1", ".", "blockcode", "=", "t2", ".", "blockcode", "group", "by", "t1", ".", "blockcode" ], "question": "Find the number of rooms for different block code?", "question_toks": [ "find", "number", "of", "room", "for", "different", "block", "code", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 50, false ], null ], "and", [ false, 2, [ 0, [ 0, 47, false ], null ], [ 0, 51, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 47, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 47, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "number", "of", "rooms", "for", "different", "block", "code", "?" ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "room" ], [ "for" ], [ "different" ], [ "block", "code" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "for", "IN" ], [ "different", "JJ" ], [ "block", "NN" ], [ "code", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(11) A(0) C(33) T(10)" }, { "db_id": "hospital_1", "query": "SELECT count(*) , T1.blockcode FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockcode", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.blockcode", "FROM", "BLOCK", "AS", "T1", "JOIN", "room", "AS", "T2", "ON", "T1.blockfloor", "=", "T2.blockfloor", "AND", "T1.blockcode", "=", "T2.blockcode", "GROUP", "BY", "T1.blockcode" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "blockcode", "from", "block", "as", "t1", "join", "room", "as", "t2", "on", "t1", ".", "blockfloor", "=", "t2", ".", "blockfloor", "and", "t1", ".", "blockcode", "=", "t2", ".", "blockcode", "group", "by", "t1", ".", "blockcode" ], "question": "How many rooms are located for each block code?", "question_toks": [ "how", "many", "room", "are", "located", "for", "each", "block", "code", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 50, false ], null ], "and", [ false, 2, [ 0, [ 0, 47, false ], null ], [ 0, 51, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 47, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 47, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "How", "many", "rooms", "are", "located", "for", "each", "block", "code", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "room" ], [ "are" ], [ "located" ], [ "for" ], [ "each" ], [ "block", "code" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "room", "NN" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "for", "IN" ], [ "each", "DT" ], [ "block", "NN" ], [ "code", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(11) A(0) C(33) T(10)" }, { "db_id": "hospital_1", "query": "SELECT DISTINCT blockcode FROM room WHERE unavailable = 0", "query_toks": [ "SELECT", "DISTINCT", "blockcode", "FROM", "room", "WHERE", "unavailable", "=", "0" ], "query_toks_no_value": [ "select", "distinct", "blockcode", "from", "room", "where", "unavailable", "=", "value" ], "question": "What are the unique block codes that have available rooms?", "question_toks": [ "what", "are", "unique", "block", "code", "that", "have", "available", "room", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 51, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 52, false ], null ], 0.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "are", "the", "unique", "block", "codes", "that", "have", "available", "rooms", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "unique" ], [ "block", "code" ], [ "that" ], [ "have" ], [ "available" ], [ "room" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "unique", "JJ" ], [ "block", "NN" ], [ "code", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "available", "JJ" ], [ "room", "NN" ], [ "?", "." ] ], "values": [ "0" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(33) T(11) Filter(2) A(0) C(36) T(11) V(0)" }, { "db_id": "hospital_1", "query": "SELECT DISTINCT blockcode FROM room WHERE unavailable = 0", "query_toks": [ "SELECT", "DISTINCT", "blockcode", "FROM", "room", "WHERE", "unavailable", "=", "0" ], "query_toks_no_value": [ "select", "distinct", "blockcode", "from", "room", "where", "unavailable", "=", "value" ], "question": "Tell me the distinct block codes where some rooms are available.", "question_toks": [ "tell", "me", "distinct", "block", "code", "where", "some", "room", "are", "available", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 51, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 52, false ], null ], 0.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Tell", "me", "the", "distinct", "block", "codes", "where", "some", "rooms", "are", "available", "." ], "question_arg": [ [ "tell" ], [ "me" ], [ "distinct" ], [ "block", "code" ], [ "where" ], [ "some" ], [ "room" ], [ "are" ], [ "available" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "tell", "VB" ], [ "me", "PRP" ], [ "distinct", "JJ" ], [ "block", "NN" ], [ "code", "NN" ], [ "where", "WRB" ], [ "some", "DT" ], [ "room", "NN" ], [ "are", "VBP" ], [ "available", "JJ" ], [ ".", "." ] ], "values": [ "0" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(33) T(11) Filter(2) A(0) C(36) T(11) V(0)" }, { "db_id": "hospital_1", "query": "SELECT count(DISTINCT roomtype) FROM room", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "roomtype", ")", "FROM", "room" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "roomtype", ")", "from", "room" ], "question": "How many different types of rooms are there?", "question_toks": [ "how", "many", "different", "type", "of", "room", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 49, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "How", "many", "different", "types", "of", "rooms", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "type" ], [ "of" ], [ "room" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(35) T(11)" }, { "db_id": "hospital_1", "query": "SELECT count(DISTINCT roomtype) FROM room", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "roomtype", ")", "FROM", "room" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "roomtype", ")", "from", "room" ], "question": "Find the number of distinct room types available.", "question_toks": [ "find", "number", "of", "distinct", "room", "type", "available", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 49, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "number", "of", "distinct", "room", "types", "available", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "distinct" ], [ "room", "type" ], [ "available" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "room", "NN" ], [ "type", "NN" ], [ "available", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(35) T(11)" }, { "db_id": "hospital_1", "query": "SELECT DISTINCT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.name = \"Thesisin\"", "query_toks": [ "SELECT", "DISTINCT", "T1.name", "FROM", "physician", "AS", "T1", "JOIN", "prescribes", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "medication", "AS", "T3", "ON", "T3.code", "=", "T2.medication", "WHERE", "T3.name", "=", "``", "Thesisin", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", "from", "physician", "as", "t1", "join", "prescribes", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "medication", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "medication", "where", "t3", ".", "name", "=", "value" ], "question": "What is the names of the physicians who prescribe medication Thesisin?", "question_toks": [ "what", "is", "name", "of", "physician", "who", "prescribe", "medication", "thesisin", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 40, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 9 ] ] }, "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, 40, 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, 37, false ], null ], "\"Thesisin\"", null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "is", "the", "names", "of", "the", "physicians", "who", "prescribe", "medication", "Thesisin", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "physician" ], [ "who" ], [ "prescribe" ], [ "medication" ], [ "thesisin" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "physician", "NN" ], [ "who", "WP" ], [ "prescribe", "VBZ" ], [ "medication", "NN" ], [ "thesisin", "NN" ], [ "?", "." ] ], "values": [ "Thesisin" ], "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(9) Filter(2) A(0) C(2) T(8) V(0)" }, { "db_id": "hospital_1", "query": "SELECT DISTINCT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.name = \"Thesisin\"", "query_toks": [ "SELECT", "DISTINCT", "T1.name", "FROM", "physician", "AS", "T1", "JOIN", "prescribes", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "medication", "AS", "T3", "ON", "T3.code", "=", "T2.medication", "WHERE", "T3.name", "=", "``", "Thesisin", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", "from", "physician", "as", "t1", "join", "prescribes", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "medication", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "medication", "where", "t3", ".", "name", "=", "value" ], "question": "List the names of all the physicians who prescribe Thesisin as medication.", "question_toks": [ "list", "name", "of", "all", "physician", "who", "prescribe", "thesisin", "a", "medication", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 40, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 9 ] ] }, "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, 40, 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, 37, false ], null ], "\"Thesisin\"", null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "the", "physicians", "who", "prescribe", "Thesisin", "as", "medication", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "physician" ], [ "who" ], [ "prescribe" ], [ "thesisin" ], [ "a" ], [ "medication" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "physician", "NN" ], [ "who", "WP" ], [ "prescribe", "VBP" ], [ "thesisin", "VB" ], [ "a", "DT" ], [ "medication", "NN" ], [ ".", "." ] ], "values": [ "Thesisin" ], "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(9) Filter(2) A(0) C(2) T(8) V(0)" }, { "db_id": "hospital_1", "query": "SELECT DISTINCT T1.name , T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand = \"X\"", "query_toks": [ "SELECT", "DISTINCT", "T1.name", ",", "T1.position", "FROM", "physician", "AS", "T1", "JOIN", "prescribes", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "medication", "AS", "T3", "ON", "T3.code", "=", "T2.medication", "WHERE", "T3.Brand", "=", "``", "X", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", ",", "t1", ".", "position", "from", "physician", "as", "t1", "join", "prescribes", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "medication", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "medication", "where", "t3", ".", "brand", "=", "value" ], "question": "Find the name and position of physicians who prescribe some medication whose brand is X?", "question_toks": [ "find", "name", "and", "position", "of", "physician", "who", "prescribe", "some", "medication", "whose", "brand", "is", "x", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 40, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 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, 40, 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, 38, false ], null ], "\"X\"", null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "name", "and", "position", "of", "physicians", "who", "prescribe", "some", "medication", "whose", "brand", "is", "X", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "position" ], [ "of" ], [ "physician" ], [ "who" ], [ "prescribe" ], [ "some" ], [ "medication" ], [ "whose" ], [ "brand" ], [ "is" ], [ "x" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "position", "NN" ], [ "of", "IN" ], [ "physician", "NN" ], [ "who", "WP" ], [ "prescribe", "VBZ" ], [ "some", "DT" ], [ "medication", "NN" ], [ "whose", "WP$" ], [ "brand", "NN" ], [ "is", "VBZ" ], [ "x", "VBN" ], [ "?", "." ] ], "values": [ "X" ], "rule_label": "Root1(3) Root(3) Sel(1) 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(9) Filter(2) A(0) C(26) T(8) V(0)" }, { "db_id": "hospital_1", "query": "SELECT DISTINCT T1.name , T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand = \"X\"", "query_toks": [ "SELECT", "DISTINCT", "T1.name", ",", "T1.position", "FROM", "physician", "AS", "T1", "JOIN", "prescribes", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "medication", "AS", "T3", "ON", "T3.code", "=", "T2.medication", "WHERE", "T3.Brand", "=", "``", "X", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", ",", "t1", ".", "position", "from", "physician", "as", "t1", "join", "prescribes", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "medication", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "medication", "where", "t3", ".", "brand", "=", "value" ], "question": "Which physicians prescribe a medication of brand X? Tell me the name and position of those physicians.", "question_toks": [ "which", "physician", "prescribe", "a", "medication", "of", "brand", "x", "?", "tell", "me", "name", "and", "position", "of", "those", "physician", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 40, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 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, 40, 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, 38, false ], null ], "\"X\"", null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Which", "physicians", "prescribe", "a", "medication", "of", "brand", "X", "?", "Tell", "me", "the", "name", "and", "position", "of", "those", "physicians", "." ], "question_arg": [ [ "which" ], [ "physician" ], [ "prescribe" ], [ "a" ], [ "medication" ], [ "of" ], [ "brand" ], [ "x" ], [ "?" ], [ "tell" ], [ "me" ], [ "name" ], [ "and" ], [ "position" ], [ "of" ], [ "those" ], [ "physician" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "physician", "JJ" ], [ "prescribe", "NN" ], [ "a", "DT" ], [ "medication", "NN" ], [ "of", "IN" ], [ "brand", "NN" ], [ "x", "NNP" ], [ "?", "." ], [ "tell", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "and", "CC" ], [ "position", "NN" ], [ "of", "IN" ], [ "those", "DT" ], [ "physician", "JJ" ], [ ".", "." ] ], "values": [ "X" ], "rule_label": "Root1(3) Root(3) Sel(1) 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(9) Filter(2) A(0) C(26) T(8) V(0)" }, { "db_id": "hospital_1", "query": "SELECT count(*) , T1.name FROM medication AS T1 JOIN prescribes AS T2 ON T1.code = T2.medication GROUP BY T1.brand", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "medication", "AS", "T1", "JOIN", "prescribes", "AS", "T2", "ON", "T1.code", "=", "T2.medication", "GROUP", "BY", "T1.brand" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "medication", "as", "t1", "join", "prescribes", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "medication", "group", "by", "t1", ".", "brand" ], "question": "Find the number of medications prescribed for each brand.", "question_toks": [ "find", "number", "of", "medication", "prescribed", "for", "each", "brand", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 42, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 38, 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": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "number", "of", "medications", "prescribed", "for", "each", "brand", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "medication" ], [ "prescribed" ], [ "for" ], [ "each" ], [ "brand" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "medication", "NN" ], [ "prescribed", "VBN" ], [ "for", "IN" ], [ "each", "DT" ], [ "brand", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(9) A(0) C(2) T(8)" }, { "db_id": "hospital_1", "query": "SELECT count(*) , T1.name FROM medication AS T1 JOIN prescribes AS T2 ON T1.code = T2.medication GROUP BY T1.brand", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "medication", "AS", "T1", "JOIN", "prescribes", "AS", "T2", "ON", "T1.code", "=", "T2.medication", "GROUP", "BY", "T1.brand" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "medication", "as", "t1", "join", "prescribes", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "medication", "group", "by", "t1", ".", "brand" ], "question": "How many medications are prescribed for each brand?", "question_toks": [ "how", "many", "medication", "are", "prescribed", "for", "each", "brand", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 42, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 38, 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": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "How", "many", "medications", "are", "prescribed", "for", "each", "brand", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "medication" ], [ "are" ], [ "prescribed" ], [ "for" ], [ "each" ], [ "brand" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "medication", "NN" ], [ "are", "VBP" ], [ "prescribed", "VBN" ], [ "for", "IN" ], [ "each", "DT" ], [ "brand", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(9) A(0) C(2) T(8)" }, { "db_id": "hospital_1", "query": "SELECT name FROM physician WHERE POSITION LIKE '%senior%'", "query_toks": [ "SELECT", "name", "FROM", "physician", "WHERE", "POSITION", "LIKE", "'", "%", "senior", "%", "'" ], "query_toks_no_value": [ "select", "name", "from", "physician", "where", "position", "like", "value" ], "question": "Find the name of physicians whose position title contains the word 'senior'.", "question_toks": [ "find", "name", "of", "physician", "whose", "position", "title", "contains", "word", "'", "senior", "'", "." ], "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, 3, false ], null ], "\"%senior%\"", null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "name", "of", "physicians", "whose", "position", "title", "contains", "the", "word", "'senior", "'", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "physician" ], [ "whose" ], [ "position" ], [ "title" ], [ "contains" ], [ "word" ], [ "'" ], [ "senior" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "physician", "NN" ], [ "whose", "WP$" ], [ "position", "NN" ], [ "title", "NN" ], [ "contains", "VBZ" ], [ "word", "NN" ], [ "'", "''" ], [ "senior", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "senior" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(9) A(0) C(3) T(0) V(0)" }, { "db_id": "hospital_1", "query": "SELECT name FROM physician WHERE POSITION LIKE '%senior%'", "query_toks": [ "SELECT", "name", "FROM", "physician", "WHERE", "POSITION", "LIKE", "'", "%", "senior", "%", "'" ], "query_toks_no_value": [ "select", "name", "from", "physician", "where", "position", "like", "value" ], "question": "What are the names of the physicians who have 'senior' in their titles.", "question_toks": [ "what", "are", "name", "of", "physician", "who", "have", "'", "senior", "'", "in", "their", "title", "." ], "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, 3, false ], null ], "\"%senior%\"", null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "physicians", "who", "have", "'senior", "'", "in", "their", "titles", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "physician" ], [ "who" ], [ "have" ], [ "'" ], [ "senior" ], [ "'" ], [ "in" ], [ "their" ], [ "title" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "physician", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "'", "''" ], [ "senior", "JJ" ], [ "'", "''" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "title", "NN" ], [ ".", "." ] ], "values": [ "senior" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(9) A(0) C(3) T(0) V(0)" }, { "db_id": "hospital_1", "query": "SELECT patient FROM undergoes ORDER BY dateundergoes LIMIT 1", "query_toks": [ "SELECT", "patient", "FROM", "undergoes", "ORDER", "BY", "dateundergoes", "LIMIT", "1" ], "query_toks_no_value": [ "select", "patient", "from", "undergoes", "order", "by", "dateundergoes", "limit", "value" ], "question": "Find the patient who has the most recent undergoing treatment?", "question_toks": [ "find", "patient", "who", "ha", "most", "recent", "undergoing", "treatment", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 14 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 66, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 63, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "patient", "who", "has", "the", "most", "recent", "undergoing", "treatment", "?" ], "question_arg": [ [ "find" ], [ "patient" ], [ "who" ], [ "ha" ], [ "most" ], [ "recent" ], [ "undergoing" ], [ "treatment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "patient", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "recent", "JJ" ], [ "undergoing", "JJ" ], [ "treatment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(21) T(14) Sup(1) A(0) C(46) T(14)" }, { "db_id": "hospital_1", "query": "SELECT patient FROM undergoes ORDER BY dateundergoes LIMIT 1", "query_toks": [ "SELECT", "patient", "FROM", "undergoes", "ORDER", "BY", "dateundergoes", "LIMIT", "1" ], "query_toks_no_value": [ "select", "patient", "from", "undergoes", "order", "by", "dateundergoes", "limit", "value" ], "question": "Which patient is undergoing the most recent treatment?", "question_toks": [ "which", "patient", "is", "undergoing", "most", "recent", "treatment", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 14 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 66, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 63, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Which", "patient", "is", "undergoing", "the", "most", "recent", "treatment", "?" ], "question_arg": [ [ "which" ], [ "patient" ], [ "is" ], [ "undergoing" ], [ "most" ], [ "recent" ], [ "treatment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "patient", "NN" ], [ "is", "VBZ" ], [ "undergoing", "VBG" ], [ "most", "RBS" ], [ "recent", "JJ" ], [ "treatment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(21) T(14) Sup(1) A(0) C(46) T(14)" }, { "db_id": "hospital_1", "query": "SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN patient AS T2 ON T1.patient = T2.SSN JOIN stay AS T3 ON T1.Stay = T3.StayID WHERE T3.room = 111", "query_toks": [ "SELECT", "DISTINCT", "T2.name", "FROM", "undergoes", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1.patient", "=", "T2.SSN", "JOIN", "stay", "AS", "T3", "ON", "T1.Stay", "=", "T3.StayID", "WHERE", "T3.room", "=", "111" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", "from", "undergoes", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "patient", "=", "t2", ".", "ssn", "join", "stay", "as", "t3", "on", "t1", ".", "stay", "=", "t3", ".", "stayid", "where", "t3", ".", "room", "=", "value" ], "question": "Find the names of all patients who have an undergoing treatment and are staying in room 111.", "question_toks": [ "find", "name", "of", "all", "patient", "who", "have", "an", "undergoing", "treatment", "and", "are", "staying", "in", "room", "111", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 63, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 14 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 63, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 14 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 60, false ], null ], 111.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "patients", "who", "have", "an", "undergoing", "treatment", "and", "are", "staying", "in", "room", "111", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "patient" ], [ "who" ], [ "have" ], [ "an" ], [ "undergoing" ], [ "treatment" ], [ "and" ], [ "are" ], [ "staying" ], [ "in" ], [ "room" ], [ "111" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "patient", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "an", "DT" ], [ "undergoing", "JJ" ], [ "treatment", "NN" ], [ "and", "CC" ], [ "are", "VBP" ], [ "staying", "VBG" ], [ "in", "IN" ], [ "room", "NN" ], [ "111", "CD" ], [ ".", "." ] ], "values": [ "111" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(5) Filter(0) Filter(18) A(0) C(4) T(5) Root(5) Sel(0) N(0) A(0) C(21) T(14) Filter(2) A(0) C(41) T(13) V(0)" }, { "db_id": "hospital_1", "query": "SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN patient AS T2 ON T1.patient = T2.SSN JOIN stay AS T3 ON T1.Stay = T3.StayID WHERE T3.room = 111", "query_toks": [ "SELECT", "DISTINCT", "T2.name", "FROM", "undergoes", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1.patient", "=", "T2.SSN", "JOIN", "stay", "AS", "T3", "ON", "T1.Stay", "=", "T3.StayID", "WHERE", "T3.room", "=", "111" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", "from", "undergoes", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "patient", "=", "t2", ".", "ssn", "join", "stay", "as", "t3", "on", "t1", ".", "stay", "=", "t3", ".", "stayid", "where", "t3", ".", "room", "=", "value" ], "question": "What are the names of patients who are staying in room 111 and have an undergoing treatment?", "question_toks": [ "what", "are", "name", "of", "patient", "who", "are", "staying", "in", "room", "111", "and", "have", "an", "undergoing", "treatment", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 63, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 14 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 63, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 14 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 60, false ], null ], 111.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "patients", "who", "are", "staying", "in", "room", "111", "and", "have", "an", "undergoing", "treatment", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "patient" ], [ "who" ], [ "are" ], [ "staying" ], [ "in" ], [ "room" ], [ "111" ], [ "and" ], [ "have" ], [ "an" ], [ "undergoing" ], [ "treatment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "patient", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "staying", "VBG" ], [ "in", "IN" ], [ "room", "NN" ], [ "111", "CD" ], [ "and", "CC" ], [ "have", "VBP" ], [ "an", "DT" ], [ "undergoing", "JJ" ], [ "treatment", "NN" ], [ "?", "." ] ], "values": [ "111" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(5) Filter(0) Filter(18) A(0) C(4) T(5) Root(5) Sel(0) N(0) A(0) C(21) T(14) Filter(2) A(0) C(41) T(13) V(0)" }, { "db_id": "hospital_1", "query": "SELECT DISTINCT name FROM nurse ORDER BY name", "query_toks": [ "SELECT", "DISTINCT", "name", "FROM", "nurse", "ORDER", "BY", "name" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "nurse", "order", "by", "name" ], "question": "List the names of all distinct nurses ordered by alphabetical order?", "question_toks": [ "list", "name", "of", "all", "distinct", "nurse", "ordered", "by", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 25, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "distinct", "nurses", "ordered", "by", "alphabetical", "order", "?" ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "distinct" ], [ "nurse" ], [ "ordered" ], [ "by" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "nurse", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [ "Nurse" ], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(2) T(6) Order(1) A(0) C(2) T(6)" }, { "db_id": "hospital_1", "query": "SELECT DISTINCT name FROM nurse ORDER BY name", "query_toks": [ "SELECT", "DISTINCT", "name", "FROM", "nurse", "ORDER", "BY", "name" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "nurse", "order", "by", "name" ], "question": "What is the alphabetically ordered list of all the distinct names of nurses?", "question_toks": [ "what", "is", "alphabetically", "ordered", "list", "of", "all", "distinct", "name", "of", "nurse", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 25, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "is", "the", "alphabetically", "ordered", "list", "of", "all", "the", "distinct", "names", "of", "nurses", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "alphabetically" ], [ "ordered" ], [ "list" ], [ "of" ], [ "all" ], [ "distinct" ], [ "name" ], [ "of" ], [ "nurse" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "alphabetically", "RB" ], [ "ordered", "JJ" ], [ "list", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "nurse", "NN" ], [ "?", "." ] ], "values": [ "Nurse" ], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(2) T(6) Order(1) A(0) C(2) T(6)" }, { "db_id": "hospital_1", "query": "SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN nurse AS T2 ON T1.AssistingNurse = T2.EmployeeID", "query_toks": [ "SELECT", "DISTINCT", "T2.name", "FROM", "undergoes", "AS", "T1", "JOIN", "nurse", "AS", "T2", "ON", "T1.AssistingNurse", "=", "T2.EmployeeID" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", "from", "undergoes", "as", "t1", "join", "nurse", "as", "t2", "on", "t1", ".", "assistingnurse", "=", "t2", ".", "employeeid" ], "question": "Find the names of nurses who are nursing an undergoing treatment.", "question_toks": [ "find", "name", "of", "nurse", "who", "are", "nursing", "an", "undergoing", "treatment", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 68, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 14 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 68, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 14 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "names", "of", "nurses", "who", "are", "nursing", "an", "undergoing", "treatment", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "nurse" ], [ "who" ], [ "are" ], [ "nursing" ], [ "an" ], [ "undergoing" ], [ "treatment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "nurse", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "nursing", "VBG" ], [ "an", "DT" ], [ "undergoing", "JJ" ], [ "treatment", "NN" ], [ ".", "." ] ], "values": [ "Nurse" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(6) Filter(18) A(0) C(1) T(6) Root(5) Sel(0) N(0) A(0) C(47) T(14)" }, { "db_id": "hospital_1", "query": "SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN nurse AS T2 ON T1.AssistingNurse = T2.EmployeeID", "query_toks": [ "SELECT", "DISTINCT", "T2.name", "FROM", "undergoes", "AS", "T1", "JOIN", "nurse", "AS", "T2", "ON", "T1.AssistingNurse", "=", "T2.EmployeeID" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", "from", "undergoes", "as", "t1", "join", "nurse", "as", "t2", "on", "t1", ".", "assistingnurse", "=", "t2", ".", "employeeid" ], "question": "Which nurses are in charge of patients undergoing treatments?", "question_toks": [ "which", "nurse", "are", "in", "charge", "of", "patient", "undergoing", "treatment", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 68, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 14 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 68, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 14 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Which", "nurses", "are", "in", "charge", "of", "patients", "undergoing", "treatments", "?" ], "question_arg": [ [ "which" ], [ "nurse" ], [ "are" ], [ "in" ], [ "charge" ], [ "of" ], [ "patient" ], [ "undergoing" ], [ "treatment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "nurse", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "charge", "NN" ], [ "of", "IN" ], [ "patient", "JJ" ], [ "undergoing", "VBG" ], [ "treatment", "NN" ], [ "?", "." ] ], "values": [ "Nurse" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(6) Filter(18) A(0) C(1) T(6) Root(5) Sel(0) N(0) A(0) C(47) T(14)" }, { "db_id": "hospital_1", "query": "SELECT DISTINCT name FROM medication ORDER BY name", "query_toks": [ "SELECT", "DISTINCT", "name", "FROM", "medication", "ORDER", "BY", "name" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "medication", "order", "by", "name" ], "question": "List the names of all distinct medications, ordered in an alphabetical order.", "question_toks": [ "list", "name", "of", "all", "distinct", "medication", ",", "ordered", "in", "an", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 37, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "distinct", "medications", ",", "ordered", "in", "an", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "distinct" ], [ "medication" ], [ "," ], [ "ordered" ], [ "in" ], [ "an" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "medication", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "in", "IN" ], [ "an", "DT" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(2) T(8) Order(1) A(0) C(2) T(8)" }, { "db_id": "hospital_1", "query": "SELECT DISTINCT name FROM medication ORDER BY name", "query_toks": [ "SELECT", "DISTINCT", "name", "FROM", "medication", "ORDER", "BY", "name" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "medication", "order", "by", "name" ], "question": "What is the alphabetically ordered list of all distinct medications?", "question_toks": [ "what", "is", "alphabetically", "ordered", "list", "of", "all", "distinct", "medication", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 37, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "is", "the", "alphabetically", "ordered", "list", "of", "all", "distinct", "medications", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "alphabetically" ], [ "ordered" ], [ "list" ], [ "of" ], [ "all" ], [ "distinct" ], [ "medication" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "alphabetically", "RB" ], [ "ordered", "JJ" ], [ "list", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "medication", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(2) T(8) Order(1) A(0) C(2) T(8)" }, { "db_id": "hospital_1", "query": "SELECT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician ORDER BY T2.dose DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "physician", "AS", "T1", "JOIN", "prescribes", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "ORDER", "BY", "T2.dose", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "physician", "as", "t1", "join", "prescribes", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "order", "by", "t2", ".", "dose", "desc", "limit", "value" ], "question": "What are the names of the physician who prescribed the highest dose?", "question_toks": [ "what", "are", "name", "of", "physician", "who", "prescribed", "highest", "dose", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 40, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 45, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "physician", "who", "prescribed", "the", "highest", "dose", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "physician" ], [ "who" ], [ "prescribed" ], [ "highest" ], [ "dose" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "physician", "NN" ], [ "who", "WP" ], [ "prescribed", "VBD" ], [ "highest", "JJS" ], [ "dose", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(31) T(9)" }, { "db_id": "hospital_1", "query": "SELECT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician ORDER BY T2.dose DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "physician", "AS", "T1", "JOIN", "prescribes", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "ORDER", "BY", "T2.dose", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "physician", "as", "t1", "join", "prescribes", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "order", "by", "t2", ".", "dose", "desc", "limit", "value" ], "question": "Find the physician who prescribed the highest dose. What is his or her name?", "question_toks": [ "find", "physician", "who", "prescribed", "highest", "dose", ".", "what", "is", "his", "or", "her", "name", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 40, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 45, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "physician", "who", "prescribed", "the", "highest", "dose", ".", "What", "is", "his", "or", "her", "name", "?" ], "question_arg": [ [ "find" ], [ "physician" ], [ "who" ], [ "prescribed" ], [ "highest" ], [ "dose" ], [ "." ], [ "what" ], [ "is" ], [ "his" ], [ "or" ], [ "her" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "physician", "NN" ], [ "who", "WP" ], [ "prescribed", "VBD" ], [ "highest", "JJS" ], [ "dose", "NN" ], [ ".", "." ], [ "what", "WP" ], [ "is", "VBZ" ], [ "his", "PRP$" ], [ "or", "CC" ], [ "her", "PRP$" ], [ "name", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(31) T(9)" }, { "db_id": "hospital_1", "query": "SELECT physician , department FROM affiliated_with WHERE primaryaffiliation = 1", "query_toks": [ "SELECT", "physician", ",", "department", "FROM", "affiliated_with", "WHERE", "primaryaffiliation", "=", "1" ], "query_toks_no_value": [ "select", "physician", ",", "department", "from", "affiliated_with", "where", "primaryaffiliation", "=", "value" ], "question": "List the physicians' employee ids together with their primary affiliation departments' ids.", "question_toks": [ "list", "physician", "'", "employee", "id", "together", "with", "their", "primary", "affiliation", "department", "'", "id", "." ], "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, 2, [ 0, [ 0, 10, false ], null ], 1.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "List", "the", "physicians", "'", "employee", "ids", "together", "with", "their", "primary", "affiliation", "departments", "'", "ids", "." ], "question_arg": [ [ "list" ], [ "physician" ], [ "'" ], [ "employee", "id" ], [ "together" ], [ "with" ], [ "their" ], [ "primary", "affiliation" ], [ "department" ], [ "'" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "physician", "NN" ], [ "'", "''" ], [ "employee", "NN" ], [ "id", "NNS" ], [ "together", "RB" ], [ "with", "IN" ], [ "their", "PRP$" ], [ "primary", "JJ" ], [ "affiliation", "NN" ], [ "department", "NN" ], [ "'", "POS" ], [ "id", "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(2) A(0) C(9) T(2) V(0)" }, { "db_id": "hospital_1", "query": "SELECT physician , department FROM affiliated_with WHERE primaryaffiliation = 1", "query_toks": [ "SELECT", "physician", ",", "department", "FROM", "affiliated_with", "WHERE", "primaryaffiliation", "=", "1" ], "query_toks_no_value": [ "select", "physician", ",", "department", "from", "affiliated_with", "where", "primaryaffiliation", "=", "value" ], "question": "What are each physician's employee id and department id primarily affiliated.", "question_toks": [ "what", "are", "each", "physician", "'s", "employee", "id", "and", "department", "id", "primarily", "affiliated", "." ], "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, 2, [ 0, [ 0, 10, false ], null ], 1.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "are", "each", "physician", "'s", "employee", "id", "and", "department", "id", "primarily", "affiliated", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "each" ], [ "physician" ], [ "'s" ], [ "employee", "id" ], [ "and" ], [ "department" ], [ "id" ], [ "primarily" ], [ "affiliated" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "each", "DT" ], [ "physician", "NN" ], [ "'s", "POS" ], [ "employee", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "department", "NN" ], [ "id", "NN" ], [ "primarily", "RB" ], [ "affiliated", "VBN" ], [ ".", "." ] ], "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(2) A(0) C(9) T(2) V(0)" }, { "db_id": "hospital_1", "query": "SELECT DISTINCT T2.name FROM affiliated_with AS T1 JOIN department AS T2 ON T1.department = T2.departmentid WHERE PrimaryAffiliation = 1", "query_toks": [ "SELECT", "DISTINCT", "T2.name", "FROM", "affiliated_with", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.department", "=", "T2.departmentid", "WHERE", "PrimaryAffiliation", "=", "1" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", "from", "affiliated_with", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "department", "=", "t2", ".", "departmentid", "where", "primaryaffiliation", "=", "value" ], "question": "List the names of departments where some physicians are primarily affiliated with.", "question_toks": [ "list", "name", "of", "department", "where", "some", "physician", "are", "primarily", "affiliated", "with", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], 1.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "List", "the", "names", "of", "departments", "where", "some", "physicians", "are", "primarily", "affiliated", "with", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "department" ], [ "where" ], [ "some" ], [ "physician" ], [ "are" ], [ "primarily" ], [ "affiliated", "with" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "where", "WRB" ], [ "some", "DT" ], [ "physician", "NN" ], [ "are", "VBP" ], [ "primarily", "RB" ], [ "affiliated", "VBN" ], [ "with", "IN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(1) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "hospital_1", "query": "SELECT DISTINCT T2.name FROM affiliated_with AS T1 JOIN department AS T2 ON T1.department = T2.departmentid WHERE PrimaryAffiliation = 1", "query_toks": [ "SELECT", "DISTINCT", "T2.name", "FROM", "affiliated_with", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.department", "=", "T2.departmentid", "WHERE", "PrimaryAffiliation", "=", "1" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", "from", "affiliated_with", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "department", "=", "t2", ".", "departmentid", "where", "primaryaffiliation", "=", "value" ], "question": "What are the names of departments that have primarily affiliated physicians.", "question_toks": [ "what", "are", "name", "of", "department", "that", "have", "primarily", "affiliated", "physician", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], 1.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "departments", "that", "have", "primarily", "affiliated", "physicians", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "department" ], [ "that" ], [ "have" ], [ "primarily" ], [ "affiliated" ], [ "physician" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "primarily", "RB" ], [ "affiliated", "VBN" ], [ "physician", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(1) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "hospital_1", "query": "SELECT nurse FROM on_call WHERE blockfloor = 1 AND blockcode = 1", "query_toks": [ "SELECT", "nurse", "FROM", "on_call", "WHERE", "blockfloor", "=", "1", "AND", "blockcode", "=", "1" ], "query_toks_no_value": [ "select", "nurse", "from", "on_call", "where", "blockfloor", "=", "value", "and", "blockcode", "=", "value" ], "question": "What nurses are on call with block floor 1 and block code 1? Tell me their names.", "question_toks": [ "what", "nurse", "are", "on", "call", "with", "block", "floor", "1", "and", "block", "code", "1", "?", "tell", "me", "their", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 53, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 54, false ], null ], 1.0, null ], "and", [ false, 2, [ 0, [ 0, 55, false ], null ], 1.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "nurses", "are", "on", "call", "with", "block", "floor", "1", "and", "block", "code", "1", "?", "Tell", "me", "their", "names", "." ], "question_arg": [ [ "what" ], [ "nurse" ], [ "are" ], [ "on", "call" ], [ "with" ], [ "block", "floor" ], [ "1" ], [ "and" ], [ "block", "code" ], [ "1" ], [ "?" ], [ "tell" ], [ "me" ], [ "their" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "nurse", "NN" ], [ "are", "VBP" ], [ "on", "IN" ], [ "call", "NN" ], [ "with", "IN" ], [ "block", "NN" ], [ "floor", "NN" ], [ "1", "CD" ], [ "and", "CC" ], [ "block", "VB" ], [ "code", "NN" ], [ "1", "CD" ], [ "?", "." ], [ "tell", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Nurse", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(37) T(12) Filter(0) Filter(2) A(0) C(32) T(12) V(1) Filter(2) A(0) C(33) T(12) V(1)" }, { "db_id": "hospital_1", "query": "SELECT nurse FROM on_call WHERE blockfloor = 1 AND blockcode = 1", "query_toks": [ "SELECT", "nurse", "FROM", "on_call", "WHERE", "blockfloor", "=", "1", "AND", "blockcode", "=", "1" ], "query_toks_no_value": [ "select", "nurse", "from", "on_call", "where", "blockfloor", "=", "value", "and", "blockcode", "=", "value" ], "question": "Find the ids of the nurses who are on call in block floor 1 and block code 1.", "question_toks": [ "find", "id", "of", "nurse", "who", "are", "on", "call", "in", "block", "floor", "1", "and", "block", "code", "1", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 53, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 54, false ], null ], 1.0, null ], "and", [ false, 2, [ 0, [ 0, 55, false ], null ], 1.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "ids", "of", "the", "nurses", "who", "are", "on", "call", "in", "block", "floor", "1", "and", "block", "code", "1", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "nurse" ], [ "who" ], [ "are" ], [ "on", "call" ], [ "in" ], [ "block", "floor" ], [ "1" ], [ "and" ], [ "block", "code" ], [ "1" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "nurse", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "on", "IN" ], [ "call", "NN" ], [ "in", "IN" ], [ "block", "NN" ], [ "floor", "NN" ], [ "1", "CD" ], [ "and", "CC" ], [ "block", "VB" ], [ "code", "NN" ], [ "1", "CD" ], [ ".", "." ] ], "values": [ "Nurse", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(37) T(12) Filter(0) Filter(2) A(0) C(32) T(12) V(1) Filter(2) A(0) C(33) T(12) V(1)" }, { "db_id": "hospital_1", "query": "SELECT MAX(cost) , MIN(cost) , AVG(cost) FROM procedures", "query_toks": [ "SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures" ], "query_toks_no_value": [ "select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures" ], "question": "What are the highest cost, lowest cost and average cost of procedures?", "question_toks": [ "what", "are", "highest", "cost", ",", "lowest", "cost", "and", "average", "cost", "of", "procedure", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 13, false ], null ] ], [ 2, [ 0, [ 0, 13, false ], null ] ], [ 5, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "are", "the", "highest", "cost", ",", "lowest", "cost", "and", "average", "cost", "of", "procedures", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "highest" ], [ "cost" ], [ "," ], [ "lowest" ], [ "cost" ], [ "and" ], [ "average" ], [ "cost" ], [ "of" ], [ "procedure" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "highest", "JJS" ], [ "cost", "NN" ], [ ",", "," ], [ "lowest", "JJS" ], [ "cost", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "cost", "NN" ], [ "of", "IN" ], [ "procedure", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(1) C(11) T(3) A(2) C(11) T(3) A(5) C(11) T(3)" }, { "db_id": "hospital_1", "query": "SELECT MAX(cost) , MIN(cost) , AVG(cost) FROM procedures", "query_toks": [ "SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures" ], "query_toks_no_value": [ "select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures" ], "question": "Tell me the highest, lowest, and average cost of procedures.", "question_toks": [ "tell", "me", "highest", ",", "lowest", ",", "and", "average", "cost", "of", "procedure", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 13, false ], null ] ], [ 2, [ 0, [ 0, 13, false ], null ] ], [ 5, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Tell", "me", "the", "highest", ",", "lowest", ",", "and", "average", "cost", "of", "procedures", "." ], "question_arg": [ [ "tell" ], [ "me" ], [ "highest" ], [ "," ], [ "lowest" ], [ "," ], [ "and" ], [ "average" ], [ "cost" ], [ "of" ], [ "procedure" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "tell", "VB" ], [ "me", "PRP" ], [ "highest", "JJS" ], [ ",", "," ], [ "lowest", "JJS" ], [ ",", "," ], [ "and", "CC" ], [ "average", "JJ" ], [ "cost", "NN" ], [ "of", "IN" ], [ "procedure", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(1) C(11) T(3) A(2) C(11) T(3) A(5) C(11) T(3)" }, { "db_id": "hospital_1", "query": "SELECT name , cost FROM procedures ORDER BY cost DESC", "query_toks": [ "SELECT", "name", ",", "cost", "FROM", "procedures", "ORDER", "BY", "cost", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "cost", "from", "procedures", "order", "by", "cost", "desc" ], "question": "List the name and cost of all procedures sorted by the cost from the highest to the lowest.", "question_toks": [ "list", "name", "and", "cost", "of", "all", "procedure", "sorted", "by", "cost", "from", "highest", "to", "lowest", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "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": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "List", "the", "name", "and", "cost", "of", "all", "procedures", "sorted", "by", "the", "cost", "from", "the", "highest", "to", "the", "lowest", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "cost" ], [ "of" ], [ "all" ], [ "procedure" ], [ "sorted" ], [ "by" ], [ "cost" ], [ "from" ], [ "highest" ], [ "to" ], [ "lowest" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "cost", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "procedure", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "cost", "NN" ], [ "from", "IN" ], [ "highest", "JJS" ], [ "to", "TO" ], [ "lowest", "VB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(3) A(0) C(11) T(3) Order(0) A(0) C(11) T(3)" }, { "db_id": "hospital_1", "query": "SELECT name , cost FROM procedures ORDER BY cost DESC", "query_toks": [ "SELECT", "name", ",", "cost", "FROM", "procedures", "ORDER", "BY", "cost", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "cost", "from", "procedures", "order", "by", "cost", "desc" ], "question": "Sort the list of names and costs of all procedures in the descending order of cost.", "question_toks": [ "sort", "list", "of", "name", "and", "cost", "of", "all", "procedure", "in", "descending", "order", "of", "cost", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "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": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Sort", "the", "list", "of", "names", "and", "costs", "of", "all", "procedures", "in", "the", "descending", "order", "of", "cost", "." ], "question_arg": [ [ "sort" ], [ "list" ], [ "of" ], [ "name" ], [ "and" ], [ "cost" ], [ "of" ], [ "all" ], [ "procedure" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "cost" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "sort", "NN" ], [ "list", "NN" ], [ "of", "IN" ], [ "name", "NN" ], [ "and", "CC" ], [ "cost", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "procedure", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "cost", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(3) A(0) C(11) T(3) Order(0) A(0) C(11) T(3)" }, { "db_id": "hospital_1", "query": "SELECT name FROM procedures ORDER BY cost LIMIT 3", "query_toks": [ "SELECT", "name", "FROM", "procedures", "ORDER", "BY", "cost", "LIMIT", "3" ], "query_toks_no_value": [ "select", "name", "from", "procedures", "order", "by", "cost", "limit", "value" ], "question": "Find the three most expensive procedures.", "question_toks": [ "find", "three", "most", "expensive", "procedure", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "three", "most", "expensive", "procedures", "." ], "question_arg": [ [ "find" ], [ "three" ], [ "most" ], [ "expensive" ], [ "procedure" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "three", "CD" ], [ "most", "RBS" ], [ "expensive", "JJ" ], [ "procedure", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(3) Sup(1) A(0) C(11) T(3)" }, { "db_id": "hospital_1", "query": "SELECT name FROM procedures ORDER BY cost LIMIT 3", "query_toks": [ "SELECT", "name", "FROM", "procedures", "ORDER", "BY", "cost", "LIMIT", "3" ], "query_toks_no_value": [ "select", "name", "from", "procedures", "order", "by", "cost", "limit", "value" ], "question": "What are the three most costly procedures?", "question_toks": [ "what", "are", "three", "most", "costly", "procedure", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "are", "the", "three", "most", "costly", "procedures", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "three" ], [ "most" ], [ "costly" ], [ "procedure" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "three", "CD" ], [ "most", "RBS" ], [ "costly", "JJ" ], [ "procedure", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(3) Sup(1) A(0) C(11) T(3)" }, { "db_id": "hospital_1", "query": "SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T3.cost > 5000", "query_toks": [ "SELECT", "T1.name", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "WHERE", "T3.cost", ">", "5000" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t3", ".", "cost", ">", "value" ], "question": "Find the physicians who are trained in a procedure that costs more than 5000.", "question_toks": [ "find", "physician", "who", "are", "trained", "in", "a", "procedure", "that", "cost", "more", "than", "5000", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, 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, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 3, [ 0, [ 0, 13, false ], null ], 5000.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "physicians", "who", "are", "trained", "in", "a", "procedure", "that", "costs", "more", "than", "5000", "." ], "question_arg": [ [ "find" ], [ "physician" ], [ "who" ], [ "are" ], [ "trained", "in" ], [ "a" ], [ "procedure" ], [ "that" ], [ "cost" ], [ "more" ], [ "than" ], [ "5000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "physician", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "trained", "VBN" ], [ "in", "IN" ], [ "a", "DT" ], [ "procedure", "NN" ], [ "that", "WDT" ], [ "cost", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5000", "CD" ], [ ".", "." ] ], "values": [ "5000" ], "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(7) T(4) Filter(5) A(0) C(11) T(3) V(0)" }, { "db_id": "hospital_1", "query": "SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T3.cost > 5000", "query_toks": [ "SELECT", "T1.name", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "WHERE", "T3.cost", ">", "5000" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t3", ".", "cost", ">", "value" ], "question": "Which physicians are trained in procedures that are more expensive than 5000?", "question_toks": [ "which", "physician", "are", "trained", "in", "procedure", "that", "are", "more", "expensive", "than", "5000", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, 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, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 3, [ 0, [ 0, 13, false ], null ], 5000.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Which", "physicians", "are", "trained", "in", "procedures", "that", "are", "more", "expensive", "than", "5000", "?" ], "question_arg": [ [ "which" ], [ "physician" ], [ "are" ], [ "trained", "in" ], [ "procedure" ], [ "that" ], [ "are" ], [ "more" ], [ "expensive" ], [ "than" ], [ "5000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "physician", "NN" ], [ "are", "VBP" ], [ "trained", "VBN" ], [ "in", "IN" ], [ "procedure", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "more", "RBR" ], [ "expensive", "JJ" ], [ "than", "IN" ], [ "5000", "CD" ], [ "?", "." ] ], "values": [ "5000" ], "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(7) T(4) Filter(5) A(0) C(11) T(3) V(0)" }, { "db_id": "hospital_1", "query": "SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment ORDER BY T3.cost DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "ORDER", "BY", "T3.cost", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "order", "by", "t3", ".", "cost", "desc", "limit", "value" ], "question": "Find the physician who was trained in the most expensive procedure?", "question_toks": [ "find", "physician", "who", "wa", "trained", "in", "most", "expensive", "procedure", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 13, 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, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "physician", "who", "was", "trained", "in", "the", "most", "expensive", "procedure", "?" ], "question_arg": [ [ "find" ], [ "physician" ], [ "who" ], [ "wa" ], [ "trained", "in" ], [ "most" ], [ "expensive" ], [ "procedure" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "physician", "NN" ], [ "who", "WP" ], [ "wa", "VBP" ], [ "trained", "VBN" ], [ "in", "IN" ], [ "most", "JJS" ], [ "expensive", "JJ" ], [ "procedure", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(11) T(3) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(7) T(4)" }, { "db_id": "hospital_1", "query": "SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment ORDER BY T3.cost DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "ORDER", "BY", "T3.cost", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "order", "by", "t3", ".", "cost", "desc", "limit", "value" ], "question": "Which physician was trained in the procedure that costs the most.", "question_toks": [ "which", "physician", "wa", "trained", "in", "procedure", "that", "cost", "most", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 13, 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, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Which", "physician", "was", "trained", "in", "the", "procedure", "that", "costs", "the", "most", "." ], "question_arg": [ [ "which" ], [ "physician" ], [ "wa" ], [ "trained", "in" ], [ "procedure" ], [ "that" ], [ "cost" ], [ "most" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "physician", "JJ" ], [ "wa", "NN" ], [ "trained", "VBN" ], [ "in", "IN" ], [ "procedure", "NN" ], [ "that", "IN" ], [ "cost", "NN" ], [ "most", "RBS" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(11) T(3) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(7) T(4)" }, { "db_id": "hospital_1", "query": "SELECT avg(T3.cost) FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = \"John Wen\"", "query_toks": [ "SELECT", "avg", "(", "T3.cost", ")", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "WHERE", "T1.name", "=", "``", "John", "Wen", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t3", ".", "cost", ")", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t1", ".", "name", "=", "value" ], "question": "What is the average cost of procedures that physician John Wen was trained in?", "question_toks": [ "what", "is", "average", "cost", "of", "procedure", "that", "physician", "john", "wen", "wa", "trained", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"John Wen\"", null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "is", "the", "average", "cost", "of", "procedures", "that", "physician", "John", "Wen", "was", "trained", "in", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "cost" ], [ "of" ], [ "procedure" ], [ "that" ], [ "physician" ], [ "john" ], [ "wen" ], [ "wa" ], [ "trained", "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "cost", "NN" ], [ "of", "IN" ], [ "procedure", "NN" ], [ "that", "WDT" ], [ "physician", "JJ" ], [ "john", "NN" ], [ "wen", "NN" ], [ "wa", "NN" ], [ "trained", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "John Wen" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(11) T(3) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(7) T(4) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "hospital_1", "query": "SELECT avg(T3.cost) FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = \"John Wen\"", "query_toks": [ "SELECT", "avg", "(", "T3.cost", ")", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "WHERE", "T1.name", "=", "``", "John", "Wen", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t3", ".", "cost", ")", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t1", ".", "name", "=", "value" ], "question": "Compute the mean price of procedures physician John Wen was trained in.", "question_toks": [ "compute", "mean", "price", "of", "procedure", "physician", "john", "wen", "wa", "trained", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"John Wen\"", null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Compute", "the", "mean", "price", "of", "procedures", "physician", "John", "Wen", "was", "trained", "in", "." ], "question_arg": [ [ "compute" ], [ "mean" ], [ "price" ], [ "of" ], [ "procedure" ], [ "physician" ], [ "john" ], [ "wen" ], [ "wa" ], [ "trained", "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "compute", "JJ" ], [ "mean", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "procedure", "NN" ], [ "physician", "JJ" ], [ "john", "NN" ], [ "wen", "NN" ], [ "wa", "NN" ], [ "trained", "VBN" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "John Wen" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(11) T(3) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(7) T(4) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "hospital_1", "query": "SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = \"John Wen\"", "query_toks": [ "SELECT", "T3.name", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "WHERE", "T1.name", "=", "``", "John", "Wen", "''" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t1", ".", "name", "=", "value" ], "question": "Find the names of procedures which physician John Wen was trained in.", "question_toks": [ "find", "name", "of", "procedure", "which", "physician", "john", "wen", "wa", "trained", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"John Wen\"", null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "names", "of", "procedures", "which", "physician", "John", "Wen", "was", "trained", "in", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "procedure" ], [ "which" ], [ "physician" ], [ "john" ], [ "wen" ], [ "wa" ], [ "trained", "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "procedure", "NN" ], [ "which", "WDT" ], [ "physician", "JJ" ], [ "john", "NN" ], [ "wen", "NN" ], [ "wa", "NN" ], [ "trained", "VBN" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "John Wen" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(3) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(7) T(4) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "hospital_1", "query": "SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = \"John Wen\"", "query_toks": [ "SELECT", "T3.name", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "WHERE", "T1.name", "=", "``", "John", "Wen", "''" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t1", ".", "name", "=", "value" ], "question": "What are the names of procedures physician John Wen was trained in?", "question_toks": [ "what", "are", "name", "of", "procedure", "physician", "john", "wen", "wa", "trained", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"John Wen\"", null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "procedures", "physician", "John", "Wen", "was", "trained", "in", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "procedure" ], [ "physician" ], [ "john" ], [ "wen" ], [ "wa" ], [ "trained", "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "procedure", "NN" ], [ "physician", "JJ" ], [ "john", "NN" ], [ "wen", "NN" ], [ "wa", "NN" ], [ "trained", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "John Wen" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(3) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(7) T(4) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "hospital_1", "query": "SELECT name FROM procedures WHERE cost > 1000 UNION SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = \"John Wen\"", "query_toks": [ "SELECT", "name", "FROM", "procedures", "WHERE", "cost", ">", "1000", "UNION", "SELECT", "T3.name", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "WHERE", "T1.name", "=", "``", "John", "Wen", "''" ], "query_toks_no_value": [ "select", "name", "from", "procedures", "where", "cost", ">", "value", "union", "select", "t3", ".", "name", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t1", ".", "name", "=", "value" ], "question": "Find all procedures which cost more than 1000 or which physician John Wen was trained in.", "question_toks": [ "find", "all", "procedure", "which", "cost", "more", "than", "1000", "or", "which", "physician", "john", "wen", "wa", "trained", "in", "." ], "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": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"John Wen\"", null ] ] }, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 1000.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "all", "procedures", "which", "cost", "more", "than", "1000", "or", "which", "physician", "John", "Wen", "was", "trained", "in", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "procedure" ], [ "which" ], [ "cost" ], [ "more" ], [ "than" ], [ "1000" ], [ "or" ], [ "which" ], [ "physician" ], [ "john" ], [ "wen" ], [ "wa" ], [ "trained", "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "procedure", "NN" ], [ "which", "WDT" ], [ "cost", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ "or", "CC" ], [ "which", "WDT" ], [ "physician", "JJ" ], [ "john", "NN" ], [ "wen", "NN" ], [ "wa", "NN" ], [ "trained", "VBN" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "John Wen", "1000" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(2) T(3) Filter(5) A(0) C(11) T(3) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(3) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(7) T(4) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "hospital_1", "query": "SELECT name FROM procedures WHERE cost > 1000 UNION SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = \"John Wen\"", "query_toks": [ "SELECT", "name", "FROM", "procedures", "WHERE", "cost", ">", "1000", "UNION", "SELECT", "T3.name", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "WHERE", "T1.name", "=", "``", "John", "Wen", "''" ], "query_toks_no_value": [ "select", "name", "from", "procedures", "where", "cost", ">", "value", "union", "select", "t3", ".", "name", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t1", ".", "name", "=", "value" ], "question": "What are the procedures that cost more than 1000 or are specialized in by physician John Wen?", "question_toks": [ "what", "are", "procedure", "that", "cost", "more", "than", "1000", "or", "are", "specialized", "in", "by", "physician", "john", "wen", "?" ], "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": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"John Wen\"", null ] ] }, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 1000.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "are", "the", "procedures", "that", "cost", "more", "than", "1000", "or", "are", "specialized", "in", "by", "physician", "John", "Wen", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "procedure" ], [ "that" ], [ "cost" ], [ "more" ], [ "than" ], [ "1000" ], [ "or" ], [ "are" ], [ "specialized" ], [ "in" ], [ "by" ], [ "physician" ], [ "john" ], [ "wen" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "procedure", "JJ" ], [ "that", "IN" ], [ "cost", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ "or", "CC" ], [ "are", "VBP" ], [ "specialized", "VBN" ], [ "in", "IN" ], [ "by", "IN" ], [ "physician", "JJ" ], [ "john", "NN" ], [ "wen", "NN" ], [ "?", "." ] ], "values": [ "John Wen", "1000" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(2) T(3) Filter(5) A(0) C(11) T(3) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(3) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(7) T(4) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "hospital_1", "query": "SELECT name FROM procedures WHERE cost > 1000 EXCEPT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = \"John Wen\"", "query_toks": [ "SELECT", "name", "FROM", "procedures", "WHERE", "cost", ">", "1000", "EXCEPT", "SELECT", "T3.name", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "WHERE", "T1.name", "=", "``", "John", "Wen", "''" ], "query_toks_no_value": [ "select", "name", "from", "procedures", "where", "cost", ">", "value", "except", "select", "t3", ".", "name", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t1", ".", "name", "=", "value" ], "question": "Find the names of all procedures which cost more than 1000 but which physician John Wen was not trained in?", "question_toks": [ "find", "name", "of", "all", "procedure", "which", "cost", "more", "than", "1000", "but", "which", "physician", "john", "wen", "wa", "not", "trained", "in", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"John Wen\"", 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, 13, false ], null ], 1000.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "procedures", "which", "cost", "more", "than", "1000", "but", "which", "physician", "John", "Wen", "was", "not", "trained", "in", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "procedure" ], [ "which" ], [ "cost" ], [ "more" ], [ "than" ], [ "1000" ], [ "but" ], [ "which" ], [ "physician" ], [ "john" ], [ "wen" ], [ "wa" ], [ "not" ], [ "trained", "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "procedure", "NN" ], [ "which", "WDT" ], [ "cost", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ "but", "CC" ], [ "which", "WDT" ], [ "physician", "JJ" ], [ "john", "NN" ], [ "wen", "NN" ], [ "wa", "IN" ], [ "not", "RB" ], [ "trained", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "John Wen", "1000" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(2) T(3) Filter(5) A(0) C(11) T(3) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(3) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(7) T(4) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "hospital_1", "query": "SELECT name FROM procedures WHERE cost > 1000 EXCEPT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = \"John Wen\"", "query_toks": [ "SELECT", "name", "FROM", "procedures", "WHERE", "cost", ">", "1000", "EXCEPT", "SELECT", "T3.name", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "WHERE", "T1.name", "=", "``", "John", "Wen", "''" ], "query_toks_no_value": [ "select", "name", "from", "procedures", "where", "cost", ">", "value", "except", "select", "t3", ".", "name", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t1", ".", "name", "=", "value" ], "question": "Among the procedures that cost more than 1000, which were not specialized in by physician John Wen?", "question_toks": [ "among", "procedure", "that", "cost", "more", "than", "1000", ",", "which", "were", "not", "specialized", "in", "by", "physician", "john", "wen", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"John Wen\"", 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, 13, false ], null ], 1000.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Among", "the", "procedures", "that", "cost", "more", "than", "1000", ",", "which", "were", "not", "specialized", "in", "by", "physician", "John", "Wen", "?" ], "question_arg": [ [ "among" ], [ "procedure" ], [ "that" ], [ "cost" ], [ "more" ], [ "than" ], [ "1000" ], [ "," ], [ "which" ], [ "were" ], [ "not" ], [ "specialized" ], [ "in" ], [ "by" ], [ "physician" ], [ "john" ], [ "wen" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "among", "IN" ], [ "procedure", "NN" ], [ "that", "WDT" ], [ "cost", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ ",", "," ], [ "which", "WDT" ], [ "were", "VBD" ], [ "not", "RB" ], [ "specialized", "VBN" ], [ "in", "IN" ], [ "by", "IN" ], [ "physician", "JJ" ], [ "john", "NN" ], [ "wen", "NN" ], [ "?", "." ] ], "values": [ "John Wen", "1000" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(2) T(3) Filter(5) A(0) C(11) T(3) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(3) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(7) T(4) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "hospital_1", "query": "SELECT name FROM procedures WHERE cost < 5000 INTERSECT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = \"John Wen\"", "query_toks": [ "SELECT", "name", "FROM", "procedures", "WHERE", "cost", "<", "5000", "INTERSECT", "SELECT", "T3.name", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "WHERE", "T1.name", "=", "``", "John", "Wen", "''" ], "query_toks_no_value": [ "select", "name", "from", "procedures", "where", "cost", "<", "value", "intersect", "select", "t3", ".", "name", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t1", ".", "name", "=", "value" ], "question": "Find the names of all procedures such that the cost is less than 5000 and physician John Wen was trained in.", "question_toks": [ "find", "name", "of", "all", "procedure", "such", "that", "cost", "is", "le", "than", "5000", "and", "physician", "john", "wen", "wa", "trained", "in", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"John Wen\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 13, false ], null ], 5000.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "procedures", "such", "that", "the", "cost", "is", "less", "than", "5000", "and", "physician", "John", "Wen", "was", "trained", "in", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "procedure" ], [ "such" ], [ "that" ], [ "cost" ], [ "is" ], [ "le" ], [ "than" ], [ "5000" ], [ "and" ], [ "physician" ], [ "john" ], [ "wen" ], [ "wa" ], [ "trained", "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "procedure", "NN" ], [ "such", "JJ" ], [ "that", "IN" ], [ "cost", "NN" ], [ "is", "VBZ" ], [ "le", "JJR" ], [ "than", "IN" ], [ "5000", "CD" ], [ "and", "CC" ], [ "physician", "JJ" ], [ "john", "NN" ], [ "wen", "NN" ], [ "wa", "NN" ], [ "trained", "VBN" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "John Wen", "5000" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(3) Filter(4) A(0) C(11) T(3) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(3) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(7) T(4) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "hospital_1", "query": "SELECT name FROM procedures WHERE cost < 5000 INTERSECT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = \"John Wen\"", "query_toks": [ "SELECT", "name", "FROM", "procedures", "WHERE", "cost", "<", "5000", "INTERSECT", "SELECT", "T3.name", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "WHERE", "T1.name", "=", "``", "John", "Wen", "''" ], "query_toks_no_value": [ "select", "name", "from", "procedures", "where", "cost", "<", "value", "intersect", "select", "t3", ".", "name", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t1", ".", "name", "=", "value" ], "question": "What procedures cost less than 5000 and have John Wen as a trained physician?", "question_toks": [ "what", "procedure", "cost", "le", "than", "5000", "and", "have", "john", "wen", "a", "a", "trained", "physician", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"John Wen\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 13, false ], null ], 5000.0, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "procedures", "cost", "less", "than", "5000", "and", "have", "John", "Wen", "as", "a", "trained", "physician", "?" ], "question_arg": [ [ "what" ], [ "procedure" ], [ "cost" ], [ "le" ], [ "than" ], [ "5000" ], [ "and" ], [ "have" ], [ "john" ], [ "wen" ], [ "a" ], [ "a" ], [ "trained" ], [ "physician" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "procedure", "NN" ], [ "cost", "NN" ], [ "le", "NN" ], [ "than", "IN" ], [ "5000", "CD" ], [ "and", "CC" ], [ "have", "VBP" ], [ "john", "VBN" ], [ "wen", "VBP" ], [ "a", "DT" ], [ "a", "DT" ], [ "trained", "JJ" ], [ "physician", "NN" ], [ "?", "." ] ], "values": [ "John Wen", "5000" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(3) Filter(4) A(0) C(11) T(3) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(3) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(7) T(4) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "hospital_1", "query": "SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' INTERSECT SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Psychiatry'", "query_toks": [ "SELECT", "T1.name", "FROM", "physician", "AS", "T1", "JOIN", "affiliated_with", "AS", "T2", "ON", "T1.EmployeeID", "=", "T2.physician", "JOIN", "department", "AS", "T3", "ON", "T2.department", "=", "T3.DepartmentID", "WHERE", "T3.name", "=", "'Surgery", "'", "INTERSECT", "SELECT", "T1.name", "FROM", "physician", "AS", "T1", "JOIN", "affiliated_with", "AS", "T2", "ON", "T1.EmployeeID", "=", "T2.physician", "JOIN", "department", "AS", "T3", "ON", "T2.department", "=", "T3.DepartmentID", "WHERE", "T3.name", "=", "'Psychiatry", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "physician", "as", "t1", "join", "affiliated_with", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "department", "as", "t3", "on", "t2", ".", "department", "=", "t3", ".", "departmentid", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t1", ".", "name", "from", "physician", "as", "t1", "join", "affiliated_with", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "department", "as", "t3", "on", "t2", ".", "department", "=", "t3", ".", "departmentid", "where", "t3", ".", "name", "=", "value" ], "question": "Find the name of physicians who are affiliated with both Surgery and Psychiatry departments.", "question_toks": [ "find", "name", "of", "physician", "who", "are", "affiliated", "with", "both", "surgery", "and", "psychiatry", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, 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, 8, 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, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Psychiatry\"", 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", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Surgery\"", null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "name", "of", "physicians", "who", "are", "affiliated", "with", "both", "Surgery", "and", "Psychiatry", "departments", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "physician" ], [ "who" ], [ "are" ], [ "affiliated", "with" ], [ "both" ], [ "surgery" ], [ "and" ], [ "psychiatry" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "room" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "physician", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "affiliated", "VBN" ], [ "with", "IN" ], [ "both", "DT" ], [ "surgery", "NN" ], [ "and", "CC" ], [ "psychiatry", "NN" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "Psychiatry", "Surgery" ], "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(2) Filter(2) A(0) C(2) 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(7) T(2) Filter(2) A(0) C(2) T(1) V(0)" }, { "db_id": "hospital_1", "query": "SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' INTERSECT SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Psychiatry'", "query_toks": [ "SELECT", "T1.name", "FROM", "physician", "AS", "T1", "JOIN", "affiliated_with", "AS", "T2", "ON", "T1.EmployeeID", "=", "T2.physician", "JOIN", "department", "AS", "T3", "ON", "T2.department", "=", "T3.DepartmentID", "WHERE", "T3.name", "=", "'Surgery", "'", "INTERSECT", "SELECT", "T1.name", "FROM", "physician", "AS", "T1", "JOIN", "affiliated_with", "AS", "T2", "ON", "T1.EmployeeID", "=", "T2.physician", "JOIN", "department", "AS", "T3", "ON", "T2.department", "=", "T3.DepartmentID", "WHERE", "T3.name", "=", "'Psychiatry", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "physician", "as", "t1", "join", "affiliated_with", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "department", "as", "t3", "on", "t2", ".", "department", "=", "t3", ".", "departmentid", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t1", ".", "name", "from", "physician", "as", "t1", "join", "affiliated_with", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "department", "as", "t3", "on", "t2", ".", "department", "=", "t3", ".", "departmentid", "where", "t3", ".", "name", "=", "value" ], "question": "Which physicians are affiliated with both Surgery and Psychiatry departments? Tell me their names.", "question_toks": [ "which", "physician", "are", "affiliated", "with", "both", "surgery", "and", "psychiatry", "department", "?", "tell", "me", "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", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, 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, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Psychiatry\"", 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", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Surgery\"", null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Which", "physicians", "are", "affiliated", "with", "both", "Surgery", "and", "Psychiatry", "departments", "?", "Tell", "me", "their", "names", "." ], "question_arg": [ [ "which" ], [ "physician" ], [ "are" ], [ "affiliated", "with" ], [ "both" ], [ "surgery" ], [ "and" ], [ "psychiatry" ], [ "department" ], [ "?" ], [ "tell" ], [ "me" ], [ "their" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "room" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "physician", "NN" ], [ "are", "VBP" ], [ "affiliated", "VBN" ], [ "with", "IN" ], [ "both", "DT" ], [ "surgery", "NN" ], [ "and", "CC" ], [ "psychiatry", "NN" ], [ "department", "NN" ], [ "?", "." ], [ "tell", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Psychiatry", "Surgery" ], "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(2) Filter(2) A(0) C(2) 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(7) T(2) Filter(2) A(0) C(2) T(1) V(0)" }, { "db_id": "hospital_1", "query": "SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' OR T3.name = 'Psychiatry'", "query_toks": [ "SELECT", "T1.name", "FROM", "physician", "AS", "T1", "JOIN", "affiliated_with", "AS", "T2", "ON", "T1.EmployeeID", "=", "T2.physician", "JOIN", "department", "AS", "T3", "ON", "T2.department", "=", "T3.DepartmentID", "WHERE", "T3.name", "=", "'Surgery", "'", "OR", "T3.name", "=", "'Psychiatry", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "physician", "as", "t1", "join", "affiliated_with", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "department", "as", "t3", "on", "t2", ".", "department", "=", "t3", ".", "departmentid", "where", "t3", ".", "name", "=", "value", "or", "t3", ".", "name", "=", "value" ], "question": "Find the name of physicians who are affiliated with Surgery or Psychiatry department.", "question_toks": [ "find", "name", "of", "physician", "who", "are", "affiliated", "with", "surgery", "or", "psychiatry", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, 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, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Surgery\"", null ], "or", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Psychiatry\"", null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "name", "of", "physicians", "who", "are", "affiliated", "with", "Surgery", "or", "Psychiatry", "department", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "physician" ], [ "who" ], [ "are" ], [ "affiliated", "with" ], [ "surgery" ], [ "or" ], [ "psychiatry" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "room" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "physician", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "affiliated", "VBN" ], [ "with", "IN" ], [ "surgery", "NN" ], [ "or", "CC" ], [ "psychiatry", "NN" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "Psychiatry", "Surgery" ], "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(7) T(2) Filter(1) Filter(2) A(0) C(2) T(1) V(1) Filter(2) A(0) C(2) T(1) V(0)" }, { "db_id": "hospital_1", "query": "SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' OR T3.name = 'Psychiatry'", "query_toks": [ "SELECT", "T1.name", "FROM", "physician", "AS", "T1", "JOIN", "affiliated_with", "AS", "T2", "ON", "T1.EmployeeID", "=", "T2.physician", "JOIN", "department", "AS", "T3", "ON", "T2.department", "=", "T3.DepartmentID", "WHERE", "T3.name", "=", "'Surgery", "'", "OR", "T3.name", "=", "'Psychiatry", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "physician", "as", "t1", "join", "affiliated_with", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "department", "as", "t3", "on", "t2", ".", "department", "=", "t3", ".", "departmentid", "where", "t3", ".", "name", "=", "value", "or", "t3", ".", "name", "=", "value" ], "question": "Which physicians are affiliated with either Surgery or Psychiatry department? Give me their names.", "question_toks": [ "which", "physician", "are", "affiliated", "with", "either", "surgery", "or", "psychiatry", "department", "?", "give", "me", "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", 2 ] ] }, "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, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Surgery\"", null ], "or", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Psychiatry\"", null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Which", "physicians", "are", "affiliated", "with", "either", "Surgery", "or", "Psychiatry", "department", "?", "Give", "me", "their", "names", "." ], "question_arg": [ [ "which" ], [ "physician" ], [ "are" ], [ "affiliated", "with" ], [ "either" ], [ "surgery" ], [ "or" ], [ "psychiatry" ], [ "department" ], [ "?" ], [ "give" ], [ "me" ], [ "their" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "room" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "physician", "NN" ], [ "are", "VBP" ], [ "affiliated", "VBN" ], [ "with", "IN" ], [ "either", "DT" ], [ "surgery", "NN" ], [ "or", "CC" ], [ "psychiatry", "NN" ], [ "department", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Psychiatry", "Surgery" ], "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(7) T(2) Filter(1) Filter(2) A(0) C(2) T(1) V(1) Filter(2) A(0) C(2) T(1) V(0)" }, { "db_id": "hospital_1", "query": "SELECT name FROM patient EXCEPT SELECT T1.name FROM patient AS T1 JOIN Prescribes AS T2 ON T2.Patient = T1.SSN JOIN Medication AS T3 ON T2.Medication = T3.Code WHERE T3.name = 'Procrastin-X'", "query_toks": [ "SELECT", "name", "FROM", "patient", "EXCEPT", "SELECT", "T1.name", "FROM", "patient", "AS", "T1", "JOIN", "Prescribes", "AS", "T2", "ON", "T2.Patient", "=", "T1.SSN", "JOIN", "Medication", "AS", "T3", "ON", "T2.Medication", "=", "T3.Code", "WHERE", "T3.name", "=", "'Procrastin-X", "'" ], "query_toks_no_value": [ "select", "name", "from", "patient", "except", "select", "t1", ".", "name", "from", "patient", "as", "t1", "join", "prescribes", "as", "t2", "on", "t2", ".", "patient", "=", "t1", ".", "ssn", "join", "medication", "as", "t3", "on", "t2", ".", "medication", "=", "t3", ".", "code", "where", "t3", ".", "name", "=", "value" ], "question": "Find the names of patients who are not using the medication of Procrastin-X.", "question_toks": [ "find", "name", "of", "patient", "who", "are", "not", "using", "medication", "of", "procrastin-x", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 41, 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, 37, false ], null ], "\"Procrastin-X\"", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "names", "of", "patients", "who", "are", "not", "using", "the", "medication", "of", "Procrastin-X", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "patient" ], [ "who" ], [ "are" ], [ "not" ], [ "using" ], [ "medication" ], [ "of" ], [ "procrastin-x" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "patient", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "using", "VBG" ], [ "medication", "NN" ], [ "of", "IN" ], [ "procrastin-x", "NN" ], [ ".", "." ] ], "values": [ "Procrastin-X" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(2) T(5) Root(3) Sel(0) N(0) A(0) C(2) T(5) Filter(0) Filter(18) A(0) C(4) T(5) Root(5) Sel(0) N(0) A(0) C(21) T(9) Filter(2) A(0) C(2) T(8) V(0)" }, { "db_id": "hospital_1", "query": "SELECT name FROM patient EXCEPT SELECT T1.name FROM patient AS T1 JOIN Prescribes AS T2 ON T2.Patient = T1.SSN JOIN Medication AS T3 ON T2.Medication = T3.Code WHERE T3.name = 'Procrastin-X'", "query_toks": [ "SELECT", "name", "FROM", "patient", "EXCEPT", "SELECT", "T1.name", "FROM", "patient", "AS", "T1", "JOIN", "Prescribes", "AS", "T2", "ON", "T2.Patient", "=", "T1.SSN", "JOIN", "Medication", "AS", "T3", "ON", "T2.Medication", "=", "T3.Code", "WHERE", "T3.name", "=", "'Procrastin-X", "'" ], "query_toks_no_value": [ "select", "name", "from", "patient", "except", "select", "t1", ".", "name", "from", "patient", "as", "t1", "join", "prescribes", "as", "t2", "on", "t2", ".", "patient", "=", "t1", ".", "ssn", "join", "medication", "as", "t3", "on", "t2", ".", "medication", "=", "t3", ".", "code", "where", "t3", ".", "name", "=", "value" ], "question": "What are the names of patients who are not taking the medication of Procrastin-X.", "question_toks": [ "what", "are", "name", "of", "patient", "who", "are", "not", "taking", "medication", "of", "procrastin-x", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 41, 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, 37, false ], null ], "\"Procrastin-X\"", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "patients", "who", "are", "not", "taking", "the", "medication", "of", "Procrastin-X", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "patient" ], [ "who" ], [ "are" ], [ "not" ], [ "taking" ], [ "medication" ], [ "of" ], [ "procrastin-x" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "patient", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "taking", "VBG" ], [ "medication", "NN" ], [ "of", "IN" ], [ "procrastin-x", "NN" ], [ ".", "." ] ], "values": [ "Procrastin-X" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(2) T(5) Root(3) Sel(0) N(0) A(0) C(2) T(5) Filter(0) Filter(18) A(0) C(4) T(5) Root(5) Sel(0) N(0) A(0) C(21) T(9) Filter(2) A(0) C(2) T(8) V(0)" }, { "db_id": "hospital_1", "query": "SELECT count(*) FROM patient WHERE SSN NOT IN ( SELECT T1.patient FROM Prescribes AS T1 JOIN Medication AS T2 ON T1.Medication = T2.Code WHERE T2.name = 'Procrastin-X' )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "patient", "WHERE", "SSN", "NOT", "IN", "(", "SELECT", "T1.patient", "FROM", "Prescribes", "AS", "T1", "JOIN", "Medication", "AS", "T2", "ON", "T1.Medication", "=", "T2.Code", "WHERE", "T2.name", "=", "'Procrastin-X", "'", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "patient", "where", "ssn", "not", "in", "(", "select", "t1", ".", "patient", "from", "prescribes", "as", "t1", "join", "medication", "as", "t2", "on", "t1", ".", "medication", "=", "t2", ".", "code", "where", "t2", ".", "name", "=", "value", ")" ], "question": "Find the number of patients who are not using the medication of Procrastin-X.", "question_toks": [ "find", "number", "of", "patient", "who", "are", "not", "using", "medication", "of", "procrastin-x", "." ], "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, 18, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 42, false ], null ], [ 0, 36, false ], null ] ], "table_units": [ [ "table_unit", 9 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 37, false ], null ], "\"Procrastin-X\"", null ] ] }, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "number", "of", "patients", "who", "are", "not", "using", "the", "medication", "of", "Procrastin-X", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "patient" ], [ "who" ], [ "are" ], [ "not" ], [ "using" ], [ "medication" ], [ "of" ], [ "procrastin-x" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "patient", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "using", "VBG" ], [ "medication", "NN" ], [ "of", "IN" ], [ "procrastin-x", "NN" ], [ ".", "." ] ], "values": [ "Procrastin-X" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(19) A(0) C(4) T(5) Root(3) Sel(0) N(0) A(0) C(21) T(9) Filter(2) A(0) C(2) T(8) V(0)" }, { "db_id": "hospital_1", "query": "SELECT count(*) FROM patient WHERE SSN NOT IN ( SELECT T1.patient FROM Prescribes AS T1 JOIN Medication AS T2 ON T1.Medication = T2.Code WHERE T2.name = 'Procrastin-X' )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "patient", "WHERE", "SSN", "NOT", "IN", "(", "SELECT", "T1.patient", "FROM", "Prescribes", "AS", "T1", "JOIN", "Medication", "AS", "T2", "ON", "T1.Medication", "=", "T2.Code", "WHERE", "T2.name", "=", "'Procrastin-X", "'", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "patient", "where", "ssn", "not", "in", "(", "select", "t1", ".", "patient", "from", "prescribes", "as", "t1", "join", "medication", "as", "t2", "on", "t1", ".", "medication", "=", "t2", ".", "code", "where", "t2", ".", "name", "=", "value", ")" ], "question": "How many patients are not using Procrastin-X as medication?", "question_toks": [ "how", "many", "patient", "are", "not", "using", "procrastin-x", "a", "medication", "?" ], "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, 18, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 42, false ], null ], [ 0, 36, false ], null ] ], "table_units": [ [ "table_unit", 9 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 37, false ], null ], "\"Procrastin-X\"", null ] ] }, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "How", "many", "patients", "are", "not", "using", "Procrastin-X", "as", "medication", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "patient" ], [ "are" ], [ "not" ], [ "using" ], [ "procrastin-x" ], [ "a" ], [ "medication" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "patient", "NN" ], [ "are", "VBP" ], [ "not", "RB" ], [ "using", "VBG" ], [ "procrastin-x", "JJ" ], [ "a", "DT" ], [ "medication", "NN" ], [ "?", "." ] ], "values": [ "Procrastin-X" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(19) A(0) C(4) T(5) Root(3) Sel(0) N(0) A(0) C(21) T(9) Filter(2) A(0) C(2) T(8) V(0)" }, { "db_id": "hospital_1", "query": "SELECT count(*) FROM appointment", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "appointment" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "appointment" ], "question": "How many appointments are there?", "question_toks": [ "how", "many", "appointment", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "How", "many", "appointments", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "appointment" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "appointment", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(7)" }, { "db_id": "hospital_1", "query": "SELECT count(*) FROM appointment", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "appointment" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "appointment" ], "question": "Count how many appointments have been made in total.", "question_toks": [ "count", "how", "many", "appointment", "have", "been", "made", "in", "total", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Count", "how", "many", "appointments", "have", "been", "made", "in", "total", "." ], "question_arg": [ [ "count" ], [ "how" ], [ "many" ], [ "appointment" ], [ "have" ], [ "been" ], [ "made" ], [ "in" ], [ "total" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "VB" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "appointment", "NN" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "made", "VBN" ], [ "in", "IN" ], [ "total", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(7)" }, { "db_id": "hospital_1", "query": "SELECT DISTINCT T1.name FROM nurse AS T1 JOIN on_call AS T2 ON T1.EmployeeID = T2.nurse", "query_toks": [ "SELECT", "DISTINCT", "T1.name", "FROM", "nurse", "AS", "T1", "JOIN", "on_call", "AS", "T2", "ON", "T1.EmployeeID", "=", "T2.nurse" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", "from", "nurse", "as", "t1", "join", "on_call", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "nurse" ], "question": "Find the names of nurses who are on call.", "question_toks": [ "find", "name", "of", "nurse", "who", "are", "on", "call", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 53, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 53, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "Find", "the", "names", "of", "nurses", "who", "are", "on", "call", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "nurse" ], [ "who" ], [ "are" ], [ "on", "call" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "nurse", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "on", "IN" ], [ "call", "NN" ], [ ".", "." ] ], "values": [ "Nurse" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(6) Filter(18) A(0) C(1) T(6) Root(5) Sel(0) N(0) A(0) C(37) T(12)" }, { "db_id": "hospital_1", "query": "SELECT DISTINCT T1.name FROM nurse AS T1 JOIN on_call AS T2 ON T1.EmployeeID = T2.nurse", "query_toks": [ "SELECT", "DISTINCT", "T1.name", "FROM", "nurse", "AS", "T1", "JOIN", "on_call", "AS", "T2", "ON", "T1.EmployeeID", "=", "T2.nurse" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", "from", "nurse", "as", "t1", "join", "on_call", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "nurse" ], "question": "What are the distinct names of nurses on call?", "question_toks": [ "what", "are", "distinct", "name", "of", "nurse", "on", "call", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 53, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 53, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "employee id", "name", "position", "ssn", "departmentid", "name", "head", "physician", "department", "primary affiliation", "code", "name", "cost", "physician", "treatment", "certification date", "certification expires", "ssn", "name", "address", "phone", "insurance id", "pcp", "employee id", "name", "position", "registered", "ssn", "appointment id", "patient", "prep nurse", "physician", "start", "end", "examination room", "code", "name", "brand", "description", "physician", "patient", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "block floor", "block code", "unavailable", "nurse", "block floor", "block code", "oncall start", "oncall end", "stay id", "patient", "room", "stay start", "stay end", "patient", "procedures", "stay", "date undergoes", "physician", "assisting nurse" ], "table_names": [ "physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes" ], "col_set": [ "*", "employee id", "name", "position", "ssn", "departmentid", "head", "physician", "department", "primary affiliation", "code", "cost", "treatment", "certification date", "certification expires", "address", "phone", "insurance id", "pcp", "registered", "appointment id", "patient", "prep nurse", "start", "end", "examination room", "brand", "description", "medication", "date", "appointment", "dose", "block floor", "block code", "roomnumber", "room type", "unavailable", "nurse", "oncall start", "oncall end", "stay id", "room", "stay start", "stay end", "procedures", "stay", "date undergoes", "assisting nurse" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14 ], "keys": { "7": 1, "1": 1, "9": 5, "5": 5, "8": 8, "15": 11, "11": 11, "14": 14, "23": 1, "32": 1, "31": 24, "24": 24, "30": 18, "18": 18, "44": 29, "29": 29, "42": 36, "36": 36, "41": 18, "40": 40, "50": 46, "46": 46, "51": 47, "47": 55, "54": 46, "55": 47, "53": 53, "60": 48, "48": 48, "59": 18, "68": 24, "67": 1, "65": 58, "58": 58, "64": 11, "63": 63 }, "origin_question_toks": [ "What", "are", "the", "distinct", "names", "of", "nurses", "on", "call", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "name" ], [ "of" ], [ "nurse" ], [ "on", "call" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "nurse", "NN" ], [ "on", "IN" ], [ "call", "NN" ], [ "?", "." ] ], "values": [ "Nurse" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(6) Filter(18) A(0) C(1) T(6) Root(5) Sel(0) N(0) A(0) C(37) T(12)" }, { "db_id": "ship_mission", "query": "SELECT count(*) FROM ship", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ship" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ship" ], "question": "How many ships are there?", "question_toks": [ "how", "many", "ship", "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": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "ships", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "ship" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "ship", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "ship_mission", "query": "SELECT count(*) FROM ship", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ship" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ship" ], "question": "What is the number of ships?", "question_toks": [ "what", "is", "number", "of", "ship", "?" ], "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": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "number", "of", "ships", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "ship" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "ship_mission", "query": "SELECT Name FROM ship ORDER BY Tonnage ASC", "query_toks": [ "SELECT", "Name", "FROM", "ship", "ORDER", "BY", "Tonnage", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "ship", "order", "by", "tonnage", "asc" ], "question": "List the name of ships in ascending order of tonnage.", "question_toks": [ "list", "name", "of", "ship", "in", "ascending", "order", "of", "tonnage", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "name", "of", "ships", "in", "ascending", "order", "of", "tonnage", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "ship" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "tonnage" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "tonnage", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(1) Order(1) A(0) C(11) T(1)" }, { "db_id": "ship_mission", "query": "SELECT Name FROM ship ORDER BY Tonnage ASC", "query_toks": [ "SELECT", "Name", "FROM", "ship", "ORDER", "BY", "Tonnage", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "ship", "order", "by", "tonnage", "asc" ], "question": "what are the names of the ships ordered by ascending tonnage?", "question_toks": [ "what", "are", "name", "of", "ship", "ordered", "by", "ascending", "tonnage", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "the", "ships", "ordered", "by", "ascending", "tonnage", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "ship" ], [ "ordered" ], [ "by" ], [ "ascending" ], [ "tonnage" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "ascending", "VBG" ], [ "tonnage", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(1) Order(1) A(0) C(11) T(1)" }, { "db_id": "ship_mission", "query": "SELECT TYPE , Nationality FROM ship", "query_toks": [ "SELECT", "TYPE", ",", "Nationality", "FROM", "ship" ], "query_toks_no_value": [ "select", "type", ",", "nationality", "from", "ship" ], "question": "What are the type and nationality of ships?", "question_toks": [ "what", "are", "type", "and", "nationality", "of", "ship", "?" ], "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": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "type", "and", "nationality", "of", "ships", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "type" ], [ "and" ], [ "nationality" ], [ "of" ], [ "ship" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "type", "JJ" ], [ "and", "CC" ], [ "nationality", "NN" ], [ "of", "IN" ], [ "ship", "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": "ship_mission", "query": "SELECT TYPE , Nationality FROM ship", "query_toks": [ "SELECT", "TYPE", ",", "Nationality", "FROM", "ship" ], "query_toks_no_value": [ "select", "type", ",", "nationality", "from", "ship" ], "question": "What are the types and nationalities of every ship?", "question_toks": [ "what", "are", "type", "and", "nationality", "of", "every", "ship", "?" ], "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": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "types", "and", "nationalities", "of", "every", "ship", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "type" ], [ "and" ], [ "nationality" ], [ "of" ], [ "every" ], [ "ship" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "type", "JJ" ], [ "and", "CC" ], [ "nationality", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "ship", "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": "ship_mission", "query": "SELECT Name FROM ship WHERE Nationality != \"United States\"", "query_toks": [ "SELECT", "Name", "FROM", "ship", "WHERE", "Nationality", "!", "=", "``", "United", "States", "''" ], "query_toks_no_value": [ "select", "name", "from", "ship", "where", "nationality", "!", "=", "value" ], "question": "List the name of ships whose nationality is not \"United States\".", "question_toks": [ "list", "name", "of", "ship", "whose", "nationality", "is", "not", "'", "united", "state", "'", "." ], "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 ], "\"United States\"", null ] ] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "name", "of", "ships", "whose", "nationality", "is", "not", "``", "United", "States", "''", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "ship" ], [ "whose" ], [ "nationality" ], [ "is" ], [ "not" ], [ "'" ], [ "united" ], [ "state" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "whose", "WP$" ], [ "nationality", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "united", "JJ" ], [ "state", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "United States" ], "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": "ship_mission", "query": "SELECT Name FROM ship WHERE Nationality != \"United States\"", "query_toks": [ "SELECT", "Name", "FROM", "ship", "WHERE", "Nationality", "!", "=", "``", "United", "States", "''" ], "query_toks_no_value": [ "select", "name", "from", "ship", "where", "nationality", "!", "=", "value" ], "question": "What are the names of the ships that are not from the United States?", "question_toks": [ "what", "are", "name", "of", "ship", "that", "are", "not", "from", "united", "state", "?" ], "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 ], "\"United States\"", null ] ] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "the", "ships", "that", "are", "not", "from", "the", "United", "States", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "ship" ], [ "that" ], [ "are" ], [ "not" ], [ "from" ], [ "united" ], [ "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" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "from", "IN" ], [ "united", "JJ" ], [ "state", "NN" ], [ "?", "." ] ], "values": [ "United States" ], "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": "ship_mission", "query": "SELECT Name FROM ship WHERE Nationality = \"United States\" OR Nationality = \"United Kingdom\"", "query_toks": [ "SELECT", "Name", "FROM", "ship", "WHERE", "Nationality", "=", "``", "United", "States", "''", "OR", "Nationality", "=", "``", "United", "Kingdom", "''" ], "query_toks_no_value": [ "select", "name", "from", "ship", "where", "nationality", "=", "value", "or", "nationality", "=", "value" ], "question": "Show the name of ships whose nationality is either United States or United Kingdom.", "question_toks": [ "show", "name", "of", "ship", "whose", "nationality", "is", "either", "united", "state", "or", "united", "kingdom", "." ], "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, 11, false ], null ], "\"United States\"", null ], "or", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"United Kingdom\"", null ] ] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "name", "of", "ships", "whose", "nationality", "is", "either", "United", "States", "or", "United", "Kingdom", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "ship" ], [ "whose" ], [ "nationality" ], [ "is" ], [ "either" ], [ "united" ], [ "state" ], [ "or" ], [ "united" ], [ "kingdom" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "whose", "WP$" ], [ "nationality", "NN" ], [ "is", "VBZ" ], [ "either", "RB" ], [ "united", "JJ" ], [ "state", "NN" ], [ "or", "CC" ], [ "united", "JJ" ], [ "kingdom", "NN" ], [ ".", "." ] ], "values": [ "United States", "United Kingdom" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(1) Filter(2) A(0) C(10) T(1) V(0) Filter(2) A(0) C(10) T(1) V(1)" }, { "db_id": "ship_mission", "query": "SELECT Name FROM ship WHERE Nationality = \"United States\" OR Nationality = \"United Kingdom\"", "query_toks": [ "SELECT", "Name", "FROM", "ship", "WHERE", "Nationality", "=", "``", "United", "States", "''", "OR", "Nationality", "=", "``", "United", "Kingdom", "''" ], "query_toks_no_value": [ "select", "name", "from", "ship", "where", "nationality", "=", "value", "or", "nationality", "=", "value" ], "question": "What are the names of the ships that are from either the US or the UK?", "question_toks": [ "what", "are", "name", "of", "ship", "that", "are", "from", "either", "u", "or", "uk", "?" ], "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, 11, false ], null ], "\"United States\"", null ], "or", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"United Kingdom\"", null ] ] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "the", "ships", "that", "are", "from", "either", "the", "US", "or", "the", "UK", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "ship" ], [ "that" ], [ "are" ], [ "from" ], [ "either" ], [ "u" ], [ "or" ], [ "uk" ], [ "?" ] ], "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" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "from", "IN" ], [ "either", "CC" ], [ "u", "JJ" ], [ "or", "CC" ], [ "uk", "JJ" ], [ "?", "." ] ], "values": [ "United States", "United Kingdom" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(1) Filter(2) A(0) C(10) T(1) V(0) Filter(2) A(0) C(10) T(1) V(1)" }, { "db_id": "ship_mission", "query": "SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "ship", "ORDER", "BY", "Tonnage", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "ship", "order", "by", "tonnage", "desc", "limit", "value" ], "question": "What is the name of the ship with the largest tonnage?", "question_toks": [ "what", "is", "name", "of", "ship", "with", "largest", "tonnage", "?" ], "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, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "name", "of", "the", "ship", "with", "the", "largest", "tonnage", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "ship" ], [ "with" ], [ "largest" ], [ "tonnage" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "tonnage", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(1) Sup(0) A(0) C(11) T(1)" }, { "db_id": "ship_mission", "query": "SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "ship", "ORDER", "BY", "Tonnage", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "ship", "order", "by", "tonnage", "desc", "limit", "value" ], "question": "What is the ship with the largest amount of tonnage called?", "question_toks": [ "what", "is", "ship", "with", "largest", "amount", "of", "tonnage", "called", "?" ], "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, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "ship", "with", "the", "largest", "amount", "of", "tonnage", "called", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "ship" ], [ "with" ], [ "largest" ], [ "amount" ], [ "of" ], [ "tonnage" ], [ "called" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "ship", "JJ" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "tonnage", "NN" ], [ "called", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(1) Sup(0) A(0) C(11) T(1)" }, { "db_id": "ship_mission", "query": "SELECT TYPE , COUNT(*) FROM ship GROUP BY TYPE", "query_toks": [ "SELECT", "TYPE", ",", "COUNT", "(", "*", ")", "FROM", "ship", "GROUP", "BY", "TYPE" ], "query_toks_no_value": [ "select", "type", ",", "count", "(", "*", ")", "from", "ship", "group", "by", "type" ], "question": "Show different types of ships and the number of ships of each type.", "question_toks": [ "show", "different", "type", "of", "ship", "and", "number", "of", "ship", "of", "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 ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "different", "types", "of", "ships", "and", "the", "number", "of", "ships", "of", "each", "type", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "type" ], [ "of" ], [ "ship" ], [ "and" ], [ "number" ], [ "of" ], [ "ship" ], [ "of" ], [ "each" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "different", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(3) C(0) T(1)" }, { "db_id": "ship_mission", "query": "SELECT TYPE , COUNT(*) FROM ship GROUP BY TYPE", "query_toks": [ "SELECT", "TYPE", ",", "COUNT", "(", "*", ")", "FROM", "ship", "GROUP", "BY", "TYPE" ], "query_toks_no_value": [ "select", "type", ",", "count", "(", "*", ")", "from", "ship", "group", "by", "type" ], "question": "For each type, how many ships are there?", "question_toks": [ "for", "each", "type", ",", "how", "many", "ship", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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": [ "For", "each", "type", ",", "how", "many", "ships", "are", "there", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "type" ], [ "," ], [ "how" ], [ "many" ], [ "ship" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "ship", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(3) C(0) T(1)" }, { "db_id": "ship_mission", "query": "SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "TYPE", "FROM", "ship", "GROUP", "BY", "TYPE", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "type", "from", "ship", "group", "by", "type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Please show the most common type of ships.", "question_toks": [ "please", "show", "most", "common", "type", "of", "ship", "." ], "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": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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": [ "Please", "show", "the", "most", "common", "type", "of", "ships", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "most" ], [ "common" ], [ "type" ], [ "of" ], [ "ship" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ ".", "." ] ], "values": [], "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": "ship_mission", "query": "SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "TYPE", "FROM", "ship", "GROUP", "BY", "TYPE", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "type", "from", "ship", "group", "by", "type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most common type of ships?", "question_toks": [ "what", "is", "most", "common", "type", "of", "ship", "?" ], "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": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "most", "common", "type", "of", "ships", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "common" ], [ "type" ], [ "of" ], [ "ship" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "?", "." ] ], "values": [], "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": "ship_mission", "query": "SELECT Nationality FROM ship GROUP BY Nationality HAVING COUNT(*) > 2", "query_toks": [ "SELECT", "Nationality", "FROM", "ship", "GROUP", "BY", "Nationality", "HAVING", "COUNT", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "nationality", "from", "ship", "group", "by", "nationality", "having", "count", "(", "*", ")", ">", "value" ], "question": "List the nations that have more than two ships.", "question_toks": [ "list", "nation", "that", "have", "more", "than", "two", "ship", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 3, [ 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": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "nations", "that", "have", "more", "than", "two", "ships", "." ], "question_arg": [ [ "list" ], [ "nation" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "two" ], [ "ship" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "nation", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "two", "CD" ], [ "ship", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "ship_mission", "query": "SELECT Nationality FROM ship GROUP BY Nationality HAVING COUNT(*) > 2", "query_toks": [ "SELECT", "Nationality", "FROM", "ship", "GROUP", "BY", "Nationality", "HAVING", "COUNT", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "nationality", "from", "ship", "group", "by", "nationality", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the nations that have more than two ships?", "question_toks": [ "what", "are", "nation", "that", "have", "more", "than", "two", "ship", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 3, [ 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": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "nations", "that", "have", "more", "than", "two", "ships", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "nation" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "two" ], [ "ship" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "nation", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "two", "CD" ], [ "ship", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "ship_mission", "query": "SELECT TYPE , avg(Tonnage) FROM ship GROUP BY TYPE", "query_toks": [ "SELECT", "TYPE", ",", "avg", "(", "Tonnage", ")", "FROM", "ship", "GROUP", "BY", "TYPE" ], "query_toks_no_value": [ "select", "type", ",", "avg", "(", "tonnage", ")", "from", "ship", "group", "by", "type" ], "question": "Show different types of ships and the average tonnage of ships of each type.", "question_toks": [ "show", "different", "type", "of", "ship", "and", "average", "tonnage", "of", "ship", "of", "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 ] ], [ 5, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "different", "types", "of", "ships", "and", "the", "average", "tonnage", "of", "ships", "of", "each", "type", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "type" ], [ "of" ], [ "ship" ], [ "and" ], [ "average" ], [ "tonnage" ], [ "of" ], [ "ship" ], [ "of" ], [ "each" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "different", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "tonnage", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(5) C(11) T(1)" }, { "db_id": "ship_mission", "query": "SELECT TYPE , avg(Tonnage) FROM ship GROUP BY TYPE", "query_toks": [ "SELECT", "TYPE", ",", "avg", "(", "Tonnage", ")", "FROM", "ship", "GROUP", "BY", "TYPE" ], "query_toks_no_value": [ "select", "type", ",", "avg", "(", "tonnage", ")", "from", "ship", "group", "by", "type" ], "question": "For each type, what is the average tonnage?", "question_toks": [ "for", "each", "type", ",", "what", "is", "average", "tonnage", "?" ], "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 ] ], [ 5, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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": [ "For", "each", "type", ",", "what", "is", "the", "average", "tonnage", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "type" ], [ "," ], [ "what" ], [ "is" ], [ "average" ], [ "tonnage" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "tonnage", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(5) C(11) T(1)" }, { "db_id": "ship_mission", "query": "SELECT T1.Code , T1.Fate , T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID", "query_toks": [ "SELECT", "T1.Code", ",", "T1.Fate", ",", "T2.Name", "FROM", "mission", "AS", "T1", "JOIN", "ship", "AS", "T2", "ON", "T1.Ship_ID", "=", "T2.Ship_ID" ], "query_toks_no_value": [ "select", "t1", ".", "code", ",", "t1", ".", "fate", ",", "t2", ".", "name", "from", "mission", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "ship_id", "=", "t2", ".", "ship_id" ], "question": "Show codes and fates of missions, and names of ships involved.", "question_toks": [ "show", "code", "and", "fate", "of", "mission", ",", "and", "name", "of", "ship", "involved", "." ], "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, 3, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "codes", "and", "fates", "of", "missions", ",", "and", "names", "of", "ships", "involved", "." ], "question_arg": [ [ "show" ], [ "code" ], [ "and" ], [ "fate" ], [ "of" ], [ "mission" ], [ "," ], [ "and" ], [ "name" ], [ "of" ], [ "ship" ], [ "involved" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "fate", "NN" ], [ "of", "IN" ], [ "mission", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "involved", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(3) T(0) A(0) C(7) T(0) A(0) C(8) T(1)" }, { "db_id": "ship_mission", "query": "SELECT T1.Code , T1.Fate , T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID", "query_toks": [ "SELECT", "T1.Code", ",", "T1.Fate", ",", "T2.Name", "FROM", "mission", "AS", "T1", "JOIN", "ship", "AS", "T2", "ON", "T1.Ship_ID", "=", "T2.Ship_ID" ], "query_toks_no_value": [ "select", "t1", ".", "code", ",", "t1", ".", "fate", ",", "t2", ".", "name", "from", "mission", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "ship_id", "=", "t2", ".", "ship_id" ], "question": "What are the mission codes, fates, and names of the ships involved?", "question_toks": [ "what", "are", "mission", "code", ",", "fate", ",", "and", "name", "of", "ship", "involved", "?" ], "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, 3, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "mission", "codes", ",", "fates", ",", "and", "names", "of", "the", "ships", "involved", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "mission" ], [ "code" ], [ "," ], [ "fate" ], [ "," ], [ "and" ], [ "name" ], [ "of" ], [ "ship" ], [ "involved" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "mission", "JJ" ], [ "code", "NN" ], [ ",", "," ], [ "fate", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "involved", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(3) T(0) A(0) C(7) T(0) A(0) C(8) T(1)" }, { "db_id": "ship_mission", "query": "SELECT T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T1.Launched_Year > 1928", "query_toks": [ "SELECT", "T2.Name", "FROM", "mission", "AS", "T1", "JOIN", "ship", "AS", "T2", "ON", "T1.Ship_ID", "=", "T2.Ship_ID", "WHERE", "T1.Launched_Year", ">", "1928" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "mission", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "ship_id", "=", "t2", ".", "ship_id", "where", "t1", ".", "launched_year", ">", "value" ], "question": "Show names of ships involved in a mission launched after 1928.", "question_toks": [ "show", "name", "of", "ship", "involved", "in", "a", "mission", "launched", "after", "year", "." ], "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 ], 1928.0, null ] ] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "names", "of", "ships", "involved", "in", "a", "mission", "launched", "after", "1928", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "ship" ], [ "involved" ], [ "in" ], [ "a" ], [ "mission" ], [ "launched" ], [ "after" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "a", "DT" ], [ "mission", "NN" ], [ "launched", "VBN" ], [ "after", "IN" ], [ "1928", "CD" ], [ ".", "." ] ], "values": [ "1928" ], "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": "ship_mission", "query": "SELECT T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T1.Launched_Year > 1928", "query_toks": [ "SELECT", "T2.Name", "FROM", "mission", "AS", "T1", "JOIN", "ship", "AS", "T2", "ON", "T1.Ship_ID", "=", "T2.Ship_ID", "WHERE", "T1.Launched_Year", ">", "1928" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "mission", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "ship_id", "=", "t2", ".", "ship_id", "where", "t1", ".", "launched_year", ">", "value" ], "question": "What are the names of ships that were involved in a mission launched after 1928?", "question_toks": [ "what", "are", "name", "of", "ship", "that", "were", "involved", "in", "a", "mission", "launched", "after", "year", "?" ], "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 ], 1928.0, null ] ] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "ships", "that", "were", "involved", "in", "a", "mission", "launched", "after", "1928", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "ship" ], [ "that" ], [ "were" ], [ "involved" ], [ "in" ], [ "a" ], [ "mission" ], [ "launched" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "a", "DT" ], [ "mission", "NN" ], [ "launched", "VBN" ], [ "after", "IN" ], [ "1928", "CD" ], [ "?", "." ] ], "values": [ "1928" ], "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": "ship_mission", "query": "SELECT DISTINCT T1.Fate FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T2.Nationality = \"United States\"", "query_toks": [ "SELECT", "DISTINCT", "T1.Fate", "FROM", "mission", "AS", "T1", "JOIN", "ship", "AS", "T2", "ON", "T1.Ship_ID", "=", "T2.Ship_ID", "WHERE", "T2.Nationality", "=", "``", "United", "States", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fate", "from", "mission", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "ship_id", "=", "t2", ".", "ship_id", "where", "t2", ".", "nationality", "=", "value" ], "question": "Show the distinct fate of missions that involve ships with nationality \"United States\"", "question_toks": [ "show", "distinct", "fate", "of", "mission", "that", "involve", "ship", "with", "nationality", "'", "united", "state", "'" ], "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": [ true, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"United States\"", null ] ] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "distinct", "fate", "of", "missions", "that", "involve", "ships", "with", "nationality", "``", "United", "States", "''" ], "question_arg": [ [ "show" ], [ "distinct" ], [ "fate" ], [ "of" ], [ "mission" ], [ "that" ], [ "involve" ], [ "ship" ], [ "with" ], [ "nationality" ], [ "'" ], [ "united" ], [ "state" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "distinct", "JJ" ], [ "fate", "NN" ], [ "of", "IN" ], [ "mission", "NN" ], [ "that", "IN" ], [ "involve", "VBP" ], [ "ship", "NN" ], [ "with", "IN" ], [ "nationality", "NN" ], [ "'", "''" ], [ "united", "JJ" ], [ "state", "NN" ], [ "'", "''" ] ], "values": [ "United States" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(7) T(0) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "ship_mission", "query": "SELECT DISTINCT T1.Fate FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T2.Nationality = \"United States\"", "query_toks": [ "SELECT", "DISTINCT", "T1.Fate", "FROM", "mission", "AS", "T1", "JOIN", "ship", "AS", "T2", "ON", "T1.Ship_ID", "=", "T2.Ship_ID", "WHERE", "T2.Nationality", "=", "``", "United", "States", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fate", "from", "mission", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "ship_id", "=", "t2", ".", "ship_id", "where", "t2", ".", "nationality", "=", "value" ], "question": "What are the different fates of the mission that involved ships from the United States?", "question_toks": [ "what", "are", "different", "fate", "of", "mission", "that", "involved", "ship", "from", "united", "state", "?" ], "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": [ true, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"United States\"", null ] ] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "fates", "of", "the", "mission", "that", "involved", "ships", "from", "the", "United", "States", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "fate" ], [ "of" ], [ "mission" ], [ "that" ], [ "involved" ], [ "ship" ], [ "from" ], [ "united" ], [ "state" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "fate", "NN" ], [ "of", "IN" ], [ "mission", "NN" ], [ "that", "WDT" ], [ "involved", "VBD" ], [ "ship", "NN" ], [ "from", "IN" ], [ "united", "JJ" ], [ "state", "NN" ], [ "?", "." ] ], "values": [ "United States" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(7) T(0) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "ship_mission", "query": "SELECT Name FROM ship WHERE Ship_ID NOT IN (SELECT Ship_ID FROM mission)", "query_toks": [ "SELECT", "Name", "FROM", "ship", "WHERE", "Ship_ID", "NOT", "IN", "(", "SELECT", "Ship_ID", "FROM", "mission", ")" ], "query_toks_no_value": [ "select", "name", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "mission", ")" ], "question": "List the name of ships that are not involved in any mission", "question_toks": [ "list", "name", "of", "ship", "that", "are", "not", "involved", "in", "any", "mission" ], "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": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "name", "of", "ships", "that", "are", "not", "involved", "in", "any", "mission" ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "ship" ], [ "that" ], [ "are" ], [ "not" ], [ "involved" ], [ "in" ], [ "any" ], [ "mission" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "any", "DT" ], [ "mission", "NN" ] ], "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": "ship_mission", "query": "SELECT Name FROM ship WHERE Ship_ID NOT IN (SELECT Ship_ID FROM mission)", "query_toks": [ "SELECT", "Name", "FROM", "ship", "WHERE", "Ship_ID", "NOT", "IN", "(", "SELECT", "Ship_ID", "FROM", "mission", ")" ], "query_toks_no_value": [ "select", "name", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "mission", ")" ], "question": "What are the names of the ships that are not involved in any missions?", "question_toks": [ "what", "are", "name", "of", "ship", "that", "are", "not", "involved", "in", "any", "mission", "?" ], "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": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "the", "ships", "that", "are", "not", "involved", "in", "any", "missions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "ship" ], [ "that" ], [ "are" ], [ "not" ], [ "involved" ], [ "in" ], [ "any" ], [ "mission" ], [ "?" ] ], "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" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "any", "DT" ], [ "mission", "NN" ], [ "?", "." ] ], "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": "ship_mission", "query": "SELECT TYPE FROM ship WHERE Tonnage > 6000 INTERSECT SELECT TYPE FROM ship WHERE Tonnage < 4000", "query_toks": [ "SELECT", "TYPE", "FROM", "ship", "WHERE", "Tonnage", ">", "6000", "INTERSECT", "SELECT", "TYPE", "FROM", "ship", "WHERE", "Tonnage", "<", "4000" ], "query_toks_no_value": [ "select", "type", "from", "ship", "where", "tonnage", ">", "value", "intersect", "select", "type", "from", "ship", "where", "tonnage", "<", "value" ], "question": "Show the types of ships that have both ships with tonnage larger than 6000 and ships with tonnage smaller than 4000.", "question_toks": [ "show", "type", "of", "ship", "that", "have", "both", "ship", "with", "tonnage", "larger", "than", "6000", "and", "ship", "with", "tonnage", "smaller", "than", "4000", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 12, false ], null ], 4000.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 12, false ], null ], 6000.0, null ] ] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "types", "of", "ships", "that", "have", "both", "ships", "with", "tonnage", "larger", "than", "6000", "and", "ships", "with", "tonnage", "smaller", "than", "4000", "." ], "question_arg": [ [ "show" ], [ "type" ], [ "of" ], [ "ship" ], [ "that" ], [ "have" ], [ "both" ], [ "ship" ], [ "with" ], [ "tonnage" ], [ "larger" ], [ "than" ], [ "6000" ], [ "and" ], [ "ship" ], [ "with" ], [ "tonnage" ], [ "smaller" ], [ "than" ], [ "4000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "type", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "ship", "NN" ], [ "with", "IN" ], [ "tonnage", "NN" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "6000", "CD" ], [ "and", "CC" ], [ "ship", "VB" ], [ "with", "IN" ], [ "tonnage", "NN" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "4000", "CD" ], [ ".", "." ] ], "values": [ "4000", "6000" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(5) A(0) C(11) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(4) A(0) C(11) T(1) V(0)" }, { "db_id": "ship_mission", "query": "SELECT TYPE FROM ship WHERE Tonnage > 6000 INTERSECT SELECT TYPE FROM ship WHERE Tonnage < 4000", "query_toks": [ "SELECT", "TYPE", "FROM", "ship", "WHERE", "Tonnage", ">", "6000", "INTERSECT", "SELECT", "TYPE", "FROM", "ship", "WHERE", "Tonnage", "<", "4000" ], "query_toks_no_value": [ "select", "type", "from", "ship", "where", "tonnage", ">", "value", "intersect", "select", "type", "from", "ship", "where", "tonnage", "<", "value" ], "question": "What are the types of the ships that have both shiips with tonnage more than 6000 and those with tonnage less than 4000?", "question_toks": [ "what", "are", "type", "of", "ship", "that", "have", "both", "shiips", "with", "tonnage", "more", "than", "6000", "and", "those", "with", "tonnage", "le", "than", "4000", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 12, false ], null ], 4000.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 12, false ], null ], 6000.0, null ] ] }, "names": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "ship id", "name", "type", "nationality", "tonnage" ], "table_names": [ "mission", "ship" ], "col_set": [ "*", "mission id", "ship id", "code", "launched year", "location", "speed knots", "fate", "name", "type", "nationality", "tonnage" ], "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", "types", "of", "the", "ships", "that", "have", "both", "shiips", "with", "tonnage", "more", "than", "6000", "and", "those", "with", "tonnage", "less", "than", "4000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "type" ], [ "of" ], [ "ship" ], [ "that" ], [ "have" ], [ "both" ], [ "shiips" ], [ "with" ], [ "tonnage" ], [ "more" ], [ "than" ], [ "6000" ], [ "and" ], [ "those" ], [ "with" ], [ "tonnage" ], [ "le" ], [ "than" ], [ "4000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "type", "JJ" ], [ "of", "IN" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "shiips", "NNS" ], [ "with", "IN" ], [ "tonnage", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "6000", "CD" ], [ "and", "CC" ], [ "those", "DT" ], [ "with", "IN" ], [ "tonnage", "NN" ], [ "le", "NN" ], [ "than", "IN" ], [ "4000", "CD" ], [ "?", "." ] ], "values": [ "6000", "4000" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(5) A(0) C(11) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(4) A(0) C(11) T(1) V(1)" }, { "db_id": "student_1", "query": "SELECT count(*) FROM list", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "list" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "list" ], "question": "Find the number of students in total.", "question_toks": [ "find", "number", "of", "student", "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": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "number", "of", "students", "in", "total", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "student" ], [ "in" ], [ "total" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "in", "IN" ], [ "total", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "student_1", "query": "SELECT count(*) FROM list", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "list" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "list" ], "question": "How many students are there?", "question_toks": [ "how", "many", "student", "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": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "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(0)" }, { "db_id": "student_1", "query": "SELECT lastname FROM list WHERE classroom = 111", "query_toks": [ "SELECT", "lastname", "FROM", "list", "WHERE", "classroom", "=", "111" ], "query_toks_no_value": [ "select", "lastname", "from", "list", "where", "classroom", "=", "value" ], "question": "Find the last names of students studying in room 111.", "question_toks": [ "find", "last", "name", "of", "student", "studying", "in", "room", "111", "." ], "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, 4, false ], null ], 111.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "last", "names", "of", "students", "studying", "in", "room", "111", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "studying" ], [ "in" ], [ "room" ], [ "111" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "studying", "VBG" ], [ "in", "IN" ], [ "room", "NN" ], [ "111", "CD" ], [ ".", "." ] ], "values": [ "111" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT lastname FROM list WHERE classroom = 111", "query_toks": [ "SELECT", "lastname", "FROM", "list", "WHERE", "classroom", "=", "111" ], "query_toks_no_value": [ "select", "lastname", "from", "list", "where", "classroom", "=", "value" ], "question": "What are the last names of students in room 111?", "question_toks": [ "what", "are", "last", "name", "of", "student", "in", "room", "111", "?" ], "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, 4, false ], null ], 111.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "last", "names", "of", "students", "in", "room", "111", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "in" ], [ "room" ], [ "111" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "in", "IN" ], [ "room", "NN" ], [ "111", "CD" ], [ "?", "." ] ], "values": [ "111" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT firstname FROM list WHERE classroom = 108", "query_toks": [ "SELECT", "firstname", "FROM", "list", "WHERE", "classroom", "=", "108" ], "query_toks_no_value": [ "select", "firstname", "from", "list", "where", "classroom", "=", "value" ], "question": "Find the first names of students studying in room 108.", "question_toks": [ "find", "first", "name", "of", "student", "studying", "in", "room", "108", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], 108.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "first", "names", "of", "students", "studying", "in", "room", "108", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "studying" ], [ "in" ], [ "room" ], [ "108" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "studying", "VBG" ], [ "in", "IN" ], [ "room", "NN" ], [ "108", "CD" ], [ ".", "." ] ], "values": [ "1", "108" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(4) T(0) V(1)" }, { "db_id": "student_1", "query": "SELECT firstname FROM list WHERE classroom = 108", "query_toks": [ "SELECT", "firstname", "FROM", "list", "WHERE", "classroom", "=", "108" ], "query_toks_no_value": [ "select", "firstname", "from", "list", "where", "classroom", "=", "value" ], "question": "What are the first names of students in room 108?", "question_toks": [ "what", "are", "first", "name", "of", "student", "in", "room", "108", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], 108.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "students", "in", "room", "108", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "in" ], [ "room" ], [ "108" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "in", "IN" ], [ "room", "NN" ], [ "108", "CD" ], [ "?", "." ] ], "values": [ "1", "108" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(4) T(0) V(1)" }, { "db_id": "student_1", "query": "SELECT DISTINCT firstname FROM list WHERE classroom = 107", "query_toks": [ "SELECT", "DISTINCT", "firstname", "FROM", "list", "WHERE", "classroom", "=", "107" ], "query_toks_no_value": [ "select", "distinct", "firstname", "from", "list", "where", "classroom", "=", "value" ], "question": "What are the first names of students studying in room 107?", "question_toks": [ "what", "are", "first", "name", "of", "student", "studying", "in", "room", "107", "?" ], "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": [ [ false, 2, [ 0, [ 0, 4, false ], null ], 107.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "students", "studying", "in", "room", "107", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "studying" ], [ "in" ], [ "room" ], [ "107" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "studying", "VBG" ], [ "in", "IN" ], [ "room", "NN" ], [ "107", "CD" ], [ "?", "." ] ], "values": [ "1", "107" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(2) A(0) C(4) T(0) V(1)" }, { "db_id": "student_1", "query": "SELECT DISTINCT firstname FROM list WHERE classroom = 107", "query_toks": [ "SELECT", "DISTINCT", "firstname", "FROM", "list", "WHERE", "classroom", "=", "107" ], "query_toks_no_value": [ "select", "distinct", "firstname", "from", "list", "where", "classroom", "=", "value" ], "question": "List the first names of all the students in room 107.", "question_toks": [ "list", "first", "name", "of", "all", "student", "in", "room", "107", "." ], "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": [ [ false, 2, [ 0, [ 0, 4, false ], null ], 107.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "List", "the", "first", "names", "of", "all", "the", "students", "in", "room", "107", "." ], "question_arg": [ [ "list" ], [ "first", "name" ], [ "of" ], [ "all" ], [ "student" ], [ "in" ], [ "room" ], [ "107" ], [ "." ] ], "question_arg_type": [ [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "in", "IN" ], [ "room", "NN" ], [ "107", "CD" ], [ ".", "." ] ], "values": [ "1", "107" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(2) A(0) C(4) T(0) V(1)" }, { "db_id": "student_1", "query": "SELECT DISTINCT classroom , grade FROM list", "query_toks": [ "SELECT", "DISTINCT", "classroom", ",", "grade", "FROM", "list" ], "query_toks_no_value": [ "select", "distinct", "classroom", ",", "grade", "from", "list" ], "question": "For each classroom report the grade that is taught in it. Report just the classroom number and the grade number.", "question_toks": [ "for", "each", "classroom", "report", "grade", "that", "is", "taught", "in", "it", ".", "report", "just", "classroom", "number", "and", "grade", "number", "." ], "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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "For", "each", "classroom", "report", "the", "grade", "that", "is", "taught", "in", "it", ".", "Report", "just", "the", "classroom", "number", "and", "the", "grade", "number", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "classroom" ], [ "report" ], [ "grade" ], [ "that" ], [ "is" ], [ "taught" ], [ "in" ], [ "it" ], [ "." ], [ "report" ], [ "just" ], [ "classroom" ], [ "number" ], [ "and" ], [ "grade" ], [ "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "classroom", "NN" ], [ "report", "NN" ], [ "grade", "VBD" ], [ "that", "DT" ], [ "is", "VBZ" ], [ "taught", "VBN" ], [ "in", "IN" ], [ "it", "PRP" ], [ ".", "." ], [ "report", "VB" ], [ "just", "RB" ], [ "classroom", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "grade", "JJ" ], [ "number", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(4) T(0) A(0) C(3) T(0)" }, { "db_id": "student_1", "query": "SELECT DISTINCT classroom , grade FROM list", "query_toks": [ "SELECT", "DISTINCT", "classroom", ",", "grade", "FROM", "list" ], "query_toks_no_value": [ "select", "distinct", "classroom", ",", "grade", "from", "list" ], "question": "What are the grade number and classroom number of each class in the list?", "question_toks": [ "what", "are", "grade", "number", "and", "classroom", "number", "of", "each", "class", "in", "list", "?" ], "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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "grade", "number", "and", "classroom", "number", "of", "each", "class", "in", "the", "list", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "grade" ], [ "number" ], [ "and" ], [ "classroom" ], [ "number" ], [ "of" ], [ "each" ], [ "class" ], [ "in" ], [ "list" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "grade", "JJ" ], [ "number", "NN" ], [ "and", "CC" ], [ "classroom", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "class", "NN" ], [ "in", "IN" ], [ "list", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(4) T(0) A(0) C(3) T(0)" }, { "db_id": "student_1", "query": "SELECT DISTINCT grade FROM list WHERE classroom = 103", "query_toks": [ "SELECT", "DISTINCT", "grade", "FROM", "list", "WHERE", "classroom", "=", "103" ], "query_toks_no_value": [ "select", "distinct", "grade", "from", "list", "where", "classroom", "=", "value" ], "question": "Which grade is studying in classroom 103?", "question_toks": [ "which", "grade", "is", "studying", "in", "classroom", "103", "?" ], "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, 2, [ 0, [ 0, 4, false ], null ], 103.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Which", "grade", "is", "studying", "in", "classroom", "103", "?" ], "question_arg": [ [ "which" ], [ "grade" ], [ "is" ], [ "studying" ], [ "in" ], [ "classroom" ], [ "103" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "grade", "NN" ], [ "is", "VBZ" ], [ "studying", "VBG" ], [ "in", "IN" ], [ "classroom", "NN" ], [ "103", "CD" ], [ "?", "." ] ], "values": [ "103" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT DISTINCT grade FROM list WHERE classroom = 103", "query_toks": [ "SELECT", "DISTINCT", "grade", "FROM", "list", "WHERE", "classroom", "=", "103" ], "query_toks_no_value": [ "select", "distinct", "grade", "from", "list", "where", "classroom", "=", "value" ], "question": "Find the grade taught in classroom 103.", "question_toks": [ "find", "grade", "taught", "in", "classroom", "103", "." ], "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, 2, [ 0, [ 0, 4, false ], null ], 103.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "grade", "taught", "in", "classroom", "103", "." ], "question_arg": [ [ "find" ], [ "grade" ], [ "taught" ], [ "in" ], [ "classroom" ], [ "103" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "grade", "JJ" ], [ "taught", "NN" ], [ "in", "IN" ], [ "classroom", "NN" ], [ "103", "CD" ], [ ".", "." ] ], "values": [ "103" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT DISTINCT grade FROM list WHERE classroom = 105", "query_toks": [ "SELECT", "DISTINCT", "grade", "FROM", "list", "WHERE", "classroom", "=", "105" ], "query_toks_no_value": [ "select", "distinct", "grade", "from", "list", "where", "classroom", "=", "value" ], "question": "Find the grade studying in room 105.", "question_toks": [ "find", "grade", "studying", "in", "room", "105", "." ], "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, 2, [ 0, [ 0, 4, false ], null ], 105.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "grade", "studying", "in", "room", "105", "." ], "question_arg": [ [ "find" ], [ "grade" ], [ "studying" ], [ "in" ], [ "room" ], [ "105" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "RB" ], [ "grade", "JJ" ], [ "studying", "VBG" ], [ "in", "IN" ], [ "room", "NN" ], [ "105", "CD" ], [ ".", "." ] ], "values": [ "105" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT DISTINCT grade FROM list WHERE classroom = 105", "query_toks": [ "SELECT", "DISTINCT", "grade", "FROM", "list", "WHERE", "classroom", "=", "105" ], "query_toks_no_value": [ "select", "distinct", "grade", "from", "list", "where", "classroom", "=", "value" ], "question": "Which grade is studying in room 105?", "question_toks": [ "which", "grade", "is", "studying", "in", "room", "105", "?" ], "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, 2, [ 0, [ 0, 4, false ], null ], 105.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Which", "grade", "is", "studying", "in", "room", "105", "?" ], "question_arg": [ [ "which" ], [ "grade" ], [ "is" ], [ "studying" ], [ "in" ], [ "room" ], [ "105" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "grade", "NN" ], [ "is", "VBZ" ], [ "studying", "VBG" ], [ "in", "IN" ], [ "room", "NN" ], [ "105", "CD" ], [ "?", "." ] ], "values": [ "105" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT DISTINCT classroom FROM list WHERE grade = 4", "query_toks": [ "SELECT", "DISTINCT", "classroom", "FROM", "list", "WHERE", "grade", "=", "4" ], "query_toks_no_value": [ "select", "distinct", "classroom", "from", "list", "where", "grade", "=", "value" ], "question": "Which classrooms are used by grade 4?", "question_toks": [ "which", "classroom", "are", "used", "by", "grade", "4", "?" ], "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": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 4.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Which", "classrooms", "are", "used", "by", "grade", "4", "?" ], "question_arg": [ [ "which" ], [ "classroom" ], [ "are" ], [ "used" ], [ "by" ], [ "grade" ], [ "4" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "classroom", "NN" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "by", "IN" ], [ "grade", "NN" ], [ "4", "CD" ], [ "?", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(4) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT DISTINCT classroom FROM list WHERE grade = 4", "query_toks": [ "SELECT", "DISTINCT", "classroom", "FROM", "list", "WHERE", "grade", "=", "4" ], "query_toks_no_value": [ "select", "distinct", "classroom", "from", "list", "where", "grade", "=", "value" ], "question": "Find the classrooms in which grade 4 is studying.", "question_toks": [ "find", "classroom", "in", "which", "grade", "4", "is", "studying", "." ], "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": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 4.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "classrooms", "in", "which", "grade", "4", "is", "studying", "." ], "question_arg": [ [ "find" ], [ "classroom" ], [ "in" ], [ "which" ], [ "grade" ], [ "4" ], [ "is" ], [ "studying" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "classroom", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "grade", "NN" ], [ "4", "CD" ], [ "is", "VBZ" ], [ "studying", "VBG" ], [ ".", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(4) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT DISTINCT classroom FROM list WHERE grade = 5", "query_toks": [ "SELECT", "DISTINCT", "classroom", "FROM", "list", "WHERE", "grade", "=", "5" ], "query_toks_no_value": [ "select", "distinct", "classroom", "from", "list", "where", "grade", "=", "value" ], "question": "Which classrooms are used by grade 5?", "question_toks": [ "which", "classroom", "are", "used", "by", "grade", "5", "?" ], "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": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 5.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Which", "classrooms", "are", "used", "by", "grade", "5", "?" ], "question_arg": [ [ "which" ], [ "classroom" ], [ "are" ], [ "used" ], [ "by" ], [ "grade" ], [ "5" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "classroom", "NN" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "by", "IN" ], [ "grade", "NN" ], [ "5", "CD" ], [ "?", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(4) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT DISTINCT classroom FROM list WHERE grade = 5", "query_toks": [ "SELECT", "DISTINCT", "classroom", "FROM", "list", "WHERE", "grade", "=", "5" ], "query_toks_no_value": [ "select", "distinct", "classroom", "from", "list", "where", "grade", "=", "value" ], "question": "Show me the classrooms grade 5 is using.", "question_toks": [ "show", "me", "classroom", "grade", "5", "is", "using", "." ], "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": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 5.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Show", "me", "the", "classrooms", "grade", "5", "is", "using", "." ], "question_arg": [ [ "show" ], [ "me" ], [ "classroom" ], [ "grade" ], [ "5" ], [ "is" ], [ "using" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "me", "PRP" ], [ "classroom", "VB" ], [ "grade", "JJ" ], [ "5", "CD" ], [ "is", "VBZ" ], [ "using", "VBG" ], [ ".", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(4) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT DISTINCT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 5", "query_toks": [ "SELECT", "DISTINCT", "T2.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "grade", "=", "5" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "grade", "=", "value" ], "question": "Find the last names of the teachers that teach fifth grade.", "question_toks": [ "find", "last", "name", "of", "teacher", "that", "teach", "fifth", "grade", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 5.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "last", "names", "of", "the", "teachers", "that", "teach", "fifth", "grade", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "of" ], [ "teacher" ], [ "that" ], [ "teach" ], [ "fifth" ], [ "grade" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "that", "IN" ], [ "teach", "NN" ], [ "fifth", "NN" ], [ "grade", "NN" ], [ ".", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(1) T(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT DISTINCT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 5", "query_toks": [ "SELECT", "DISTINCT", "T2.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "grade", "=", "5" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "grade", "=", "value" ], "question": "what are the last names of the teachers who teach grade 5?", "question_toks": [ "what", "are", "last", "name", "of", "teacher", "who", "teach", "grade", "5", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 5.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "what", "are", "the", "last", "names", "of", "the", "teachers", "who", "teach", "grade", "5", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "last", "name" ], [ "of" ], [ "teacher" ], [ "who" ], [ "teach" ], [ "grade" ], [ "5" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "who", "WP" ], [ "teach", "VBP" ], [ "grade", "VB" ], [ "5", "CD" ], [ "?", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(1) T(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 1", "query_toks": [ "SELECT", "DISTINCT", "T2.firstname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "grade", "=", "1" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "firstname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "grade", "=", "value" ], "question": "Find the first names of the teachers that teach first grade.", "question_toks": [ "find", "first", "name", "of", "teacher", "that", "teach", "first", "grade", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 1.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "first", "names", "of", "the", "teachers", "that", "teach", "first", "grade", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "teacher" ], [ "that" ], [ "teach" ], [ "first" ], [ "grade" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "that", "IN" ], [ "teach", "NN" ], [ "first", "RB" ], [ "grade", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 1", "query_toks": [ "SELECT", "DISTINCT", "T2.firstname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "grade", "=", "1" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "firstname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "grade", "=", "value" ], "question": "What are the first names of the teachers who teach grade 1?", "question_toks": [ "what", "are", "first", "name", "of", "teacher", "who", "teach", "grade", "1", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 1.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "the", "teachers", "who", "teach", "grade", "1", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "of" ], [ "teacher" ], [ "who" ], [ "teach" ], [ "grade" ], [ "1" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "who", "WP" ], [ "teach", "VBP" ], [ "grade", "VB" ], [ "1", "CD" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT firstname FROM teachers WHERE classroom = 110", "query_toks": [ "SELECT", "firstname", "FROM", "teachers", "WHERE", "classroom", "=", "110" ], "query_toks_no_value": [ "select", "firstname", "from", "teachers", "where", "classroom", "=", "value" ], "question": "Find the first names of all the teachers that teach in classroom 110.", "question_toks": [ "find", "first", "name", "of", "all", "teacher", "that", "teach", "in", "classroom", "110", "." ], "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 ], 110.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "first", "names", "of", "all", "the", "teachers", "that", "teach", "in", "classroom", "110", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "all" ], [ "teacher" ], [ "that" ], [ "teach" ], [ "in" ], [ "classroom" ], [ "110" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "teacher", "NN" ], [ "that", "WDT" ], [ "teach", "VBP" ], [ "in", "IN" ], [ "classroom", "NN" ], [ "110", "CD" ], [ ".", "." ] ], "values": [ "1", "110" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(4) T(1) V(1)" }, { "db_id": "student_1", "query": "SELECT firstname FROM teachers WHERE classroom = 110", "query_toks": [ "SELECT", "firstname", "FROM", "teachers", "WHERE", "classroom", "=", "110" ], "query_toks_no_value": [ "select", "firstname", "from", "teachers", "where", "classroom", "=", "value" ], "question": "Which teachers teach in classroom 110? Give me their first names.", "question_toks": [ "which", "teacher", "teach", "in", "classroom", "110", "?", "give", "me", "their", "first", "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": [ [ false, 2, [ 0, [ 0, 7, false ], null ], 110.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Which", "teachers", "teach", "in", "classroom", "110", "?", "Give", "me", "their", "first", "names", "." ], "question_arg": [ [ "which" ], [ "teacher" ], [ "teach" ], [ "in" ], [ "classroom" ], [ "110" ], [ "?" ], [ "give" ], [ "me" ], [ "their" ], [ "first", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "teacher", "RB" ], [ "teach", "VBP" ], [ "in", "IN" ], [ "classroom", "NN" ], [ "110", "CD" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1", "110" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(4) T(1) V(1)" }, { "db_id": "student_1", "query": "SELECT lastname FROM teachers WHERE classroom = 109", "query_toks": [ "SELECT", "lastname", "FROM", "teachers", "WHERE", "classroom", "=", "109" ], "query_toks_no_value": [ "select", "lastname", "from", "teachers", "where", "classroom", "=", "value" ], "question": "Find the last names of teachers teaching in classroom 109.", "question_toks": [ "find", "last", "name", "of", "teacher", "teaching", "in", "classroom", "109", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], 109.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "last", "names", "of", "teachers", "teaching", "in", "classroom", "109", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "of" ], [ "teacher" ], [ "teaching" ], [ "in" ], [ "classroom" ], [ "109" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "teaching", "NN" ], [ "in", "IN" ], [ "classroom", "NN" ], [ "109", "CD" ], [ ".", "." ] ], "values": [ "109" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "student_1", "query": "SELECT lastname FROM teachers WHERE classroom = 109", "query_toks": [ "SELECT", "lastname", "FROM", "teachers", "WHERE", "classroom", "=", "109" ], "query_toks_no_value": [ "select", "lastname", "from", "teachers", "where", "classroom", "=", "value" ], "question": "Which teachers teach in classroom 109? Give me their last names.", "question_toks": [ "which", "teacher", "teach", "in", "classroom", "109", "?", "give", "me", "their", "last", "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, 2, [ 0, [ 0, 7, false ], null ], 109.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Which", "teachers", "teach", "in", "classroom", "109", "?", "Give", "me", "their", "last", "names", "." ], "question_arg": [ [ "which" ], [ "teacher" ], [ "teach" ], [ "in" ], [ "classroom" ], [ "109" ], [ "?" ], [ "give" ], [ "me" ], [ "their" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "teacher", "RB" ], [ "teach", "VBP" ], [ "in", "IN" ], [ "classroom", "NN" ], [ "109", "CD" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "109" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "student_1", "query": "SELECT DISTINCT firstname , lastname FROM teachers", "query_toks": [ "SELECT", "DISTINCT", "firstname", ",", "lastname", "FROM", "teachers" ], "query_toks_no_value": [ "select", "distinct", "firstname", ",", "lastname", "from", "teachers" ], "question": "Report the first name and last name of all the teachers.", "question_toks": [ "report", "first", "name", "and", "last", "name", "of", "all", "teacher", "." ], "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 ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Report", "the", "first", "name", "and", "last", "name", "of", "all", "the", "teachers", "." ], "question_arg": [ [ "report" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "teacher" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "report", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "teacher", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(2) T(1) A(0) C(1) T(1)" }, { "db_id": "student_1", "query": "SELECT DISTINCT firstname , lastname FROM teachers", "query_toks": [ "SELECT", "DISTINCT", "firstname", ",", "lastname", "FROM", "teachers" ], "query_toks_no_value": [ "select", "distinct", "firstname", ",", "lastname", "from", "teachers" ], "question": "What are the first name and last name of all the teachers?", "question_toks": [ "what", "are", "first", "name", "and", "last", "name", "of", "all", "teacher", "?" ], "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 ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "first", "name", "and", "last", "name", "of", "all", "the", "teachers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "teacher" ], [ "?" ] ], "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" ], [ "teacher", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(2) T(1) A(0) C(1) T(1)" }, { "db_id": "student_1", "query": "SELECT DISTINCT firstname , lastname FROM list", "query_toks": [ "SELECT", "DISTINCT", "firstname", ",", "lastname", "FROM", "list" ], "query_toks_no_value": [ "select", "distinct", "firstname", ",", "lastname", "from", "list" ], "question": "Report the first name and last name of all the students.", "question_toks": [ "report", "first", "name", "and", "last", "name", "of", "all", "student", "." ], "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 ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Report", "the", "first", "name", "and", "last", "name", "of", "all", "the", "students", "." ], "question_arg": [ [ "report" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "report", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(2) T(0) A(0) C(1) T(0)" }, { "db_id": "student_1", "query": "SELECT DISTINCT firstname , lastname FROM list", "query_toks": [ "SELECT", "DISTINCT", "firstname", ",", "lastname", "FROM", "list" ], "query_toks_no_value": [ "select", "distinct", "firstname", ",", "lastname", "from", "list" ], "question": "Show each student's first name and last name.", "question_toks": [ "show", "each", "student", "'s", "first", "name", "and", "last", "name", "." ], "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 ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Show", "each", "student", "'s", "first", "name", "and", "last", "name", "." ], "question_arg": [ [ "show" ], [ "each" ], [ "student" ], [ "'s" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "each", "DT" ], [ "student", "NN" ], [ "'s", "POS" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(2) T(0) A(0) C(1) T(0)" }, { "db_id": "student_1", "query": "SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"OTHA\" AND T2.lastname = \"MOYER\"", "query_toks": [ "SELECT", "T1.firstname", ",", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T2.firstname", "=", "``", "OTHA", "''", "AND", "T2.lastname", "=", "``", "MOYER", "''" ], "query_toks_no_value": [ "select", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t2", ".", "firstname", "=", "value", "and", "t2", ".", "lastname", "=", "value" ], "question": "Find all students taught by OTHA MOYER. Output the first and last names of the students.", "question_toks": [ "find", "all", "student", "taught", "by", "otha", "moyer", ".", "output", "first", "and", "last", "name", "of", "student", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"OTHA\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"MOYER\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "all", "students", "taught", "by", "OTHA", "MOYER", ".", "Output", "the", "first", "and", "last", "names", "of", "the", "students", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "student" ], [ "taught" ], [ "by" ], [ "otha" ], [ "moyer" ], [ "." ], [ "output" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "student", "NN" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "otha", "NN" ], [ "moyer", "NN" ], [ ".", "." ], [ "output", "NN" ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "1", "OTHA", "MOYER" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Filter(0) Filter(2) A(0) C(2) T(1) V(1) Filter(2) A(0) C(1) T(1) V(2)" }, { "db_id": "student_1", "query": "SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"OTHA\" AND T2.lastname = \"MOYER\"", "query_toks": [ "SELECT", "T1.firstname", ",", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T2.firstname", "=", "``", "OTHA", "''", "AND", "T2.lastname", "=", "``", "MOYER", "''" ], "query_toks_no_value": [ "select", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t2", ".", "firstname", "=", "value", "and", "t2", ".", "lastname", "=", "value" ], "question": "Which students study under the teacher named OTHA MOYER? Give me the first and last names of the students.", "question_toks": [ "which", "student", "study", "under", "teacher", "named", "otha", "moyer", "?", "give", "me", "first", "and", "last", "name", "of", "student", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"OTHA\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"MOYER\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Which", "students", "study", "under", "the", "teacher", "named", "OTHA", "MOYER", "?", "Give", "me", "the", "first", "and", "last", "names", "of", "the", "students", "." ], "question_arg": [ [ "which" ], [ "student" ], [ "study" ], [ "under" ], [ "teacher" ], [ "named" ], [ "otha" ], [ "moyer" ], [ "?" ], [ "give" ], [ "me" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "student", "NN" ], [ "study", "NN" ], [ "under", "IN" ], [ "teacher", "NN" ], [ "named", "VBN" ], [ "otha", "IN" ], [ "moyer", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "1", "OTHA", "MOYER" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Filter(0) Filter(2) A(0) C(2) T(1) V(1) Filter(2) A(0) C(1) T(1) V(2)" }, { "db_id": "student_1", "query": "SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"MARROTTE\" AND T2.lastname = \"KIRK\"", "query_toks": [ "SELECT", "T1.firstname", ",", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T2.firstname", "=", "``", "MARROTTE", "''", "AND", "T2.lastname", "=", "``", "KIRK", "''" ], "query_toks_no_value": [ "select", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t2", ".", "firstname", "=", "value", "and", "t2", ".", "lastname", "=", "value" ], "question": "Find all students taught by MARROTTE KIRK. Output first and last names of students.", "question_toks": [ "find", "all", "student", "taught", "by", "marrotte", "kirk", ".", "output", "first", "and", "last", "name", "of", "student", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"MARROTTE\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"KIRK\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "all", "students", "taught", "by", "MARROTTE", "KIRK", ".", "Output", "first", "and", "last", "names", "of", "students", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "student" ], [ "taught" ], [ "by" ], [ "marrotte" ], [ "kirk" ], [ "." ], [ "output" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "student", "NN" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "marrotte", "NN" ], [ "kirk", "NN" ], [ ".", "." ], [ "output", "NN" ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "MARROTTE", "1", "KIRK" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Filter(0) Filter(2) A(0) C(2) T(1) V(0) Filter(2) A(0) C(1) T(1) V(2)" }, { "db_id": "student_1", "query": "SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"MARROTTE\" AND T2.lastname = \"KIRK\"", "query_toks": [ "SELECT", "T1.firstname", ",", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T2.firstname", "=", "``", "MARROTTE", "''", "AND", "T2.lastname", "=", "``", "KIRK", "''" ], "query_toks_no_value": [ "select", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t2", ".", "firstname", "=", "value", "and", "t2", ".", "lastname", "=", "value" ], "question": "Which are the first and last names of the students taught by MARROTTE KIRK?", "question_toks": [ "which", "are", "first", "and", "last", "name", "of", "student", "taught", "by", "marrotte", "kirk", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"MARROTTE\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"KIRK\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Which", "are", "the", "first", "and", "last", "names", "of", "the", "students", "taught", "by", "MARROTTE", "KIRK", "?" ], "question_arg": [ [ "which" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "taught" ], [ "by" ], [ "marrotte" ], [ "kirk" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "marrotte", "NN" ], [ "kirk", "NN" ], [ "?", "." ] ], "values": [ "MARROTTE", "1", "KIRK" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Filter(0) Filter(2) A(0) C(2) T(1) V(0) Filter(2) A(0) C(1) T(1) V(2)" }, { "db_id": "student_1", "query": "SELECT T2.firstname , T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = \"EVELINA\" AND T1.lastname = \"BROMLEY\"", "query_toks": [ "SELECT", "T2.firstname", ",", "T2.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.firstname", "=", "``", "EVELINA", "''", "AND", "T1.lastname", "=", "``", "BROMLEY", "''" ], "query_toks_no_value": [ "select", "t2", ".", "firstname", ",", "t2", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "firstname", "=", "value", "and", "t1", ".", "lastname", "=", "value" ], "question": "Find the first and last name of all the teachers that teach EVELINA BROMLEY.", "question_toks": [ "find", "first", "and", "last", "name", "of", "all", "teacher", "that", "teach", "evelina", "bromley", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"EVELINA\"", null ], "and", [ false, 2, [ 0, [ 0, 1, false ], null ], "\"BROMLEY\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "first", "and", "last", "name", "of", "all", "the", "teachers", "that", "teach", "EVELINA", "BROMLEY", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "teacher" ], [ "that" ], [ "teach" ], [ "evelina" ], [ "bromley" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "teacher", "NN" ], [ "that", "IN" ], [ "teach", "NN" ], [ "evelina", "NN" ], [ "bromley", "NN" ], [ ".", "." ] ], "values": [ "BROMLEY", "1", "EVELINA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(1) A(0) C(1) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(2) Filter(2) A(0) C(1) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT T2.firstname , T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = \"EVELINA\" AND T1.lastname = \"BROMLEY\"", "query_toks": [ "SELECT", "T2.firstname", ",", "T2.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.firstname", "=", "``", "EVELINA", "''", "AND", "T1.lastname", "=", "``", "BROMLEY", "''" ], "query_toks_no_value": [ "select", "t2", ".", "firstname", ",", "t2", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "firstname", "=", "value", "and", "t1", ".", "lastname", "=", "value" ], "question": "Which teachers teach the student named EVELINA BROMLEY? Give me the first and last name of the teachers.", "question_toks": [ "which", "teacher", "teach", "student", "named", "evelina", "bromley", "?", "give", "me", "first", "and", "last", "name", "of", "teacher", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"EVELINA\"", null ], "and", [ false, 2, [ 0, [ 0, 1, false ], null ], "\"BROMLEY\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Which", "teachers", "teach", "the", "student", "named", "EVELINA", "BROMLEY", "?", "Give", "me", "the", "first", "and", "last", "name", "of", "the", "teachers", "." ], "question_arg": [ [ "which" ], [ "teacher" ], [ "teach" ], [ "student" ], [ "named" ], [ "evelina" ], [ "bromley" ], [ "?" ], [ "give" ], [ "me" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "teacher" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "teacher", "RB" ], [ "teach", "VBP" ], [ "student", "NN" ], [ "named", "VBN" ], [ "evelina", "IN" ], [ "bromley", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ ".", "." ] ], "values": [ "BROMLEY", "1", "EVELINA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(1) A(0) C(1) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(2) Filter(2) A(0) C(1) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = \"GELL\" AND T1.lastname = \"TAMI\"", "query_toks": [ "SELECT", "T2.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.firstname", "=", "``", "GELL", "''", "AND", "T1.lastname", "=", "``", "TAMI", "''" ], "query_toks_no_value": [ "select", "t2", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "firstname", "=", "value", "and", "t1", ".", "lastname", "=", "value" ], "question": "Find the last names of all the teachers that teach GELL TAMI.", "question_toks": [ "find", "last", "name", "of", "all", "teacher", "that", "teach", "gell", "tami", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"GELL\"", null ], "and", [ false, 2, [ 0, [ 0, 1, false ], null ], "\"TAMI\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "last", "names", "of", "all", "the", "teachers", "that", "teach", "GELL", "TAMI", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "teacher" ], [ "that" ], [ "teach" ], [ "gell" ], [ "tami" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "teacher", "NN" ], [ "that", "IN" ], [ "teach", "NN" ], [ "gell", "NN" ], [ "tami", "NN" ], [ ".", "." ] ], "values": [ "GELL", "TAMI" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(1) T(0) V(1)" }, { "db_id": "student_1", "query": "SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = \"GELL\" AND T1.lastname = \"TAMI\"", "query_toks": [ "SELECT", "T2.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.firstname", "=", "``", "GELL", "''", "AND", "T1.lastname", "=", "``", "TAMI", "''" ], "query_toks_no_value": [ "select", "t2", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "firstname", "=", "value", "and", "t1", ".", "lastname", "=", "value" ], "question": "What are the last names of the teachers who teach the student called GELL TAMI?", "question_toks": [ "what", "are", "last", "name", "of", "teacher", "who", "teach", "student", "called", "gell", "tami", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"GELL\"", null ], "and", [ false, 2, [ 0, [ 0, 1, false ], null ], "\"TAMI\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "last", "names", "of", "the", "teachers", "who", "teach", "the", "student", "called", "GELL", "TAMI", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "last", "name" ], [ "of" ], [ "teacher" ], [ "who" ], [ "teach" ], [ "student" ], [ "called" ], [ "gell" ], [ "tami" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "who", "WP" ], [ "teach", "VBP" ], [ "student", "NN" ], [ "called", "VBN" ], [ "gell", "NN" ], [ "tami", "NN" ], [ "?", "." ] ], "values": [ "GELL", "TAMI" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(1) T(0) V(1)" }, { "db_id": "student_1", "query": "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"LORIA\" AND T2.lastname = \"ONDERSMA\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T2.firstname", "=", "``", "LORIA", "''", "AND", "T2.lastname", "=", "``", "ONDERSMA", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t2", ".", "firstname", "=", "value", "and", "t2", ".", "lastname", "=", "value" ], "question": "How many students does LORIA ONDERSMA teaches?", "question_toks": [ "how", "many", "student", "doe", "loria", "ondersma", "teach", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, 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 ], "\"LORIA\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"ONDERSMA\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "does", "LORIA", "ONDERSMA", "teaches", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "doe" ], [ "loria" ], [ "ondersma" ], [ "teach" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "doe", "NN" ], [ "loria", "NN" ], [ "ondersma", "IN" ], [ "teach", "NN" ], [ "?", "." ] ], "values": [ "LORIA", "ONDERSMA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(2) A(0) C(2) T(1) V(0) Filter(2) A(0) C(1) T(1) V(1)" }, { "db_id": "student_1", "query": "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"LORIA\" AND T2.lastname = \"ONDERSMA\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T2.firstname", "=", "``", "LORIA", "''", "AND", "T2.lastname", "=", "``", "ONDERSMA", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t2", ".", "firstname", "=", "value", "and", "t2", ".", "lastname", "=", "value" ], "question": "Count the number of students the teacher LORIA ONDERSMA teaches.", "question_toks": [ "count", "number", "of", "student", "teacher", "loria", "ondersma", "teach", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, 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 ], "\"LORIA\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"ONDERSMA\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Count", "the", "number", "of", "students", "the", "teacher", "LORIA", "ONDERSMA", "teaches", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "student" ], [ "teacher" ], [ "loria" ], [ "ondersma" ], [ "teach" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "teacher", "NN" ], [ "loria", "NN" ], [ "ondersma", "IN" ], [ "teach", "NN" ], [ ".", "." ] ], "values": [ "LORIA", "ONDERSMA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(2) A(0) C(2) T(1) V(0) Filter(2) A(0) C(1) T(1) V(1)" }, { "db_id": "student_1", "query": "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"KAWA\" AND T2.lastname = \"GORDON\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T2.firstname", "=", "``", "KAWA", "''", "AND", "T2.lastname", "=", "``", "GORDON", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t2", ".", "firstname", "=", "value", "and", "t2", ".", "lastname", "=", "value" ], "question": "How many students does KAWA GORDON teaches?", "question_toks": [ "how", "many", "student", "doe", "kawa", "gordon", "teach", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, 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 ], "\"KAWA\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"GORDON\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "does", "KAWA", "GORDON", "teaches", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "doe" ], [ "kawa" ], [ "gordon" ], [ "teach" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "doe", "NN" ], [ "kawa", "VBD" ], [ "gordon", "JJ" ], [ "teach", "NN" ], [ "?", "." ] ], "values": [ "KAWA", "GORDON" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(2) A(0) C(2) T(1) V(0) Filter(2) A(0) C(1) T(1) V(1)" }, { "db_id": "student_1", "query": "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"KAWA\" AND T2.lastname = \"GORDON\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T2.firstname", "=", "``", "KAWA", "''", "AND", "T2.lastname", "=", "``", "GORDON", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t2", ".", "firstname", "=", "value", "and", "t2", ".", "lastname", "=", "value" ], "question": "Find the number of students taught by the teacher KAWA GORDON.", "question_toks": [ "find", "number", "of", "student", "taught", "by", "teacher", "kawa", "gordon", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, 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 ], "\"KAWA\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"GORDON\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "number", "of", "students", "taught", "by", "the", "teacher", "KAWA", "GORDON", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "student" ], [ "taught" ], [ "by" ], [ "teacher" ], [ "kawa" ], [ "gordon" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "teacher", "NN" ], [ "kawa", "NN" ], [ "gordon", "NN" ], [ ".", "." ] ], "values": [ "KAWA", "GORDON" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(2) A(0) C(2) T(1) V(0) Filter(2) A(0) C(1) T(1) V(1)" }, { "db_id": "student_1", "query": "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"TARRING\" AND T2.lastname = \"LEIA\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T2.firstname", "=", "``", "TARRING", "''", "AND", "T2.lastname", "=", "``", "LEIA", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t2", ".", "firstname", "=", "value", "and", "t2", ".", "lastname", "=", "value" ], "question": "Find the number of students taught by TARRING LEIA.", "question_toks": [ "find", "number", "of", "student", "taught", "by", "tarring", "leia", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, 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 ], "\"TARRING\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"LEIA\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "number", "of", "students", "taught", "by", "TARRING", "LEIA", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "student" ], [ "taught" ], [ "by" ], [ "tarring" ], [ "leia" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "tarring", "VBG" ], [ "leia", "NN" ], [ ".", "." ] ], "values": [ "TARRING", "LEIA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(2) A(0) C(2) T(1) V(0) Filter(2) A(0) C(1) T(1) V(1)" }, { "db_id": "student_1", "query": "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"TARRING\" AND T2.lastname = \"LEIA\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T2.firstname", "=", "``", "TARRING", "''", "AND", "T2.lastname", "=", "``", "LEIA", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t2", ".", "firstname", "=", "value", "and", "t2", ".", "lastname", "=", "value" ], "question": "How many students are taught by teacher TARRING LEIA?", "question_toks": [ "how", "many", "student", "are", "taught", "by", "teacher", "tarring", "leia", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, 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 ], "\"TARRING\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"LEIA\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "are", "taught", "by", "teacher", "TARRING", "LEIA", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "taught" ], [ "by" ], [ "teacher" ], [ "tarring" ], [ "leia" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "teacher", "NN" ], [ "tarring", "VBG" ], [ "leia", "NN" ], [ "?", "." ] ], "values": [ "TARRING", "LEIA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(2) A(0) C(2) T(1) V(0) Filter(2) A(0) C(1) T(1) V(1)" }, { "db_id": "student_1", "query": "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = \"CHRISSY\" AND T1.lastname = \"NABOZNY\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.firstname", "=", "``", "CHRISSY", "''", "AND", "T1.lastname", "=", "``", "NABOZNY", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "firstname", "=", "value", "and", "t1", ".", "lastname", "=", "value" ], "question": "How many teachers does the student named CHRISSY NABOZNY have?", "question_toks": [ "how", "many", "teacher", "doe", "student", "named", "chrissy", "nabozny", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, 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, 2, false ], null ], "\"CHRISSY\"", null ], "and", [ false, 2, [ 0, [ 0, 1, false ], null ], "\"NABOZNY\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "How", "many", "teachers", "does", "the", "student", "named", "CHRISSY", "NABOZNY", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "teacher" ], [ "doe" ], [ "student" ], [ "named" ], [ "chrissy" ], [ "nabozny" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "teacher", "RB" ], [ "doe", "JJ" ], [ "student", "NN" ], [ "named", "VBN" ], [ "chrissy", "JJ" ], [ "nabozny", "NNS" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [ "NABOZNY", "CHRISSY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(1) Filter(2) A(0) C(1) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = \"CHRISSY\" AND T1.lastname = \"NABOZNY\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.firstname", "=", "``", "CHRISSY", "''", "AND", "T1.lastname", "=", "``", "NABOZNY", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "firstname", "=", "value", "and", "t1", ".", "lastname", "=", "value" ], "question": "Find the number of teachers who teach the student called CHRISSY NABOZNY.", "question_toks": [ "find", "number", "of", "teacher", "who", "teach", "student", "called", "chrissy", "nabozny", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, 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, 2, false ], null ], "\"CHRISSY\"", null ], "and", [ false, 2, [ 0, [ 0, 1, false ], null ], "\"NABOZNY\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "number", "of", "teachers", "who", "teach", "the", "student", "called", "CHRISSY", "NABOZNY", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "teacher" ], [ "who" ], [ "teach" ], [ "student" ], [ "called" ], [ "chrissy" ], [ "nabozny" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "who", "WP" ], [ "teach", "VBP" ], [ "student", "NN" ], [ "called", "VBN" ], [ "chrissy", "JJ" ], [ "nabozny", "NN" ], [ ".", "." ] ], "values": [ "NABOZNY", "CHRISSY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(1) Filter(2) A(0) C(1) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = \"MADLOCK\" AND T1.lastname = \"RAY\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.firstname", "=", "``", "MADLOCK", "''", "AND", "T1.lastname", "=", "``", "RAY", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "firstname", "=", "value", "and", "t1", ".", "lastname", "=", "value" ], "question": "How many teachers does the student named MADLOCK RAY have?", "question_toks": [ "how", "many", "teacher", "doe", "student", "named", "madlock", "ray", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, 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, 2, false ], null ], "\"MADLOCK\"", null ], "and", [ false, 2, [ 0, [ 0, 1, false ], null ], "\"RAY\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "How", "many", "teachers", "does", "the", "student", "named", "MADLOCK", "RAY", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "teacher" ], [ "doe" ], [ "student" ], [ "named" ], [ "madlock" ], [ "ray" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "teacher", "RB" ], [ "doe", "JJ" ], [ "student", "NN" ], [ "named", "VBN" ], [ "madlock", "NN" ], [ "ray", "NN" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "MADLOCK", "RAY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(1) T(0) V(1)" }, { "db_id": "student_1", "query": "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = \"MADLOCK\" AND T1.lastname = \"RAY\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.firstname", "=", "``", "MADLOCK", "''", "AND", "T1.lastname", "=", "``", "RAY", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "firstname", "=", "value", "and", "t1", ".", "lastname", "=", "value" ], "question": "Find the number of teachers who teach the student called MADLOCK RAY.", "question_toks": [ "find", "number", "of", "teacher", "who", "teach", "student", "called", "madlock", "ray", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, 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, 2, false ], null ], "\"MADLOCK\"", null ], "and", [ false, 2, [ 0, [ 0, 1, false ], null ], "\"RAY\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "number", "of", "teachers", "who", "teach", "the", "student", "called", "MADLOCK", "RAY", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "teacher" ], [ "who" ], [ "teach" ], [ "student" ], [ "called" ], [ "madlock" ], [ "ray" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "who", "WP" ], [ "teach", "VBP" ], [ "student", "NN" ], [ "called", "VBN" ], [ "madlock", "NN" ], [ "ray", "NN" ], [ ".", "." ] ], "values": [ "MADLOCK", "RAY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(1) T(0) V(1)" }, { "db_id": "student_1", "query": "SELECT DISTINCT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 1 EXCEPT SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"OTHA\" AND T2.lastname = \"MOYER\"", "query_toks": [ "SELECT", "DISTINCT", "T1.firstname", ",", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.grade", "=", "1", "EXCEPT", "SELECT", "T1.firstname", ",", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T2.firstname", "=", "``", "OTHA", "''", "AND", "T2.lastname", "=", "``", "MOYER", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "value", "except", "select", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t2", ".", "firstname", "=", "value", "and", "t2", ".", "lastname", "=", "value" ], "question": "Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names.", "question_toks": [ "find", "all", "first-grade", "student", "who", "are", "not", "taught", "by", "otha", "moyer", ".", "report", "their", "first", "and", "last", "name", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"OTHA\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"MOYER\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, 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, 3, false ], null ], 1.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "all", "first-grade", "students", "who", "are", "NOT", "taught", "by", "OTHA", "MOYER", ".", "Report", "their", "first", "and", "last", "names", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "first-grade" ], [ "student" ], [ "who" ], [ "are" ], [ "not" ], [ "taught" ], [ "by" ], [ "otha" ], [ "moyer" ], [ "." ], [ "report" ], [ "their" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "first-grade", "JJ" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "otha", "NN" ], [ "moyer", "NN" ], [ ".", "." ], [ "report", "VB" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1", "OTHA", "MOYER" ], "rule_label": "Root1(2) Root(3) Sel(1) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Filter(0) Filter(18) A(0) C(4) T(0) Root(5) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(3) T(0) V(0) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Filter(0) Filter(2) A(0) C(2) T(1) V(1) Filter(2) A(0) C(1) T(1) V(2)" }, { "db_id": "student_1", "query": "SELECT DISTINCT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 1 EXCEPT SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"OTHA\" AND T2.lastname = \"MOYER\"", "query_toks": [ "SELECT", "DISTINCT", "T1.firstname", ",", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.grade", "=", "1", "EXCEPT", "SELECT", "T1.firstname", ",", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T2.firstname", "=", "``", "OTHA", "''", "AND", "T2.lastname", "=", "``", "MOYER", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "value", "except", "select", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t2", ".", "firstname", "=", "value", "and", "t2", ".", "lastname", "=", "value" ], "question": "What are the first and last names of the first-grade students who are NOT taught by teacher OTHA MOYER?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "first-grade", "student", "who", "are", "not", "taught", "by", "teacher", "otha", "moyer", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"OTHA\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"MOYER\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, 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, 3, false ], null ], 1.0, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "of", "the", "first-grade", "students", "who", "are", "NOT", "taught", "by", "teacher", "OTHA", "MOYER", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "first-grade" ], [ "student" ], [ "who" ], [ "are" ], [ "not" ], [ "taught" ], [ "by" ], [ "teacher" ], [ "otha" ], [ "moyer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "first-grade", "JJ" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "teacher", "NN" ], [ "otha", "NN" ], [ "moyer", "NN" ], [ "?", "." ] ], "values": [ "1", "OTHA", "MOYER" ], "rule_label": "Root1(2) Root(3) Sel(1) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Filter(0) Filter(18) A(0) C(4) T(0) Root(5) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(3) T(0) V(0) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Filter(0) Filter(2) A(0) C(2) T(1) V(1) Filter(2) A(0) C(1) T(1) V(2)" }, { "db_id": "student_1", "query": "SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 3 AND T2.firstname != \"COVIN\" AND T2.lastname != \"JEROME\"", "query_toks": [ "SELECT", "DISTINCT", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.grade", "=", "3", "AND", "T2.firstname", "!", "=", "``", "COVIN", "''", "AND", "T2.lastname", "!", "=", "``", "JEROME", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "value", "and", "t2", ".", "firstname", "!", "=", "value", "and", "t2", ".", "lastname", "!", "=", "value" ], "question": "Find the last names of the students in third grade that are not taught by COVIN JEROME.", "question_toks": [ "find", "last", "name", "of", "student", "in", "third", "grade", "that", "are", "not", "taught", "by", "covin", "jerome", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 3.0, null ], "and", [ false, 7, [ 0, [ 0, 6, false ], null ], "\"COVIN\"", null ], "and", [ false, 7, [ 0, [ 0, 5, false ], null ], "\"JEROME\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "last", "names", "of", "the", "students", "in", "third", "grade", "that", "are", "not", "taught", "by", "COVIN", "JEROME", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "in" ], [ "third" ], [ "grade" ], [ "that" ], [ "are" ], [ "not" ], [ "taught" ], [ "by" ], [ "covin" ], [ "jerome" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "in", "IN" ], [ "third", "JJ" ], [ "grade", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "covin", "JJ" ], [ "jerome", "NN" ], [ ".", "." ] ], "values": [ "JEROME", "3", "COVIN" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(1) T(0) Filter(0) Filter(2) A(0) C(3) T(0) V(1) Filter(0) Filter(3) A(0) C(2) T(1) V(2) Filter(3) A(0) C(1) T(1) V(0)" }, { "db_id": "student_1", "query": "SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 3 AND T2.firstname != \"COVIN\" AND T2.lastname != \"JEROME\"", "query_toks": [ "SELECT", "DISTINCT", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.grade", "=", "3", "AND", "T2.firstname", "!", "=", "``", "COVIN", "''", "AND", "T2.lastname", "!", "=", "``", "JEROME", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "value", "and", "t2", ".", "firstname", "!", "=", "value", "and", "t2", ".", "lastname", "!", "=", "value" ], "question": "Which students in third grade are not taught by teacher COVIN JEROME? Give me the last names of the students.", "question_toks": [ "which", "student", "in", "third", "grade", "are", "not", "taught", "by", "teacher", "covin", "jerome", "?", "give", "me", "last", "name", "of", "student", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 3.0, null ], "and", [ false, 7, [ 0, [ 0, 6, false ], null ], "\"COVIN\"", null ], "and", [ false, 7, [ 0, [ 0, 5, false ], null ], "\"JEROME\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Which", "students", "in", "third", "grade", "are", "not", "taught", "by", "teacher", "COVIN", "JEROME", "?", "Give", "me", "the", "last", "names", "of", "the", "students", "." ], "question_arg": [ [ "which" ], [ "student" ], [ "in" ], [ "third" ], [ "grade" ], [ "are" ], [ "not" ], [ "taught" ], [ "by" ], [ "teacher" ], [ "covin" ], [ "jerome" ], [ "?" ], [ "give" ], [ "me" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "student", "NN" ], [ "in", "IN" ], [ "third", "JJ" ], [ "grade", "NN" ], [ "are", "VBP" ], [ "not", "RB" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "teacher", "NN" ], [ "covin", "NN" ], [ "jerome", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "JEROME", "3", "COVIN" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(1) T(0) Filter(0) Filter(2) A(0) C(3) T(0) V(1) Filter(0) Filter(3) A(0) C(2) T(1) V(2) Filter(3) A(0) C(1) T(1) V(0)" }, { "db_id": "student_1", "query": "SELECT grade , count(DISTINCT classroom) , count(*) FROM list GROUP BY grade", "query_toks": [ "SELECT", "grade", ",", "count", "(", "DISTINCT", "classroom", ")", ",", "count", "(", "*", ")", "FROM", "list", "GROUP", "BY", "grade" ], "query_toks_no_value": [ "select", "grade", ",", "count", "(", "distinct", "classroom", ")", ",", "count", "(", "*", ")", "from", "list", "group", "by", "grade" ], "question": "For each grade, report the grade, the number of classrooms in which it is taught and the total number of students in the grade.", "question_toks": [ "for", "each", "grade", ",", "report", "grade", ",", "number", "of", "classroom", "in", "which", "it", "is", "taught", "and", "total", "number", "of", "student", "in", "grade", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 3, [ 0, [ 0, 4, true ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "For", "each", "grade", ",", "report", "the", "grade", ",", "the", "number", "of", "classrooms", "in", "which", "it", "is", "taught", "and", "the", "total", "number", "of", "students", "in", "the", "grade", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "grade" ], [ "," ], [ "report" ], [ "grade" ], [ "," ], [ "number" ], [ "of" ], [ "classroom" ], [ "in" ], [ "which" ], [ "it" ], [ "is" ], [ "taught" ], [ "and" ], [ "total" ], [ "number" ], [ "of" ], [ "student" ], [ "in" ], [ "grade" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "grade", "NN" ], [ ",", "," ], [ "report", "NN" ], [ "grade", "NN" ], [ ",", "," ], [ "number", "NN" ], [ "of", "IN" ], [ "classroom", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "it", "PRP" ], [ "is", "VBZ" ], [ "taught", "VBN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "in", "IN" ], [ "grade", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(2) A(0) C(3) T(0) A(3) C(4) T(0) A(3) C(0) T(0)" }, { "db_id": "student_1", "query": "SELECT grade , count(DISTINCT classroom) , count(*) FROM list GROUP BY grade", "query_toks": [ "SELECT", "grade", ",", "count", "(", "DISTINCT", "classroom", ")", ",", "count", "(", "*", ")", "FROM", "list", "GROUP", "BY", "grade" ], "query_toks_no_value": [ "select", "grade", ",", "count", "(", "distinct", "classroom", ")", ",", "count", "(", "*", ")", "from", "list", "group", "by", "grade" ], "question": "For each grade, return the grade number, the number of classrooms used for the grade, and the total number of students enrolled in the grade.", "question_toks": [ "for", "each", "grade", ",", "return", "grade", "number", ",", "number", "of", "classroom", "used", "for", "grade", ",", "and", "total", "number", "of", "student", "enrolled", "in", "grade", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 3, [ 0, [ 0, 4, true ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "For", "each", "grade", ",", "return", "the", "grade", "number", ",", "the", "number", "of", "classrooms", "used", "for", "the", "grade", ",", "and", "the", "total", "number", "of", "students", "enrolled", "in", "the", "grade", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "grade" ], [ "," ], [ "return" ], [ "grade" ], [ "number" ], [ "," ], [ "number" ], [ "of" ], [ "classroom" ], [ "used" ], [ "for" ], [ "grade" ], [ "," ], [ "and" ], [ "total" ], [ "number" ], [ "of" ], [ "student" ], [ "enrolled" ], [ "in" ], [ "grade" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "grade", "NN" ], [ ",", "," ], [ "return", "NN" ], [ "grade", "NN" ], [ "number", "NN" ], [ ",", "," ], [ "number", "NN" ], [ "of", "IN" ], [ "classroom", "NN" ], [ "used", "VBN" ], [ "for", "IN" ], [ "grade", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "grade", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(2) A(0) C(3) T(0) A(3) C(4) T(0) A(3) C(0) T(0)" }, { "db_id": "student_1", "query": "SELECT classroom , count(DISTINCT grade) FROM list GROUP BY classroom", "query_toks": [ "SELECT", "classroom", ",", "count", "(", "DISTINCT", "grade", ")", "FROM", "list", "GROUP", "BY", "classroom" ], "query_toks_no_value": [ "select", "classroom", ",", "count", "(", "distinct", "grade", ")", "from", "list", "group", "by", "classroom" ], "question": "For each classroom, report the classroom number and the number of grades using it.", "question_toks": [ "for", "each", "classroom", ",", "report", "classroom", "number", "and", "number", "of", "grade", "using", "it", "." ], "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, 3, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "For", "each", "classroom", ",", "report", "the", "classroom", "number", "and", "the", "number", "of", "grades", "using", "it", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "classroom" ], [ "," ], [ "report" ], [ "classroom" ], [ "number" ], [ "and" ], [ "number" ], [ "of" ], [ "grade" ], [ "using" ], [ "it" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "classroom", "NN" ], [ ",", "," ], [ "report", "NN" ], [ "classroom", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "grade", "NN" ], [ "using", "VBG" ], [ "it", "PRP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(4) T(0) A(3) C(3) T(0)" }, { "db_id": "student_1", "query": "SELECT classroom , count(DISTINCT grade) FROM list GROUP BY classroom", "query_toks": [ "SELECT", "classroom", ",", "count", "(", "DISTINCT", "grade", ")", "FROM", "list", "GROUP", "BY", "classroom" ], "query_toks_no_value": [ "select", "classroom", ",", "count", "(", "distinct", "grade", ")", "from", "list", "group", "by", "classroom" ], "question": "For each classroom, show the classroom number and count the number of distinct grades that use the room.", "question_toks": [ "for", "each", "classroom", ",", "show", "classroom", "number", "and", "count", "number", "of", "distinct", "grade", "that", "use", "room", "." ], "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, 3, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "For", "each", "classroom", ",", "show", "the", "classroom", "number", "and", "count", "the", "number", "of", "distinct", "grades", "that", "use", "the", "room", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "classroom" ], [ "," ], [ "show" ], [ "classroom" ], [ "number" ], [ "and" ], [ "count" ], [ "number" ], [ "of" ], [ "distinct" ], [ "grade" ], [ "that" ], [ "use" ], [ "room" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "classroom", "NN" ], [ ",", "," ], [ "show", "VBP" ], [ "classroom", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "grade", "NN" ], [ "that", "WDT" ], [ "use", "NN" ], [ "room", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(4) T(0) A(3) C(3) T(0)" }, { "db_id": "student_1", "query": "SELECT classroom FROM list GROUP BY classroom ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "classroom", "FROM", "list", "GROUP", "BY", "classroom", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "classroom", "from", "list", "group", "by", "classroom", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which classroom has the most students?", "question_toks": [ "which", "classroom", "ha", "most", "student", "?" ], "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": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Which", "classroom", "has", "the", "most", "students", "?" ], "question_arg": [ [ "which" ], [ "classroom" ], [ "ha" ], [ "most" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "classroom", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "student", "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": "student_1", "query": "SELECT classroom FROM list GROUP BY classroom ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "classroom", "FROM", "list", "GROUP", "BY", "classroom", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "classroom", "from", "list", "group", "by", "classroom", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the classroom that the most students use.", "question_toks": [ "find", "classroom", "that", "most", "student", "use", "." ], "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": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "classroom", "that", "the", "most", "students", "use", "." ], "question_arg": [ [ "find" ], [ "classroom" ], [ "that" ], [ "most" ], [ "student" ], [ "use" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "classroom", "NN" ], [ "that", "IN" ], [ "most", "JJS" ], [ "student", "NN" ], [ "use", "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": "student_1", "query": "SELECT classroom , count(*) FROM list GROUP BY classroom", "query_toks": [ "SELECT", "classroom", ",", "count", "(", "*", ")", "FROM", "list", "GROUP", "BY", "classroom" ], "query_toks_no_value": [ "select", "classroom", ",", "count", "(", "*", ")", "from", "list", "group", "by", "classroom" ], "question": "Report the number of students in each classroom.", "question_toks": [ "report", "number", "of", "student", "in", "each", "classroom", "." ], "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": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Report", "the", "number", "of", "students", "in", "each", "classroom", "." ], "question_arg": [ [ "report" ], [ "number" ], [ "of" ], [ "student" ], [ "in" ], [ "each" ], [ "classroom" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "report", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "classroom", "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": "student_1", "query": "SELECT classroom , count(*) FROM list GROUP BY classroom", "query_toks": [ "SELECT", "classroom", ",", "count", "(", "*", ")", "FROM", "list", "GROUP", "BY", "classroom" ], "query_toks_no_value": [ "select", "classroom", ",", "count", "(", "*", ")", "from", "list", "group", "by", "classroom" ], "question": "For each classroom, show the classroom number and find how many students are using it.", "question_toks": [ "for", "each", "classroom", ",", "show", "classroom", "number", "and", "find", "how", "many", "student", "are", "using", "it", "." ], "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": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "For", "each", "classroom", ",", "show", "the", "classroom", "number", "and", "find", "how", "many", "students", "are", "using", "it", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "classroom" ], [ "," ], [ "show" ], [ "classroom" ], [ "number" ], [ "and" ], [ "find" ], [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "using" ], [ "it" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "classroom", "NN" ], [ ",", "," ], [ "show", "VBP" ], [ "classroom", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "find", "VB" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "using", "VBG" ], [ "it", "PRP" ], [ ".", "." ] ], "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": "student_1", "query": "SELECT classroom , count(*) FROM list WHERE grade = \"0\" GROUP BY classroom", "query_toks": [ "SELECT", "classroom", ",", "count", "(", "*", ")", "FROM", "list", "WHERE", "grade", "=", "``", "0", "''", "GROUP", "BY", "classroom" ], "query_toks_no_value": [ "select", "classroom", ",", "count", "(", "*", ")", "from", "list", "where", "grade", "=", "value", "group", "by", "classroom" ], "question": "For each grade 0 classroom, report the total number of students.", "question_toks": [ "for", "each", "grade", "0", "classroom", ",", "report", "total", "number", "of", "student", "." ], "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": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"0\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "For", "each", "grade", "0", "classroom", ",", "report", "the", "total", "number", "of", "students", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "grade" ], [ "0" ], [ "classroom" ], [ "," ], [ "report" ], [ "total" ], [ "number" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "grade", "NN" ], [ "0", "CD" ], [ "classroom", "NN" ], [ ",", "," ], [ "report", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "0" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(0) A(3) C(0) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT classroom , count(*) FROM list WHERE grade = \"0\" GROUP BY classroom", "query_toks": [ "SELECT", "classroom", ",", "count", "(", "*", ")", "FROM", "list", "WHERE", "grade", "=", "``", "0", "''", "GROUP", "BY", "classroom" ], "query_toks_no_value": [ "select", "classroom", ",", "count", "(", "*", ")", "from", "list", "where", "grade", "=", "value", "group", "by", "classroom" ], "question": "For each grade 0 classroom, return the classroom number and the count of students.", "question_toks": [ "for", "each", "grade", "0", "classroom", ",", "return", "classroom", "number", "and", "count", "of", "student", "." ], "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": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"0\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "For", "each", "grade", "0", "classroom", ",", "return", "the", "classroom", "number", "and", "the", "count", "of", "students", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "grade" ], [ "0" ], [ "classroom" ], [ "," ], [ "return" ], [ "classroom" ], [ "number" ], [ "and" ], [ "count" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "grade", "NN" ], [ "0", "CD" ], [ "classroom", "NN" ], [ ",", "," ], [ "return", "NN" ], [ "classroom", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "count", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "0" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(0) A(3) C(0) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT classroom , count(*) FROM list WHERE grade = \"4\" GROUP BY classroom", "query_toks": [ "SELECT", "classroom", ",", "count", "(", "*", ")", "FROM", "list", "WHERE", "grade", "=", "``", "4", "''", "GROUP", "BY", "classroom" ], "query_toks_no_value": [ "select", "classroom", ",", "count", "(", "*", ")", "from", "list", "where", "grade", "=", "value", "group", "by", "classroom" ], "question": "Report the total number of students for each fourth-grade classroom.", "question_toks": [ "report", "total", "number", "of", "student", "for", "each", "fourth-grade", "classroom", "." ], "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": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"4\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Report", "the", "total", "number", "of", "students", "for", "each", "fourth-grade", "classroom", "." ], "question_arg": [ [ "report" ], [ "total" ], [ "number" ], [ "of" ], [ "student" ], [ "for" ], [ "each" ], [ "fourth-grade" ], [ "classroom" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "report", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "fourth-grade", "JJ" ], [ "classroom", "NN" ], [ ".", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(0) A(3) C(0) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT classroom , count(*) FROM list WHERE grade = \"4\" GROUP BY classroom", "query_toks": [ "SELECT", "classroom", ",", "count", "(", "*", ")", "FROM", "list", "WHERE", "grade", "=", "``", "4", "''", "GROUP", "BY", "classroom" ], "query_toks_no_value": [ "select", "classroom", ",", "count", "(", "*", ")", "from", "list", "where", "grade", "=", "value", "group", "by", "classroom" ], "question": "For each fourth-grade classroom, show the classroom number and the total number of students using it.", "question_toks": [ "for", "each", "fourth-grade", "classroom", ",", "show", "classroom", "number", "and", "total", "number", "of", "student", "using", "it", "." ], "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": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"4\"", null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "For", "each", "fourth-grade", "classroom", ",", "show", "the", "classroom", "number", "and", "the", "total", "number", "of", "students", "using", "it", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "fourth-grade" ], [ "classroom" ], [ "," ], [ "show" ], [ "classroom" ], [ "number" ], [ "and" ], [ "total" ], [ "number" ], [ "of" ], [ "student" ], [ "using" ], [ "it" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "fourth-grade", "JJ" ], [ "classroom", "NN" ], [ ",", "," ], [ "show", "VBP" ], [ "classroom", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "using", "VBG" ], [ "it", "PRP" ], [ ".", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(0) A(3) C(0) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "student_1", "query": "SELECT T2.firstname , T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom GROUP BY T2.firstname , T2.lastname ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.firstname", ",", "T2.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "GROUP", "BY", "T2.firstname", ",", "T2.lastname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "firstname", ",", "t2", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "group", "by", "t2", ".", "firstname", ",", "t2", ".", "lastname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name of the teacher who teaches the largest number of students.", "question_toks": [ "find", "name", "of", "teacher", "who", "teach", "largest", "number", "of", "student", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 6, false ], [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 5, 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", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "teacher", "who", "teaches", "the", "largest", "number", "of", "students", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "teacher" ], [ "who" ], [ "teach" ], [ "largest" ], [ "number" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "who", "WP" ], [ "teach", "VBP" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(2) T(1) A(0) C(1) T(1) Sup(0) A(3) C(0) T(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(0)" }, { "db_id": "student_1", "query": "SELECT T2.firstname , T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom GROUP BY T2.firstname , T2.lastname ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.firstname", ",", "T2.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "GROUP", "BY", "T2.firstname", ",", "T2.lastname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "firstname", ",", "t2", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "group", "by", "t2", ".", "firstname", ",", "t2", ".", "lastname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which teacher teaches the most students? Give me the first name and last name of the teacher.", "question_toks": [ "which", "teacher", "teach", "most", "student", "?", "give", "me", "first", "name", "and", "last", "name", "of", "teacher", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 6, false ], [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 5, 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", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Which", "teacher", "teaches", "the", "most", "students", "?", "Give", "me", "the", "first", "name", "and", "last", "name", "of", "the", "teacher", "." ], "question_arg": [ [ "which" ], [ "teacher" ], [ "teach" ], [ "most" ], [ "student" ], [ "?" ], [ "give" ], [ "me" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "teacher" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "teacher", "RB" ], [ "teach", "VBP" ], [ "most", "RBS" ], [ "student", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(2) T(1) A(0) C(1) T(1) Sup(0) A(3) C(0) T(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(0)" }, { "db_id": "student_1", "query": "SELECT count(*) , classroom FROM list GROUP BY classroom", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "classroom", "FROM", "list", "GROUP", "BY", "classroom" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "classroom", "from", "list", "group", "by", "classroom" ], "question": "Find the number of students in one classroom.", "question_toks": [ "find", "number", "of", "student", "in", "one", "classroom", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "number", "of", "students", "in", "one", "classroom", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "student" ], [ "in" ], [ "one" ], [ "classroom" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "in", "IN" ], [ "one", "CD" ], [ "classroom", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(0) A(0) C(4) T(0)" }, { "db_id": "student_1", "query": "SELECT count(*) , classroom FROM list GROUP BY classroom", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "classroom", "FROM", "list", "GROUP", "BY", "classroom" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "classroom", "from", "list", "group", "by", "classroom" ], "question": "How many students does one classroom have?", "question_toks": [ "how", "many", "student", "doe", "one", "classroom", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "last name", "first name", "grade", "class room", "last name", "first name", "class room" ], "table_names": [ "list", "teachers" ], "col_set": [ "*", "last name", "first name", "grade", "class room" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "1": 1, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "does", "one", "classroom", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "doe" ], [ "one" ], [ "classroom" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "doe", "VBZ" ], [ "one", "CD" ], [ "classroom", "NN" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(0) A(0) C(4) T(0)" }, { "db_id": "company_employee", "query": "SELECT count(*) FROM company WHERE Headquarters = 'USA'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "company", "WHERE", "Headquarters", "=", "'USA", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "company", "where", "headquarters", "=", "value" ], "question": "How many companies are headquartered in the US?", "question_toks": [ "how", "many", "company", "are", "headquartered", "in", "u", "?" ], "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 ], "\"USA\"", null ] ] }, "names": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "name", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "company id", "people id", "year working" ], "table_names": [ "people", "company", "employment" ], "col_set": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "year working" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "14": 14, "6": 6 }, "origin_question_toks": [ "How", "many", "companies", "are", "headquartered", "in", "the", "US", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "company" ], [ "are" ], [ "headquartered" ], [ "in" ], [ "u" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "company", "NN" ], [ "are", "VBP" ], [ "headquartered", "VBN" ], [ "in", "IN" ], [ "u", "NN" ], [ "?", "." ] ], "values": [ "United States", "USA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(7) T(1) V(1)" }, { "db_id": "company_employee", "query": "SELECT Name FROM company ORDER BY Sales_in_Billion ASC", "query_toks": [ "SELECT", "Name", "FROM", "company", "ORDER", "BY", "Sales_in_Billion", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "company", "order", "by", "sales_in_billion", "asc" ], "question": "List the names of companies by ascending number of sales.", "question_toks": [ "list", "name", "of", "company", "by", "ascending", "number", "of", "sale", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "name", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "company id", "people id", "year working" ], "table_names": [ "people", "company", "employment" ], "col_set": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "year working" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "14": 14, "6": 6 }, "origin_question_toks": [ "List", "the", "names", "of", "companies", "by", "ascending", "number", "of", "sales", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "company" ], [ "by" ], [ "ascending" ], [ "number" ], [ "of" ], [ "sale" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "by", "IN" ], [ "ascending", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "sale", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(1) Order(1) A(0) C(9) T(1)" }, { "db_id": "company_employee", "query": "SELECT Headquarters , Industry FROM company", "query_toks": [ "SELECT", "Headquarters", ",", "Industry", "FROM", "company" ], "query_toks_no_value": [ "select", "headquarters", ",", "industry", "from", "company" ], "question": "What are the headquarters and industries of all companies?", "question_toks": [ "what", "are", "headquarters", "and", "industry", "of", "all", "company", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "name", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "company id", "people id", "year working" ], "table_names": [ "people", "company", "employment" ], "col_set": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "year working" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "14": 14, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "headquarters", "and", "industries", "of", "all", "companies", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "headquarters" ], [ "and" ], [ "industry" ], [ "of" ], [ "all" ], [ "company" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "headquarters", "NNS" ], [ "and", "CC" ], [ "industry", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "company", "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": "company_employee", "query": "SELECT Name FROM company WHERE Industry = \"Banking\" OR Industry = \"Retailing\"", "query_toks": [ "SELECT", "Name", "FROM", "company", "WHERE", "Industry", "=", "``", "Banking", "''", "OR", "Industry", "=", "``", "Retailing", "''" ], "query_toks_no_value": [ "select", "name", "from", "company", "where", "industry", "=", "value", "or", "industry", "=", "value" ], "question": "Show the names of companies in the banking or retailing industry?", "question_toks": [ "show", "name", "of", "company", "in", "banking", "or", "retailing", "industry", "?" ], "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, 9, false ], null ], "\"Banking\"", null ], "or", [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Retailing\"", null ] ] }, "names": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "name", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "company id", "people id", "year working" ], "table_names": [ "people", "company", "employment" ], "col_set": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "year working" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "14": 14, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "companies", "in", "the", "banking", "or", "retailing", "industry", "?" ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "company" ], [ "in" ], [ "banking" ], [ "or" ], [ "retailing" ], [ "industry" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "in", "IN" ], [ "banking", "NN" ], [ "or", "CC" ], [ "retailing", "NN" ], [ "industry", "NN" ], [ "?", "." ] ], "values": [ "Retailing", "Banking" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(1) Filter(2) A(0) C(8) T(1) V(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "company_employee", "query": "SELECT max(Market_Value_in_Billion) , min(Market_Value_in_Billion) FROM company", "query_toks": [ "SELECT", "max", "(", "Market_Value_in_Billion", ")", ",", "min", "(", "Market_Value_in_Billion", ")", "FROM", "company" ], "query_toks_no_value": [ "select", "max", "(", "market_value_in_billion", ")", ",", "min", "(", "market_value_in_billion", ")", "from", "company" ], "question": "What is the maximum and minimum market value of companies?", "question_toks": [ "what", "is", "maximum", "and", "minimum", "market", "value", "of", "company", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 13, false ], null ] ], [ 2, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "name", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "company id", "people id", "year working" ], "table_names": [ "people", "company", "employment" ], "col_set": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "year working" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "14": 14, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "maximum", "and", "minimum", "market", "value", "of", "companies", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "market" ], [ "value" ], [ "of" ], [ "company" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "market", "NN" ], [ "value", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(12) T(1) A(2) C(12) T(1)" }, { "db_id": "company_employee", "query": "SELECT Headquarters FROM company ORDER BY Sales_in_Billion DESC LIMIT 1", "query_toks": [ "SELECT", "Headquarters", "FROM", "company", "ORDER", "BY", "Sales_in_Billion", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "headquarters", "from", "company", "order", "by", "sales_in_billion", "desc", "limit", "value" ], "question": "What is the headquarter of the company with the largest sales?", "question_toks": [ "what", "is", "headquarter", "of", "company", "with", "largest", "sale", "?" ], "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, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "name", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "company id", "people id", "year working" ], "table_names": [ "people", "company", "employment" ], "col_set": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "year working" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "14": 14, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "headquarter", "of", "the", "company", "with", "the", "largest", "sales", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "headquarter" ], [ "of" ], [ "company" ], [ "with" ], [ "largest" ], [ "sale" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "headquarter", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "sale", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(1) Sup(0) A(0) C(9) T(1)" }, { "db_id": "company_employee", "query": "SELECT Headquarters , COUNT(*) FROM company GROUP BY Headquarters", "query_toks": [ "SELECT", "Headquarters", ",", "COUNT", "(", "*", ")", "FROM", "company", "GROUP", "BY", "Headquarters" ], "query_toks_no_value": [ "select", "headquarters", ",", "count", "(", "*", ")", "from", "company", "group", "by", "headquarters" ], "question": "Show the different headquarters and number of companies at each headquarter.", "question_toks": [ "show", "different", "headquarters", "and", "number", "of", "company", "at", "each", "headquarter", "." ], "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": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "name", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "company id", "people id", "year working" ], "table_names": [ "people", "company", "employment" ], "col_set": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "year working" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "14": 14, "6": 6 }, "origin_question_toks": [ "Show", "the", "different", "headquarters", "and", "number", "of", "companies", "at", "each", "headquarter", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "headquarters" ], [ "and" ], [ "number" ], [ "of" ], [ "company" ], [ "at" ], [ "each" ], [ "headquarter" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "different", "JJ" ], [ "headquarters", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "at", "IN" ], [ "each", "DT" ], [ "headquarter", "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": "company_employee", "query": "SELECT Headquarters FROM company GROUP BY Headquarters ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Headquarters", "FROM", "company", "GROUP", "BY", "Headquarters", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "headquarters", "from", "company", "group", "by", "headquarters", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the most common headquarter for companies.", "question_toks": [ "show", "most", "common", "headquarter", "for", "company", "." ], "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": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "name", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "company id", "people id", "year working" ], "table_names": [ "people", "company", "employment" ], "col_set": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "year working" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "14": 14, "6": 6 }, "origin_question_toks": [ "Show", "the", "most", "common", "headquarter", "for", "companies", "." ], "question_arg": [ [ "show" ], [ "most" ], [ "common" ], [ "headquarter" ], [ "for" ], [ "company" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "headquarter", "NN" ], [ "for", "IN" ], [ "company", "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": "company_employee", "query": "SELECT Headquarters FROM company GROUP BY Headquarters HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Headquarters", "FROM", "company", "GROUP", "BY", "Headquarters", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "headquarters", "from", "company", "group", "by", "headquarters", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the headquarters that have at least two companies.", "question_toks": [ "show", "headquarters", "that", "have", "at", "least", "two", "company", "." ], "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": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "name", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "company id", "people id", "year working" ], "table_names": [ "people", "company", "employment" ], "col_set": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "year working" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "14": 14, "6": 6 }, "origin_question_toks": [ "Show", "the", "headquarters", "that", "have", "at", "least", "two", "companies", "." ], "question_arg": [ [ "show" ], [ "headquarters" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "company" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "headquarters", "NNS" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "company", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(7) A(3) C(0) T(1) V(0)" }, { "db_id": "company_employee", "query": "SELECT Headquarters FROM company WHERE Industry = \"Banking\" INTERSECT SELECT Headquarters FROM company WHERE Industry = \"Oil and gas\"", "query_toks": [ "SELECT", "Headquarters", "FROM", "company", "WHERE", "Industry", "=", "``", "Banking", "''", "INTERSECT", "SELECT", "Headquarters", "FROM", "company", "WHERE", "Industry", "=", "``", "Oil", "and", "gas", "''" ], "query_toks_no_value": [ "select", "headquarters", "from", "company", "where", "industry", "=", "value", "intersect", "select", "headquarters", "from", "company", "where", "industry", "=", "value" ], "question": "Show the headquarters that have both companies in banking industry and companies in oil and gas industry.", "question_toks": [ "show", "headquarters", "that", "have", "both", "company", "in", "banking", "industry", "and", "company", "in", "oil", "and", "gas", "industry", "." ], "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, 9, false ], null ], "\"Oil and gas\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Banking\"", null ] ] }, "names": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "name", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "company id", "people id", "year working" ], "table_names": [ "people", "company", "employment" ], "col_set": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "year working" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "14": 14, "6": 6 }, "origin_question_toks": [ "Show", "the", "headquarters", "that", "have", "both", "companies", "in", "banking", "industry", "and", "companies", "in", "oil", "and", "gas", "industry", "." ], "question_arg": [ [ "show" ], [ "headquarters" ], [ "that" ], [ "have" ], [ "both" ], [ "company" ], [ "in" ], [ "banking" ], [ "industry" ], [ "and" ], [ "company" ], [ "in" ], [ "oil" ], [ "and" ], [ "gas" ], [ "industry" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "headquarters", "NNS" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "company", "NN" ], [ "in", "IN" ], [ "banking", "NN" ], [ "industry", "NN" ], [ "and", "CC" ], [ "company", "NN" ], [ "in", "IN" ], [ "oil", "NN" ], [ "and", "CC" ], [ "gas", "NN" ], [ "industry", "NN" ], [ ".", "." ] ], "values": [ "Banking", "Oil and gas" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(8) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(8) T(1) V(1)" }, { "db_id": "company_employee", "query": "SELECT T3.Name , T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID", "query_toks": [ "SELECT", "T3.Name", ",", "T2.Name", "FROM", "employment", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "JOIN", "company", "AS", "T3", "ON", "T1.Company_ID", "=", "T3.Company_ID" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "name", "from", "employment", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "join", "company", "as", "t3", "on", "t1", ".", "company_id", "=", "t3", ".", "company_id" ], "question": "Show the names of companies and of employees.", "question_toks": [ "show", "name", "of", "company", "and", "of", "employee", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, 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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "name", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "company id", "people id", "year working" ], "table_names": [ "people", "company", "employment" ], "col_set": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "year working" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "14": 14, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "companies", "and", "of", "employees", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "company" ], [ "and" ], [ "of" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "and", "CC" ], [ "of", "IN" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(0) C(3) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "company_employee", "query": "SELECT T3.Name , T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID ORDER BY T1.Year_working", "query_toks": [ "SELECT", "T3.Name", ",", "T2.Name", "FROM", "employment", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "JOIN", "company", "AS", "T3", "ON", "T1.Company_ID", "=", "T3.Company_ID", "ORDER", "BY", "T1.Year_working" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "name", "from", "employment", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "join", "company", "as", "t3", "on", "t1", ".", "company_id", "=", "t3", ".", "company_id", "order", "by", "t1", ".", "year_working" ], "question": "Show names of companies and that of employees in descending order of number of years working for that employee.", "question_toks": [ "show", "name", "of", "company", "and", "that", "of", "employee", "in", "descending", "order", "of", "number", "of", "year", "working", "for", "that", "employee", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "name", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "company id", "people id", "year working" ], "table_names": [ "people", "company", "employment" ], "col_set": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "year working" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "14": 14, "6": 6 }, "origin_question_toks": [ "Show", "names", "of", "companies", "and", "that", "of", "employees", "in", "descending", "order", "of", "number", "of", "years", "working", "for", "that", "employee", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "company" ], [ "and" ], [ "that" ], [ "of" ], [ "employee" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "number" ], [ "of" ], [ "year", "working" ], [ "for" ], [ "that" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "and", "CC" ], [ "that", "IN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "year", "NN" ], [ "working", "VBG" ], [ "for", "IN" ], [ "that", "DT" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(3) T(1) A(0) C(3) T(0) Order(1) A(0) C(13) T(2)" }, { "db_id": "company_employee", "query": "SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID WHERE T3.Sales_in_Billion > 200", "query_toks": [ "SELECT", "T2.Name", "FROM", "employment", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "JOIN", "company", "AS", "T3", "ON", "T1.Company_ID", "=", "T3.Company_ID", "WHERE", "T3.Sales_in_Billion", ">", "200" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "employment", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "join", "company", "as", "t3", "on", "t1", ".", "company_id", "=", "t3", ".", "company_id", "where", "t3", ".", "sales_in_billion", ">", "value" ], "question": "Show the names of employees that work for companies with sales bigger than 200.", "question_toks": [ "show", "name", "of", "employee", "that", "work", "for", "company", "with", "sale", "bigger", "than", "200", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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 ], "and", [ false, 3, [ 0, [ 0, 10, false ], null ], 200.0, null ] ] }, "names": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "name", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "company id", "people id", "year working" ], "table_names": [ "people", "company", "employment" ], "col_set": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "year working" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "14": 14, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "employees", "that", "work", "for", "companies", "with", "sales", "bigger", "than", "200", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "employee" ], [ "that" ], [ "work" ], [ "for" ], [ "company" ], [ "with" ], [ "sale" ], [ "bigger" ], [ "than" ], [ "200" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "that", "WDT" ], [ "work", "NN" ], [ "for", "IN" ], [ "company", "NN" ], [ "with", "IN" ], [ "sale", "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(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2) Filter(5) A(0) C(9) T(1) V(0)" }, { "db_id": "company_employee", "query": "SELECT T3.Name , COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID GROUP BY T3.Name", "query_toks": [ "SELECT", "T3.Name", ",", "COUNT", "(", "*", ")", "FROM", "employment", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "JOIN", "company", "AS", "T3", "ON", "T1.Company_ID", "=", "T3.Company_ID", "GROUP", "BY", "T3.Name" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "count", "(", "*", ")", "from", "employment", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "join", "company", "as", "t3", "on", "t1", ".", "company_id", "=", "t3", ".", "company_id", "group", "by", "t3", ".", "name" ], "question": "Show the names of companies and the number of employees they have", "question_toks": [ "show", "name", "of", "company", "and", "number", "of", "employee", "they", "have" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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, 8, [ 0, [ 0, 15, 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": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "name", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "company id", "people id", "year working" ], "table_names": [ "people", "company", "employment" ], "col_set": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "year working" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "14": 14, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "companies", "and", "the", "number", "of", "employees", "they", "have" ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "company" ], [ "and" ], [ "number" ], [ "of" ], [ "employee" ], [ "they" ], [ "have" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "they", "PRP" ], [ "have", "VBP" ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(3) C(0) T(0) Filter(18) A(0) C(1) T(2) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "company_employee", "query": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM employment)", "query_toks": [ "SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "employment", ")" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "employment", ")" ], "question": "List the names of people that are not employed by any company", "question_toks": [ "list", "name", "of", "people", "that", "are", "not", "employed", "by", "any", "company" ], "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, 15, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "name", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "company id", "people id", "year working" ], "table_names": [ "people", "company", "employment" ], "col_set": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "year working" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "14": 14, "6": 6 }, "origin_question_toks": [ "List", "the", "names", "of", "people", "that", "are", "not", "employed", "by", "any", "company" ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "people" ], [ "that" ], [ "are" ], [ "not" ], [ "employed" ], [ "by" ], [ "any" ], [ "company" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "employed", "VBN" ], [ "by", "IN" ], [ "any", "DT" ], [ "company", "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(2)" }, { "db_id": "company_employee", "query": "SELECT name FROM company WHERE Sales_in_Billion > 200 ORDER BY Sales_in_Billion , Profits_in_Billion DESC", "query_toks": [ "SELECT", "name", "FROM", "company", "WHERE", "Sales_in_Billion", ">", "200", "ORDER", "BY", "Sales_in_Billion", ",", "Profits_in_Billion", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "company", "where", "sales_in_billion", ">", "value", "order", "by", "sales_in_billion", ",", "profits_in_billion", "desc" ], "question": "list the names of the companies with more than 200 sales in the descending order of sales and profits.", "question_toks": [ "list", "name", "of", "company", "with", "more", "than", "200", "sale", "in", "descending", "order", "of", "sale", "and", "profit", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 10, false ], null ], [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 200.0, null ] ] }, "names": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "name", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "company id", "people id", "year working" ], "table_names": [ "people", "company", "employment" ], "col_set": [ "*", "people id", "age", "name", "nationality", "graduation college", "company id", "headquarters", "industry", "sales in billion", "profits in billion", "assets in billion", "market value in billion", "year working" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "15": 1, "1": 1, "14": 14, "6": 6 }, "origin_question_toks": [ "list", "the", "names", "of", "the", "companies", "with", "more", "than", "200", "sales", "in", "the", "descending", "order", "of", "sales", "and", "profits", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "company" ], [ "with" ], [ "more" ], [ "than" ], [ "200" ], [ "sale", "in", "billion" ], [ "descending" ], [ "order" ], [ "of" ], [ "sale" ], [ "and" ], [ "profit" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "200", "CD" ], [ "sale", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "sale", "NN" ], [ "and", "CC" ], [ "profit", "NN" ], [ ".", "." ] ], "values": [ "200" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(3) T(1) Filter(5) A(0) C(9) T(1) V(0) Order(0) A(0) C(9) T(1)" }, { "db_id": "film_rank", "query": "SELECT count(*) FROM film", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "film" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "film" ], "question": "How many film are there?", "question_toks": [ "how", "many", "film", "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": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "film", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "film" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "film", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "film_rank", "query": "SELECT count(*) FROM film", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "film" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "film" ], "question": "Count the number of films.", "question_toks": [ "count", "number", "of", "film", "." ], "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": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Count", "the", "number", "of", "films", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "film" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "film_rank", "query": "SELECT DISTINCT Director FROM film", "query_toks": [ "SELECT", "DISTINCT", "Director", "FROM", "film" ], "query_toks_no_value": [ "select", "distinct", "director", "from", "film" ], "question": "List the distinct director of all films.", "question_toks": [ "list", "distinct", "director", "of", "all", "film", "." ], "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": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "List", "the", "distinct", "director", "of", "all", "films", "." ], "question_arg": [ [ "list" ], [ "distinct" ], [ "director" ], [ "of" ], [ "all" ], [ "film" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "distinct", "JJ" ], [ "director", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "film", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(4) T(0)" }, { "db_id": "film_rank", "query": "SELECT DISTINCT Director FROM film", "query_toks": [ "SELECT", "DISTINCT", "Director", "FROM", "film" ], "query_toks_no_value": [ "select", "distinct", "director", "from", "film" ], "question": "What are the different film Directors?", "question_toks": [ "what", "are", "different", "film", "director", "?" ], "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": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "different", "film", "Directors", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "film" ], [ "director" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "film", "NN" ], [ "director", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(4) T(0)" }, { "db_id": "film_rank", "query": "SELECT avg(Gross_in_dollar) FROM film", "query_toks": [ "SELECT", "avg", "(", "Gross_in_dollar", ")", "FROM", "film" ], "query_toks_no_value": [ "select", "avg", "(", "gross_in_dollar", ")", "from", "film" ], "question": "What is the average ticket sales gross in dollars of films?", "question_toks": [ "what", "is", "average", "ticket", "sale", "gross", "in", "dollar", "of", "film", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "average", "ticket", "sales", "gross", "in", "dollars", "of", "films", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "ticket" ], [ "sale" ], [ "gross", "in", "dollar" ], [ "of" ], [ "film" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "ticket", "JJ" ], [ "sale", "NN" ], [ "gross", "JJ" ], [ "in", "IN" ], [ "dollar", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(5) T(0)" }, { "db_id": "film_rank", "query": "SELECT avg(Gross_in_dollar) FROM film", "query_toks": [ "SELECT", "avg", "(", "Gross_in_dollar", ")", "FROM", "film" ], "query_toks_no_value": [ "select", "avg", "(", "gross_in_dollar", ")", "from", "film" ], "question": "Return the average gross sales in dollars across all films.", "question_toks": [ "return", "average", "gross", "sale", "in", "dollar", "across", "all", "film", "." ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Return", "the", "average", "gross", "sales", "in", "dollars", "across", "all", "films", "." ], "question_arg": [ [ "return" ], [ "average" ], [ "gross" ], [ "sale" ], [ "gross", "in", "dollar" ], [ "across" ], [ "all" ], [ "film" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "average", "JJ" ], [ "gross", "JJ" ], [ "sale", "NN" ], [ "in", "IN" ], [ "dollar", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "film", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(5) T(0)" }, { "db_id": "film_rank", "query": "SELECT Low_Estimate , High_Estimate FROM film_market_estimation", "query_toks": [ "SELECT", "Low_Estimate", ",", "High_Estimate", "FROM", "film_market_estimation" ], "query_toks_no_value": [ "select", "low_estimate", ",", "high_estimate", "from", "film_market_estimation" ], "question": "What are the low and high estimates of film markets?", "question_toks": [ "what", "are", "low", "and", "high", "estimate", "of", "film", "market", "?" ], "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 ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "low", "and", "high", "estimates", "of", "film", "markets", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "low" ], [ "and" ], [ "high", "estimate" ], [ "of" ], [ "film" ], [ "market" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "low", "JJ" ], [ "and", "CC" ], [ "high", "JJ" ], [ "estimate", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "market", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(10) T(2) A(0) C(11) T(2)" }, { "db_id": "film_rank", "query": "SELECT Low_Estimate , High_Estimate FROM film_market_estimation", "query_toks": [ "SELECT", "Low_Estimate", ",", "High_Estimate", "FROM", "film_market_estimation" ], "query_toks_no_value": [ "select", "low_estimate", ",", "high_estimate", "from", "film_market_estimation" ], "question": "Return the low and high estimates for all film markets.", "question_toks": [ "return", "low", "and", "high", "estimate", "for", "all", "film", "market", "." ], "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 ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Return", "the", "low", "and", "high", "estimates", "for", "all", "film", "markets", "." ], "question_arg": [ [ "return" ], [ "low" ], [ "and" ], [ "high", "estimate" ], [ "for" ], [ "all" ], [ "film" ], [ "market" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "low", "JJ" ], [ "and", "CC" ], [ "high", "JJ" ], [ "estimate", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "film", "NN" ], [ "market", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(10) T(2) A(0) C(11) T(2)" }, { "db_id": "film_rank", "query": "SELECT TYPE FROM film_market_estimation WHERE YEAR = 1995", "query_toks": [ "SELECT", "TYPE", "FROM", "film_market_estimation", "WHERE", "YEAR", "=", "1995" ], "query_toks_no_value": [ "select", "type", "from", "film_market_estimation", "where", "year", "=", "value" ], "question": "What are the types of film market estimations in year 1995?", "question_toks": [ "what", "are", "type", "of", "film", "market", "estimation", "in", "year", "year", "?" ], "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, 2, [ 0, [ 0, 15, false ], null ], 1995.0, null ] ] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "types", "of", "film", "market", "estimations", "in", "year", "1995", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "type" ], [ "of" ], [ "film", "market", "estimation" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "type", "JJ" ], [ "of", "IN" ], [ "film", "NN" ], [ "market", "NN" ], [ "estimation", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "1995", "CD" ], [ "?", "." ] ], "values": [ "1995" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(2) A(0) C(13) T(2) V(0)" }, { "db_id": "film_rank", "query": "SELECT TYPE FROM film_market_estimation WHERE YEAR = 1995", "query_toks": [ "SELECT", "TYPE", "FROM", "film_market_estimation", "WHERE", "YEAR", "=", "1995" ], "query_toks_no_value": [ "select", "type", "from", "film_market_estimation", "where", "year", "=", "value" ], "question": "Return the types of film market estimations in 1995.", "question_toks": [ "return", "type", "of", "film", "market", "estimation", "in", "year", "." ], "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, 2, [ 0, [ 0, 15, false ], null ], 1995.0, null ] ] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Return", "the", "types", "of", "film", "market", "estimations", "in", "1995", "." ], "question_arg": [ [ "return" ], [ "type" ], [ "of" ], [ "film", "market", "estimation" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "type", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "market", "NN" ], [ "estimation", "NN" ], [ "in", "IN" ], [ "1995", "CD" ], [ ".", "." ] ], "values": [ "1995" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(2) A(0) C(13) T(2) V(0)" }, { "db_id": "film_rank", "query": "SELECT max(Number_cities) , min(Number_cities) FROM market", "query_toks": [ "SELECT", "max", "(", "Number_cities", ")", ",", "min", "(", "Number_cities", ")", "FROM", "market" ], "query_toks_no_value": [ "select", "max", "(", "number_cities", ")", ",", "min", "(", "number_cities", ")", "from", "market" ], "question": "What are the maximum and minimum number of cities in all markets.", "question_toks": [ "what", "are", "maximum", "and", "minimum", "number", "of", "city", "in", "all", "market", "." ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "maximum", "and", "minimum", "number", "of", "cities", "in", "all", "markets", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "number" ], [ "of" ], [ "city" ], [ "in" ], [ "all" ], [ "market" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "in", "IN" ], [ "all", "DT" ], [ "market", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(8) T(1) A(2) C(8) T(1)" }, { "db_id": "film_rank", "query": "SELECT max(Number_cities) , min(Number_cities) FROM market", "query_toks": [ "SELECT", "max", "(", "Number_cities", ")", ",", "min", "(", "Number_cities", ")", "FROM", "market" ], "query_toks_no_value": [ "select", "max", "(", "number_cities", ")", ",", "min", "(", "number_cities", ")", "from", "market" ], "question": "Return the maximum and minimum number of cities across all markets.", "question_toks": [ "return", "maximum", "and", "minimum", "number", "of", "city", "across", "all", "market", "." ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Return", "the", "maximum", "and", "minimum", "number", "of", "cities", "across", "all", "markets", "." ], "question_arg": [ [ "return" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "number" ], [ "of" ], [ "city" ], [ "across" ], [ "all" ], [ "market" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "maximum", "NN" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "market", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(8) T(1) A(2) C(8) T(1)" }, { "db_id": "film_rank", "query": "SELECT count(*) FROM market WHERE Number_cities < 300", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "market", "WHERE", "Number_cities", "<", "300" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "market", "where", "number_cities", "<", "value" ], "question": "How many markets have number of cities smaller than 300?", "question_toks": [ "how", "many", "market", "have", "number", "of", "city", "smaller", "than", "300", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 8, false ], null ], 300.0, null ] ] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "markets", "have", "number", "of", "cities", "smaller", "than", "300", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "market" ], [ "have" ], [ "number" ], [ "of" ], [ "city" ], [ "smaller" ], [ "than" ], [ "300" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "market", "NN" ], [ "have", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "300", "CD" ], [ "?", "." ] ], "values": [ "300" ], "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": "film_rank", "query": "SELECT count(*) FROM market WHERE Number_cities < 300", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "market", "WHERE", "Number_cities", "<", "300" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "market", "where", "number_cities", "<", "value" ], "question": "Count the number of markets that have a number of cities lower than 300.", "question_toks": [ "count", "number", "of", "market", "that", "have", "a", "number", "of", "city", "lower", "than", "300", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 8, false ], null ], 300.0, null ] ] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Count", "the", "number", "of", "markets", "that", "have", "a", "number", "of", "cities", "lower", "than", "300", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "market" ], [ "that" ], [ "have" ], [ "a" ], [ "number" ], [ "of" ], [ "city" ], [ "lower" ], [ "than" ], [ "300" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "market", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "number", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "300", "CD" ], [ ".", "." ] ], "values": [ "300" ], "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": "film_rank", "query": "SELECT Country FROM market ORDER BY Country ASC", "query_toks": [ "SELECT", "Country", "FROM", "market", "ORDER", "BY", "Country", "ASC" ], "query_toks_no_value": [ "select", "country", "from", "market", "order", "by", "country", "asc" ], "question": "List all countries of markets in ascending alphabetical order.", "question_toks": [ "list", "all", "country", "of", "market", "in", "ascending", "alphabetical", "order", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "List", "all", "countries", "of", "markets", "in", "ascending", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "country" ], [ "of" ], [ "market" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "country", "NN" ], [ "of", "IN" ], [ "market", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(7) T(1) Order(1) A(0) C(7) T(1)" }, { "db_id": "film_rank", "query": "SELECT Country FROM market ORDER BY Country ASC", "query_toks": [ "SELECT", "Country", "FROM", "market", "ORDER", "BY", "Country", "ASC" ], "query_toks_no_value": [ "select", "country", "from", "market", "order", "by", "country", "asc" ], "question": "What are the countries for each market, ordered alphabetically?", "question_toks": [ "what", "are", "country", "for", "each", "market", ",", "ordered", "alphabetically", "?" ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "countries", "for", "each", "market", ",", "ordered", "alphabetically", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "country" ], [ "for" ], [ "each" ], [ "market" ], [ "," ], [ "ordered" ], [ "alphabetically" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "market", "NN" ], [ ",", "," ], [ "ordered", "VBD" ], [ "alphabetically", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(7) T(1) Order(1) A(0) C(7) T(1)" }, { "db_id": "film_rank", "query": "SELECT Country FROM market ORDER BY Number_cities DESC", "query_toks": [ "SELECT", "Country", "FROM", "market", "ORDER", "BY", "Number_cities", "DESC" ], "query_toks_no_value": [ "select", "country", "from", "market", "order", "by", "number_cities", "desc" ], "question": "List all countries of markets in descending order of number of cities.", "question_toks": [ "list", "all", "country", "of", "market", "in", "descending", "order", "of", "number", "of", "city", "." ], "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": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "List", "all", "countries", "of", "markets", "in", "descending", "order", "of", "number", "of", "cities", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "country" ], [ "of" ], [ "market" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "number" ], [ "of" ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "country", "NN" ], [ "of", "IN" ], [ "market", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(7) T(1) Order(0) A(0) C(8) T(1)" }, { "db_id": "film_rank", "query": "SELECT Country FROM market ORDER BY Number_cities DESC", "query_toks": [ "SELECT", "Country", "FROM", "market", "ORDER", "BY", "Number_cities", "DESC" ], "query_toks_no_value": [ "select", "country", "from", "market", "order", "by", "number_cities", "desc" ], "question": "What are the countries for each market ordered by decreasing number of cities?", "question_toks": [ "what", "are", "country", "for", "each", "market", "ordered", "by", "decreasing", "number", "of", "city", "?" ], "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": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "countries", "for", "each", "market", "ordered", "by", "decreasing", "number", "of", "cities", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "country" ], [ "for" ], [ "each" ], [ "market" ], [ "ordered" ], [ "by" ], [ "decreasing" ], [ "number" ], [ "of" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "market", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "decreasing", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(7) T(1) Order(0) A(0) C(8) T(1)" }, { "db_id": "film_rank", "query": "SELECT T1.Title , T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID", "query_toks": [ "SELECT", "T1.Title", ",", "T2.Type", "FROM", "film", "AS", "T1", "JOIN", "film_market_estimation", "AS", "T2", "ON", "T1.Film_ID", "=", "T2.Film_ID" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t2", ".", "type", "from", "film", "as", "t1", "join", "film_market_estimation", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id" ], "question": "Please show the titles of films and the types of market estimations.", "question_toks": [ "please", "show", "title", "of", "film", "and", "type", "of", "market", "estimation", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, 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, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Please", "show", "the", "titles", "of", "films", "and", "the", "types", "of", "market", "estimations", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "title" ], [ "of" ], [ "film" ], [ "and" ], [ "type" ], [ "of" ], [ "market" ], [ "estimation" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "and", "CC" ], [ "type", "NN" ], [ "of", "IN" ], [ "market", "NN" ], [ "estimation", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(12) T(2)" }, { "db_id": "film_rank", "query": "SELECT T1.Title , T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID", "query_toks": [ "SELECT", "T1.Title", ",", "T2.Type", "FROM", "film", "AS", "T1", "JOIN", "film_market_estimation", "AS", "T2", "ON", "T1.Film_ID", "=", "T2.Film_ID" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t2", ".", "type", "from", "film", "as", "t1", "join", "film_market_estimation", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id" ], "question": "What are the titles of films and corresponding types of market estimations?", "question_toks": [ "what", "are", "title", "of", "film", "and", "corresponding", "type", "of", "market", "estimation", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, 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, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "films", "and", "corresponding", "types", "of", "market", "estimations", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "film" ], [ "and" ], [ "corresponding" ], [ "type" ], [ "of" ], [ "market" ], [ "estimation" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "of", "IN" ], [ "film", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "type", "NN" ], [ "of", "IN" ], [ "market", "NN" ], [ "estimation", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(12) T(2)" }, { "db_id": "film_rank", "query": "SELECT DISTINCT T1.Director FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID WHERE T2.Year = 1995", "query_toks": [ "SELECT", "DISTINCT", "T1.Director", "FROM", "film", "AS", "T1", "JOIN", "film_market_estimation", "AS", "T2", "ON", "T1.Film_ID", "=", "T2.Film_ID", "WHERE", "T2.Year", "=", "1995" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "director", "from", "film", "as", "t1", "join", "film_market_estimation", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "where", "t2", ".", "year", "=", "value" ], "question": "Show the distinct director of films with market estimation in the year of 1995.", "question_toks": [ "show", "distinct", "director", "of", "film", "with", "market", "estimation", "in", "year", "of", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], 1995.0, null ] ] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Show", "the", "distinct", "director", "of", "films", "with", "market", "estimation", "in", "the", "year", "of", "1995", "." ], "question_arg": [ [ "show" ], [ "distinct" ], [ "director" ], [ "of" ], [ "film" ], [ "with" ], [ "market" ], [ "estimation" ], [ "in" ], [ "year" ], [ "of" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "distinct", "JJ" ], [ "director", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "with", "IN" ], [ "market", "NN" ], [ "estimation", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "1995", "CD" ], [ ".", "." ] ], "values": [ "1995" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(4) T(0) Filter(2) A(0) C(13) T(2) V(0)" }, { "db_id": "film_rank", "query": "SELECT DISTINCT T1.Director FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID WHERE T2.Year = 1995", "query_toks": [ "SELECT", "DISTINCT", "T1.Director", "FROM", "film", "AS", "T1", "JOIN", "film_market_estimation", "AS", "T2", "ON", "T1.Film_ID", "=", "T2.Film_ID", "WHERE", "T2.Year", "=", "1995" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "director", "from", "film", "as", "t1", "join", "film_market_estimation", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "where", "t2", ".", "year", "=", "value" ], "question": "Who are the different directors of films which had market estimation in 1995?", "question_toks": [ "who", "are", "different", "director", "of", "film", "which", "had", "market", "estimation", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], 1995.0, null ] ] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Who", "are", "the", "different", "directors", "of", "films", "which", "had", "market", "estimation", "in", "1995", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "different" ], [ "director" ], [ "of" ], [ "film" ], [ "which" ], [ "had" ], [ "market" ], [ "estimation" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "director", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "which", "WDT" ], [ "had", "VBD" ], [ "market", "NN" ], [ "estimation", "NN" ], [ "in", "IN" ], [ "1995", "CD" ], [ "?", "." ] ], "values": [ "1995" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(4) T(0) Filter(2) A(0) C(13) T(2) V(0)" }, { "db_id": "film_rank", "query": "SELECT avg(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T1.Low_Estimate > 10000", "query_toks": [ "SELECT", "avg", "(", "T2.Number_cities", ")", "FROM", "film_market_estimation", "AS", "T1", "JOIN", "market", "AS", "T2", "ON", "T1.Market_ID", "=", "T2.Market_ID", "WHERE", "T1.Low_Estimate", ">", "10000" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "number_cities", ")", "from", "film_market_estimation", "as", "t1", "join", "market", "as", "t2", "on", "t1", ".", "market_id", "=", "t2", ".", "market_id", "where", "t1", ".", "low_estimate", ">", "value" ], "question": "What is the average number of cities of markets with low film market estimate bigger than 10000?", "question_toks": [ "what", "is", "average", "number", "of", "city", "of", "market", "with", "low", "film", "market", "estimate", "bigger", "than", "10000", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 10000.0, null ] ] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "cities", "of", "markets", "with", "low", "film", "market", "estimate", "bigger", "than", "10000", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "city" ], [ "of" ], [ "market" ], [ "with" ], [ "low" ], [ "film" ], [ "market" ], [ "estimate" ], [ "bigger" ], [ "than" ], [ "10000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "of", "IN" ], [ "market", "NN" ], [ "with", "IN" ], [ "low", "JJ" ], [ "film", "NN" ], [ "market", "NN" ], [ "estimate", "NN" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "10000", "CD" ], [ "?", "." ] ], "values": [ "10000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(8) T(1) Filter(5) A(0) C(10) T(2) V(0)" }, { "db_id": "film_rank", "query": "SELECT avg(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T1.Low_Estimate > 10000", "query_toks": [ "SELECT", "avg", "(", "T2.Number_cities", ")", "FROM", "film_market_estimation", "AS", "T1", "JOIN", "market", "AS", "T2", "ON", "T1.Market_ID", "=", "T2.Market_ID", "WHERE", "T1.Low_Estimate", ">", "10000" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "number_cities", ")", "from", "film_market_estimation", "as", "t1", "join", "market", "as", "t2", "on", "t1", ".", "market_id", "=", "t2", ".", "market_id", "where", "t1", ".", "low_estimate", ">", "value" ], "question": "Give the average number of cities within markets that had a low market estimation larger than 10000?", "question_toks": [ "give", "average", "number", "of", "city", "within", "market", "that", "had", "a", "low", "market", "estimation", "larger", "than", "10000", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 10000.0, null ] ] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Give", "the", "average", "number", "of", "cities", "within", "markets", "that", "had", "a", "low", "market", "estimation", "larger", "than", "10000", "?" ], "question_arg": [ [ "give" ], [ "average" ], [ "number" ], [ "of" ], [ "city" ], [ "within" ], [ "market" ], [ "that" ], [ "had" ], [ "a" ], [ "low" ], [ "market" ], [ "estimation" ], [ "larger" ], [ "than" ], [ "10000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "within", "IN" ], [ "market", "NN" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "a", "DT" ], [ "low", "JJ" ], [ "market", "NN" ], [ "estimation", "NN" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "10000", "CD" ], [ "?", "." ] ], "values": [ "10000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(8) T(1) Filter(5) A(0) C(10) T(2) V(0)" }, { "db_id": "film_rank", "query": "SELECT T2.Country , T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID", "query_toks": [ "SELECT", "T2.Country", ",", "T1.Year", "FROM", "film_market_estimation", "AS", "T1", "JOIN", "market", "AS", "T2", "ON", "T1.Market_ID", "=", "T2.Market_ID" ], "query_toks_no_value": [ "select", "t2", ".", "country", ",", "t1", ".", "year", "from", "film_market_estimation", "as", "t1", "join", "market", "as", "t2", "on", "t1", ".", "market_id", "=", "t2", ".", "market_id" ], "question": "Please list the countries and years of film market estimations.", "question_toks": [ "please", "list", "country", "and", "year", "of", "film", "market", "estimation", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, 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, 7, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Please", "list", "the", "countries", "and", "years", "of", "film", "market", "estimations", "." ], "question_arg": [ [ "please" ], [ "list" ], [ "country" ], [ "and" ], [ "year" ], [ "of" ], [ "film", "market", "estimation" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "JJ" ], [ "list", "JJ" ], [ "country", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "market", "NN" ], [ "estimation", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(1) A(0) C(13) T(2)" }, { "db_id": "film_rank", "query": "SELECT T2.Country , T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID", "query_toks": [ "SELECT", "T2.Country", ",", "T1.Year", "FROM", "film_market_estimation", "AS", "T1", "JOIN", "market", "AS", "T2", "ON", "T1.Market_ID", "=", "T2.Market_ID" ], "query_toks_no_value": [ "select", "t2", ".", "country", ",", "t1", ".", "year", "from", "film_market_estimation", "as", "t1", "join", "market", "as", "t2", "on", "t1", ".", "market_id", "=", "t2", ".", "market_id" ], "question": "What are the countries of markets and their corresponding years of market estimation?", "question_toks": [ "what", "are", "country", "of", "market", "and", "their", "corresponding", "year", "of", "market", "estimation", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, 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, 7, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "countries", "of", "markets", "and", "their", "corresponding", "years", "of", "market", "estimation", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "country" ], [ "of" ], [ "market" ], [ "and" ], [ "their" ], [ "corresponding" ], [ "year" ], [ "of" ], [ "market" ], [ "estimation" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "of", "IN" ], [ "market", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "corresponding", "JJ" ], [ "year", "NN" ], [ "of", "IN" ], [ "market", "NN" ], [ "estimation", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(1) A(0) C(13) T(2)" }, { "db_id": "film_rank", "query": "SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T2.Country = \"Japan\" ORDER BY T1.Year DESC", "query_toks": [ "SELECT", "T1.Year", "FROM", "film_market_estimation", "AS", "T1", "JOIN", "market", "AS", "T2", "ON", "T1.Market_ID", "=", "T2.Market_ID", "WHERE", "T2.Country", "=", "``", "Japan", "''", "ORDER", "BY", "T1.Year", "DESC" ], "query_toks_no_value": [ "select", "t1", ".", "year", "from", "film_market_estimation", "as", "t1", "join", "market", "as", "t2", "on", "t1", ".", "market_id", "=", "t2", ".", "market_id", "where", "t2", ".", "country", "=", "value", "order", "by", "t1", ".", "year", "desc" ], "question": "Please list the years of film market estimations when the market is in country \"Japan\" in descending order.", "question_toks": [ "please", "list", "year", "of", "film", "market", "estimation", "when", "market", "is", "in", "country", "'", "japan", "'", "in", "descending", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Japan\"", null ] ] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Please", "list", "the", "years", "of", "film", "market", "estimations", "when", "the", "market", "is", "in", "country", "``", "Japan", "''", "in", "descending", "order", "." ], "question_arg": [ [ "please" ], [ "list" ], [ "year" ], [ "of" ], [ "film", "market", "estimation" ], [ "when" ], [ "market" ], [ "is" ], [ "in" ], [ "country" ], [ "'" ], [ "japan" ], [ "'" ], [ "in" ], [ "descending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "NN" ], [ "list", "JJ" ], [ "year", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "market", "NN" ], [ "estimation", "NN" ], [ "when", "WRB" ], [ "market", "NN" ], [ "is", "VBZ" ], [ "in", "IN" ], [ "country", "NN" ], [ "'", "''" ], [ "japan", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "Japan" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(7) T(1) V(0) Order(0) A(0) C(13) T(2)" }, { "db_id": "film_rank", "query": "SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T2.Country = \"Japan\" ORDER BY T1.Year DESC", "query_toks": [ "SELECT", "T1.Year", "FROM", "film_market_estimation", "AS", "T1", "JOIN", "market", "AS", "T2", "ON", "T1.Market_ID", "=", "T2.Market_ID", "WHERE", "T2.Country", "=", "``", "Japan", "''", "ORDER", "BY", "T1.Year", "DESC" ], "query_toks_no_value": [ "select", "t1", ".", "year", "from", "film_market_estimation", "as", "t1", "join", "market", "as", "t2", "on", "t1", ".", "market_id", "=", "t2", ".", "market_id", "where", "t2", ".", "country", "=", "value", "order", "by", "t1", ".", "year", "desc" ], "question": "What are the years of film market estimation for the market of Japan, ordered by year descending?", "question_toks": [ "what", "are", "year", "of", "film", "market", "estimation", "for", "market", "of", "japan", ",", "ordered", "by", "year", "descending", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Japan\"", null ] ] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "years", "of", "film", "market", "estimation", "for", "the", "market", "of", "Japan", ",", "ordered", "by", "year", "descending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "year" ], [ "of" ], [ "film", "market", "estimation" ], [ "for" ], [ "market" ], [ "of" ], [ "japan" ], [ "," ], [ "ordered" ], [ "by" ], [ "year" ], [ "descending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "year", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "market", "NN" ], [ "estimation", "NN" ], [ "for", "IN" ], [ "market", "NN" ], [ "of", "IN" ], [ "japan", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "year", "NN" ], [ "descending", "NN" ], [ "?", "." ] ], "values": [ "Japan" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(7) T(1) V(0) Order(0) A(0) C(13) T(2)" }, { "db_id": "film_rank", "query": "SELECT Studio , COUNT(*) FROM film GROUP BY Studio", "query_toks": [ "SELECT", "Studio", ",", "COUNT", "(", "*", ")", "FROM", "film", "GROUP", "BY", "Studio" ], "query_toks_no_value": [ "select", "studio", ",", "count", "(", "*", ")", "from", "film", "group", "by", "studio" ], "question": "List the studios of each film and the number of films produced by that studio.", "question_toks": [ "list", "studio", "of", "each", "film", "and", "number", "of", "film", "produced", "by", "that", "studio", "." ], "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": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "List", "the", "studios", "of", "each", "film", "and", "the", "number", "of", "films", "produced", "by", "that", "studio", "." ], "question_arg": [ [ "list" ], [ "studio" ], [ "of" ], [ "each" ], [ "film" ], [ "and" ], [ "number" ], [ "of" ], [ "film" ], [ "produced" ], [ "by" ], [ "that" ], [ "studio" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "studio", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "film", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "that", "DT" ], [ "studio", "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": "film_rank", "query": "SELECT Studio , COUNT(*) FROM film GROUP BY Studio", "query_toks": [ "SELECT", "Studio", ",", "COUNT", "(", "*", ")", "FROM", "film", "GROUP", "BY", "Studio" ], "query_toks_no_value": [ "select", "studio", ",", "count", "(", "*", ")", "from", "film", "group", "by", "studio" ], "question": "How films are produced by each studio?", "question_toks": [ "how", "film", "are", "produced", "by", "each", "studio", "?" ], "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": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "How", "films", "are", "produced", "by", "each", "studio", "?" ], "question_arg": [ [ "how" ], [ "film" ], [ "are" ], [ "produced" ], [ "by" ], [ "each" ], [ "studio" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "film", "NN" ], [ "are", "VBP" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "studio", "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": "film_rank", "query": "SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Studio", "FROM", "film", "GROUP", "BY", "Studio", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "studio", "from", "film", "group", "by", "studio", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "List the name of film studio that have the most number of films.", "question_toks": [ "list", "name", "of", "film", "studio", "that", "have", "most", "number", "of", "film", "." ], "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": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "List", "the", "name", "of", "film", "studio", "that", "have", "the", "most", "number", "of", "films", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "film" ], [ "studio" ], [ "that" ], [ "have" ], [ "most" ], [ "number" ], [ "of" ], [ "film" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "studio", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "film", "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": "film_rank", "query": "SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Studio", "FROM", "film", "GROUP", "BY", "Studio", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "studio", "from", "film", "group", "by", "studio", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of teh studio that created the most films?", "question_toks": [ "what", "is", "name", "of", "teh", "studio", "that", "created", "most", "film", "?" ], "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": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "teh", "studio", "that", "created", "the", "most", "films", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "teh" ], [ "studio" ], [ "that" ], [ "created" ], [ "most" ], [ "film" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "teh", "NN" ], [ "studio", "NN" ], [ "that", "WDT" ], [ "created", "VBD" ], [ "most", "RBS" ], [ "film", "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": "film_rank", "query": "SELECT Studio FROM film GROUP BY Studio HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Studio", "FROM", "film", "GROUP", "BY", "Studio", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "studio", "from", "film", "group", "by", "studio", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "List the names of studios that have at least two films.", "question_toks": [ "list", "name", "of", "studio", "that", "have", "at", "least", "two", "film", "." ], "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": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "List", "the", "names", "of", "studios", "that", "have", "at", "least", "two", "films", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "studio" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "film" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "studio", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "film", "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": "film_rank", "query": "SELECT Studio FROM film GROUP BY Studio HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Studio", "FROM", "film", "GROUP", "BY", "Studio", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "studio", "from", "film", "group", "by", "studio", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the names of studios that have made two or more films?", "question_toks": [ "what", "are", "name", "of", "studio", "that", "have", "made", "two", "or", "more", "film", "?" ], "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": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "studios", "that", "have", "made", "two", "or", "more", "films", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "studio" ], [ "that" ], [ "have" ], [ "made" ], [ "two" ], [ "or" ], [ "more" ], [ "film" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "studio", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "made", "VBN" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "film", "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": "film_rank", "query": "SELECT Title FROM film WHERE Film_ID NOT IN (SELECT Film_ID FROM film_market_estimation)", "query_toks": [ "SELECT", "Title", "FROM", "film", "WHERE", "Film_ID", "NOT", "IN", "(", "SELECT", "Film_ID", "FROM", "film_market_estimation", ")" ], "query_toks_no_value": [ "select", "title", "from", "film", "where", "film_id", "not", "in", "(", "select", "film_id", "from", "film_market_estimation", ")" ], "question": "List the title of films that do not have any market estimation.", "question_toks": [ "list", "title", "of", "film", "that", "do", "not", "have", "any", "market", "estimation", "." ], "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, 12, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "List", "the", "title", "of", "films", "that", "do", "not", "have", "any", "market", "estimation", "." ], "question_arg": [ [ "list" ], [ "title" ], [ "of" ], [ "film" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "market" ], [ "estimation" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "market", "NN" ], [ "estimation", "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": "film_rank", "query": "SELECT Title FROM film WHERE Film_ID NOT IN (SELECT Film_ID FROM film_market_estimation)", "query_toks": [ "SELECT", "Title", "FROM", "film", "WHERE", "Film_ID", "NOT", "IN", "(", "SELECT", "Film_ID", "FROM", "film_market_estimation", ")" ], "query_toks_no_value": [ "select", "title", "from", "film", "where", "film_id", "not", "in", "(", "select", "film_id", "from", "film_market_estimation", ")" ], "question": "What are the titles of films that do not have a film market estimation?", "question_toks": [ "what", "are", "title", "of", "film", "that", "do", "not", "have", "a", "film", "market", "estimation", "?" ], "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, 12, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "films", "that", "do", "not", "have", "a", "film", "market", "estimation", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "film" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "a" ], [ "film", "market", "estimation" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "of", "IN" ], [ "film", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "film", "NN" ], [ "market", "NN" ], [ "estimation", "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": "film_rank", "query": "SELECT Studio FROM film WHERE Director = \"Nicholas Meyer\" INTERSECT SELECT Studio FROM film WHERE Director = \"Walter Hill\"", "query_toks": [ "SELECT", "Studio", "FROM", "film", "WHERE", "Director", "=", "``", "Nicholas", "Meyer", "''", "INTERSECT", "SELECT", "Studio", "FROM", "film", "WHERE", "Director", "=", "``", "Walter", "Hill", "''" ], "query_toks_no_value": [ "select", "studio", "from", "film", "where", "director", "=", "value", "intersect", "select", "studio", "from", "film", "where", "director", "=", "value" ], "question": "Show the studios that have produced films with director \"Nicholas Meyer\" and \"Walter Hill\".", "question_toks": [ "show", "studio", "that", "have", "produced", "film", "with", "director", "'", "nicholas", "meyer", "'", "and", "'", "walter", "hill", "'", "." ], "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, 2, [ 0, [ 0, 4, false ], null ], "\"Walter Hill\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Nicholas Meyer\"", null ] ] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Show", "the", "studios", "that", "have", "produced", "films", "with", "director", "``", "Nicholas", "Meyer", "''", "and", "``", "Walter", "Hill", "''", "." ], "question_arg": [ [ "show" ], [ "studio" ], [ "that" ], [ "have" ], [ "produced" ], [ "film" ], [ "with" ], [ "director" ], [ "'" ], [ "nicholas" ], [ "meyer" ], [ "'" ], [ "and" ], [ "'" ], [ "walter" ], [ "hill" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "studio", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "produced", "VBN" ], [ "film", "NN" ], [ "with", "IN" ], [ "director", "NN" ], [ "'", "''" ], [ "nicholas", "NNS" ], [ "meyer", "NN" ], [ "'", "''" ], [ "and", "CC" ], [ "'", "POS" ], [ "walter", "NN" ], [ "hill", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Nicholas Meyer", "Walter Hill" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(4) T(0) V(1)" }, { "db_id": "film_rank", "query": "SELECT Studio FROM film WHERE Director = \"Nicholas Meyer\" INTERSECT SELECT Studio FROM film WHERE Director = \"Walter Hill\"", "query_toks": [ "SELECT", "Studio", "FROM", "film", "WHERE", "Director", "=", "``", "Nicholas", "Meyer", "''", "INTERSECT", "SELECT", "Studio", "FROM", "film", "WHERE", "Director", "=", "``", "Walter", "Hill", "''" ], "query_toks_no_value": [ "select", "studio", "from", "film", "where", "director", "=", "value", "intersect", "select", "studio", "from", "film", "where", "director", "=", "value" ], "question": "What are the names of studios that have produced films with both Nicholas Meyer and Walter Hill?", "question_toks": [ "what", "are", "name", "of", "studio", "that", "have", "produced", "film", "with", "both", "nicholas", "meyer", "and", "walter", "hill", "?" ], "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, 2, [ 0, [ 0, 4, false ], null ], "\"Walter Hill\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Nicholas Meyer\"", null ] ] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "studios", "that", "have", "produced", "films", "with", "both", "Nicholas", "Meyer", "and", "Walter", "Hill", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "studio" ], [ "that" ], [ "have" ], [ "produced" ], [ "film" ], [ "with" ], [ "both" ], [ "nicholas" ], [ "meyer" ], [ "and" ], [ "walter" ], [ "hill" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "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" ], [ "studio", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "produced", "VBN" ], [ "film", "NN" ], [ "with", "IN" ], [ "both", "DT" ], [ "nicholas", "NNS" ], [ "meyer", "NN" ], [ "and", "CC" ], [ "walter", "NN" ], [ "hill", "NN" ], [ "?", "." ] ], "values": [ "Nicholas Meyer", "Walter Hill" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(4) T(0) V(1)" }, { "db_id": "film_rank", "query": "SELECT title , Studio FROM film WHERE Studio LIKE \"%Universal%\"", "query_toks": [ "SELECT", "title", ",", "Studio", "FROM", "film", "WHERE", "Studio", "LIKE", "``", "%", "Universal", "%", "''" ], "query_toks_no_value": [ "select", "title", ",", "studio", "from", "film", "where", "studio", "like", "value" ], "question": "Find the titles and studios of the films that are produced by some film studios that contained the word \"Universal\".", "question_toks": [ "find", "title", "and", "studio", "of", "film", "that", "are", "produced", "by", "some", "film", "studio", "that", "contained", "word", "'", "universal", "'", "." ], "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, 9, [ 0, [ 0, 3, false ], null ], "\"%Universal%\"", null ] ] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Find", "the", "titles", "and", "studios", "of", "the", "films", "that", "are", "produced", "by", "some", "film", "studios", "that", "contained", "the", "word", "``", "Universal", "''", "." ], "question_arg": [ [ "find" ], [ "title" ], [ "and" ], [ "studio" ], [ "of" ], [ "film" ], [ "that" ], [ "are" ], [ "produced" ], [ "by" ], [ "some" ], [ "film" ], [ "studio" ], [ "that" ], [ "contained" ], [ "word" ], [ "'" ], [ "universal" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "and", "CC" ], [ "studio", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "some", "DT" ], [ "film", "NN" ], [ "studio", "NN" ], [ "that", "WDT" ], [ "contained", "VBD" ], [ "word", "NN" ], [ "'", "''" ], [ "universal", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Universal" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(9) A(0) C(3) T(0) V(0)" }, { "db_id": "film_rank", "query": "SELECT title , Studio FROM film WHERE Studio LIKE \"%Universal%\"", "query_toks": [ "SELECT", "title", ",", "Studio", "FROM", "film", "WHERE", "Studio", "LIKE", "``", "%", "Universal", "%", "''" ], "query_toks_no_value": [ "select", "title", ",", "studio", "from", "film", "where", "studio", "like", "value" ], "question": "What are the titles and studios of films that have been produced by a studio whose name contains \"Universal\"?", "question_toks": [ "what", "are", "title", "and", "studio", "of", "film", "that", "have", "been", "produced", "by", "a", "studio", "whose", "name", "contains", "'", "universal", "'", "?" ], "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, 9, [ 0, [ 0, 3, false ], null ], "\"%Universal%\"", null ] ] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "titles", "and", "studios", "of", "films", "that", "have", "been", "produced", "by", "a", "studio", "whose", "name", "contains", "``", "Universal", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "and" ], [ "studio" ], [ "of" ], [ "film" ], [ "that" ], [ "have" ], [ "been" ], [ "produced" ], [ "by" ], [ "a" ], [ "studio" ], [ "whose" ], [ "name" ], [ "contains" ], [ "'" ], [ "universal" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "and", "CC" ], [ "studio", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "a", "DT" ], [ "studio", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "'", "POS" ], [ "universal", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Universal" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(9) A(0) C(3) T(0) V(0)" }, { "db_id": "film_rank", "query": "SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director = \"Walter Hill\"", "query_toks": [ "SELECT", "Studio", "FROM", "film", "EXCEPT", "SELECT", "Studio", "FROM", "film", "WHERE", "Director", "=", "``", "Walter", "Hill", "''" ], "query_toks_no_value": [ "select", "studio", "from", "film", "except", "select", "studio", "from", "film", "where", "director", "=", "value" ], "question": "Show the studios that have not produced films with director \"Walter Hill\".", "question_toks": [ "show", "studio", "that", "have", "not", "produced", "film", "with", "director", "'", "walter", "hill", "'", "." ], "sql": { "except": { "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, 4, false ], null ], "\"Walter Hill\"", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Show", "the", "studios", "that", "have", "not", "produced", "films", "with", "director", "``", "Walter", "Hill", "''", "." ], "question_arg": [ [ "show" ], [ "studio" ], [ "that" ], [ "have" ], [ "not" ], [ "produced" ], [ "film" ], [ "with" ], [ "director" ], [ "'" ], [ "walter" ], [ "hill" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "studio", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "not", "RB" ], [ "produced", "VBN" ], [ "film", "NN" ], [ "with", "IN" ], [ "director", "NN" ], [ "'", "''" ], [ "walter", "NN" ], [ "hill", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Walter Hill" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(3) T(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "film_rank", "query": "SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director = \"Walter Hill\"", "query_toks": [ "SELECT", "Studio", "FROM", "film", "EXCEPT", "SELECT", "Studio", "FROM", "film", "WHERE", "Director", "=", "``", "Walter", "Hill", "''" ], "query_toks_no_value": [ "select", "studio", "from", "film", "except", "select", "studio", "from", "film", "where", "director", "=", "value" ], "question": "Which studios have never worked with the director Walter Hill?", "question_toks": [ "which", "studio", "have", "never", "worked", "with", "director", "walter", "hill", "?" ], "sql": { "except": { "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, 4, false ], null ], "\"Walter Hill\"", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Which", "studios", "have", "never", "worked", "with", "the", "director", "Walter", "Hill", "?" ], "question_arg": [ [ "which" ], [ "studio" ], [ "have" ], [ "never" ], [ "worked" ], [ "with" ], [ "director" ], [ "walter" ], [ "hill" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "studio", "NN" ], [ "have", "VBP" ], [ "never", "RB" ], [ "worked", "VBN" ], [ "with", "IN" ], [ "director", "NN" ], [ "walter", "NN" ], [ "hill", "NN" ], [ "?", "." ] ], "values": [ "Walter Hill" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(3) T(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "film_rank", "query": "SELECT Studio FROM film GROUP BY Studio HAVING avg(Gross_in_dollar) >= 4500000", "query_toks": [ "SELECT", "Studio", "FROM", "film", "GROUP", "BY", "Studio", "HAVING", "avg", "(", "Gross_in_dollar", ")", ">", "=", "4500000" ], "query_toks_no_value": [ "select", "studio", "from", "film", "group", "by", "studio", "having", "avg", "(", "gross_in_dollar", ")", ">", "=", "value" ], "question": "List the studios which average gross is above 4500000.", "question_toks": [ "list", "studio", "which", "average", "gross", "is", "above", "4500000", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 5, [ 0, [ 5, 5, false ], null ], 4500000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "List", "the", "studios", "which", "average", "gross", "is", "above", "4500000", "." ], "question_arg": [ [ "list" ], [ "studio" ], [ "which" ], [ "average" ], [ "gross" ], [ "is" ], [ "above" ], [ "4500000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "studio", "NN" ], [ "which", "WDT" ], [ "average", "JJ" ], [ "gross", "JJ" ], [ "is", "VBZ" ], [ "above", "IN" ], [ "4500000", "CD" ], [ ".", "." ] ], "values": [ "4500000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(7) A(5) C(5) T(0) V(0)" }, { "db_id": "film_rank", "query": "SELECT Studio FROM film GROUP BY Studio HAVING avg(Gross_in_dollar) >= 4500000", "query_toks": [ "SELECT", "Studio", "FROM", "film", "GROUP", "BY", "Studio", "HAVING", "avg", "(", "Gross_in_dollar", ")", ">", "=", "4500000" ], "query_toks_no_value": [ "select", "studio", "from", "film", "group", "by", "studio", "having", "avg", "(", "gross_in_dollar", ")", ">", "=", "value" ], "question": "Which studios have an average gross of over 4500000?", "question_toks": [ "which", "studio", "have", "an", "average", "gross", "of", "over", "4500000", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 5, [ 0, [ 5, 5, false ], null ], 4500000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Which", "studios", "have", "an", "average", "gross", "of", "over", "4500000", "?" ], "question_arg": [ [ "which" ], [ "studio" ], [ "have" ], [ "an" ], [ "average" ], [ "gross" ], [ "of" ], [ "over" ], [ "4500000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "studio", "NN" ], [ "have", "VBP" ], [ "an", "DT" ], [ "average", "JJ" ], [ "gross", "JJ" ], [ "of", "IN" ], [ "over", "IN" ], [ "4500000", "CD" ], [ "?", "." ] ], "values": [ "4500000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(7) A(5) C(5) T(0) V(0)" }, { "db_id": "film_rank", "query": "SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 1", "query_toks": [ "SELECT", "t1.title", "FROM", "film", "AS", "T1", "JOIN", "film_market_estimation", "AS", "T2", "ON", "T1.Film_ID", "=", "T2.Film_ID", "ORDER", "BY", "high_estimate", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "film", "as", "t1", "join", "film_market_estimation", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "order", "by", "high_estimate", "desc", "limit", "value" ], "question": "What is the title of the film that has the highest high market estimation.", "question_toks": [ "what", "is", "title", "of", "film", "that", "ha", "highest", "high", "market", "estimation", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "title", "of", "the", "film", "that", "has", "the", "highest", "high", "market", "estimation", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "title" ], [ "of" ], [ "film" ], [ "that" ], [ "ha" ], [ "highest" ], [ "high" ], [ "market" ], [ "estimation" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "title", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "highest", "JJS" ], [ "high", "JJ" ], [ "market", "NN" ], [ "estimation", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(11) T(2)" }, { "db_id": "film_rank", "query": "SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 1", "query_toks": [ "SELECT", "t1.title", "FROM", "film", "AS", "T1", "JOIN", "film_market_estimation", "AS", "T2", "ON", "T1.Film_ID", "=", "T2.Film_ID", "ORDER", "BY", "high_estimate", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "film", "as", "t1", "join", "film_market_estimation", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "order", "by", "high_estimate", "desc", "limit", "value" ], "question": "Return the title of the film with the highest high estimate?", "question_toks": [ "return", "title", "of", "film", "with", "highest", "high", "estimate", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Return", "the", "title", "of", "the", "film", "with", "the", "highest", "high", "estimate", "?" ], "question_arg": [ [ "return" ], [ "title" ], [ "of" ], [ "film" ], [ "with" ], [ "highest" ], [ "high", "estimate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "high", "JJ" ], [ "estimate", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(11) T(2)" }, { "db_id": "film_rank", "query": "SELECT title , director FROM film WHERE film_id NOT IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id = T2.Market_ID WHERE country = 'China')", "query_toks": [ "SELECT", "title", ",", "director", "FROM", "film", "WHERE", "film_id", "NOT", "IN", "(", "SELECT", "film_id", "FROM", "film_market_estimation", "AS", "T1", "JOIN", "market", "AS", "T2", "ON", "T1.market_id", "=", "T2.Market_ID", "WHERE", "country", "=", "'China", "'", ")" ], "query_toks_no_value": [ "select", "title", ",", "director", "from", "film", "where", "film_id", "not", "in", "(", "select", "film_id", "from", "film_market_estimation", "as", "t1", "join", "market", "as", "t2", "on", "t1", ".", "market_id", "=", "t2", ".", "market_id", "where", "country", "=", "value", ")" ], "question": "What are the titles and directors of the films were never presented in China?", "question_toks": [ "what", "are", "title", "and", "director", "of", "film", "were", "never", "presented", "in", "china", "?" ], "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": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, 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, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"China\"", null ] ] }, null ] ] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "titles", "and", "directors", "of", "the", "films", "were", "never", "presented", "in", "China", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "and" ], [ "director" ], [ "of" ], [ "film" ], [ "were" ], [ "never" ], [ "presented" ], [ "in" ], [ "china" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "and", "CC" ], [ "director", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "were", "VBD" ], [ "never", "RB" ], [ "presented", "VBN" ], [ "in", "IN" ], [ "china", "NN" ], [ "?", "." ] ], "values": [ "China" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(4) T(0) Filter(19) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(7) T(1) V(0)" }, { "db_id": "film_rank", "query": "SELECT title , director FROM film WHERE film_id NOT IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id = T2.Market_ID WHERE country = 'China')", "query_toks": [ "SELECT", "title", ",", "director", "FROM", "film", "WHERE", "film_id", "NOT", "IN", "(", "SELECT", "film_id", "FROM", "film_market_estimation", "AS", "T1", "JOIN", "market", "AS", "T2", "ON", "T1.market_id", "=", "T2.Market_ID", "WHERE", "country", "=", "'China", "'", ")" ], "query_toks_no_value": [ "select", "title", ",", "director", "from", "film", "where", "film_id", "not", "in", "(", "select", "film_id", "from", "film_market_estimation", "as", "t1", "join", "market", "as", "t2", "on", "t1", ".", "market_id", "=", "t2", ".", "market_id", "where", "country", "=", "value", ")" ], "question": "Return the titles and directors of films that were never in the market of China.", "question_toks": [ "return", "title", "and", "director", "of", "film", "that", "were", "never", "in", "market", "of", "china", "." ], "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": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, 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, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"China\"", null ] ] }, null ] ] }, "names": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "film id", "type", "market id", "year" ], "table_names": [ "film", "market", "film market estimation" ], "col_set": [ "*", "film id", "title", "studio", "director", "gross in dollar", "market id", "country", "number cities", "estimation id", "low estimate", "high estimate", "type", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "14": 6, "6": 6, "12": 1, "1": 1, "9": 9 }, "origin_question_toks": [ "Return", "the", "titles", "and", "directors", "of", "films", "that", "were", "never", "in", "the", "market", "of", "China", "." ], "question_arg": [ [ "return" ], [ "title" ], [ "and" ], [ "director" ], [ "of" ], [ "film" ], [ "that" ], [ "were" ], [ "never" ], [ "in" ], [ "market" ], [ "of" ], [ "china" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "title", "NN" ], [ "and", "CC" ], [ "director", "NN" ], [ "of", "IN" ], [ "film", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "never", "RB" ], [ "in", "IN" ], [ "market", "NN" ], [ "of", "IN" ], [ "china", "NN" ], [ ".", "." ] ], "values": [ "China" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(4) T(0) Filter(19) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(7) T(1) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM Ref_calendar", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Ref_calendar" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_calendar" ], "question": "How many calendar items do we have?", "question_toks": [ "how", "many", "calendar", "item", "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": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "How", "many", "calendar", "items", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "calendar" ], [ "item" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "calendar", "NN" ], [ "item", "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": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM Ref_calendar", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Ref_calendar" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_calendar" ], "question": "Count the number of all the calendar items.", "question_toks": [ "count", "number", "of", "all", "calendar", "item", "." ], "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": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Count", "the", "number", "of", "all", "the", "calendar", "items", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "all" ], [ "calendar" ], [ "item" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "calendar", "NN" ], [ "item", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT calendar_date , day_Number FROM Ref_calendar", "query_toks": [ "SELECT", "calendar_date", ",", "day_Number", "FROM", "Ref_calendar" ], "query_toks_no_value": [ "select", "calendar_date", ",", "day_number", "from", "ref_calendar" ], "question": "Show all calendar dates and day Numbers.", "question_toks": [ "show", "all", "calendar", "date", "and", "day", "number", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "all", "calendar", "dates", "and", "day", "Numbers", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "calendar", "date" ], [ "and" ], [ "day", "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "calendar", "NN" ], [ "date", "NN" ], [ "and", "CC" ], [ "day", "NN" ], [ "number", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(1) A(0) C(5) T(1)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT calendar_date , day_Number FROM Ref_calendar", "query_toks": [ "SELECT", "calendar_date", ",", "day_Number", "FROM", "Ref_calendar" ], "query_toks_no_value": [ "select", "calendar_date", ",", "day_number", "from", "ref_calendar" ], "question": "What are all the calendar dates and day Numbers?", "question_toks": [ "what", "are", "all", "calendar", "date", "and", "day", "number", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "are", "all", "the", "calendar", "dates", "and", "day", "Numbers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "calendar", "date" ], [ "and" ], [ "day", "number" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "calendar", "NN" ], [ "date", "NN" ], [ "and", "CC" ], [ "day", "NN" ], [ "number", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(1) A(0) C(5) T(1)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM Ref_document_types", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Ref_document_types" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_document_types" ], "question": "Show the number of document types.", "question_toks": [ "show", "number", "of", "document", "type", "." ], "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": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "number", "of", "document", "types", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "of" ], [ "document" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "JJ" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM Ref_document_types", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Ref_document_types" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_document_types" ], "question": "How many document types are there?", "question_toks": [ "how", "many", "document", "type", "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": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "How", "many", "document", "types", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "document" ], [ "type" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "document", "NN" ], [ "type", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT document_type_code , document_type_name FROM Ref_document_types", "query_toks": [ "SELECT", "document_type_code", ",", "document_type_name", "FROM", "Ref_document_types" ], "query_toks_no_value": [ "select", "document_type_code", ",", "document_type_name", "from", "ref_document_types" ], "question": "List all document type codes and document type names.", "question_toks": [ "list", "all", "document", "type", "code", "and", "document", "type", "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 ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "List", "all", "document", "type", "codes", "and", "document", "type", "names", "." ], "question_arg": [ [ "list" ], [ "all", "document" ], [ "document", "type", "code" ], [ "and" ], [ "document", "type", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "document", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "document", "NN" ], [ "type", "NN" ], [ "name", "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": "cre_Doc_Tracking_DB", "query": "SELECT document_type_code , document_type_name FROM Ref_document_types", "query_toks": [ "SELECT", "document_type_code", ",", "document_type_name", "FROM", "Ref_document_types" ], "query_toks_no_value": [ "select", "document_type_code", ",", "document_type_name", "from", "ref_document_types" ], "question": "What are all the document type codes and document type names?", "question_toks": [ "what", "are", "all", "document", "type", "code", "and", "document", "type", "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 ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "are", "all", "the", "document", "type", "codes", "and", "document", "type", "names", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all", "document" ], [ "document", "type", "code" ], [ "and" ], [ "document", "type", "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "document", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "document", "NN" ], [ "type", "NN" ], [ "name", "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": "cre_Doc_Tracking_DB", "query": "SELECT document_type_name , document_type_description FROM Ref_document_types WHERE document_type_code = \"RV\"", "query_toks": [ "SELECT", "document_type_name", ",", "document_type_description", "FROM", "Ref_document_types", "WHERE", "document_type_code", "=", "``", "RV", "''" ], "query_toks_no_value": [ "select", "document_type_name", ",", "document_type_description", "from", "ref_document_types", "where", "document_type_code", "=", "value" ], "question": "What is the name and description for document type code RV?", "question_toks": [ "what", "is", "name", "and", "description", "for", "document", "type", "code", "rv", "?" ], "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, 1, false ], null ], "\"RV\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "description", "for", "document", "type", "code", "RV", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "description" ], [ "for" ], [ "document", "type", "code" ], [ "rv" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "description", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "rv", "NN" ], [ "?", "." ] ], "values": [ "RV" ], "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(1) T(0) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT document_type_name , document_type_description FROM Ref_document_types WHERE document_type_code = \"RV\"", "query_toks": [ "SELECT", "document_type_name", ",", "document_type_description", "FROM", "Ref_document_types", "WHERE", "document_type_code", "=", "``", "RV", "''" ], "query_toks_no_value": [ "select", "document_type_name", ",", "document_type_description", "from", "ref_document_types", "where", "document_type_code", "=", "value" ], "question": "Give me the name and description of the document type code RV.", "question_toks": [ "give", "me", "name", "and", "description", "of", "document", "type", "code", "rv", "." ], "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, 1, false ], null ], "\"RV\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Give", "me", "the", "name", "and", "description", "of", "the", "document", "type", "code", "RV", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "name" ], [ "and" ], [ "description" ], [ "of" ], [ "document", "type", "code" ], [ "rv" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "rv", "NN" ], [ ".", "." ] ], "values": [ "RV" ], "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(1) T(0) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT document_type_code FROM Ref_document_types WHERE document_type_name = \"Paper\"", "query_toks": [ "SELECT", "document_type_code", "FROM", "Ref_document_types", "WHERE", "document_type_name", "=", "``", "Paper", "''" ], "query_toks_no_value": [ "select", "document_type_code", "from", "ref_document_types", "where", "document_type_name", "=", "value" ], "question": "What is the document type code for document type \"Paper\"?", "question_toks": [ "what", "is", "document", "type", "code", "for", "document", "type", "'", "paper", "'", "?" ], "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 ], "\"Paper\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "is", "the", "document", "type", "code", "for", "document", "type", "``", "Paper", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "document", "type", "code" ], [ "for" ], [ "document" ], [ "type" ], [ "'" ], [ "paper" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "document", "JJ" ], [ "type", "NN" ], [ "code", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "type", "NN" ], [ "'", "''" ], [ "paper", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Paper" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT document_type_code FROM Ref_document_types WHERE document_type_name = \"Paper\"", "query_toks": [ "SELECT", "document_type_code", "FROM", "Ref_document_types", "WHERE", "document_type_name", "=", "``", "Paper", "''" ], "query_toks_no_value": [ "select", "document_type_code", "from", "ref_document_types", "where", "document_type_name", "=", "value" ], "question": "Find the code of the document type \"Paper\".", "question_toks": [ "find", "code", "of", "document", "type", "'", "paper", "'", "." ], "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 ], "\"Paper\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Find", "the", "code", "of", "the", "document", "type", "``", "Paper", "''", "." ], "question_arg": [ [ "find" ], [ "code" ], [ "of" ], [ "document" ], [ "type" ], [ "'" ], [ "paper" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "code", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "type", "NN" ], [ "'", "''" ], [ "paper", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Paper" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM All_documents WHERE document_type_code = \"CV\" OR document_type_code = \"BK\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "All_documents", "WHERE", "document_type_code", "=", "``", "CV", "''", "OR", "document_type_code", "=", "``", "BK", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "all_documents", "where", "document_type_code", "=", "value", "or", "document_type_code", "=", "value" ], "question": "Show the number of documents with document type code CV or BK.", "question_toks": [ "show", "number", "of", "document", "with", "document", "type", "code", "cv", "or", "bk", "." ], "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, 14, false ], null ], "\"CV\"", null ], "or", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"BK\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "number", "of", "documents", "with", "document", "type", "code", "CV", "or", "BK", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "of" ], [ "document" ], [ "with" ], [ "document", "type", "code" ], [ "cv" ], [ "or" ], [ "bk" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "document", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "cv", "NN" ], [ "or", "CC" ], [ "bk", "NN" ], [ ".", "." ] ], "values": [ "CV", "BK" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(1) Filter(2) A(0) C(1) T(4) V(0) Filter(2) A(0) C(1) T(4) V(1)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM All_documents WHERE document_type_code = \"CV\" OR document_type_code = \"BK\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "All_documents", "WHERE", "document_type_code", "=", "``", "CV", "''", "OR", "document_type_code", "=", "``", "BK", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "all_documents", "where", "document_type_code", "=", "value", "or", "document_type_code", "=", "value" ], "question": "How many documents have document type code CV or BK?", "question_toks": [ "how", "many", "document", "have", "document", "type", "code", "cv", "or", "bk", "?" ], "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, 14, false ], null ], "\"CV\"", null ], "or", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"BK\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "How", "many", "documents", "have", "document", "type", "code", "CV", "or", "BK", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "document" ], [ "have" ], [ "document", "type", "code" ], [ "cv" ], [ "or" ], [ "bk" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "document", "NN" ], [ "have", "VBP" ], [ "document", "VBN" ], [ "type", "JJ" ], [ "code", "NN" ], [ "cv", "NN" ], [ "or", "CC" ], [ "bk", "NN" ], [ "?", "." ] ], "values": [ "CV", "BK" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(1) Filter(2) A(0) C(1) T(4) V(0) Filter(2) A(0) C(1) T(4) V(1)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT date_stored FROM All_documents WHERE Document_name = \"Marry CV\"", "query_toks": [ "SELECT", "date_stored", "FROM", "All_documents", "WHERE", "Document_name", "=", "``", "Marry", "CV", "''" ], "query_toks_no_value": [ "select", "date_stored", "from", "all_documents", "where", "document_name", "=", "value" ], "question": "What is the date when the document \"Marry CV\" was stored?", "question_toks": [ "what", "is", "date", "when", "document", "'", "marry", "cv", "'", "wa", "stored", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Marry CV\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "is", "the", "date", "when", "the", "document", "``", "Marry", "CV", "''", "was", "stored", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "date" ], [ "when" ], [ "document" ], [ "'" ], [ "marry" ], [ "cv" ], [ "'" ], [ "wa" ], [ "stored" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "date", "NN" ], [ "when", "WRB" ], [ "document", "NN" ], [ "'", "''" ], [ "marry", "JJ" ], [ "cv", "NN" ], [ "'", "POS" ], [ "wa", "NN" ], [ "stored", "VBN" ], [ "?", "." ] ], "values": [ "CV", "Marry CV" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(4) Filter(2) A(0) C(14) T(4) V(1)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT date_stored FROM All_documents WHERE Document_name = \"Marry CV\"", "query_toks": [ "SELECT", "date_stored", "FROM", "All_documents", "WHERE", "Document_name", "=", "``", "Marry", "CV", "''" ], "query_toks_no_value": [ "select", "date_stored", "from", "all_documents", "where", "document_name", "=", "value" ], "question": "When was the document named \"Marry CV\" stored? Give me the date.", "question_toks": [ "when", "wa", "document", "named", "'", "marry", "cv", "'", "stored", "?", "give", "me", "date", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Marry CV\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "When", "was", "the", "document", "named", "``", "Marry", "CV", "''", "stored", "?", "Give", "me", "the", "date", "." ], "question_arg": [ [ "when" ], [ "wa" ], [ "document" ], [ "named" ], [ "'" ], [ "marry" ], [ "cv" ], [ "'" ], [ "stored" ], [ "?" ], [ "give" ], [ "me" ], [ "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "wa", "JJ" ], [ "document", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "marry", "NN" ], [ "cv", "NN" ], [ "'", "''" ], [ "stored", "VBN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "date", "NN" ], [ ".", "." ] ], "values": [ "CV", "Marry CV" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(4) Filter(2) A(0) C(14) T(4) V(1)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.day_Number , T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date", "query_toks": [ "SELECT", "T2.day_Number", ",", "T1.Date_Stored", "FROM", "All_documents", "AS", "T1", "JOIN", "Ref_calendar", "AS", "T2", "ON", "T1.date_stored", "=", "T2.calendar_date" ], "query_toks_no_value": [ "select", "t2", ".", "day_number", ",", "t1", ".", "date_stored", "from", "all_documents", "as", "t1", "join", "ref_calendar", "as", "t2", "on", "t1", ".", "date_stored", "=", "t2", ".", "calendar_date" ], "question": "What is the day Number and date of all the documents?", "question_toks": [ "what", "is", "day", "number", "and", "date", "of", "all", "document", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "is", "the", "day", "Number", "and", "date", "of", "all", "the", "documents", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "day", "number" ], [ "and" ], [ "date", "of", "birth" ], [ "all", "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "day", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "document", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(5) T(1) A(0) C(13) T(4)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.day_Number , T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date", "query_toks": [ "SELECT", "T2.day_Number", ",", "T1.Date_Stored", "FROM", "All_documents", "AS", "T1", "JOIN", "Ref_calendar", "AS", "T2", "ON", "T1.date_stored", "=", "T2.calendar_date" ], "query_toks_no_value": [ "select", "t2", ".", "day_number", ",", "t1", ".", "date_stored", "from", "all_documents", "as", "t1", "join", "ref_calendar", "as", "t2", "on", "t1", ".", "date_stored", "=", "t2", ".", "calendar_date" ], "question": "Return the day Number and stored date for all the documents.", "question_toks": [ "return", "day", "number", "and", "stored", "date", "for", "all", "document", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Return", "the", "day", "Number", "and", "stored", "date", "for", "all", "the", "documents", "." ], "question_arg": [ [ "return" ], [ "day", "number" ], [ "and" ], [ "date", "stored" ], [ "for" ], [ "all", "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "day", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "stored", "JJ" ], [ "date", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(5) T(1) A(0) C(13) T(4)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = \"How to read a book\"", "query_toks": [ "SELECT", "T2.document_type_name", "FROM", "All_documents", "AS", "T1", "JOIN", "Ref_document_types", "AS", "T2", "ON", "T1.document_type_code", "=", "T2.document_type_code", "WHERE", "T1.document_name", "=", "``", "How", "to", "read", "a", "book", "''" ], "query_toks_no_value": [ "select", "t2", ".", "document_type_name", "from", "all_documents", "as", "t1", "join", "ref_document_types", "as", "t2", "on", "t1", ".", "document_type_code", "=", "t2", ".", "document_type_code", "where", "t1", ".", "document_name", "=", "value" ], "question": "What is the document type name for the document with name \"How to read a book\"?", "question_toks": [ "what", "is", "document", "type", "name", "for", "document", "with", "name", "'", "how", "to", "read", "a", "book", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 15, false ], null ], "\"How to read a book\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "is", "the", "document", "type", "name", "for", "the", "document", "with", "name", "``", "How", "to", "read", "a", "book", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "document", "type", "name" ], [ "for" ], [ "document" ], [ "with" ], [ "name" ], [ "'" ], [ "how" ], [ "to" ], [ "read" ], [ "a" ], [ "book" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "document", "JJ" ], [ "type", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "POS" ], [ "how", "WRB" ], [ "to", "TO" ], [ "read", "VB" ], [ "a", "DT" ], [ "book", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Book", "How to read a book" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(14) T(4) V(1)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = \"How to read a book\"", "query_toks": [ "SELECT", "T2.document_type_name", "FROM", "All_documents", "AS", "T1", "JOIN", "Ref_document_types", "AS", "T2", "ON", "T1.document_type_code", "=", "T2.document_type_code", "WHERE", "T1.document_name", "=", "``", "How", "to", "read", "a", "book", "''" ], "query_toks_no_value": [ "select", "t2", ".", "document_type_name", "from", "all_documents", "as", "t1", "join", "ref_document_types", "as", "t2", "on", "t1", ".", "document_type_code", "=", "t2", ".", "document_type_code", "where", "t1", ".", "document_name", "=", "value" ], "question": "Find the document type name of the document named \"How to read a book\".", "question_toks": [ "find", "document", "type", "name", "of", "document", "named", "'", "how", "to", "read", "a", "book", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 15, false ], null ], "\"How to read a book\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Find", "the", "document", "type", "name", "of", "the", "document", "named", "``", "How", "to", "read", "a", "book", "''", "." ], "question_arg": [ [ "find" ], [ "document", "type", "name" ], [ "of" ], [ "document" ], [ "named" ], [ "'" ], [ "how" ], [ "to" ], [ "read" ], [ "a" ], [ "book" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "document", "JJ" ], [ "type", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "how", "WRB" ], [ "to", "TO" ], [ "read", "VB" ], [ "a", "DT" ], [ "book", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Book", "How to read a book" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(14) T(4) V(1)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM Ref_locations", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Ref_locations" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_locations" ], "question": "Show the number of locations.", "question_toks": [ "show", "number", "of", "location", "." ], "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": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "number", "of", "locations", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "of" ], [ "location" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "location", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM Ref_locations", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Ref_locations" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_locations" ], "question": "How many locations are listed in the database?", "question_toks": [ "how", "many", "location", "are", "listed", "in", "database", "?" ], "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": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "How", "many", "locations", "are", "listed", "in", "the", "database", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "location" ], [ "are" ], [ "listed" ], [ "in" ], [ "database" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "location", "NN" ], [ "are", "VBP" ], [ "listed", "VBN" ], [ "in", "IN" ], [ "database", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code , location_name FROM Ref_locations", "query_toks": [ "SELECT", "location_code", ",", "location_name", "FROM", "Ref_locations" ], "query_toks_no_value": [ "select", "location_code", ",", "location_name", "from", "ref_locations" ], "question": "List all location codes and location names.", "question_toks": [ "list", "all", "location", "code", "and", "location", "name", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "List", "all", "location", "codes", "and", "location", "names", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "location", "code" ], [ "and" ], [ "location", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "location", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(2) A(0) C(7) T(2)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code , location_name FROM Ref_locations", "query_toks": [ "SELECT", "location_code", ",", "location_name", "FROM", "Ref_locations" ], "query_toks_no_value": [ "select", "location_code", ",", "location_name", "from", "ref_locations" ], "question": "What are all the location codes and location names?", "question_toks": [ "what", "are", "all", "location", "code", "and", "location", "name", "?" ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "are", "all", "the", "location", "codes", "and", "location", "names", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "location", "code" ], [ "and" ], [ "location", "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "location", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "name", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(2) A(0) C(7) T(2)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_name , location_description FROM Ref_locations WHERE location_code = \"x\"", "query_toks": [ "SELECT", "location_name", ",", "location_description", "FROM", "Ref_locations", "WHERE", "location_code", "=", "``", "x", "''" ], "query_toks_no_value": [ "select", "location_name", ",", "location_description", "from", "ref_locations", "where", "location_code", "=", "value" ], "question": "What are the name and description for location code x?", "question_toks": [ "what", "are", "name", "and", "description", "for", "location", "code", "x", "?" ], "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, 6, false ], null ], "\"x\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "description", "for", "location", "code", "x", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "description" ], [ "for" ], [ "location", "code" ], [ "x" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "description", "NN" ], [ "for", "IN" ], [ "location", "NN" ], [ "code", "NN" ], [ "x", "NN" ], [ "?", "." ] ], "values": [ "x" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(2) A(0) C(8) T(2) Filter(2) A(0) C(6) T(2) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_name , location_description FROM Ref_locations WHERE location_code = \"x\"", "query_toks": [ "SELECT", "location_name", ",", "location_description", "FROM", "Ref_locations", "WHERE", "location_code", "=", "``", "x", "''" ], "query_toks_no_value": [ "select", "location_name", ",", "location_description", "from", "ref_locations", "where", "location_code", "=", "value" ], "question": "Give me the name and description of the location with code x.", "question_toks": [ "give", "me", "name", "and", "description", "of", "location", "with", "code", "x", "." ], "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, 6, false ], null ], "\"x\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Give", "me", "the", "name", "and", "description", "of", "the", "location", "with", "code", "x", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "name" ], [ "and" ], [ "description" ], [ "of" ], [ "location" ], [ "with" ], [ "code" ], [ "x" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "location", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "x", "NN" ], [ ".", "." ] ], "values": [ "x" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(2) A(0) C(8) T(2) Filter(2) A(0) C(6) T(2) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code FROM Ref_locations WHERE location_name = \"Canada\"", "query_toks": [ "SELECT", "location_code", "FROM", "Ref_locations", "WHERE", "location_name", "=", "``", "Canada", "''" ], "query_toks_no_value": [ "select", "location_code", "from", "ref_locations", "where", "location_name", "=", "value" ], "question": "What is the location code for the country \"Canada\"?", "question_toks": [ "what", "is", "location", "code", "for", "country", "'", "canada", "'", "?" ], "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, 7, false ], null ], "\"Canada\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "is", "the", "location", "code", "for", "the", "country", "``", "Canada", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "location", "code" ], [ "for" ], [ "country" ], [ "'" ], [ "canada" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "location", "NN" ], [ "code", "NN" ], [ "for", "IN" ], [ "country", "NN" ], [ "'", "''" ], [ "canada", "NNS" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Canada" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code FROM Ref_locations WHERE location_name = \"Canada\"", "query_toks": [ "SELECT", "location_code", "FROM", "Ref_locations", "WHERE", "location_name", "=", "``", "Canada", "''" ], "query_toks_no_value": [ "select", "location_code", "from", "ref_locations", "where", "location_name", "=", "value" ], "question": "Show the location code of the country \"Canada\".", "question_toks": [ "show", "location", "code", "of", "country", "'", "canada", "'", "." ], "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, 7, false ], null ], "\"Canada\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "location", "code", "of", "the", "country", "``", "Canada", "''", "." ], "question_arg": [ [ "show" ], [ "location", "code" ], [ "of" ], [ "country" ], [ "'" ], [ "canada" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "location", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "'", "''" ], [ "canada", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Canada" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM ROLES", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ROLES" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "roles" ], "question": "How many roles are there?", "question_toks": [ "how", "many", "role", "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": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "How", "many", "roles", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "role" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "role", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM ROLES", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ROLES" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "roles" ], "question": "Count the total number of roles listed.", "question_toks": [ "count", "total", "number", "of", "role", "listed", "." ], "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": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Count", "the", "total", "number", "of", "roles", "listed", "." ], "question_arg": [ [ "count" ], [ "total" ], [ "number" ], [ "of" ], [ "role" ], [ "listed" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "role", "NN" ], [ "listed", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code , role_name , role_description FROM ROLES", "query_toks": [ "SELECT", "role_code", ",", "role_name", ",", "role_description", "FROM", "ROLES" ], "query_toks_no_value": [ "select", "role_code", ",", "role_name", ",", "role_description", "from", "roles" ], "question": "List all role codes, role names, and role descriptions.", "question_toks": [ "list", "all", "role", "code", ",", "role", "name", ",", "and", "role", "description", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "List", "all", "role", "codes", ",", "role", "names", ",", "and", "role", "descriptions", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "role", "code" ], [ "," ], [ "role", "name" ], [ "," ], [ "and" ], [ "role", "description" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "role", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "role", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "role", "NN" ], [ "description", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(9) T(3) A(0) C(10) T(3) A(0) C(11) T(3)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code , role_name , role_description FROM ROLES", "query_toks": [ "SELECT", "role_code", ",", "role_name", ",", "role_description", "FROM", "ROLES" ], "query_toks_no_value": [ "select", "role_code", ",", "role_name", ",", "role_description", "from", "roles" ], "question": "What are all the role codes, role names, and role descriptions?", "question_toks": [ "what", "are", "all", "role", "code", ",", "role", "name", ",", "and", "role", "description", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "are", "all", "the", "role", "codes", ",", "role", "names", ",", "and", "role", "descriptions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "role", "code" ], [ "," ], [ "role", "name" ], [ "," ], [ "and" ], [ "role", "description" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "role", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "role", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "role", "NN" ], [ "description", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(9) T(3) A(0) C(10) T(3) A(0) C(11) T(3)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_name , role_description FROM ROLES WHERE role_code = \"MG\"", "query_toks": [ "SELECT", "role_name", ",", "role_description", "FROM", "ROLES", "WHERE", "role_code", "=", "``", "MG", "''" ], "query_toks_no_value": [ "select", "role_name", ",", "role_description", "from", "roles", "where", "role_code", "=", "value" ], "question": "What are the name and description for role code \"MG\"?", "question_toks": [ "what", "are", "name", "and", "description", "for", "role", "code", "'", "mg", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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, 2, [ 0, [ 0, 9, false ], null ], "\"MG\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "description", "for", "role", "code", "``", "MG", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "description" ], [ "for" ], [ "role", "code" ], [ "'" ], [ "mg" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "description", "NN" ], [ "for", "IN" ], [ "role", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "mg", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "MG" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(11) T(3) Filter(2) A(0) C(9) T(3) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_name , role_description FROM ROLES WHERE role_code = \"MG\"", "query_toks": [ "SELECT", "role_name", ",", "role_description", "FROM", "ROLES", "WHERE", "role_code", "=", "``", "MG", "''" ], "query_toks_no_value": [ "select", "role_name", ",", "role_description", "from", "roles", "where", "role_code", "=", "value" ], "question": "Find the name and description of the role with code \"MG\".", "question_toks": [ "find", "name", "and", "description", "of", "role", "with", "code", "'", "mg", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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, 2, [ 0, [ 0, 9, false ], null ], "\"MG\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Find", "the", "name", "and", "description", "of", "the", "role", "with", "code", "``", "MG", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "description" ], [ "of" ], [ "role" ], [ "with" ], [ "code" ], [ "'" ], [ "mg" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "role", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "'", "''" ], [ "mg", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "MG" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(11) T(3) Filter(2) A(0) C(9) T(3) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_description FROM ROLES WHERE role_name = \"Proof Reader\"", "query_toks": [ "SELECT", "role_description", "FROM", "ROLES", "WHERE", "role_name", "=", "``", "Proof", "Reader", "''" ], "query_toks_no_value": [ "select", "role_description", "from", "roles", "where", "role_name", "=", "value" ], "question": "Show the description for role name \"Proof Reader\".", "question_toks": [ "show", "description", "for", "role", "name", "'", "proof", "reader", "'", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Proof Reader\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "description", "for", "role", "name", "``", "Proof", "Reader", "''", "." ], "question_arg": [ [ "show" ], [ "description" ], [ "for" ], [ "role", "name" ], [ "'" ], [ "proof" ], [ "reader" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "description", "NN" ], [ "for", "IN" ], [ "role", "NN" ], [ "name", "NN" ], [ "'", "''" ], [ "proof", "JJ" ], [ "reader", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Proof Reader" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(3) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_description FROM ROLES WHERE role_name = \"Proof Reader\"", "query_toks": [ "SELECT", "role_description", "FROM", "ROLES", "WHERE", "role_name", "=", "``", "Proof", "Reader", "''" ], "query_toks_no_value": [ "select", "role_description", "from", "roles", "where", "role_name", "=", "value" ], "question": "What is the description of the role named \"Proof Reader\"?", "question_toks": [ "what", "is", "description", "of", "role", "named", "'", "proof", "reader", "'", "?" ], "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Proof Reader\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "is", "the", "description", "of", "the", "role", "named", "``", "Proof", "Reader", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "of" ], [ "role" ], [ "named" ], [ "'" ], [ "proof" ], [ "reader" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "of", "IN" ], [ "role", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "proof", "JJ" ], [ "reader", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Proof Reader" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(3) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM Employees", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Employees" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employees" ], "question": "How many employees do we have?", "question_toks": [ "how", "many", "employee", "do", "we", "have", "?" ], "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": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "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(5)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM Employees", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Employees" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employees" ], "question": "Find the number of employees we have.", "question_toks": [ "find", "number", "of", "employee", "we", "have", "." ], "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": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Find", "the", "number", "of", "employees", "we", "have", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "employee" ], [ "we" ], [ "have" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "we", "PRP" ], [ "have", "VBP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(5)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_name , role_code , date_of_birth FROM Employees WHERE employee_Name = 'Armani'", "query_toks": [ "SELECT", "employee_name", ",", "role_code", ",", "date_of_birth", "FROM", "Employees", "WHERE", "employee_Name", "=", "'Armani", "'" ], "query_toks_no_value": [ "select", "employee_name", ",", "role_code", ",", "date_of_birth", "from", "employees", "where", "employee_name", "=", "value" ], "question": "Show the name, role code, and date of birth for the employee with name 'Armani'.", "question_toks": [ "show", "name", ",", "role", "code", ",", "and", "date", "of", "birth", "for", "employee", "with", "name", "'", "armani", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Armani\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "name", ",", "role", "code", ",", "and", "date", "of", "birth", "for", "the", "employee", "with", "name", "'Armani", "'", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "," ], [ "role", "code" ], [ "," ], [ "and" ], [ "date", "of", "birth" ], [ "for" ], [ "employee" ], [ "with" ], [ "name" ], [ "'" ], [ "armani" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "role", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "birth", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "armani", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Armani" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(18) T(5) A(0) C(9) T(5) A(0) C(20) T(5) Filter(2) A(0) C(18) T(5) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_name , role_code , date_of_birth FROM Employees WHERE employee_Name = 'Armani'", "query_toks": [ "SELECT", "employee_name", ",", "role_code", ",", "date_of_birth", "FROM", "Employees", "WHERE", "employee_Name", "=", "'Armani", "'" ], "query_toks_no_value": [ "select", "employee_name", ",", "role_code", ",", "date_of_birth", "from", "employees", "where", "employee_name", "=", "value" ], "question": "What are the name, role code, and date of birth of the employee named 'Armani'?", "question_toks": [ "what", "are", "name", ",", "role", "code", ",", "and", "date", "of", "birth", "of", "employee", "named", "'", "armani", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Armani\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "are", "the", "name", ",", "role", "code", ",", "and", "date", "of", "birth", "of", "the", "employee", "named", "'Armani", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "role", "code" ], [ "," ], [ "and" ], [ "date", "of", "birth" ], [ "of" ], [ "employee" ], [ "named" ], [ "'" ], [ "armani" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "role", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "birth", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "armani", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Armani" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(18) T(5) A(0) C(9) T(5) A(0) C(20) T(5) Filter(2) A(0) C(18) T(5) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_ID FROM Employees WHERE employee_name = \"Ebba\"", "query_toks": [ "SELECT", "employee_ID", "FROM", "Employees", "WHERE", "employee_name", "=", "``", "Ebba", "''" ], "query_toks_no_value": [ "select", "employee_id", "from", "employees", "where", "employee_name", "=", "value" ], "question": "What is the id for the employee called Ebba?", "question_toks": [ "what", "is", "id", "for", "employee", "called", "ebba", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Ebba\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "is", "the", "id", "for", "the", "employee", "called", "Ebba", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "for" ], [ "employee" ], [ "called" ], [ "ebba" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "called", "VBN" ], [ "ebba", "NN" ], [ "?", "." ] ], "values": [ "Ebba" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(17) T(5) Filter(2) A(0) C(18) T(5) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_ID FROM Employees WHERE employee_name = \"Ebba\"", "query_toks": [ "SELECT", "employee_ID", "FROM", "Employees", "WHERE", "employee_name", "=", "``", "Ebba", "''" ], "query_toks_no_value": [ "select", "employee_id", "from", "employees", "where", "employee_name", "=", "value" ], "question": "Show the id of the employee named Ebba.", "question_toks": [ "show", "id", "of", "employee", "named", "ebba", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Ebba\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "id", "of", "the", "employee", "named", "Ebba", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "of" ], [ "employee" ], [ "named" ], [ "ebba" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "named", "VBN" ], [ "ebba", "NN" ], [ ".", "." ] ], "values": [ "Ebba" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(17) T(5) Filter(2) A(0) C(18) T(5) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_name FROM Employees WHERE role_code = \"HR\"", "query_toks": [ "SELECT", "employee_name", "FROM", "Employees", "WHERE", "role_code", "=", "``", "HR", "''" ], "query_toks_no_value": [ "select", "employee_name", "from", "employees", "where", "role_code", "=", "value" ], "question": "Show the names of all the employees with role \"HR\".", "question_toks": [ "show", "name", "of", "all", "employee", "with", "role", "'", "hr", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"HR\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "names", "of", "all", "the", "employees", "with", "role", "``", "HR", "''", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "all" ], [ "employee" ], [ "with" ], [ "role" ], [ "'" ], [ "hr" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "with", "IN" ], [ "role", "NN" ], [ "'", "''" ], [ "hr", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "HR" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(5) Filter(2) A(0) C(9) T(5) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_name FROM Employees WHERE role_code = \"HR\"", "query_toks": [ "SELECT", "employee_name", "FROM", "Employees", "WHERE", "role_code", "=", "``", "HR", "''" ], "query_toks_no_value": [ "select", "employee_name", "from", "employees", "where", "role_code", "=", "value" ], "question": "Which employees have the role with code \"HR\"? Find their names.", "question_toks": [ "which", "employee", "have", "role", "with", "code", "'", "hr", "'", "?", "find", "their", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"HR\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Which", "employees", "have", "the", "role", "with", "code", "``", "HR", "''", "?", "Find", "their", "names", "." ], "question_arg": [ [ "which" ], [ "employee" ], [ "have" ], [ "role" ], [ "with" ], [ "code" ], [ "'" ], [ "hr" ], [ "'" ], [ "?" ], [ "find" ], [ "their" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "employee", "NN" ], [ "have", "VBP" ], [ "role", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "'", "''" ], [ "hr", "NN" ], [ "'", "''" ], [ "?", "." ], [ "find", "VBP" ], [ "their", "PRP$" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "HR" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(5) Filter(2) A(0) C(9) T(5) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code , count(*) FROM Employees GROUP BY role_code", "query_toks": [ "SELECT", "role_code", ",", "count", "(", "*", ")", "FROM", "Employees", "GROUP", "BY", "role_code" ], "query_toks_no_value": [ "select", "role_code", ",", "count", "(", "*", ")", "from", "employees", "group", "by", "role_code" ], "question": "Show all role codes and the number of employees in each role.", "question_toks": [ "show", "all", "role", "code", "and", "number", "of", "employee", "in", "each", "role", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "all", "role", "codes", "and", "the", "number", "of", "employees", "in", "each", "role", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "role", "code" ], [ "and" ], [ "number" ], [ "of" ], [ "employee" ], [ "in" ], [ "each" ], [ "role" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "role", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "role", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(5) A(3) C(0) T(5)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code , count(*) FROM Employees GROUP BY role_code", "query_toks": [ "SELECT", "role_code", ",", "count", "(", "*", ")", "FROM", "Employees", "GROUP", "BY", "role_code" ], "query_toks_no_value": [ "select", "role_code", ",", "count", "(", "*", ")", "from", "employees", "group", "by", "role_code" ], "question": "What is the code of each role and the number of employees in each role?", "question_toks": [ "what", "is", "code", "of", "each", "role", "and", "number", "of", "employee", "in", "each", "role", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "is", "the", "code", "of", "each", "role", "and", "the", "number", "of", "employees", "in", "each", "role", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "code" ], [ "of" ], [ "each" ], [ "role" ], [ "and" ], [ "number" ], [ "of" ], [ "employee" ], [ "in" ], [ "each" ], [ "role" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "code", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "role", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "role", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(5) A(3) C(0) T(5)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "role_code", "FROM", "Employees", "GROUP", "BY", "role_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "role_code", "from", "employees", "group", "by", "role_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the role code with the largest number of employees?", "question_toks": [ "what", "is", "role", "code", "with", "largest", "number", "of", "employee", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "is", "the", "role", "code", "with", "the", "largest", "number", "of", "employees", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "role", "code" ], [ "with" ], [ "largest" ], [ "number" ], [ "of" ], [ "employee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "role", "NN" ], [ "code", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(5) Sup(0) A(3) C(0) T(5)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "role_code", "FROM", "Employees", "GROUP", "BY", "role_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "role_code", "from", "employees", "group", "by", "role_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the code of the role that have the most employees.", "question_toks": [ "find", "code", "of", "role", "that", "have", "most", "employee", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Find", "the", "code", "of", "the", "role", "that", "have", "the", "most", "employees", "." ], "question_arg": [ [ "find" ], [ "code" ], [ "of" ], [ "role" ], [ "that" ], [ "have" ], [ "most" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "code", "NN" ], [ "of", "IN" ], [ "role", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "most", "RBS" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(5) Sup(0) A(3) C(0) T(5)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code FROM Employees GROUP BY role_code HAVING count(*) >= 3", "query_toks": [ "SELECT", "role_code", "FROM", "Employees", "GROUP", "BY", "role_code", "HAVING", "count", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "role_code", "from", "employees", "group", "by", "role_code", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show all role codes with at least 3 employees.", "question_toks": [ "show", "all", "role", "code", "with", "at", "least", "3", "employee", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "all", "role", "codes", "with", "at", "least", "3", "employees", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "role", "code" ], [ "with" ], [ "at" ], [ "least" ], [ "3" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "role", "NN" ], [ "code", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "3", "CD" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(5) Filter(7) A(3) C(0) T(5) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code FROM Employees GROUP BY role_code HAVING count(*) >= 3", "query_toks": [ "SELECT", "role_code", "FROM", "Employees", "GROUP", "BY", "role_code", "HAVING", "count", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "role_code", "from", "employees", "group", "by", "role_code", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the roles with three or more employees? Give me the role codes.", "question_toks": [ "what", "are", "role", "with", "three", "or", "more", "employee", "?", "give", "me", "role", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "are", "the", "roles", "with", "three", "or", "more", "employees", "?", "Give", "me", "the", "role", "codes", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "role" ], [ "with" ], [ "three" ], [ "or" ], [ "more" ], [ "employee" ], [ "?" ], [ "give" ], [ "me" ], [ "role", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "role", "NN" ], [ "with", "IN" ], [ "three", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "employee", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "role", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(5) Filter(7) A(3) C(0) T(5) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "role_code", "FROM", "Employees", "GROUP", "BY", "role_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "role_code", "from", "employees", "group", "by", "role_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Show the role code with the least employees.", "question_toks": [ "show", "role", "code", "with", "least", "employee", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "role", "code", "with", "the", "least", "employees", "." ], "question_arg": [ [ "show" ], [ "role", "code" ], [ "with" ], [ "least" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "role", "NN" ], [ "code", "NN" ], [ "with", "IN" ], [ "least", "JJS" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(5) Sup(1) A(3) C(0) T(5)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "role_code", "FROM", "Employees", "GROUP", "BY", "role_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "role_code", "from", "employees", "group", "by", "role_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "What is the role with the smallest number of employees? Find the role codes.", "question_toks": [ "what", "is", "role", "with", "smallest", "number", "of", "employee", "?", "find", "role", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "is", "the", "role", "with", "the", "smallest", "number", "of", "employees", "?", "Find", "the", "role", "codes", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "role" ], [ "with" ], [ "smallest" ], [ "number" ], [ "of" ], [ "employee" ], [ "?" ], [ "find" ], [ "role", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "role", "NN" ], [ "with", "IN" ], [ "smallest", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "?", "." ], [ "find", "VB" ], [ "role", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(5) Sup(1) A(3) C(0) T(5)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.role_name , T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = \"Ebba\"", "query_toks": [ "SELECT", "T2.role_name", ",", "T2.role_description", "FROM", "Employees", "AS", "T1", "JOIN", "ROLES", "AS", "T2", "ON", "T1.role_code", "=", "T2.role_code", "WHERE", "T1.employee_name", "=", "``", "Ebba", "''" ], "query_toks_no_value": [ "select", "t2", ".", "role_name", ",", "t2", ".", "role_description", "from", "employees", "as", "t1", "join", "roles", "as", "t2", "on", "t1", ".", "role_code", "=", "t2", ".", "role_code", "where", "t1", ".", "employee_name", "=", "value" ], "question": "What is the role name and role description for employee called Ebba?", "question_toks": [ "what", "is", "role", "name", "and", "role", "description", "for", "employee", "called", "ebba", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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, 2, [ 0, [ 0, 20, false ], null ], "\"Ebba\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "is", "the", "role", "name", "and", "role", "description", "for", "employee", "called", "Ebba", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "role", "name" ], [ "and" ], [ "role", "description" ], [ "for" ], [ "employee" ], [ "called" ], [ "ebba" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "role", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "role", "NN" ], [ "description", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "called", "VBN" ], [ "ebba", "NN" ], [ "?", "." ] ], "values": [ "Ebba" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(11) T(3) Filter(2) A(0) C(18) T(5) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.role_name , T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = \"Ebba\"", "query_toks": [ "SELECT", "T2.role_name", ",", "T2.role_description", "FROM", "Employees", "AS", "T1", "JOIN", "ROLES", "AS", "T2", "ON", "T1.role_code", "=", "T2.role_code", "WHERE", "T1.employee_name", "=", "``", "Ebba", "''" ], "query_toks_no_value": [ "select", "t2", ".", "role_name", ",", "t2", ".", "role_description", "from", "employees", "as", "t1", "join", "roles", "as", "t2", "on", "t1", ".", "role_code", "=", "t2", ".", "role_code", "where", "t1", ".", "employee_name", "=", "value" ], "question": "Show the name and description of the role played by the employee named Ebba.", "question_toks": [ "show", "name", "and", "description", "of", "role", "played", "by", "employee", "named", "ebba", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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, 2, [ 0, [ 0, 20, false ], null ], "\"Ebba\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "name", "and", "description", "of", "the", "role", "played", "by", "the", "employee", "named", "Ebba", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "description" ], [ "of" ], [ "role" ], [ "played" ], [ "by" ], [ "employee" ], [ "named" ], [ "ebba" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "role", "NN" ], [ "played", "VBN" ], [ "by", "IN" ], [ "employee", "NN" ], [ "named", "VBN" ], [ "ebba", "NN" ], [ ".", "." ] ], "values": [ "Ebba" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(11) T(3) Filter(2) A(0) C(18) T(5) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Editor\"", "query_toks": [ "SELECT", "T1.employee_name", "FROM", "Employees", "AS", "T1", "JOIN", "ROLES", "AS", "T2", "ON", "T1.role_code", "=", "T2.role_code", "WHERE", "T2.role_name", "=", "``", "Editor", "''" ], "query_toks_no_value": [ "select", "t1", ".", "employee_name", "from", "employees", "as", "t1", "join", "roles", "as", "t2", "on", "t1", ".", "role_code", "=", "t2", ".", "role_code", "where", "t2", ".", "role_name", "=", "value" ], "question": "Show the names of employees with role name Editor.", "question_toks": [ "show", "name", "of", "employee", "with", "role", "name", "editor", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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 ], "\"Editor\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "names", "of", "employees", "with", "role", "name", "Editor", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "employee" ], [ "with" ], [ "role", "name" ], [ "editor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "with", "IN" ], [ "role", "NN" ], [ "name", "NN" ], [ "editor", "NN" ], [ ".", "." ] ], "values": [ "Editor" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(5) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Editor\"", "query_toks": [ "SELECT", "T1.employee_name", "FROM", "Employees", "AS", "T1", "JOIN", "ROLES", "AS", "T2", "ON", "T1.role_code", "=", "T2.role_code", "WHERE", "T2.role_name", "=", "``", "Editor", "''" ], "query_toks_no_value": [ "select", "t1", ".", "employee_name", "from", "employees", "as", "t1", "join", "roles", "as", "t2", "on", "t1", ".", "role_code", "=", "t2", ".", "role_code", "where", "t2", ".", "role_name", "=", "value" ], "question": "Find the names of all the employees whose the role name is \"Editor\".", "question_toks": [ "find", "name", "of", "all", "employee", "whose", "role", "name", "is", "'", "editor", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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 ], "\"Editor\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "the", "employees", "whose", "the", "role", "name", "is", "``", "Editor", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "employee" ], [ "whose" ], [ "role", "name" ], [ "is" ], [ "'" ], [ "editor" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "whose", "WP$" ], [ "role", "NN" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "editor", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Editor" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(5) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Human Resource\" OR T2.role_name = \"Manager\"", "query_toks": [ "SELECT", "T1.employee_id", "FROM", "Employees", "AS", "T1", "JOIN", "ROLES", "AS", "T2", "ON", "T1.role_code", "=", "T2.role_code", "WHERE", "T2.role_name", "=", "``", "Human", "Resource", "''", "OR", "T2.role_name", "=", "``", "Manager", "''" ], "query_toks_no_value": [ "select", "t1", ".", "employee_id", "from", "employees", "as", "t1", "join", "roles", "as", "t2", "on", "t1", ".", "role_code", "=", "t2", ".", "role_code", "where", "t2", ".", "role_name", "=", "value", "or", "t2", ".", "role_name", "=", "value" ], "question": "Show the employee ids for all employees with role name \"Human Resource\" or \"Manager\".", "question_toks": [ "show", "employee", "id", "for", "all", "employee", "with", "role", "name", "'", "human", "resource", "'", "or", "'", "manager", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Human Resource\"", null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Manager\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "employee", "ids", "for", "all", "employees", "with", "role", "name", "``", "Human", "Resource", "''", "or", "``", "Manager", "''", "." ], "question_arg": [ [ "show" ], [ "employee", "id" ], [ "for" ], [ "all" ], [ "employee" ], [ "with" ], [ "role", "name" ], [ "'" ], [ "human" ], [ "resource" ], [ "'" ], [ "or" ], [ "'" ], [ "manager" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "employee", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "with", "IN" ], [ "role", "NN" ], [ "name", "NN" ], [ "'", "POS" ], [ "human", "JJ" ], [ "resource", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "manager", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Human Resource", "Manager" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(17) T(5) Filter(1) Filter(2) A(0) C(10) T(3) V(0) Filter(2) A(0) C(10) T(3) V(1)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Human Resource\" OR T2.role_name = \"Manager\"", "query_toks": [ "SELECT", "T1.employee_id", "FROM", "Employees", "AS", "T1", "JOIN", "ROLES", "AS", "T2", "ON", "T1.role_code", "=", "T2.role_code", "WHERE", "T2.role_name", "=", "``", "Human", "Resource", "''", "OR", "T2.role_name", "=", "``", "Manager", "''" ], "query_toks_no_value": [ "select", "t1", ".", "employee_id", "from", "employees", "as", "t1", "join", "roles", "as", "t2", "on", "t1", ".", "role_code", "=", "t2", ".", "role_code", "where", "t2", ".", "role_name", "=", "value", "or", "t2", ".", "role_name", "=", "value" ], "question": "What are the employee ids of the employees whose role name is \"Human Resource\" or \"Manager\"?", "question_toks": [ "what", "are", "employee", "id", "of", "employee", "whose", "role", "name", "is", "'", "human", "resource", "'", "or", "'", "manager", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Human Resource\"", null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Manager\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "are", "the", "employee", "ids", "of", "the", "employees", "whose", "role", "name", "is", "``", "Human", "Resource", "''", "or", "``", "Manager", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "employee", "id" ], [ "of" ], [ "employee" ], [ "whose" ], [ "role", "name" ], [ "is" ], [ "'" ], [ "human" ], [ "resource" ], [ "'" ], [ "or" ], [ "'" ], [ "manager" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "employee", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "whose", "WP$" ], [ "role", "NN" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "human", "JJ" ], [ "resource", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "manager", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Human Resource", "Manager" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(17) T(5) Filter(1) Filter(2) A(0) C(10) T(3) V(0) Filter(2) A(0) C(10) T(3) V(1)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT DISTINCT location_code FROM Document_locations", "query_toks": [ "SELECT", "DISTINCT", "location_code", "FROM", "Document_locations" ], "query_toks_no_value": [ "select", "distinct", "location_code", "from", "document_locations" ], "question": "What are the different location codes for documents?", "question_toks": [ "what", "are", "different", "location", "code", "for", "document", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "are", "the", "different", "location", "codes", "for", "documents", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "location", "code" ], [ "for" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "location", "NN" ], [ "code", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(6) T(6)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT DISTINCT location_code FROM Document_locations", "query_toks": [ "SELECT", "DISTINCT", "location_code", "FROM", "Document_locations" ], "query_toks_no_value": [ "select", "distinct", "location_code", "from", "document_locations" ], "question": "Give me all the distinct location codes for documents.", "question_toks": [ "give", "me", "all", "distinct", "location", "code", "for", "document", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Give", "me", "all", "the", "distinct", "location", "codes", "for", "documents", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "all" ], [ "distinct" ], [ "location", "code" ], [ "for" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "location", "NN" ], [ "code", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(6) T(6)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = \"Robin CV\"", "query_toks": [ "SELECT", "T3.location_name", "FROM", "All_documents", "AS", "T1", "JOIN", "Document_locations", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "JOIN", "Ref_locations", "AS", "T3", "ON", "T2.location_code", "=", "T3.location_code", "WHERE", "T1.document_name", "=", "``", "Robin", "CV", "''" ], "query_toks_no_value": [ "select", "t3", ".", "location_name", "from", "all_documents", "as", "t1", "join", "document_locations", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "join", "ref_locations", "as", "t3", "on", "t2", ".", "location_code", "=", "t3", ".", "location_code", "where", "t1", ".", "document_name", "=", "value" ], "question": "Show the location name for document \"Robin CV\".", "question_toks": [ "show", "location", "name", "for", "document", "'", "robin", "cv", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Robin CV\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "location", "name", "for", "document", "``", "Robin", "CV", "''", "." ], "question_arg": [ [ "show" ], [ "location", "name" ], [ "for" ], [ "document" ], [ "'" ], [ "robin" ], [ "cv" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "location", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "'", "''" ], [ "robin", "JJ" ], [ "cv", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Robin CV", "CV" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(6) Filter(2) A(0) C(14) T(4) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = \"Robin CV\"", "query_toks": [ "SELECT", "T3.location_name", "FROM", "All_documents", "AS", "T1", "JOIN", "Document_locations", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "JOIN", "Ref_locations", "AS", "T3", "ON", "T2.location_code", "=", "T3.location_code", "WHERE", "T1.document_name", "=", "``", "Robin", "CV", "''" ], "query_toks_no_value": [ "select", "t3", ".", "location_name", "from", "all_documents", "as", "t1", "join", "document_locations", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "join", "ref_locations", "as", "t3", "on", "t2", ".", "location_code", "=", "t3", ".", "location_code", "where", "t1", ".", "document_name", "=", "value" ], "question": "What is the location name of the document \"Robin CV\"?", "question_toks": [ "what", "is", "location", "name", "of", "document", "'", "robin", "cv", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Robin CV\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "is", "the", "location", "name", "of", "the", "document", "``", "Robin", "CV", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "location", "name" ], [ "of" ], [ "document" ], [ "'" ], [ "robin" ], [ "cv" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "location", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "'", "''" ], [ "robin", "JJ" ], [ "cv", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Robin CV", "CV" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(6) Filter(2) A(0) C(14) T(4) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code , date_in_location_from , date_in_locaton_to FROM Document_locations", "query_toks": [ "SELECT", "location_code", ",", "date_in_location_from", ",", "date_in_locaton_to", "FROM", "Document_locations" ], "query_toks_no_value": [ "select", "location_code", ",", "date_in_location_from", ",", "date_in_locaton_to", "from", "document_locations" ], "question": "Show the location code, the starting date and ending data in that location for all the documents.", "question_toks": [ "show", "location", "code", ",", "starting", "date", "and", "ending", "data", "in", "that", "location", "for", "all", "document", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "location", "code", ",", "the", "starting", "date", "and", "ending", "data", "in", "that", "location", "for", "all", "the", "documents", "." ], "question_arg": [ [ "show" ], [ "location", "code" ], [ "," ], [ "starting" ], [ "date" ], [ "and" ], [ "ending" ], [ "data" ], [ "in" ], [ "that" ], [ "location" ], [ "for" ], [ "all", "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "location", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "starting", "VBG" ], [ "date", "NN" ], [ "and", "CC" ], [ "ending", "VBG" ], [ "data", "NNS" ], [ "in", "IN" ], [ "that", "DT" ], [ "location", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(6) T(6) A(0) C(21) T(6) A(0) C(22) T(6)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code , date_in_location_from , date_in_locaton_to FROM Document_locations", "query_toks": [ "SELECT", "location_code", ",", "date_in_location_from", ",", "date_in_locaton_to", "FROM", "Document_locations" ], "query_toks_no_value": [ "select", "location_code", ",", "date_in_location_from", ",", "date_in_locaton_to", "from", "document_locations" ], "question": "What are each document's location code, and starting date and ending data in that location?", "question_toks": [ "what", "are", "each", "document", "'s", "location", "code", ",", "and", "starting", "date", "and", "ending", "data", "in", "that", "location", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "are", "each", "document", "'s", "location", "code", ",", "and", "starting", "date", "and", "ending", "data", "in", "that", "location", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "each" ], [ "document" ], [ "'s" ], [ "location", "code" ], [ "," ], [ "and" ], [ "starting" ], [ "date" ], [ "and" ], [ "ending" ], [ "data" ], [ "in" ], [ "that" ], [ "location" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "each", "DT" ], [ "document", "NN" ], [ "'s", "POS" ], [ "location", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "starting", "VBG" ], [ "date", "NN" ], [ "and", "CC" ], [ "ending", "VBG" ], [ "data", "NNS" ], [ "in", "IN" ], [ "that", "DT" ], [ "location", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(6) T(6) A(0) C(21) T(6) A(0) C(22) T(6)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T1.date_in_location_from , T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Robin CV\"", "query_toks": [ "SELECT", "T1.date_in_location_from", ",", "T1.date_in_locaton_to", "FROM", "Document_locations", "AS", "T1", "JOIN", "All_documents", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T2.document_name", "=", "``", "Robin", "CV", "''" ], "query_toks_no_value": [ "select", "t1", ".", "date_in_location_from", ",", "t1", ".", "date_in_locaton_to", "from", "document_locations", "as", "t1", "join", "all_documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "document_name", "=", "value" ], "question": "What is \"the date in location from\" and \"the date in location to\" for the document with name \"Robin CV\"?", "question_toks": [ "what", "is", "'", "date", "in", "location", "from", "'", "and", "'", "date", "in", "location", "to", "'", "for", "document", "with", "name", "'", "robin", "cv", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "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": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Robin CV\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "is", "``", "the", "date", "in", "location", "from", "''", "and", "``", "the", "date", "in", "location", "to", "''", "for", "the", "document", "with", "name", "``", "Robin", "CV", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "'" ], [ "date", "in", "location", "from" ], [ "'" ], [ "and" ], [ "'" ], [ "date" ], [ "in" ], [ "location" ], [ "to" ], [ "'" ], [ "for" ], [ "document" ], [ "with" ], [ "name" ], [ "'" ], [ "robin" ], [ "cv" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "date", "NN" ], [ "in", "IN" ], [ "location", "NN" ], [ "from", "IN" ], [ "'", "POS" ], [ "and", "CC" ], [ "'", "POS" ], [ "date", "NN" ], [ "in", "IN" ], [ "location", "NN" ], [ "to", "TO" ], [ "'", "''" ], [ "for", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "robin", "JJ" ], [ "cv", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "the date in location to", "CV", "the date in location from", "Robin CV" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(21) T(6) A(0) C(22) T(6) Filter(2) A(0) C(14) T(4) V(3)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T1.date_in_location_from , T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Robin CV\"", "query_toks": [ "SELECT", "T1.date_in_location_from", ",", "T1.date_in_locaton_to", "FROM", "Document_locations", "AS", "T1", "JOIN", "All_documents", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T2.document_name", "=", "``", "Robin", "CV", "''" ], "query_toks_no_value": [ "select", "t1", ".", "date_in_location_from", ",", "t1", ".", "date_in_locaton_to", "from", "document_locations", "as", "t1", "join", "all_documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "document_name", "=", "value" ], "question": "Find the starting date and ending data in location for the document named \"Robin CV\".", "question_toks": [ "find", "starting", "date", "and", "ending", "data", "in", "location", "for", "document", "named", "'", "robin", "cv", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "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": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Robin CV\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Find", "the", "starting", "date", "and", "ending", "data", "in", "location", "for", "the", "document", "named", "``", "Robin", "CV", "''", "." ], "question_arg": [ [ "find" ], [ "starting" ], [ "date" ], [ "and" ], [ "ending" ], [ "data" ], [ "in" ], [ "location" ], [ "for" ], [ "document" ], [ "named" ], [ "'" ], [ "robin" ], [ "cv" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "starting", "JJ" ], [ "date", "NN" ], [ "and", "CC" ], [ "ending", "VBG" ], [ "data", "NNS" ], [ "in", "IN" ], [ "location", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "robin", "NN" ], [ "cv", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Robin CV", "CV" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(21) T(6) A(0) C(22) T(6) Filter(2) A(0) C(14) T(4) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code , count(*) FROM Document_locations GROUP BY location_code", "query_toks": [ "SELECT", "location_code", ",", "count", "(", "*", ")", "FROM", "Document_locations", "GROUP", "BY", "location_code" ], "query_toks_no_value": [ "select", "location_code", ",", "count", "(", "*", ")", "from", "document_locations", "group", "by", "location_code" ], "question": "Show the location codes and the number of documents in each location.", "question_toks": [ "show", "location", "code", "and", "number", "of", "document", "in", "each", "location", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "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": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "location", "codes", "and", "the", "number", "of", "documents", "in", "each", "location", "." ], "question_arg": [ [ "show" ], [ "location", "code" ], [ "and" ], [ "number" ], [ "of" ], [ "document" ], [ "in" ], [ "each" ], [ "location" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "location", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "location", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(6) A(3) C(0) T(6)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code , count(*) FROM Document_locations GROUP BY location_code", "query_toks": [ "SELECT", "location_code", ",", "count", "(", "*", ")", "FROM", "Document_locations", "GROUP", "BY", "location_code" ], "query_toks_no_value": [ "select", "location_code", ",", "count", "(", "*", ")", "from", "document_locations", "group", "by", "location_code" ], "question": "What is the code of each location and the number of documents in that location?", "question_toks": [ "what", "is", "code", "of", "each", "location", "and", "number", "of", "document", "in", "that", "location", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "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": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "is", "the", "code", "of", "each", "location", "and", "the", "number", "of", "documents", "in", "that", "location", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "code" ], [ "of" ], [ "each" ], [ "location" ], [ "and" ], [ "number" ], [ "of" ], [ "document" ], [ "in" ], [ "that" ], [ "location" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "code", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "location", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "in", "IN" ], [ "that", "DT" ], [ "location", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(6) A(3) C(0) T(6)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "location_code", "FROM", "Document_locations", "GROUP", "BY", "location_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "location_code", "from", "document_locations", "group", "by", "location_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the location code with the most documents?", "question_toks": [ "what", "is", "location", "code", "with", "most", "document", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "is", "the", "location", "code", "with", "the", "most", "documents", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "location", "code" ], [ "with" ], [ "most" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "location", "JJ" ], [ "code", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "document", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "location_code", "FROM", "Document_locations", "GROUP", "BY", "location_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "location_code", "from", "document_locations", "group", "by", "location_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the code of the location with the largest number of documents.", "question_toks": [ "find", "code", "of", "location", "with", "largest", "number", "of", "document", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Find", "the", "code", "of", "the", "location", "with", "the", "largest", "number", "of", "documents", "." ], "question_arg": [ [ "find" ], [ "code" ], [ "of" ], [ "location" ], [ "with" ], [ "largest" ], [ "number" ], [ "of" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "code", "NN" ], [ "of", "IN" ], [ "location", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*) >= 3", "query_toks": [ "SELECT", "location_code", "FROM", "Document_locations", "GROUP", "BY", "location_code", "HAVING", "count", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "location_code", "from", "document_locations", "group", "by", "location_code", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the location codes with at least 3 documents.", "question_toks": [ "show", "location", "code", "with", "at", "least", "3", "document", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "location", "codes", "with", "at", "least", "3", "documents", "." ], "question_arg": [ [ "show" ], [ "location", "code" ], [ "with" ], [ "at" ], [ "least" ], [ "3" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "location", "NN" ], [ "code", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "3", "CD" ], [ "document", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(6) Filter(7) A(3) C(0) T(6) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*) >= 3", "query_toks": [ "SELECT", "location_code", "FROM", "Document_locations", "GROUP", "BY", "location_code", "HAVING", "count", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "location_code", "from", "document_locations", "group", "by", "location_code", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the codes of the locations with at least three documents?", "question_toks": [ "what", "are", "code", "of", "location", "with", "at", "least", "three", "document", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "are", "the", "codes", "of", "the", "locations", "with", "at", "least", "three", "documents", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "code" ], [ "of" ], [ "location" ], [ "with" ], [ "at" ], [ "least" ], [ "three" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "code", "NN" ], [ "of", "IN" ], [ "location", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "three", "CD" ], [ "document", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(6) Filter(7) A(3) C(0) T(6) V(0)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.location_name , T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T2.location_name", ",", "T1.location_code", "FROM", "Document_locations", "AS", "T1", "JOIN", "Ref_locations", "AS", "T2", "ON", "T1.location_code", "=", "T2.location_code", "GROUP", "BY", "T1.location_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "location_name", ",", "t1", ".", "location_code", "from", "document_locations", "as", "t1", "join", "ref_locations", "as", "t2", "on", "t1", ".", "location_code", "=", "t2", ".", "location_code", "group", "by", "t1", ".", "location_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Show the location name and code with the least documents.", "question_toks": [ "show", "location", "name", "and", "code", "with", "least", "document", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "location", "name", "and", "code", "with", "the", "least", "documents", "." ], "question_arg": [ [ "show" ], [ "location", "name" ], [ "and" ], [ "code" ], [ "with" ], [ "least" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "location", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "code", "NN" ], [ "with", "IN" ], [ "least", "JJS" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(7) T(2) A(0) C(6) T(6) Sup(1) A(3) C(0) T(6)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.location_name , T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T2.location_name", ",", "T1.location_code", "FROM", "Document_locations", "AS", "T1", "JOIN", "Ref_locations", "AS", "T2", "ON", "T1.location_code", "=", "T2.location_code", "GROUP", "BY", "T1.location_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "location_name", ",", "t1", ".", "location_code", "from", "document_locations", "as", "t1", "join", "ref_locations", "as", "t2", "on", "t1", ".", "location_code", "=", "t2", ".", "location_code", "group", "by", "t1", ".", "location_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "What are the name and code of the location with the smallest number of documents?", "question_toks": [ "what", "are", "name", "and", "code", "of", "location", "with", "smallest", "number", "of", "document", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "code", "of", "the", "location", "with", "the", "smallest", "number", "of", "documents", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "code" ], [ "of" ], [ "location" ], [ "with" ], [ "smallest" ], [ "number" ], [ "of" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "code", "NN" ], [ "of", "IN" ], [ "location", "NN" ], [ "with", "IN" ], [ "smallest", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(7) T(2) A(0) C(6) T(6) Sup(1) A(3) C(0) T(6)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.employee_name , T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id;", "query_toks": [ "SELECT", "T2.employee_name", ",", "T3.employee_name", "FROM", "Documents_to_be_destroyed", "AS", "T1", "JOIN", "Employees", "AS", "T2", "ON", "T1.Destruction_Authorised_by_Employee_ID", "=", "T2.employee_id", "JOIN", "Employees", "AS", "T3", "ON", "T1.Destroyed_by_Employee_ID", "=", "T3.employee_id", ";" ], "query_toks_no_value": [ "select", "t2", ".", "employee_name", ",", "t3", ".", "employee_name", "from", "documents_to_be_destroyed", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "destruction_authorised_by_employee_id", "=", "t2", ".", "employee_id", "join", "employees", "as", "t3", "on", "t1", ".", "destroyed_by_employee_id", "=", "t3", ".", "employee_id" ], "question": "What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents?", "question_toks": [ "what", "are", "name", "of", "employee", "who", "authorised", "destruction", "and", "employee", "who", "destroyed", "corresponding", "document", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "employees", "who", "authorised", "the", "destruction", "and", "the", "employees", "who", "destroyed", "the", "corresponding", "documents", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "employee" ], [ "who" ], [ "authorised" ], [ "destruction" ], [ "and" ], [ "employee" ], [ "who" ], [ "destroyed" ], [ "corresponding" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "authorised", "VBD" ], [ "destruction", "NN" ], [ "and", "CC" ], [ "employee", "NN" ], [ "who", "WP" ], [ "destroyed", "VBD" ], [ "corresponding", "VBG" ], [ "document", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(18) T(5) A(0) C(18) T(5) Filter(18) A(0) C(17) T(5) Root(5) Sel(0) N(0) A(0) C(23) T(7)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.employee_name , T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id;", "query_toks": [ "SELECT", "T2.employee_name", ",", "T3.employee_name", "FROM", "Documents_to_be_destroyed", "AS", "T1", "JOIN", "Employees", "AS", "T2", "ON", "T1.Destruction_Authorised_by_Employee_ID", "=", "T2.employee_id", "JOIN", "Employees", "AS", "T3", "ON", "T1.Destroyed_by_Employee_ID", "=", "T3.employee_id", ";" ], "query_toks_no_value": [ "select", "t2", ".", "employee_name", ",", "t3", ".", "employee_name", "from", "documents_to_be_destroyed", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "destruction_authorised_by_employee_id", "=", "t2", ".", "employee_id", "join", "employees", "as", "t3", "on", "t1", ".", "destroyed_by_employee_id", "=", "t3", ".", "employee_id" ], "question": "List the names of the employees who authorized the destruction of documents and the employees who destroyed the corresponding documents.", "question_toks": [ "list", "name", "of", "employee", "who", "authorized", "destruction", "of", "document", "and", "employee", "who", "destroyed", "corresponding", "document", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "List", "the", "names", "of", "the", "employees", "who", "authorized", "the", "destruction", "of", "documents", "and", "the", "employees", "who", "destroyed", "the", "corresponding", "documents", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "employee" ], [ "who" ], [ "authorized" ], [ "destruction" ], [ "of" ], [ "document" ], [ "and" ], [ "employee" ], [ "who" ], [ "destroyed" ], [ "corresponding" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "authorized", "VBD" ], [ "destruction", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "and", "CC" ], [ "employee", "NN" ], [ "who", "WP" ], [ "destroyed", "VBD" ], [ "corresponding", "VBG" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(18) T(5) A(0) C(18) T(5) Filter(18) A(0) C(17) T(5) Root(5) Sel(0) N(0) A(0) C(23) T(7)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT Destruction_Authorised_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID", "query_toks": [ "SELECT", "Destruction_Authorised_by_Employee_ID", ",", "count", "(", "*", ")", "FROM", "Documents_to_be_destroyed", "GROUP", "BY", "Destruction_Authorised_by_Employee_ID" ], "query_toks_no_value": [ "select", "destruction_authorised_by_employee_id", ",", "count", "(", "*", ")", "from", "documents_to_be_destroyed", "group", "by", "destruction_authorised_by_employee_id" ], "question": "Show the id of each employee and the number of document destruction authorised by that employee.", "question_toks": [ "show", "id", "of", "each", "employee", "and", "number", "of", "document", "destruction", "authorised", "by", "that", "employee", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "id", "of", "each", "employee", "and", "the", "number", "of", "document", "destruction", "authorised", "by", "that", "employee", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "of" ], [ "each" ], [ "employee" ], [ "and" ], [ "number" ], [ "of" ], [ "document" ], [ "destruction" ], [ "authorised" ], [ "by" ], [ "that" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "employee", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "JJ" ], [ "destruction", "NN" ], [ "authorised", "VBN" ], [ "by", "IN" ], [ "that", "DT" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(23) T(7) A(3) C(0) T(7)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT Destruction_Authorised_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID", "query_toks": [ "SELECT", "Destruction_Authorised_by_Employee_ID", ",", "count", "(", "*", ")", "FROM", "Documents_to_be_destroyed", "GROUP", "BY", "Destruction_Authorised_by_Employee_ID" ], "query_toks_no_value": [ "select", "destruction_authorised_by_employee_id", ",", "count", "(", "*", ")", "from", "documents_to_be_destroyed", "group", "by", "destruction_authorised_by_employee_id" ], "question": "What are the id of each employee and the number of document destruction authorised by that employee?", "question_toks": [ "what", "are", "id", "of", "each", "employee", "and", "number", "of", "document", "destruction", "authorised", "by", "that", "employee", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "are", "the", "id", "of", "each", "employee", "and", "the", "number", "of", "document", "destruction", "authorised", "by", "that", "employee", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "each" ], [ "employee" ], [ "and" ], [ "number" ], [ "of" ], [ "document" ], [ "destruction" ], [ "authorised" ], [ "by" ], [ "that" ], [ "employee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "each", "DT" ], [ "employee", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "JJ" ], [ "destruction", "NN" ], [ "authorised", "VBN" ], [ "by", "IN" ], [ "that", "DT" ], [ "employee", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(23) T(7) A(3) C(0) T(7)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT Destroyed_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID", "query_toks": [ "SELECT", "Destroyed_by_Employee_ID", ",", "count", "(", "*", ")", "FROM", "Documents_to_be_destroyed", "GROUP", "BY", "Destroyed_by_Employee_ID" ], "query_toks_no_value": [ "select", "destroyed_by_employee_id", ",", "count", "(", "*", ")", "from", "documents_to_be_destroyed", "group", "by", "destroyed_by_employee_id" ], "question": "Show the employee ids and the number of documents destroyed by each employee.", "question_toks": [ "show", "employee", "id", "and", "number", "of", "document", "destroyed", "by", "each", "employee", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 30, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "employee", "ids", "and", "the", "number", "of", "documents", "destroyed", "by", "each", "employee", "." ], "question_arg": [ [ "show" ], [ "employee", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "document" ], [ "destroyed" ], [ "by" ], [ "each" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "employee", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "JJ" ], [ "destroyed", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(24) T(7) A(3) C(0) T(7)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT Destroyed_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID", "query_toks": [ "SELECT", "Destroyed_by_Employee_ID", ",", "count", "(", "*", ")", "FROM", "Documents_to_be_destroyed", "GROUP", "BY", "Destroyed_by_Employee_ID" ], "query_toks_no_value": [ "select", "destroyed_by_employee_id", ",", "count", "(", "*", ")", "from", "documents_to_be_destroyed", "group", "by", "destroyed_by_employee_id" ], "question": "What are the id of each employee and the number of document destroyed by that employee?", "question_toks": [ "what", "are", "id", "of", "each", "employee", "and", "number", "of", "document", "destroyed", "by", "that", "employee", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 30, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "are", "the", "id", "of", "each", "employee", "and", "the", "number", "of", "document", "destroyed", "by", "that", "employee", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "each" ], [ "employee" ], [ "and" ], [ "number" ], [ "of" ], [ "document" ], [ "destroyed" ], [ "by" ], [ "that" ], [ "employee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "each", "DT" ], [ "employee", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "JJ" ], [ "destroyed", "VBN" ], [ "by", "IN" ], [ "that", "DT" ], [ "employee", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(24) T(7) A(3) C(0) T(7)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "employee_id", "FROM", "Employees", "EXCEPT", "SELECT", "Destruction_Authorised_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "employee_id", "from", "employees", "except", "select", "destruction_authorised_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "Show the ids of the employees who don't authorize destruction for any document.", "question_toks": [ "show", "id", "of", "employee", "who", "do", "n't", "authorize", "destruction", "for", "any", "document", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "ids", "of", "the", "employees", "who", "do", "n't", "authorize", "destruction", "for", "any", "document", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "of" ], [ "employee" ], [ "who" ], [ "do" ], [ "n't" ], [ "authorize" ], [ "destruction" ], [ "for" ], [ "any" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "authorize", "VB" ], [ "destruction", "NN" ], [ "for", "IN" ], [ "any", "DT" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(17) T(5) Root(5) Sel(0) N(0) A(0) C(23) T(7)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "employee_id", "FROM", "Employees", "EXCEPT", "SELECT", "Destruction_Authorised_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "employee_id", "from", "employees", "except", "select", "destruction_authorised_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "Which employees do not authorize destruction for any document? Give me their employee ids.", "question_toks": [ "which", "employee", "do", "not", "authorize", "destruction", "for", "any", "document", "?", "give", "me", "their", "employee", "id", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Which", "employees", "do", "not", "authorize", "destruction", "for", "any", "document", "?", "Give", "me", "their", "employee", "ids", "." ], "question_arg": [ [ "which" ], [ "employee" ], [ "do" ], [ "not" ], [ "authorize" ], [ "destruction" ], [ "for" ], [ "any" ], [ "document" ], [ "?" ], [ "give" ], [ "me" ], [ "their" ], [ "employee", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "employee", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "authorize", "VB" ], [ "destruction", "NN" ], [ "for", "IN" ], [ "any", "DT" ], [ "document", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "employee", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(17) T(5) Root(5) Sel(0) N(0) A(0) C(23) T(7)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "DISTINCT", "Destruction_Authorised_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "distinct", "destruction_authorised_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "Show the ids of all employees who have authorized destruction.", "question_toks": [ "show", "id", "of", "all", "employee", "who", "have", "authorized", "destruction", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "ids", "of", "all", "employees", "who", "have", "authorized", "destruction", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "of" ], [ "all" ], [ "employee" ], [ "who" ], [ "have" ], [ "authorized" ], [ "destruction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "authorized", "VBN" ], [ "destruction", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(23) T(7)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "DISTINCT", "Destruction_Authorised_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "distinct", "destruction_authorised_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "What are the ids of all the employees who authorize document destruction?", "question_toks": [ "what", "are", "id", "of", "all", "employee", "who", "authorize", "document", "destruction", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "the", "employees", "who", "authorize", "document", "destruction", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "employee" ], [ "who" ], [ "authorize" ], [ "document" ], [ "destruction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "authorize", "VBP" ], [ "document", "NN" ], [ "destruction", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(23) T(7)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "DISTINCT", "Destroyed_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "distinct", "destroyed_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "Show the ids of all employees who have destroyed a document.", "question_toks": [ "show", "id", "of", "all", "employee", "who", "have", "destroyed", "a", "document", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "ids", "of", "all", "employees", "who", "have", "destroyed", "a", "document", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "of" ], [ "all" ], [ "employee" ], [ "who" ], [ "have" ], [ "destroyed" ], [ "a" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "destroyed", "VBN" ], [ "a", "DT" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(24) T(7)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "DISTINCT", "Destroyed_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "distinct", "destroyed_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "What are the ids of all the employees who have destroyed documents?", "question_toks": [ "what", "are", "id", "of", "all", "employee", "who", "have", "destroyed", "document", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "the", "employees", "who", "have", "destroyed", "documents", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "employee" ], [ "who" ], [ "have" ], [ "destroyed" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "destroyed", "VBN" ], [ "document", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(24) T(7)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "employee_id", "FROM", "Employees", "EXCEPT", "SELECT", "Destroyed_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "employee_id", "from", "employees", "except", "select", "destroyed_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "Show the ids of all employees who don't destroy any document.", "question_toks": [ "show", "id", "of", "all", "employee", "who", "do", "n't", "destroy", "any", "document", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "ids", "of", "all", "employees", "who", "do", "n't", "destroy", "any", "document", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "of" ], [ "all" ], [ "employee" ], [ "who" ], [ "do" ], [ "n't" ], [ "destroy" ], [ "any" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "destroy", "VB" ], [ "any", "DT" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(17) T(5) Root(5) Sel(0) N(0) A(0) C(24) T(7)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "employee_id", "FROM", "Employees", "EXCEPT", "SELECT", "Destroyed_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "employee_id", "from", "employees", "except", "select", "destroyed_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "Which employees do not destroy any document? Find their employee ids.", "question_toks": [ "which", "employee", "do", "not", "destroy", "any", "document", "?", "find", "their", "employee", "id", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Which", "employees", "do", "not", "destroy", "any", "document", "?", "Find", "their", "employee", "ids", "." ], "question_arg": [ [ "which" ], [ "employee" ], [ "do" ], [ "not" ], [ "destroy" ], [ "any" ], [ "document" ], [ "?" ], [ "find" ], [ "their" ], [ "employee", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "employee", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "destroy", "VB" ], [ "any", "DT" ], [ "document", "NN" ], [ "?", "." ], [ "find", "VB" ], [ "their", "PRP$" ], [ "employee", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(17) T(5) Root(5) Sel(0) N(0) A(0) C(24) T(7)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "Destroyed_by_Employee_ID", "FROM", "Documents_to_be_destroyed", "UNION", "SELECT", "Destruction_Authorised_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "destroyed_by_employee_id", "from", "documents_to_be_destroyed", "union", "select", "destruction_authorised_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "Show the ids of all employees who have either destroyed a document or made an authorization to do this.", "question_toks": [ "show", "id", "of", "all", "employee", "who", "have", "either", "destroyed", "a", "document", "or", "made", "an", "authorization", "to", "do", "this", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Show", "the", "ids", "of", "all", "employees", "who", "have", "either", "destroyed", "a", "document", "or", "made", "an", "authorization", "to", "do", "this", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "of" ], [ "all" ], [ "employee" ], [ "who" ], [ "have" ], [ "either" ], [ "destroyed" ], [ "a" ], [ "document" ], [ "or" ], [ "made" ], [ "an" ], [ "authorization" ], [ "to" ], [ "do" ], [ "this" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "either", "DT" ], [ "destroyed", "VBN" ], [ "a", "DT" ], [ "document", "NN" ], [ "or", "CC" ], [ "made", "VBD" ], [ "an", "DT" ], [ "authorization", "NN" ], [ "to", "TO" ], [ "do", "VB" ], [ "this", "DT" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(1) Root(5) Sel(0) N(0) A(0) C(24) T(7) Root(5) Sel(0) N(0) A(0) C(23) T(7)" }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "Destroyed_by_Employee_ID", "FROM", "Documents_to_be_destroyed", "UNION", "SELECT", "Destruction_Authorised_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "destroyed_by_employee_id", "from", "documents_to_be_destroyed", "union", "select", "destruction_authorised_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "Which employees have either destroyed a document or made an authorization to do so? Return their employee ids.", "question_toks": [ "which", "employee", "have", "either", "destroyed", "a", "document", "or", "made", "an", "authorization", "to", "do", "so", "?", "return", "their", "employee", "id", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document type code", "document name", "document description", "other details", "employee id", "role code", "employee name", "gender mfu", "date of birth", "other details", "document id", "location code", "date in location from", "date in locaton to", "document id", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date", "other details" ], "table_names": [ "reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed" ], "col_set": [ "*", "document type code", "document type name", "document type description", "calendar date", "day number", "location code", "location name", "location description", "role code", "role name", "role description", "document id", "date stored", "document name", "document description", "other details", "employee id", "employee name", "gender mfu", "date of birth", "date in location from", "date in locaton to", "destruction authorised by employee id", "destroyed by employee id", "planned destruction date", "actual destruction date" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "13": 4, "4": 4, "14": 1, "1": 1, "19": 9, "9": 9, "24": 24, "12": 12, "27": 4, "26": 4, "25": 6, "6": 6, "28": 28, "32": 4, "31": 4, "29": 18, "18": 18, "30": 18 }, "origin_question_toks": [ "Which", "employees", "have", "either", "destroyed", "a", "document", "or", "made", "an", "authorization", "to", "do", "so", "?", "Return", "their", "employee", "ids", "." ], "question_arg": [ [ "which" ], [ "employee" ], [ "have" ], [ "either" ], [ "destroyed" ], [ "a" ], [ "document" ], [ "or" ], [ "made" ], [ "an" ], [ "authorization" ], [ "to" ], [ "do" ], [ "so" ], [ "?" ], [ "return" ], [ "their" ], [ "employee", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "employee", "NN" ], [ "have", "VBP" ], [ "either", "DT" ], [ "destroyed", "VBN" ], [ "a", "DT" ], [ "document", "NN" ], [ "or", "CC" ], [ "made", "VBD" ], [ "an", "DT" ], [ "authorization", "NN" ], [ "to", "TO" ], [ "do", "VB" ], [ "so", "RB" ], [ "?", "." ], [ "return", "VB" ], [ "their", "PRP$" ], [ "employee", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(1) Root(5) Sel(0) N(0) A(0) C(24) T(7) Root(5) Sel(0) N(0) A(0) C(23) T(7)" }, { "db_id": "club_1", "query": "SELECT count(*) FROM club", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club" ], "question": "How many clubs are there?", "question_toks": [ "how", "many", "club", "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "clubs", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "club" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "club", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "club_1", "query": "SELECT count(*) FROM club", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club" ], "question": "Count the total number of clubs.", "question_toks": [ "count", "total", "number", "of", "club", "." ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Count", "the", "total", "number", "of", "clubs", "." ], "question_arg": [ [ "count" ], [ "total" ], [ "number" ], [ "of" ], [ "club" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "club_1", "query": "SELECT clubname FROM club", "query_toks": [ "SELECT", "clubname", "FROM", "club" ], "query_toks_no_value": [ "select", "clubname", "from", "club" ], "question": "What are the names of all clubs?", "question_toks": [ "what", "are", "name", "of", "all", "club", "?" ], "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": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "clubs", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "club" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "club", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(10) T(1)" }, { "db_id": "club_1", "query": "SELECT clubname FROM club", "query_toks": [ "SELECT", "clubname", "FROM", "club" ], "query_toks_no_value": [ "select", "clubname", "from", "club" ], "question": "Give me the name of each club.", "question_toks": [ "give", "me", "name", "of", "each", "club", "." ], "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": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Give", "me", "the", "name", "of", "each", "club", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "name" ], [ "of" ], [ "each" ], [ "club" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "club", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(10) T(1)" }, { "db_id": "club_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", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "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(0)" }, { "db_id": "club_1", "query": "SELECT count(*) FROM student", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "student" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student" ], "question": "Count the total number of students.", "question_toks": [ "count", "total", "number", "of", "student", "." ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Count", "the", "total", "number", "of", "students", "." ], "question_arg": [ [ "count" ], [ "total" ], [ "number" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "club_1", "query": "SELECT DISTINCT fname FROM student", "query_toks": [ "SELECT", "DISTINCT", "fname", "FROM", "student" ], "query_toks_no_value": [ "select", "distinct", "fname", "from", "student" ], "question": "What are the first names of all the students?", "question_toks": [ "what", "are", "first", "name", "of", "all", "student", "?" ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "all", "the", "students", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "of" ], [ "all" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(3) T(0)" }, { "db_id": "club_1", "query": "SELECT DISTINCT fname FROM student", "query_toks": [ "SELECT", "DISTINCT", "fname", "FROM", "student" ], "query_toks_no_value": [ "select", "distinct", "fname", "from", "student" ], "question": "Find each student's first name.", "question_toks": [ "find", "each", "student", "'s", "first", "name", "." ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Find", "each", "student", "'s", "first", "name", "." ], "question_arg": [ [ "find" ], [ "each" ], [ "student" ], [ "'s" ], [ "first", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "each", "DT" ], [ "student", "NN" ], [ "'s", "POS" ], [ "first", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(3) T(0)" }, { "db_id": "club_1", "query": "SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\"", "query_toks": [ "SELECT", "t3.lname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Bootup", "Baltimore", "''" ], "query_toks_no_value": [ "select", "t3", ".", "lname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value" ], "question": "Find the last names of the members of the club \"Bootup Baltimore\".", "question_toks": [ "find", "last", "name", "of", "member", "of", "club", "'", "bootup", "baltimore", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Bootup Baltimore\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "last", "names", "of", "the", "members", "of", "the", "club", "``", "Bootup", "Baltimore", "''", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "of" ], [ "member", "of", "club" ], [ "'" ], [ "bootup" ], [ "baltimore" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "'", "''" ], [ "bootup", "NN" ], [ "baltimore", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Bootup Baltimore" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\"", "query_toks": [ "SELECT", "t3.lname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Bootup", "Baltimore", "''" ], "query_toks_no_value": [ "select", "t3", ".", "lname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value" ], "question": "Who are the members of the club named \"Bootup Baltimore\"? Give me their last names.", "question_toks": [ "who", "are", "member", "of", "club", "named", "'", "bootup", "baltimore", "'", "?", "give", "me", "their", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Bootup Baltimore\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Who", "are", "the", "members", "of", "the", "club", "named", "``", "Bootup", "Baltimore", "''", "?", "Give", "me", "their", "last", "names", "." ], "question_arg": [ [ "who" ], [ "are" ], [ "member", "of", "club" ], [ "named" ], [ "'" ], [ "bootup" ], [ "baltimore" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "their" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "member", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "bootup", "NN" ], [ "baltimore", "NN" ], [ "'", "''" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Bootup Baltimore" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\"", "query_toks": [ "SELECT", "t3.lname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Hopkins", "Student", "Enterprises", "''" ], "query_toks_no_value": [ "select", "t3", ".", "lname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value" ], "question": "Who are the members of the club named \"Hopkins Student Enterprises\"? Show the last name.", "question_toks": [ "who", "are", "member", "of", "club", "named", "'", "hopkins", "student", "enterprise", "'", "?", "show", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Hopkins Student Enterprises\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Who", "are", "the", "members", "of", "the", "club", "named", "``", "Hopkins", "Student", "Enterprises", "''", "?", "Show", "the", "last", "name", "." ], "question_arg": [ [ "who" ], [ "are" ], [ "member", "of", "club" ], [ "named" ], [ "'" ], [ "hopkins" ], [ "student" ], [ "enterprise" ], [ "'" ], [ "?" ], [ "show" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "member", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "hopkins", "NNS" ], [ "student", "VBP" ], [ "enterprise", "NN" ], [ "'", "''" ], [ "?", "." ], [ "show", "NN" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Hopkins Student Enterprises" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\"", "query_toks": [ "SELECT", "t3.lname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Hopkins", "Student", "Enterprises", "''" ], "query_toks_no_value": [ "select", "t3", ".", "lname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value" ], "question": "Return the last name for the members of the club named \"Hopkins Student Enterprises\".", "question_toks": [ "return", "last", "name", "for", "member", "of", "club", "named", "'", "hopkins", "student", "enterprise", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Hopkins Student Enterprises\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Return", "the", "last", "name", "for", "the", "members", "of", "the", "club", "named", "``", "Hopkins", "Student", "Enterprises", "''", "." ], "question_arg": [ [ "return" ], [ "last", "name" ], [ "for" ], [ "member", "of", "club" ], [ "named" ], [ "'" ], [ "hopkins" ], [ "student" ], [ "enterprise" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "member", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "hopkins", "NNS" ], [ "student", "VBP" ], [ "enterprise", "NN" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "Hopkins Student Enterprises" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Tennis Club\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Tennis", "Club", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value" ], "question": "How many members does the club \"Tennis Club\" has?", "question_toks": [ "how", "many", "member", "doe", "club", "'", "tennis", "club", "'", "ha", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, 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, 10, false ], null ], "\"Tennis Club\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "members", "does", "the", "club", "``", "Tennis", "Club", "''", "has", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "member" ], [ "doe" ], [ "club" ], [ "'" ], [ "tennis" ], [ "club" ], [ "'" ], [ "ha" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "member", "NN" ], [ "doe", "NN" ], [ "club", "NN" ], [ "'", "''" ], [ "tennis", "NN" ], [ "club", "NN" ], [ "'", "''" ], [ "ha", "NN" ], [ "?", "." ] ], "values": [ "Tennis Club" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Tennis Club\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Tennis", "Club", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value" ], "question": "Count the members of the club \"Tennis Club\".", "question_toks": [ "count", "member", "of", "club", "'", "tennis", "club", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, 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, 10, false ], null ], "\"Tennis Club\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Count", "the", "members", "of", "the", "club", "``", "Tennis", "Club", "''", "." ], "question_arg": [ [ "count" ], [ "member", "of", "club" ], [ "'" ], [ "tennis" ], [ "club" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "member", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "'", "''" ], [ "tennis", "NN" ], [ "club", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Tennis Club" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Pen and Paper Gaming\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Pen", "and", "Paper", "Gaming", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value" ], "question": "Find the number of members of club \"Pen and Paper Gaming\".", "question_toks": [ "find", "number", "of", "member", "of", "club", "'", "pen", "and", "paper", "gaming", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, 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, 10, false ], null ], "\"Pen and Paper Gaming\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "members", "of", "club", "``", "Pen", "and", "Paper", "Gaming", "''", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "member", "of", "club" ], [ "'" ], [ "pen" ], [ "and" ], [ "paper" ], [ "gaming" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "'", "POS" ], [ "pen", "NN" ], [ "and", "CC" ], [ "paper", "NN" ], [ "gaming", "NN" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "Pen and Paper Gaming", "Andy" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Pen and Paper Gaming\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Pen", "and", "Paper", "Gaming", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value" ], "question": "How many people have membership in the club \"Pen and Paper Gaming\"?", "question_toks": [ "how", "many", "people", "have", "membership", "in", "club", "'", "pen", "and", "paper", "gaming", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, 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, 10, false ], null ], "\"Pen and Paper Gaming\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "people", "have", "membership", "in", "the", "club", "``", "Pen", "and", "Paper", "Gaming", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "people" ], [ "have" ], [ "membership" ], [ "in" ], [ "club" ], [ "'" ], [ "pen" ], [ "and" ], [ "paper" ], [ "gaming" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "people", "NNS" ], [ "have", "VBP" ], [ "membership", "NN" ], [ "in", "IN" ], [ "club", "NN" ], [ "'", "POS" ], [ "pen", "NN" ], [ "and", "CC" ], [ "paper", "NN" ], [ "gaming", "VBG" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Pen and Paper Gaming", "Andy" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Linda\" AND t3.lname = \"Smith\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.fname", "=", "``", "Linda", "''", "AND", "t3.lname", "=", "``", "Smith", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "and", "t3", ".", "lname", "=", "value" ], "question": "How many clubs does \"Linda Smith\" belong to?", "question_toks": [ "how", "many", "club", "doe", "'", "linda", "smith", "'", "belong", "to", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, 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, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Linda\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Smith\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "clubs", "does", "``", "Linda", "Smith", "''", "belong", "to", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "club" ], [ "doe" ], [ "'" ], [ "linda" ], [ "smith" ], [ "'" ], [ "belong" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "club", "VBP" ], [ "doe", "NN" ], [ "'", "''" ], [ "linda", "JJ" ], [ "smith", "NN" ], [ "'", "''" ], [ "belong", "NN" ], [ "to", "TO" ], [ "?", "." ] ], "values": [ "Linda", "Smith", "Linda Smith" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(3) T(0) V(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "club_1", "query": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Linda\" AND t3.lname = \"Smith\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.fname", "=", "``", "Linda", "''", "AND", "t3.lname", "=", "``", "Smith", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "and", "t3", ".", "lname", "=", "value" ], "question": "How many clubs does \"Linda Smith\" have membership for?", "question_toks": [ "how", "many", "club", "doe", "'", "linda", "smith", "'", "have", "membership", "for", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, 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, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Linda\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Smith\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "clubs", "does", "``", "Linda", "Smith", "''", "have", "membership", "for", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "club" ], [ "doe" ], [ "'" ], [ "linda" ], [ "smith" ], [ "'" ], [ "have" ], [ "membership" ], [ "for" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "club", "VBP" ], [ "doe", "NN" ], [ "'", "''" ], [ "linda", "JJ" ], [ "smith", "NN" ], [ "'", "POS" ], [ "have", "VBP" ], [ "membership", "NN" ], [ "for", "IN" ], [ "?", "." ] ], "values": [ "Linda", "Smith", "Linda Smith" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(3) T(0) V(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "club_1", "query": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Tracy\" AND t3.lname = \"Kim\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.fname", "=", "``", "Tracy", "''", "AND", "t3.lname", "=", "``", "Kim", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "and", "t3", ".", "lname", "=", "value" ], "question": "Find the number of clubs where \"Tracy Kim\" is a member.", "question_toks": [ "find", "number", "of", "club", "where", "'", "tracy", "kim", "'", "is", "a", "member", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, 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, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Tracy\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Kim\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "clubs", "where", "``", "Tracy", "Kim", "''", "is", "a", "member", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "club" ], [ "where" ], [ "'" ], [ "tracy" ], [ "kim" ], [ "'" ], [ "is" ], [ "a" ], [ "member" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "where", "WRB" ], [ "'", "''" ], [ "tracy", "NN" ], [ "kim", "NN" ], [ "'", "''" ], [ "is", "VBZ" ], [ "a", "DT" ], [ "member", "NN" ], [ ".", "." ] ], "values": [ "Tracy Kim", "Kim", "Tracy" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(3) T(0) V(2) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "club_1", "query": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Tracy\" AND t3.lname = \"Kim\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.fname", "=", "``", "Tracy", "''", "AND", "t3.lname", "=", "``", "Kim", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "and", "t3", ".", "lname", "=", "value" ], "question": "For how many clubs is \"Tracy Kim\" a member?", "question_toks": [ "for", "how", "many", "club", "is", "'", "tracy", "kim", "'", "a", "member", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, 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, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Tracy\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Kim\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "For", "how", "many", "clubs", "is", "``", "Tracy", "Kim", "''", "a", "member", "?" ], "question_arg": [ [ "for" ], [ "how" ], [ "many" ], [ "club" ], [ "is" ], [ "'" ], [ "tracy" ], [ "kim" ], [ "'" ], [ "a" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "club", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "tracy", "NN" ], [ "kim", "NNS" ], [ "'", "POS" ], [ "a", "DT" ], [ "member", "NN" ], [ "?", "." ] ], "values": [ "Tracy Kim", "Kim", "Tracy" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(3) T(0) V(2) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "club_1", "query": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.sex = \"F\"", "query_toks": [ "SELECT", "t3.fname", ",", "t3.lname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Bootup", "Baltimore", "''", "AND", "t3.sex", "=", "``", "F", "''" ], "query_toks_no_value": [ "select", "t3", ".", "fname", ",", "t3", ".", "lname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value", "and", "t3", ".", "sex", "=", "value" ], "question": "Find all the female members of club \"Bootup Baltimore\". Show the first name and last name.", "question_toks": [ "find", "all", "female", "member", "of", "club", "'", "bootup", "baltimore", "'", ".", "show", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Bootup Baltimore\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Find", "all", "the", "female", "members", "of", "club", "``", "Bootup", "Baltimore", "''", ".", "Show", "the", "first", "name", "and", "last", "name", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "female" ], [ "member", "of", "club" ], [ "'" ], [ "bootup" ], [ "baltimore" ], [ "'" ], [ "." ], [ "show" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "female", "JJ" ], [ "member", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "'", "''" ], [ "bootup", "NN" ], [ "baltimore", "NN" ], [ "'", "POS" ], [ ".", "." ], [ "show", "NN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1", "Bootup Baltimore", "F" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(10) T(1) V(1) Filter(2) A(0) C(5) T(0) V(2)" }, { "db_id": "club_1", "query": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.sex = \"F\"", "query_toks": [ "SELECT", "t3.fname", ",", "t3.lname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Bootup", "Baltimore", "''", "AND", "t3.sex", "=", "``", "F", "''" ], "query_toks_no_value": [ "select", "t3", ".", "fname", ",", "t3", ".", "lname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value", "and", "t3", ".", "sex", "=", "value" ], "question": "Give me the first name and last name for all the female members of the club \"Bootup Baltimore\".", "question_toks": [ "give", "me", "first", "name", "and", "last", "name", "for", "all", "female", "member", "of", "club", "'", "bootup", "baltimore", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Bootup Baltimore\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Give", "me", "the", "first", "name", "and", "last", "name", "for", "all", "the", "female", "members", "of", "the", "club", "``", "Bootup", "Baltimore", "''", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "for" ], [ "all" ], [ "female" ], [ "member", "of", "club" ], [ "'" ], [ "bootup" ], [ "baltimore" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "female", "JJ" ], [ "member", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "'", "''" ], [ "bootup", "NN" ], [ "baltimore", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "1", "Bootup Baltimore", "F" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(10) T(1) V(1) Filter(2) A(0) C(5) T(0) V(2)" }, { "db_id": "club_1", "query": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\" AND t3.sex = \"M\"", "query_toks": [ "SELECT", "t3.fname", ",", "t3.lname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Hopkins", "Student", "Enterprises", "''", "AND", "t3.sex", "=", "``", "M", "''" ], "query_toks_no_value": [ "select", "t3", ".", "fname", ",", "t3", ".", "lname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value", "and", "t3", ".", "sex", "=", "value" ], "question": "Find all the male members of club \"Hopkins Student Enterprises\". Show the first name and last name.", "question_toks": [ "find", "all", "male", "member", "of", "club", "'", "hopkins", "student", "enterprise", "'", ".", "show", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Hopkins Student Enterprises\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"M\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Find", "all", "the", "male", "members", "of", "club", "``", "Hopkins", "Student", "Enterprises", "''", ".", "Show", "the", "first", "name", "and", "last", "name", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "male" ], [ "member", "of", "club" ], [ "'" ], [ "hopkins" ], [ "student" ], [ "enterprise" ], [ "'" ], [ "." ], [ "show" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "male", "JJ" ], [ "member", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "'", "POS" ], [ "hopkins", "NNS" ], [ "student", "VBP" ], [ "enterprise", "NN" ], [ "'", "''" ], [ ".", "." ], [ "show", "NN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1", "M", "Hopkins Student Enterprises" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(10) T(1) V(2) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "club_1", "query": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\" AND t3.sex = \"M\"", "query_toks": [ "SELECT", "t3.fname", ",", "t3.lname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Hopkins", "Student", "Enterprises", "''", "AND", "t3.sex", "=", "``", "M", "''" ], "query_toks_no_value": [ "select", "t3", ".", "fname", ",", "t3", ".", "lname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value", "and", "t3", ".", "sex", "=", "value" ], "question": "What are the first name and last name of each male member in club \"Hopkins Student Enterprises\"?", "question_toks": [ "what", "are", "first", "name", "and", "last", "name", "of", "each", "male", "member", "in", "club", "'", "hopkins", "student", "enterprise", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Hopkins Student Enterprises\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"M\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "name", "and", "last", "name", "of", "each", "male", "member", "in", "club", "``", "Hopkins", "Student", "Enterprises", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "each" ], [ "male" ], [ "member" ], [ "in" ], [ "club" ], [ "'" ], [ "hopkins" ], [ "student" ], [ "enterprise" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "male", "JJ" ], [ "member", "NN" ], [ "in", "IN" ], [ "club", "NN" ], [ "'", "POS" ], [ "hopkins", "NNS" ], [ "student", "VBP" ], [ "enterprise", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "1", "M", "Hopkins Student Enterprises" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(10) T(1) V(2) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "club_1", "query": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.major = \"600\"", "query_toks": [ "SELECT", "t3.fname", ",", "t3.lname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Bootup", "Baltimore", "''", "AND", "t3.major", "=", "``", "600", "''" ], "query_toks_no_value": [ "select", "t3", ".", "fname", ",", "t3", ".", "lname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value", "and", "t3", ".", "major", "=", "value" ], "question": "Find all members of \"Bootup Baltimore\" whose major is \"600\". Show the first name and last name.", "question_toks": [ "find", "all", "member", "of", "'", "bootup", "baltimore", "'", "whose", "major", "is", "'", "600", "'", ".", "show", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Bootup Baltimore\"", null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"600\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Find", "all", "members", "of", "``", "Bootup", "Baltimore", "''", "whose", "major", "is", "``", "600", "''", ".", "Show", "the", "first", "name", "and", "last", "name", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "member" ], [ "of" ], [ "'" ], [ "bootup" ], [ "baltimore" ], [ "'" ], [ "whose" ], [ "major" ], [ "is" ], [ "'" ], [ "600" ], [ "'" ], [ "." ], [ "show" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "member", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "bootup", "NN" ], [ "baltimore", "NN" ], [ "'", "POS" ], [ "whose", "WP$" ], [ "major", "JJ" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "600", "CD" ], [ "'", "POS" ], [ ".", "." ], [ "show", "NN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "600", "1", "Bootup Baltimore" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(10) T(1) V(2) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "club_1", "query": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.major = \"600\"", "query_toks": [ "SELECT", "t3.fname", ",", "t3.lname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Bootup", "Baltimore", "''", "AND", "t3.major", "=", "``", "600", "''" ], "query_toks_no_value": [ "select", "t3", ".", "fname", ",", "t3", ".", "lname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value", "and", "t3", ".", "major", "=", "value" ], "question": "Which members of \"Bootup Baltimore\" major in \"600\"? Give me their first names and last names.", "question_toks": [ "which", "member", "of", "'", "bootup", "baltimore", "'", "major", "in", "'", "600", "'", "?", "give", "me", "their", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Bootup Baltimore\"", null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"600\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Which", "members", "of", "``", "Bootup", "Baltimore", "''", "major", "in", "``", "600", "''", "?", "Give", "me", "their", "first", "names", "and", "last", "names", "." ], "question_arg": [ [ "which" ], [ "member" ], [ "of" ], [ "'" ], [ "bootup" ], [ "baltimore" ], [ "'" ], [ "major" ], [ "in" ], [ "'" ], [ "600" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "their" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "member", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "bootup", "NN" ], [ "baltimore", "NN" ], [ "'", "''" ], [ "major", "JJ" ], [ "in", "IN" ], [ "'", "POS" ], [ "600", "CD" ], [ "'", "POS" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "600", "1", "Bootup Baltimore" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(10) T(1) V(2) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "club_1", "query": "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.major = \"600\" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.clubname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.major", "=", "``", "600", "''", "GROUP", "BY", "t1.clubname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "clubname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "major", "=", "value", "group", "by", "t1", ".", "clubname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which club has the most members majoring in \"600\"?", "question_toks": [ "which", "club", "ha", "most", "member", "majoring", "in", "'", "600", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"600\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Which", "club", "has", "the", "most", "members", "majoring", "in", "``", "600", "''", "?" ], "question_arg": [ [ "which" ], [ "club" ], [ "ha" ], [ "most" ], [ "member" ], [ "majoring" ], [ "in" ], [ "'" ], [ "600" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "club", "VBP" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "member", "NN" ], [ "majoring", "NN" ], [ "in", "IN" ], [ "'", "POS" ], [ "600", "CD" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "600" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(3) C(0) T(2) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "club_1", "query": "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.major = \"600\" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.clubname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.major", "=", "``", "600", "''", "GROUP", "BY", "t1.clubname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "clubname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "major", "=", "value", "group", "by", "t1", ".", "clubname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the club which has the largest number of members majoring in \"600\".", "question_toks": [ "find", "club", "which", "ha", "largest", "number", "of", "member", "majoring", "in", "'", "600", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"600\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "club", "which", "has", "the", "largest", "number", "of", "members", "majoring", "in", "``", "600", "''", "." ], "question_arg": [ [ "find" ], [ "club" ], [ "which" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "member" ], [ "majoring" ], [ "in" ], [ "'" ], [ "600" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "club", "NN" ], [ "which", "WDT" ], [ "ha", "RB" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "majoring", "NN" ], [ "in", "IN" ], [ "'", "POS" ], [ "600", "CD" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "600" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(3) C(0) T(2) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "club_1", "query": "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.sex = \"F\" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.clubname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.sex", "=", "``", "F", "''", "GROUP", "BY", "t1.clubname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "clubname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "sex", "=", "value", "group", "by", "t1", ".", "clubname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name of the club that has the most female students.", "question_toks": [ "find", "name", "of", "club", "that", "ha", "most", "female", "student", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "club", "that", "has", "the", "most", "female", "students", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "club" ], [ "that" ], [ "ha" ], [ "most" ], [ "female" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "female", "JJ" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "F" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(3) C(0) T(2) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "club_1", "query": "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.sex = \"F\" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.clubname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.sex", "=", "``", "F", "''", "GROUP", "BY", "t1.clubname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "clubname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "sex", "=", "value", "group", "by", "t1", ".", "clubname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which club has the most female students as their members? Give me the name of the club.", "question_toks": [ "which", "club", "ha", "most", "female", "student", "a", "their", "member", "?", "give", "me", "name", "of", "club", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Which", "club", "has", "the", "most", "female", "students", "as", "their", "members", "?", "Give", "me", "the", "name", "of", "the", "club", "." ], "question_arg": [ [ "which" ], [ "club" ], [ "ha" ], [ "most" ], [ "female" ], [ "student" ], [ "a" ], [ "their" ], [ "member" ], [ "?" ], [ "give" ], [ "me" ], [ "name" ], [ "of" ], [ "club" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "club", "VBP" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "female", "JJ" ], [ "student", "NN" ], [ "a", "DT" ], [ "their", "PRP$" ], [ "member", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ ".", "." ] ], "values": [ "F" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(3) C(0) T(2) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "club_1", "query": "SELECT clubdesc FROM club WHERE clubname = \"Tennis Club\"", "query_toks": [ "SELECT", "clubdesc", "FROM", "club", "WHERE", "clubname", "=", "``", "Tennis", "Club", "''" ], "query_toks_no_value": [ "select", "clubdesc", "from", "club", "where", "clubname", "=", "value" ], "question": "What is the description of the club named \"Tennis Club\"?", "question_toks": [ "what", "is", "description", "of", "club", "named", "'", "tennis", "club", "'", "?" ], "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 ], "\"Tennis Club\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "description", "of", "the", "club", "named", "``", "Tennis", "Club", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "of" ], [ "club" ], [ "named" ], [ "'" ], [ "tennis" ], [ "club" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "tennis", "NN" ], [ "club", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Tennis Club" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT clubdesc FROM club WHERE clubname = \"Tennis Club\"", "query_toks": [ "SELECT", "clubdesc", "FROM", "club", "WHERE", "clubname", "=", "``", "Tennis", "Club", "''" ], "query_toks_no_value": [ "select", "clubdesc", "from", "club", "where", "clubname", "=", "value" ], "question": "Find the description of the club called \"Tennis Club\".", "question_toks": [ "find", "description", "of", "club", "called", "'", "tennis", "club", "'", "." ], "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 ], "\"Tennis Club\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "description", "of", "the", "club", "called", "``", "Tennis", "Club", "''", "." ], "question_arg": [ [ "find" ], [ "description" ], [ "of" ], [ "club" ], [ "called" ], [ "'" ], [ "tennis" ], [ "club" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "description", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "called", "VBN" ], [ "'", "POS" ], [ "tennis", "NN" ], [ "club", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Tennis Club" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT clubdesc FROM club WHERE clubname = \"Pen and Paper Gaming\"", "query_toks": [ "SELECT", "clubdesc", "FROM", "club", "WHERE", "clubname", "=", "``", "Pen", "and", "Paper", "Gaming", "''" ], "query_toks_no_value": [ "select", "clubdesc", "from", "club", "where", "clubname", "=", "value" ], "question": "Find the description of the club \"Pen and Paper Gaming\".", "question_toks": [ "find", "description", "of", "club", "'", "pen", "and", "paper", "gaming", "'", "." ], "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 ], "\"Pen and Paper Gaming\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "description", "of", "the", "club", "``", "Pen", "and", "Paper", "Gaming", "''", "." ], "question_arg": [ [ "find" ], [ "description" ], [ "of" ], [ "club" ], [ "'" ], [ "pen" ], [ "and" ], [ "paper" ], [ "gaming" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "description", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "'", "POS" ], [ "pen", "NN" ], [ "and", "CC" ], [ "paper", "NN" ], [ "gaming", "NN" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "Pen and Paper Gaming", "Andy" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT clubdesc FROM club WHERE clubname = \"Pen and Paper Gaming\"", "query_toks": [ "SELECT", "clubdesc", "FROM", "club", "WHERE", "clubname", "=", "``", "Pen", "and", "Paper", "Gaming", "''" ], "query_toks_no_value": [ "select", "clubdesc", "from", "club", "where", "clubname", "=", "value" ], "question": "What is the description of the club \"Pen and Paper Gaming\"?", "question_toks": [ "what", "is", "description", "of", "club", "'", "pen", "and", "paper", "gaming", "'", "?" ], "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 ], "\"Pen and Paper Gaming\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "description", "of", "the", "club", "``", "Pen", "and", "Paper", "Gaming", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "of" ], [ "club" ], [ "'" ], [ "pen" ], [ "and" ], [ "paper" ], [ "gaming" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "'", "POS" ], [ "pen", "NN" ], [ "and", "CC" ], [ "paper", "NN" ], [ "gaming", "VBG" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Pen and Paper Gaming", "Andy" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT clublocation FROM club WHERE clubname = \"Tennis Club\"", "query_toks": [ "SELECT", "clublocation", "FROM", "club", "WHERE", "clubname", "=", "``", "Tennis", "Club", "''" ], "query_toks_no_value": [ "select", "clublocation", "from", "club", "where", "clubname", "=", "value" ], "question": "What is the location of the club named \"Tennis Club\"?", "question_toks": [ "what", "is", "location", "of", "club", "named", "'", "tennis", "club", "'", "?" ], "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 ], "\"Tennis Club\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "location", "of", "the", "club", "named", "``", "Tennis", "Club", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "location" ], [ "of" ], [ "club" ], [ "named" ], [ "'" ], [ "tennis" ], [ "club" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "location", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "tennis", "NN" ], [ "club", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Tennis Club" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT clublocation FROM club WHERE clubname = \"Tennis Club\"", "query_toks": [ "SELECT", "clublocation", "FROM", "club", "WHERE", "clubname", "=", "``", "Tennis", "Club", "''" ], "query_toks_no_value": [ "select", "clublocation", "from", "club", "where", "clubname", "=", "value" ], "question": "Where us the club named \"Tennis Club\" located?", "question_toks": [ "where", "u", "club", "named", "'", "tennis", "club", "'", "located", "?" ], "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 ], "\"Tennis Club\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Where", "us", "the", "club", "named", "``", "Tennis", "Club", "''", "located", "?" ], "question_arg": [ [ "where" ], [ "u" ], [ "club" ], [ "named" ], [ "'" ], [ "tennis" ], [ "club" ], [ "'" ], [ "located" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "where", "WRB" ], [ "u", "JJ" ], [ "club", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "tennis", "NN" ], [ "club", "NN" ], [ "'", "''" ], [ "located", "VBN" ], [ "?", "." ] ], "values": [ "Tennis Club" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT clublocation FROM club WHERE clubname = \"Pen and Paper Gaming\"", "query_toks": [ "SELECT", "clublocation", "FROM", "club", "WHERE", "clubname", "=", "``", "Pen", "and", "Paper", "Gaming", "''" ], "query_toks_no_value": [ "select", "clublocation", "from", "club", "where", "clubname", "=", "value" ], "question": "Find the location of the club \"Pen and Paper Gaming\".", "question_toks": [ "find", "location", "of", "club", "'", "pen", "and", "paper", "gaming", "'", "." ], "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 ], "\"Pen and Paper Gaming\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "location", "of", "the", "club", "``", "Pen", "and", "Paper", "Gaming", "''", "." ], "question_arg": [ [ "find" ], [ "location" ], [ "of" ], [ "club" ], [ "'" ], [ "pen" ], [ "and" ], [ "paper" ], [ "gaming" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "location", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "'", "POS" ], [ "pen", "NN" ], [ "and", "CC" ], [ "paper", "NN" ], [ "gaming", "NN" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "Pen and Paper Gaming", "Andy" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT clublocation FROM club WHERE clubname = \"Pen and Paper Gaming\"", "query_toks": [ "SELECT", "clublocation", "FROM", "club", "WHERE", "clubname", "=", "``", "Pen", "and", "Paper", "Gaming", "''" ], "query_toks_no_value": [ "select", "clublocation", "from", "club", "where", "clubname", "=", "value" ], "question": "Where is the club \"Pen and Paper Gaming\" located?", "question_toks": [ "where", "is", "club", "'", "pen", "and", "paper", "gaming", "'", "located", "?" ], "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 ], "\"Pen and Paper Gaming\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Where", "is", "the", "club", "``", "Pen", "and", "Paper", "Gaming", "''", "located", "?" ], "question_arg": [ [ "where" ], [ "is" ], [ "club" ], [ "'" ], [ "pen" ], [ "and" ], [ "paper" ], [ "gaming" ], [ "'" ], [ "located" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "where", "WRB" ], [ "is", "VBZ" ], [ "club", "JJ" ], [ "'", "''" ], [ "pen", "JJ" ], [ "and", "CC" ], [ "paper", "NN" ], [ "gaming", "NN" ], [ "'", "''" ], [ "located", "VBN" ], [ "?", "." ] ], "values": [ "Pen and Paper Gaming", "Andy" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT clublocation FROM club WHERE clubname = \"Hopkins Student Enterprises\"", "query_toks": [ "SELECT", "clublocation", "FROM", "club", "WHERE", "clubname", "=", "``", "Hopkins", "Student", "Enterprises", "''" ], "query_toks_no_value": [ "select", "clublocation", "from", "club", "where", "clubname", "=", "value" ], "question": "Where is the club \"Hopkins Student Enterprises\" located?", "question_toks": [ "where", "is", "club", "'", "hopkins", "student", "enterprise", "'", "located", "?" ], "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 ], "\"Hopkins Student Enterprises\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Where", "is", "the", "club", "``", "Hopkins", "Student", "Enterprises", "''", "located", "?" ], "question_arg": [ [ "where" ], [ "is" ], [ "club" ], [ "'" ], [ "hopkins" ], [ "student" ], [ "enterprise" ], [ "'" ], [ "located" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "where", "WRB" ], [ "is", "VBZ" ], [ "club", "JJ" ], [ "'", "''" ], [ "hopkins", "NNS" ], [ "student", "VBP" ], [ "enterprise", "NN" ], [ "'", "''" ], [ "located", "VBN" ], [ "?", "." ] ], "values": [ "Hopkins Student Enterprises" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT clublocation FROM club WHERE clubname = \"Hopkins Student Enterprises\"", "query_toks": [ "SELECT", "clublocation", "FROM", "club", "WHERE", "clubname", "=", "``", "Hopkins", "Student", "Enterprises", "''" ], "query_toks_no_value": [ "select", "clublocation", "from", "club", "where", "clubname", "=", "value" ], "question": "Tell me the location of the club \"Hopkins Student Enterprises\".", "question_toks": [ "tell", "me", "location", "of", "club", "'", "hopkins", "student", "enterprise", "'", "." ], "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 ], "\"Hopkins Student Enterprises\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Tell", "me", "the", "location", "of", "the", "club", "``", "Hopkins", "Student", "Enterprises", "''", "." ], "question_arg": [ [ "tell" ], [ "me" ], [ "location" ], [ "of" ], [ "club" ], [ "'" ], [ "hopkins" ], [ "student" ], [ "enterprise" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "tell", "VB" ], [ "me", "PRP" ], [ "location", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "'", "POS" ], [ "hopkins", "NNS" ], [ "student", "VBP" ], [ "enterprise", "NN" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "Hopkins Student Enterprises" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT clubname FROM club WHERE clublocation = \"AKW\"", "query_toks": [ "SELECT", "clubname", "FROM", "club", "WHERE", "clublocation", "=", "``", "AKW", "''" ], "query_toks_no_value": [ "select", "clubname", "from", "club", "where", "clublocation", "=", "value" ], "question": "Find the name of all the clubs at \"AKW\".", "question_toks": [ "find", "name", "of", "all", "club", "at", "'", "akw", "'", "." ], "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, 2, [ 0, [ 0, 12, false ], null ], "\"AKW\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "all", "the", "clubs", "at", "``", "AKW", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "club" ], [ "at" ], [ "'" ], [ "akw" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "club", "NN" ], [ "at", "IN" ], [ "'", "''" ], [ "akw", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "AKW" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(12) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT clubname FROM club WHERE clublocation = \"AKW\"", "query_toks": [ "SELECT", "clubname", "FROM", "club", "WHERE", "clublocation", "=", "``", "AKW", "''" ], "query_toks_no_value": [ "select", "clubname", "from", "club", "where", "clublocation", "=", "value" ], "question": "Which clubs are located at \"AKW\"? Return the club names.", "question_toks": [ "which", "club", "are", "located", "at", "'", "akw", "'", "?", "return", "club", "name", "." ], "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, 2, [ 0, [ 0, 12, false ], null ], "\"AKW\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Which", "clubs", "are", "located", "at", "``", "AKW", "''", "?", "Return", "the", "club", "names", "." ], "question_arg": [ [ "which" ], [ "club" ], [ "are" ], [ "located" ], [ "at" ], [ "'" ], [ "akw" ], [ "'" ], [ "?" ], [ "return" ], [ "club", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "club", "NN" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "at", "IN" ], [ "'", "''" ], [ "akw", "NN" ], [ "'", "''" ], [ "?", "." ], [ "return", "NN" ], [ "club", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "AKW" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(12) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT count(*) FROM club WHERE clublocation = \"HHH\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club", "WHERE", "clublocation", "=", "``", "HHH", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club", "where", "clublocation", "=", "value" ], "question": "How many clubs are located at \"HHH\"?", "question_toks": [ "how", "many", "club", "are", "located", "at", "'", "hhh", "'", "?" ], "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, 12, false ], null ], "\"HHH\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "clubs", "are", "located", "at", "``", "HHH", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "club" ], [ "are" ], [ "located" ], [ "at" ], [ "'" ], [ "hhh" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "club", "NN" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "at", "IN" ], [ "'", "''" ], [ "hhh", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "HHH" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(12) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT count(*) FROM club WHERE clublocation = \"HHH\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club", "WHERE", "clublocation", "=", "``", "HHH", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club", "where", "clublocation", "=", "value" ], "question": "Count the number of clubs located at \"HHH\".", "question_toks": [ "count", "number", "of", "club", "located", "at", "'", "hhh", "'", "." ], "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, 12, false ], null ], "\"HHH\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "clubs", "located", "at", "``", "HHH", "''", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "club" ], [ "located" ], [ "at" ], [ "'" ], [ "hhh" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "located", "VBN" ], [ "at", "IN" ], [ "'", "''" ], [ "hhh", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "HHH" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(12) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t2.position = \"President\"", "query_toks": [ "SELECT", "t3.fname", ",", "t3.lname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Bootup", "Baltimore", "''", "AND", "t2.position", "=", "``", "President", "''" ], "query_toks_no_value": [ "select", "t3", ".", "fname", ",", "t3", ".", "lname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value", "and", "t2", ".", "position", "=", "value" ], "question": "What are the first and last name of the president of the club \"Bootup Baltimore\"?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "president", "of", "club", "'", "bootup", "baltimore", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Bootup Baltimore\"", null ], "and", [ false, 2, [ 0, [ 0, 15, false ], null ], "\"President\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "name", "of", "the", "president", "of", "the", "club", "``", "Bootup", "Baltimore", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "president" ], [ "of" ], [ "club" ], [ "'" ], [ "bootup" ], [ "baltimore" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "president", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "'", "''" ], [ "bootup", "NN" ], [ "baltimore", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "President", "1", "Bootup Baltimore" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(10) T(1) V(2) Filter(2) A(0) C(13) T(2) V(0)" }, { "db_id": "club_1", "query": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t2.position = \"President\"", "query_toks": [ "SELECT", "t3.fname", ",", "t3.lname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Bootup", "Baltimore", "''", "AND", "t2.position", "=", "``", "President", "''" ], "query_toks_no_value": [ "select", "t3", ".", "fname", ",", "t3", ".", "lname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value", "and", "t2", ".", "position", "=", "value" ], "question": "Who is the president of the club \"Bootup Baltimore\"? Give me the first and last name.", "question_toks": [ "who", "is", "president", "of", "club", "'", "bootup", "baltimore", "'", "?", "give", "me", "first", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Bootup Baltimore\"", null ], "and", [ false, 2, [ 0, [ 0, 15, false ], null ], "\"President\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Who", "is", "the", "president", "of", "the", "club", "``", "Bootup", "Baltimore", "''", "?", "Give", "me", "the", "first", "and", "last", "name", "." ], "question_arg": [ [ "who" ], [ "is" ], [ "president" ], [ "of" ], [ "club" ], [ "'" ], [ "bootup" ], [ "baltimore" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "president", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "'", "''" ], [ "bootup", "NN" ], [ "baltimore", "NN" ], [ "'", "''" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "President", "1", "Bootup Baltimore" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(10) T(1) V(2) Filter(2) A(0) C(13) T(2) V(0)" }, { "db_id": "club_1", "query": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\" AND t2.position = \"CTO\"", "query_toks": [ "SELECT", "t3.fname", ",", "t3.lname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Hopkins", "Student", "Enterprises", "''", "AND", "t2.position", "=", "``", "CTO", "''" ], "query_toks_no_value": [ "select", "t3", ".", "fname", ",", "t3", ".", "lname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value", "and", "t2", ".", "position", "=", "value" ], "question": "Who is the \"CTO\" of club \"Hopkins Student Enterprises\"? Show the first name and last name.", "question_toks": [ "who", "is", "'", "cto", "'", "of", "club", "'", "hopkins", "student", "enterprise", "'", "?", "show", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Hopkins Student Enterprises\"", null ], "and", [ false, 2, [ 0, [ 0, 15, false ], null ], "\"CTO\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Who", "is", "the", "``", "CTO", "''", "of", "club", "``", "Hopkins", "Student", "Enterprises", "''", "?", "Show", "the", "first", "name", "and", "last", "name", "." ], "question_arg": [ [ "who" ], [ "is" ], [ "'" ], [ "cto" ], [ "'" ], [ "of" ], [ "club" ], [ "'" ], [ "hopkins" ], [ "student" ], [ "enterprise" ], [ "'" ], [ "?" ], [ "show" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "cto", "NN" ], [ "'", "''" ], [ "of", "IN" ], [ "club", "NN" ], [ "'", "POS" ], [ "hopkins", "NNS" ], [ "student", "VBP" ], [ "enterprise", "NN" ], [ "'", "''" ], [ "?", "." ], [ "show", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1", "Hopkins Student Enterprises", "CTO" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(10) T(1) V(1) Filter(2) A(0) C(13) T(2) V(2)" }, { "db_id": "club_1", "query": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\" AND t2.position = \"CTO\"", "query_toks": [ "SELECT", "t3.fname", ",", "t3.lname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Hopkins", "Student", "Enterprises", "''", "AND", "t2.position", "=", "``", "CTO", "''" ], "query_toks_no_value": [ "select", "t3", ".", "fname", ",", "t3", ".", "lname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value", "and", "t2", ".", "position", "=", "value" ], "question": "Find the first name and last name for the \"CTO\" of the club \"Hopkins Student Enterprises\"?", "question_toks": [ "find", "first", "name", "and", "last", "name", "for", "'", "cto", "'", "of", "club", "'", "hopkins", "student", "enterprise", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Hopkins Student Enterprises\"", null ], "and", [ false, 2, [ 0, [ 0, 15, false ], null ], "\"CTO\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "first", "name", "and", "last", "name", "for", "the", "``", "CTO", "''", "of", "the", "club", "``", "Hopkins", "Student", "Enterprises", "''", "?" ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "for" ], [ "'" ], [ "cto" ], [ "'" ], [ "of" ], [ "club" ], [ "'" ], [ "hopkins" ], [ "student" ], [ "enterprise" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "'", "''" ], [ "cto", "NN" ], [ "'", "''" ], [ "of", "IN" ], [ "club", "NN" ], [ "'", "POS" ], [ "hopkins", "NNS" ], [ "student", "VBP" ], [ "enterprise", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "1", "Hopkins Student Enterprises", "CTO" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(10) T(1) V(1) Filter(2) A(0) C(13) T(2) V(2)" }, { "db_id": "club_1", "query": "SELECT count(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid WHERE t1.clubname = \"Bootup Baltimore\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "t2.position", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "WHERE", "t1.clubname", "=", "``", "Bootup", "Baltimore", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t2", ".", "position", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "where", "t1", ".", "clubname", "=", "value" ], "question": "How many different roles are there in the club \"Bootup Baltimore\"?", "question_toks": [ "how", "many", "different", "role", "are", "there", "in", "club", "'", "bootup", "baltimore", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 15, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Bootup Baltimore\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "different", "roles", "are", "there", "in", "the", "club", "``", "Bootup", "Baltimore", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "role" ], [ "are" ], [ "there" ], [ "in" ], [ "club" ], [ "'" ], [ "bootup" ], [ "baltimore" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "role", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "club", "NN" ], [ "'", "''" ], [ "bootup", "NN" ], [ "baltimore", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Bootup Baltimore" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(13) T(2) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT count(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid WHERE t1.clubname = \"Bootup Baltimore\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "t2.position", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "WHERE", "t1.clubname", "=", "``", "Bootup", "Baltimore", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t2", ".", "position", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "where", "t1", ".", "clubname", "=", "value" ], "question": "Count the number of different positions in the club \"Bootup Baltimore\".", "question_toks": [ "count", "number", "of", "different", "position", "in", "club", "'", "bootup", "baltimore", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 15, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Bootup Baltimore\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "positions", "in", "the", "club", "``", "Bootup", "Baltimore", "''", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "position" ], [ "in" ], [ "club" ], [ "'" ], [ "bootup" ], [ "baltimore" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "position", "NN" ], [ "in", "IN" ], [ "club", "NN" ], [ "'", "''" ], [ "bootup", "NN" ], [ "baltimore", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Bootup Baltimore" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(13) T(2) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.age > 18", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Bootup", "Baltimore", "''", "AND", "t3.age", ">", "18" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value", "and", "t3", ".", "age", ">", "value" ], "question": "How many members of \"Bootup Baltimore\" are older than 18?", "question_toks": [ "how", "many", "member", "of", "'", "bootup", "baltimore", "'", "are", "older", "than", "18", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, 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, 10, false ], null ], "\"Bootup Baltimore\"", null ], "and", [ false, 3, [ 0, [ 0, 4, false ], null ], 18.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "members", "of", "``", "Bootup", "Baltimore", "''", "are", "older", "than", "18", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "member" ], [ "of" ], [ "'" ], [ "bootup" ], [ "baltimore" ], [ "'" ], [ "are" ], [ "older" ], [ "than" ], [ "18" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "member", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "bootup", "NN" ], [ "baltimore", "IN" ], [ "'", "''" ], [ "are", "VBP" ], [ "older", "JJR" ], [ "than", "IN" ], [ "18", "CD" ], [ "?", "." ] ], "values": [ "18", "Bootup Baltimore" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(2) A(0) C(10) T(1) V(1) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "club_1", "query": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.age > 18", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Bootup", "Baltimore", "''", "AND", "t3.age", ">", "18" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value", "and", "t3", ".", "age", ">", "value" ], "question": "Count the number of members in club \"Bootup Baltimore\" whose age is above 18.", "question_toks": [ "count", "number", "of", "member", "in", "club", "'", "bootup", "baltimore", "'", "whose", "age", "is", "above", "18", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, 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, 10, false ], null ], "\"Bootup Baltimore\"", null ], "and", [ false, 3, [ 0, [ 0, 4, false ], null ], 18.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "members", "in", "club", "``", "Bootup", "Baltimore", "''", "whose", "age", "is", "above", "18", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "member" ], [ "in" ], [ "club" ], [ "'" ], [ "bootup" ], [ "baltimore" ], [ "'" ], [ "whose" ], [ "age" ], [ "is" ], [ "above" ], [ "18" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "in", "IN" ], [ "club", "NN" ], [ "'", "''" ], [ "bootup", "NN" ], [ "baltimore", "NN" ], [ "'", "POS" ], [ "whose", "WP$" ], [ "age", "NN" ], [ "is", "VBZ" ], [ "above", "IN" ], [ "18", "CD" ], [ ".", "." ] ], "values": [ "18", "Bootup Baltimore" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(2) A(0) C(10) T(1) V(1) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "club_1", "query": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.age < 18", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Bootup", "Baltimore", "''", "AND", "t3.age", "<", "18" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value", "and", "t3", ".", "age", "<", "value" ], "question": "How many members of club \"Bootup Baltimore\" are younger than 18?", "question_toks": [ "how", "many", "member", "of", "club", "'", "bootup", "baltimore", "'", "are", "younger", "than", "18", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, 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, 10, false ], null ], "\"Bootup Baltimore\"", null ], "and", [ false, 4, [ 0, [ 0, 4, false ], null ], 18.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "members", "of", "club", "``", "Bootup", "Baltimore", "''", "are", "younger", "than", "18", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "member", "of", "club" ], [ "'" ], [ "bootup" ], [ "baltimore" ], [ "'" ], [ "are" ], [ "younger" ], [ "than" ], [ "18" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "member", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "'", "''" ], [ "bootup", "NN" ], [ "baltimore", "IN" ], [ "'", "''" ], [ "are", "VBP" ], [ "younger", "JJR" ], [ "than", "IN" ], [ "18", "CD" ], [ "?", "." ] ], "values": [ "18", "Bootup Baltimore" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(2) A(0) C(10) T(1) V(1) Filter(4) A(0) C(4) T(0) V(0)" }, { "db_id": "club_1", "query": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.age < 18", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Bootup", "Baltimore", "''", "AND", "t3.age", "<", "18" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value", "and", "t3", ".", "age", "<", "value" ], "question": "Count the number of members in club \"Bootup Baltimore\" whose age is below 18.", "question_toks": [ "count", "number", "of", "member", "in", "club", "'", "bootup", "baltimore", "'", "whose", "age", "is", "below", "18", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, 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, 10, false ], null ], "\"Bootup Baltimore\"", null ], "and", [ false, 4, [ 0, [ 0, 4, false ], null ], 18.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "members", "in", "club", "``", "Bootup", "Baltimore", "''", "whose", "age", "is", "below", "18", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "member" ], [ "in" ], [ "club" ], [ "'" ], [ "bootup" ], [ "baltimore" ], [ "'" ], [ "whose" ], [ "age" ], [ "is" ], [ "below" ], [ "18" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "in", "IN" ], [ "club", "NN" ], [ "'", "''" ], [ "bootup", "NN" ], [ "baltimore", "NN" ], [ "'", "POS" ], [ "whose", "WP$" ], [ "age", "NN" ], [ "is", "VBZ" ], [ "below", "IN" ], [ "18", "CD" ], [ ".", "." ] ], "values": [ "18", "Bootup Baltimore" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(2) A(0) C(10) T(1) V(1) Filter(4) A(0) C(4) T(0) V(0)" }, { "db_id": "club_1", "query": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = \"BAL\"", "query_toks": [ "SELECT", "DISTINCT", "t1.clubname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.city_code", "=", "``", "BAL", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "clubname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "city_code", "=", "value" ], "question": "Find the names of all the clubs that have at least a member from the city with city code \"BAL\".", "question_toks": [ "find", "name", "of", "all", "club", "that", "have", "at", "least", "a", "member", "from", "city", "with", "city", "code", "'", "bal", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"BAL\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "the", "clubs", "that", "have", "at", "least", "a", "member", "from", "the", "city", "with", "city", "code", "``", "BAL", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "club" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "a" ], [ "member" ], [ "from" ], [ "city" ], [ "with" ], [ "city", "code" ], [ "'" ], [ "bal" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "club", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "a", "DT" ], [ "member", "NN" ], [ "from", "IN" ], [ "city", "NN" ], [ "with", "IN" ], [ "city", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "bal", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "BAL" ], "rule_label": "Root1(3) Root(3) Sel(1) 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(9) T(2) Filter(2) A(0) C(8) T(0) V(0)" }, { "db_id": "club_1", "query": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = \"BAL\"", "query_toks": [ "SELECT", "DISTINCT", "t1.clubname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.city_code", "=", "``", "BAL", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "clubname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "city_code", "=", "value" ], "question": "Which clubs have one or more members from the city with code \"BAL\"? Give me the names of the clubs.", "question_toks": [ "which", "club", "have", "one", "or", "more", "member", "from", "city", "with", "code", "'", "bal", "'", "?", "give", "me", "name", "of", "club", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"BAL\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Which", "clubs", "have", "one", "or", "more", "members", "from", "the", "city", "with", "code", "``", "BAL", "''", "?", "Give", "me", "the", "names", "of", "the", "clubs", "." ], "question_arg": [ [ "which" ], [ "club" ], [ "have" ], [ "one" ], [ "or" ], [ "more" ], [ "member" ], [ "from" ], [ "city" ], [ "with" ], [ "code" ], [ "'" ], [ "bal" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "name" ], [ "of" ], [ "club" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "club", "NN" ], [ "have", "VBP" ], [ "one", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "member", "NN" ], [ "from", "IN" ], [ "city", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "'", "''" ], [ "bal", "NN" ], [ "'", "''" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ ".", "." ] ], "values": [ "1", "BAL" ], "rule_label": "Root1(3) Root(3) Sel(1) 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(9) T(2) Filter(2) A(0) C(8) T(0) V(1)" }, { "db_id": "club_1", "query": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = \"HOU\"", "query_toks": [ "SELECT", "DISTINCT", "t1.clubname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.city_code", "=", "``", "HOU", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "clubname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "city_code", "=", "value" ], "question": "Find the names of the clubs that have at least a member from the city with city code \"HOU\".", "question_toks": [ "find", "name", "of", "club", "that", "have", "at", "least", "a", "member", "from", "city", "with", "city", "code", "'", "hou", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"HOU\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "clubs", "that", "have", "at", "least", "a", "member", "from", "the", "city", "with", "city", "code", "``", "HOU", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "club" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "a" ], [ "member" ], [ "from" ], [ "city" ], [ "with" ], [ "city", "code" ], [ "'" ], [ "hou" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "a", "DT" ], [ "member", "NN" ], [ "from", "IN" ], [ "city", "NN" ], [ "with", "IN" ], [ "city", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "hou", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "HOU" ], "rule_label": "Root1(3) Root(3) Sel(1) 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(9) T(2) Filter(2) A(0) C(8) T(0) V(0)" }, { "db_id": "club_1", "query": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = \"HOU\"", "query_toks": [ "SELECT", "DISTINCT", "t1.clubname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.city_code", "=", "``", "HOU", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "clubname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "city_code", "=", "value" ], "question": "Which clubs have one or more members from the city with code \"HOU\"? Give me the names of the clubs.", "question_toks": [ "which", "club", "have", "one", "or", "more", "member", "from", "city", "with", "code", "'", "hou", "'", "?", "give", "me", "name", "of", "club", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"HOU\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Which", "clubs", "have", "one", "or", "more", "members", "from", "the", "city", "with", "code", "``", "HOU", "''", "?", "Give", "me", "the", "names", "of", "the", "clubs", "." ], "question_arg": [ [ "which" ], [ "club" ], [ "have" ], [ "one" ], [ "or" ], [ "more" ], [ "member" ], [ "from" ], [ "city" ], [ "with" ], [ "code" ], [ "'" ], [ "hou" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "name" ], [ "of" ], [ "club" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "club", "NN" ], [ "have", "VBP" ], [ "one", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "member", "NN" ], [ "from", "IN" ], [ "city", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "'", "''" ], [ "hou", "NN" ], [ "'", "''" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ ".", "." ] ], "values": [ "HOU", "1" ], "rule_label": "Root1(3) Root(3) Sel(1) 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(9) T(2) Filter(2) A(0) C(8) T(0) V(0)" }, { "db_id": "club_1", "query": "SELECT count(DISTINCT t1.clubname) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Eric\" AND t3.lname = \"Tai\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "t1.clubname", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.fname", "=", "``", "Eric", "''", "AND", "t3.lname", "=", "``", "Tai", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t1", ".", "clubname", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "and", "t3", ".", "lname", "=", "value" ], "question": "How many clubs does the student named \"Eric Tai\" belong to?", "question_toks": [ "how", "many", "club", "doe", "student", "named", "'", "eric", "tai", "'", "belong", "to", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Eric\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Tai\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "clubs", "does", "the", "student", "named", "``", "Eric", "Tai", "''", "belong", "to", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "club" ], [ "doe" ], [ "student" ], [ "named" ], [ "'" ], [ "eric" ], [ "tai" ], [ "'" ], [ "belong" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "club", "NN" ], [ "doe", "JJ" ], [ "student", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "eric", "JJ" ], [ "tai", "NN" ], [ "'", "''" ], [ "belong", "NN" ], [ "to", "TO" ], [ "?", "." ] ], "values": [ "Tai", "Eric", "Eric Tai" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(10) T(1) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(3) T(0) V(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "club_1", "query": "SELECT count(DISTINCT t1.clubname) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Eric\" AND t3.lname = \"Tai\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "t1.clubname", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.fname", "=", "``", "Eric", "''", "AND", "t3.lname", "=", "``", "Tai", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t1", ".", "clubname", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "and", "t3", ".", "lname", "=", "value" ], "question": "Count the number of clubs for which the student named \"Eric Tai\" is a member.", "question_toks": [ "count", "number", "of", "club", "for", "which", "student", "named", "'", "eric", "tai", "'", "is", "a", "member", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Eric\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Tai\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "clubs", "for", "which", "the", "student", "named", "``", "Eric", "Tai", "''", "is", "a", "member", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "club" ], [ "for" ], [ "which" ], [ "student" ], [ "named" ], [ "'" ], [ "eric" ], [ "tai" ], [ "'" ], [ "is" ], [ "a" ], [ "member" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "for", "IN" ], [ "which", "WDT" ], [ "student", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "eric", "JJ" ], [ "tai", "NN" ], [ "'", "''" ], [ "is", "VBZ" ], [ "a", "DT" ], [ "member", "NN" ], [ ".", "." ] ], "values": [ "Tai", "Eric", "Eric Tai" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(10) T(1) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(3) T(0) V(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "club_1", "query": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Davis\" AND t3.lname = \"Steven\"", "query_toks": [ "SELECT", "DISTINCT", "t1.clubname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.fname", "=", "``", "Davis", "''", "AND", "t3.lname", "=", "``", "Steven", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "clubname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "and", "t3", ".", "lname", "=", "value" ], "question": "List the clubs having \"Davis Steven\" as a member.", "question_toks": [ "list", "club", "having", "'", "davis", "steven", "'", "a", "a", "member", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Davis\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Steven\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "List", "the", "clubs", "having", "``", "Davis", "Steven", "''", "as", "a", "member", "." ], "question_arg": [ [ "list" ], [ "club" ], [ "having" ], [ "'" ], [ "davis" ], [ "steven" ], [ "'" ], [ "a" ], [ "a" ], [ "member" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "club", "NN" ], [ "having", "VBG" ], [ "'", "''" ], [ "davis", "JJ" ], [ "steven", "NN" ], [ "'", "''" ], [ "a", "DT" ], [ "a", "DT" ], [ "member", "NN" ], [ ".", "." ] ], "values": [ "David", "Davis", "Steven", "Davis Steven" ], "rule_label": "Root1(3) Root(3) Sel(1) 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(9) T(2) Filter(0) Filter(2) A(0) C(3) T(0) V(1) Filter(2) A(0) C(2) T(0) V(2)" }, { "db_id": "club_1", "query": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Davis\" AND t3.lname = \"Steven\"", "query_toks": [ "SELECT", "DISTINCT", "t1.clubname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.fname", "=", "``", "Davis", "''", "AND", "t3.lname", "=", "``", "Steven", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "clubname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "and", "t3", ".", "lname", "=", "value" ], "question": "What are the names of the clubs that have \"Davis Steven\" as a member?", "question_toks": [ "what", "are", "name", "of", "club", "that", "have", "'", "davis", "steven", "'", "a", "a", "member", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Davis\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Steven\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "clubs", "that", "have", "``", "Davis", "Steven", "''", "as", "a", "member", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "club" ], [ "that" ], [ "have" ], [ "'" ], [ "davis" ], [ "steven" ], [ "'" ], [ "a" ], [ "a" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "'", "''" ], [ "davis", "JJ" ], [ "steven", "NN" ], [ "'", "''" ], [ "a", "DT" ], [ "a", "DT" ], [ "member", "NN" ], [ "?", "." ] ], "values": [ "David", "Davis", "Steven", "Davis Steven" ], "rule_label": "Root1(3) Root(3) Sel(1) 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(9) T(2) Filter(0) Filter(2) A(0) C(3) T(0) V(1) Filter(2) A(0) C(2) T(0) V(2)" }, { "db_id": "club_1", "query": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.advisor = 1121", "query_toks": [ "SELECT", "DISTINCT", "t1.clubname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.advisor", "=", "1121" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "clubname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "advisor", "=", "value" ], "question": "List the clubs that have at least a member with advisor \"1121\".", "question_toks": [ "list", "club", "that", "have", "at", "least", "a", "member", "with", "advisor", "'", "1121", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], 1121.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "List", "the", "clubs", "that", "have", "at", "least", "a", "member", "with", "advisor", "``", "1121", "''", "." ], "question_arg": [ [ "list" ], [ "club" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "a" ], [ "member" ], [ "with" ], [ "advisor" ], [ "'" ], [ "1121" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "club", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "a", "DT" ], [ "member", "NN" ], [ "with", "IN" ], [ "advisor", "NN" ], [ "'", "''" ], [ "1121", "CD" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "1121" ], "rule_label": "Root1(3) Root(3) Sel(1) 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(9) T(2) Filter(2) A(0) C(7) T(0) V(0)" }, { "db_id": "club_1", "query": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.advisor = 1121", "query_toks": [ "SELECT", "DISTINCT", "t1.clubname", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.advisor", "=", "1121" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "clubname", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "advisor", "=", "value" ], "question": "Which clubs have one or more members whose advisor is \"1121\"?", "question_toks": [ "which", "club", "have", "one", "or", "more", "member", "whose", "advisor", "is", "'", "1121", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], 1121.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Which", "clubs", "have", "one", "or", "more", "members", "whose", "advisor", "is", "``", "1121", "''", "?" ], "question_arg": [ [ "which" ], [ "club" ], [ "have" ], [ "one" ], [ "or" ], [ "more" ], [ "member" ], [ "whose" ], [ "advisor" ], [ "is" ], [ "'" ], [ "1121" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "club", "NN" ], [ "have", "VBP" ], [ "one", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "member", "NN" ], [ "whose", "WP$" ], [ "advisor", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "1121", "CD" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "1", "1121" ], "rule_label": "Root1(3) Root(3) Sel(1) 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(9) T(2) Filter(2) A(0) C(7) T(0) V(1)" }, { "db_id": "club_1", "query": "SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\"", "query_toks": [ "SELECT", "avg", "(", "t3.age", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Bootup", "Baltimore", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t3", ".", "age", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value" ], "question": "What is the average age of the members of the club \"Bootup Baltimore\"?", "question_toks": [ "what", "is", "average", "age", "of", "member", "of", "club", "'", "bootup", "baltimore", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Bootup Baltimore\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "age", "of", "the", "members", "of", "the", "club", "``", "Bootup", "Baltimore", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "of" ], [ "member", "of", "club" ], [ "'" ], [ "bootup" ], [ "baltimore" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "'", "''" ], [ "bootup", "NN" ], [ "baltimore", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Bootup Baltimore" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\"", "query_toks": [ "SELECT", "avg", "(", "t3.age", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Bootup", "Baltimore", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t3", ".", "age", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value" ], "question": "Find the average age of the members in the club \"Bootup Baltimore\".", "question_toks": [ "find", "average", "age", "of", "member", "in", "club", "'", "bootup", "baltimore", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Bootup Baltimore\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "average", "age", "of", "the", "members", "in", "the", "club", "``", "Bootup", "Baltimore", "''", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "age" ], [ "of" ], [ "member" ], [ "in" ], [ "club" ], [ "'" ], [ "bootup" ], [ "baltimore" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "in", "IN" ], [ "club", "NN" ], [ "'", "''" ], [ "bootup", "NN" ], [ "baltimore", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Bootup Baltimore" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\"", "query_toks": [ "SELECT", "avg", "(", "t3.age", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Hopkins", "Student", "Enterprises", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t3", ".", "age", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value" ], "question": "Find the average age of members of the club \"Hopkins Student Enterprises\".", "question_toks": [ "find", "average", "age", "of", "member", "of", "club", "'", "hopkins", "student", "enterprise", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Hopkins Student Enterprises\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "average", "age", "of", "members", "of", "the", "club", "``", "Hopkins", "Student", "Enterprises", "''", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "age" ], [ "of" ], [ "member", "of", "club" ], [ "'" ], [ "hopkins" ], [ "student" ], [ "enterprise" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "'", "POS" ], [ "hopkins", "NNS" ], [ "student", "VBP" ], [ "enterprise", "NN" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "Hopkins Student Enterprises" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\"", "query_toks": [ "SELECT", "avg", "(", "t3.age", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Hopkins", "Student", "Enterprises", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t3", ".", "age", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value" ], "question": "On average, how old are the members in the club \"Hopkins Student Enterprises\"?", "question_toks": [ "on", "average", ",", "how", "old", "are", "member", "in", "club", "'", "hopkins", "student", "enterprise", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Hopkins Student Enterprises\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "On", "average", ",", "how", "old", "are", "the", "members", "in", "the", "club", "``", "Hopkins", "Student", "Enterprises", "''", "?" ], "question_arg": [ [ "on" ], [ "average" ], [ "," ], [ "how" ], [ "old" ], [ "are" ], [ "member" ], [ "in" ], [ "club" ], [ "'" ], [ "hopkins" ], [ "student" ], [ "enterprise" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "on", "IN" ], [ "average", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "old", "JJ" ], [ "are", "VBP" ], [ "member", "NN" ], [ "in", "IN" ], [ "club", "NN" ], [ "'", "POS" ], [ "hopkins", "NNS" ], [ "student", "VBP" ], [ "enterprise", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Hopkins Student Enterprises" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Tennis Club\"", "query_toks": [ "SELECT", "avg", "(", "t3.age", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Tennis", "Club", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t3", ".", "age", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value" ], "question": "Retrieve the average age of members of the club \"Tennis Club\".", "question_toks": [ "retrieve", "average", "age", "of", "member", "of", "club", "'", "tennis", "club", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Tennis Club\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Retrieve", "the", "average", "age", "of", "members", "of", "the", "club", "``", "Tennis", "Club", "''", "." ], "question_arg": [ [ "retrieve" ], [ "average" ], [ "age" ], [ "of" ], [ "member", "of", "club" ], [ "'" ], [ "tennis" ], [ "club" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "retrieve", "JJ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "of", "IN" ], [ "club", "NN" ], [ "'", "''" ], [ "tennis", "NN" ], [ "club", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Tennis Club" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "club_1", "query": "SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Tennis Club\"", "query_toks": [ "SELECT", "avg", "(", "t3.age", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t1.clubname", "=", "``", "Tennis", "Club", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t3", ".", "age", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t1", ".", "clubname", "=", "value" ], "question": "Compute the average age of the members in the club \"Tennis Club\".", "question_toks": [ "compute", "average", "age", "of", "member", "in", "club", "'", "tennis", "club", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Tennis Club\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "student id", "club id", "position" ], "table_names": [ "student", "club", "member of club" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "club id", "club name", "club description", "club location", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "14": 9, "9": 9, "13": 1, "1": 1 }, "origin_question_toks": [ "Compute", "the", "average", "age", "of", "the", "members", "in", "the", "club", "``", "Tennis", "Club", "''", "." ], "question_arg": [ [ "compute" ], [ "average" ], [ "age" ], [ "of" ], [ "member" ], [ "in" ], [ "club" ], [ "'" ], [ "tennis" ], [ "club" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "compute", "JJ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "in", "IN" ], [ "club", "NN" ], [ "'", "''" ], [ "tennis", "NN" ], [ "club", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Tennis Club" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.grant_amount FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id WHERE T2.sent_date < '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date > '1989-03-16 18:27:16'", "query_toks": [ "SELECT", "T1.grant_amount", "FROM", "Grants", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.grant_id", "=", "T2.grant_id", "WHERE", "T2.sent_date", "<", "'1986-08-26", "20:49:27", "'", "INTERSECT", "SELECT", "grant_amount", "FROM", "grants", "WHERE", "grant_end_date", ">", "'1989-03-16", "18:27:16", "'" ], "query_toks_no_value": [ "select", "t1", ".", "grant_amount", "from", "grants", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "grant_id", "=", "t2", ".", "grant_id", "where", "t2", ".", "sent_date", "<", "value", "intersect", "select", "grant_amount", "from", "grants", "where", "grant_end_date", ">", "value" ], "question": "What are the distinct grant amount for the grants where the documents were sent before '1986-08-26 20:49:27' and grant were ended after '1989-03-16 18:27:16'?", "question_toks": [ "what", "are", "distinct", "grant", "amount", "for", "grant", "where", "document", "were", "sent", "before", "'", "1986-08-26", "20:49:27", "'", "and", "grant", "were", "ended", "after", "'", "1989-03-16", "18:27:16", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], "\"1989-03-16 18:27:16\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 6, false ], null ], "\"1986-08-26 20:49:27\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "distinct", "grant", "amount", "for", "the", "grants", "where", "the", "documents", "were", "sent", "before", "'1986-08-26", "20:49:27", "'", "and", "grant", "were", "ended", "after", "'1989-03-16", "18:27:16", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "grant", "amount" ], [ "for" ], [ "grant" ], [ "where" ], [ "document" ], [ "were" ], [ "sent" ], [ "before" ], [ "'" ], [ "1986-08-26" ], [ "20:49:27" ], [ "'" ], [ "and" ], [ "grant" ], [ "were" ], [ "ended" ], [ "after" ], [ "'" ], [ "1989-03-16" ], [ "18:27:16" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "grant", "JJ" ], [ "amount", "NN" ], [ "for", "IN" ], [ "grant", "NN" ], [ "where", "WRB" ], [ "document", "NN" ], [ "were", "VBD" ], [ "sent", "VBN" ], [ "before", "IN" ], [ "'", "POS" ], [ "1986-08-26", "JJ" ], [ "20:49:27", "CD" ], [ "'", "POS" ], [ "and", "CC" ], [ "grant", "JJ" ], [ "were", "VBD" ], [ "ended", "VBN" ], [ "after", "IN" ], [ "'", "POS" ], [ "1989-03-16", "JJ" ], [ "18:27:16", "CD" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "16", "1986", "1989-03-16 18:27:16", "1989", "8", "1989-03-16", "18", "49", "20", "27", "26", "1986-08-26", "1986-08-26 20:49:27", "3" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(4) A(0) C(5) T(1) V(12) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(5) A(0) C(11) T(2) V(2)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.grant_amount FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id WHERE T2.sent_date < '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date > '1989-03-16 18:27:16'", "query_toks": [ "SELECT", "T1.grant_amount", "FROM", "Grants", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.grant_id", "=", "T2.grant_id", "WHERE", "T2.sent_date", "<", "'1986-08-26", "20:49:27", "'", "INTERSECT", "SELECT", "grant_amount", "FROM", "grants", "WHERE", "grant_end_date", ">", "'1989-03-16", "18:27:16", "'" ], "query_toks_no_value": [ "select", "t1", ".", "grant_amount", "from", "grants", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "grant_id", "=", "t2", ".", "grant_id", "where", "t2", ".", "sent_date", "<", "value", "intersect", "select", "grant_amount", "from", "grants", "where", "grant_end_date", ">", "value" ], "question": "What are the different grant amounts for documents sent before '1986-08-26 20:49:27' and after the grant ended on '1989-03-16 18:27:16'?", "question_toks": [ "what", "are", "different", "grant", "amount", "for", "document", "sent", "before", "'", "1986-08-26", "20:49:27", "'", "and", "after", "grant", "ended", "on", "'", "1989-03-16", "18:27:16", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], "\"1989-03-16 18:27:16\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 6, false ], null ], "\"1986-08-26 20:49:27\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "different", "grant", "amounts", "for", "documents", "sent", "before", "'1986-08-26", "20:49:27", "'", "and", "after", "the", "grant", "ended", "on", "'1989-03-16", "18:27:16", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "grant", "amount" ], [ "for" ], [ "document" ], [ "sent" ], [ "before" ], [ "'" ], [ "1986-08-26" ], [ "20:49:27" ], [ "'" ], [ "and" ], [ "after" ], [ "grant" ], [ "ended" ], [ "on" ], [ "'" ], [ "1989-03-16" ], [ "18:27:16" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "grant", "NN" ], [ "amount", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "sent", "VBN" ], [ "before", "IN" ], [ "'", "POS" ], [ "1986-08-26", "JJ" ], [ "20:49:27", "CD" ], [ "'", "POS" ], [ "and", "CC" ], [ "after", "IN" ], [ "grant", "NN" ], [ "ended", "VBD" ], [ "on", "IN" ], [ "'", "POS" ], [ "1989-03-16", "JJ" ], [ "18:27:16", "CD" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "16", "1986", "1989-03-16 18:27:16", "1989", "8", "1989-03-16", "49", "18", "20", "27", "26", "1986-08-26", "1986-08-26 20:49:27", "3" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(4) A(0) C(5) T(1) V(12) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(5) A(0) C(11) T(2) V(2)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent'", "query_toks": [ "SELECT", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "WHERE", "T2.outcome_code", "=", "'Paper", "'", "INTERSECT", "SELECT", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "WHERE", "T2.outcome_code", "=", "'Patent", "'" ], "query_toks_no_value": [ "select", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "outcome_code", "=", "value", "intersect", "select", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "outcome_code", "=", "value" ], "question": "List the project details of the project both producing patent and paper as outcomes.", "question_toks": [ "list", "project", "detail", "of", "project", "both", "producing", "patent", "and", "paper", "a", "outcome", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Patent\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Paper\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "List", "the", "project", "details", "of", "the", "project", "both", "producing", "patent", "and", "paper", "as", "outcomes", "." ], "question_arg": [ [ "list" ], [ "project", "detail" ], [ "of" ], [ "project" ], [ "both" ], [ "producing" ], [ "patent" ], [ "and" ], [ "paper" ], [ "a" ], [ "outcome" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "project", "NN" ], [ "detail", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "both", "DT" ], [ "producing", "VBG" ], [ "patent", "NN" ], [ "and", "CC" ], [ "paper", "NN" ], [ "a", "DT" ], [ "outcome", "NN" ], [ ".", "." ] ], "values": [ "Paper", "Patent" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(22) T(7) Filter(2) A(0) C(16) T(5) V(0) Root(3) Sel(0) N(0) A(0) C(22) T(7) Filter(2) A(0) C(16) T(5) V(1)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent'", "query_toks": [ "SELECT", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "WHERE", "T2.outcome_code", "=", "'Paper", "'", "INTERSECT", "SELECT", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "WHERE", "T2.outcome_code", "=", "'Patent", "'" ], "query_toks_no_value": [ "select", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "outcome_code", "=", "value", "intersect", "select", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "outcome_code", "=", "value" ], "question": "What are the details of the project that is producing both patents and papers as outcomes?", "question_toks": [ "what", "are", "detail", "of", "project", "that", "is", "producing", "both", "patent", "and", "paper", "a", "outcome", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Patent\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Paper\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "details", "of", "the", "project", "that", "is", "producing", "both", "patents", "and", "papers", "as", "outcomes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "of" ], [ "project" ], [ "that" ], [ "is" ], [ "producing" ], [ "both" ], [ "patent" ], [ "and" ], [ "paper" ], [ "a" ], [ "outcome" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "producing", "VBG" ], [ "both", "DT" ], [ "patent", "NN" ], [ "and", "CC" ], [ "paper", "NN" ], [ "a", "DT" ], [ "outcome", "NN" ], [ "?", "." ] ], "values": [ "Paper", "Patent" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(22) T(7) Filter(2) A(0) C(16) T(5) V(0) Root(3) Sel(0) N(0) A(0) C(22) T(7) Filter(2) A(0) C(16) T(5) V(1)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT sum(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type = T3.organisation_type WHERE T3.organisation_type_description = 'Research'", "query_toks": [ "SELECT", "sum", "(", "grant_amount", ")", "FROM", "Grants", "AS", "T1", "JOIN", "Organisations", "AS", "T2", "ON", "T1.organisation_id", "=", "T2.organisation_id", "JOIN", "organisation_Types", "AS", "T3", "ON", "T2.organisation_type", "=", "T3.organisation_type", "WHERE", "T3.organisation_type_description", "=", "'Research", "'" ], "query_toks_no_value": [ "select", "sum", "(", "grant_amount", ")", "from", "grants", "as", "t1", "join", "organisations", "as", "t2", "on", "t1", ".", "organisation_id", "=", "t2", ".", "organisation_id", "join", "organisation_types", "as", "t3", "on", "t2", ".", "organisation_type", "=", "t3", ".", "organisation_type", "where", "t3", ".", "organisation_type_description", "=", "value" ], "question": "What is the total grant amount of the organisations described as research?", "question_toks": [ "what", "is", "total", "grant", "amount", "of", "organisation", "described", "a", "research", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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, 16, false ], null ], "\"Research\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "total", "grant", "amount", "of", "the", "organisations", "described", "as", "research", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "grant", "amount" ], [ "of" ], [ "organisation" ], [ "described" ], [ "a" ], [ "research" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "grant", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "organisation", "NN" ], [ "described", "VBD" ], [ "a", "DT" ], [ "research", "NN" ], [ "?", "." ] ], "values": [ "Research", "researcher" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(9) T(2) Filter(0) Filter(18) A(0) C(8) T(2) Root(5) Sel(0) N(0) A(0) C(8) T(4) Filter(2) A(0) C(13) T(3) V(0)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT sum(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type = T3.organisation_type WHERE T3.organisation_type_description = 'Research'", "query_toks": [ "SELECT", "sum", "(", "grant_amount", ")", "FROM", "Grants", "AS", "T1", "JOIN", "Organisations", "AS", "T2", "ON", "T1.organisation_id", "=", "T2.organisation_id", "JOIN", "organisation_Types", "AS", "T3", "ON", "T2.organisation_type", "=", "T3.organisation_type", "WHERE", "T3.organisation_type_description", "=", "'Research", "'" ], "query_toks_no_value": [ "select", "sum", "(", "grant_amount", ")", "from", "grants", "as", "t1", "join", "organisations", "as", "t2", "on", "t1", ".", "organisation_id", "=", "t2", ".", "organisation_id", "join", "organisation_types", "as", "t3", "on", "t2", ".", "organisation_type", "=", "t3", ".", "organisation_type", "where", "t3", ".", "organisation_type_description", "=", "value" ], "question": "What is the total amount of grant money for research?", "question_toks": [ "what", "is", "total", "amount", "of", "grant", "money", "for", "research", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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, 16, false ], null ], "\"Research\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "total", "amount", "of", "grant", "money", "for", "research", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "amount" ], [ "of" ], [ "grant" ], [ "money" ], [ "for" ], [ "research" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "grant", "JJ" ], [ "money", "NN" ], [ "for", "IN" ], [ "research", "NN" ], [ "?", "." ] ], "values": [ "Research", "researcher" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(9) T(2) Filter(0) Filter(18) A(0) C(8) T(2) Root(5) Sel(0) N(0) A(0) C(8) T(4) Filter(2) A(0) C(13) T(3) V(0)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT date_from , date_to FROM Project_Staff WHERE project_id IN( SELECT project_id FROM Project_Staff GROUP BY project_id ORDER BY count(*) DESC LIMIT 1 ) UNION SELECT date_from , date_to FROM Project_Staff WHERE role_code = 'leader'", "query_toks": [ "SELECT", "date_from", ",", "date_to", "FROM", "Project_Staff", "WHERE", "project_id", "IN", "(", "SELECT", "project_id", "FROM", "Project_Staff", "GROUP", "BY", "project_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")", "UNION", "SELECT", "date_from", ",", "date_to", "FROM", "Project_Staff", "WHERE", "role_code", "=", "'leader", "'" ], "query_toks_no_value": [ "select", "date_from", ",", "date_to", "from", "project_staff", "where", "project_id", "in", "(", "select", "project_id", "from", "project_staff", "group", "by", "project_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")", "union", "select", "date_from", ",", "date_to", "from", "project_staff", "where", "role_code", "=", "value" ], "question": "List from which date and to which date these staff work: project staff of the project which hires the most staffs", "question_toks": [ "list", "from", "which", "date", "and", "to", "which", "date", "these", "staff", "work", ":", "project", "staff", "of", "project", "which", "hire", "most", "staff" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 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, 26, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"leader\"", null ] ] }, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "List", "from", "which", "date", "and", "to", "which", "date", "these", "staff", "work", ":", "project", "staff", "of", "the", "project", "which", "hires", "the", "most", "staffs" ], "question_arg": [ [ "list" ], [ "from" ], [ "which" ], [ "date" ], [ "and" ], [ "to" ], [ "which" ], [ "date" ], [ "these" ], [ "staff" ], [ "work" ], [ ":" ], [ "project", "staff" ], [ "of" ], [ "project" ], [ "which" ], [ "hire" ], [ "most" ], [ "staff" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "from", "IN" ], [ "which", "WDT" ], [ "date", "NN" ], [ "and", "CC" ], [ "to", "TO" ], [ "which", "WDT" ], [ "date", "NN" ], [ "these", "DT" ], [ "staff", "NN" ], [ "work", "NN" ], [ ":", ":" ], [ "project", "JJ" ], [ "staff", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "which", "WDT" ], [ "hire", "VBZ" ], [ "most", "RBS" ], [ "staff", "NN" ] ], "values": [ "leader" ], "rule_label": "Root1(1) Root(3) Sel(0) N(1) A(0) C(20) T(6) A(0) C(21) T(6) Filter(18) A(0) C(15) T(6) Root(2) Sel(0) N(0) A(0) C(15) T(6) Sup(0) A(3) C(0) T(6) Root(3) Sel(0) N(1) A(0) C(20) T(6) A(0) C(21) T(6) Filter(2) A(0) C(19) T(6) V(0)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT date_from , date_to FROM Project_Staff WHERE project_id IN( SELECT project_id FROM Project_Staff GROUP BY project_id ORDER BY count(*) DESC LIMIT 1 ) UNION SELECT date_from , date_to FROM Project_Staff WHERE role_code = 'leader'", "query_toks": [ "SELECT", "date_from", ",", "date_to", "FROM", "Project_Staff", "WHERE", "project_id", "IN", "(", "SELECT", "project_id", "FROM", "Project_Staff", "GROUP", "BY", "project_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")", "UNION", "SELECT", "date_from", ",", "date_to", "FROM", "Project_Staff", "WHERE", "role_code", "=", "'leader", "'" ], "query_toks_no_value": [ "select", "date_from", ",", "date_to", "from", "project_staff", "where", "project_id", "in", "(", "select", "project_id", "from", "project_staff", "group", "by", "project_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")", "union", "select", "date_from", ",", "date_to", "from", "project_staff", "where", "role_code", "=", "value" ], "question": "From what date and to what date do the staff work on a project that has the most staff and has staff in a leader role?", "question_toks": [ "from", "what", "date", "and", "to", "what", "date", "do", "staff", "work", "on", "a", "project", "that", "ha", "most", "staff", "and", "ha", "staff", "in", "a", "leader", "role", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 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, 26, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"leader\"", null ] ] }, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "From", "what", "date", "and", "to", "what", "date", "do", "the", "staff", "work", "on", "a", "project", "that", "has", "the", "most", "staff", "and", "has", "staff", "in", "a", "leader", "role", "?" ], "question_arg": [ [ "from" ], [ "what" ], [ "date" ], [ "and" ], [ "to" ], [ "what" ], [ "date" ], [ "do" ], [ "staff" ], [ "work" ], [ "on" ], [ "a" ], [ "project" ], [ "that" ], [ "ha" ], [ "most" ], [ "staff" ], [ "and" ], [ "ha" ], [ "staff" ], [ "in" ], [ "a" ], [ "leader" ], [ "role" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "from", "IN" ], [ "what", "WP" ], [ "date", "NN" ], [ "and", "CC" ], [ "to", "TO" ], [ "what", "WP" ], [ "date", "NN" ], [ "do", "VBP" ], [ "staff", "NN" ], [ "work", "NN" ], [ "on", "IN" ], [ "a", "DT" ], [ "project", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "staff", "NN" ], [ "and", "CC" ], [ "ha", "JJ" ], [ "staff", "NN" ], [ "in", "IN" ], [ "a", "DT" ], [ "leader", "NN" ], [ "role", "NN" ], [ "?", "." ] ], "values": [ "leader" ], "rule_label": "Root1(1) Root(3) Sel(0) N(1) A(0) C(20) T(6) A(0) C(21) T(6) Filter(18) A(0) C(15) T(6) Root(2) Sel(0) N(0) A(0) C(15) T(6) Sup(0) A(3) C(0) T(6) Root(3) Sel(0) N(1) A(0) C(20) T(6) A(0) C(21) T(6) Filter(2) A(0) C(19) T(6) V(0)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T2.organisation_id , T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_id HAVING sum(T1.grant_amount) > 6000", "query_toks": [ "SELECT", "T2.organisation_id", ",", "T2.organisation_details", "FROM", "Grants", "AS", "T1", "JOIN", "Organisations", "AS", "T2", "ON", "T1.organisation_id", "=", "T2.organisation_id", "GROUP", "BY", "T2.organisation_id", "HAVING", "sum", "(", "T1.grant_amount", ")", ">", "6000" ], "query_toks_no_value": [ "select", "t2", ".", "organisation_id", ",", "t2", ".", "organisation_details", "from", "grants", "as", "t1", "join", "organisations", "as", "t2", "on", "t1", ".", "organisation_id", "=", "t2", ".", "organisation_id", "group", "by", "t2", ".", "organisation_id", "having", "sum", "(", "t1", ".", "grant_amount", ")", ">", "value" ], "question": "Find the organisation ids and details of the organisations which are involved in", "question_toks": [ "find", "organisation", "id", "and", "detail", "of", "organisation", "which", "are", "involved", "in" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [ [ false, 3, [ 0, [ 4, 11, false ], null ], 6000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "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, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "Find", "the", "organisation", "ids", "and", "details", "of", "the", "organisations", "which", "are", "involved", "in" ], "question_arg": [ [ "find" ], [ "organisation", "id" ], [ "and" ], [ "detail" ], [ "of" ], [ "organisation" ], [ "which" ], [ "are" ], [ "involved" ], [ "in" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "organisation", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ "of", "IN" ], [ "organisation", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "involved", "VBN" ], [ "in", "IN" ] ], "values": [ "6000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(4) A(0) C(14) T(4) Filter(0) Filter(18) A(0) C(8) T(4) Root(5) Sel(0) N(0) A(0) C(8) T(2) Filter(5) A(4) C(9) T(2) V(0)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T2.organisation_id , T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_id HAVING sum(T1.grant_amount) > 6000", "query_toks": [ "SELECT", "T2.organisation_id", ",", "T2.organisation_details", "FROM", "Grants", "AS", "T1", "JOIN", "Organisations", "AS", "T2", "ON", "T1.organisation_id", "=", "T2.organisation_id", "GROUP", "BY", "T2.organisation_id", "HAVING", "sum", "(", "T1.grant_amount", ")", ">", "6000" ], "query_toks_no_value": [ "select", "t2", ".", "organisation_id", ",", "t2", ".", "organisation_details", "from", "grants", "as", "t1", "join", "organisations", "as", "t2", "on", "t1", ".", "organisation_id", "=", "t2", ".", "organisation_id", "group", "by", "t2", ".", "organisation_id", "having", "sum", "(", "t1", ".", "grant_amount", ")", ">", "value" ], "question": "What are the ids and details for all organizations that have grants of more than 6000 dollars?", "question_toks": [ "what", "are", "id", "and", "detail", "for", "all", "organization", "that", "have", "grant", "of", "more", "than", "6000", "dollar", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [ [ false, 3, [ 0, [ 4, 11, false ], null ], 6000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "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, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "details", "for", "all", "organizations", "that", "have", "grants", "of", "more", "than", "6000", "dollars", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "detail" ], [ "for" ], [ "all" ], [ "organization" ], [ "that" ], [ "have" ], [ "grant" ], [ "of" ], [ "more" ], [ "than" ], [ "6000" ], [ "dollar" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "detail", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "organization", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "grant", "NN" ], [ "of", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "6000", "CD" ], [ "dollar", "NN" ], [ "?", "." ] ], "values": [ "6000", "6000.000000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(4) A(0) C(14) T(4) Filter(0) Filter(18) A(0) C(8) T(4) Root(5) Sel(0) N(0) A(0) C(8) T(2) Filter(5) A(4) C(9) T(2) V(0)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.organisation_type , T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.organisation_type", ",", "T1.organisation_id", "FROM", "Organisations", "AS", "T1", "JOIN", "Research_Staff", "AS", "T2", "ON", "T1.organisation_id", "=", "T2.employer_organisation_id", "GROUP", "BY", "T1.organisation_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "organisation_type", ",", "t1", ".", "organisation_id", "from", "organisations", "as", "t1", "join", "research_staff", "as", "t2", "on", "t1", ".", "organisation_id", "=", "t2", ".", "employer_organisation_id", "group", "by", "t1", ".", "organisation_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the organisation type and id of the organisation which has the most number of research staff?", "question_toks": [ "what", "is", "organisation", "type", "and", "id", "of", "organisation", "which", "ha", "most", "number", "of", "research", "staff", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 35, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "organisation", "type", "and", "id", "of", "the", "organisation", "which", "has", "the", "most", "number", "of", "research", "staff", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "organisation", "type" ], [ "and" ], [ "id" ], [ "of" ], [ "organisation" ], [ "which" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "research", "staff" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "organisation", "JJ" ], [ "type", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "organisation", "NN" ], [ "which", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "research", "NN" ], [ "staff", "NN" ], [ "?", "." ] ], "values": [ "Research", "researcher" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(12) T(4) A(0) C(8) T(4) Sup(0) A(3) C(0) T(9) Filter(18) A(0) C(8) T(4) Root(5) Sel(0) N(0) A(0) C(24) T(9)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.organisation_type , T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.organisation_type", ",", "T1.organisation_id", "FROM", "Organisations", "AS", "T1", "JOIN", "Research_Staff", "AS", "T2", "ON", "T1.organisation_id", "=", "T2.employer_organisation_id", "GROUP", "BY", "T1.organisation_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "organisation_type", ",", "t1", ".", "organisation_id", "from", "organisations", "as", "t1", "join", "research_staff", "as", "t2", "on", "t1", ".", "organisation_id", "=", "t2", ".", "employer_organisation_id", "group", "by", "t1", ".", "organisation_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the type and id of the organization that has the most research staff?", "question_toks": [ "what", "is", "type", "and", "id", "of", "organization", "that", "ha", "most", "research", "staff", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 35, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "type", "and", "id", "of", "the", "organization", "that", "has", "the", "most", "research", "staff", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "type" ], [ "and" ], [ "id" ], [ "of" ], [ "organization" ], [ "that" ], [ "ha" ], [ "most" ], [ "research", "staff" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "type", "JJ" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "organization", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "research", "NN" ], [ "staff", "NN" ], [ "?", "." ] ], "values": [ "Research", "researcher" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(12) T(4) A(0) C(8) T(4) Sup(0) A(3) C(0) T(9) Filter(18) A(0) C(8) T(4) Root(5) Sel(0) N(0) A(0) C(24) T(9)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_type ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.organisation_type", "FROM", "Organisations", "AS", "T1", "JOIN", "Research_Staff", "AS", "T2", "ON", "T1.organisation_id", "=", "T2.employer_organisation_id", "GROUP", "BY", "T1.organisation_type", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "organisation_type", "from", "organisations", "as", "t1", "join", "research_staff", "as", "t2", "on", "t1", ".", "organisation_id", "=", "t2", ".", "employer_organisation_id", "group", "by", "t1", ".", "organisation_type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which organisation type hires most research staff?", "question_toks": [ "which", "organisation", "type", "hire", "most", "research", "staff", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 35, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 9 ] ] }, "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": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "Which", "organisation", "type", "hires", "most", "research", "staff", "?" ], "question_arg": [ [ "which" ], [ "organisation", "type" ], [ "hire" ], [ "most" ], [ "research", "staff" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "organisation", "NN" ], [ "type", "NN" ], [ "hire", "NN" ], [ "most", "RBS" ], [ "research", "NN" ], [ "staff", "NN" ], [ "?", "." ] ], "values": [ "Research", "researcher" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(12) T(4) Sup(0) A(3) C(0) T(9) Filter(18) A(0) C(8) T(4) Root(5) Sel(0) N(0) A(0) C(24) T(9)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_type ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.organisation_type", "FROM", "Organisations", "AS", "T1", "JOIN", "Research_Staff", "AS", "T2", "ON", "T1.organisation_id", "=", "T2.employer_organisation_id", "GROUP", "BY", "T1.organisation_type", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "organisation_type", "from", "organisations", "as", "t1", "join", "research_staff", "as", "t2", "on", "t1", ".", "organisation_id", "=", "t2", ".", "employer_organisation_id", "group", "by", "t1", ".", "organisation_type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the type of the organization with the most research staff?", "question_toks": [ "what", "is", "type", "of", "organization", "with", "most", "research", "staff", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 35, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 9 ] ] }, "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": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "type", "of", "the", "organization", "with", "the", "most", "research", "staff", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "type" ], [ "of" ], [ "organization" ], [ "with" ], [ "most" ], [ "research", "staff" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "type", "NN" ], [ "of", "IN" ], [ "organization", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "research", "NN" ], [ "staff", "NN" ], [ "?", "." ] ], "values": [ "Research", "researcher" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(12) T(4) Sup(0) A(3) C(0) T(9) Filter(18) A(0) C(8) T(4) Root(5) Sel(0) N(0) A(0) C(24) T(9)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.sent_date FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id = T2.grant_id JOIN Organisations AS T3 ON T2.organisation_id = T3.organisation_id JOIN organisation_Types AS T4 ON T3.organisation_type = T4.organisation_type WHERE T2.grant_amount > 5000 AND T4.organisation_type_description = 'Research'", "query_toks": [ "SELECT", "T1.sent_date", "FROM", "documents", "AS", "T1", "JOIN", "Grants", "AS", "T2", "ON", "T1.grant_id", "=", "T2.grant_id", "JOIN", "Organisations", "AS", "T3", "ON", "T2.organisation_id", "=", "T3.organisation_id", "JOIN", "organisation_Types", "AS", "T4", "ON", "T3.organisation_type", "=", "T4.organisation_type", "WHERE", "T2.grant_amount", ">", "5000", "AND", "T4.organisation_type_description", "=", "'Research", "'" ], "query_toks_no_value": [ "select", "t1", ".", "sent_date", "from", "documents", "as", "t1", "join", "grants", "as", "t2", "on", "t1", ".", "grant_id", "=", "t2", ".", "grant_id", "join", "organisations", "as", "t3", "on", "t2", ".", "organisation_id", "=", "t3", ".", "organisation_id", "join", "organisation_types", "as", "t4", "on", "t3", ".", "organisation_type", "=", "t4", ".", "organisation_type", "where", "t2", ".", "grant_amount", ">", "value", "and", "t4", ".", "organisation_type_description", "=", "value" ], "question": "Find out the send dates of the documents with the grant amount of more than 5000 were granted by organisation type described", "question_toks": [ "find", "out", "send", "date", "of", "document", "with", "grant", "amount", "of", "more", "than", "5000", "were", "granted", "by", "organisation", "type", "described" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 5000.0, null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Research\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "Find", "out", "the", "send", "dates", "of", "the", "documents", "with", "the", "grant", "amount", "of", "more", "than", "5000", "were", "granted", "by", "organisation", "type", "described" ], "question_arg": [ [ "find" ], [ "out" ], [ "send" ], [ "date" ], [ "of" ], [ "document" ], [ "with" ], [ "grant", "amount" ], [ "of" ], [ "more" ], [ "than" ], [ "5000" ], [ "were" ], [ "granted" ], [ "by" ], [ "organisation", "type" ], [ "described" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "out", "RP" ], [ "send", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "grant", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5000", "CD" ], [ "were", "VBD" ], [ "granted", "VBN" ], [ "by", "IN" ], [ "organisation", "NN" ], [ "type", "NN" ], [ "described", "VBD" ] ], "values": [ "5000", "Research" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(5) A(0) C(9) T(2) V(0) Filter(2) A(0) C(13) T(3) V(1)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.sent_date FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id = T2.grant_id JOIN Organisations AS T3 ON T2.organisation_id = T3.organisation_id JOIN organisation_Types AS T4 ON T3.organisation_type = T4.organisation_type WHERE T2.grant_amount > 5000 AND T4.organisation_type_description = 'Research'", "query_toks": [ "SELECT", "T1.sent_date", "FROM", "documents", "AS", "T1", "JOIN", "Grants", "AS", "T2", "ON", "T1.grant_id", "=", "T2.grant_id", "JOIN", "Organisations", "AS", "T3", "ON", "T2.organisation_id", "=", "T3.organisation_id", "JOIN", "organisation_Types", "AS", "T4", "ON", "T3.organisation_type", "=", "T4.organisation_type", "WHERE", "T2.grant_amount", ">", "5000", "AND", "T4.organisation_type_description", "=", "'Research", "'" ], "query_toks_no_value": [ "select", "t1", ".", "sent_date", "from", "documents", "as", "t1", "join", "grants", "as", "t2", "on", "t1", ".", "grant_id", "=", "t2", ".", "grant_id", "join", "organisations", "as", "t3", "on", "t2", ".", "organisation_id", "=", "t3", ".", "organisation_id", "join", "organisation_types", "as", "t4", "on", "t3", ".", "organisation_type", "=", "t4", ".", "organisation_type", "where", "t2", ".", "grant_amount", ">", "value", "and", "t4", ".", "organisation_type_description", "=", "value" ], "question": "What are the send dates for all documents that have a grant amount of more than 5000 and are involved in research?", "question_toks": [ "what", "are", "send", "date", "for", "all", "document", "that", "have", "a", "grant", "amount", "of", "more", "than", "5000", "and", "are", "involved", "in", "research", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 5000.0, null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Research\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "send", "dates", "for", "all", "documents", "that", "have", "a", "grant", "amount", "of", "more", "than", "5000", "and", "are", "involved", "in", "research", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "send" ], [ "date" ], [ "for" ], [ "all" ], [ "document" ], [ "that" ], [ "have" ], [ "a" ], [ "grant", "amount" ], [ "of" ], [ "more" ], [ "than" ], [ "5000" ], [ "and" ], [ "are" ], [ "involved" ], [ "in" ], [ "research" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "send", "JJ" ], [ "date", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "document", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "grant", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5000", "CD" ], [ "and", "CC" ], [ "are", "VBP" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "research", "NN" ], [ "?", "." ] ], "values": [ "Research", "researcher", "5000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(5) A(0) C(9) T(2) V(2) Filter(2) A(0) C(13) T(3) V(0)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code = T2.document_type_code JOIN Grants AS T3 ON T1.grant_id = T3.grant_id WHERE T2.document_description = 'Regular' OR T3.grant_amount > 100", "query_toks": [ "SELECT", "T1.response_received_date", "FROM", "Documents", "AS", "T1", "JOIN", "Document_Types", "AS", "T2", "ON", "T1.document_type_code", "=", "T2.document_type_code", "JOIN", "Grants", "AS", "T3", "ON", "T1.grant_id", "=", "T3.grant_id", "WHERE", "T2.document_description", "=", "'Regular", "'", "OR", "T3.grant_amount", ">", "100" ], "query_toks_no_value": [ "select", "t1", ".", "response_received_date", "from", "documents", "as", "t1", "join", "document_types", "as", "t2", "on", "t1", ".", "document_type_code", "=", "t2", ".", "document_type_code", "join", "grants", "as", "t3", "on", "t1", ".", "grant_id", "=", "t3", ".", "grant_id", "where", "t2", ".", "document_description", "=", "value", "or", "t3", ".", "grant_amount", ">", "value" ], "question": "What are the response received dates for the documents described as 'Regular' or granted with more than 100?", "question_toks": [ "what", "are", "response", "received", "date", "for", "document", "described", "a", "'", "regular", "'", "or", "granted", "with", "more", "than", "100", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Regular\"", null ], "or", [ false, 3, [ 0, [ 0, 11, false ], null ], 100.0, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "response", "received", "dates", "for", "the", "documents", "described", "as", "'Regular", "'", "or", "granted", "with", "more", "than", "100", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "response", "received", "date" ], [ "for" ], [ "document" ], [ "described" ], [ "a" ], [ "'" ], [ "regular" ], [ "'" ], [ "or" ], [ "granted" ], [ "with" ], [ "more" ], [ "than" ], [ "100" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "response", "NN" ], [ "received", "JJ" ], [ "date", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "described", "VBD" ], [ "a", "DT" ], [ "'", "''" ], [ "regular", "JJ" ], [ "'", "POS" ], [ "or", "CC" ], [ "granted", "VBN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "?", "." ] ], "values": [ "100", "Regular" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(1) Filter(2) A(0) C(2) T(0) V(1) Filter(5) A(0) C(9) T(2) V(0)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code = T2.document_type_code JOIN Grants AS T3 ON T1.grant_id = T3.grant_id WHERE T2.document_description = 'Regular' OR T3.grant_amount > 100", "query_toks": [ "SELECT", "T1.response_received_date", "FROM", "Documents", "AS", "T1", "JOIN", "Document_Types", "AS", "T2", "ON", "T1.document_type_code", "=", "T2.document_type_code", "JOIN", "Grants", "AS", "T3", "ON", "T1.grant_id", "=", "T3.grant_id", "WHERE", "T2.document_description", "=", "'Regular", "'", "OR", "T3.grant_amount", ">", "100" ], "query_toks_no_value": [ "select", "t1", ".", "response_received_date", "from", "documents", "as", "t1", "join", "document_types", "as", "t2", "on", "t1", ".", "document_type_code", "=", "t2", ".", "document_type_code", "join", "grants", "as", "t3", "on", "t1", ".", "grant_id", "=", "t3", ".", "grant_id", "where", "t2", ".", "document_description", "=", "value", "or", "t3", ".", "grant_amount", ">", "value" ], "question": "What is the response received date for the document described as Regular that was granted more than 100 dollars?", "question_toks": [ "what", "is", "response", "received", "date", "for", "document", "described", "a", "regular", "that", "wa", "granted", "more", "than", "100", "dollar", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Regular\"", null ], "or", [ false, 3, [ 0, [ 0, 11, false ], null ], 100.0, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "response", "received", "date", "for", "the", "document", "described", "as", "Regular", "that", "was", "granted", "more", "than", "100", "dollars", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "response", "received", "date" ], [ "for" ], [ "document" ], [ "described" ], [ "a" ], [ "regular" ], [ "that" ], [ "wa" ], [ "granted" ], [ "more" ], [ "than" ], [ "100" ], [ "dollar" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "response", "NN" ], [ "received", "JJ" ], [ "date", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "described", "VBD" ], [ "a", "DT" ], [ "regular", "JJ" ], [ "that", "WDT" ], [ "wa", "VBP" ], [ "granted", "VBN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "dollar", "NN" ], [ "?", "." ] ], "values": [ "Regular", "100.000000", "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(1) Filter(2) A(0) C(2) T(0) V(0) Filter(5) A(0) C(9) T(2) V(2)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code = 'researcher' )", "query_toks": [ "SELECT", "project_details", "FROM", "Projects", "WHERE", "project_id", "NOT", "IN", "(", "SELECT", "project_id", "FROM", "Project_Staff", "WHERE", "role_code", "=", "'researcher", "'", ")" ], "query_toks_no_value": [ "select", "project_details", "from", "projects", "where", "project_id", "not", "in", "(", "select", "project_id", "from", "project_staff", "where", "role_code", "=", "value", ")" ], "question": "List the project details of the projects which did not hire any staff for a researcher role.", "question_toks": [ "list", "project", "detail", "of", "project", "which", "did", "not", "hire", "any", "staff", "for", "a", "researcher", "role", "." ], "sql": { "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": [ [ true, 8, [ 0, [ 0, 29, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"researcher\"", null ] ] }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "List", "the", "project", "details", "of", "the", "projects", "which", "did", "not", "hire", "any", "staff", "for", "a", "researcher", "role", "." ], "question_arg": [ [ "list" ], [ "project", "detail" ], [ "of" ], [ "project" ], [ "which" ], [ "did" ], [ "not" ], [ "hire" ], [ "any" ], [ "staff" ], [ "for" ], [ "a" ], [ "researcher" ], [ "role" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "project", "NN" ], [ "detail", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "which", "WDT" ], [ "did", "VBD" ], [ "not", "RB" ], [ "hire", "VB" ], [ "any", "DT" ], [ "staff", "NN" ], [ "for", "IN" ], [ "a", "DT" ], [ "researcher", "JJ" ], [ "role", "NN" ], [ ".", "." ] ], "values": [ "Research", "researcher" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(22) T(7) Filter(19) A(0) C(15) T(7) Root(3) Sel(0) N(0) A(0) C(15) T(6) Filter(2) A(0) C(19) T(6) V(1)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code = 'researcher' )", "query_toks": [ "SELECT", "project_details", "FROM", "Projects", "WHERE", "project_id", "NOT", "IN", "(", "SELECT", "project_id", "FROM", "Project_Staff", "WHERE", "role_code", "=", "'researcher", "'", ")" ], "query_toks_no_value": [ "select", "project_details", "from", "projects", "where", "project_id", "not", "in", "(", "select", "project_id", "from", "project_staff", "where", "role_code", "=", "value", ")" ], "question": "What are the details for all projects that did not hire any staff in a research role?", "question_toks": [ "what", "are", "detail", "for", "all", "project", "that", "did", "not", "hire", "any", "staff", "in", "a", "research", "role", "?" ], "sql": { "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": [ [ true, 8, [ 0, [ 0, 29, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"researcher\"", null ] ] }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "details", "for", "all", "projects", "that", "did", "not", "hire", "any", "staff", "in", "a", "research", "role", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "for" ], [ "all" ], [ "project" ], [ "that" ], [ "did" ], [ "not" ], [ "hire" ], [ "any" ], [ "staff" ], [ "in" ], [ "a" ], [ "research" ], [ "role" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "VBN" ], [ "for", "IN" ], [ "all", "DT" ], [ "project", "NN" ], [ "that", "WDT" ], [ "did", "VBD" ], [ "not", "RB" ], [ "hire", "VB" ], [ "any", "DT" ], [ "staff", "NN" ], [ "in", "IN" ], [ "a", "DT" ], [ "research", "NN" ], [ "role", "NN" ], [ "?", "." ] ], "values": [ "Research", "researcher" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(22) T(7) Filter(19) A(0) C(15) T(7) Root(3) Sel(0) N(0) A(0) C(15) T(6) Filter(2) A(0) C(19) T(6) V(1)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.task_details , T1.task_id , T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'omnis' UNION SELECT T1.task_details , T1.task_id , T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.project_id HAVING count(*) > 2", "query_toks": [ "SELECT", "T1.task_details", ",", "T1.task_id", ",", "T2.project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "WHERE", "T2.project_details", "=", "'omnis", "'", "UNION", "SELECT", "T1.task_details", ",", "T1.task_id", ",", "T2.project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "JOIN", "Project_outcomes", "AS", "T3", "ON", "T2.project_id", "=", "T3.project_id", "GROUP", "BY", "T2.project_id", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "value", "union", "select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "project_outcomes", "as", "t3", "on", "t2", ".", "project_id", "=", "t3", ".", "project_id", "group", "by", "t2", ".", "project_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the task details, task id and project id for the projects which are detailed as 'omnis' or have more than 2 outcomes?", "question_toks": [ "what", "are", "task", "detail", ",", "task", "id", "and", "project", "id", "for", "project", "which", "are", "detailed", "a", "'", "omnis", "'", "or", "have", "more", "than", "2", "outcome", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 40, false ], null ], [ 0, 29, false ], null ] ], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 41, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 40, false ], null ], [ 0, 29, false ], null ] ], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 41, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"omnis\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "task", "details", ",", "task", "id", "and", "project", "id", "for", "the", "projects", "which", "are", "detailed", "as", "'omnis", "'", "or", "have", "more", "than", "2", "outcomes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "task", "detail" ], [ "," ], [ "task", "id" ], [ "and" ], [ "project", "id" ], [ "for" ], [ "project" ], [ "which" ], [ "are" ], [ "detailed" ], [ "a" ], [ "'" ], [ "omnis" ], [ "'" ], [ "or" ], [ "have" ], [ "more" ], [ "than" ], [ "2" ], [ "outcome" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "task", "JJ" ], [ "detail", "NN" ], [ ",", "," ], [ "task", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "project", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "project", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "detailed", "VBN" ], [ "a", "DT" ], [ "'", "''" ], [ "omnis", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "outcome", "NN" ], [ "?", "." ] ], "values": [ "2", "omnis" ], "rule_label": "Root1(1) Root(3) Sel(0) N(2) A(0) C(28) T(11) A(0) C(27) T(11) A(0) C(15) T(7) Filter(2) A(0) C(22) T(7) V(1) Root(3) Sel(0) N(2) A(0) C(28) T(11) A(0) C(27) T(11) A(0) C(15) T(7) Filter(5) A(3) C(0) T(7) V(0)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.task_details , T1.task_id , T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'omnis' UNION SELECT T1.task_details , T1.task_id , T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.project_id HAVING count(*) > 2", "query_toks": [ "SELECT", "T1.task_details", ",", "T1.task_id", ",", "T2.project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "WHERE", "T2.project_details", "=", "'omnis", "'", "UNION", "SELECT", "T1.task_details", ",", "T1.task_id", ",", "T2.project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "JOIN", "Project_outcomes", "AS", "T3", "ON", "T2.project_id", "=", "T3.project_id", "GROUP", "BY", "T2.project_id", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "value", "union", "select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "project_outcomes", "as", "t3", "on", "t2", ".", "project_id", "=", "t3", ".", "project_id", "group", "by", "t2", ".", "project_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the task details, task ids, and project ids for the progrects that are detailed as 'omnis' or have at least 3 outcomes?", "question_toks": [ "what", "are", "task", "detail", ",", "task", "id", ",", "and", "project", "id", "for", "progrects", "that", "are", "detailed", "a", "'", "omnis", "'", "or", "have", "at", "least", "3", "outcome", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 40, false ], null ], [ 0, 29, false ], null ] ], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 41, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 40, false ], null ], [ 0, 29, false ], null ] ], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 41, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"omnis\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "task", "details", ",", "task", "ids", ",", "and", "project", "ids", "for", "the", "progrects", "that", "are", "detailed", "as", "'omnis", "'", "or", "have", "at", "least", "3", "outcomes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "task", "detail" ], [ "," ], [ "task", "id" ], [ "," ], [ "and" ], [ "project", "id" ], [ "for" ], [ "progrects" ], [ "that" ], [ "are" ], [ "detailed" ], [ "a" ], [ "'" ], [ "omnis" ], [ "'" ], [ "or" ], [ "have" ], [ "at" ], [ "least" ], [ "3" ], [ "outcome" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "task", "JJ" ], [ "detail", "NN" ], [ ",", "," ], [ "task", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "project", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "progrects", "NNS" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "detailed", "VBN" ], [ "a", "DT" ], [ "'", "''" ], [ "omnis", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "3", "CD" ], [ "outcome", "NN" ], [ "?", "." ] ], "values": [ "omnis", "3", "2" ], "rule_label": "Root1(1) Root(3) Sel(0) N(2) A(0) C(28) T(11) A(0) C(27) T(11) A(0) C(15) T(7) Filter(2) A(0) C(22) T(7) V(0) Root(3) Sel(0) N(2) A(0) C(28) T(11) A(0) C(27) T(11) A(0) C(15) T(7) Filter(5) A(3) C(0) T(7) V(2)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT date_from , date_to FROM Project_Staff WHERE role_code = 'researcher'", "query_toks": [ "SELECT", "date_from", ",", "date_to", "FROM", "Project_Staff", "WHERE", "role_code", "=", "'researcher", "'" ], "query_toks_no_value": [ "select", "date_from", ",", "date_to", "from", "project_staff", "where", "role_code", "=", "value" ], "question": "When do all the researcher role staff start to work, and when do they stop working?", "question_toks": [ "when", "do", "all", "researcher", "role", "staff", "start", "to", "work", ",", "and", "when", "do", "they", "stop", "working", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"researcher\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "When", "do", "all", "the", "researcher", "role", "staff", "start", "to", "work", ",", "and", "when", "do", "they", "stop", "working", "?" ], "question_arg": [ [ "when" ], [ "do" ], [ "all" ], [ "researcher" ], [ "role" ], [ "staff" ], [ "start" ], [ "to" ], [ "work" ], [ "," ], [ "and" ], [ "when" ], [ "do" ], [ "they" ], [ "stop" ], [ "working" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "do", "VBP" ], [ "all", "DT" ], [ "researcher", "VB" ], [ "role", "NN" ], [ "staff", "NN" ], [ "start", "VB" ], [ "to", "TO" ], [ "work", "VB" ], [ ",", "," ], [ "and", "CC" ], [ "when", "WRB" ], [ "do", "VBP" ], [ "they", "PRP" ], [ "stop", "VB" ], [ "working", "VBG" ], [ "?", "." ] ], "values": [ "Research", "researcher" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(20) T(6) A(0) C(21) T(6) Filter(2) A(0) C(19) T(6) V(1)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT date_from , date_to FROM Project_Staff WHERE role_code = 'researcher'", "query_toks": [ "SELECT", "date_from", ",", "date_to", "FROM", "Project_Staff", "WHERE", "role_code", "=", "'researcher", "'" ], "query_toks_no_value": [ "select", "date_from", ",", "date_to", "from", "project_staff", "where", "role_code", "=", "value" ], "question": "When did researchers start and stop working?", "question_toks": [ "when", "did", "researcher", "start", "and", "stop", "working", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"researcher\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "When", "did", "researchers", "start", "and", "stop", "working", "?" ], "question_arg": [ [ "when" ], [ "did" ], [ "researcher" ], [ "start" ], [ "and" ], [ "stop" ], [ "working" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "did", "VBD" ], [ "researcher", "VB" ], [ "start", "NN" ], [ "and", "CC" ], [ "stop", "VB" ], [ "working", "NN" ], [ "?", "." ] ], "values": [ "researcher" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(20) T(6) A(0) C(21) T(6) Filter(2) A(0) C(19) T(6) V(0)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT count(DISTINCT role_code) FROM Project_Staff", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "role_code", ")", "FROM", "Project_Staff" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "role_code", ")", "from", "project_staff" ], "question": "How many kinds of roles are there for the staff?", "question_toks": [ "how", "many", "kind", "of", "role", "are", "there", "for", "staff", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 25, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "How", "many", "kinds", "of", "roles", "are", "there", "for", "the", "staff", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "kind" ], [ "of" ], [ "role" ], [ "are" ], [ "there" ], [ "for" ], [ "staff" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "kind", "NN" ], [ "of", "IN" ], [ "role", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "for", "IN" ], [ "staff", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(19) T(6)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT count(DISTINCT role_code) FROM Project_Staff", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "role_code", ")", "FROM", "Project_Staff" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "role_code", ")", "from", "project_staff" ], "question": "How many different roles are there on the project staff?", "question_toks": [ "how", "many", "different", "role", "are", "there", "on", "project", "staff", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 25, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "How", "many", "different", "roles", "are", "there", "on", "the", "project", "staff", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "role" ], [ "are" ], [ "there" ], [ "on" ], [ "project", "staff" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "role", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "on", "IN" ], [ "project", "NN" ], [ "staff", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(19) T(6)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT sum(grant_amount) , organisation_id FROM Grants GROUP BY organisation_id", "query_toks": [ "SELECT", "sum", "(", "grant_amount", ")", ",", "organisation_id", "FROM", "Grants", "GROUP", "BY", "organisation_id" ], "query_toks_no_value": [ "select", "sum", "(", "grant_amount", ")", ",", "organisation_id", "from", "grants", "group", "by", "organisation_id" ], "question": "What is the total amount of grants given by each organisations? Also list the organisation id.", "question_toks": [ "what", "is", "total", "amount", "of", "grant", "given", "by", "each", "organisation", "?", "also", "list", "organisation", "id", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "total", "amount", "of", "grants", "given", "by", "each", "organisations", "?", "Also", "list", "the", "organisation", "id", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "amount" ], [ "of" ], [ "grant" ], [ "given" ], [ "by" ], [ "each" ], [ "organisation" ], [ "?" ], [ "also" ], [ "list" ], [ "organisation", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "grant", "NN" ], [ "given", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "organisation", "NN" ], [ "?", "." ], [ "also", "RB" ], [ "list", "JJ" ], [ "organisation", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(9) T(2) A(0) C(8) T(2)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT sum(grant_amount) , organisation_id FROM Grants GROUP BY organisation_id", "query_toks": [ "SELECT", "sum", "(", "grant_amount", ")", ",", "organisation_id", "FROM", "Grants", "GROUP", "BY", "organisation_id" ], "query_toks_no_value": [ "select", "sum", "(", "grant_amount", ")", ",", "organisation_id", "from", "grants", "group", "by", "organisation_id" ], "question": "What is the total amount of grant money given to each organization and what is its id?", "question_toks": [ "what", "is", "total", "amount", "of", "grant", "money", "given", "to", "each", "organization", "and", "what", "is", "it", "id", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "total", "amount", "of", "grant", "money", "given", "to", "each", "organization", "and", "what", "is", "its", "id", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "amount" ], [ "of" ], [ "grant" ], [ "money" ], [ "given" ], [ "to" ], [ "each" ], [ "organization" ], [ "and" ], [ "what" ], [ "is" ], [ "it" ], [ "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "grant", "JJ" ], [ "money", "NN" ], [ "given", "VBN" ], [ "to", "TO" ], [ "each", "DT" ], [ "organization", "NN" ], [ "and", "CC" ], [ "what", "WP" ], [ "is", "VBZ" ], [ "it", "PRP" ], [ "id", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(9) T(2) A(0) C(8) T(2)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id JOIN Research_outcomes AS T3 ON T2.outcome_code = T3.outcome_code WHERE T3.outcome_description LIKE '%Published%'", "query_toks": [ "SELECT", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "JOIN", "Research_outcomes", "AS", "T3", "ON", "T2.outcome_code", "=", "T3.outcome_code", "WHERE", "T3.outcome_description", "LIKE", "'", "%", "Published", "%", "'" ], "query_toks_no_value": [ "select", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "research_outcomes", "as", "t3", "on", "t2", ".", "outcome_code", "=", "t3", ".", "outcome_code", "where", "t3", ".", "outcome_description", "like", "value" ], "question": "List the project details of the projects with the research outcome described with the substring 'Published'.", "question_toks": [ "list", "project", "detail", "of", "project", "with", "research", "outcome", "described", "with", "substring", "'", "published", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 29, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 9, [ 0, [ 0, 33, false ], null ], "\"%Published%\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "List", "the", "project", "details", "of", "the", "projects", "with", "the", "research", "outcome", "described", "with", "the", "substring", "'Published", "'", "." ], "question_arg": [ [ "list" ], [ "project", "detail" ], [ "of" ], [ "project" ], [ "with" ], [ "research", "outcome" ], [ "described" ], [ "with" ], [ "substring" ], [ "'" ], [ "published" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "project", "NN" ], [ "detail", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "with", "IN" ], [ "research", "NN" ], [ "outcome", "NN" ], [ "described", "VBD" ], [ "with", "IN" ], [ "substring", "VBG" ], [ "'", "''" ], [ "published", "VBN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Research", "researcher", "Published" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(22) T(7) Filter(0) Filter(18) A(0) C(15) T(7) Root(5) Sel(0) N(0) A(0) C(15) T(5) Filter(9) A(0) C(23) T(8) V(2)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id JOIN Research_outcomes AS T3 ON T2.outcome_code = T3.outcome_code WHERE T3.outcome_description LIKE '%Published%'", "query_toks": [ "SELECT", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "JOIN", "Research_outcomes", "AS", "T3", "ON", "T2.outcome_code", "=", "T3.outcome_code", "WHERE", "T3.outcome_description", "LIKE", "'", "%", "Published", "%", "'" ], "query_toks_no_value": [ "select", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "research_outcomes", "as", "t3", "on", "t2", ".", "outcome_code", "=", "t3", ".", "outcome_code", "where", "t3", ".", "outcome_description", "like", "value" ], "question": "What are the details for the project whose research has been published?", "question_toks": [ "what", "are", "detail", "for", "project", "whose", "research", "ha", "been", "published", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 29, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 9, [ 0, [ 0, 33, false ], null ], "\"%Published%\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "details", "for", "the", "project", "whose", "research", "has", "been", "published", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "for" ], [ "project" ], [ "whose" ], [ "research" ], [ "ha" ], [ "been" ], [ "published" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "NN" ], [ "for", "IN" ], [ "project", "NN" ], [ "whose", "WP$" ], [ "research", "NN" ], [ "ha", "NN" ], [ "been", "VBN" ], [ "published", "VBN" ], [ "?", "." ] ], "values": [ "Research", "researcher", "Published" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(22) T(7) Filter(0) Filter(18) A(0) C(15) T(7) Root(5) Sel(0) N(0) A(0) C(15) T(5) Filter(9) A(0) C(23) T(8) V(2)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.project_id , count(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY count(*) ASC", "query_toks": [ "SELECT", "T1.project_id", ",", "count", "(", "*", ")", "FROM", "Project_Staff", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "GROUP", "BY", "T1.project_id", "ORDER", "BY", "count", "(", "*", ")", "ASC" ], "query_toks_no_value": [ "select", "t1", ".", "project_id", ",", "count", "(", "*", ")", "from", "project_staff", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "group", "by", "t1", ".", "project_id", "order", "by", "count", "(", "*", ")", "asc" ], "question": "How many staff does each project has? List the project id and the number in an ascending order.", "question_toks": [ "how", "many", "staff", "doe", "each", "project", "ha", "?", "list", "project", "id", "and", "number", "in", "an", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 29, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "How", "many", "staff", "does", "each", "project", "has", "?", "List", "the", "project", "id", "and", "the", "number", "in", "an", "ascending", "order", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "staff" ], [ "doe" ], [ "each" ], [ "project" ], [ "ha" ], [ "?" ], [ "list" ], [ "project", "id" ], [ "and" ], [ "number" ], [ "in" ], [ "an" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "staff", "NN" ], [ "doe", "VBZ" ], [ "each", "DT" ], [ "project", "NN" ], [ "ha", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "project", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "in", "IN" ], [ "an", "DT" ], [ "ascending", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(15) T(6) A(3) C(0) T(7) Order(1) A(3) C(0) T(7)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.project_id , count(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY count(*) ASC", "query_toks": [ "SELECT", "T1.project_id", ",", "count", "(", "*", ")", "FROM", "Project_Staff", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "GROUP", "BY", "T1.project_id", "ORDER", "BY", "count", "(", "*", ")", "ASC" ], "query_toks_no_value": [ "select", "t1", ".", "project_id", ",", "count", "(", "*", ")", "from", "project_staff", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "group", "by", "t1", ".", "project_id", "order", "by", "count", "(", "*", ")", "asc" ], "question": "For each project id, how many staff does it have? List them in increasing order.", "question_toks": [ "for", "each", "project", "id", ",", "how", "many", "staff", "doe", "it", "have", "?", "list", "them", "in", "increasing", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 29, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "For", "each", "project", "id", ",", "how", "many", "staff", "does", "it", "have", "?", "List", "them", "in", "increasing", "order", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "project", "id" ], [ "," ], [ "how" ], [ "many" ], [ "staff" ], [ "doe" ], [ "it" ], [ "have" ], [ "?" ], [ "list" ], [ "them" ], [ "in" ], [ "increasing" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "project", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "staff", "NN" ], [ "doe", "VBP" ], [ "it", "PRP" ], [ "have", "VB" ], [ "?", "." ], [ "list", "VB" ], [ "them", "PRP" ], [ "in", "IN" ], [ "increasing", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(15) T(6) A(3) C(0) T(7) Order(1) A(3) C(0) T(7)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT role_description FROM Staff_Roles WHERE role_code = 'researcher'", "query_toks": [ "SELECT", "role_description", "FROM", "Staff_Roles", "WHERE", "role_code", "=", "'researcher", "'" ], "query_toks_no_value": [ "select", "role_description", "from", "staff_roles", "where", "role_code", "=", "value" ], "question": "What is the complete description of the researcher role.", "question_toks": [ "what", "is", "complete", "description", "of", "researcher", "role", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 37, false ], null ], "\"researcher\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "complete", "description", "of", "the", "researcher", "role", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "complete" ], [ "description" ], [ "of" ], [ "researcher" ], [ "role" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "complete", "JJ" ], [ "description", "NN" ], [ "of", "IN" ], [ "researcher", "NN" ], [ "role", "NN" ], [ ".", "." ] ], "values": [ "Research", "researcher" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(26) T(10) Filter(2) A(0) C(19) T(10) V(1)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT role_description FROM Staff_Roles WHERE role_code = 'researcher'", "query_toks": [ "SELECT", "role_description", "FROM", "Staff_Roles", "WHERE", "role_code", "=", "'researcher", "'" ], "query_toks_no_value": [ "select", "role_description", "from", "staff_roles", "where", "role_code", "=", "value" ], "question": "What is the complete description of the job of a researcher?", "question_toks": [ "what", "is", "complete", "description", "of", "job", "of", "a", "researcher", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 37, false ], null ], "\"researcher\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "complete", "description", "of", "the", "job", "of", "a", "researcher", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "complete" ], [ "description" ], [ "of" ], [ "job" ], [ "of" ], [ "a" ], [ "researcher" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "complete", "JJ" ], [ "description", "NN" ], [ "of", "IN" ], [ "job", "NN" ], [ "of", "IN" ], [ "a", "DT" ], [ "researcher", "NN" ], [ "?", "." ] ], "values": [ "Research", "researcher" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(26) T(10) Filter(2) A(0) C(19) T(10) V(1)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT date_from FROM Project_Staff ORDER BY date_from ASC LIMIT 1", "query_toks": [ "SELECT", "date_from", "FROM", "Project_Staff", "ORDER", "BY", "date_from", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "date_from", "from", "project_staff", "order", "by", "date_from", "asc", "limit", "value" ], "question": "When did the first staff for the projects started working?", "question_toks": [ "when", "did", "first", "staff", "for", "project", "started", "working", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 26, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "When", "did", "the", "first", "staff", "for", "the", "projects", "started", "working", "?" ], "question_arg": [ [ "when" ], [ "did" ], [ "first" ], [ "staff" ], [ "for" ], [ "project" ], [ "started" ], [ "working" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "did", "VBD" ], [ "first", "JJ" ], [ "staff", "NN" ], [ "for", "IN" ], [ "project", "NN" ], [ "started", "VBD" ], [ "working", "VBG" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(20) T(6) Sup(1) A(0) C(20) T(6)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT date_from FROM Project_Staff ORDER BY date_from ASC LIMIT 1", "query_toks": [ "SELECT", "date_from", "FROM", "Project_Staff", "ORDER", "BY", "date_from", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "date_from", "from", "project_staff", "order", "by", "date_from", "asc", "limit", "value" ], "question": "When did the first staff member start working?", "question_toks": [ "when", "did", "first", "staff", "member", "start", "working", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 26, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "When", "did", "the", "first", "staff", "member", "start", "working", "?" ], "question_arg": [ [ "when" ], [ "did" ], [ "first" ], [ "staff" ], [ "member" ], [ "start" ], [ "working" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "did", "VBD" ], [ "first", "JJ" ], [ "staff", "NN" ], [ "member", "NN" ], [ "start", "NN" ], [ "working", "VBG" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(20) T(6) Sup(1) A(0) C(20) T(6)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.project_details , T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.project_details", ",", "T1.project_id", "FROM", "Projects", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "GROUP", "BY", "T1.project_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "project_details", ",", "t1", ".", "project_id", "from", "projects", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "group", "by", "t1", ".", "project_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which project made the most number of outcomes? List the project details and the project id.", "question_toks": [ "which", "project", "made", "most", "number", "of", "outcome", "?", "list", "project", "detail", "and", "project", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 29, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "Which", "project", "made", "the", "most", "number", "of", "outcomes", "?", "List", "the", "project", "details", "and", "the", "project", "id", "." ], "question_arg": [ [ "which" ], [ "project" ], [ "made" ], [ "most" ], [ "number" ], [ "of" ], [ "outcome" ], [ "?" ], [ "list" ], [ "project", "detail" ], [ "and" ], [ "project", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "project", "NN" ], [ "made", "VBD" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "outcome", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "project", "NN" ], [ "detail", "NN" ], [ "and", "CC" ], [ "project", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(22) T(7) A(0) C(15) T(7) Sup(0) A(3) C(0) T(5) Filter(18) A(0) C(15) T(7) Root(5) Sel(0) N(0) A(0) C(15) T(5)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.project_details , T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.project_details", ",", "T1.project_id", "FROM", "Projects", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "GROUP", "BY", "T1.project_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "project_details", ",", "t1", ".", "project_id", "from", "projects", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "group", "by", "t1", ".", "project_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the details and id of the project with the most outcomes?", "question_toks": [ "what", "are", "detail", "and", "id", "of", "project", "with", "most", "outcome", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 29, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "details", "and", "id", "of", "the", "project", "with", "the", "most", "outcomes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "and" ], [ "id" ], [ "of" ], [ "project" ], [ "with" ], [ "most" ], [ "outcome" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "JJ" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "outcome", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(22) T(7) A(0) C(15) T(7) Sup(0) A(3) C(0) T(5) Filter(18) A(0) C(15) T(7) Root(5) Sel(0) N(0) A(0) C(15) T(5)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_outcomes )", "query_toks": [ "SELECT", "project_details", "FROM", "Projects", "WHERE", "project_id", "NOT", "IN", "(", "SELECT", "project_id", "FROM", "Project_outcomes", ")" ], "query_toks_no_value": [ "select", "project_details", "from", "projects", "where", "project_id", "not", "in", "(", "select", "project_id", "from", "project_outcomes", ")" ], "question": "Which projects have no outcome? List the project details.", "question_toks": [ "which", "project", "have", "no", "outcome", "?", "list", "project", "detail", "." ], "sql": { "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": [ [ true, 8, [ 0, [ 0, 29, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "Which", "projects", "have", "no", "outcome", "?", "List", "the", "project", "details", "." ], "question_arg": [ [ "which" ], [ "project" ], [ "have" ], [ "no" ], [ "outcome" ], [ "?" ], [ "list" ], [ "project", "detail" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "project", "NN" ], [ "have", "VBP" ], [ "no", "DT" ], [ "outcome", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "project", "NN" ], [ "detail", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(22) T(7) Filter(19) A(0) C(15) T(7) Root(5) Sel(0) N(0) A(0) C(15) T(5)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_outcomes )", "query_toks": [ "SELECT", "project_details", "FROM", "Projects", "WHERE", "project_id", "NOT", "IN", "(", "SELECT", "project_id", "FROM", "Project_outcomes", ")" ], "query_toks_no_value": [ "select", "project_details", "from", "projects", "where", "project_id", "not", "in", "(", "select", "project_id", "from", "project_outcomes", ")" ], "question": "What are the details of the project with no outcomes?", "question_toks": [ "what", "are", "detail", "of", "project", "with", "no", "outcome", "?" ], "sql": { "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": [ [ true, 8, [ 0, [ 0, 29, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "details", "of", "the", "project", "with", "no", "outcomes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "of" ], [ "project" ], [ "with" ], [ "no" ], [ "outcome" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "with", "IN" ], [ "no", "DT" ], [ "outcome", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(22) T(7) Filter(19) A(0) C(15) T(7) Root(5) Sel(0) N(0) A(0) C(15) T(5)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.organisation_id , T1.organisation_type , T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.organisation_id", ",", "T1.organisation_type", ",", "T1.organisation_details", "FROM", "Organisations", "AS", "T1", "JOIN", "Research_Staff", "AS", "T2", "ON", "T1.organisation_id", "=", "T2.employer_organisation_id", "GROUP", "BY", "T1.organisation_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "organisation_id", ",", "t1", ".", "organisation_type", ",", "t1", ".", "organisation_details", "from", "organisations", "as", "t1", "join", "research_staff", "as", "t2", "on", "t1", ".", "organisation_id", "=", "t2", ".", "employer_organisation_id", "group", "by", "t1", ".", "organisation_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which organisation hired the most number of research staff? List the organisation id, type and detail.", "question_toks": [ "which", "organisation", "hired", "most", "number", "of", "research", "staff", "?", "list", "organisation", "id", ",", "type", "and", "detail", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 35, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 17, 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 ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "Which", "organisation", "hired", "the", "most", "number", "of", "research", "staff", "?", "List", "the", "organisation", "id", ",", "type", "and", "detail", "." ], "question_arg": [ [ "which" ], [ "organisation" ], [ "hired" ], [ "most" ], [ "number" ], [ "of" ], [ "research", "staff" ], [ "?" ], [ "list" ], [ "organisation", "id" ], [ "," ], [ "type" ], [ "and" ], [ "detail" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "organisation", "NN" ], [ "hired", "VBD" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "research", "NN" ], [ "staff", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "organisation", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "type", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ ".", "." ] ], "values": [ "Research", "researcher" ], "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(8) T(4) A(0) C(12) T(4) A(0) C(14) T(4) Sup(0) A(3) C(0) T(9) Filter(18) A(0) C(8) T(4) Root(5) Sel(0) N(0) A(0) C(24) T(9)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.organisation_id , T1.organisation_type , T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.organisation_id", ",", "T1.organisation_type", ",", "T1.organisation_details", "FROM", "Organisations", "AS", "T1", "JOIN", "Research_Staff", "AS", "T2", "ON", "T1.organisation_id", "=", "T2.employer_organisation_id", "GROUP", "BY", "T1.organisation_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "organisation_id", ",", "t1", ".", "organisation_type", ",", "t1", ".", "organisation_details", "from", "organisations", "as", "t1", "join", "research_staff", "as", "t2", "on", "t1", ".", "organisation_id", "=", "t2", ".", "employer_organisation_id", "group", "by", "t1", ".", "organisation_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the ids, types, and details of the organization with the most research staff?", "question_toks": [ "what", "are", "id", ",", "type", ",", "and", "detail", "of", "organization", "with", "most", "research", "staff", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 35, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 17, 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 ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "ids", ",", "types", ",", "and", "details", "of", "the", "organization", "with", "the", "most", "research", "staff", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "," ], [ "type" ], [ "," ], [ "and" ], [ "detail" ], [ "of" ], [ "organization" ], [ "with" ], [ "most" ], [ "research", "staff" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ ",", "," ], [ "type", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "detail", "NN" ], [ "of", "IN" ], [ "organization", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "research", "NN" ], [ "staff", "NN" ], [ "?", "." ] ], "values": [ "Research", "researcher" ], "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(8) T(4) A(0) C(12) T(4) A(0) C(14) T(4) Sup(0) A(3) C(0) T(9) Filter(18) A(0) C(8) T(4) Root(5) Sel(0) N(0) A(0) C(24) T(9)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.role_description , T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.role_description", ",", "T2.staff_id", "FROM", "Staff_Roles", "AS", "T1", "JOIN", "Project_Staff", "AS", "T2", "ON", "T1.role_code", "=", "T2.role_code", "JOIN", "Project_outcomes", "AS", "T3", "ON", "T2.project_id", "=", "T3.project_id", "GROUP", "BY", "T2.staff_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "role_description", ",", "t2", ".", "staff_id", "from", "staff_roles", "as", "t1", "join", "project_staff", "as", "t2", "on", "t1", ".", "role_code", "=", "t2", ".", "role_code", "join", "project_outcomes", "as", "t3", "on", "t2", ".", "project_id", "=", "t3", ".", "project_id", "group", "by", "t2", ".", "staff_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the role description and the id of the project staff involved in most number of project outcomes?", "question_toks": [ "show", "role", "description", "and", "id", "of", "project", "staff", "involved", "in", "most", "number", "of", "project", "outcome", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "Show", "the", "role", "description", "and", "the", "id", "of", "the", "project", "staff", "involved", "in", "most", "number", "of", "project", "outcomes", "?" ], "question_arg": [ [ "show" ], [ "role", "description" ], [ "and" ], [ "id" ], [ "of" ], [ "project", "staff" ], [ "involved" ], [ "in" ], [ "most" ], [ "number" ], [ "of" ], [ "project", "outcome" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "role", "NN" ], [ "description", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "project", "JJ" ], [ "staff", "NN" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "outcome", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(26) T(10) A(0) C(18) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.role_description , T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.role_description", ",", "T2.staff_id", "FROM", "Staff_Roles", "AS", "T1", "JOIN", "Project_Staff", "AS", "T2", "ON", "T1.role_code", "=", "T2.role_code", "JOIN", "Project_outcomes", "AS", "T3", "ON", "T2.project_id", "=", "T3.project_id", "GROUP", "BY", "T2.staff_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "role_description", ",", "t2", ".", "staff_id", "from", "staff_roles", "as", "t1", "join", "project_staff", "as", "t2", "on", "t1", ".", "role_code", "=", "t2", ".", "role_code", "join", "project_outcomes", "as", "t3", "on", "t2", ".", "project_id", "=", "t3", ".", "project_id", "group", "by", "t2", ".", "staff_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "For each staff id, what is the description of the role that is involved with the most number of projects?", "question_toks": [ "for", "each", "staff", "id", ",", "what", "is", "description", "of", "role", "that", "is", "involved", "with", "most", "number", "of", "project", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "For", "each", "staff", "id", ",", "what", "is", "the", "description", "of", "the", "role", "that", "is", "involved", "with", "the", "most", "number", "of", "projects", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "staff", "id" ], [ "," ], [ "what" ], [ "is" ], [ "description" ], [ "of" ], [ "role" ], [ "that" ], [ "is" ], [ "involved" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "project" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "staff", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "of", "IN" ], [ "role", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "involved", "VBN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(26) T(10) A(0) C(18) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%'", "query_toks": [ "SELECT", "document_type_code", "FROM", "Document_Types", "WHERE", "document_description", "LIKE", "'Initial", "%", "'" ], "query_toks_no_value": [ "select", "document_type_code", "from", "document_types", "where", "document_description", "like", "value" ], "question": "Which document type is described with the prefix 'Initial'?", "question_toks": [ "which", "document", "type", "is", "described", "with", "prefix", "'", "initial", "'", "?" ], "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 ], "\"Initial%\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "Which", "document", "type", "is", "described", "with", "the", "prefix", "'Initial", "'", "?" ], "question_arg": [ [ "which" ], [ "document", "type" ], [ "is" ], [ "described" ], [ "with" ], [ "prefix" ], [ "'" ], [ "initial" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "document", "NN" ], [ "type", "NN" ], [ "is", "VBZ" ], [ "described", "VBN" ], [ "with", "IN" ], [ "prefix", "NN" ], [ "'", "''" ], [ "initial", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Initial" ], "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": "tracking_grants_for_research", "query": "SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%'", "query_toks": [ "SELECT", "document_type_code", "FROM", "Document_Types", "WHERE", "document_description", "LIKE", "'Initial", "%", "'" ], "query_toks_no_value": [ "select", "document_type_code", "from", "document_types", "where", "document_description", "like", "value" ], "question": "What is the type of the document whose description starts with the word 'Initial'?", "question_toks": [ "what", "is", "type", "of", "document", "whose", "description", "start", "with", "word", "'", "initial", "'", "?" ], "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 ], "\"Initial%\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "type", "of", "the", "document", "whose", "description", "starts", "with", "the", "word", "'Initial", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "type" ], [ "of" ], [ "document" ], [ "whose" ], [ "description" ], [ "start" ], [ "with" ], [ "word" ], [ "'" ], [ "initial" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "type", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "whose", "WP$" ], [ "description", "NN" ], [ "start", "NN" ], [ "with", "IN" ], [ "word", "NN" ], [ "'", "''" ], [ "initial", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Initial" ], "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": "tracking_grants_for_research", "query": "SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Regular' INTERSECT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Initial Application'", "query_toks": [ "SELECT", "T1.grant_start_date", "FROM", "Grants", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.grant_id", "=", "T2.grant_id", "JOIN", "Document_Types", "AS", "T3", "ON", "T2.document_type_code", "=", "T3.document_type_code", "WHERE", "T3.document_description", "=", "'Regular", "'", "INTERSECT", "SELECT", "T1.grant_start_date", "FROM", "Grants", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.grant_id", "=", "T2.grant_id", "JOIN", "Document_Types", "AS", "T3", "ON", "T2.document_type_code", "=", "T3.document_type_code", "WHERE", "T3.document_description", "=", "'Initial", "Application", "'" ], "query_toks_no_value": [ "select", "t1", ".", "grant_start_date", "from", "grants", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "grant_id", "=", "t2", ".", "grant_id", "join", "document_types", "as", "t3", "on", "t2", ".", "document_type_code", "=", "t3", ".", "document_type_code", "where", "t3", ".", "document_description", "=", "value", "intersect", "select", "t1", ".", "grant_start_date", "from", "grants", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "grant_id", "=", "t2", ".", "grant_id", "join", "document_types", "as", "t3", "on", "t2", ".", "document_type_code", "=", "t3", ".", "document_type_code", "where", "t3", ".", "document_description", "=", "value" ], "question": "For grants with both documents described as 'Regular' and documents described as 'Initial Application', list its start date.", "question_toks": [ "for", "grant", "with", "both", "document", "described", "a", "'", "regular", "'", "and", "document", "described", "a", "'", "initial", "application", "'", ",", "list", "it", "start", "date", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, 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, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Initial Application\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Regular\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "For", "grants", "with", "both", "documents", "described", "as", "'Regular", "'", "and", "documents", "described", "as", "'Initial", "Application", "'", ",", "list", "its", "start", "date", "." ], "question_arg": [ [ "for" ], [ "grant" ], [ "with" ], [ "both" ], [ "document" ], [ "described" ], [ "a" ], [ "'" ], [ "regular" ], [ "'" ], [ "and" ], [ "document" ], [ "described" ], [ "a" ], [ "'" ], [ "initial" ], [ "application" ], [ "'" ], [ "," ], [ "list" ], [ "it" ], [ "grant", "start", "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "grant", "NN" ], [ "with", "IN" ], [ "both", "DT" ], [ "document", "NN" ], [ "described", "VBD" ], [ "a", "DT" ], [ "'", "''" ], [ "regular", "JJ" ], [ "'", "POS" ], [ "and", "CC" ], [ "document", "NN" ], [ "described", "VBD" ], [ "a", "DT" ], [ "'", "''" ], [ "initial", "JJ" ], [ "application", "NN" ], [ "'", "''" ], [ ",", "," ], [ "list", "NN" ], [ "it", "PRP" ], [ "start", "JJ" ], [ "date", "NN" ], [ ".", "." ] ], "values": [ "Regular", "Initial Application" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(0) Filter(18) A(0) C(4) T(2) Root(5) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(2) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(0) Filter(18) A(0) C(4) T(2) Root(5) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Regular' INTERSECT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Initial Application'", "query_toks": [ "SELECT", "T1.grant_start_date", "FROM", "Grants", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.grant_id", "=", "T2.grant_id", "JOIN", "Document_Types", "AS", "T3", "ON", "T2.document_type_code", "=", "T3.document_type_code", "WHERE", "T3.document_description", "=", "'Regular", "'", "INTERSECT", "SELECT", "T1.grant_start_date", "FROM", "Grants", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.grant_id", "=", "T2.grant_id", "JOIN", "Document_Types", "AS", "T3", "ON", "T2.document_type_code", "=", "T3.document_type_code", "WHERE", "T3.document_description", "=", "'Initial", "Application", "'" ], "query_toks_no_value": [ "select", "t1", ".", "grant_start_date", "from", "grants", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "grant_id", "=", "t2", ".", "grant_id", "join", "document_types", "as", "t3", "on", "t2", ".", "document_type_code", "=", "t3", ".", "document_type_code", "where", "t3", ".", "document_description", "=", "value", "intersect", "select", "t1", ".", "grant_start_date", "from", "grants", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "grant_id", "=", "t2", ".", "grant_id", "join", "document_types", "as", "t3", "on", "t2", ".", "document_type_code", "=", "t3", ".", "document_type_code", "where", "t3", ".", "document_description", "=", "value" ], "question": "For grants that have descriptions of Regular and Initial Applications, what are their start dates?", "question_toks": [ "for", "grant", "that", "have", "description", "of", "regular", "and", "initial", "application", ",", "what", "are", "their", "start", "date", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, 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, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Initial Application\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Regular\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "For", "grants", "that", "have", "descriptions", "of", "Regular", "and", "Initial", "Applications", ",", "what", "are", "their", "start", "dates", "?" ], "question_arg": [ [ "for" ], [ "grant" ], [ "that" ], [ "have" ], [ "description" ], [ "of" ], [ "regular" ], [ "and" ], [ "initial" ], [ "application" ], [ "," ], [ "what" ], [ "are" ], [ "their" ], [ "grant", "start", "date" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "grant", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "description", "NN" ], [ "of", "IN" ], [ "regular", "JJ" ], [ "and", "CC" ], [ "initial", "JJ" ], [ "application", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "are", "VBP" ], [ "their", "PRP$" ], [ "start", "NN" ], [ "date", "NN" ], [ "?", "." ] ], "values": [ "Regular", "Initial Application" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(0) Filter(18) A(0) C(4) T(2) Root(5) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(2) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(0) Filter(18) A(0) C(4) T(2) Root(5) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT grant_id , count(*) FROM Documents GROUP BY grant_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "grant_id", ",", "count", "(", "*", ")", "FROM", "Documents", "GROUP", "BY", "grant_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "grant_id", ",", "count", "(", "*", ")", "from", "documents", "group", "by", "grant_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "How many documents can one grant have at most? List the grant id and number.", "question_toks": [ "how", "many", "document", "can", "one", "grant", "have", "at", "most", "?", "list", "grant", "id", "and", "number", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "How", "many", "documents", "can", "one", "grant", "have", "at", "most", "?", "List", "the", "grant", "id", "and", "number", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "document" ], [ "can" ], [ "one" ], [ "grant" ], [ "have" ], [ "at" ], [ "most" ], [ "?" ], [ "list" ], [ "grant", "id" ], [ "and" ], [ "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "document", "NN" ], [ "can", "MD" ], [ "one", "CD" ], [ "grant", "NN" ], [ "have", "VBP" ], [ "at", "IN" ], [ "most", "JJS" ], [ "?", "." ], [ "list", "NN" ], [ "grant", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(4) T(1) A(3) C(0) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT grant_id , count(*) FROM Documents GROUP BY grant_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "grant_id", ",", "count", "(", "*", ")", "FROM", "Documents", "GROUP", "BY", "grant_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "grant_id", ",", "count", "(", "*", ")", "from", "documents", "group", "by", "grant_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "For each grant id, how many documents does it have, and which one has the most?", "question_toks": [ "for", "each", "grant", "id", ",", "how", "many", "document", "doe", "it", "have", ",", "and", "which", "one", "ha", "most", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "For", "each", "grant", "id", ",", "how", "many", "documents", "does", "it", "have", ",", "and", "which", "one", "has", "the", "most", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "grant", "id" ], [ "," ], [ "how" ], [ "many" ], [ "document" ], [ "doe" ], [ "it" ], [ "have" ], [ "," ], [ "and" ], [ "which" ], [ "one" ], [ "ha" ], [ "most" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "grant", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "document", "NN" ], [ "doe", "NN" ], [ "it", "PRP" ], [ "have", "VBP" ], [ ",", "," ], [ "and", "CC" ], [ "which", "WDT" ], [ "one", "CD" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(4) T(1) A(3) C(0) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.organisation_type_description FROM organisation_Types AS T1 JOIN Organisations AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_details = 'quo'", "query_toks": [ "SELECT", "T1.organisation_type_description", "FROM", "organisation_Types", "AS", "T1", "JOIN", "Organisations", "AS", "T2", "ON", "T1.organisation_type", "=", "T2.organisation_type", "WHERE", "T2.organisation_details", "=", "'quo", "'" ], "query_toks_no_value": [ "select", "t1", ".", "organisation_type_description", "from", "organisation_types", "as", "t1", "join", "organisations", "as", "t2", "on", "t1", ".", "organisation_type", "=", "t2", ".", "organisation_type", "where", "t2", ".", "organisation_details", "=", "value" ], "question": "Find the organisation type description of the organisation detailed as 'quo'.", "question_toks": [ "find", "organisation", "type", "description", "of", "organisation", "detailed", "a", "'", "quo", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"quo\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "Find", "the", "organisation", "type", "description", "of", "the", "organisation", "detailed", "as", "'quo", "'", "." ], "question_arg": [ [ "find" ], [ "organisation", "type", "description" ], [ "of" ], [ "organisation" ], [ "detailed" ], [ "a" ], [ "'" ], [ "quo" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "organisation", "NN" ], [ "type", "JJ" ], [ "description", "NN" ], [ "of", "IN" ], [ "organisation", "NN" ], [ "detailed", "VBD" ], [ "a", "DT" ], [ "'", "''" ], [ "quo", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "quo" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(3) Filter(2) A(0) C(14) T(4) V(0)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.organisation_type_description FROM organisation_Types AS T1 JOIN Organisations AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_details = 'quo'", "query_toks": [ "SELECT", "T1.organisation_type_description", "FROM", "organisation_Types", "AS", "T1", "JOIN", "Organisations", "AS", "T2", "ON", "T1.organisation_type", "=", "T2.organisation_type", "WHERE", "T2.organisation_details", "=", "'quo", "'" ], "query_toks_no_value": [ "select", "t1", ".", "organisation_type_description", "from", "organisation_types", "as", "t1", "join", "organisations", "as", "t2", "on", "t1", ".", "organisation_type", "=", "t2", ".", "organisation_type", "where", "t2", ".", "organisation_details", "=", "value" ], "question": "What is the type description of the organization whose detail is listed as 'quo'?", "question_toks": [ "what", "is", "type", "description", "of", "organization", "whose", "detail", "is", "listed", "a", "'", "quo", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"quo\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "type", "description", "of", "the", "organization", "whose", "detail", "is", "listed", "as", "'quo", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "organisation", "type", "description" ], [ "of" ], [ "organization" ], [ "whose" ], [ "detail" ], [ "is" ], [ "listed" ], [ "a" ], [ "'" ], [ "quo" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "type", "JJ" ], [ "description", "NN" ], [ "of", "IN" ], [ "organization", "NN" ], [ "whose", "WP$" ], [ "detail", "NN" ], [ "is", "VBZ" ], [ "listed", "VBN" ], [ "a", "DT" ], [ "'", "''" ], [ "quo", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "quo" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(3) Filter(2) A(0) C(14) T(4) V(0)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details", "query_toks": [ "SELECT", "organisation_details", "FROM", "Organisations", "AS", "T1", "JOIN", "organisation_Types", "AS", "T2", "ON", "T1.organisation_type", "=", "T2.organisation_type", "WHERE", "T2.organisation_type_description", "=", "'Sponsor", "'", "ORDER", "BY", "organisation_details" ], "query_toks_no_value": [ "select", "organisation_details", "from", "organisations", "as", "t1", "join", "organisation_types", "as", "t2", "on", "t1", ".", "organisation_type", "=", "t2", ".", "organisation_type", "where", "t2", ".", "organisation_type_description", "=", "value", "order", "by", "organisation_details" ], "question": "What are all the details of the organisations described as 'Sponsor'? Sort the result in an ascending order.", "question_toks": [ "what", "are", "all", "detail", "of", "organisation", "described", "a", "'", "sponsor", "'", "?", "sort", "result", "in", "an", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Sponsor\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "all", "the", "details", "of", "the", "organisations", "described", "as", "'Sponsor", "'", "?", "Sort", "the", "result", "in", "an", "ascending", "order", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "detail" ], [ "of" ], [ "organisation" ], [ "described" ], [ "a" ], [ "'" ], [ "sponsor" ], [ "'" ], [ "?" ], [ "sort" ], [ "result" ], [ "in" ], [ "an" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "detail", "NN" ], [ "of", "IN" ], [ "organisation", "NN" ], [ "described", "VBD" ], [ "a", "DT" ], [ "'", "''" ], [ "sponsor", "NN" ], [ "'", "''" ], [ "?", "." ], [ "sort", "NN" ], [ "result", "NN" ], [ "in", "IN" ], [ "an", "DT" ], [ "ascending", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "Sponsor" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(14) T(4) Filter(2) A(0) C(13) T(3) V(0) Order(1) A(0) C(14) T(4)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details", "query_toks": [ "SELECT", "organisation_details", "FROM", "Organisations", "AS", "T1", "JOIN", "organisation_Types", "AS", "T2", "ON", "T1.organisation_type", "=", "T2.organisation_type", "WHERE", "T2.organisation_type_description", "=", "'Sponsor", "'", "ORDER", "BY", "organisation_details" ], "query_toks_no_value": [ "select", "organisation_details", "from", "organisations", "as", "t1", "join", "organisation_types", "as", "t2", "on", "t1", ".", "organisation_type", "=", "t2", ".", "organisation_type", "where", "t2", ".", "organisation_type_description", "=", "value", "order", "by", "organisation_details" ], "question": "What are the details of all organizations that are described as Sponsors and sort the results in ascending order?", "question_toks": [ "what", "are", "detail", "of", "all", "organization", "that", "are", "described", "a", "sponsor", "and", "sort", "result", "in", "ascending", "order", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Sponsor\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "details", "of", "all", "organizations", "that", "are", "described", "as", "Sponsors", "and", "sort", "the", "results", "in", "ascending", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "of" ], [ "all" ], [ "organization" ], [ "that" ], [ "are" ], [ "described" ], [ "a" ], [ "sponsor" ], [ "and" ], [ "sort" ], [ "result" ], [ "in" ], [ "ascending" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "organization", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "described", "VBN" ], [ "a", "DT" ], [ "sponsor", "NN" ], [ "and", "CC" ], [ "sort", "NN" ], [ "result", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "?", "." ] ], "values": [ "Sponsor" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(14) T(4) Filter(2) A(0) C(13) T(3) V(0) Order(1) A(0) C(14) T(4)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT count(*) FROM Project_outcomes WHERE outcome_code = 'Patent'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Project_outcomes", "WHERE", "outcome_code", "=", "'Patent", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "project_outcomes", "where", "outcome_code", "=", "value" ], "question": "How many Patent outcomes are generated from all the projects?", "question_toks": [ "how", "many", "patent", "outcome", "are", "generated", "from", "all", "project", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Patent\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "How", "many", "Patent", "outcomes", "are", "generated", "from", "all", "the", "projects", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "patent" ], [ "outcome" ], [ "are" ], [ "generated" ], [ "from" ], [ "all" ], [ "project" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "patent", "NN" ], [ "outcome", "NN" ], [ "are", "VBP" ], [ "generated", "VBN" ], [ "from", "IN" ], [ "all", "DT" ], [ "project", "NN" ], [ "?", "." ] ], "values": [ "Patent" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(16) T(5) V(0)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT count(*) FROM Project_outcomes WHERE outcome_code = 'Patent'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Project_outcomes", "WHERE", "outcome_code", "=", "'Patent", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "project_outcomes", "where", "outcome_code", "=", "value" ], "question": "How many patents outcomes were listed for all the projects?", "question_toks": [ "how", "many", "patent", "outcome", "were", "listed", "for", "all", "project", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Patent\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "How", "many", "patents", "outcomes", "were", "listed", "for", "all", "the", "projects", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "patent" ], [ "outcome" ], [ "were" ], [ "listed" ], [ "for" ], [ "all" ], [ "project" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "patent", "NN" ], [ "outcome", "NN" ], [ "were", "VBD" ], [ "listed", "VBN" ], [ "for", "IN" ], [ "all", "DT" ], [ "project", "NN" ], [ "?", "." ] ], "values": [ "Patent" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(16) T(5) V(0)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT count(*) FROM Project_Staff WHERE role_code = 'leader' OR date_from < '1989-04-24 23:51:54'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Project_Staff", "WHERE", "role_code", "=", "'leader", "'", "OR", "date_from", "<", "'1989-04-24", "23:51:54", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "project_staff", "where", "role_code", "=", "value", "or", "date_from", "<", "value" ], "question": "How many project staff worked as leaders or started working before '1989-04-24 23:51:54'?", "question_toks": [ "how", "many", "project", "staff", "worked", "a", "leader", "or", "started", "working", "before", "'", "1989-04-24", "23:51:54", "'", "?" ], "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, 25, false ], null ], "\"leader\"", null ], "or", [ false, 4, [ 0, [ 0, 26, false ], null ], "\"1989-04-24 23:51:54\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "How", "many", "project", "staff", "worked", "as", "leaders", "or", "started", "working", "before", "'1989-04-24", "23:51:54", "'", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "project", "staff" ], [ "worked" ], [ "a" ], [ "leader" ], [ "or" ], [ "started" ], [ "working" ], [ "before" ], [ "'" ], [ "1989-04-24" ], [ "23:51:54" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "project", "JJ" ], [ "staff", "NN" ], [ "worked", "VBD" ], [ "a", "DT" ], [ "leader", "NN" ], [ "or", "CC" ], [ "started", "VBD" ], [ "working", "VBG" ], [ "before", "IN" ], [ "'", "POS" ], [ "1989-04-24", "JJ" ], [ "23:51:54", "CD" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "51", "1989", "leader", "54", "1989-04-24", "1989-04-24 23:51:54", "23", "4", "24" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(6) Filter(1) Filter(2) A(0) C(19) T(6) V(2) Filter(4) A(0) C(20) T(6) V(5)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT count(*) FROM Project_Staff WHERE role_code = 'leader' OR date_from < '1989-04-24 23:51:54'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Project_Staff", "WHERE", "role_code", "=", "'leader", "'", "OR", "date_from", "<", "'1989-04-24", "23:51:54", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "project_staff", "where", "role_code", "=", "value", "or", "date_from", "<", "value" ], "question": "How many project members were leaders or started working before '1989-04-24 23:51:54'?", "question_toks": [ "how", "many", "project", "member", "were", "leader", "or", "started", "working", "before", "'", "1989-04-24", "23:51:54", "'", "?" ], "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, 25, false ], null ], "\"leader\"", null ], "or", [ false, 4, [ 0, [ 0, 26, false ], null ], "\"1989-04-24 23:51:54\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "How", "many", "project", "members", "were", "leaders", "or", "started", "working", "before", "'1989-04-24", "23:51:54", "'", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "project" ], [ "member" ], [ "were" ], [ "leader" ], [ "or" ], [ "started" ], [ "working" ], [ "before" ], [ "'" ], [ "1989-04-24" ], [ "23:51:54" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "project", "NN" ], [ "member", "NN" ], [ "were", "VBD" ], [ "leader", "NN" ], [ "or", "CC" ], [ "started", "VBD" ], [ "working", "VBG" ], [ "before", "IN" ], [ "'", "POS" ], [ "1989-04-24", "JJ" ], [ "23:51:54", "CD" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "51", "1989", "54", "1989-04-24", "1989-04-24 23:51:54", "23", "4", "24", "leader" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(6) Filter(1) Filter(2) A(0) C(19) T(6) V(8) Filter(4) A(0) C(20) T(6) V(4)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT date_to FROM Project_Staff ORDER BY date_to DESC LIMIT 1", "query_toks": [ "SELECT", "date_to", "FROM", "Project_Staff", "ORDER", "BY", "date_to", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "date_to", "from", "project_staff", "order", "by", "date_to", "desc", "limit", "value" ], "question": "What is the last date of the staff leaving the projects?", "question_toks": [ "what", "is", "last", "date", "of", "staff", "leaving", "project", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 27, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "last", "date", "of", "the", "staff", "leaving", "the", "projects", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last" ], [ "date" ], [ "of" ], [ "staff" ], [ "leaving" ], [ "project" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "leaving", "VBG" ], [ "project", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(21) T(6) Sup(0) A(0) C(21) T(6)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT date_to FROM Project_Staff ORDER BY date_to DESC LIMIT 1", "query_toks": [ "SELECT", "date_to", "FROM", "Project_Staff", "ORDER", "BY", "date_to", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "date_to", "from", "project_staff", "order", "by", "date_to", "desc", "limit", "value" ], "question": "What is the last date that a staff member left a project?", "question_toks": [ "what", "is", "last", "date", "that", "a", "staff", "member", "left", "a", "project", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 27, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "last", "date", "that", "a", "staff", "member", "left", "a", "project", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last" ], [ "date" ], [ "that" ], [ "a" ], [ "staff" ], [ "member" ], [ "left" ], [ "a" ], [ "project" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "date", "NN" ], [ "that", "IN" ], [ "a", "DT" ], [ "staff", "NN" ], [ "member", "NN" ], [ "left", "VBD" ], [ "a", "DT" ], [ "project", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(21) T(6) Sup(0) A(0) C(21) T(6)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code JOIN Projects AS T3 ON T2.project_id = T3.project_id WHERE T3.project_details = 'sint'", "query_toks": [ "SELECT", "T1.outcome_description", "FROM", "Research_outcomes", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1.outcome_code", "=", "T2.outcome_code", "JOIN", "Projects", "AS", "T3", "ON", "T2.project_id", "=", "T3.project_id", "WHERE", "T3.project_details", "=", "'sint", "'" ], "query_toks_no_value": [ "select", "t1", ".", "outcome_description", "from", "research_outcomes", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "outcome_code", "=", "t2", ".", "outcome_code", "join", "projects", "as", "t3", "on", "t2", ".", "project_id", "=", "t3", ".", "project_id", "where", "t3", ".", "project_details", "=", "value" ], "question": "What are the result description of the project whose detail is 'sint'?", "question_toks": [ "what", "are", "result", "description", "of", "project", "whose", "detail", "is", "'", "sint", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 31, false ], null ], "\"sint\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "result", "description", "of", "the", "project", "whose", "detail", "is", "'sint", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "result" ], [ "description" ], [ "of" ], [ "project" ], [ "whose" ], [ "detail" ], [ "is" ], [ "'" ], [ "sint" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "result", "JJ" ], [ "description", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "whose", "WP$" ], [ "detail", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "sint", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "sint" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(8) Filter(0) Filter(18) A(0) C(16) T(8) Root(5) Sel(0) N(0) A(0) C(16) T(5) Filter(2) A(0) C(22) T(7) V(0)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code JOIN Projects AS T3 ON T2.project_id = T3.project_id WHERE T3.project_details = 'sint'", "query_toks": [ "SELECT", "T1.outcome_description", "FROM", "Research_outcomes", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1.outcome_code", "=", "T2.outcome_code", "JOIN", "Projects", "AS", "T3", "ON", "T2.project_id", "=", "T3.project_id", "WHERE", "T3.project_details", "=", "'sint", "'" ], "query_toks_no_value": [ "select", "t1", ".", "outcome_description", "from", "research_outcomes", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "outcome_code", "=", "t2", ".", "outcome_code", "join", "projects", "as", "t3", "on", "t2", ".", "project_id", "=", "t3", ".", "project_id", "where", "t3", ".", "project_details", "=", "value" ], "question": "What is the description for the results whose project detail is 'sint'?", "question_toks": [ "what", "is", "description", "for", "result", "whose", "project", "detail", "is", "'", "sint", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 31, false ], null ], "\"sint\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "description", "for", "the", "results", "whose", "project", "detail", "is", "'sint", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "for" ], [ "result" ], [ "whose" ], [ "project", "detail" ], [ "is" ], [ "'" ], [ "sint" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "for", "IN" ], [ "result", "NN" ], [ "whose", "WP$" ], [ "project", "NN" ], [ "detail", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "sint", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "sint" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(8) Filter(0) Filter(18) A(0) C(16) T(8) Root(5) Sel(0) N(0) A(0) C(16) T(5) Filter(2) A(0) C(22) T(7) V(0)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.organisation_id , count(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.organisation_id", ",", "count", "(", "*", ")", "FROM", "Projects", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "GROUP", "BY", "T1.organisation_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "organisation_id", ",", "count", "(", "*", ")", "from", "projects", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "group", "by", "t1", ".", "organisation_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "List the organisation id with the maximum outcome count, and the count.", "question_toks": [ "list", "organisation", "id", "with", "maximum", "outcome", "count", ",", "and", "count", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 30, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "List", "the", "organisation", "id", "with", "the", "maximum", "outcome", "count", ",", "and", "the", "count", "." ], "question_arg": [ [ "list" ], [ "organisation", "id" ], [ "with" ], [ "maximum" ], [ "outcome" ], [ "count" ], [ "," ], [ "and" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "organisation", "NN" ], [ "id", "NN" ], [ "with", "IN" ], [ "maximum", "JJ" ], [ "outcome", "NN" ], [ "count", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "count", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(8) T(7) A(3) C(0) T(5) Sup(0) A(3) C(0) T(5)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.organisation_id , count(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.organisation_id", ",", "count", "(", "*", ")", "FROM", "Projects", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "GROUP", "BY", "T1.organisation_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "organisation_id", ",", "count", "(", "*", ")", "from", "projects", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "group", "by", "t1", ".", "organisation_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the id of the organization with the maximum number of outcomes and how many outcomes are there?", "question_toks": [ "what", "is", "id", "of", "organization", "with", "maximum", "number", "of", "outcome", "and", "how", "many", "outcome", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 30, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "organization", "with", "the", "maximum", "number", "of", "outcomes", "and", "how", "many", "outcomes", "are", "there", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "organization" ], [ "with" ], [ "maximum" ], [ "number" ], [ "of" ], [ "outcome" ], [ "and" ], [ "how" ], [ "many" ], [ "outcome" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "organization", "NN" ], [ "with", "IN" ], [ "maximum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "outcome", "NN" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "outcome", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(8) T(7) A(3) C(0) T(5) Sup(0) A(3) C(0) T(5)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT project_details FROM Projects WHERE organisation_id IN ( SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY count(*) DESC LIMIT 1 )", "query_toks": [ "SELECT", "project_details", "FROM", "Projects", "WHERE", "organisation_id", "IN", "(", "SELECT", "organisation_id", "FROM", "Projects", "GROUP", "BY", "organisation_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "project_details", "from", "projects", "where", "organisation_id", "in", "(", "select", "organisation_id", "from", "projects", "group", "by", "organisation_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "List the project details of the projects launched by the organisation", "question_toks": [ "list", "project", "detail", "of", "project", "launched", "by", "organisation" ], "sql": { "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, 8, [ 0, [ 0, 30, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 30, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "List", "the", "project", "details", "of", "the", "projects", "launched", "by", "the", "organisation" ], "question_arg": [ [ "list" ], [ "project", "detail" ], [ "of" ], [ "project" ], [ "launched" ], [ "by" ], [ "organisation" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ] ], "nltk_pos": [ [ "list", "NN" ], [ "project", "NN" ], [ "detail", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "launched", "VBN" ], [ "by", "IN" ], [ "organisation", "NN" ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(22) T(7) Filter(18) A(0) C(8) T(7) Root(2) Sel(0) N(0) A(0) C(8) T(7) Sup(0) A(3) C(0) T(7)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT project_details FROM Projects WHERE organisation_id IN ( SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY count(*) DESC LIMIT 1 )", "query_toks": [ "SELECT", "project_details", "FROM", "Projects", "WHERE", "organisation_id", "IN", "(", "SELECT", "organisation_id", "FROM", "Projects", "GROUP", "BY", "organisation_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "project_details", "from", "projects", "where", "organisation_id", "in", "(", "select", "organisation_id", "from", "projects", "group", "by", "organisation_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "What are the details for the projects which were launched by the organization with the most projects?", "question_toks": [ "what", "are", "detail", "for", "project", "which", "were", "launched", "by", "organization", "with", "most", "project", "?" ], "sql": { "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, 8, [ 0, [ 0, 30, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 30, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "details", "for", "the", "projects", "which", "were", "launched", "by", "the", "organization", "with", "the", "most", "projects", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "for" ], [ "project" ], [ "which" ], [ "were" ], [ "launched" ], [ "by" ], [ "organization" ], [ "with" ], [ "most" ], [ "project" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "NN" ], [ "for", "IN" ], [ "project", "NN" ], [ "which", "WDT" ], [ "were", "VBD" ], [ "launched", "VBN" ], [ "by", "IN" ], [ "organization", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "project", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(22) T(7) Filter(18) A(0) C(8) T(7) Root(2) Sel(0) N(0) A(0) C(8) T(7) Sup(0) A(3) C(0) T(7)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT staff_details FROM Research_Staff ORDER BY staff_details ASC", "query_toks": [ "SELECT", "staff_details", "FROM", "Research_Staff", "ORDER", "BY", "staff_details", "ASC" ], "query_toks_no_value": [ "select", "staff_details", "from", "research_staff", "order", "by", "staff_details", "asc" ], "question": "List the research staff details, and order in ascending order.", "question_toks": [ "list", "research", "staff", "detail", ",", "and", "order", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 36, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "List", "the", "research", "staff", "details", ",", "and", "order", "in", "ascending", "order", "." ], "question_arg": [ [ "list" ], [ "research", "staff" ], [ "detail" ], [ "," ], [ "and" ], [ "order" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "research", "NN" ], [ "staff", "NN" ], [ "detail", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "order", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "Research", "researcher" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(25) T(9) Order(1) A(0) C(25) T(9)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT staff_details FROM Research_Staff ORDER BY staff_details ASC", "query_toks": [ "SELECT", "staff_details", "FROM", "Research_Staff", "ORDER", "BY", "staff_details", "ASC" ], "query_toks_no_value": [ "select", "staff_details", "from", "research_staff", "order", "by", "staff_details", "asc" ], "question": "What details are there on the research staff? List the result in ascending alphabetical order.", "question_toks": [ "what", "detail", "are", "there", "on", "research", "staff", "?", "list", "result", "in", "ascending", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 36, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "details", "are", "there", "on", "the", "research", "staff", "?", "List", "the", "result", "in", "ascending", "alphabetical", "order", "." ], "question_arg": [ [ "what" ], [ "detail" ], [ "are" ], [ "there" ], [ "on" ], [ "research", "staff" ], [ "?" ], [ "list" ], [ "result" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "detail", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "on", "IN" ], [ "research", "NN" ], [ "staff", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "result", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "Research", "researcher" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(25) T(9) Order(1) A(0) C(25) T(9)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT count(*) FROM Tasks", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Tasks" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "tasks" ], "question": "How many tasks are there in total?", "question_toks": [ "how", "many", "task", "are", "there", "in", "total", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "How", "many", "tasks", "are", "there", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "task" ], [ "are" ], [ "there" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "task", "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(11)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT count(*) FROM Tasks", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Tasks" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "tasks" ], "question": "How many tasks are there?", "question_toks": [ "how", "many", "task", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "How", "many", "tasks", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "task" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "task", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(11)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT count(*) , T1.project_details FROM Projects AS T1 JOIN Tasks AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Tasks", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "GROUP", "BY", "T1.project_id" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "tasks", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "group", "by", "t1", ".", "project_id" ], "question": "How many tasks does each project have? List the task count and the project detail.", "question_toks": [ "how", "many", "task", "doe", "each", "project", "have", "?", "list", "task", "count", "and", "project", "detail", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 40, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "How", "many", "tasks", "does", "each", "project", "have", "?", "List", "the", "task", "count", "and", "the", "project", "detail", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "task" ], [ "doe" ], [ "each" ], [ "project" ], [ "have" ], [ "?" ], [ "list" ], [ "task" ], [ "count" ], [ "and" ], [ "project", "detail" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "task", "NN" ], [ "doe", "NNS" ], [ "each", "DT" ], [ "project", "NN" ], [ "have", "VBP" ], [ "?", "." ], [ "list", "NN" ], [ "task", "NN" ], [ "count", "NN" ], [ "and", "CC" ], [ "project", "NN" ], [ "detail", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(11) A(0) C(22) T(7)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT count(*) , T1.project_details FROM Projects AS T1 JOIN Tasks AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Tasks", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "GROUP", "BY", "T1.project_id" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "tasks", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "group", "by", "t1", ".", "project_id" ], "question": "For each project id, how many tasks are there?", "question_toks": [ "for", "each", "project", "id", ",", "how", "many", "task", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 40, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "For", "each", "project", "id", ",", "how", "many", "tasks", "are", "there", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "project", "id" ], [ "," ], [ "how" ], [ "many" ], [ "task" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "project", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "task", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(11) A(0) C(22) T(7)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT role_code FROM Project_Staff WHERE date_from > '2003-04-19 15:06:20' AND date_to < '2016-03-15 00:33:18'", "query_toks": [ "SELECT", "role_code", "FROM", "Project_Staff", "WHERE", "date_from", ">", "'2003-04-19", "15:06:20", "'", "AND", "date_to", "<", "'2016-03-15", "00:33:18", "'" ], "query_toks_no_value": [ "select", "role_code", "from", "project_staff", "where", "date_from", ">", "value", "and", "date_to", "<", "value" ], "question": "What are the staff roles of the staff who", "question_toks": [ "what", "are", "staff", "role", "of", "staff", "who" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 26, false ], null ], "\"2003-04-19 15:06:20\"", null ], "and", [ false, 4, [ 0, [ 0, 27, false ], null ], "\"2016-03-15 00:33:18\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "staff", "roles", "of", "the", "staff", "who" ], "question_arg": [ [ "what" ], [ "are" ], [ "staff", "role" ], [ "of" ], [ "staff" ], [ "who" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "staff", "NN" ], [ "role", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "who", "WP" ] ], "values": [ "2003-04-19 15:06:20", "2016-03-15 00:33:18" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(0) Filter(5) A(0) C(20) T(6) V(0) Filter(4) A(0) C(21) T(6) V(1)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT role_code FROM Project_Staff WHERE date_from > '2003-04-19 15:06:20' AND date_to < '2016-03-15 00:33:18'", "query_toks": [ "SELECT", "role_code", "FROM", "Project_Staff", "WHERE", "date_from", ">", "'2003-04-19", "15:06:20", "'", "AND", "date_to", "<", "'2016-03-15", "00:33:18", "'" ], "query_toks_no_value": [ "select", "role_code", "from", "project_staff", "where", "date_from", ">", "value", "and", "date_to", "<", "value" ], "question": "What roles did staff members play between '2003-04-19 15:06:20' and '2016-03-15 00:33:18'?", "question_toks": [ "what", "role", "did", "staff", "member", "play", "between", "'", "2003-04-19", "15:06:20", "'", "and", "'", "2016-03-15", "00:33:18", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 26, false ], null ], "\"2003-04-19 15:06:20\"", null ], "and", [ false, 4, [ 0, [ 0, 27, false ], null ], "\"2016-03-15 00:33:18\"", null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "roles", "did", "staff", "members", "play", "between", "'2003-04-19", "15:06:20", "'", "and", "'2016-03-15", "00:33:18", "'", "?" ], "question_arg": [ [ "what" ], [ "role" ], [ "did" ], [ "staff" ], [ "member" ], [ "play" ], [ "between" ], [ "'" ], [ "2003-04-19" ], [ "15:06:20" ], [ "'" ], [ "and" ], [ "'" ], [ "2016-03-15" ], [ "00:33:18" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "role", "NN" ], [ "did", "VBD" ], [ "staff", "NN" ], [ "member", "NN" ], [ "play", "NN" ], [ "between", "IN" ], [ "'", "POS" ], [ "2003-04-19", "JJ" ], [ "15:06:20", "CD" ], [ "'", "POS" ], [ "and", "CC" ], [ "'", "POS" ], [ "2016-03-15", "JJ" ], [ "00:33:18", "CD" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "2003-04-19 15:06:20", "2003-04-19", "2016-03-15 00:33:18", "15", "4", "19", "2016-03-15", "6", "18", "2016", "20", "33", "0", "3", "2003" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(0) Filter(5) A(0) C(20) T(6) V(0) Filter(4) A(0) C(21) T(6) V(2)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code", "query_toks": [ "SELECT", "T1.outcome_description", "FROM", "Research_outcomes", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1.outcome_code", "=", "T2.outcome_code" ], "query_toks_no_value": [ "select", "t1", ".", "outcome_description", "from", "research_outcomes", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "outcome_code", "=", "t2", ".", "outcome_code" ], "question": "What are the descriptions of all the project outcomes?", "question_toks": [ "what", "are", "description", "of", "all", "project", "outcome", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "descriptions", "of", "all", "the", "project", "outcomes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "description" ], [ "of" ], [ "all" ], [ "project", "outcome" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "description", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "project", "NN" ], [ "outcome", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(8) Filter(18) A(0) C(16) T(8) Root(5) Sel(0) N(0) A(0) C(16) T(5)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code", "query_toks": [ "SELECT", "T1.outcome_description", "FROM", "Research_outcomes", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1.outcome_code", "=", "T2.outcome_code" ], "query_toks_no_value": [ "select", "t1", ".", "outcome_description", "from", "research_outcomes", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "outcome_code", "=", "t2", ".", "outcome_code" ], "question": "List the description of the outcomes for all projects.", "question_toks": [ "list", "description", "of", "outcome", "for", "all", "project", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "List", "the", "description", "of", "the", "outcomes", "for", "all", "projects", "." ], "question_arg": [ [ "list" ], [ "description" ], [ "of" ], [ "outcome" ], [ "for" ], [ "all" ], [ "project" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "description", "NN" ], [ "of", "IN" ], [ "outcome", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "project", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(8) Filter(18) A(0) C(16) T(8) Root(5) Sel(0) N(0) A(0) C(16) T(5)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT role_code FROM Project_Staff GROUP BY role_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "role_code", "FROM", "Project_Staff", "GROUP", "BY", "role_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "role_code", "from", "project_staff", "group", "by", "role_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which role is most common for the staff?", "question_toks": [ "which", "role", "is", "most", "common", "for", "staff", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "Which", "role", "is", "most", "common", "for", "the", "staff", "?" ], "question_arg": [ [ "which" ], [ "role" ], [ "is" ], [ "most" ], [ "common" ], [ "for" ], [ "staff" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "role", "NN" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "for", "IN" ], [ "staff", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(19) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "tracking_grants_for_research", "query": "SELECT role_code FROM Project_Staff GROUP BY role_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "role_code", "FROM", "Project_Staff", "GROUP", "BY", "role_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "role_code", "from", "project_staff", "group", "by", "role_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most common role for the staff?", "question_toks": [ "what", "is", "most", "common", "role", "for", "staff", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document description", "document id", "document type code", "grant id", "sent date", "response received date", "other details", "grant id", "organisation id", "grant amount", "grant start date", "grant end date", "other details", "organisation type", "organisation type description", "organisation id", "organisation type", "organisation details", "project id", "outcome code", "outcome details", "staff id", "project id", "role code", "date from", "date to", "other details", "project id", "organisation id", "project details", "outcome code", "outcome description", "staff id", "employer organisation id", "staff details", "role code", "role description", "task id", "project id", "task details", "eg_agree_objectives" ], "table_names": [ "document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks" ], "col_set": [ "*", "document type code", "document description", "document id", "grant id", "sent date", "response received date", "other details", "organisation id", "grant amount", "grant start date", "grant end date", "organisation type", "organisation type description", "organisation details", "project id", "outcome code", "outcome details", "staff id", "role code", "date from", "date to", "project details", "outcome description", "employer organisation id", "staff details", "role description", "task id", "task details", "eg_agree_objectives" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11 ], "keys": { "5": 9, "9": 9, "4": 1, "1": 1, "10": 17, "17": 17, "18": 15, "15": 15, "21": 32, "32": 32, "20": 29, "29": 29, "25": 37, "37": 37, "24": 29, "30": 17, "35": 17, "40": 29, "3": 3, "23": 23, "34": 34, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "most", "common", "role", "for", "the", "staff", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "common" ], [ "role" ], [ "for" ], [ "staff" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "role", "NN" ], [ "for", "IN" ], [ "staff", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(19) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "network_2", "query": "SELECT count(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Dan'", "query_toks": [ "SELECT", "count", "(", "T2.friend", ")", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T1.name", "=", "'Dan", "'" ], "query_toks_no_value": [ "select", "count", "(", "t2", ".", "friend", ")", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t1", ".", "name", "=", "value" ], "question": "How many friends does Dan have?", "question_toks": [ "how", "many", "friend", "doe", "dan", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Dan\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "How", "many", "friends", "does", "Dan", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "friend" ], [ "doe" ], [ "dan" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "friend", "VBP" ], [ "doe", "JJ" ], [ "dan", "NNS" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [ "Dan" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(6) T(1) Filter(2) A(0) C(1) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT count(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Dan'", "query_toks": [ "SELECT", "count", "(", "T2.friend", ")", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T1.name", "=", "'Dan", "'" ], "query_toks_no_value": [ "select", "count", "(", "t2", ".", "friend", ")", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t1", ".", "name", "=", "value" ], "question": "How many friends does Dan have?", "question_toks": [ "how", "many", "friend", "doe", "dan", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Dan\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "How", "many", "friends", "does", "Dan", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "friend" ], [ "doe" ], [ "dan" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "friend", "VBP" ], [ "doe", "JJ" ], [ "dan", "NNS" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [ "Dan" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(6) T(1) Filter(2) A(0) C(1) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT count(*) FROM Person WHERE gender = 'female'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Person", "WHERE", "gender", "=", "'female", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "person", "where", "gender", "=", "value" ], "question": "How many females does this network has?", "question_toks": [ "how", "many", "female", "doe", "this", "network", "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, 4, false ], null ], "\"female\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "How", "many", "females", "does", "this", "network", "has", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "female" ], [ "doe" ], [ "this" ], [ "network" ], [ "ha" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "female", "JJ" ], [ "doe", "NN" ], [ "this", "DT" ], [ "network", "NN" ], [ "ha", "NN" ], [ "?", "." ] ], "values": [ "female" ], "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": "network_2", "query": "SELECT count(*) FROM Person WHERE gender = 'female'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Person", "WHERE", "gender", "=", "'female", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "person", "where", "gender", "=", "value" ], "question": "How many females are in the network?", "question_toks": [ "how", "many", "female", "are", "in", "network", "?" ], "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 ], "\"female\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "How", "many", "females", "are", "in", "the", "network", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "female" ], [ "are" ], [ "in" ], [ "network" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "female", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "network", "NN" ], [ "?", "." ] ], "values": [ "female" ], "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": "network_2", "query": "SELECT avg(age) FROM Person", "query_toks": [ "SELECT", "avg", "(", "age", ")", "FROM", "Person" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "person" ], "question": "What is the average age for all person?", "question_toks": [ "what", "is", "average", "age", "for", "all", "person", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "age", "for", "all", "person", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "for" ], [ "all" ], [ "person" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "person", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(2) T(0)" }, { "db_id": "network_2", "query": "SELECT avg(age) FROM Person", "query_toks": [ "SELECT", "avg", "(", "age", ")", "FROM", "Person" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "person" ], "question": "What is the average age for all people in the table?", "question_toks": [ "what", "is", "average", "age", "for", "all", "people", "in", "table", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "age", "for", "all", "people", "in", "the", "table", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "for" ], [ "all" ], [ "people" ], [ "in" ], [ "table" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "people", "NNS" ], [ "in", "IN" ], [ "table", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(2) T(0)" }, { "db_id": "network_2", "query": "SELECT count(DISTINCT city) FROM Person", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "city", ")", "FROM", "Person" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "city", ")", "from", "person" ], "question": "How many different cities are they from?", "question_toks": [ "how", "many", "different", "city", "are", "they", "from", "?" ], "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": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "How", "many", "different", "cities", "are", "they", "from", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "city" ], [ "are" ], [ "they" ], [ "from" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "city", "NN" ], [ "are", "VBP" ], [ "they", "PRP" ], [ "from", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(3) T(0)" }, { "db_id": "network_2", "query": "SELECT count(DISTINCT city) FROM Person", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "city", ")", "FROM", "Person" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "city", ")", "from", "person" ], "question": "How many different cities do people originate from?", "question_toks": [ "how", "many", "different", "city", "do", "people", "originate", "from", "?" ], "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": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "How", "many", "different", "cities", "do", "people", "originate", "from", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "city" ], [ "do" ], [ "people" ], [ "originate" ], [ "from" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "city", "NN" ], [ "do", "VBP" ], [ "people", "NNS" ], [ "originate", "VB" ], [ "from", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(3) T(0)" }, { "db_id": "network_2", "query": "SELECT count(DISTINCT job) FROM Person", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "job", ")", "FROM", "Person" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "job", ")", "from", "person" ], "question": "How many type of jobs do they have?", "question_toks": [ "how", "many", "type", "of", "job", "do", "they", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 5, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "How", "many", "type", "of", "jobs", "do", "they", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "type" ], [ "of" ], [ "job" ], [ "do" ], [ "they" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "job", "NN" ], [ "do", "VBP" ], [ "they", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(5) T(0)" }, { "db_id": "network_2", "query": "SELECT count(DISTINCT job) FROM Person", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "job", ")", "FROM", "Person" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "job", ")", "from", "person" ], "question": "How many different jobs are listed?", "question_toks": [ "how", "many", "different", "job", "are", "listed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 5, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "How", "many", "different", "jobs", "are", "listed", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "job" ], [ "are" ], [ "listed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "job", "NN" ], [ "are", "VBP" ], [ "listed", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(5) T(0)" }, { "db_id": "network_2", "query": "SELECT name FROM Person WHERE age = (SELECT max(age) FROM person)", "query_toks": [ "SELECT", "name", "FROM", "Person", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", ")" ], "query_toks_no_value": [ "select", "name", "from", "person", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", ")" ], "question": "Who is the oldest person?", "question_toks": [ "who", "is", "oldest", "person", "?" ], "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 ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Who", "is", "the", "oldest", "person", "?" ], "question_arg": [ [ "who" ], [ "is" ], [ "oldest" ], [ "person" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "oldest", "JJS" ], [ "person", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(11) A(0) C(2) T(0) Root(5) Sel(0) N(0) A(1) C(2) T(0)" }, { "db_id": "network_2", "query": "SELECT name FROM Person WHERE age = (SELECT max(age) FROM person)", "query_toks": [ "SELECT", "name", "FROM", "Person", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", ")" ], "query_toks_no_value": [ "select", "name", "from", "person", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", ")" ], "question": "What is the name of the person who is the oldest?", "question_toks": [ "what", "is", "name", "of", "person", "who", "is", "oldest", "?" ], "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 ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "person", "who", "is", "the", "oldest", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "person" ], [ "who" ], [ "is" ], [ "oldest" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "person", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "oldest", "JJS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(11) A(0) C(2) T(0) Root(5) Sel(0) N(0) A(1) C(2) T(0)" }, { "db_id": "network_2", "query": "SELECT name FROM Person WHERE job = 'student' AND age = (SELECT max(age) FROM person WHERE job = 'student' )", "query_toks": [ "SELECT", "name", "FROM", "Person", "WHERE", "job", "=", "'student", "'", "AND", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'student", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "person", "where", "job", "=", "value", "and", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")" ], "question": "Who is the oldest person whose job is student?", "question_toks": [ "who", "is", "oldest", "person", "whose", "job", "is", "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"student\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"student\"", null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Who", "is", "the", "oldest", "person", "whose", "job", "is", "student", "?" ], "question_arg": [ [ "who" ], [ "is" ], [ "oldest" ], [ "person" ], [ "whose" ], [ "job" ], [ "is" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "oldest", "JJS" ], [ "person", "NN" ], [ "whose", "WP$" ], [ "job", "NN" ], [ "is", "VBZ" ], [ "student", "VBN" ], [ "?", "." ] ], "values": [ "student" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(2) A(0) C(5) T(0) V(0) Filter(11) A(0) C(2) T(0) Root(3) Sel(0) N(0) A(1) C(2) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT name FROM Person WHERE job = 'student' AND age = (SELECT max(age) FROM person WHERE job = 'student' )", "query_toks": [ "SELECT", "name", "FROM", "Person", "WHERE", "job", "=", "'student", "'", "AND", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'student", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "person", "where", "job", "=", "value", "and", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")" ], "question": "What is the name of the oldest student?", "question_toks": [ "what", "is", "name", "of", "oldest", "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"student\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"student\"", null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "oldest", "student", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "oldest" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "oldest", "JJS" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "student" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(2) A(0) C(5) T(0) V(0) Filter(11) A(0) C(2) T(0) Root(3) Sel(0) N(0) A(1) C(2) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT name FROM Person WHERE gender = 'male' AND age = (SELECT min(age) FROM person WHERE gender = 'male' )", "query_toks": [ "SELECT", "name", "FROM", "Person", "WHERE", "gender", "=", "'male", "'", "AND", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "gender", "=", "'male", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "person", "where", "gender", "=", "value", "and", "age", "=", "(", "select", "min", "(", "age", ")", "from", "person", "where", "gender", "=", "value", ")" ], "question": "Who is the youngest male?", "question_toks": [ "who", "is", "youngest", "male", "?" ], "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, 4, false ], null ], "\"male\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"male\"", null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Who", "is", "the", "youngest", "male", "?" ], "question_arg": [ [ "who" ], [ "is" ], [ "youngest" ], [ "male" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "youngest", "JJS" ], [ "male", "NN" ], [ "?", "." ] ], "values": [ "male" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(2) A(0) C(4) T(0) V(0) Filter(11) A(0) C(2) T(0) Root(3) Sel(0) N(0) A(2) C(2) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT name FROM Person WHERE gender = 'male' AND age = (SELECT min(age) FROM person WHERE gender = 'male' )", "query_toks": [ "SELECT", "name", "FROM", "Person", "WHERE", "gender", "=", "'male", "'", "AND", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "gender", "=", "'male", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "person", "where", "gender", "=", "value", "and", "age", "=", "(", "select", "min", "(", "age", ")", "from", "person", "where", "gender", "=", "value", ")" ], "question": "What is the name of the youngest male?", "question_toks": [ "what", "is", "name", "of", "youngest", "male", "?" ], "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, 4, false ], null ], "\"male\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"male\"", null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "youngest", "male", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "youngest" ], [ "male" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "youngest", "JJS" ], [ "male", "NN" ], [ "?", "." ] ], "values": [ "male" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(2) A(0) C(4) T(0) V(0) Filter(11) A(0) C(2) T(0) Root(3) Sel(0) N(0) A(2) C(2) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT age FROM Person WHERE job = 'doctor' AND name = 'Zach'", "query_toks": [ "SELECT", "age", "FROM", "Person", "WHERE", "job", "=", "'doctor", "'", "AND", "name", "=", "'Zach", "'" ], "query_toks_no_value": [ "select", "age", "from", "person", "where", "job", "=", "value", "and", "name", "=", "value" ], "question": "How old is the doctor named Zach?", "question_toks": [ "how", "old", "is", "doctor", "named", "zach", "?" ], "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 ], "\"doctor\"", null ], "and", [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Zach\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "How", "old", "is", "the", "doctor", "named", "Zach", "?" ], "question_arg": [ [ "how" ], [ "old" ], [ "is" ], [ "doctor" ], [ "named" ], [ "zach" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "old", "JJ" ], [ "is", "VBZ" ], [ "doctor", "NN" ], [ "named", "VBN" ], [ "zach", "NN" ], [ "?", "." ] ], "values": [ "doctor", "Zach" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(5) T(0) V(0) Filter(2) A(0) C(1) T(0) V(1)" }, { "db_id": "network_2", "query": "SELECT age FROM Person WHERE job = 'doctor' AND name = 'Zach'", "query_toks": [ "SELECT", "age", "FROM", "Person", "WHERE", "job", "=", "'doctor", "'", "AND", "name", "=", "'Zach", "'" ], "query_toks_no_value": [ "select", "age", "from", "person", "where", "job", "=", "value", "and", "name", "=", "value" ], "question": "What is the age of the doctor named Zach?", "question_toks": [ "what", "is", "age", "of", "doctor", "named", "zach", "?" ], "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 ], "\"doctor\"", null ], "and", [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Zach\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "is", "the", "age", "of", "the", "doctor", "named", "Zach", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "age" ], [ "of" ], [ "doctor" ], [ "named" ], [ "zach" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "age", "NN" ], [ "of", "IN" ], [ "doctor", "NN" ], [ "named", "VBN" ], [ "zach", "NN" ], [ "?", "." ] ], "values": [ "doctor", "Zach" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(5) T(0) V(0) Filter(2) A(0) C(1) T(0) V(1)" }, { "db_id": "network_2", "query": "SELECT name FROM Person WHERE age < 30", "query_toks": [ "SELECT", "name", "FROM", "Person", "WHERE", "age", "<", "30" ], "query_toks_no_value": [ "select", "name", "from", "person", "where", "age", "<", "value" ], "question": "Who is the person whose age is below 30?", "question_toks": [ "who", "is", "person", "whose", "age", "is", "below", "30", "?" ], "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, 4, [ 0, [ 0, 2, false ], null ], 30.0, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Who", "is", "the", "person", "whose", "age", "is", "below", "30", "?" ], "question_arg": [ [ "who" ], [ "is" ], [ "person" ], [ "whose" ], [ "age" ], [ "is" ], [ "below" ], [ "30" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "person", "NN" ], [ "whose", "WP$" ], [ "age", "NN" ], [ "is", "VBZ" ], [ "below", "IN" ], [ "30", "CD" ], [ "?", "." ] ], "values": [ "30" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(4) A(0) C(2) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT name FROM Person WHERE age < 30", "query_toks": [ "SELECT", "name", "FROM", "Person", "WHERE", "age", "<", "30" ], "query_toks_no_value": [ "select", "name", "from", "person", "where", "age", "<", "value" ], "question": "What is the name of the person whose age is below 30?", "question_toks": [ "what", "is", "name", "of", "person", "whose", "age", "is", "below", "30", "?" ], "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, 4, [ 0, [ 0, 2, false ], null ], 30.0, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "person", "whose", "age", "is", "below", "30", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "person" ], [ "whose" ], [ "age" ], [ "is" ], [ "below" ], [ "30" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "person", "NN" ], [ "whose", "WP$" ], [ "age", "NN" ], [ "is", "VBZ" ], [ "below", "IN" ], [ "30", "CD" ], [ "?", "." ] ], "values": [ "30" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(4) A(0) C(2) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT count(*) FROM Person WHERE age > 30 AND job = 'engineer'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Person", "WHERE", "age", ">", "30", "AND", "job", "=", "'engineer", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "person", "where", "age", ">", "value", "and", "job", "=", "value" ], "question": "How many people whose age is greater 30 and job is engineer?", "question_toks": [ "how", "many", "people", "whose", "age", "is", "greater", "30", "and", "job", "is", "engineer", "?" ], "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, 2, false ], null ], 30.0, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"engineer\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "How", "many", "people", "whose", "age", "is", "greater", "30", "and", "job", "is", "engineer", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "people" ], [ "whose" ], [ "age" ], [ "is" ], [ "greater" ], [ "30" ], [ "and" ], [ "job" ], [ "is" ], [ "engineer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "people", "NNS" ], [ "whose", "WP$" ], [ "age", "NN" ], [ "is", "VBZ" ], [ "greater", "JJR" ], [ "30", "CD" ], [ "and", "CC" ], [ "job", "NN" ], [ "is", "VBZ" ], [ "engineer", "VBN" ], [ "?", "." ] ], "values": [ "30", "engineer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(5) A(0) C(2) T(0) V(0) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "network_2", "query": "SELECT count(*) FROM Person WHERE age > 30 AND job = 'engineer'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Person", "WHERE", "age", ">", "30", "AND", "job", "=", "'engineer", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "person", "where", "age", ">", "value", "and", "job", "=", "value" ], "question": "HOw many engineers are older than 30?", "question_toks": [ "how", "many", "engineer", "are", "older", "than", "30", "?" ], "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, 2, false ], null ], 30.0, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"engineer\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "HOw", "many", "engineers", "are", "older", "than", "30", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "engineer" ], [ "are" ], [ "older" ], [ "than" ], [ "30" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "engineer", "NN" ], [ "are", "VBP" ], [ "older", "JJR" ], [ "than", "IN" ], [ "30", "CD" ], [ "?", "." ] ], "values": [ "30", "engineer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(5) A(0) C(2) T(0) V(0) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "network_2", "query": "SELECT avg(age) , gender FROM Person GROUP BY gender", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "gender", "FROM", "Person", "GROUP", "BY", "gender" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "gender", "from", "person", "group", "by", "gender" ], "question": "What is the average age for each gender?", "question_toks": [ "what", "is", "average", "age", "for", "each", "gender", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "age", "for", "each", "gender", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "for" ], [ "each" ], [ "gender" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "gender", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(2) T(0) A(0) C(4) T(0)" }, { "db_id": "network_2", "query": "SELECT avg(age) , gender FROM Person GROUP BY gender", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "gender", "FROM", "Person", "GROUP", "BY", "gender" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "gender", "from", "person", "group", "by", "gender" ], "question": "How old is each gender, on average?", "question_toks": [ "how", "old", "is", "each", "gender", ",", "on", "average", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "How", "old", "is", "each", "gender", ",", "on", "average", "?" ], "question_arg": [ [ "how" ], [ "old" ], [ "is" ], [ "each" ], [ "gender" ], [ "," ], [ "on" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "old", "JJ" ], [ "is", "VBZ" ], [ "each", "DT" ], [ "gender", "NN" ], [ ",", "," ], [ "on", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(2) T(0) A(0) C(4) T(0)" }, { "db_id": "network_2", "query": "SELECT avg(age) , job FROM Person GROUP BY job", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "job", "FROM", "Person", "GROUP", "BY", "job" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "job", "from", "person", "group", "by", "job" ], "question": "What is average age for different job title?", "question_toks": [ "what", "is", "average", "age", "for", "different", "job", "title", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "is", "average", "age", "for", "different", "job", "title", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "for" ], [ "different" ], [ "job" ], [ "title" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "for", "IN" ], [ "different", "JJ" ], [ "job", "NN" ], [ "title", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(2) T(0) A(0) C(5) T(0)" }, { "db_id": "network_2", "query": "SELECT avg(age) , job FROM Person GROUP BY job", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "job", "FROM", "Person", "GROUP", "BY", "job" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "job", "from", "person", "group", "by", "job" ], "question": "How old is the average person for each job?", "question_toks": [ "how", "old", "is", "average", "person", "for", "each", "job", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "How", "old", "is", "the", "average", "person", "for", "each", "job", "?" ], "question_arg": [ [ "how" ], [ "old" ], [ "is" ], [ "average" ], [ "person" ], [ "for" ], [ "each" ], [ "job" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "old", "JJ" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "person", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "job", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(2) T(0) A(0) C(5) T(0)" }, { "db_id": "network_2", "query": "SELECT avg(age) , job FROM Person WHERE gender = 'male' GROUP BY job", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "job", "FROM", "Person", "WHERE", "gender", "=", "'male", "'", "GROUP", "BY", "job" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "job", "from", "person", "where", "gender", "=", "value", "group", "by", "job" ], "question": "What is average age of male for different job title?", "question_toks": [ "what", "is", "average", "age", "of", "male", "for", "different", "job", "title", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"male\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "is", "average", "age", "of", "male", "for", "different", "job", "title", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "of" ], [ "male" ], [ "for" ], [ "different" ], [ "job" ], [ "title" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "male", "NN" ], [ "for", "IN" ], [ "different", "JJ" ], [ "job", "NN" ], [ "title", "NN" ], [ "?", "." ] ], "values": [ "male" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(2) T(0) A(0) C(5) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT avg(age) , job FROM Person WHERE gender = 'male' GROUP BY job", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "job", "FROM", "Person", "WHERE", "gender", "=", "'male", "'", "GROUP", "BY", "job" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "job", "from", "person", "where", "gender", "=", "value", "group", "by", "job" ], "question": "What is the average age for a male in each job?", "question_toks": [ "what", "is", "average", "age", "for", "a", "male", "in", "each", "job", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"male\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "age", "for", "a", "male", "in", "each", "job", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "for" ], [ "a" ], [ "male" ], [ "in" ], [ "each" ], [ "job" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "for", "IN" ], [ "a", "DT" ], [ "male", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "job", "NN" ], [ "?", "." ] ], "values": [ "male" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(2) T(0) A(0) C(5) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT min(age) , job FROM Person GROUP BY job", "query_toks": [ "SELECT", "min", "(", "age", ")", ",", "job", "FROM", "Person", "GROUP", "BY", "job" ], "query_toks_no_value": [ "select", "min", "(", "age", ")", ",", "job", "from", "person", "group", "by", "job" ], "question": "What is minimum age for different job title?", "question_toks": [ "what", "is", "minimum", "age", "for", "different", "job", "title", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "is", "minimum", "age", "for", "different", "job", "title", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "minimum" ], [ "age" ], [ "for" ], [ "different" ], [ "job" ], [ "title" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "minimum", "JJ" ], [ "age", "NN" ], [ "for", "IN" ], [ "different", "JJ" ], [ "job", "NN" ], [ "title", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(2) C(2) T(0) A(0) C(5) T(0)" }, { "db_id": "network_2", "query": "SELECT min(age) , job FROM Person GROUP BY job", "query_toks": [ "SELECT", "min", "(", "age", ")", ",", "job", "FROM", "Person", "GROUP", "BY", "job" ], "query_toks_no_value": [ "select", "min", "(", "age", ")", ",", "job", "from", "person", "group", "by", "job" ], "question": "How old is the youngest person for each job?", "question_toks": [ "how", "old", "is", "youngest", "person", "for", "each", "job", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "How", "old", "is", "the", "youngest", "person", "for", "each", "job", "?" ], "question_arg": [ [ "how" ], [ "old" ], [ "is" ], [ "youngest" ], [ "person" ], [ "for" ], [ "each" ], [ "job" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "old", "JJ" ], [ "is", "VBZ" ], [ "youngest", "JJS" ], [ "person", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "job", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(2) C(2) T(0) A(0) C(5) T(0)" }, { "db_id": "network_2", "query": "SELECT count(*) , gender FROM Person WHERE age < 40 GROUP BY gender", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "gender", "FROM", "Person", "WHERE", "age", "<", "40", "GROUP", "BY", "gender" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "gender", "from", "person", "where", "age", "<", "value", "group", "by", "gender" ], "question": "Find the number of people who is under 40 for each gender.", "question_toks": [ "find", "number", "of", "people", "who", "is", "under", "40", "for", "each", "gender", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 2, false ], null ], 40.0, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "people", "who", "is", "under", "40", "for", "each", "gender", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "people" ], [ "who" ], [ "is" ], [ "under" ], [ "40" ], [ "for" ], [ "each" ], [ "gender" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "under", "IN" ], [ "40", "CD" ], [ "for", "IN" ], [ "each", "DT" ], [ "gender", "NN" ], [ ".", "." ] ], "values": [ "40" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(0) A(0) C(4) T(0) Filter(4) A(0) C(2) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT count(*) , gender FROM Person WHERE age < 40 GROUP BY gender", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "gender", "FROM", "Person", "WHERE", "age", "<", "40", "GROUP", "BY", "gender" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "gender", "from", "person", "where", "age", "<", "value", "group", "by", "gender" ], "question": "How many people are under 40 for each gender?", "question_toks": [ "how", "many", "people", "are", "under", "40", "for", "each", "gender", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 2, false ], null ], 40.0, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "How", "many", "people", "are", "under", "40", "for", "each", "gender", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "people" ], [ "are" ], [ "under" ], [ "40" ], [ "for" ], [ "each" ], [ "gender" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "people", "NNS" ], [ "are", "VBP" ], [ "under", "IN" ], [ "40", "CD" ], [ "for", "IN" ], [ "each", "DT" ], [ "gender", "NN" ], [ "?", "." ] ], "values": [ "40" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(0) A(0) C(4) T(0) Filter(4) A(0) C(2) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT name FROM Person WHERE age > (SELECT min(age) FROM person WHERE job = 'engineer') ORDER BY age", "query_toks": [ "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'engineer", "'", ")", "ORDER", "BY", "age" ], "query_toks_no_value": [ "select", "name", "from", "person", "where", "age", ">", "(", "select", "min", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")", "order", "by", "age" ], "question": "Find the name of people whose age is greater than any engineer sorted by their age.", "question_toks": [ "find", "name", "of", "people", "whose", "age", "is", "greater", "than", "any", "engineer", "sorted", "by", "their", "age", "." ], "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": [ [ false, 3, [ 0, [ 0, 2, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"engineer\"", null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "people", "whose", "age", "is", "greater", "than", "any", "engineer", "sorted", "by", "their", "age", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "people" ], [ "whose" ], [ "age" ], [ "is" ], [ "greater" ], [ "than" ], [ "any" ], [ "engineer" ], [ "sorted" ], [ "by" ], [ "their" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "whose", "WP$" ], [ "age", "NN" ], [ "is", "VBZ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "any", "DT" ], [ "engineer", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "age", "NN" ], [ ".", "." ] ], "values": [ "engineer" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(1) T(0) Filter(13) A(0) C(2) T(0) Root(3) Sel(0) N(0) A(2) C(2) T(0) Filter(2) A(0) C(5) T(0) V(0) Order(1) A(0) C(2) T(0)" }, { "db_id": "network_2", "query": "SELECT name FROM Person WHERE age > (SELECT min(age) FROM person WHERE job = 'engineer') ORDER BY age", "query_toks": [ "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'engineer", "'", ")", "ORDER", "BY", "age" ], "query_toks_no_value": [ "select", "name", "from", "person", "where", "age", ">", "(", "select", "min", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")", "order", "by", "age" ], "question": "What is the name of all the people who are older than at least one engineer? Order them by age.", "question_toks": [ "what", "is", "name", "of", "all", "people", "who", "are", "older", "than", "at", "least", "one", "engineer", "?", "order", "them", "by", "age", "." ], "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": [ [ false, 3, [ 0, [ 0, 2, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"engineer\"", null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "all", "the", "people", "who", "are", "older", "than", "at", "least", "one", "engineer", "?", "Order", "them", "by", "age", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "all" ], [ "people" ], [ "who" ], [ "are" ], [ "older" ], [ "than" ], [ "at" ], [ "least" ], [ "one" ], [ "engineer" ], [ "?" ], [ "order" ], [ "them" ], [ "by" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "people", "NNS" ], [ "who", "WP" ], [ "are", "VBP" ], [ "older", "JJR" ], [ "than", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "engineer", "NN" ], [ "?", "." ], [ "order", "NN" ], [ "them", "PRP" ], [ "by", "IN" ], [ "age", "NN" ], [ ".", "." ] ], "values": [ "1", "engineer" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(1) T(0) Filter(13) A(0) C(2) T(0) Root(3) Sel(0) N(0) A(2) C(2) T(0) Filter(2) A(0) C(5) T(0) V(1) Order(1) A(0) C(2) T(0)" }, { "db_id": "network_2", "query": "SELECT count(*) FROM Person WHERE age > (SELECT max(age) FROM person WHERE job = 'engineer')", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'engineer", "'", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "person", "where", "age", ">", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")" ], "question": "Find the number of people whose age is greater than all engineers.", "question_toks": [ "find", "number", "of", "people", "whose", "age", "is", "greater", "than", "all", "engineer", "." ], "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, 2, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"engineer\"", null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "people", "whose", "age", "is", "greater", "than", "all", "engineers", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "people" ], [ "whose" ], [ "age" ], [ "is" ], [ "greater" ], [ "than" ], [ "all" ], [ "engineer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "whose", "WP$" ], [ "age", "NN" ], [ "is", "VBZ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "all", "DT" ], [ "engineer", "NN" ], [ ".", "." ] ], "values": [ "engineer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(13) A(0) C(2) T(0) Root(3) Sel(0) N(0) A(1) C(2) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT count(*) FROM Person WHERE age > (SELECT max(age) FROM person WHERE job = 'engineer')", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'engineer", "'", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "person", "where", "age", ">", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")" ], "question": "How many people are older than every engineer?", "question_toks": [ "how", "many", "people", "are", "older", "than", "every", "engineer", "?" ], "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, 2, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"engineer\"", null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "How", "many", "people", "are", "older", "than", "every", "engineer", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "people" ], [ "are" ], [ "older" ], [ "than" ], [ "every" ], [ "engineer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "people", "NNS" ], [ "are", "VBP" ], [ "older", "JJR" ], [ "than", "IN" ], [ "every", "DT" ], [ "engineer", "NN" ], [ "?", "." ] ], "values": [ "engineer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(13) A(0) C(2) T(0) Root(3) Sel(0) N(0) A(1) C(2) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT name , job FROM Person ORDER BY name", "query_toks": [ "SELECT", "name", ",", "job", "FROM", "Person", "ORDER", "BY", "name" ], "query_toks_no_value": [ "select", "name", ",", "job", "from", "person", "order", "by", "name" ], "question": "list the name, job title of all people ordered by their names.", "question_toks": [ "list", "name", ",", "job", "title", "of", "all", "people", "ordered", "by", "their", "name", "." ], "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, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "list", "the", "name", ",", "job", "title", "of", "all", "people", "ordered", "by", "their", "names", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "," ], [ "job" ], [ "title" ], [ "of" ], [ "all" ], [ "people" ], [ "ordered" ], [ "by" ], [ "their" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "job", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "people", "NNS" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(1) T(0) A(0) C(5) T(0) Order(1) A(0) C(1) T(0)" }, { "db_id": "network_2", "query": "SELECT name , job FROM Person ORDER BY name", "query_toks": [ "SELECT", "name", ",", "job", "FROM", "Person", "ORDER", "BY", "name" ], "query_toks_no_value": [ "select", "name", ",", "job", "from", "person", "order", "by", "name" ], "question": "What are the names and job titles of every person ordered alphabetically by name?", "question_toks": [ "what", "are", "name", "and", "job", "title", "of", "every", "person", "ordered", "alphabetically", "by", "name", "?" ], "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, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "job", "titles", "of", "every", "person", "ordered", "alphabetically", "by", "name", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "job" ], [ "title" ], [ "of" ], [ "every" ], [ "person" ], [ "ordered" ], [ "alphabetically" ], [ "by" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "job", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "person", "NN" ], [ "ordered", "VBN" ], [ "alphabetically", "RB" ], [ "by", "IN" ], [ "name", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(1) T(0) A(0) C(5) T(0) Order(1) A(0) C(1) T(0)" }, { "db_id": "network_2", "query": "SELECT name FROM Person ORDER BY age DESC", "query_toks": [ "SELECT", "name", "FROM", "Person", "ORDER", "BY", "age", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "person", "order", "by", "age", "desc" ], "question": "Find the names of all person sorted in the descending order using age.", "question_toks": [ "find", "name", "of", "all", "person", "sorted", "in", "descending", "order", "using", "age", "." ], "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, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "person", "sorted", "in", "the", "descending", "order", "using", "age", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "person" ], [ "sorted" ], [ "in" ], [ "descending" ], [ "order" ], [ "using" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "person", "NN" ], [ "sorted", "VBN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "using", "VBG" ], [ "age", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(1) T(0) Order(0) A(0) C(2) T(0)" }, { "db_id": "network_2", "query": "SELECT name FROM Person ORDER BY age DESC", "query_toks": [ "SELECT", "name", "FROM", "Person", "ORDER", "BY", "age", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "person", "order", "by", "age", "desc" ], "question": "What are the names of everybody sorted by age in descending order?", "question_toks": [ "what", "are", "name", "of", "everybody", "sorted", "by", "age", "in", "descending", "order", "?" ], "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, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "everybody", "sorted", "by", "age", "in", "descending", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "everybody" ], [ "sorted" ], [ "by" ], [ "age" ], [ "in" ], [ "descending" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "everybody", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "age", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(1) T(0) Order(0) A(0) C(2) T(0)" }, { "db_id": "network_2", "query": "SELECT name FROM Person WHERE gender = 'male' ORDER BY age", "query_toks": [ "SELECT", "name", "FROM", "Person", "WHERE", "gender", "=", "'male", "'", "ORDER", "BY", "age" ], "query_toks_no_value": [ "select", "name", "from", "person", "where", "gender", "=", "value", "order", "by", "age" ], "question": "Find the name and age of all males in order of their age.", "question_toks": [ "find", "name", "and", "age", "of", "all", "male", "in", "order", "of", "their", "age", "." ], "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": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"male\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "age", "of", "all", "males", "in", "order", "of", "their", "age", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "age" ], [ "of" ], [ "all" ], [ "male" ], [ "in" ], [ "order" ], [ "of" ], [ "their" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "male", "NN" ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "age", "NN" ], [ ".", "." ] ], "values": [ "male" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(4) T(0) V(0) Order(1) A(0) C(2) T(0)" }, { "db_id": "network_2", "query": "SELECT name FROM Person WHERE gender = 'male' ORDER BY age", "query_toks": [ "SELECT", "name", "FROM", "Person", "WHERE", "gender", "=", "'male", "'", "ORDER", "BY", "age" ], "query_toks_no_value": [ "select", "name", "from", "person", "where", "gender", "=", "value", "order", "by", "age" ], "question": "What is the name and age of every male? Order the results by age.", "question_toks": [ "what", "is", "name", "and", "age", "of", "every", "male", "?", "order", "result", "by", "age", "." ], "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": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"male\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "age", "of", "every", "male", "?", "Order", "the", "results", "by", "age", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "age" ], [ "of" ], [ "every" ], [ "male" ], [ "?" ], [ "order" ], [ "result" ], [ "by" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "male", "NN" ], [ "?", "." ], [ "order", "NN" ], [ "result", "NN" ], [ "by", "IN" ], [ "age", "NN" ], [ ".", "." ] ], "values": [ "male" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(4) T(0) V(0) Order(1) A(0) C(2) T(0)" }, { "db_id": "network_2", "query": "SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'", "query_toks": [ "SELECT", "T1.name", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Dan", "'", "INTERSECT", "SELECT", "T1.name", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Alice", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "intersect", "select", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value" ], "question": "Find the name and age of the person who is a friend of both Dan and Alice.", "question_toks": [ "find", "name", "and", "age", "of", "person", "who", "is", "a", "friend", "of", "both", "dan", "and", "alice", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 6, 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, 6, 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 ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Alice\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Dan\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "age", "of", "the", "person", "who", "is", "a", "friend", "of", "both", "Dan", "and", "Alice", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "age" ], [ "of" ], [ "person" ], [ "who" ], [ "is" ], [ "a" ], [ "friend" ], [ "of" ], [ "both" ], [ "dan" ], [ "and" ], [ "alice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "person", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "a", "DT" ], [ "friend", "NN" ], [ "of", "IN" ], [ "both", "DT" ], [ "dan", "NN" ], [ "and", "CC" ], [ "alice", "NN" ], [ ".", "." ] ], "values": [ "Alice", "Dan" ], "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(1) V(1) Root(3) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "network_2", "query": "SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'", "query_toks": [ "SELECT", "T1.name", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Dan", "'", "INTERSECT", "SELECT", "T1.name", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Alice", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "intersect", "select", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value" ], "question": "What are the names and ages of every person who is a friend of both Dan and Alice?", "question_toks": [ "what", "are", "name", "and", "age", "of", "every", "person", "who", "is", "a", "friend", "of", "both", "dan", "and", "alice", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 6, 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, 6, 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 ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Alice\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Dan\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "ages", "of", "every", "person", "who", "is", "a", "friend", "of", "both", "Dan", "and", "Alice", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "age" ], [ "of" ], [ "every" ], [ "person" ], [ "who" ], [ "is" ], [ "a" ], [ "friend" ], [ "of" ], [ "both" ], [ "dan" ], [ "and" ], [ "alice" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "person", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "a", "DT" ], [ "friend", "NN" ], [ "of", "IN" ], [ "both", "DT" ], [ "dan", "NN" ], [ "and", "CC" ], [ "alice", "NN" ], [ "?", "." ] ], "values": [ "Alice", "Dan" ], "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(1) V(1) Root(3) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "network_2", "query": "SELECT DISTINCT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' OR T2.friend = 'Alice'", "query_toks": [ "SELECT", "DISTINCT", "T1.name", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Dan", "'", "OR", "T2.friend", "=", "'Alice", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "or", "t2", ".", "friend", "=", "value" ], "question": "Find the name and age of the person who is a friend of Dan or Alice.", "question_toks": [ "find", "name", "and", "age", "of", "person", "who", "is", "a", "friend", "of", "dan", "or", "alice", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Dan\"", null ], "or", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Alice\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "age", "of", "the", "person", "who", "is", "a", "friend", "of", "Dan", "or", "Alice", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "age" ], [ "of" ], [ "person" ], [ "who" ], [ "is" ], [ "a" ], [ "friend" ], [ "of" ], [ "dan" ], [ "or" ], [ "alice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "person", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "a", "DT" ], [ "friend", "NN" ], [ "of", "IN" ], [ "dan", "NN" ], [ "or", "CC" ], [ "alice", "NN" ], [ ".", "." ] ], "values": [ "Alice", "Dan" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Filter(1) Filter(2) A(0) C(6) T(1) V(1) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "network_2", "query": "SELECT DISTINCT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' OR T2.friend = 'Alice'", "query_toks": [ "SELECT", "DISTINCT", "T1.name", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Dan", "'", "OR", "T2.friend", "=", "'Alice", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "or", "t2", ".", "friend", "=", "value" ], "question": "What are the different names and ages of every friend of either Dan or alice?", "question_toks": [ "what", "are", "different", "name", "and", "age", "of", "every", "friend", "of", "either", "dan", "or", "alice", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Dan\"", null ], "or", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Alice\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "are", "the", "different", "names", "and", "ages", "of", "every", "friend", "of", "either", "Dan", "or", "alice", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "name" ], [ "and" ], [ "age" ], [ "of" ], [ "every" ], [ "friend" ], [ "of" ], [ "either" ], [ "dan" ], [ "or" ], [ "alice" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "friend", "NN" ], [ "of", "IN" ], [ "either", "DT" ], [ "dan", "NN" ], [ "or", "CC" ], [ "alice", "NN" ], [ "?", "." ] ], "values": [ "Alice", "Dan" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Filter(1) Filter(2) A(0) C(6) T(1) V(1) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "network_2", "query": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)", "query_toks": [ "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "40", ")", "INTERSECT", "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", "<", "30", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", ">", "value", ")", "intersect", "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", "<", "value", ")" ], "question": "Find the name of the person who has friends with age above 40 and under age 30?", "question_toks": [ "find", "name", "of", "person", "who", "ha", "friend", "with", "age", "above", "40", "and", "under", "age", "30", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 6, 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, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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, 4, [ 0, [ 0, 2, false ], null ], 30.0, null ] ] }, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 2, false ], null ], 40.0, null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "person", "who", "has", "friends", "with", "age", "above", "40", "and", "under", "age", "30", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "person" ], [ "who" ], [ "ha" ], [ "friend" ], [ "with" ], [ "age" ], [ "above" ], [ "40" ], [ "and" ], [ "under" ], [ "age" ], [ "30" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "person", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "friend", "NN" ], [ "with", "IN" ], [ "age", "NN" ], [ "above", "IN" ], [ "40", "CD" ], [ "and", "CC" ], [ "under", "IN" ], [ "age", "NN" ], [ "30", "CD" ], [ "?", "." ] ], "values": [ "30", "40" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(18) A(0) C(6) T(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(5) A(0) C(2) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(18) A(0) C(6) T(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(4) A(0) C(2) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)", "query_toks": [ "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "40", ")", "INTERSECT", "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", "<", "30", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", ">", "value", ")", "intersect", "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", "<", "value", ")" ], "question": "What are the names of every person who has a friend over 40 and under 30?", "question_toks": [ "what", "are", "name", "of", "every", "person", "who", "ha", "a", "friend", "over", "40", "and", "under", "30", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 6, 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, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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, 4, [ 0, [ 0, 2, false ], null ], 30.0, null ] ] }, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 2, false ], null ], 40.0, null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "every", "person", "who", "has", "a", "friend", "over", "40", "and", "under", "30", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "every" ], [ "person" ], [ "who" ], [ "ha" ], [ "a" ], [ "friend" ], [ "over" ], [ "40" ], [ "and" ], [ "under" ], [ "30" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "person", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "a", "DT" ], [ "friend", "NN" ], [ "over", "IN" ], [ "40", "CD" ], [ "and", "CC" ], [ "under", "IN" ], [ "30", "CD" ], [ "?", "." ] ], "values": [ "30", "40" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(18) A(0) C(6) T(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(5) A(0) C(2) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(18) A(0) C(6) T(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(4) A(0) C(2) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)", "query_toks": [ "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "40", ")", "EXCEPT", "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", "<", "30", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", ">", "value", ")", "except", "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", "<", "value", ")" ], "question": "Find the name of the person who has friends with age above 40 but not under age 30?", "question_toks": [ "find", "name", "of", "person", "who", "ha", "friend", "with", "age", "above", "40", "but", "not", "under", "age", "30", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, 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, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 2, false ], null ], 30.0, null ] ] }, null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, 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, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 2, false ], null ], 40.0, null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "person", "who", "has", "friends", "with", "age", "above", "40", "but", "not", "under", "age", "30", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "person" ], [ "who" ], [ "ha" ], [ "friend" ], [ "with" ], [ "age" ], [ "above" ], [ "40" ], [ "but" ], [ "not" ], [ "under" ], [ "age" ], [ "30" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "person", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "friend", "NN" ], [ "with", "IN" ], [ "age", "NN" ], [ "above", "IN" ], [ "40", "CD" ], [ "but", "CC" ], [ "not", "RB" ], [ "under", "IN" ], [ "age", "NN" ], [ "30", "CD" ], [ "?", "." ] ], "values": [ "30", "40" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(18) A(0) C(6) T(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(5) A(0) C(2) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(18) A(0) C(6) T(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(4) A(0) C(2) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)", "query_toks": [ "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "40", ")", "EXCEPT", "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", "<", "30", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", ">", "value", ")", "except", "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", "<", "value", ")" ], "question": "What are the names of the people who are older 40 but no friends under age 30?", "question_toks": [ "what", "are", "name", "of", "people", "who", "are", "older", "40", "but", "no", "friend", "under", "age", "30", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, 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, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 2, false ], null ], 30.0, null ] ] }, null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, 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, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 2, false ], null ], 40.0, null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "people", "who", "are", "older", "40", "but", "no", "friends", "under", "age", "30", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "people" ], [ "who" ], [ "are" ], [ "older" ], [ "40" ], [ "but" ], [ "no" ], [ "friend" ], [ "under" ], [ "age" ], [ "30" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "who", "WP" ], [ "are", "VBP" ], [ "older", "JJR" ], [ "40", "CD" ], [ "but", "CC" ], [ "no", "DT" ], [ "friend", "NN" ], [ "under", "IN" ], [ "age", "NN" ], [ "30", "CD" ], [ "?", "." ] ], "values": [ "30", "40" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(18) A(0) C(6) T(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(5) A(0) C(2) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(18) A(0) C(6) T(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(4) A(0) C(2) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student'", "query_toks": [ "SELECT", "name", "FROM", "person", "EXCEPT", "SELECT", "T2.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.job", "=", "'student", "'" ], "query_toks_no_value": [ "select", "name", "from", "person", "except", "select", "t2", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "job", "=", "value" ], "question": "Find the name of the person who has no student friends.", "question_toks": [ "find", "name", "of", "person", "who", "ha", "no", "student", "friend", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"student\"", 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": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "person", "who", "has", "no", "student", "friends", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "person" ], [ "who" ], [ "ha" ], [ "no" ], [ "student" ], [ "friend" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "person", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "no", "DT" ], [ "student", "NN" ], [ "friend", "NN" ], [ ".", "." ] ], "values": [ "student" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(1) T(1) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student'", "query_toks": [ "SELECT", "name", "FROM", "person", "EXCEPT", "SELECT", "T2.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.job", "=", "'student", "'" ], "query_toks_no_value": [ "select", "name", "from", "person", "except", "select", "t2", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "job", "=", "value" ], "question": "What are the names of the people who have no friends who are students?", "question_toks": [ "what", "are", "name", "of", "people", "who", "have", "no", "friend", "who", "are", "student", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"student\"", 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": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "people", "who", "have", "no", "friends", "who", "are", "students", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "people" ], [ "who" ], [ "have" ], [ "no" ], [ "friend" ], [ "who" ], [ "are" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "who", "WP" ], [ "have", "VBP" ], [ "no", "DT" ], [ "friend", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "student" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(1) T(1) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT name FROM PersonFriend GROUP BY name HAVING count(*) = 1", "query_toks": [ "SELECT", "name", "FROM", "PersonFriend", "GROUP", "BY", "name", "HAVING", "count", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "name", "from", "personfriend", "group", "by", "name", "having", "count", "(", "*", ")", "=", "value" ], "question": "Find the person who has exactly one friend.", "question_toks": [ "find", "person", "who", "ha", "exactly", "one", "friend", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 2, [ 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": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Find", "the", "person", "who", "has", "exactly", "one", "friend", "." ], "question_arg": [ [ "find" ], [ "person" ], [ "who" ], [ "ha" ], [ "exactly" ], [ "one" ], [ "friend" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "person", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "exactly", "RB" ], [ "one", "CD" ], [ "friend", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(1) Filter(2) A(3) C(0) T(1) V(0)" }, { "db_id": "network_2", "query": "SELECT name FROM PersonFriend GROUP BY name HAVING count(*) = 1", "query_toks": [ "SELECT", "name", "FROM", "PersonFriend", "GROUP", "BY", "name", "HAVING", "count", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "name", "from", "personfriend", "group", "by", "name", "having", "count", "(", "*", ")", "=", "value" ], "question": "What are the names of everybody who has exactly one friend?", "question_toks": [ "what", "are", "name", "of", "everybody", "who", "ha", "exactly", "one", "friend", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 2, [ 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": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "everybody", "who", "has", "exactly", "one", "friend", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "everybody" ], [ "who" ], [ "ha" ], [ "exactly" ], [ "one" ], [ "friend" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "everybody", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "exactly", "RB" ], [ "one", "CD" ], [ "friend", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(1) Filter(2) A(3) C(0) T(1) V(0)" }, { "db_id": "network_2", "query": "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Bob'", "query_toks": [ "SELECT", "T2.friend", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T1.name", "=", "'Bob", "'" ], "query_toks_no_value": [ "select", "t2", ".", "friend", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t1", ".", "name", "=", "value" ], "question": "Who are the friends of Bob?", "question_toks": [ "who", "are", "friend", "of", "bob", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, 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, 1, false ], null ], "\"Bob\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Who", "are", "the", "friends", "of", "Bob", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "friend" ], [ "of" ], [ "bob" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "friend", "NN" ], [ "of", "IN" ], [ "bob", "NN" ], [ "?", "." ] ], "values": [ "Bob" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(2) A(0) C(1) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Bob'", "query_toks": [ "SELECT", "T2.friend", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T1.name", "=", "'Bob", "'" ], "query_toks_no_value": [ "select", "t2", ".", "friend", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t1", ".", "name", "=", "value" ], "question": "Who are Bob's friends?", "question_toks": [ "who", "are", "bob", "'s", "friend", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, 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, 1, false ], null ], "\"Bob\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Who", "are", "Bob", "'s", "friends", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "bob" ], [ "'s" ], [ "friend" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "bob", "VBN" ], [ "'s", "POS" ], [ "friend", "NN" ], [ "?", "." ] ], "values": [ "Bob" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(2) A(0) C(1) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob'", "query_toks": [ "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Bob", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value" ], "question": "Find the name of persons who are friends with Bob.", "question_toks": [ "find", "name", "of", "person", "who", "are", "friend", "with", "bob", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, 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, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Bob\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "persons", "who", "are", "friends", "with", "Bob", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "person" ], [ "who" ], [ "are" ], [ "friend" ], [ "with" ], [ "bob" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "person", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "friend", "VBN" ], [ "with", "IN" ], [ "bob", "NN" ], [ ".", "." ] ], "values": [ "Bob" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "network_2", "query": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob'", "query_toks": [ "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Bob", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value" ], "question": "What are the names of all of Bob's friends?", "question_toks": [ "what", "are", "name", "of", "all", "of", "bob", "'s", "friend", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, 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, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Bob\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "of", "Bob", "'s", "friends", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "of" ], [ "bob" ], [ "'s" ], [ "friend" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "of", "IN" ], [ "bob", "NN" ], [ "'s", "POS" ], [ "friend", "NN" ], [ "?", "." ] ], "values": [ "Bob" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "network_2", "query": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Zach' AND T1.gender = 'female'", "query_toks": [ "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Zach", "'", "AND", "T1.gender", "=", "'female", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "and", "t1", ".", "gender", "=", "value" ], "question": "Find the names of females who are friends with Zach", "question_toks": [ "find", "name", "of", "female", "who", "are", "friend", "with", "zach" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, 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, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Zach\"", null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"female\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "females", "who", "are", "friends", "with", "Zach" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "female" ], [ "who" ], [ "are" ], [ "friend" ], [ "with" ], [ "zach" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "female", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "friend", "VBN" ], [ "with", "IN" ], [ "zach", "NN" ] ], "values": [ "female", "Zach" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(2) A(0) C(6) T(1) V(1) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Zach' AND T1.gender = 'female'", "query_toks": [ "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Zach", "'", "AND", "T1.gender", "=", "'female", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "and", "t1", ".", "gender", "=", "value" ], "question": "What are the names of all females who are friends with Zach?", "question_toks": [ "what", "are", "name", "of", "all", "female", "who", "are", "friend", "with", "zach", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, 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, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Zach\"", null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"female\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "females", "who", "are", "friends", "with", "Zach", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "female" ], [ "who" ], [ "are" ], [ "friend" ], [ "with" ], [ "zach" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "female", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "friend", "VBN" ], [ "with", "IN" ], [ "zach", "NN" ], [ "?", "." ] ], "values": [ "female", "Zach" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(2) A(0) C(6) T(1) V(1) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'female'", "query_toks": [ "SELECT", "T2.friend", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Alice", "'", "AND", "T1.gender", "=", "'female", "'" ], "query_toks_no_value": [ "select", "t2", ".", "friend", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "gender", "=", "value" ], "question": "Find the female friends of Alice.", "question_toks": [ "find", "female", "friend", "of", "alice", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Alice\"", null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"female\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Find", "the", "female", "friends", "of", "Alice", "." ], "question_arg": [ [ "find" ], [ "female" ], [ "friend" ], [ "of" ], [ "alice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "female", "JJ" ], [ "friend", "NN" ], [ "of", "IN" ], [ "alice", "NN" ], [ ".", "." ] ], "values": [ "female", "Alice" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(0) Filter(2) A(0) C(1) T(1) V(1) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'female'", "query_toks": [ "SELECT", "T2.friend", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Alice", "'", "AND", "T1.gender", "=", "'female", "'" ], "query_toks_no_value": [ "select", "t2", ".", "friend", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "gender", "=", "value" ], "question": "What are all the friends of Alice who are female?", "question_toks": [ "what", "are", "all", "friend", "of", "alice", "who", "are", "female", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Alice\"", null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"female\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "are", "all", "the", "friends", "of", "Alice", "who", "are", "female", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "friend" ], [ "of" ], [ "alice" ], [ "who" ], [ "are" ], [ "female" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "friend", "NN" ], [ "of", "IN" ], [ "alice", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "female", "JJ" ], [ "?", "." ] ], "values": [ "female", "Alice" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(0) Filter(2) A(0) C(1) T(1) V(1) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'male' AND T1.job = 'doctor'", "query_toks": [ "SELECT", "T2.friend", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Alice", "'", "AND", "T1.gender", "=", "'male", "'", "AND", "T1.job", "=", "'doctor", "'" ], "query_toks_no_value": [ "select", "t2", ".", "friend", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "gender", "=", "value", "and", "t1", ".", "job", "=", "value" ], "question": "Find the male friend of Alice whose job is a doctor?", "question_toks": [ "find", "male", "friend", "of", "alice", "whose", "job", "is", "a", "doctor", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Alice\"", null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"male\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"doctor\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Find", "the", "male", "friend", "of", "Alice", "whose", "job", "is", "a", "doctor", "?" ], "question_arg": [ [ "find" ], [ "male" ], [ "friend" ], [ "of" ], [ "alice" ], [ "whose" ], [ "job" ], [ "is" ], [ "a" ], [ "doctor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "male", "JJ" ], [ "friend", "NN" ], [ "of", "IN" ], [ "alice", "NN" ], [ "whose", "WP$" ], [ "job", "NN" ], [ "is", "VBZ" ], [ "a", "DT" ], [ "doctor", "NN" ], [ "?", "." ] ], "values": [ "doctor", "Alice", "male" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(0) Filter(2) A(0) C(1) T(1) V(1) Filter(0) Filter(2) A(0) C(4) T(0) V(2) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'male' AND T1.job = 'doctor'", "query_toks": [ "SELECT", "T2.friend", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Alice", "'", "AND", "T1.gender", "=", "'male", "'", "AND", "T1.job", "=", "'doctor", "'" ], "query_toks_no_value": [ "select", "t2", ".", "friend", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "gender", "=", "value", "and", "t1", ".", "job", "=", "value" ], "question": "Who are the friends of Alice that are doctors?", "question_toks": [ "who", "are", "friend", "of", "alice", "that", "are", "doctor", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Alice\"", null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"male\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"doctor\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Who", "are", "the", "friends", "of", "Alice", "that", "are", "doctors", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "friend" ], [ "of" ], [ "alice" ], [ "that" ], [ "are" ], [ "doctor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "friend", "NN" ], [ "of", "IN" ], [ "alice", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "doctor", "NN" ], [ "?", "." ] ], "values": [ "doctor", "Alice", "male" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(0) Filter(2) A(0) C(1) T(1) V(1) Filter(0) Filter(2) A(0) C(4) T(0) V(2) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.city = 'new york city'", "query_toks": [ "SELECT", "T2.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.city", "=", "'new", "york", "city", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "city", "=", "value" ], "question": "Who has a friend that is from new york city?", "question_toks": [ "who", "ha", "a", "friend", "that", "is", "from", "new", "york", "city", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"new york city\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Who", "has", "a", "friend", "that", "is", "from", "new", "york", "city", "?" ], "question_arg": [ [ "who" ], [ "ha" ], [ "a" ], [ "friend" ], [ "that" ], [ "is" ], [ "from" ], [ "new" ], [ "york" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "ha", "VBD" ], [ "a", "DT" ], [ "friend", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "from", "IN" ], [ "new", "JJ" ], [ "york", "NN" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "new york city" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.city = 'new york city'", "query_toks": [ "SELECT", "T2.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.city", "=", "'new", "york", "city", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "city", "=", "value" ], "question": "What are the names of all friends who are from New York?", "question_toks": [ "what", "are", "name", "of", "all", "friend", "who", "are", "from", "new", "york", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"new york city\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "friends", "who", "are", "from", "New", "York", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "friend" ], [ "who" ], [ "are" ], [ "from" ], [ "new" ], [ "york" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "friend", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "from", "IN" ], [ "new", "JJ" ], [ "york", "NN" ], [ "?", "." ] ], "values": [ "new york city" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "network_2", "query": "SELECT DISTINCT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age < (SELECT avg(age) FROM person)", "query_toks": [ "SELECT", "DISTINCT", "T2.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.age", "<", "(", "SELECT", "avg", "(", "age", ")", "FROM", "person", ")" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "age", "<", "(", "select", "avg", "(", "age", ")", "from", "person", ")" ], "question": "Who has friends that are younger than the average age?", "question_toks": [ "who", "ha", "friend", "that", "are", "younger", "than", "average", "age", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 2, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Who", "has", "friends", "that", "are", "younger", "than", "the", "average", "age", "?" ], "question_arg": [ [ "who" ], [ "ha" ], [ "friend" ], [ "that" ], [ "are" ], [ "younger" ], [ "than" ], [ "average" ], [ "age" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "ha", "VBD" ], [ "friend", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "younger", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "age", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(1) T(1) Filter(12) A(0) C(2) T(0) Root(5) Sel(0) N(0) A(5) C(2) T(0)" }, { "db_id": "network_2", "query": "SELECT DISTINCT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age < (SELECT avg(age) FROM person)", "query_toks": [ "SELECT", "DISTINCT", "T2.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.age", "<", "(", "SELECT", "avg", "(", "age", ")", "FROM", "person", ")" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "age", "<", "(", "select", "avg", "(", "age", ")", "from", "person", ")" ], "question": "What are the different names of friends who are younger than the average age for a friend?", "question_toks": [ "what", "are", "different", "name", "of", "friend", "who", "are", "younger", "than", "average", "age", "for", "a", "friend", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 2, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "are", "the", "different", "names", "of", "friends", "who", "are", "younger", "than", "the", "average", "age", "for", "a", "friend", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "name" ], [ "of" ], [ "friend" ], [ "who" ], [ "are" ], [ "younger" ], [ "than" ], [ "average" ], [ "age" ], [ "for" ], [ "a" ], [ "friend" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "friend", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "younger", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "age", "NN" ], [ "for", "IN" ], [ "a", "DT" ], [ "friend", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(1) T(1) Filter(12) A(0) C(2) T(0) Root(5) Sel(0) N(0) A(5) C(2) T(0)" }, { "db_id": "network_2", "query": "SELECT DISTINCT T2.name , T2.friend , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT avg(age) FROM person)", "query_toks": [ "SELECT", "DISTINCT", "T2.name", ",", "T2.friend", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.age", ">", "(", "SELECT", "avg", "(", "age", ")", "FROM", "person", ")" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", ",", "t2", ".", "friend", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "age", ">", "(", "select", "avg", "(", "age", ")", "from", "person", ")" ], "question": "Who has friends that are older than the average age? Print their friends and their ages as well", "question_toks": [ "who", "ha", "friend", "that", "are", "older", "than", "average", "age", "?", "print", "their", "friend", "and", "their", "age", "a", "well" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 2, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Who", "has", "friends", "that", "are", "older", "than", "the", "average", "age", "?", "Print", "their", "friends", "and", "their", "ages", "as", "well" ], "question_arg": [ [ "who" ], [ "ha" ], [ "friend" ], [ "that" ], [ "are" ], [ "older" ], [ "than" ], [ "average" ], [ "age" ], [ "?" ], [ "print" ], [ "their" ], [ "friend" ], [ "and" ], [ "their" ], [ "age" ], [ "a" ], [ "well" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "ha", "VBD" ], [ "friend", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "older", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "age", "NN" ], [ "?", "." ], [ "print", "VB" ], [ "their", "PRP$" ], [ "friend", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "age", "NN" ], [ "a", "DT" ], [ "well", "NN" ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(2) A(0) C(1) T(1) A(0) C(6) T(1) A(0) C(2) T(0) Filter(13) A(0) C(2) T(0) Root(5) Sel(0) N(0) A(5) C(2) T(0)" }, { "db_id": "network_2", "query": "SELECT DISTINCT T2.name , T2.friend , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT avg(age) FROM person)", "query_toks": [ "SELECT", "DISTINCT", "T2.name", ",", "T2.friend", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.age", ">", "(", "SELECT", "avg", "(", "age", ")", "FROM", "person", ")" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", ",", "t2", ".", "friend", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "age", ">", "(", "select", "avg", "(", "age", ")", "from", "person", ")" ], "question": "Whare the names, friends, and ages of all people who are older than the average age of a person?", "question_toks": [ "whare", "name", ",", "friend", ",", "and", "age", "of", "all", "people", "who", "are", "older", "than", "average", "age", "of", "a", "person", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 2, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Whare", "the", "names", ",", "friends", ",", "and", "ages", "of", "all", "people", "who", "are", "older", "than", "the", "average", "age", "of", "a", "person", "?" ], "question_arg": [ [ "whare" ], [ "name" ], [ "," ], [ "friend" ], [ "," ], [ "and" ], [ "age" ], [ "of" ], [ "all" ], [ "people" ], [ "who" ], [ "are" ], [ "older" ], [ "than" ], [ "average" ], [ "age" ], [ "of" ], [ "a" ], [ "person" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "whare", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "friend", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "people", "NNS" ], [ "who", "WP" ], [ "are", "VBP" ], [ "older", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "a", "DT" ], [ "person", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(2) A(0) C(1) T(1) A(0) C(6) T(1) A(0) C(2) T(0) Filter(13) A(0) C(2) T(0) Root(5) Sel(0) N(0) A(5) C(2) T(0)" }, { "db_id": "network_2", "query": "SELECT friend FROM PersonFriend WHERE name = 'Zach' AND YEAR = (SELECT max(YEAR) FROM PersonFriend WHERE name = 'Zach')", "query_toks": [ "SELECT", "friend", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", "AND", "YEAR", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", ")" ], "query_toks_no_value": [ "select", "friend", "from", "personfriend", "where", "name", "=", "value", "and", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", ")" ], "question": "Who is the friend of Zach with longest year relationship?", "question_toks": [ "who", "is", "friend", "of", "zach", "with", "longest", "year", "relationship", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Zach\"", null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Zach\"", null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Who", "is", "the", "friend", "of", "Zach", "with", "longest", "year", "relationship", "?" ], "question_arg": [ [ "who" ], [ "is" ], [ "friend" ], [ "of" ], [ "zach" ], [ "with" ], [ "longest" ], [ "year" ], [ "relationship" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "friend", "NN" ], [ "of", "IN" ], [ "zach", "NN" ], [ "with", "IN" ], [ "longest", "JJ" ], [ "year", "NN" ], [ "relationship", "NN" ], [ "?", "." ] ], "values": [ "Zach" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(0) Filter(2) A(0) C(1) T(1) V(0) Filter(11) A(0) C(7) T(1) Root(3) Sel(0) N(0) A(1) C(7) T(1) Filter(2) A(0) C(1) T(1) V(0)" }, { "db_id": "network_2", "query": "SELECT friend FROM PersonFriend WHERE name = 'Zach' AND YEAR = (SELECT max(YEAR) FROM PersonFriend WHERE name = 'Zach')", "query_toks": [ "SELECT", "friend", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", "AND", "YEAR", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", ")" ], "query_toks_no_value": [ "select", "friend", "from", "personfriend", "where", "name", "=", "value", "and", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", ")" ], "question": "Which friend of Zach has the longest-lasting friendship?", "question_toks": [ "which", "friend", "of", "zach", "ha", "longest-lasting", "friendship", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Zach\"", null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Zach\"", null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Which", "friend", "of", "Zach", "has", "the", "longest-lasting", "friendship", "?" ], "question_arg": [ [ "which" ], [ "friend" ], [ "of" ], [ "zach" ], [ "ha" ], [ "longest-lasting" ], [ "friendship" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "friend", "NN" ], [ "of", "IN" ], [ "zach", "NN" ], [ "ha", "NN" ], [ "longest-lasting", "JJ" ], [ "friendship", "NN" ], [ "?", "." ] ], "values": [ "Zach" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(0) Filter(2) A(0) C(1) T(1) V(0) Filter(11) A(0) C(7) T(1) Root(3) Sel(0) N(0) A(1) C(7) T(1) Filter(2) A(0) C(1) T(1) V(0)" }, { "db_id": "network_2", "query": "SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Zach' AND T2.year = (SELECT max(YEAR) FROM PersonFriend WHERE name = 'Zach')", "query_toks": [ "SELECT", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Zach", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", ")" ], "query_toks_no_value": [ "select", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", ")" ], "question": "What is the age of the friend of Zach with longest year relationship?", "question_toks": [ "what", "is", "age", "of", "friend", "of", "zach", "with", "longest", "year", "relationship", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Zach\"", null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Zach\"", null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "is", "the", "age", "of", "the", "friend", "of", "Zach", "with", "longest", "year", "relationship", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "age" ], [ "of" ], [ "friend" ], [ "of" ], [ "zach" ], [ "with" ], [ "longest" ], [ "year" ], [ "relationship" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "age", "NN" ], [ "of", "IN" ], [ "friend", "NN" ], [ "of", "IN" ], [ "zach", "NN" ], [ "with", "IN" ], [ "longest", "JJ" ], [ "year", "NN" ], [ "relationship", "NN" ], [ "?", "." ] ], "values": [ "Zach" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(1) T(1) V(0) Filter(11) A(0) C(7) T(1) Root(3) Sel(0) N(0) A(1) C(7) T(1) Filter(2) A(0) C(1) T(1) V(0)" }, { "db_id": "network_2", "query": "SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Zach' AND T2.year = (SELECT max(YEAR) FROM PersonFriend WHERE name = 'Zach')", "query_toks": [ "SELECT", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Zach", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", ")" ], "query_toks_no_value": [ "select", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", ")" ], "question": "What are the ages of all of Zach's friends who are in the longest relationship?", "question_toks": [ "what", "are", "age", "of", "all", "of", "zach", "'s", "friend", "who", "are", "in", "longest", "relationship", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Zach\"", null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Zach\"", null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "are", "the", "ages", "of", "all", "of", "Zach", "'s", "friends", "who", "are", "in", "the", "longest", "relationship", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "age" ], [ "of" ], [ "all" ], [ "of" ], [ "zach" ], [ "'s" ], [ "friend" ], [ "who" ], [ "are" ], [ "in" ], [ "longest" ], [ "relationship" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "age", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "of", "IN" ], [ "zach", "NN" ], [ "'s", "POS" ], [ "friend", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "in", "IN" ], [ "longest", "JJS" ], [ "relationship", "NN" ], [ "?", "." ] ], "values": [ "Zach" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(1) T(1) V(0) Filter(11) A(0) C(7) T(1) Root(3) Sel(0) N(0) A(1) C(7) T(1) Filter(2) A(0) C(1) T(1) V(0)" }, { "db_id": "network_2", "query": "SELECT name FROM PersonFriend WHERE friend = 'Alice' AND YEAR = (SELECT min(YEAR) FROM PersonFriend WHERE friend = 'Alice')", "query_toks": [ "SELECT", "name", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", "AND", "YEAR", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "personfriend", "where", "friend", "=", "value", "and", "year", "=", "(", "select", "min", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", ")" ], "question": "Find the name of persons who are friends with Alice for the shortest years.", "question_toks": [ "find", "name", "of", "person", "who", "are", "friend", "with", "alice", "for", "shortest", "year", "." ], "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 ], "\"Alice\"", null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Alice\"", null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "persons", "who", "are", "friends", "with", "Alice", "for", "the", "shortest", "years", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "person" ], [ "who" ], [ "are" ], [ "friend" ], [ "with" ], [ "alice" ], [ "for" ], [ "shortest" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "person", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "friend", "VBN" ], [ "with", "IN" ], [ "alice", "NN" ], [ "for", "IN" ], [ "shortest", "JJ" ], [ "year", "NN" ], [ ".", "." ] ], "values": [ "Alice" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(1) Filter(0) Filter(2) A(0) C(6) T(1) V(0) Filter(11) A(0) C(7) T(1) Root(3) Sel(0) N(0) A(2) C(7) T(1) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "network_2", "query": "SELECT name FROM PersonFriend WHERE friend = 'Alice' AND YEAR = (SELECT min(YEAR) FROM PersonFriend WHERE friend = 'Alice')", "query_toks": [ "SELECT", "name", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", "AND", "YEAR", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "personfriend", "where", "friend", "=", "value", "and", "year", "=", "(", "select", "min", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", ")" ], "question": "What are the names of all people who are friends with Alice for the shortest amount of time?", "question_toks": [ "what", "are", "name", "of", "all", "people", "who", "are", "friend", "with", "alice", "for", "shortest", "amount", "of", "time", "?" ], "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 ], "\"Alice\"", null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Alice\"", null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "people", "who", "are", "friends", "with", "Alice", "for", "the", "shortest", "amount", "of", "time", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "people" ], [ "who" ], [ "are" ], [ "friend" ], [ "with" ], [ "alice" ], [ "for" ], [ "shortest" ], [ "amount" ], [ "of" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "people", "NNS" ], [ "who", "WP" ], [ "are", "VBP" ], [ "friend", "VBN" ], [ "with", "IN" ], [ "alice", "NN" ], [ "for", "IN" ], [ "shortest", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "?", "." ] ], "values": [ "Alice" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(1) Filter(0) Filter(2) A(0) C(6) T(1) V(0) Filter(11) A(0) C(7) T(1) Root(3) Sel(0) N(0) A(2) C(7) T(1) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "network_2", "query": "SELECT T1.name , T1.age , T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' AND T2.year = (SELECT max(YEAR) FROM PersonFriend WHERE friend = 'Alice')", "query_toks": [ "SELECT", "T1.name", ",", "T1.age", ",", "T1.job", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Alice", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "age", ",", "t1", ".", "job", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", ")" ], "question": "Find the name, age, and job title of persons who are friends with Alice for the longest years.", "question_toks": [ "find", "name", ",", "age", ",", "and", "job", "title", "of", "person", "who", "are", "friend", "with", "alice", "for", "longest", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, 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, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Alice\"", null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Alice\"", null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Find", "the", "name", ",", "age", ",", "and", "job", "title", "of", "persons", "who", "are", "friends", "with", "Alice", "for", "the", "longest", "years", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "," ], [ "age" ], [ "," ], [ "and" ], [ "job" ], [ "title" ], [ "of" ], [ "person" ], [ "who" ], [ "are" ], [ "friend" ], [ "with" ], [ "alice" ], [ "for" ], [ "longest" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "age", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "job", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "person", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "friend", "VBN" ], [ "with", "IN" ], [ "alice", "NN" ], [ "for", "IN" ], [ "longest", "JJ" ], [ "year", "NN" ], [ ".", "." ] ], "values": [ "Alice" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(1) T(0) A(0) C(2) T(0) A(0) C(5) T(0) Filter(0) Filter(2) A(0) C(6) T(1) V(0) Filter(11) A(0) C(7) T(1) Root(3) Sel(0) N(0) A(1) C(7) T(1) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "network_2", "query": "SELECT T1.name , T1.age , T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' AND T2.year = (SELECT max(YEAR) FROM PersonFriend WHERE friend = 'Alice')", "query_toks": [ "SELECT", "T1.name", ",", "T1.age", ",", "T1.job", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Alice", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "age", ",", "t1", ".", "job", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", ")" ], "question": "What are the names, ages, and jobs of all people who are friends with Alice for the longest amount of time?", "question_toks": [ "what", "are", "name", ",", "age", ",", "and", "job", "of", "all", "people", "who", "are", "friend", "with", "alice", "for", "longest", "amount", "of", "time", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, 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, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Alice\"", null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Alice\"", null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "are", "the", "names", ",", "ages", ",", "and", "jobs", "of", "all", "people", "who", "are", "friends", "with", "Alice", "for", "the", "longest", "amount", "of", "time", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "age" ], [ "," ], [ "and" ], [ "job" ], [ "of" ], [ "all" ], [ "people" ], [ "who" ], [ "are" ], [ "friend" ], [ "with" ], [ "alice" ], [ "for" ], [ "longest" ], [ "amount" ], [ "of" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "age", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "job", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "people", "NNS" ], [ "who", "WP" ], [ "are", "VBP" ], [ "friend", "VBN" ], [ "with", "IN" ], [ "alice", "NN" ], [ "for", "IN" ], [ "longest", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "?", "." ] ], "values": [ "Alice" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(1) T(0) A(0) C(2) T(0) A(0) C(5) T(0) Filter(0) Filter(2) A(0) C(6) T(1) V(0) Filter(11) A(0) C(7) T(1) Root(3) Sel(0) N(0) A(1) C(7) T(1) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "network_2", "query": "SELECT name FROM person EXCEPT SELECT name FROM PersonFriend", "query_toks": [ "SELECT", "name", "FROM", "person", "EXCEPT", "SELECT", "name", "FROM", "PersonFriend" ], "query_toks_no_value": [ "select", "name", "from", "person", "except", "select", "name", "from", "personfriend" ], "question": "Who is the person that has no friend?", "question_toks": [ "who", "is", "person", "that", "ha", "no", "friend", "?" ], "sql": { "except": { "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": [] }, "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": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Who", "is", "the", "person", "that", "has", "no", "friend", "?" ], "question_arg": [ [ "who" ], [ "is" ], [ "person" ], [ "that" ], [ "ha" ], [ "no" ], [ "friend" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "person", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "no", "DT" ], [ "friend", "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(1)" }, { "db_id": "network_2", "query": "SELECT name FROM person EXCEPT SELECT name FROM PersonFriend", "query_toks": [ "SELECT", "name", "FROM", "person", "EXCEPT", "SELECT", "name", "FROM", "PersonFriend" ], "query_toks_no_value": [ "select", "name", "from", "person", "except", "select", "name", "from", "personfriend" ], "question": "What are the names of all people who do not have friends?", "question_toks": [ "what", "are", "name", "of", "all", "people", "who", "do", "not", "have", "friend", "?" ], "sql": { "except": { "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": [] }, "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": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "people", "who", "do", "not", "have", "friends", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "people" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "friend" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "people", "NNS" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "friend", "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(1)" }, { "db_id": "network_2", "query": "SELECT T2.name , avg(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY avg(T1.age) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", ",", "avg", "(", "T1.age", ")", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "GROUP", "BY", "T2.name", "ORDER", "BY", "avg", "(", "T1.age", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "avg", "(", "t1", ".", "age", ")", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "group", "by", "t2", ".", "name", "order", "by", "avg", "(", "t1", ".", "age", ")", "desc", "limit", "value" ], "question": "Which person whose friends have the oldest average age?", "question_toks": [ "which", "person", "whose", "friend", "have", "oldest", "average", "age", "?" ], "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, 6, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 2, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 5, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Which", "person", "whose", "friends", "have", "the", "oldest", "average", "age", "?" ], "question_arg": [ [ "which" ], [ "person" ], [ "whose" ], [ "friend" ], [ "have" ], [ "oldest" ], [ "average" ], [ "age" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "person", "NN" ], [ "whose", "WP$" ], [ "friend", "NN" ], [ "have", "VBP" ], [ "oldest", "VBN" ], [ "average", "JJ" ], [ "age", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(1) A(5) C(2) T(0) Sup(0) A(5) C(2) T(0)" }, { "db_id": "network_2", "query": "SELECT T2.name , avg(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY avg(T1.age) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", ",", "avg", "(", "T1.age", ")", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "GROUP", "BY", "T2.name", "ORDER", "BY", "avg", "(", "T1.age", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "avg", "(", "t1", ".", "age", ")", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "group", "by", "t2", ".", "name", "order", "by", "avg", "(", "t1", ".", "age", ")", "desc", "limit", "value" ], "question": "What is the name of the person who has the oldest average age for their friends, and what is that average age?", "question_toks": [ "what", "is", "name", "of", "person", "who", "ha", "oldest", "average", "age", "for", "their", "friend", ",", "and", "what", "is", "that", "average", "age", "?" ], "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, 6, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 2, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 5, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "person", "who", "has", "the", "oldest", "average", "age", "for", "their", "friends", ",", "and", "what", "is", "that", "average", "age", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "person" ], [ "who" ], [ "ha" ], [ "oldest" ], [ "average" ], [ "age" ], [ "for" ], [ "their" ], [ "friend" ], [ "," ], [ "and" ], [ "what" ], [ "is" ], [ "that" ], [ "average" ], [ "age" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "person", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "oldest", "JJS" ], [ "average", "JJ" ], [ "age", "NN" ], [ "for", "IN" ], [ "their", "PRP$" ], [ "friend", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "what", "WP" ], [ "is", "VBZ" ], [ "that", "DT" ], [ "average", "JJ" ], [ "age", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(1) A(5) C(2) T(0) Sup(0) A(5) C(2) T(0)" }, { "db_id": "network_2", "query": "SELECT count(DISTINCT name) FROM PersonFriend WHERE friend NOT IN (SELECT name FROM person WHERE city = 'Austin')", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "name", ")", "FROM", "PersonFriend", "WHERE", "friend", "NOT", "IN", "(", "SELECT", "name", "FROM", "person", "WHERE", "city", "=", "'Austin", "'", ")" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "name", ")", "from", "personfriend", "where", "friend", "not", "in", "(", "select", "name", "from", "person", "where", "city", "=", "value", ")" ], "question": "What is the total number of people who has no friend living in the city of Austin.", "question_toks": [ "what", "is", "total", "number", "of", "people", "who", "ha", "no", "friend", "living", "in", "city", "of", "austin", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 6, true ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Austin\"", null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "people", "who", "has", "no", "friend", "living", "in", "the", "city", "of", "Austin", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "people" ], [ "who" ], [ "ha" ], [ "no" ], [ "friend" ], [ "living" ], [ "in" ], [ "city" ], [ "of" ], [ "austin" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "who", "WP" ], [ "ha", "VBP" ], [ "no", "DT" ], [ "friend", "NN" ], [ "living", "NN" ], [ "in", "IN" ], [ "city", "NN" ], [ "of", "IN" ], [ "austin", "NN" ], [ ".", "." ] ], "values": [ "austin", "Austin" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(1) T(1) Filter(19) A(0) C(6) T(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(3) T(0) V(1)" }, { "db_id": "network_2", "query": "SELECT count(DISTINCT name) FROM PersonFriend WHERE friend NOT IN (SELECT name FROM person WHERE city = 'Austin')", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "name", ")", "FROM", "PersonFriend", "WHERE", "friend", "NOT", "IN", "(", "SELECT", "name", "FROM", "person", "WHERE", "city", "=", "'Austin", "'", ")" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "name", ")", "from", "personfriend", "where", "friend", "not", "in", "(", "select", "name", "from", "person", "where", "city", "=", "value", ")" ], "question": "What is the total number of people who have no friends living in Austin?", "question_toks": [ "what", "is", "total", "number", "of", "people", "who", "have", "no", "friend", "living", "in", "austin", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 6, true ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Austin\"", null ] ] }, null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "people", "who", "have", "no", "friends", "living", "in", "Austin", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "people" ], [ "who" ], [ "have" ], [ "no" ], [ "friend" ], [ "living" ], [ "in" ], [ "austin" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "who", "WP" ], [ "have", "VBP" ], [ "no", "DT" ], [ "friend", "NN" ], [ "living", "NN" ], [ "in", "IN" ], [ "austin", "NN" ], [ "?", "." ] ], "values": [ "austin", "Austin" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(1) T(1) Filter(19) A(0) C(6) T(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(3) T(0) V(1)" }, { "db_id": "network_2", "query": "SELECT DISTINCT T4.name FROM PersonFriend AS T1 JOIN Person AS T2 ON T1.name = T2.name JOIN PersonFriend AS T3 ON T1.friend = T3.name JOIN PersonFriend AS T4 ON T3.friend = T4.name WHERE T2.name = 'Alice' AND T4.name != 'Alice'", "query_toks": [ "SELECT", "DISTINCT", "T4.name", "FROM", "PersonFriend", "AS", "T1", "JOIN", "Person", "AS", "T2", "ON", "T1.name", "=", "T2.name", "JOIN", "PersonFriend", "AS", "T3", "ON", "T1.friend", "=", "T3.name", "JOIN", "PersonFriend", "AS", "T4", "ON", "T3.friend", "=", "T4.name", "WHERE", "T2.name", "=", "'Alice", "'", "AND", "T4.name", "!", "=", "'Alice", "'" ], "query_toks_no_value": [ "select", "distinct", "t4", ".", "name", "from", "personfriend", "as", "t1", "join", "person", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "join", "personfriend", "as", "t3", "on", "t1", ".", "friend", "=", "t3", ".", "name", "join", "personfriend", "as", "t4", "on", "t3", ".", "friend", "=", "t4", ".", "name", "where", "t2", ".", "name", "=", "value", "and", "t4", ".", "name", "!", "=", "value" ], "question": "Find Alice's friends of friends.", "question_toks": [ "find", "alice", "'s", "friend", "of", "friend", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Alice\"", null ], "and", [ false, 7, [ 0, [ 0, 6, false ], null ], "\"Alice\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "Find", "Alice", "'s", "friends", "of", "friends", "." ], "question_arg": [ [ "find" ], [ "alice" ], [ "'s" ], [ "friend" ], [ "of" ], [ "friend" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "alice", "NN" ], [ "'s", "POS" ], [ "friend", "NN" ], [ "of", "IN" ], [ "friend", "NN" ], [ ".", "." ] ], "values": [ "Alice" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(1) T(1) Filter(0) Filter(2) A(0) C(1) T(0) V(0) Filter(3) A(0) C(1) T(1) V(0)" }, { "db_id": "network_2", "query": "SELECT DISTINCT T4.name FROM PersonFriend AS T1 JOIN Person AS T2 ON T1.name = T2.name JOIN PersonFriend AS T3 ON T1.friend = T3.name JOIN PersonFriend AS T4 ON T3.friend = T4.name WHERE T2.name = 'Alice' AND T4.name != 'Alice'", "query_toks": [ "SELECT", "DISTINCT", "T4.name", "FROM", "PersonFriend", "AS", "T1", "JOIN", "Person", "AS", "T2", "ON", "T1.name", "=", "T2.name", "JOIN", "PersonFriend", "AS", "T3", "ON", "T1.friend", "=", "T3.name", "JOIN", "PersonFriend", "AS", "T4", "ON", "T3.friend", "=", "T4.name", "WHERE", "T2.name", "=", "'Alice", "'", "AND", "T4.name", "!", "=", "'Alice", "'" ], "query_toks_no_value": [ "select", "distinct", "t4", ".", "name", "from", "personfriend", "as", "t1", "join", "person", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "join", "personfriend", "as", "t3", "on", "t1", ".", "friend", "=", "t3", ".", "name", "join", "personfriend", "as", "t4", "on", "t3", ".", "friend", "=", "t4", ".", "name", "where", "t2", ".", "name", "=", "value", "and", "t4", ".", "name", "!", "=", "value" ], "question": "What are the names of all of Alice's friends of friends?", "question_toks": [ "what", "are", "name", "of", "all", "of", "alice", "'s", "friend", "of", "friend", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Alice\"", null ], "and", [ false, 7, [ 0, [ 0, 6, false ], null ], "\"Alice\"", null ] ] }, "names": [ "*", "name", "age", "city", "gender", "job", "name", "friend", "year" ], "table_names": [ "person", "person friend" ], "col_set": [ "*", "name", "age", "city", "gender", "job", "friend", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1 ], "keys": { "7": 1, "1": 1, "6": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "of", "Alice", "'s", "friends", "of", "friends", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "of" ], [ "alice" ], [ "'s" ], [ "friend" ], [ "of" ], [ "friend" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "of", "IN" ], [ "alice", "NN" ], [ "'s", "POS" ], [ "friend", "NN" ], [ "of", "IN" ], [ "friend", "NN" ], [ "?", "." ] ], "values": [ "Alice" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(1) T(1) Filter(0) Filter(2) A(0) C(1) T(0) V(0) Filter(3) A(0) C(1) T(1) V(0)" }, { "db_id": "decoration_competition", "query": "SELECT count(*) FROM member", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "member" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "member" ], "question": "How many members are there?", "question_toks": [ "how", "many", "member", "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": [ "*", "college id", "name", "leader name", "college location", "member id", "name", "country", "college id", "round id", "member id", "decoration theme", "rank in round" ], "table_names": [ "college", "member", "round" ], "col_set": [ "*", "college id", "name", "leader name", "college location", "member id", "country", "round id", "decoration theme", "rank in round" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "8": 1, "1": 1, "10": 10, "5": 5 }, "origin_question_toks": [ "How", "many", "members", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "member" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "member", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "decoration_competition", "query": "SELECT Name FROM member ORDER BY Name ASC", "query_toks": [ "SELECT", "Name", "FROM", "member", "ORDER", "BY", "Name", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "member", "order", "by", "name", "asc" ], "question": "List the names of members in ascending alphabetical order.", "question_toks": [ "list", "name", "of", "member", "in", "ascending", "alphabetical", "order", "." ], "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, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college id", "name", "leader name", "college location", "member id", "name", "country", "college id", "round id", "member id", "decoration theme", "rank in round" ], "table_names": [ "college", "member", "round" ], "col_set": [ "*", "college id", "name", "leader name", "college location", "member id", "country", "round id", "decoration theme", "rank in round" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "8": 1, "1": 1, "10": 10, "5": 5 }, "origin_question_toks": [ "List", "the", "names", "of", "members", "in", "ascending", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "member" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "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": "decoration_competition", "query": "SELECT Name , Country FROM member", "query_toks": [ "SELECT", "Name", ",", "Country", "FROM", "member" ], "query_toks_no_value": [ "select", "name", ",", "country", "from", "member" ], "question": "What are the names and countries of members?", "question_toks": [ "what", "are", "name", "and", "country", "of", "member", "?" ], "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": [ "*", "college id", "name", "leader name", "college location", "member id", "name", "country", "college id", "round id", "member id", "decoration theme", "rank in round" ], "table_names": [ "college", "member", "round" ], "col_set": [ "*", "college id", "name", "leader name", "college location", "member id", "country", "round id", "decoration theme", "rank in round" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "8": 1, "1": 1, "10": 10, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "countries", "of", "members", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "country" ], [ "of" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "country", "NN" ], [ "of", "IN" ], [ "member", "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": "decoration_competition", "query": "SELECT Name FROM member WHERE Country = \"United States\" OR Country = \"Canada\"", "query_toks": [ "SELECT", "Name", "FROM", "member", "WHERE", "Country", "=", "``", "United", "States", "''", "OR", "Country", "=", "``", "Canada", "''" ], "query_toks_no_value": [ "select", "name", "from", "member", "where", "country", "=", "value", "or", "country", "=", "value" ], "question": "Show the names of members whose country is \"United States\" or \"Canada\".", "question_toks": [ "show", "name", "of", "member", "whose", "country", "is", "'", "united", "state", "'", "or", "'", "canada", "'", "." ], "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 ], "\"United States\"", null ], "or", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Canada\"", null ] ] }, "names": [ "*", "college id", "name", "leader name", "college location", "member id", "name", "country", "college id", "round id", "member id", "decoration theme", "rank in round" ], "table_names": [ "college", "member", "round" ], "col_set": [ "*", "college id", "name", "leader name", "college location", "member id", "country", "round id", "decoration theme", "rank in round" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "8": 1, "1": 1, "10": 10, "5": 5 }, "origin_question_toks": [ "Show", "the", "names", "of", "members", "whose", "country", "is", "``", "United", "States", "''", "or", "``", "Canada", "''", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "member" ], [ "whose" ], [ "country" ], [ "is" ], [ "'" ], [ "united" ], [ "state" ], [ "'" ], [ "or" ], [ "'" ], [ "canada" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "whose", "WP$" ], [ "country", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "united", "JJ" ], [ "state", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "canada", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "United States", "Canada" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(1) Filter(2) A(0) C(6) T(1) V(0) Filter(2) A(0) C(6) T(1) V(1)" }, { "db_id": "decoration_competition", "query": "SELECT Country , COUNT(*) FROM member GROUP BY Country", "query_toks": [ "SELECT", "Country", ",", "COUNT", "(", "*", ")", "FROM", "member", "GROUP", "BY", "Country" ], "query_toks_no_value": [ "select", "country", ",", "count", "(", "*", ")", "from", "member", "group", "by", "country" ], "question": "Show the different countries and the number of members from each.", "question_toks": [ "show", "different", "country", "and", "number", "of", "member", "from", "each", "." ], "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": [ "*", "college id", "name", "leader name", "college location", "member id", "name", "country", "college id", "round id", "member id", "decoration theme", "rank in round" ], "table_names": [ "college", "member", "round" ], "col_set": [ "*", "college id", "name", "leader name", "college location", "member id", "country", "round id", "decoration theme", "rank in round" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "8": 1, "1": 1, "10": 10, "5": 5 }, "origin_question_toks": [ "Show", "the", "different", "countries", "and", "the", "number", "of", "members", "from", "each", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "country" ], [ "and" ], [ "number" ], [ "of" ], [ "member" ], [ "from" ], [ "each" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "different", "JJ" ], [ "country", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "from", "IN" ], [ "each", "DT" ], [ ".", "." ] ], "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": "decoration_competition", "query": "SELECT Country FROM member GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Country", "FROM", "member", "GROUP", "BY", "Country", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "country", "from", "member", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the most common country across members.", "question_toks": [ "show", "most", "common", "country", "across", "member", "." ], "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": [ "*", "college id", "name", "leader name", "college location", "member id", "name", "country", "college id", "round id", "member id", "decoration theme", "rank in round" ], "table_names": [ "college", "member", "round" ], "col_set": [ "*", "college id", "name", "leader name", "college location", "member id", "country", "round id", "decoration theme", "rank in round" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "8": 1, "1": 1, "10": 10, "5": 5 }, "origin_question_toks": [ "Show", "the", "most", "common", "country", "across", "members", "." ], "question_arg": [ [ "show" ], [ "most" ], [ "common" ], [ "country" ], [ "across" ], [ "member" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "country", "NN" ], [ "across", "IN" ], [ "member", "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": "decoration_competition", "query": "SELECT Country FROM member GROUP BY Country HAVING COUNT(*) > 2", "query_toks": [ "SELECT", "Country", "FROM", "member", "GROUP", "BY", "Country", "HAVING", "COUNT", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "country", "from", "member", "group", "by", "country", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which countries have more than two members?", "question_toks": [ "which", "country", "have", "more", "than", "two", "member", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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": [ "*", "college id", "name", "leader name", "college location", "member id", "name", "country", "college id", "round id", "member id", "decoration theme", "rank in round" ], "table_names": [ "college", "member", "round" ], "col_set": [ "*", "college id", "name", "leader name", "college location", "member id", "country", "round id", "decoration theme", "rank in round" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "8": 1, "1": 1, "10": 10, "5": 5 }, "origin_question_toks": [ "Which", "countries", "have", "more", "than", "two", "members", "?" ], "question_arg": [ [ "which" ], [ "country" ], [ "have" ], [ "more" ], [ "than" ], [ "two" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "two", "CD" ], [ "member", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "decoration_competition", "query": "SELECT Leader_Name , College_Location FROM college", "query_toks": [ "SELECT", "Leader_Name", ",", "College_Location", "FROM", "college" ], "query_toks_no_value": [ "select", "leader_name", ",", "college_location", "from", "college" ], "question": "Show the leader names and locations of colleges.", "question_toks": [ "show", "leader", "name", "and", "location", "of", "college", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college id", "name", "leader name", "college location", "member id", "name", "country", "college id", "round id", "member id", "decoration theme", "rank in round" ], "table_names": [ "college", "member", "round" ], "col_set": [ "*", "college id", "name", "leader name", "college location", "member id", "country", "round id", "decoration theme", "rank in round" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "8": 1, "1": 1, "10": 10, "5": 5 }, "origin_question_toks": [ "Show", "the", "leader", "names", "and", "locations", "of", "colleges", "." ], "question_arg": [ [ "show" ], [ "leader", "name" ], [ "and" ], [ "location" ], [ "of" ], [ "college" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "leader", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0)" }, { "db_id": "decoration_competition", "query": "SELECT T2.Name , T1.Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID", "query_toks": [ "SELECT", "T2.Name", ",", "T1.Name", "FROM", "college", "AS", "T1", "JOIN", "member", "AS", "T2", "ON", "T1.College_ID", "=", "T2.College_ID" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "name", "from", "college", "as", "t1", "join", "member", "as", "t2", "on", "t1", ".", "college_id", "=", "t2", ".", "college_id" ], "question": "Show the names of members and names of colleges they go to.", "question_toks": [ "show", "name", "of", "member", "and", "name", "of", "college", "they", "go", "to", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college id", "name", "leader name", "college location", "member id", "name", "country", "college id", "round id", "member id", "decoration theme", "rank in round" ], "table_names": [ "college", "member", "round" ], "col_set": [ "*", "college id", "name", "leader name", "college location", "member id", "country", "round id", "decoration theme", "rank in round" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "8": 1, "1": 1, "10": 10, "5": 5 }, "origin_question_toks": [ "Show", "the", "names", "of", "members", "and", "names", "of", "colleges", "they", "go", "to", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "member" ], [ "and" ], [ "name" ], [ "of" ], [ "college" ], [ "they" ], [ "go" ], [ "to" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "they", "PRP" ], [ "go", "VBP" ], [ "to", "TO" ], [ ".", "." ] ], "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": "decoration_competition", "query": "SELECT T2.Name , T1.College_Location FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID ORDER BY T2.Name ASC", "query_toks": [ "SELECT", "T2.Name", ",", "T1.College_Location", "FROM", "college", "AS", "T1", "JOIN", "member", "AS", "T2", "ON", "T1.College_ID", "=", "T2.College_ID", "ORDER", "BY", "T2.Name", "ASC" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "college_location", "from", "college", "as", "t1", "join", "member", "as", "t2", "on", "t1", ".", "college_id", "=", "t2", ".", "college_id", "order", "by", "t2", ".", "name", "asc" ], "question": "Show the names of members and the locations of colleges they go to in ascending alphabetical order of member names.", "question_toks": [ "show", "name", "of", "member", "and", "location", "of", "college", "they", "go", "to", "in", "ascending", "alphabetical", "order", "of", "member", "name", "." ], "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": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college id", "name", "leader name", "college location", "member id", "name", "country", "college id", "round id", "member id", "decoration theme", "rank in round" ], "table_names": [ "college", "member", "round" ], "col_set": [ "*", "college id", "name", "leader name", "college location", "member id", "country", "round id", "decoration theme", "rank in round" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "8": 1, "1": 1, "10": 10, "5": 5 }, "origin_question_toks": [ "Show", "the", "names", "of", "members", "and", "the", "locations", "of", "colleges", "they", "go", "to", "in", "ascending", "alphabetical", "order", "of", "member", "names", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "member" ], [ "and" ], [ "location" ], [ "of" ], [ "college" ], [ "they" ], [ "go" ], [ "to" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "member" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "they", "PRP" ], [ "go", "VBP" ], [ "to", "TO" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(1) A(0) C(4) T(0) Order(1) A(0) C(2) T(1)" }, { "db_id": "decoration_competition", "query": "SELECT DISTINCT T1.Leader_Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID WHERE T2.Country = \"Canada\"", "query_toks": [ "SELECT", "DISTINCT", "T1.Leader_Name", "FROM", "college", "AS", "T1", "JOIN", "member", "AS", "T2", "ON", "T1.College_ID", "=", "T2.College_ID", "WHERE", "T2.Country", "=", "``", "Canada", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "leader_name", "from", "college", "as", "t1", "join", "member", "as", "t2", "on", "t1", ".", "college_id", "=", "t2", ".", "college_id", "where", "t2", ".", "country", "=", "value" ], "question": "Show the distinct leader names of colleges associated with members from country \"Canada\".", "question_toks": [ "show", "distinct", "leader", "name", "of", "college", "associated", "with", "member", "from", "country", "'", "canada", "'", "." ], "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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Canada\"", null ] ] }, "names": [ "*", "college id", "name", "leader name", "college location", "member id", "name", "country", "college id", "round id", "member id", "decoration theme", "rank in round" ], "table_names": [ "college", "member", "round" ], "col_set": [ "*", "college id", "name", "leader name", "college location", "member id", "country", "round id", "decoration theme", "rank in round" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "8": 1, "1": 1, "10": 10, "5": 5 }, "origin_question_toks": [ "Show", "the", "distinct", "leader", "names", "of", "colleges", "associated", "with", "members", "from", "country", "``", "Canada", "''", "." ], "question_arg": [ [ "show" ], [ "distinct" ], [ "leader", "name" ], [ "of" ], [ "college" ], [ "associated" ], [ "with" ], [ "member" ], [ "from" ], [ "country" ], [ "'" ], [ "canada" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "distinct", "JJ" ], [ "leader", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "member", "NN" ], [ "from", "IN" ], [ "country", "NN" ], [ "'", "''" ], [ "canada", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Canada" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "decoration_competition", "query": "SELECT T1.Name , T2.Decoration_Theme FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID", "query_toks": [ "SELECT", "T1.Name", ",", "T2.Decoration_Theme", "FROM", "member", "AS", "T1", "JOIN", "round", "AS", "T2", "ON", "T1.Member_ID", "=", "T2.Member_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "decoration_theme", "from", "member", "as", "t1", "join", "round", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_id" ], "question": "Show the names of members and the decoration themes they have.", "question_toks": [ "show", "name", "of", "member", "and", "decoration", "theme", "they", "have", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college id", "name", "leader name", "college location", "member id", "name", "country", "college id", "round id", "member id", "decoration theme", "rank in round" ], "table_names": [ "college", "member", "round" ], "col_set": [ "*", "college id", "name", "leader name", "college location", "member id", "country", "round id", "decoration theme", "rank in round" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "8": 1, "1": 1, "10": 10, "5": 5 }, "origin_question_toks": [ "Show", "the", "names", "of", "members", "and", "the", "decoration", "themes", "they", "have", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "member" ], [ "and" ], [ "decoration", "theme" ], [ "they" ], [ "have" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "and", "CC" ], [ "decoration", "NN" ], [ "theme", "NN" ], [ "they", "PRP" ], [ "have", "VBP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(1) A(0) C(8) T(2)" }, { "db_id": "decoration_competition", "query": "SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID WHERE T2.Rank_in_Round > 3", "query_toks": [ "SELECT", "T1.Name", "FROM", "member", "AS", "T1", "JOIN", "round", "AS", "T2", "ON", "T1.Member_ID", "=", "T2.Member_ID", "WHERE", "T2.Rank_in_Round", ">", "3" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "member", "as", "t1", "join", "round", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_id", "where", "t2", ".", "rank_in_round", ">", "value" ], "question": "Show the names of members that have a rank in round higher than 3.", "question_toks": [ "show", "name", "of", "member", "that", "have", "a", "rank", "in", "round", "higher", "than", "3", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 12, false ], null ], 3.0, null ] ] }, "names": [ "*", "college id", "name", "leader name", "college location", "member id", "name", "country", "college id", "round id", "member id", "decoration theme", "rank in round" ], "table_names": [ "college", "member", "round" ], "col_set": [ "*", "college id", "name", "leader name", "college location", "member id", "country", "round id", "decoration theme", "rank in round" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "8": 1, "1": 1, "10": 10, "5": 5 }, "origin_question_toks": [ "Show", "the", "names", "of", "members", "that", "have", "a", "rank", "in", "round", "higher", "than", "3", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "member" ], [ "that" ], [ "have" ], [ "a" ], [ "rank", "in", "round" ], [ "higher" ], [ "than" ], [ "3" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "rank", "NN" ], [ "in", "IN" ], [ "round", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(5) A(0) C(9) T(2) V(0)" }, { "db_id": "decoration_competition", "query": "SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID ORDER BY Rank_in_Round ASC", "query_toks": [ "SELECT", "T1.Name", "FROM", "member", "AS", "T1", "JOIN", "round", "AS", "T2", "ON", "T1.Member_ID", "=", "T2.Member_ID", "ORDER", "BY", "Rank_in_Round", "ASC" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "member", "as", "t1", "join", "round", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_id", "order", "by", "rank_in_round", "asc" ], "question": "Show the names of members in ascending order of their rank in rounds.", "question_toks": [ "show", "name", "of", "member", "in", "ascending", "order", "of", "their", "rank", "in", "round", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college id", "name", "leader name", "college location", "member id", "name", "country", "college id", "round id", "member id", "decoration theme", "rank in round" ], "table_names": [ "college", "member", "round" ], "col_set": [ "*", "college id", "name", "leader name", "college location", "member id", "country", "round id", "decoration theme", "rank in round" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "8": 1, "1": 1, "10": 10, "5": 5 }, "origin_question_toks": [ "Show", "the", "names", "of", "members", "in", "ascending", "order", "of", "their", "rank", "in", "rounds", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "member" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "their" ], [ "rank", "in", "round" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "rank", "NN" ], [ "in", "IN" ], [ "round", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(1) Order(1) A(0) C(9) T(2)" }, { "db_id": "decoration_competition", "query": "SELECT Name FROM member WHERE Member_ID NOT IN (SELECT Member_ID FROM round)", "query_toks": [ "SELECT", "Name", "FROM", "member", "WHERE", "Member_ID", "NOT", "IN", "(", "SELECT", "Member_ID", "FROM", "round", ")" ], "query_toks_no_value": [ "select", "name", "from", "member", "where", "member_id", "not", "in", "(", "select", "member_id", "from", "round", ")" ], "question": "List the names of members who did not participate in any round.", "question_toks": [ "list", "name", "of", "member", "who", "did", "not", "participate", "in", "any", "round", "." ], "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, 10, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "college id", "name", "leader name", "college location", "member id", "name", "country", "college id", "round id", "member id", "decoration theme", "rank in round" ], "table_names": [ "college", "member", "round" ], "col_set": [ "*", "college id", "name", "leader name", "college location", "member id", "country", "round id", "decoration theme", "rank in round" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "8": 1, "1": 1, "10": 10, "5": 5 }, "origin_question_toks": [ "List", "the", "names", "of", "members", "who", "did", "not", "participate", "in", "any", "round", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "member" ], [ "who" ], [ "did" ], [ "not" ], [ "participate" ], [ "in" ], [ "any" ], [ "round" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "participate", "VB" ], [ "in", "IN" ], [ "any", "DT" ], [ "round", "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(2)" }, { "db_id": "document_management", "query": "SELECT document_name , access_count FROM documents ORDER BY document_name", "query_toks": [ "SELECT", "document_name", ",", "access_count", "FROM", "documents", "ORDER", "BY", "document_name" ], "query_toks_no_value": [ "select", "document_name", ",", "access_count", "from", "documents", "order", "by", "document_name" ], "question": "Find the name and access counts of all documents, in alphabetic order of the document name.", "question_toks": [ "find", "name", "and", "access", "count", "of", "all", "document", ",", "in", "alphabetic", "order", "of", "document", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 22, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Find", "the", "name", "and", "access", "counts", "of", "all", "documents", ",", "in", "alphabetic", "order", "of", "the", "document", "name", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "access", "count" ], [ "of" ], [ "all" ], [ "document" ], [ "," ], [ "in" ], [ "alphabetic" ], [ "order" ], [ "of" ], [ "document", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "access", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "document", "NN" ], [ ",", "," ], [ "in", "IN" ], [ "alphabetic", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Name" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(20) T(5) A(0) C(19) T(5) Order(1) A(0) C(20) T(5)" }, { "db_id": "document_management", "query": "SELECT document_name , access_count FROM documents ORDER BY document_name", "query_toks": [ "SELECT", "document_name", ",", "access_count", "FROM", "documents", "ORDER", "BY", "document_name" ], "query_toks_no_value": [ "select", "document_name", ",", "access_count", "from", "documents", "order", "by", "document_name" ], "question": "What are the names of all the documents, as well as the access counts of each, ordered alphabetically?", "question_toks": [ "what", "are", "name", "of", "all", "document", ",", "a", "well", "a", "access", "count", "of", "each", ",", "ordered", "alphabetically", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 22, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "documents", ",", "as", "well", "as", "the", "access", "counts", "of", "each", ",", "ordered", "alphabetically", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "document" ], [ "," ], [ "a" ], [ "well" ], [ "a" ], [ "access", "count" ], [ "of" ], [ "each" ], [ "," ], [ "ordered" ], [ "alphabetically" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "document", "NN" ], [ ",", "," ], [ "a", "DT" ], [ "well", "NN" ], [ "a", "DT" ], [ "access", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ ",", "," ], [ "ordered", "VBD" ], [ "alphabetically", "RB" ], [ "?", "." ] ], "values": [ "Name" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(20) T(5) A(0) C(19) T(5) Order(1) A(0) C(20) T(5)" }, { "db_id": "document_management", "query": "SELECT document_name , access_count FROM documents ORDER BY access_count DESC LIMIT 1", "query_toks": [ "SELECT", "document_name", ",", "access_count", "FROM", "documents", "ORDER", "BY", "access_count", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "document_name", ",", "access_count", "from", "documents", "order", "by", "access_count", "desc", "limit", "value" ], "question": "Find the name of the document that has been accessed the greatest number of times, as well as the count of how many times it has been accessed?", "question_toks": [ "find", "name", "of", "document", "that", "ha", "been", "accessed", "greatest", "number", "of", "time", ",", "a", "well", "a", "count", "of", "how", "many", "time", "it", "ha", "been", "accessed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "document", "that", "has", "been", "accessed", "the", "greatest", "number", "of", "times", ",", "as", "well", "as", "the", "count", "of", "how", "many", "times", "it", "has", "been", "accessed", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "document" ], [ "that" ], [ "ha" ], [ "been" ], [ "accessed" ], [ "greatest" ], [ "number" ], [ "of" ], [ "time" ], [ "," ], [ "a" ], [ "well" ], [ "a" ], [ "count" ], [ "of" ], [ "how" ], [ "many" ], [ "time" ], [ "it" ], [ "ha" ], [ "been" ], [ "accessed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "that", "WDT" ], [ "ha", "VBD" ], [ "been", "VBN" ], [ "accessed", "VBN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ ",", "," ], [ "a", "DT" ], [ "well", "RB" ], [ "a", "DT" ], [ "count", "NN" ], [ "of", "IN" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "time", "NN" ], [ "it", "PRP" ], [ "ha", "VBD" ], [ "been", "VBN" ], [ "accessed", "VBN" ], [ "?", "." ] ], "values": [ "Name" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(20) T(5) A(0) C(19) T(5) Sup(0) A(0) C(19) T(5)" }, { "db_id": "document_management", "query": "SELECT document_name , access_count FROM documents ORDER BY access_count DESC LIMIT 1", "query_toks": [ "SELECT", "document_name", ",", "access_count", "FROM", "documents", "ORDER", "BY", "access_count", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "document_name", ",", "access_count", "from", "documents", "order", "by", "access_count", "desc", "limit", "value" ], "question": "What is the name of the document which has been accessed the most times, as well as the number of times it has been accessed?", "question_toks": [ "what", "is", "name", "of", "document", "which", "ha", "been", "accessed", "most", "time", ",", "a", "well", "a", "number", "of", "time", "it", "ha", "been", "accessed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "document", "which", "has", "been", "accessed", "the", "most", "times", ",", "as", "well", "as", "the", "number", "of", "times", "it", "has", "been", "accessed", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "document" ], [ "which" ], [ "ha" ], [ "been" ], [ "accessed" ], [ "most" ], [ "time" ], [ "," ], [ "a" ], [ "well" ], [ "a" ], [ "number" ], [ "of" ], [ "time" ], [ "it" ], [ "ha" ], [ "been" ], [ "accessed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "which", "WDT" ], [ "ha", "VBP" ], [ "been", "VBN" ], [ "accessed", "VBN" ], [ "most", "JJS" ], [ "time", "NN" ], [ ",", "," ], [ "a", "DT" ], [ "well", "RB" ], [ "a", "DT" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "it", "PRP" ], [ "ha", "VBD" ], [ "been", "VBN" ], [ "accessed", "VBN" ], [ "?", "." ] ], "values": [ "Name" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(20) T(5) A(0) C(19) T(5) Sup(0) A(0) C(19) T(5)" }, { "db_id": "document_management", "query": "SELECT document_type_code FROM documents GROUP BY document_type_code HAVING count(*) > 4", "query_toks": [ "SELECT", "document_type_code", "FROM", "documents", "GROUP", "BY", "document_type_code", "HAVING", "count", "(", "*", ")", ">", "4" ], "query_toks_no_value": [ "select", "document_type_code", "from", "documents", "group", "by", "document_type_code", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the types of documents with more than 4 documents.", "question_toks": [ "find", "type", "of", "document", "with", "more", "than", "4", "document", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 4.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Find", "the", "types", "of", "documents", "with", "more", "than", "4", "documents", "." ], "question_arg": [ [ "find" ], [ "type" ], [ "of" ], [ "document" ], [ "with" ], [ "more" ], [ "than" ], [ "4" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "type", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "4", "CD" ], [ "document", "NN" ], [ ".", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(5) Filter(5) A(3) C(0) T(5) V(0)" }, { "db_id": "document_management", "query": "SELECT document_type_code FROM documents GROUP BY document_type_code HAVING count(*) > 4", "query_toks": [ "SELECT", "document_type_code", "FROM", "documents", "GROUP", "BY", "document_type_code", "HAVING", "count", "(", "*", ")", ">", "4" ], "query_toks_no_value": [ "select", "document_type_code", "from", "documents", "group", "by", "document_type_code", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the codes of types of documents of which there are for or more?", "question_toks": [ "what", "are", "code", "of", "type", "of", "document", "of", "which", "there", "are", "for", "or", "more", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 4.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "codes", "of", "types", "of", "documents", "of", "which", "there", "are", "for", "or", "more", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "code" ], [ "of" ], [ "type" ], [ "of" ], [ "document" ], [ "of" ], [ "which" ], [ "there" ], [ "are" ], [ "for" ], [ "or" ], [ "more" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "code", "NN" ], [ "of", "IN" ], [ "type", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "of", "IN" ], [ "which", "WDT" ], [ "there", "EX" ], [ "are", "VBP" ], [ "for", "IN" ], [ "or", "CC" ], [ "more", "JJR" ], [ "?", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(5) Filter(5) A(3) C(0) T(5) V(0)" }, { "db_id": "document_management", "query": "SELECT sum(access_count) FROM documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "sum", "(", "access_count", ")", "FROM", "documents", "GROUP", "BY", "document_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "sum", "(", "access_count", ")", "from", "documents", "group", "by", "document_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the total access count of all documents in the most popular document type.", "question_toks": [ "find", "total", "access", "count", "of", "all", "document", "in", "most", "popular", "document", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 4, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Find", "the", "total", "access", "count", "of", "all", "documents", "in", "the", "most", "popular", "document", "type", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "access", "count" ], [ "of" ], [ "all" ], [ "document" ], [ "in" ], [ "most" ], [ "popular" ], [ "document" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "access", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "document", "NN" ], [ "in", "IN" ], [ "most", "JJS" ], [ "popular", "JJ" ], [ "document", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(4) C(19) T(5) Sup(0) A(3) C(0) T(5)" }, { "db_id": "document_management", "query": "SELECT sum(access_count) FROM documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "sum", "(", "access_count", ")", "FROM", "documents", "GROUP", "BY", "document_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "sum", "(", "access_count", ")", "from", "documents", "group", "by", "document_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the total access count of documents that are of the most common document type?", "question_toks": [ "what", "is", "total", "access", "count", "of", "document", "that", "are", "of", "most", "common", "document", "type", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 4, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "is", "the", "total", "access", "count", "of", "documents", "that", "are", "of", "the", "most", "common", "document", "type", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "access", "count" ], [ "of" ], [ "document" ], [ "that" ], [ "are" ], [ "of" ], [ "most" ], [ "common" ], [ "document" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "access", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "of", "IN" ], [ "most", "JJS" ], [ "common", "JJ" ], [ "document", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(4) C(19) T(5) Sup(0) A(3) C(0) T(5)" }, { "db_id": "document_management", "query": "SELECT avg(access_count) FROM documents", "query_toks": [ "SELECT", "avg", "(", "access_count", ")", "FROM", "documents" ], "query_toks_no_value": [ "select", "avg", "(", "access_count", ")", "from", "documents" ], "question": "What is the average access count of documents?", "question_toks": [ "what", "is", "average", "access", "count", "of", "document", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "is", "the", "average", "access", "count", "of", "documents", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "access", "count" ], [ "of" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "access", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(19) T(5)" }, { "db_id": "document_management", "query": "SELECT avg(access_count) FROM documents", "query_toks": [ "SELECT", "avg", "(", "access_count", ")", "FROM", "documents" ], "query_toks_no_value": [ "select", "avg", "(", "access_count", ")", "from", "documents" ], "question": "Find the average access count across all documents?", "question_toks": [ "find", "average", "access", "count", "across", "all", "document", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Find", "the", "average", "access", "count", "across", "all", "documents", "?" ], "question_arg": [ [ "find" ], [ "average" ], [ "access", "count" ], [ "across" ], [ "all" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "access", "NN" ], [ "count", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "document", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(19) T(5)" }, { "db_id": "document_management", "query": "SELECT t2.document_structure_description FROM documents AS t1 JOIN document_structures AS t2 ON t1.document_structure_code = t2.document_structure_code GROUP BY t1.document_structure_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.document_structure_description", "FROM", "documents", "AS", "t1", "JOIN", "document_structures", "AS", "t2", "ON", "t1.document_structure_code", "=", "t2.document_structure_code", "GROUP", "BY", "t1.document_structure_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "document_structure_description", "from", "documents", "as", "t1", "join", "document_structures", "as", "t2", "on", "t1", ".", "document_structure_code", "=", "t2", ".", "document_structure_code", "group", "by", "t1", ".", "document_structure_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the structure of the document with the least number of accesses?", "question_toks": [ "what", "is", "structure", "of", "document", "with", "least", "number", "of", "access", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "is", "the", "structure", "of", "the", "document", "with", "the", "least", "number", "of", "accesses", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "structure" ], [ "of" ], [ "document" ], [ "with" ], [ "least" ], [ "number" ], [ "of" ], [ "access" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "structure", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "access", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(9) T(2) Sup(0) A(3) C(0) T(5) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(5)" }, { "db_id": "document_management", "query": "SELECT t2.document_structure_description FROM documents AS t1 JOIN document_structures AS t2 ON t1.document_structure_code = t2.document_structure_code GROUP BY t1.document_structure_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.document_structure_description", "FROM", "documents", "AS", "t1", "JOIN", "document_structures", "AS", "t2", "ON", "t1.document_structure_code", "=", "t2.document_structure_code", "GROUP", "BY", "t1.document_structure_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "document_structure_description", "from", "documents", "as", "t1", "join", "document_structures", "as", "t2", "on", "t1", ".", "document_structure_code", "=", "t2", ".", "document_structure_code", "group", "by", "t1", ".", "document_structure_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the structure description of the document that has been accessed the fewest number of times.", "question_toks": [ "return", "structure", "description", "of", "document", "that", "ha", "been", "accessed", "fewest", "number", "of", "time", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Return", "the", "structure", "description", "of", "the", "document", "that", "has", "been", "accessed", "the", "fewest", "number", "of", "times", "." ], "question_arg": [ [ "return" ], [ "document", "structure", "description" ], [ "of" ], [ "document" ], [ "that" ], [ "ha" ], [ "been" ], [ "accessed" ], [ "fewest" ], [ "number" ], [ "of" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "structure", "NN" ], [ "description", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "that", "WDT" ], [ "ha", "VBD" ], [ "been", "VBN" ], [ "accessed", "VBN" ], [ "fewest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(9) T(2) Sup(0) A(3) C(0) T(5) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(5)" }, { "db_id": "document_management", "query": "SELECT document_type_code FROM documents WHERE document_name = \"David CV\"", "query_toks": [ "SELECT", "document_type_code", "FROM", "documents", "WHERE", "document_name", "=", "``", "David", "CV", "''" ], "query_toks_no_value": [ "select", "document_type_code", "from", "documents", "where", "document_name", "=", "value" ], "question": "What is the type of the document named \"David CV\"?", "question_toks": [ "what", "is", "type", "of", "document", "named", "'", "david", "cv", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"David CV\"", null ] ] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "is", "the", "type", "of", "the", "document", "named", "``", "David", "CV", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "type" ], [ "of" ], [ "document" ], [ "named" ], [ "'" ], [ "david" ], [ "cv" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "type", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "david", "JJ" ], [ "cv", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "CV", "David CV" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(5) Filter(2) A(0) C(20) T(5) V(1)" }, { "db_id": "document_management", "query": "SELECT document_type_code FROM documents WHERE document_name = \"David CV\"", "query_toks": [ "SELECT", "document_type_code", "FROM", "documents", "WHERE", "document_name", "=", "``", "David", "CV", "''" ], "query_toks_no_value": [ "select", "document_type_code", "from", "documents", "where", "document_name", "=", "value" ], "question": "Return the type code of the document named \"David CV\".", "question_toks": [ "return", "type", "code", "of", "document", "named", "'", "david", "cv", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"David CV\"", null ] ] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Return", "the", "type", "code", "of", "the", "document", "named", "``", "David", "CV", "''", "." ], "question_arg": [ [ "return" ], [ "document", "type", "code" ], [ "of" ], [ "document" ], [ "named" ], [ "'" ], [ "david" ], [ "cv" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "david", "JJ" ], [ "cv", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "CV", "David CV" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(5) Filter(2) A(0) C(20) T(5) V(1)" }, { "db_id": "document_management", "query": "SELECT document_name FROM documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 3 INTERSECT SELECT document_name FROM documents GROUP BY document_structure_code ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "document_name", "FROM", "documents", "GROUP", "BY", "document_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3", "INTERSECT", "SELECT", "document_name", "FROM", "documents", "GROUP", "BY", "document_structure_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "document_name", "from", "documents", "group", "by", "document_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", "intersect", "select", "document_name", "from", "documents", "group", "by", "document_structure_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the list of documents that are both in the most three popular type and have the most three popular structure.", "question_toks": [ "find", "list", "of", "document", "that", "are", "both", "in", "most", "three", "popular", "type", "and", "have", "most", "three", "popular", "structure", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Find", "the", "list", "of", "documents", "that", "are", "both", "in", "the", "most", "three", "popular", "type", "and", "have", "the", "most", "three", "popular", "structure", "." ], "question_arg": [ [ "find" ], [ "list" ], [ "of" ], [ "document" ], [ "that" ], [ "are" ], [ "both" ], [ "in" ], [ "most" ], [ "three" ], [ "popular" ], [ "type" ], [ "and" ], [ "have" ], [ "most" ], [ "three" ], [ "popular" ], [ "structure" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "list", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "both", "DT" ], [ "in", "IN" ], [ "most", "JJS" ], [ "three", "CD" ], [ "popular", "JJ" ], [ "type", "NN" ], [ "and", "CC" ], [ "have", "VBP" ], [ "most", "VBN" ], [ "three", "CD" ], [ "popular", "JJ" ], [ "structure", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(0) Root(2) Sel(0) N(0) A(0) C(20) T(5) Sup(0) A(3) C(0) T(5) Root(2) Sel(0) N(0) A(0) C(20) T(5) Sup(0) A(3) C(0) T(5)" }, { "db_id": "document_management", "query": "SELECT document_name FROM documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 3 INTERSECT SELECT document_name FROM documents GROUP BY document_structure_code ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "document_name", "FROM", "documents", "GROUP", "BY", "document_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3", "INTERSECT", "SELECT", "document_name", "FROM", "documents", "GROUP", "BY", "document_structure_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "document_name", "from", "documents", "group", "by", "document_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", "intersect", "select", "document_name", "from", "documents", "group", "by", "document_structure_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the names of documents that have both one of the three most common types and one of three most common structures?", "question_toks": [ "what", "are", "name", "of", "document", "that", "have", "both", "one", "of", "three", "most", "common", "type", "and", "one", "of", "three", "most", "common", "structure", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "documents", "that", "have", "both", "one", "of", "the", "three", "most", "common", "types", "and", "one", "of", "three", "most", "common", "structures", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "document" ], [ "that" ], [ "have" ], [ "both" ], [ "one" ], [ "of" ], [ "three" ], [ "most" ], [ "common" ], [ "type" ], [ "and" ], [ "one" ], [ "of" ], [ "three" ], [ "most" ], [ "common" ], [ "structure" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "one", "CD" ], [ "of", "IN" ], [ "three", "CD" ], [ "most", "JJS" ], [ "common", "JJ" ], [ "type", "NN" ], [ "and", "CC" ], [ "one", "CD" ], [ "of", "IN" ], [ "three", "CD" ], [ "most", "JJS" ], [ "common", "JJ" ], [ "structure", "NN" ], [ "?", "." ] ], "values": [ "1", "3", "Name" ], "rule_label": "Root1(0) Root(2) Sel(0) N(0) A(0) C(20) T(5) Sup(0) A(3) C(0) T(5) Root(2) Sel(0) N(0) A(0) C(20) T(5) Sup(0) A(3) C(0) T(5)" }, { "db_id": "document_management", "query": "SELECT document_type_code FROM documents GROUP BY document_type_code HAVING sum(access_count) > 10000", "query_toks": [ "SELECT", "document_type_code", "FROM", "documents", "GROUP", "BY", "document_type_code", "HAVING", "sum", "(", "access_count", ")", ">", "10000" ], "query_toks_no_value": [ "select", "document_type_code", "from", "documents", "group", "by", "document_type_code", "having", "sum", "(", "access_count", ")", ">", "value" ], "question": "What document types do have more than 10000 total access number.", "question_toks": [ "what", "document", "type", "do", "have", "more", "than", "10000", "total", "access", "number", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [ [ false, 3, [ 0, [ 4, 21, false ], null ], 10000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "document", "types", "do", "have", "more", "than", "10000", "total", "access", "number", "." ], "question_arg": [ [ "what" ], [ "document" ], [ "type" ], [ "do" ], [ "have" ], [ "more" ], [ "than" ], [ "10000" ], [ "total" ], [ "access" ], [ "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "document", "NN" ], [ "type", "NN" ], [ "do", "VBP" ], [ "have", "VB" ], [ "more", "JJR" ], [ "than", "IN" ], [ "10000", "CD" ], [ "total", "JJ" ], [ "access", "NN" ], [ "number", "NN" ], [ ".", "." ] ], "values": [ "10000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(5) Filter(5) A(4) C(19) T(5) V(0)" }, { "db_id": "document_management", "query": "SELECT document_type_code FROM documents GROUP BY document_type_code HAVING sum(access_count) > 10000", "query_toks": [ "SELECT", "document_type_code", "FROM", "documents", "GROUP", "BY", "document_type_code", "HAVING", "sum", "(", "access_count", ")", ">", "10000" ], "query_toks_no_value": [ "select", "document_type_code", "from", "documents", "group", "by", "document_type_code", "having", "sum", "(", "access_count", ")", ">", "value" ], "question": "Return the codes of the document types that do not have a total access count of over 10000.", "question_toks": [ "return", "code", "of", "document", "type", "that", "do", "not", "have", "a", "total", "access", "count", "of", "over", "10000", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [ [ false, 3, [ 0, [ 4, 21, false ], null ], 10000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Return", "the", "codes", "of", "the", "document", "types", "that", "do", "not", "have", "a", "total", "access", "count", "of", "over", "10000", "." ], "question_arg": [ [ "return" ], [ "code" ], [ "of" ], [ "document" ], [ "type" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "a" ], [ "total" ], [ "access", "count" ], [ "of" ], [ "over" ], [ "10000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "type", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "total", "JJ" ], [ "access", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "over", "IN" ], [ "10000", "CD" ], [ ".", "." ] ], "values": [ "10000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(5) Filter(5) A(4) C(19) T(5) V(0)" }, { "db_id": "document_management", "query": "SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = \"David CV\"", "query_toks": [ "SELECT", "t2.section_title", "FROM", "documents", "AS", "t1", "JOIN", "document_sections", "AS", "t2", "ON", "t1.document_code", "=", "t2.document_code", "WHERE", "t1.document_name", "=", "``", "David", "CV", "''" ], "query_toks_no_value": [ "select", "t2", ".", "section_title", "from", "documents", "as", "t1", "join", "document_sections", "as", "t2", "on", "t1", ".", "document_code", "=", "t2", ".", "document_code", "where", "t1", ".", "document_name", "=", "value" ], "question": "What are all the section titles of the document named \"David CV\"?", "question_toks": [ "what", "are", "all", "section", "title", "of", "document", "named", "'", "david", "cv", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"David CV\"", null ] ] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "are", "all", "the", "section", "titles", "of", "the", "document", "named", "``", "David", "CV", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "section", "title" ], [ "of" ], [ "document" ], [ "named" ], [ "'" ], [ "david" ], [ "cv" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "section", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "david", "JJ" ], [ "cv", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "CV", "David CV" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(24) T(7) Filter(2) A(0) C(20) T(5) V(1)" }, { "db_id": "document_management", "query": "SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = \"David CV\"", "query_toks": [ "SELECT", "t2.section_title", "FROM", "documents", "AS", "t1", "JOIN", "document_sections", "AS", "t2", "ON", "t1.document_code", "=", "t2.document_code", "WHERE", "t1.document_name", "=", "``", "David", "CV", "''" ], "query_toks_no_value": [ "select", "t2", ".", "section_title", "from", "documents", "as", "t1", "join", "document_sections", "as", "t2", "on", "t1", ".", "document_code", "=", "t2", ".", "document_code", "where", "t1", ".", "document_name", "=", "value" ], "question": "Give the section titles of the document with the name \"David CV\".", "question_toks": [ "give", "section", "title", "of", "document", "with", "name", "'", "david", "cv", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"David CV\"", null ] ] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Give", "the", "section", "titles", "of", "the", "document", "with", "the", "name", "``", "David", "CV", "''", "." ], "question_arg": [ [ "give" ], [ "section", "title" ], [ "of" ], [ "document" ], [ "with" ], [ "name" ], [ "'" ], [ "david" ], [ "cv" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "section", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "david", "JJ" ], [ "cv", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "CV", "David CV" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(24) T(7) Filter(2) A(0) C(20) T(5) V(1)" }, { "db_id": "document_management", "query": "SELECT document_name FROM documents WHERE document_code NOT IN (SELECT document_code FROM document_sections)", "query_toks": [ "SELECT", "document_name", "FROM", "documents", "WHERE", "document_code", "NOT", "IN", "(", "SELECT", "document_code", "FROM", "document_sections", ")" ], "query_toks_no_value": [ "select", "document_name", "from", "documents", "where", "document_code", "not", "in", "(", "select", "document_code", "from", "document_sections", ")" ], "question": "Find all the name of documents without any sections.", "question_toks": [ "find", "all", "name", "of", "document", "without", "any", "section", "." ], "sql": { "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": [ [ true, 8, [ 0, [ 0, 18, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Find", "all", "the", "name", "of", "documents", "without", "any", "sections", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "name" ], [ "of" ], [ "document" ], [ "without" ], [ "any" ], [ "section" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "name", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "without", "IN" ], [ "any", "DT" ], [ "section", "NN" ], [ ".", "." ] ], "values": [ "Name" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(20) T(5) Filter(19) A(0) C(17) T(5) Root(5) Sel(0) N(0) A(0) C(17) T(7)" }, { "db_id": "document_management", "query": "SELECT document_name FROM documents WHERE document_code NOT IN (SELECT document_code FROM document_sections)", "query_toks": [ "SELECT", "document_name", "FROM", "documents", "WHERE", "document_code", "NOT", "IN", "(", "SELECT", "document_code", "FROM", "document_sections", ")" ], "query_toks_no_value": [ "select", "document_name", "from", "documents", "where", "document_code", "not", "in", "(", "select", "document_code", "from", "document_sections", ")" ], "question": "What are the names of documents that do not have any sections?", "question_toks": [ "what", "are", "name", "of", "document", "that", "do", "not", "have", "any", "section", "?" ], "sql": { "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": [ [ true, 8, [ 0, [ 0, 18, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "documents", "that", "do", "not", "have", "any", "sections", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "document" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "section" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "section", "NN" ], [ "?", "." ] ], "values": [ "Name" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(20) T(5) Filter(19) A(0) C(17) T(5) Root(5) Sel(0) N(0) A(0) C(17) T(7)" }, { "db_id": "document_management", "query": "SELECT user_name , password FROM users GROUP BY role_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "user_name", ",", "password", "FROM", "users", "GROUP", "BY", "role_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "user_name", ",", "password", "from", "users", "group", "by", "role_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "List all the username and passwords of users with the most popular role.", "question_toks": [ "list", "all", "username", "and", "password", "of", "user", "with", "most", "popular", "role", "." ], "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, 5, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "List", "all", "the", "username", "and", "passwords", "of", "users", "with", "the", "most", "popular", "role", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "username" ], [ "and" ], [ "password" ], [ "of" ], [ "user" ], [ "with" ], [ "most" ], [ "popular" ], [ "role" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "username", "JJ" ], [ "and", "CC" ], [ "password", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "with", "IN" ], [ "most", "RBS" ], [ "popular", "JJ" ], [ "role", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(4) T(1) A(0) C(6) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "document_management", "query": "SELECT user_name , password FROM users GROUP BY role_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "user_name", ",", "password", "FROM", "users", "GROUP", "BY", "role_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "user_name", ",", "password", "from", "users", "group", "by", "role_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the usernames and passwords of users that have the most common role?", "question_toks": [ "what", "are", "usernames", "and", "password", "of", "user", "that", "have", "most", "common", "role", "?" ], "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, 5, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "usernames", "and", "passwords", "of", "users", "that", "have", "the", "most", "common", "role", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "usernames" ], [ "and" ], [ "password" ], [ "of" ], [ "user" ], [ "that" ], [ "have" ], [ "most" ], [ "common" ], [ "role" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "usernames", "JJ" ], [ "and", "CC" ], [ "password", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "role", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(4) T(1) A(0) C(6) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "document_management", "query": "SELECT avg(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code = t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code = t3.functional_area_code WHERE t3.functional_area_description = \"Acknowledgement\"", "query_toks": [ "SELECT", "avg", "(", "t1.access_count", ")", "FROM", "documents", "AS", "t1", "JOIN", "document_functional_areas", "AS", "t2", "ON", "t1.document_code", "=", "t2.document_code", "JOIN", "functional_areas", "AS", "t3", "ON", "t2.functional_area_code", "=", "t3.functional_area_code", "WHERE", "t3.functional_area_description", "=", "``", "Acknowledgement", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "access_count", ")", "from", "documents", "as", "t1", "join", "document_functional_areas", "as", "t2", "on", "t1", ".", "document_code", "=", "t2", ".", "document_code", "join", "functional_areas", "as", "t3", "on", "t2", ".", "functional_area_code", "=", "t3", ".", "functional_area_code", "where", "t3", ".", "functional_area_description", "=", "value" ], "question": "Find the average access counts of documents with functional area \"Acknowledgement\".", "question_toks": [ "find", "average", "access", "count", "of", "document", "with", "functional", "area", "'", "acknowledgement", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Acknowledgement\"", null ] ] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Find", "the", "average", "access", "counts", "of", "documents", "with", "functional", "area", "``", "Acknowledgement", "''", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "access", "count" ], [ "of" ], [ "document" ], [ "with" ], [ "functional", "area" ], [ "'" ], [ "acknowledgement" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "access", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "functional", "JJ" ], [ "area", "NN" ], [ "'", "POS" ], [ "acknowledgement", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Acknowledgement" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(19) T(5) Filter(0) Filter(18) A(0) C(17) T(5) Root(5) Sel(0) N(0) A(0) C(17) T(6) Filter(2) A(0) C(12) T(3) V(0)" }, { "db_id": "document_management", "query": "SELECT avg(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code = t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code = t3.functional_area_code WHERE t3.functional_area_description = \"Acknowledgement\"", "query_toks": [ "SELECT", "avg", "(", "t1.access_count", ")", "FROM", "documents", "AS", "t1", "JOIN", "document_functional_areas", "AS", "t2", "ON", "t1.document_code", "=", "t2.document_code", "JOIN", "functional_areas", "AS", "t3", "ON", "t2.functional_area_code", "=", "t3.functional_area_code", "WHERE", "t3.functional_area_description", "=", "``", "Acknowledgement", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "access_count", ")", "from", "documents", "as", "t1", "join", "document_functional_areas", "as", "t2", "on", "t1", ".", "document_code", "=", "t2", ".", "document_code", "join", "functional_areas", "as", "t3", "on", "t2", ".", "functional_area_code", "=", "t3", ".", "functional_area_code", "where", "t3", ".", "functional_area_description", "=", "value" ], "question": "What are the average access counts of documents that have the functional area description \"Acknowledgement\"?", "question_toks": [ "what", "are", "average", "access", "count", "of", "document", "that", "have", "functional", "area", "description", "'", "acknowledgement", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Acknowledgement\"", null ] ] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "average", "access", "counts", "of", "documents", "that", "have", "the", "functional", "area", "description", "``", "Acknowledgement", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "access", "count" ], [ "of" ], [ "document" ], [ "that" ], [ "have" ], [ "functional", "area", "description" ], [ "'" ], [ "acknowledgement" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "access", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "functional", "JJ" ], [ "area", "NN" ], [ "description", "NN" ], [ "'", "POS" ], [ "acknowledgement", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Acknowledgement" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(19) T(5) Filter(0) Filter(18) A(0) C(17) T(5) Root(5) Sel(0) N(0) A(0) C(17) T(6) Filter(2) A(0) C(12) T(3) V(0)" }, { "db_id": "document_management", "query": "SELECT document_name FROM documents EXCEPT SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code JOIN document_sections_images AS t3 ON t2.section_id = t3.section_id", "query_toks": [ "SELECT", "document_name", "FROM", "documents", "EXCEPT", "SELECT", "t1.document_name", "FROM", "documents", "AS", "t1", "JOIN", "document_sections", "AS", "t2", "ON", "t1.document_code", "=", "t2.document_code", "JOIN", "document_sections_images", "AS", "t3", "ON", "t2.section_id", "=", "t3.section_id" ], "query_toks_no_value": [ "select", "document_name", "from", "documents", "except", "select", "t1", ".", "document_name", "from", "documents", "as", "t1", "join", "document_sections", "as", "t2", "on", "t1", ".", "document_code", "=", "t2", ".", "document_code", "join", "document_sections_images", "as", "t3", "on", "t2", ".", "section_id", "=", "t3", ".", "section_id" ], "question": "Find names of the document without any images.", "question_toks": [ "find", "name", "of", "document", "without", "any", "image", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Find", "names", "of", "the", "document", "without", "any", "images", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "document" ], [ "without" ], [ "any" ], [ "image" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "without", "IN" ], [ "any", "DT" ], [ "image", "NN" ], [ ".", "." ] ], "values": [ "Name" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(20) T(5) Root(3) Sel(0) N(0) A(0) C(20) T(5) Filter(18) A(0) C(17) T(5) Root(5) Sel(0) N(0) A(0) C(17) T(7)" }, { "db_id": "document_management", "query": "SELECT document_name FROM documents EXCEPT SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code JOIN document_sections_images AS t3 ON t2.section_id = t3.section_id", "query_toks": [ "SELECT", "document_name", "FROM", "documents", "EXCEPT", "SELECT", "t1.document_name", "FROM", "documents", "AS", "t1", "JOIN", "document_sections", "AS", "t2", "ON", "t1.document_code", "=", "t2.document_code", "JOIN", "document_sections_images", "AS", "t3", "ON", "t2.section_id", "=", "t3.section_id" ], "query_toks_no_value": [ "select", "document_name", "from", "documents", "except", "select", "t1", ".", "document_name", "from", "documents", "as", "t1", "join", "document_sections", "as", "t2", "on", "t1", ".", "document_code", "=", "t2", ".", "document_code", "join", "document_sections_images", "as", "t3", "on", "t2", ".", "section_id", "=", "t3", ".", "section_id" ], "question": "What are the names of documents that do not have any images?", "question_toks": [ "what", "are", "name", "of", "document", "that", "do", "not", "have", "any", "image", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "documents", "that", "do", "not", "have", "any", "images", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "document" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "image" ], [ "?" ] ], "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" ], [ "document", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "image", "NN" ], [ "?", "." ] ], "values": [ "Name" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(20) T(5) Root(3) Sel(0) N(0) A(0) C(20) T(5) Filter(18) A(0) C(17) T(5) Root(5) Sel(0) N(0) A(0) C(17) T(7)" }, { "db_id": "document_management", "query": "SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code GROUP BY t1.document_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.document_name", "FROM", "documents", "AS", "t1", "JOIN", "document_sections", "AS", "t2", "ON", "t1.document_code", "=", "t2.document_code", "GROUP", "BY", "t1.document_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "document_name", "from", "documents", "as", "t1", "join", "document_sections", "as", "t2", "on", "t1", ".", "document_code", "=", "t2", ".", "document_code", "group", "by", "t1", ".", "document_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the document with the most number of sections?", "question_toks": [ "what", "is", "name", "of", "document", "with", "most", "number", "of", "section", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "document", "with", "the", "most", "number", "of", "sections", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "document" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "section" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "section", "NN" ], [ "?", "." ] ], "values": [ "Name" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(20) T(5) Sup(0) A(3) C(0) T(7) Filter(18) A(0) C(17) T(5) Root(5) Sel(0) N(0) A(0) C(17) T(7)" }, { "db_id": "document_management", "query": "SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code GROUP BY t1.document_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.document_name", "FROM", "documents", "AS", "t1", "JOIN", "document_sections", "AS", "t2", "ON", "t1.document_code", "=", "t2.document_code", "GROUP", "BY", "t1.document_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "document_name", "from", "documents", "as", "t1", "join", "document_sections", "as", "t2", "on", "t1", ".", "document_code", "=", "t2", ".", "document_code", "group", "by", "t1", ".", "document_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the name of the document that has the most sections.", "question_toks": [ "return", "name", "of", "document", "that", "ha", "most", "section", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Return", "the", "name", "of", "the", "document", "that", "has", "the", "most", "sections", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "document" ], [ "that" ], [ "ha" ], [ "most" ], [ "section" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "section", "NN" ], [ ".", "." ] ], "values": [ "Name" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(20) T(5) Sup(0) A(3) C(0) T(7) Filter(18) A(0) C(17) T(5) Root(5) Sel(0) N(0) A(0) C(17) T(7)" }, { "db_id": "document_management", "query": "SELECT document_name FROM documents WHERE document_name LIKE \"%CV%\"", "query_toks": [ "SELECT", "document_name", "FROM", "documents", "WHERE", "document_name", "LIKE", "``", "%", "CV", "%", "''" ], "query_toks_no_value": [ "select", "document_name", "from", "documents", "where", "document_name", "like", "value" ], "question": "List all the document names which contains \"CV\".", "question_toks": [ "list", "all", "document", "name", "which", "contains", "'", "cv", "'", "." ], "sql": { "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, 9, [ 0, [ 0, 22, false ], null ], "\"%CV%\"", null ] ] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "List", "all", "the", "document", "names", "which", "contains", "``", "CV", "''", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "document", "name" ], [ "which" ], [ "contains" ], [ "'" ], [ "cv" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "document", "NN" ], [ "name", "NN" ], [ "which", "WDT" ], [ "contains", "VBZ" ], [ "'", "POS" ], [ "cv", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "CV", "Name" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(20) T(5) Filter(9) A(0) C(20) T(5) V(0)" }, { "db_id": "document_management", "query": "SELECT document_name FROM documents WHERE document_name LIKE \"%CV%\"", "query_toks": [ "SELECT", "document_name", "FROM", "documents", "WHERE", "document_name", "LIKE", "``", "%", "CV", "%", "''" ], "query_toks_no_value": [ "select", "document_name", "from", "documents", "where", "document_name", "like", "value" ], "question": "What are the names of documents that contain the substring \"CV\"?", "question_toks": [ "what", "are", "name", "of", "document", "that", "contain", "substring", "'", "cv", "'", "?" ], "sql": { "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, 9, [ 0, [ 0, 22, false ], null ], "\"%CV%\"", null ] ] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "documents", "that", "contain", "the", "substring", "``", "CV", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "document" ], [ "that" ], [ "contain" ], [ "substring" ], [ "'" ], [ "cv" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "that", "WDT" ], [ "contain", "VBP" ], [ "substring", "VBG" ], [ "'", "''" ], [ "cv", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "CV", "Name" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(20) T(5) Filter(9) A(0) C(20) T(5) V(0)" }, { "db_id": "document_management", "query": "SELECT count(*) FROM users WHERE user_login = 1", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "users", "WHERE", "user_login", "=", "1" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "users", "where", "user_login", "=", "value" ], "question": "How many users are logged in?", "question_toks": [ "how", "many", "user", "are", "logged", "in", "?" ], "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, 6, false ], null ], 1.0, null ] ] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "How", "many", "users", "are", "logged", "in", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "user" ], [ "are" ], [ "logged" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "user", "NN" ], [ "are", "VBP" ], [ "logged", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "document_management", "query": "SELECT count(*) FROM users WHERE user_login = 1", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "users", "WHERE", "user_login", "=", "1" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "users", "where", "user_login", "=", "value" ], "question": "Count the number of users that are logged in.", "question_toks": [ "count", "number", "of", "user", "that", "are", "logged", "in", "." ], "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, 6, false ], null ], 1.0, null ] ] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Count", "the", "number", "of", "users", "that", "are", "logged", "in", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "user" ], [ "that" ], [ "are" ], [ "logged" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "logged", "VBN" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "document_management", "query": "SELECT role_description FROM ROLES WHERE role_code = (SELECT role_code FROM users WHERE user_login = 1 GROUP BY role_code ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "role_description", "FROM", "ROLES", "WHERE", "role_code", "=", "(", "SELECT", "role_code", "FROM", "users", "WHERE", "user_login", "=", "1", "GROUP", "BY", "role_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "role_description", "from", "roles", "where", "role_code", "=", "(", "select", "role_code", "from", "users", "where", "user_login", "=", "value", "group", "by", "role_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "Find the description of the most popular role among the users that have logged in.", "question_toks": [ "find", "description", "of", "most", "popular", "role", "among", "user", "that", "have", "logged", "in", "." ], "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 ], { "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": [ [ false, 2, [ 0, [ 0, 6, false ], null ], 1.0, null ] ] }, null ] ] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Find", "the", "description", "of", "the", "most", "popular", "role", "among", "the", "users", "that", "have", "logged", "in", "." ], "question_arg": [ [ "find" ], [ "description" ], [ "of" ], [ "most" ], [ "popular" ], [ "role" ], [ "among" ], [ "user" ], [ "that" ], [ "have" ], [ "logged" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "description", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "popular", "JJ" ], [ "role", "NN" ], [ "among", "IN" ], [ "user", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "logged", "VBN" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(11) A(0) C(1) T(0) Root(0) Sel(0) N(0) A(0) C(1) T(1) Sup(0) A(3) C(0) T(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "document_management", "query": "SELECT role_description FROM ROLES WHERE role_code = (SELECT role_code FROM users WHERE user_login = 1 GROUP BY role_code ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "role_description", "FROM", "ROLES", "WHERE", "role_code", "=", "(", "SELECT", "role_code", "FROM", "users", "WHERE", "user_login", "=", "1", "GROUP", "BY", "role_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "role_description", "from", "roles", "where", "role_code", "=", "(", "select", "role_code", "from", "users", "where", "user_login", "=", "value", "group", "by", "role_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "What is the description of the most popular role among users that have logged in?", "question_toks": [ "what", "is", "description", "of", "most", "popular", "role", "among", "user", "that", "have", "logged", "in", "?" ], "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 ], { "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": [ [ false, 2, [ 0, [ 0, 6, false ], null ], 1.0, null ] ] }, null ] ] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "is", "the", "description", "of", "the", "most", "popular", "role", "among", "users", "that", "have", "logged", "in", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "of" ], [ "most" ], [ "popular" ], [ "role" ], [ "among" ], [ "user" ], [ "that" ], [ "have" ], [ "logged" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "popular", "JJ" ], [ "role", "NN" ], [ "among", "IN" ], [ "user", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "logged", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(11) A(0) C(1) T(0) Root(0) Sel(0) N(0) A(0) C(1) T(1) Sup(0) A(3) C(0) T(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "document_management", "query": "SELECT avg(access_count) FROM documents GROUP BY document_structure_code ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "avg", "(", "access_count", ")", "FROM", "documents", "GROUP", "BY", "document_structure_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "avg", "(", "access_count", ")", "from", "documents", "group", "by", "document_structure_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Find the average access count of documents with the least popular structure.", "question_toks": [ "find", "average", "access", "count", "of", "document", "with", "least", "popular", "structure", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Find", "the", "average", "access", "count", "of", "documents", "with", "the", "least", "popular", "structure", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "access", "count" ], [ "of" ], [ "document" ], [ "with" ], [ "least" ], [ "popular" ], [ "structure" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "access", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "least", "JJS" ], [ "popular", "JJ" ], [ "structure", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(5) C(19) T(5) Sup(1) A(3) C(0) T(5)" }, { "db_id": "document_management", "query": "SELECT avg(access_count) FROM documents GROUP BY document_structure_code ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "avg", "(", "access_count", ")", "FROM", "documents", "GROUP", "BY", "document_structure_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "avg", "(", "access_count", ")", "from", "documents", "group", "by", "document_structure_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "What is the average access count of documents that have the least common structure?", "question_toks": [ "what", "is", "average", "access", "count", "of", "document", "that", "have", "least", "common", "structure", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "is", "the", "average", "access", "count", "of", "documents", "that", "have", "the", "least", "common", "structure", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "access", "count" ], [ "of" ], [ "document" ], [ "that" ], [ "have" ], [ "least" ], [ "common" ], [ "structure" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "access", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "least", "VBN" ], [ "common", "JJ" ], [ "structure", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(5) C(19) T(5) Sup(1) A(3) C(0) T(5)" }, { "db_id": "document_management", "query": "SELECT image_name , image_url FROM images ORDER BY image_name", "query_toks": [ "SELECT", "image_name", ",", "image_url", "FROM", "images", "ORDER", "BY", "image_name" ], "query_toks_no_value": [ "select", "image_name", ",", "image_url", "from", "images", "order", "by", "image_name" ], "question": "List all the image name and URLs in the order of their names.", "question_toks": [ "list", "all", "image", "name", "and", "url", "in", "order", "of", "their", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "List", "all", "the", "image", "name", "and", "URLs", "in", "the", "order", "of", "their", "names", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "image", "name" ], [ "and" ], [ "url" ], [ "in" ], [ "order" ], [ "of" ], [ "their" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "image", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "url", "NN" ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Name" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(15) T(4) A(0) C(16) T(4) Order(1) A(0) C(15) T(4)" }, { "db_id": "document_management", "query": "SELECT image_name , image_url FROM images ORDER BY image_name", "query_toks": [ "SELECT", "image_name", ",", "image_url", "FROM", "images", "ORDER", "BY", "image_name" ], "query_toks_no_value": [ "select", "image_name", ",", "image_url", "from", "images", "order", "by", "image_name" ], "question": "What are the names and urls of images, sorted alphabetically?", "question_toks": [ "what", "are", "name", "and", "url", "of", "image", ",", "sorted", "alphabetically", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "urls", "of", "images", ",", "sorted", "alphabetically", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "url" ], [ "of" ], [ "image" ], [ "," ], [ "sorted" ], [ "alphabetically" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "url", "NN" ], [ "of", "IN" ], [ "image", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "alphabetically", "RB" ], [ "?", "." ] ], "values": [ "Name" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(15) T(4) A(0) C(16) T(4) Order(1) A(0) C(15) T(4)" }, { "db_id": "document_management", "query": "SELECT count(*) , role_code FROM users GROUP BY role_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "role_code", "FROM", "users", "GROUP", "BY", "role_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "role_code", "from", "users", "group", "by", "role_code" ], "question": "Find the number of users in each role.", "question_toks": [ "find", "number", "of", "user", "in", "each", "role", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Find", "the", "number", "of", "users", "in", "each", "role", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "user" ], [ "in" ], [ "each" ], [ "role" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "role", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(1) A(0) C(1) T(1)" }, { "db_id": "document_management", "query": "SELECT count(*) , role_code FROM users GROUP BY role_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "role_code", "FROM", "users", "GROUP", "BY", "role_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "role_code", "from", "users", "group", "by", "role_code" ], "question": "What are the different role codes for users, and how many users have each?", "question_toks": [ "what", "are", "different", "role", "code", "for", "user", ",", "and", "how", "many", "user", "have", "each", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "different", "role", "codes", "for", "users", ",", "and", "how", "many", "users", "have", "each", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "role", "code" ], [ "for" ], [ "user" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "user" ], [ "have" ], [ "each" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "role", "NN" ], [ "code", "NN" ], [ "for", "IN" ], [ "user", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "user", "RB" ], [ "have", "VBP" ], [ "each", "DT" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(1) A(0) C(1) T(1)" }, { "db_id": "document_management", "query": "SELECT document_type_code FROM documents GROUP BY document_type_code HAVING count(*) > 2", "query_toks": [ "SELECT", "document_type_code", "FROM", "documents", "GROUP", "BY", "document_type_code", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "document_type_code", "from", "documents", "group", "by", "document_type_code", "having", "count", "(", "*", ")", ">", "value" ], "question": "What document types have more than 2 corresponding documents?", "question_toks": [ "what", "document", "type", "have", "more", "than", "2", "corresponding", "document", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "What", "document", "types", "have", "more", "than", "2", "corresponding", "documents", "?" ], "question_arg": [ [ "what" ], [ "document" ], [ "type" ], [ "have" ], [ "more" ], [ "than" ], [ "2" ], [ "corresponding" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "document", "NN" ], [ "type", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "corresponding", "VBG" ], [ "document", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(5) Filter(5) A(3) C(0) T(5) V(0)" }, { "db_id": "document_management", "query": "SELECT document_type_code FROM documents GROUP BY document_type_code HAVING count(*) > 2", "query_toks": [ "SELECT", "document_type_code", "FROM", "documents", "GROUP", "BY", "document_type_code", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "document_type_code", "from", "documents", "group", "by", "document_type_code", "having", "count", "(", "*", ")", ">", "value" ], "question": "Give the codes of document types that have more than 2 corresponding documents.", "question_toks": [ "give", "code", "of", "document", "type", "that", "have", "more", "than", "2", "corresponding", "document", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "role code", "role description", "user id", "role code", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document structure code", "document type code", "access count", "document name", "document code", "functional area code", "section id", "document code", "section sequence", "section code", "section title", "section id", "image id" ], "table_names": [ "roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images" ], "col_set": [ "*", "role code", "role description", "user id", "user name", "user login", "password", "document structure code", "parent document structure code", "document structure description", "functional area code", "parent functional area code", "functional area description", "image id", "image alt text", "image name", "image url", "document code", "document type code", "access count", "document name", "section id", "section sequence", "section code", "section title" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8 ], "keys": { "4": 1, "1": 1, "19": 8, "8": 8, "24": 11, "11": 11, "23": 18, "18": 18, "26": 18, "31": 14, "14": 14, "30": 30, "25": 25, "3": 3 }, "origin_question_toks": [ "Give", "the", "codes", "of", "document", "types", "that", "have", "more", "than", "2", "corresponding", "documents", "." ], "question_arg": [ [ "give" ], [ "code" ], [ "of" ], [ "document" ], [ "type" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "2" ], [ "corresponding" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "type", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "corresponding", "JJ" ], [ "document", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(5) Filter(5) A(3) C(0) T(5) V(0)" }, { "db_id": "company_office", "query": "SELECT count(*) FROM Companies", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Companies" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "companies" ], "question": "How many companies are there?", "question_toks": [ "how", "many", "company", "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", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "How", "many", "companies", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "company" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "company", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "company_office", "query": "SELECT count(*) FROM Companies", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Companies" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "companies" ], "question": "Count the number of companies.", "question_toks": [ "count", "number", "of", "company", "." ], "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", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "companies", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "company" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "company_office", "query": "SELECT name FROM Companies ORDER BY Market_Value_billion DESC", "query_toks": [ "SELECT", "name", "FROM", "Companies", "ORDER", "BY", "Market_Value_billion", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "companies", "order", "by", "market_value_billion", "desc" ], "question": "List the names of companies in descending order of market value.", "question_toks": [ "list", "name", "of", "company", "in", "descending", "order", "of", "market", "value", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "of", "companies", "in", "descending", "order", "of", "market", "value", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "company" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "market", "value", "billion" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "market", "NN" ], [ "value", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(1) Order(0) A(0) C(12) T(1)" }, { "db_id": "company_office", "query": "SELECT name FROM Companies ORDER BY Market_Value_billion DESC", "query_toks": [ "SELECT", "name", "FROM", "Companies", "ORDER", "BY", "Market_Value_billion", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "companies", "order", "by", "market_value_billion", "desc" ], "question": "Sort the company names in descending order of the company's market value.", "question_toks": [ "sort", "company", "name", "in", "descending", "order", "of", "company", "'s", "market", "value", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Sort", "the", "company", "names", "in", "descending", "order", "of", "the", "company", "'s", "market", "value", "." ], "question_arg": [ [ "sort" ], [ "company" ], [ "name" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "company" ], [ "'s" ], [ "market", "value", "billion" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "sort", "NN" ], [ "company", "NN" ], [ "name", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "'s", "POS" ], [ "market", "NN" ], [ "value", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(1) Order(0) A(0) C(12) T(1)" }, { "db_id": "company_office", "query": "SELECT name FROM Companies WHERE Headquarters != 'USA'", "query_toks": [ "SELECT", "name", "FROM", "Companies", "WHERE", "Headquarters", "!", "=", "'USA", "'" ], "query_toks_no_value": [ "select", "name", "from", "companies", "where", "headquarters", "!", "=", "value" ], "question": "What are the names of companies whose headquarters are not \"USA\"?", "question_toks": [ "what", "are", "name", "of", "company", "whose", "headquarters", "are", "not", "'", "usa", "'", "?" ], "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 ], "\"USA\"", null ] ] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "companies", "whose", "headquarters", "are", "not", "``", "USA", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "company" ], [ "whose" ], [ "headquarters" ], [ "are" ], [ "not" ], [ "'" ], [ "usa" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "whose", "WP$" ], [ "headquarters", "NNS" ], [ "are", "VBP" ], [ "not", "RB" ], [ "'", "''" ], [ "usa", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "USA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(3) A(0) C(7) T(1) V(0)" }, { "db_id": "company_office", "query": "SELECT name FROM Companies WHERE Headquarters != 'USA'", "query_toks": [ "SELECT", "name", "FROM", "Companies", "WHERE", "Headquarters", "!", "=", "'USA", "'" ], "query_toks_no_value": [ "select", "name", "from", "companies", "where", "headquarters", "!", "=", "value" ], "question": "Find the names of the companies whose headquarters are not located in \"USA\".", "question_toks": [ "find", "name", "of", "company", "whose", "headquarters", "are", "not", "located", "in", "'", "usa", "'", "." ], "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 ], "\"USA\"", null ] ] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "companies", "whose", "headquarters", "are", "not", "located", "in", "``", "USA", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "company" ], [ "whose" ], [ "headquarters" ], [ "are" ], [ "not" ], [ "located" ], [ "in" ], [ "'" ], [ "usa" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "whose", "WP$" ], [ "headquarters", "NNS" ], [ "are", "VBP" ], [ "not", "RB" ], [ "located", "VBN" ], [ "in", "IN" ], [ "'", "''" ], [ "usa", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "USA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(3) A(0) C(7) T(1) V(0)" }, { "db_id": "company_office", "query": "SELECT name , Assets_billion FROM Companies ORDER BY name ASC", "query_toks": [ "SELECT", "name", ",", "Assets_billion", "FROM", "Companies", "ORDER", "BY", "name", "ASC" ], "query_toks_no_value": [ "select", "name", ",", "assets_billion", "from", "companies", "order", "by", "name", "asc" ], "question": "What are the name and assets of each company, sorted in ascending order of company name?", "question_toks": [ "what", "are", "name", "and", "asset", "of", "each", "company", ",", "sorted", "in", "ascending", "order", "of", "company", "name", "?" ], "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, 8, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "assets", "of", "each", "company", ",", "sorted", "in", "ascending", "order", "of", "company", "name", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "asset" ], [ "of" ], [ "each" ], [ "company" ], [ "," ], [ "sorted" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "company" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "asset", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "company", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "name", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(1) A(0) C(11) T(1) Order(1) A(0) C(2) T(1)" }, { "db_id": "company_office", "query": "SELECT name , Assets_billion FROM Companies ORDER BY name ASC", "query_toks": [ "SELECT", "name", ",", "Assets_billion", "FROM", "Companies", "ORDER", "BY", "name", "ASC" ], "query_toks_no_value": [ "select", "name", ",", "assets_billion", "from", "companies", "order", "by", "name", "asc" ], "question": "List the name and assets of each company in ascending order of company name.", "question_toks": [ "list", "name", "and", "asset", "of", "each", "company", "in", "ascending", "order", "of", "company", "name", "." ], "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, 8, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "List", "the", "name", "and", "assets", "of", "each", "company", "in", "ascending", "order", "of", "company", "name", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "asset" ], [ "of" ], [ "each" ], [ "company" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "company" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "asset", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "company", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(1) A(0) C(11) T(1) Order(1) A(0) C(2) T(1)" }, { "db_id": "company_office", "query": "SELECT avg(Profits_billion) FROM Companies", "query_toks": [ "SELECT", "avg", "(", "Profits_billion", ")", "FROM", "Companies" ], "query_toks_no_value": [ "select", "avg", "(", "profits_billion", ")", "from", "companies" ], "question": "What are the average profits of companies?", "question_toks": [ "what", "are", "average", "profit", "of", "company", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "average", "profits", "of", "companies", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "profit" ], [ "of" ], [ "company" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "profit", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(10) T(1)" }, { "db_id": "company_office", "query": "SELECT avg(Profits_billion) FROM Companies", "query_toks": [ "SELECT", "avg", "(", "Profits_billion", ")", "FROM", "Companies" ], "query_toks_no_value": [ "select", "avg", "(", "profits_billion", ")", "from", "companies" ], "question": "Compute the average profits companies make.", "question_toks": [ "compute", "average", "profit", "company", "make", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Compute", "the", "average", "profits", "companies", "make", "." ], "question_arg": [ [ "compute" ], [ "average" ], [ "profit" ], [ "company" ], [ "make" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "compute", "JJ" ], [ "average", "JJ" ], [ "profit", "NN" ], [ "company", "NN" ], [ "make", "VBP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(10) T(1)" }, { "db_id": "company_office", "query": "SELECT max(Sales_billion) , min(Sales_billion) FROM Companies WHERE Industry != \"Banking\"", "query_toks": [ "SELECT", "max", "(", "Sales_billion", ")", ",", "min", "(", "Sales_billion", ")", "FROM", "Companies", "WHERE", "Industry", "!", "=", "``", "Banking", "''" ], "query_toks_no_value": [ "select", "max", "(", "sales_billion", ")", ",", "min", "(", "sales_billion", ")", "from", "companies", "where", "industry", "!", "=", "value" ], "question": "What are the maximum and minimum sales of the companies whose industries are not \"Banking\".", "question_toks": [ "what", "are", "maximum", "and", "minimum", "sale", "of", "company", "whose", "industry", "are", "not", "'", "banking", "'", "." ], "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 ] ], [ 2, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 10, false ], null ], "\"Banking\"", null ] ] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "maximum", "and", "minimum", "sales", "of", "the", "companies", "whose", "industries", "are", "not", "``", "Banking", "''", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "sale" ], [ "of" ], [ "company" ], [ "whose" ], [ "industry" ], [ "are" ], [ "not" ], [ "'" ], [ "banking" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "sale", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "whose", "WP$" ], [ "industry", "NN" ], [ "are", "VBP" ], [ "not", "RB" ], [ "'", "''" ], [ "banking", "VBG" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Banking" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(9) T(1) A(2) C(9) T(1) Filter(3) A(0) C(8) T(1) V(0)" }, { "db_id": "company_office", "query": "SELECT max(Sales_billion) , min(Sales_billion) FROM Companies WHERE Industry != \"Banking\"", "query_toks": [ "SELECT", "max", "(", "Sales_billion", ")", ",", "min", "(", "Sales_billion", ")", "FROM", "Companies", "WHERE", "Industry", "!", "=", "``", "Banking", "''" ], "query_toks_no_value": [ "select", "max", "(", "sales_billion", ")", ",", "min", "(", "sales_billion", ")", "from", "companies", "where", "industry", "!", "=", "value" ], "question": "Find the maximum and minimum sales of the companies that are not in the \"Banking\" industry.", "question_toks": [ "find", "maximum", "and", "minimum", "sale", "of", "company", "that", "are", "not", "in", "'", "banking", "'", "industry", "." ], "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 ] ], [ 2, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 10, false ], null ], "\"Banking\"", null ] ] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Find", "the", "maximum", "and", "minimum", "sales", "of", "the", "companies", "that", "are", "not", "in", "the", "``", "Banking", "''", "industry", "." ], "question_arg": [ [ "find" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "sale" ], [ "of" ], [ "company" ], [ "that" ], [ "are" ], [ "not" ], [ "in" ], [ "'" ], [ "banking" ], [ "'" ], [ "industry" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "sale", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "in", "IN" ], [ "'", "''" ], [ "banking", "NN" ], [ "'", "''" ], [ "industry", "NN" ], [ ".", "." ] ], "values": [ "Banking" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(9) T(1) A(2) C(9) T(1) Filter(3) A(0) C(8) T(1) V(0)" }, { "db_id": "company_office", "query": "SELECT count(DISTINCT Industry) FROM Companies", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Industry", ")", "FROM", "Companies" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "industry", ")", "from", "companies" ], "question": "How many different industries are the companies in?", "question_toks": [ "how", "many", "different", "industry", "are", "company", "in", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "How", "many", "different", "industries", "are", "the", "companies", "in", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "industry" ], [ "are" ], [ "company" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "industry", "NN" ], [ "are", "VBP" ], [ "company", "NN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(8) T(1)" }, { "db_id": "company_office", "query": "SELECT count(DISTINCT Industry) FROM Companies", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Industry", ")", "FROM", "Companies" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "industry", ")", "from", "companies" ], "question": "Count the number of distinct company industries.", "question_toks": [ "count", "number", "of", "distinct", "company", "industry", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "distinct", "company", "industries", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "distinct" ], [ "company" ], [ "industry" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "company", "NN" ], [ "industry", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(8) T(1)" }, { "db_id": "company_office", "query": "SELECT name FROM buildings ORDER BY Height DESC", "query_toks": [ "SELECT", "name", "FROM", "buildings", "ORDER", "BY", "Height", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "buildings", "order", "by", "height", "desc" ], "question": "List the names of buildings in descending order of building height.", "question_toks": [ "list", "name", "of", "building", "in", "descending", "order", "of", "building", "height", "." ], "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": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "of", "buildings", "in", "descending", "order", "of", "building", "height", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "building" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "building" ], [ "height" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "building", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "building", "NN" ], [ "height", "NN" ], [ ".", "." ] ], "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": "company_office", "query": "SELECT name FROM buildings ORDER BY Height DESC", "query_toks": [ "SELECT", "name", "FROM", "buildings", "ORDER", "BY", "Height", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "buildings", "order", "by", "height", "desc" ], "question": "What are the names of buildings sorted in descending order of building height?", "question_toks": [ "what", "are", "name", "of", "building", "sorted", "in", "descending", "order", "of", "building", "height", "?" ], "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": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "buildings", "sorted", "in", "descending", "order", "of", "building", "height", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "building" ], [ "sorted" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "building" ], [ "height" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "building", "NN" ], [ "sorted", "VBN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "building", "NN" ], [ "height", "NN" ], [ "?", "." ] ], "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": "company_office", "query": "SELECT Stories FROM buildings ORDER BY Height DESC LIMIT 1", "query_toks": [ "SELECT", "Stories", "FROM", "buildings", "ORDER", "BY", "Height", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "stories", "from", "buildings", "order", "by", "height", "desc", "limit", "value" ], "question": "Find the stories of the building with the largest height.", "question_toks": [ "find", "story", "of", "building", "with", "largest", "height", "." ], "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, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Find", "the", "stories", "of", "the", "building", "with", "the", "largest", "height", "." ], "question_arg": [ [ "find" ], [ "story" ], [ "of" ], [ "building" ], [ "with" ], [ "largest" ], [ "height" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "story", "NN" ], [ "of", "IN" ], [ "building", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "height", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(0) Sup(0) A(0) C(4) T(0)" }, { "db_id": "company_office", "query": "SELECT Stories FROM buildings ORDER BY Height DESC LIMIT 1", "query_toks": [ "SELECT", "Stories", "FROM", "buildings", "ORDER", "BY", "Height", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "stories", "from", "buildings", "order", "by", "height", "desc", "limit", "value" ], "question": "What is the stories of highest building?", "question_toks": [ "what", "is", "story", "of", "highest", "building", "?" ], "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, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "stories", "of", "highest", "building", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "story" ], [ "of" ], [ "highest" ], [ "building" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "story", "NN" ], [ "of", "IN" ], [ "highest", "JJS" ], [ "building", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(0) Sup(0) A(0) C(4) T(0)" }, { "db_id": "company_office", "query": "SELECT T3.name , T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id", "query_toks": [ "SELECT", "T3.name", ",", "T2.name", "FROM", "Office_locations", "AS", "T1", "JOIN", "buildings", "AS", "T2", "ON", "T1.building_id", "=", "T2.id", "JOIN", "Companies", "AS", "T3", "ON", "T1.company_id", "=", "T3.id" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "name", "from", "office_locations", "as", "t1", "join", "buildings", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "id", "join", "companies", "as", "t3", "on", "t1", ".", "company_id", "=", "t3", ".", "id" ], "question": "List the name of a building along with the name of a company whose office is in the building.", "question_toks": [ "list", "name", "of", "a", "building", "along", "with", "name", "of", "a", "company", "whose", "office", "is", "in", "building", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, 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, 8, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "List", "the", "name", "of", "a", "building", "along", "with", "the", "name", "of", "a", "company", "whose", "office", "is", "in", "the", "building", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "a" ], [ "building" ], [ "along" ], [ "with" ], [ "name" ], [ "of" ], [ "a" ], [ "company" ], [ "whose" ], [ "office" ], [ "is" ], [ "in" ], [ "building" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "a", "DT" ], [ "building", "NN" ], [ "along", "IN" ], [ "with", "IN" ], [ "name", "NN" ], [ "of", "IN" ], [ "a", "DT" ], [ "company", "NN" ], [ "whose", "WP$" ], [ "office", "NN" ], [ "is", "VBZ" ], [ "in", "IN" ], [ "building", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(1) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(13) T(2)" }, { "db_id": "company_office", "query": "SELECT T3.name , T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id", "query_toks": [ "SELECT", "T3.name", ",", "T2.name", "FROM", "Office_locations", "AS", "T1", "JOIN", "buildings", "AS", "T2", "ON", "T1.building_id", "=", "T2.id", "JOIN", "Companies", "AS", "T3", "ON", "T1.company_id", "=", "T3.id" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "name", "from", "office_locations", "as", "t1", "join", "buildings", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "id", "join", "companies", "as", "t3", "on", "t1", ".", "company_id", "=", "t3", ".", "id" ], "question": "For each company, return the company name and the name of the building its office is located in.", "question_toks": [ "for", "each", "company", ",", "return", "company", "name", "and", "name", "of", "building", "it", "office", "is", "located", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, 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, 8, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "For", "each", "company", ",", "return", "the", "company", "name", "and", "the", "name", "of", "the", "building", "its", "office", "is", "located", "in", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "company" ], [ "," ], [ "return" ], [ "company" ], [ "name" ], [ "and" ], [ "name" ], [ "of" ], [ "building" ], [ "it" ], [ "office" ], [ "is" ], [ "located" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "company", "NN" ], [ ",", "," ], [ "return", "VBP" ], [ "company", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "building", "VBG" ], [ "it", "PRP" ], [ "office", "NN" ], [ "is", "VBZ" ], [ "located", "VBN" ], [ "in", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(1) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(13) T(2)" }, { "db_id": "company_office", "query": "SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T2.name", "FROM", "Office_locations", "AS", "T1", "JOIN", "buildings", "AS", "T2", "ON", "T1.building_id", "=", "T2.id", "JOIN", "Companies", "AS", "T3", "ON", "T1.company_id", "=", "T3.id", "GROUP", "BY", "T1.building_id", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "office_locations", "as", "t1", "join", "buildings", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "id", "join", "companies", "as", "t3", "on", "t1", ".", "company_id", "=", "t3", ".", "id", "group", "by", "t1", ".", "building_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show the names of the buildings that have more than one company offices.", "question_toks": [ "show", "name", "of", "building", "that", "have", "more", "than", "one", "company", "office", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Show", "the", "names", "of", "the", "buildings", "that", "have", "more", "than", "one", "company", "offices", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "building" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "company" ], [ "office" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "building", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "company", "NN" ], [ "office", "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(13) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "company_office", "query": "SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T2.name", "FROM", "Office_locations", "AS", "T1", "JOIN", "buildings", "AS", "T2", "ON", "T1.building_id", "=", "T2.id", "JOIN", "Companies", "AS", "T3", "ON", "T1.company_id", "=", "T3.id", "GROUP", "BY", "T1.building_id", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "office_locations", "as", "t1", "join", "buildings", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "id", "join", "companies", "as", "t3", "on", "t1", ".", "company_id", "=", "t3", ".", "id", "group", "by", "t1", ".", "building_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which buildings have more than one company offices? Give me the building names.", "question_toks": [ "which", "building", "have", "more", "than", "one", "company", "office", "?", "give", "me", "building", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Which", "buildings", "have", "more", "than", "one", "company", "offices", "?", "Give", "me", "the", "building", "names", "." ], "question_arg": [ [ "which" ], [ "building" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "company" ], [ "office" ], [ "?" ], [ "give" ], [ "me" ], [ "building" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "building", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "company", "NN" ], [ "office", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "building", "VBG" ], [ "name", "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(13) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "company_office", "query": "SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", "FROM", "Office_locations", "AS", "T1", "JOIN", "buildings", "AS", "T2", "ON", "T1.building_id", "=", "T2.id", "JOIN", "Companies", "AS", "T3", "ON", "T1.company_id", "=", "T3.id", "GROUP", "BY", "T1.building_id", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "office_locations", "as", "t1", "join", "buildings", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "id", "join", "companies", "as", "t3", "on", "t1", ".", "company_id", "=", "t3", ".", "id", "group", "by", "t1", ".", "building_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the name of the building that has the most company offices.", "question_toks": [ "show", "name", "of", "building", "that", "ha", "most", "company", "office", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Show", "the", "name", "of", "the", "building", "that", "has", "the", "most", "company", "offices", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "building" ], [ "that" ], [ "ha" ], [ "most" ], [ "company" ], [ "office" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "building", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "company", "NN" ], [ "office", "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(13) T(2)" }, { "db_id": "company_office", "query": "SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", "FROM", "Office_locations", "AS", "T1", "JOIN", "buildings", "AS", "T2", "ON", "T1.building_id", "=", "T2.id", "JOIN", "Companies", "AS", "T3", "ON", "T1.company_id", "=", "T3.id", "GROUP", "BY", "T1.building_id", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "office_locations", "as", "t1", "join", "buildings", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "id", "join", "companies", "as", "t3", "on", "t1", ".", "company_id", "=", "t3", ".", "id", "group", "by", "t1", ".", "building_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which building has the largest number of company offices? Give me the building name.", "question_toks": [ "which", "building", "ha", "largest", "number", "of", "company", "office", "?", "give", "me", "building", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Which", "building", "has", "the", "largest", "number", "of", "company", "offices", "?", "Give", "me", "the", "building", "name", "." ], "question_arg": [ [ "which" ], [ "building" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "company" ], [ "office" ], [ "?" ], [ "give" ], [ "me" ], [ "building" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "building", "NN" ], [ "ha", "NN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "office", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "building", "VBG" ], [ "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(2) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(13) T(2)" }, { "db_id": "company_office", "query": "SELECT name FROM buildings WHERE Status = \"on-hold\" ORDER BY Stories ASC", "query_toks": [ "SELECT", "name", "FROM", "buildings", "WHERE", "Status", "=", "``", "on-hold", "''", "ORDER", "BY", "Stories", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "buildings", "where", "status", "=", "value", "order", "by", "stories", "asc" ], "question": "Please show the names of the buildings whose status is \"on-hold\", in ascending order of stories.", "question_toks": [ "please", "show", "name", "of", "building", "whose", "status", "is", "'", "on-hold", "'", ",", "in", "ascending", "order", "of", "story", "." ], "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": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"on-hold\"", null ] ] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Please", "show", "the", "names", "of", "the", "buildings", "whose", "status", "is", "``", "on-hold", "''", ",", "in", "ascending", "order", "of", "stories", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "name" ], [ "of" ], [ "building" ], [ "whose" ], [ "status" ], [ "is" ], [ "'" ], [ "on-hold" ], [ "'" ], [ "," ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "story" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "building", "VBG" ], [ "whose", "WP$" ], [ "status", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "on-hold", "JJ" ], [ "'", "NNS" ], [ ",", "," ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "story", "NN" ], [ ".", "." ] ], "values": [ "on-hold" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(0) V(0) Order(1) A(0) C(5) T(0)" }, { "db_id": "company_office", "query": "SELECT name FROM buildings WHERE Status = \"on-hold\" ORDER BY Stories ASC", "query_toks": [ "SELECT", "name", "FROM", "buildings", "WHERE", "Status", "=", "``", "on-hold", "''", "ORDER", "BY", "Stories", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "buildings", "where", "status", "=", "value", "order", "by", "stories", "asc" ], "question": "Find the names of the buildings in \"on-hold\" status, and sort them in ascending order of building stories.", "question_toks": [ "find", "name", "of", "building", "in", "'", "on-hold", "'", "status", ",", "and", "sort", "them", "in", "ascending", "order", "of", "building", "story", "." ], "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": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"on-hold\"", null ] ] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "buildings", "in", "``", "on-hold", "''", "status", ",", "and", "sort", "them", "in", "ascending", "order", "of", "building", "stories", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "building" ], [ "in" ], [ "'" ], [ "on-hold" ], [ "'" ], [ "status" ], [ "," ], [ "and" ], [ "sort" ], [ "them" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "building" ], [ "story" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "building", "NN" ], [ "in", "IN" ], [ "'", "POS" ], [ "on-hold", "JJ" ], [ "'", "''" ], [ "status", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "sort", "VB" ], [ "them", "PRP" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "building", "VBG" ], [ "story", "NN" ], [ ".", "." ] ], "values": [ "on-hold" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(0) V(0) Order(1) A(0) C(5) T(0)" }, { "db_id": "company_office", "query": "SELECT Industry , COUNT(*) FROM Companies GROUP BY Industry", "query_toks": [ "SELECT", "Industry", ",", "COUNT", "(", "*", ")", "FROM", "Companies", "GROUP", "BY", "Industry" ], "query_toks_no_value": [ "select", "industry", ",", "count", "(", "*", ")", "from", "companies", "group", "by", "industry" ], "question": "Please show each industry and the corresponding number of companies in that industry.", "question_toks": [ "please", "show", "each", "industry", "and", "corresponding", "number", "of", "company", "in", "that", "industry", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Please", "show", "each", "industry", "and", "the", "corresponding", "number", "of", "companies", "in", "that", "industry", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "each" ], [ "industry" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "company" ], [ "in" ], [ "that" ], [ "industry" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "VB" ], [ "each", "DT" ], [ "industry", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "in", "IN" ], [ "that", "DT" ], [ "industry", "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": "company_office", "query": "SELECT Industry , COUNT(*) FROM Companies GROUP BY Industry", "query_toks": [ "SELECT", "Industry", ",", "COUNT", "(", "*", ")", "FROM", "Companies", "GROUP", "BY", "Industry" ], "query_toks_no_value": [ "select", "industry", ",", "count", "(", "*", ")", "from", "companies", "group", "by", "industry" ], "question": "Whah are the name of each industry and the number of companies in that industry?", "question_toks": [ "whah", "are", "name", "of", "each", "industry", "and", "number", "of", "company", "in", "that", "industry", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Whah", "are", "the", "name", "of", "each", "industry", "and", "the", "number", "of", "companies", "in", "that", "industry", "?" ], "question_arg": [ [ "whah" ], [ "are" ], [ "name" ], [ "of" ], [ "each" ], [ "industry" ], [ "and" ], [ "number" ], [ "of" ], [ "company" ], [ "in" ], [ "that" ], [ "industry" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "whah", "NN" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "industry", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "in", "IN" ], [ "that", "DT" ], [ "industry", "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": "company_office", "query": "SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC", "query_toks": [ "SELECT", "Industry", "FROM", "Companies", "GROUP", "BY", "Industry", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "industry", "from", "companies", "group", "by", "industry", "order", "by", "count", "(", "*", ")", "desc" ], "question": "Please show the industries of companies in descending order of the number of companies.", "question_toks": [ "please", "show", "industry", "of", "company", "in", "descending", "order", "of", "number", "of", "company", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Please", "show", "the", "industries", "of", "companies", "in", "descending", "order", "of", "the", "number", "of", "companies", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "industry" ], [ "of" ], [ "company" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "number" ], [ "of" ], [ "company" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "industry", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(1) Order(0) A(3) C(0) T(1)" }, { "db_id": "company_office", "query": "SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC", "query_toks": [ "SELECT", "Industry", "FROM", "Companies", "GROUP", "BY", "Industry", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "industry", "from", "companies", "group", "by", "industry", "order", "by", "count", "(", "*", ")", "desc" ], "question": "Sort all the industries in descending order of the count of companies in each industry", "question_toks": [ "sort", "all", "industry", "in", "descending", "order", "of", "count", "of", "company", "in", "each", "industry" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Sort", "all", "the", "industries", "in", "descending", "order", "of", "the", "count", "of", "companies", "in", "each", "industry" ], "question_arg": [ [ "sort" ], [ "all" ], [ "industry" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "count" ], [ "of" ], [ "company" ], [ "in" ], [ "each" ], [ "industry" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ] ], "nltk_pos": [ [ "sort", "NN" ], [ "all", "DT" ], [ "industry", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "count", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "industry", "NN" ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(1) Order(0) A(3) C(0) T(1)" }, { "db_id": "company_office", "query": "SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Industry", "FROM", "Companies", "GROUP", "BY", "Industry", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "industry", "from", "companies", "group", "by", "industry", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "List the industry shared by the most companies.", "question_toks": [ "list", "industry", "shared", "by", "most", "company", "." ], "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": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "List", "the", "industry", "shared", "by", "the", "most", "companies", "." ], "question_arg": [ [ "list" ], [ "industry" ], [ "shared" ], [ "by" ], [ "most" ], [ "company" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "industry", "NN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "most", "JJS" ], [ "company", "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": "company_office", "query": "SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Industry", "FROM", "Companies", "GROUP", "BY", "Industry", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "industry", "from", "companies", "group", "by", "industry", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which industry has the most companies?", "question_toks": [ "which", "industry", "ha", "most", "company", "?" ], "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": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Which", "industry", "has", "the", "most", "companies", "?" ], "question_arg": [ [ "which" ], [ "industry" ], [ "ha" ], [ "most" ], [ "company" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "industry", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "company", "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": "company_office", "query": "SELECT name FROM buildings WHERE id NOT IN (SELECT building_id FROM Office_locations)", "query_toks": [ "SELECT", "name", "FROM", "buildings", "WHERE", "id", "NOT", "IN", "(", "SELECT", "building_id", "FROM", "Office_locations", ")" ], "query_toks_no_value": [ "select", "name", "from", "buildings", "where", "id", "not", "in", "(", "select", "building_id", "from", "office_locations", ")" ], "question": "List the names of buildings that have no company office.", "question_toks": [ "list", "name", "of", "building", "that", "have", "no", "company", "office", "." ], "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, 15, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "of", "buildings", "that", "have", "no", "company", "office", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "building" ], [ "that" ], [ "have" ], [ "no" ], [ "company" ], [ "office" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "building", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "no", "DT" ], [ "company", "NN" ], [ "office", "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(13) T(2)" }, { "db_id": "company_office", "query": "SELECT name FROM buildings WHERE id NOT IN (SELECT building_id FROM Office_locations)", "query_toks": [ "SELECT", "name", "FROM", "buildings", "WHERE", "id", "NOT", "IN", "(", "SELECT", "building_id", "FROM", "Office_locations", ")" ], "query_toks_no_value": [ "select", "name", "from", "buildings", "where", "id", "not", "in", "(", "select", "building_id", "from", "office_locations", ")" ], "question": "Which buildings do not have any company office? Give me the building names.", "question_toks": [ "which", "building", "do", "not", "have", "any", "company", "office", "?", "give", "me", "building", "name", "." ], "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, 15, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Which", "buildings", "do", "not", "have", "any", "company", "office", "?", "Give", "me", "the", "building", "names", "." ], "question_arg": [ [ "which" ], [ "building" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "company" ], [ "office" ], [ "?" ], [ "give" ], [ "me" ], [ "building" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "building", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "company", "NN" ], [ "office", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "building", "VBG" ], [ "name", "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(13) T(2)" }, { "db_id": "company_office", "query": "SELECT Industry FROM Companies WHERE Headquarters = \"USA\" INTERSECT SELECT Industry FROM Companies WHERE Headquarters = \"China\"", "query_toks": [ "SELECT", "Industry", "FROM", "Companies", "WHERE", "Headquarters", "=", "``", "USA", "''", "INTERSECT", "SELECT", "Industry", "FROM", "Companies", "WHERE", "Headquarters", "=", "``", "China", "''" ], "query_toks_no_value": [ "select", "industry", "from", "companies", "where", "headquarters", "=", "value", "intersect", "select", "industry", "from", "companies", "where", "headquarters", "=", "value" ], "question": "Show the industries shared by companies whose headquarters are \"USA\" and companies whose headquarters are \"China\".", "question_toks": [ "show", "industry", "shared", "by", "company", "whose", "headquarters", "are", "'", "usa", "'", "and", "company", "whose", "headquarters", "are", "'", "china", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"China\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"USA\"", null ] ] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Show", "the", "industries", "shared", "by", "companies", "whose", "headquarters", "are", "``", "USA", "''", "and", "companies", "whose", "headquarters", "are", "``", "China", "''", "." ], "question_arg": [ [ "show" ], [ "industry" ], [ "shared" ], [ "by" ], [ "company" ], [ "whose" ], [ "headquarters" ], [ "are" ], [ "'" ], [ "usa" ], [ "'" ], [ "and" ], [ "company" ], [ "whose" ], [ "headquarters" ], [ "are" ], [ "'" ], [ "china" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "name" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "industry", "NN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "company", "NN" ], [ "whose", "WP$" ], [ "headquarters", "NNS" ], [ "are", "VBP" ], [ "'", "''" ], [ "usa", "JJ" ], [ "'", "POS" ], [ "and", "CC" ], [ "company", "NN" ], [ "whose", "WP$" ], [ "headquarters", "NNS" ], [ "are", "VBP" ], [ "'", "''" ], [ "china", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "China", "USA" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(2) A(0) C(7) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(2) A(0) C(7) T(1) V(0)" }, { "db_id": "company_office", "query": "SELECT Industry FROM Companies WHERE Headquarters = \"USA\" INTERSECT SELECT Industry FROM Companies WHERE Headquarters = \"China\"", "query_toks": [ "SELECT", "Industry", "FROM", "Companies", "WHERE", "Headquarters", "=", "``", "USA", "''", "INTERSECT", "SELECT", "Industry", "FROM", "Companies", "WHERE", "Headquarters", "=", "``", "China", "''" ], "query_toks_no_value": [ "select", "industry", "from", "companies", "where", "headquarters", "=", "value", "intersect", "select", "industry", "from", "companies", "where", "headquarters", "=", "value" ], "question": "Which industries have both companies with headquarter in \"USA\" and companies with headquarter in \"China\"?", "question_toks": [ "which", "industry", "have", "both", "company", "with", "headquarter", "in", "'", "usa", "'", "and", "company", "with", "headquarter", "in", "'", "china", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"China\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"USA\"", null ] ] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Which", "industries", "have", "both", "companies", "with", "headquarter", "in", "``", "USA", "''", "and", "companies", "with", "headquarter", "in", "``", "China", "''", "?" ], "question_arg": [ [ "which" ], [ "industry" ], [ "have" ], [ "both" ], [ "company" ], [ "with" ], [ "headquarter" ], [ "in" ], [ "'" ], [ "usa" ], [ "'" ], [ "and" ], [ "company" ], [ "with" ], [ "headquarter" ], [ "in" ], [ "'" ], [ "china" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "name" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "industry", "NN" ], [ "have", "VBP" ], [ "both", "DT" ], [ "company", "NN" ], [ "with", "IN" ], [ "headquarter", "NN" ], [ "in", "IN" ], [ "'", "''" ], [ "usa", "JJ" ], [ "'", "POS" ], [ "and", "CC" ], [ "company", "NN" ], [ "with", "IN" ], [ "headquarter", "NN" ], [ "in", "IN" ], [ "'", "''" ], [ "china", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "China", "USA" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(2) A(0) C(7) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(2) A(0) C(7) T(1) V(0)" }, { "db_id": "company_office", "query": "SELECT count(*) FROM Companies WHERE Industry = \"Banking\" OR Industry = \"Conglomerate\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Companies", "WHERE", "Industry", "=", "``", "Banking", "''", "OR", "Industry", "=", "``", "Conglomerate", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "companies", "where", "industry", "=", "value", "or", "industry", "=", "value" ], "question": "Find the number of companies whose industry is \"Banking\" or \"Conglomerate\",", "question_toks": [ "find", "number", "of", "company", "whose", "industry", "is", "'", "banking", "'", "or", "'", "conglomerate", "'", "," ], "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, 10, false ], null ], "\"Banking\"", null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Conglomerate\"", null ] ] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "companies", "whose", "industry", "is", "``", "Banking", "''", "or", "``", "Conglomerate", "''", "," ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "company" ], [ "whose" ], [ "industry" ], [ "is" ], [ "'" ], [ "banking" ], [ "'" ], [ "or" ], [ "'" ], [ "conglomerate" ], [ "'" ], [ "," ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "whose", "WP$" ], [ "industry", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "banking", "VBG" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "conglomerate", "NN" ], [ "'", "''" ], [ ",", "," ] ], "values": [ "Conglomerate", "Banking" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(1) Filter(2) A(0) C(8) T(1) V(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "company_office", "query": "SELECT count(*) FROM Companies WHERE Industry = \"Banking\" OR Industry = \"Conglomerate\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Companies", "WHERE", "Industry", "=", "``", "Banking", "''", "OR", "Industry", "=", "``", "Conglomerate", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "companies", "where", "industry", "=", "value", "or", "industry", "=", "value" ], "question": "How many companies are in either \"Banking\" industry or \"Conglomerate\" industry?", "question_toks": [ "how", "many", "company", "are", "in", "either", "'", "banking", "'", "industry", "or", "'", "conglomerate", "'", "industry", "?" ], "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, 10, false ], null ], "\"Banking\"", null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Conglomerate\"", null ] ] }, "names": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "How", "many", "companies", "are", "in", "either", "``", "Banking", "''", "industry", "or", "``", "Conglomerate", "''", "industry", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "company" ], [ "are" ], [ "in" ], [ "either" ], [ "'" ], [ "banking" ], [ "'" ], [ "industry" ], [ "or" ], [ "'" ], [ "conglomerate" ], [ "'" ], [ "industry" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "company", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "either", "DT" ], [ "'", "POS" ], [ "banking", "NN" ], [ "'", "''" ], [ "industry", "NN" ], [ "or", "CC" ], [ "'", "''" ], [ "conglomerate", "NN" ], [ "'", "''" ], [ "industry", "NN" ], [ "?", "." ] ], "values": [ "Conglomerate", "Banking" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(1) Filter(2) A(0) C(8) T(1) V(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "company_office", "query": "SELECT Headquarters FROM Companies GROUP BY Headquarters HAVING COUNT(*) > 2", "query_toks": [ "SELECT", "Headquarters", "FROM", "Companies", "GROUP", "BY", "Headquarters", "HAVING", "COUNT", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "headquarters", "from", "companies", "group", "by", "headquarters", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show the headquarters shared by more than two companies.", "question_toks": [ "show", "headquarters", "shared", "by", "more", "than", "two", "company", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [ [ false, 3, [ 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": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Show", "the", "headquarters", "shared", "by", "more", "than", "two", "companies", "." ], "question_arg": [ [ "show" ], [ "headquarters" ], [ "shared" ], [ "by" ], [ "more" ], [ "than" ], [ "two" ], [ "company" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "headquarters", "NNS" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "two", "CD" ], [ "company", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "company_office", "query": "SELECT Headquarters FROM Companies GROUP BY Headquarters HAVING COUNT(*) > 2", "query_toks": [ "SELECT", "Headquarters", "FROM", "Companies", "GROUP", "BY", "Headquarters", "HAVING", "COUNT", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "headquarters", "from", "companies", "group", "by", "headquarters", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which headquarter locations are used by more than 2 companies?", "question_toks": [ "which", "headquarter", "location", "are", "used", "by", "more", "than", "2", "company", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [ [ false, 3, [ 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": [ "*", "id", "name", "city", "height", "stories", "status", "id", "name", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "table_names": [ "buildings", "companies", "office locations" ], "col_set": [ "*", "id", "name", "city", "height", "stories", "status", "headquarters", "industry", "sales billion", "profits billion", "assets billion", "market value billion", "building id", "company id", "move in year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "16": 7, "7": 7, "15": 15, "1": 1 }, "origin_question_toks": [ "Which", "headquarter", "locations", "are", "used", "by", "more", "than", "2", "companies", "?" ], "question_arg": [ [ "which" ], [ "headquarter" ], [ "location" ], [ "are" ], [ "used" ], [ "by" ], [ "more" ], [ "than" ], [ "2" ], [ "company" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "headquarter", "NN" ], [ "location", "NN" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "by", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "company", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "solvency_ii", "query": "SELECT count(*) FROM Products", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Products" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products" ], "question": "How many products are there?", "question_toks": [ "how", "many", "product", "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": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "other details", "channel id", "other details", "finance id", "other details", "event id", "address id", "channel id", "event type code", "finance id", "location id", "product in event id", "event id", "product id", "party id", "event id", "role code", "document id", "event id", "asset id", "event id" ], "table_names": [ "addresses", "locations", "products", "parties", "assets", "channels", "finances", "events", "products in events", "parties in events", "agreements", "assets in events" ], "col_set": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "channel id", "finance id", "event id", "event type code", "product in event id", "role code", "document id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "21": 15, "15": 15, "18": 1, "1": 1, "22": 3, "3": 3, "25": 5, "5": 5, "24": 17, "17": 17, "27": 17, "26": 26, "9": 9, "30": 17, "32": 17, "11": 11, "13": 13, "23": 23, "29": 29, "31": 31 }, "origin_question_toks": [ "How", "many", "products", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "product" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "product", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "solvency_ii", "query": "SELECT Product_Name FROM Products ORDER BY Product_Price ASC", "query_toks": [ "SELECT", "Product_Name", "FROM", "Products", "ORDER", "BY", "Product_Price", "ASC" ], "query_toks_no_value": [ "select", "product_name", "from", "products", "order", "by", "product_price", "asc" ], "question": "List the name of products in ascending order of price.", "question_toks": [ "list", "name", "of", "product", "in", "ascending", "order", "of", "price", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "other details", "channel id", "other details", "finance id", "other details", "event id", "address id", "channel id", "event type code", "finance id", "location id", "product in event id", "event id", "product id", "party id", "event id", "role code", "document id", "event id", "asset id", "event id" ], "table_names": [ "addresses", "locations", "products", "parties", "assets", "channels", "finances", "events", "products in events", "parties in events", "agreements", "assets in events" ], "col_set": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "channel id", "finance id", "event id", "event type code", "product in event id", "role code", "document id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "21": 15, "15": 15, "18": 1, "1": 1, "22": 3, "3": 3, "25": 5, "5": 5, "24": 17, "17": 17, "27": 17, "26": 26, "9": 9, "30": 17, "32": 17, "11": 11, "13": 13, "23": 23, "29": 29, "31": 31 }, "origin_question_toks": [ "List", "the", "name", "of", "products", "in", "ascending", "order", "of", "price", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "product" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "price", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(7) T(2) Order(1) A(0) C(8) T(2)" }, { "db_id": "solvency_ii", "query": "SELECT Product_Name , Product_Type_Code FROM Products", "query_toks": [ "SELECT", "Product_Name", ",", "Product_Type_Code", "FROM", "Products" ], "query_toks_no_value": [ "select", "product_name", ",", "product_type_code", "from", "products" ], "question": "What are the names and type codes of products?", "question_toks": [ "what", "are", "name", "and", "type", "code", "of", "product", "?" ], "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": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "other details", "channel id", "other details", "finance id", "other details", "event id", "address id", "channel id", "event type code", "finance id", "location id", "product in event id", "event id", "product id", "party id", "event id", "role code", "document id", "event id", "asset id", "event id" ], "table_names": [ "addresses", "locations", "products", "parties", "assets", "channels", "finances", "events", "products in events", "parties in events", "agreements", "assets in events" ], "col_set": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "channel id", "finance id", "event id", "event type code", "product in event id", "role code", "document id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "21": 15, "15": 15, "18": 1, "1": 1, "22": 3, "3": 3, "25": 5, "5": 5, "24": 17, "17": 17, "27": 17, "26": 26, "9": 9, "30": 17, "32": 17, "11": 11, "13": 13, "23": 23, "29": 29, "31": 31 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "type", "codes", "of", "products", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "type" ], [ "code" ], [ "of" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "type", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(2) A(0) C(6) T(2)" }, { "db_id": "solvency_ii", "query": "SELECT Product_Price FROM Products WHERE Product_Name = \"Dining\" OR Product_Name = \"Trading Policy\"", "query_toks": [ "SELECT", "Product_Price", "FROM", "Products", "WHERE", "Product_Name", "=", "``", "Dining", "''", "OR", "Product_Name", "=", "``", "Trading", "Policy", "''" ], "query_toks_no_value": [ "select", "product_price", "from", "products", "where", "product_name", "=", "value", "or", "product_name", "=", "value" ], "question": "Show the prices of the products named \"Dining\" or \"Trading Policy\".", "question_toks": [ "show", "price", "of", "product", "named", "'", "dining", "'", "or", "'", "trading", "policy", "'", "." ], "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, 7, false ], null ], "\"Dining\"", null ], "or", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Trading Policy\"", null ] ] }, "names": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "other details", "channel id", "other details", "finance id", "other details", "event id", "address id", "channel id", "event type code", "finance id", "location id", "product in event id", "event id", "product id", "party id", "event id", "role code", "document id", "event id", "asset id", "event id" ], "table_names": [ "addresses", "locations", "products", "parties", "assets", "channels", "finances", "events", "products in events", "parties in events", "agreements", "assets in events" ], "col_set": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "channel id", "finance id", "event id", "event type code", "product in event id", "role code", "document id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "21": 15, "15": 15, "18": 1, "1": 1, "22": 3, "3": 3, "25": 5, "5": 5, "24": 17, "17": 17, "27": 17, "26": 26, "9": 9, "30": 17, "32": 17, "11": 11, "13": 13, "23": 23, "29": 29, "31": 31 }, "origin_question_toks": [ "Show", "the", "prices", "of", "the", "products", "named", "``", "Dining", "''", "or", "``", "Trading", "Policy", "''", "." ], "question_arg": [ [ "show" ], [ "price" ], [ "of" ], [ "product" ], [ "named" ], [ "'" ], [ "dining" ], [ "'" ], [ "or" ], [ "'" ], [ "trading" ], [ "policy" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "price", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "dining", "VBG" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "trading", "NN" ], [ "policy", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Dining", "Trading Policy" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(1) Filter(2) A(0) C(7) T(2) V(0) Filter(2) A(0) C(7) T(2) V(1)" }, { "db_id": "solvency_ii", "query": "SELECT avg(Product_Price) FROM Products", "query_toks": [ "SELECT", "avg", "(", "Product_Price", ")", "FROM", "Products" ], "query_toks_no_value": [ "select", "avg", "(", "product_price", ")", "from", "products" ], "question": "What is the average price for products?", "question_toks": [ "what", "is", "average", "price", "for", "product", "?" ], "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": [] }, "names": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "other details", "channel id", "other details", "finance id", "other details", "event id", "address id", "channel id", "event type code", "finance id", "location id", "product in event id", "event id", "product id", "party id", "event id", "role code", "document id", "event id", "asset id", "event id" ], "table_names": [ "addresses", "locations", "products", "parties", "assets", "channels", "finances", "events", "products in events", "parties in events", "agreements", "assets in events" ], "col_set": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "channel id", "finance id", "event id", "event type code", "product in event id", "role code", "document id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "21": 15, "15": 15, "18": 1, "1": 1, "22": 3, "3": 3, "25": 5, "5": 5, "24": 17, "17": 17, "27": 17, "26": 26, "9": 9, "30": 17, "32": 17, "11": 11, "13": 13, "23": 23, "29": 29, "31": 31 }, "origin_question_toks": [ "What", "is", "the", "average", "price", "for", "products", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "price" ], [ "for" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "for", "IN" ], [ "product", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(8) T(2)" }, { "db_id": "solvency_ii", "query": "SELECT Product_Name FROM Products ORDER BY Product_Price DESC LIMIT 1", "query_toks": [ "SELECT", "Product_Name", "FROM", "Products", "ORDER", "BY", "Product_Price", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "product_name", "from", "products", "order", "by", "product_price", "desc", "limit", "value" ], "question": "What is the name of the product with the highest price?", "question_toks": [ "what", "is", "name", "of", "product", "with", "highest", "price", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "other details", "channel id", "other details", "finance id", "other details", "event id", "address id", "channel id", "event type code", "finance id", "location id", "product in event id", "event id", "product id", "party id", "event id", "role code", "document id", "event id", "asset id", "event id" ], "table_names": [ "addresses", "locations", "products", "parties", "assets", "channels", "finances", "events", "products in events", "parties in events", "agreements", "assets in events" ], "col_set": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "channel id", "finance id", "event id", "event type code", "product in event id", "role code", "document id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "21": 15, "15": 15, "18": 1, "1": 1, "22": 3, "3": 3, "25": 5, "5": 5, "24": 17, "17": 17, "27": 17, "26": 26, "9": 9, "30": 17, "32": 17, "11": 11, "13": 13, "23": 23, "29": 29, "31": 31 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "product", "with", "the", "highest", "price", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "product" ], [ "with" ], [ "highest" ], [ "price" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "price", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(2) Sup(0) A(0) C(8) T(2)" }, { "db_id": "solvency_ii", "query": "SELECT Product_Type_Code , COUNT(*) FROM Products GROUP BY Product_Type_Code", "query_toks": [ "SELECT", "Product_Type_Code", ",", "COUNT", "(", "*", ")", "FROM", "Products", "GROUP", "BY", "Product_Type_Code" ], "query_toks_no_value": [ "select", "product_type_code", ",", "count", "(", "*", ")", "from", "products", "group", "by", "product_type_code" ], "question": "Show different type codes of products and the number of products with each type code.", "question_toks": [ "show", "different", "type", "code", "of", "product", "and", "number", "of", "product", "with", "each", "type", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "other details", "channel id", "other details", "finance id", "other details", "event id", "address id", "channel id", "event type code", "finance id", "location id", "product in event id", "event id", "product id", "party id", "event id", "role code", "document id", "event id", "asset id", "event id" ], "table_names": [ "addresses", "locations", "products", "parties", "assets", "channels", "finances", "events", "products in events", "parties in events", "agreements", "assets in events" ], "col_set": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "channel id", "finance id", "event id", "event type code", "product in event id", "role code", "document id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "21": 15, "15": 15, "18": 1, "1": 1, "22": 3, "3": 3, "25": 5, "5": 5, "24": 17, "17": 17, "27": 17, "26": 26, "9": 9, "30": 17, "32": 17, "11": 11, "13": 13, "23": 23, "29": 29, "31": 31 }, "origin_question_toks": [ "Show", "different", "type", "codes", "of", "products", "and", "the", "number", "of", "products", "with", "each", "type", "code", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "type" ], [ "code" ], [ "of" ], [ "product" ], [ "and" ], [ "number" ], [ "of" ], [ "product" ], [ "with" ], [ "each" ], [ "type" ], [ "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "different", "JJ" ], [ "type", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ "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": "solvency_ii", "query": "SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Product_Type_Code", "FROM", "Products", "GROUP", "BY", "Product_Type_Code", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the most common type code across products.", "question_toks": [ "show", "most", "common", "type", "code", "across", "product", "." ], "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": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "other details", "channel id", "other details", "finance id", "other details", "event id", "address id", "channel id", "event type code", "finance id", "location id", "product in event id", "event id", "product id", "party id", "event id", "role code", "document id", "event id", "asset id", "event id" ], "table_names": [ "addresses", "locations", "products", "parties", "assets", "channels", "finances", "events", "products in events", "parties in events", "agreements", "assets in events" ], "col_set": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "channel id", "finance id", "event id", "event type code", "product in event id", "role code", "document id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "21": 15, "15": 15, "18": 1, "1": 1, "22": 3, "3": 3, "25": 5, "5": 5, "24": 17, "17": 17, "27": 17, "26": 26, "9": 9, "30": 17, "32": 17, "11": 11, "13": 13, "23": 23, "29": 29, "31": 31 }, "origin_question_toks": [ "Show", "the", "most", "common", "type", "code", "across", "products", "." ], "question_arg": [ [ "show" ], [ "most" ], [ "common" ], [ "type" ], [ "code" ], [ "across" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "type", "NN" ], [ "code", "NN" ], [ "across", "IN" ], [ "product", "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": "solvency_ii", "query": "SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Product_Type_Code", "FROM", "Products", "GROUP", "BY", "Product_Type_Code", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "product_type_code", "from", "products", "group", "by", "product_type_code", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the product type codes that have at least two products.", "question_toks": [ "show", "product", "type", "code", "that", "have", "at", "least", "two", "product", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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": [] }, "names": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "other details", "channel id", "other details", "finance id", "other details", "event id", "address id", "channel id", "event type code", "finance id", "location id", "product in event id", "event id", "product id", "party id", "event id", "role code", "document id", "event id", "asset id", "event id" ], "table_names": [ "addresses", "locations", "products", "parties", "assets", "channels", "finances", "events", "products in events", "parties in events", "agreements", "assets in events" ], "col_set": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "channel id", "finance id", "event id", "event type code", "product in event id", "role code", "document id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "21": 15, "15": 15, "18": 1, "1": 1, "22": 3, "3": 3, "25": 5, "5": 5, "24": 17, "17": 17, "27": 17, "26": 26, "9": 9, "30": 17, "32": 17, "11": 11, "13": 13, "23": 23, "29": 29, "31": 31 }, "origin_question_toks": [ "Show", "the", "product", "type", "codes", "that", "have", "at", "least", "two", "products", "." ], "question_arg": [ [ "show" ], [ "product", "type", "code" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "product", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "product", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "solvency_ii", "query": "SELECT Product_Type_Code FROM Products WHERE Product_Price > 4500 INTERSECT SELECT Product_Type_Code FROM Products WHERE Product_Price < 3000", "query_toks": [ "SELECT", "Product_Type_Code", "FROM", "Products", "WHERE", "Product_Price", ">", "4500", "INTERSECT", "SELECT", "Product_Type_Code", "FROM", "Products", "WHERE", "Product_Price", "<", "3000" ], "query_toks_no_value": [ "select", "product_type_code", "from", "products", "where", "product_price", ">", "value", "intersect", "select", "product_type_code", "from", "products", "where", "product_price", "<", "value" ], "question": "Show the product type codes that have both products with price higher than 4500 and products with price lower than 3000.", "question_toks": [ "show", "product", "type", "code", "that", "have", "both", "product", "with", "price", "higher", "than", "4500", "and", "product", "with", "price", "lower", "than", "3000", "." ], "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, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 8, false ], null ], 3000.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 8, false ], null ], 4500.0, null ] ] }, "names": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "other details", "channel id", "other details", "finance id", "other details", "event id", "address id", "channel id", "event type code", "finance id", "location id", "product in event id", "event id", "product id", "party id", "event id", "role code", "document id", "event id", "asset id", "event id" ], "table_names": [ "addresses", "locations", "products", "parties", "assets", "channels", "finances", "events", "products in events", "parties in events", "agreements", "assets in events" ], "col_set": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "channel id", "finance id", "event id", "event type code", "product in event id", "role code", "document id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "21": 15, "15": 15, "18": 1, "1": 1, "22": 3, "3": 3, "25": 5, "5": 5, "24": 17, "17": 17, "27": 17, "26": 26, "9": 9, "30": 17, "32": 17, "11": 11, "13": 13, "23": 23, "29": 29, "31": 31 }, "origin_question_toks": [ "Show", "the", "product", "type", "codes", "that", "have", "both", "products", "with", "price", "higher", "than", "4500", "and", "products", "with", "price", "lower", "than", "3000", "." ], "question_arg": [ [ "show" ], [ "product", "type", "code" ], [ "that" ], [ "have" ], [ "both" ], [ "product" ], [ "with" ], [ "price" ], [ "higher" ], [ "than" ], [ "4500" ], [ "and" ], [ "product" ], [ "with" ], [ "price" ], [ "lower" ], [ "than" ], [ "3000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "product", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "product", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "4500", "CD" ], [ "and", "CC" ], [ "product", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "lower", "RBR" ], [ "than", "IN" ], [ "3000", "CD" ], [ ".", "." ] ], "values": [ "3000", "4500" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(5) A(0) C(8) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(4) A(0) C(8) T(2) V(0)" }, { "db_id": "solvency_ii", "query": "SELECT T1.Product_Name , COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name", "query_toks": [ "SELECT", "T1.Product_Name", ",", "COUNT", "(", "*", ")", "FROM", "Products", "AS", "T1", "JOIN", "Products_in_Events", "AS", "T2", "ON", "T1.Product_ID", "=", "T2.Product_ID", "GROUP", "BY", "T1.Product_Name" ], "query_toks_no_value": [ "select", "t1", ".", "product_name", ",", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "products_in_events", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t1", ".", "product_name" ], "question": "Show the names of products and the number of events they are in.", "question_toks": [ "show", "name", "of", "product", "and", "number", "of", "event", "they", "are", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "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": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "other details", "channel id", "other details", "finance id", "other details", "event id", "address id", "channel id", "event type code", "finance id", "location id", "product in event id", "event id", "product id", "party id", "event id", "role code", "document id", "event id", "asset id", "event id" ], "table_names": [ "addresses", "locations", "products", "parties", "assets", "channels", "finances", "events", "products in events", "parties in events", "agreements", "assets in events" ], "col_set": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "channel id", "finance id", "event id", "event type code", "product in event id", "role code", "document id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "21": 15, "15": 15, "18": 1, "1": 1, "22": 3, "3": 3, "25": 5, "5": 5, "24": 17, "17": 17, "27": 17, "26": 26, "9": 9, "30": 17, "32": 17, "11": 11, "13": 13, "23": 23, "29": 29, "31": 31 }, "origin_question_toks": [ "Show", "the", "names", "of", "products", "and", "the", "number", "of", "events", "they", "are", "in", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "product" ], [ "and" ], [ "number" ], [ "of" ], [ "event" ], [ "they" ], [ "are" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "event", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "in", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(2) A(3) C(0) T(8)" }, { "db_id": "solvency_ii", "query": "SELECT T1.Product_Name , COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name ORDER BY COUNT(*) DESC", "query_toks": [ "SELECT", "T1.Product_Name", ",", "COUNT", "(", "*", ")", "FROM", "Products", "AS", "T1", "JOIN", "Products_in_Events", "AS", "T2", "ON", "T1.Product_ID", "=", "T2.Product_ID", "GROUP", "BY", "T1.Product_Name", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "t1", ".", "product_name", ",", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "products_in_events", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t1", ".", "product_name", "order", "by", "count", "(", "*", ")", "desc" ], "question": "Show the names of products and the number of events they are in, sorted by the number of events in descending order.", "question_toks": [ "show", "name", "of", "product", "and", "number", "of", "event", "they", "are", "in", ",", "sorted", "by", "number", "of", "event", "in", "descending", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "other details", "channel id", "other details", "finance id", "other details", "event id", "address id", "channel id", "event type code", "finance id", "location id", "product in event id", "event id", "product id", "party id", "event id", "role code", "document id", "event id", "asset id", "event id" ], "table_names": [ "addresses", "locations", "products", "parties", "assets", "channels", "finances", "events", "products in events", "parties in events", "agreements", "assets in events" ], "col_set": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "channel id", "finance id", "event id", "event type code", "product in event id", "role code", "document id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "21": 15, "15": 15, "18": 1, "1": 1, "22": 3, "3": 3, "25": 5, "5": 5, "24": 17, "17": 17, "27": 17, "26": 26, "9": 9, "30": 17, "32": 17, "11": 11, "13": 13, "23": 23, "29": 29, "31": 31 }, "origin_question_toks": [ "Show", "the", "names", "of", "products", "and", "the", "number", "of", "events", "they", "are", "in", ",", "sorted", "by", "the", "number", "of", "events", "in", "descending", "order", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "product" ], [ "and" ], [ "number" ], [ "of" ], [ "event" ], [ "they" ], [ "are" ], [ "in" ], [ "," ], [ "sorted" ], [ "by" ], [ "number" ], [ "of" ], [ "event" ], [ "in" ], [ "descending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "event", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "in", "IN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "event", "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(3) C(0) T(8) Order(0) A(3) C(0) T(8)" }, { "db_id": "solvency_ii", "query": "SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "T1.Product_Name", "FROM", "Products", "AS", "T1", "JOIN", "Products_in_Events", "AS", "T2", "ON", "T1.Product_ID", "=", "T2.Product_ID", "GROUP", "BY", "T1.Product_Name", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "product_name", "from", "products", "as", "t1", "join", "products_in_events", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t1", ".", "product_name", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the names of products that are in at least two events.", "question_toks": [ "show", "name", "of", "product", "that", "are", "in", "at", "least", "two", "event", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "other details", "channel id", "other details", "finance id", "other details", "event id", "address id", "channel id", "event type code", "finance id", "location id", "product in event id", "event id", "product id", "party id", "event id", "role code", "document id", "event id", "asset id", "event id" ], "table_names": [ "addresses", "locations", "products", "parties", "assets", "channels", "finances", "events", "products in events", "parties in events", "agreements", "assets in events" ], "col_set": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "channel id", "finance id", "event id", "event type code", "product in event id", "role code", "document id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "21": 15, "15": 15, "18": 1, "1": 1, "22": 3, "3": 3, "25": 5, "5": 5, "24": 17, "17": 17, "27": 17, "26": 26, "9": 9, "30": 17, "32": 17, "11": 11, "13": 13, "23": 23, "29": 29, "31": 31 }, "origin_question_toks": [ "Show", "the", "names", "of", "products", "that", "are", "in", "at", "least", "two", "events", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "product" ], [ "that" ], [ "are" ], [ "in" ], [ "at" ], [ "least" ], [ "two" ], [ "event" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "event", "NN" ], [ ".", "." ] ], "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(5) T(2) Root(5) Sel(0) N(0) A(0) C(5) T(8) Filter(7) A(3) C(0) T(8) V(0)" }, { "db_id": "solvency_ii", "query": "SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2 ORDER BY T1.Product_Name", "query_toks": [ "SELECT", "T1.Product_Name", "FROM", "Products", "AS", "T1", "JOIN", "Products_in_Events", "AS", "T2", "ON", "T1.Product_ID", "=", "T2.Product_ID", "GROUP", "BY", "T1.Product_Name", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2", "ORDER", "BY", "T1.Product_Name" ], "query_toks_no_value": [ "select", "t1", ".", "product_name", "from", "products", "as", "t1", "join", "products_in_events", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t1", ".", "product_name", "having", "count", "(", "*", ")", ">", "=", "value", "order", "by", "t1", ".", "product_name" ], "question": "Show the names of products that are in at least two events in ascending alphabetical order of product name.", "question_toks": [ "show", "name", "of", "product", "that", "are", "in", "at", "least", "two", "event", "in", "ascending", "alphabetical", "order", "of", "product", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "other details", "channel id", "other details", "finance id", "other details", "event id", "address id", "channel id", "event type code", "finance id", "location id", "product in event id", "event id", "product id", "party id", "event id", "role code", "document id", "event id", "asset id", "event id" ], "table_names": [ "addresses", "locations", "products", "parties", "assets", "channels", "finances", "events", "products in events", "parties in events", "agreements", "assets in events" ], "col_set": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "channel id", "finance id", "event id", "event type code", "product in event id", "role code", "document id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "21": 15, "15": 15, "18": 1, "1": 1, "22": 3, "3": 3, "25": 5, "5": 5, "24": 17, "17": 17, "27": 17, "26": 26, "9": 9, "30": 17, "32": 17, "11": 11, "13": 13, "23": 23, "29": 29, "31": 31 }, "origin_question_toks": [ "Show", "the", "names", "of", "products", "that", "are", "in", "at", "least", "two", "events", "in", "ascending", "alphabetical", "order", "of", "product", "name", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "product" ], [ "that" ], [ "are" ], [ "in" ], [ "at" ], [ "least" ], [ "two" ], [ "event" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "product", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "event", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "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(5) T(2) Root(5) Sel(0) N(0) A(0) C(5) T(8) Filter(7) A(3) C(0) T(8) V(0)" }, { "db_id": "solvency_ii", "query": "SELECT Product_Name FROM Products WHERE Product_ID NOT IN (SELECT Product_ID FROM Products_in_Events)", "query_toks": [ "SELECT", "Product_Name", "FROM", "Products", "WHERE", "Product_ID", "NOT", "IN", "(", "SELECT", "Product_ID", "FROM", "Products_in_Events", ")" ], "query_toks_no_value": [ "select", "product_name", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "products_in_events", ")" ], "question": "List the names of products that are not in any event.", "question_toks": [ "list", "name", "of", "product", "that", "are", "not", "in", "any", "event", "." ], "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": [ [ true, 8, [ 0, [ 0, 5, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "other details", "channel id", "other details", "finance id", "other details", "event id", "address id", "channel id", "event type code", "finance id", "location id", "product in event id", "event id", "product id", "party id", "event id", "role code", "document id", "event id", "asset id", "event id" ], "table_names": [ "addresses", "locations", "products", "parties", "assets", "channels", "finances", "events", "products in events", "parties in events", "agreements", "assets in events" ], "col_set": [ "*", "address id", "address details", "location id", "other details", "product id", "product type code", "product name", "product price", "party id", "party details", "asset id", "channel id", "finance id", "event id", "event type code", "product in event id", "role code", "document id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "21": 15, "15": 15, "18": 1, "1": 1, "22": 3, "3": 3, "25": 5, "5": 5, "24": 17, "17": 17, "27": 17, "26": 26, "9": 9, "30": 17, "32": 17, "11": 11, "13": 13, "23": 23, "29": 29, "31": 31 }, "origin_question_toks": [ "List", "the", "names", "of", "products", "that", "are", "not", "in", "any", "event", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "product" ], [ "that" ], [ "are" ], [ "not" ], [ "in" ], [ "any" ], [ "event" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "in", "IN" ], [ "any", "DT" ], [ "event", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(19) A(0) C(5) T(2) Root(5) Sel(0) N(0) A(0) C(5) T(8)" }, { "db_id": "entertainment_awards", "query": "SELECT count(*) FROM artwork", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "artwork" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "artwork" ], "question": "How many artworks are there?", "question_toks": [ "how", "many", "artwork", "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": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "How", "many", "artworks", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "artwork" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "artwork", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "entertainment_awards", "query": "SELECT Name FROM artwork ORDER BY Name ASC", "query_toks": [ "SELECT", "Name", "FROM", "artwork", "ORDER", "BY", "Name", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "artwork", "order", "by", "name", "asc" ], "question": "List the name of artworks in ascending alphabetical order.", "question_toks": [ "list", "name", "of", "artwork", "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": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "List", "the", "name", "of", "artworks", "in", "ascending", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "artwork" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "artwork", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "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": "entertainment_awards", "query": "SELECT Name FROM artwork WHERE TYPE != \"Program Talent Show\"", "query_toks": [ "SELECT", "Name", "FROM", "artwork", "WHERE", "TYPE", "!", "=", "``", "Program", "Talent", "Show", "''" ], "query_toks_no_value": [ "select", "name", "from", "artwork", "where", "type", "!", "=", "value" ], "question": "List the name of artworks whose type is not \"Program Talent Show\".", "question_toks": [ "list", "name", "of", "artwork", "whose", "type", "is", "not", "'", "program", "talent", "show", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 8, false ], null ], "\"Program Talent Show\"", null ] ] }, "names": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "List", "the", "name", "of", "artworks", "whose", "type", "is", "not", "``", "Program", "Talent", "Show", "''", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "artwork" ], [ "whose" ], [ "type" ], [ "is" ], [ "not" ], [ "'" ], [ "program" ], [ "talent" ], [ "show" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "artwork", "NN" ], [ "whose", "WP$" ], [ "type", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "JJ" ], [ "program", "NN" ], [ "talent", "NN" ], [ "show", "NN" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "Program Talent Show" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(3) A(0) C(8) T(1) V(0)" }, { "db_id": "entertainment_awards", "query": "SELECT Festival_Name , LOCATION FROM festival_detail", "query_toks": [ "SELECT", "Festival_Name", ",", "LOCATION", "FROM", "festival_detail" ], "query_toks_no_value": [ "select", "festival_name", ",", "location", "from", "festival_detail" ], "question": "What are the names and locations of festivals?", "question_toks": [ "what", "are", "name", "and", "location", "of", "festival", "?" ], "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": [] }, "names": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "locations", "of", "festivals", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "location" ], [ "of" ], [ "festival" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "festival", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(4) T(0)" }, { "db_id": "entertainment_awards", "query": "SELECT Chair_Name FROM festival_detail ORDER BY YEAR ASC", "query_toks": [ "SELECT", "Chair_Name", "FROM", "festival_detail", "ORDER", "BY", "YEAR", "ASC" ], "query_toks_no_value": [ "select", "chair_name", "from", "festival_detail", "order", "by", "year", "asc" ], "question": "What are the names of the chairs of festivals, sorted in ascending order of the year held?", "question_toks": [ "what", "are", "name", "of", "chair", "of", "festival", ",", "sorted", "in", "ascending", "order", "of", "year", "held", "?" ], "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, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "chairs", "of", "festivals", ",", "sorted", "in", "ascending", "order", "of", "the", "year", "held", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "chair" ], [ "of" ], [ "festival" ], [ "," ], [ "sorted" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "year" ], [ "held" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "chair", "NN" ], [ "of", "IN" ], [ "festival", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "year", "NN" ], [ "held", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(1) A(0) C(5) T(0)" }, { "db_id": "entertainment_awards", "query": "SELECT LOCATION FROM festival_detail ORDER BY Num_of_Audience DESC LIMIT 1", "query_toks": [ "SELECT", "LOCATION", "FROM", "festival_detail", "ORDER", "BY", "Num_of_Audience", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "location", "from", "festival_detail", "order", "by", "num_of_audience", "desc", "limit", "value" ], "question": "What is the location of the festival with the largest number of audience?", "question_toks": [ "what", "is", "location", "of", "festival", "with", "largest", "number", "of", "audience", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "is", "the", "location", "of", "the", "festival", "with", "the", "largest", "number", "of", "audience", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "location" ], [ "of" ], [ "festival" ], [ "with" ], [ "largest" ], [ "number" ], [ "num", "of", "audience" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "location", "NN" ], [ "of", "IN" ], [ "festival", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "audience", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(0) Sup(0) A(0) C(6) T(0)" }, { "db_id": "entertainment_awards", "query": "SELECT Festival_Name FROM festival_detail WHERE YEAR = 2007", "query_toks": [ "SELECT", "Festival_Name", "FROM", "festival_detail", "WHERE", "YEAR", "=", "2007" ], "query_toks_no_value": [ "select", "festival_name", "from", "festival_detail", "where", "year", "=", "value" ], "question": "What are the names of festivals held in year 2007?", "question_toks": [ "what", "are", "name", "of", "festival", "held", "in", "year", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], 2007.0, null ] ] }, "names": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "festivals", "held", "in", "year", "2007", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "festival" ], [ "held" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "festival", "JJ" ], [ "held", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2007", "CD" ], [ "?", "." ] ], "values": [ "2007" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "entertainment_awards", "query": "SELECT avg(Num_of_Audience) FROM festival_detail", "query_toks": [ "SELECT", "avg", "(", "Num_of_Audience", ")", "FROM", "festival_detail" ], "query_toks_no_value": [ "select", "avg", "(", "num_of_audience", ")", "from", "festival_detail" ], "question": "What is the average number of audience for festivals?", "question_toks": [ "what", "is", "average", "number", "of", "audience", "for", "festival", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "audience", "for", "festivals", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "num", "of", "audience" ], [ "for" ], [ "festival" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "audience", "NN" ], [ "for", "IN" ], [ "festival", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(6) T(0)" }, { "db_id": "entertainment_awards", "query": "SELECT Festival_Name FROM festival_detail ORDER BY YEAR DESC LIMIT 3", "query_toks": [ "SELECT", "Festival_Name", "FROM", "festival_detail", "ORDER", "BY", "YEAR", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "festival_name", "from", "festival_detail", "order", "by", "year", "desc", "limit", "value" ], "question": "Show the names of the three most recent festivals.", "question_toks": [ "show", "name", "of", "three", "most", "recent", "festival", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Show", "the", "names", "of", "the", "three", "most", "recent", "festivals", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "three" ], [ "most" ], [ "recent" ], [ "festival" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "three", "CD" ], [ "most", "RBS" ], [ "recent", "JJ" ], [ "festival", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "entertainment_awards", "query": "SELECT T2.Name , T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID", "query_toks": [ "SELECT", "T2.Name", ",", "T3.Festival_Name", "FROM", "nomination", "AS", "T1", "JOIN", "artwork", "AS", "T2", "ON", "T1.Artwork_ID", "=", "T2.Artwork_ID", "JOIN", "festival_detail", "AS", "T3", "ON", "T1.Festival_ID", "=", "T3.Festival_ID" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t3", ".", "festival_name", "from", "nomination", "as", "t1", "join", "artwork", "as", "t2", "on", "t1", ".", "artwork_id", "=", "t2", ".", "artwork_id", "join", "festival_detail", "as", "t3", "on", "t1", ".", "festival_id", "=", "t3", ".", "festival_id" ], "question": "For each nomination, show the name of the artwork and name of the festival where it is nominated.", "question_toks": [ "for", "each", "nomination", ",", "show", "name", "of", "artwork", "and", "name", "of", "festival", "where", "it", "is", "nominated", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 7, 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 ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "For", "each", "nomination", ",", "show", "the", "name", "of", "the", "artwork", "and", "name", "of", "the", "festival", "where", "it", "is", "nominated", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "nomination" ], [ "," ], [ "show" ], [ "name" ], [ "of" ], [ "artwork" ], [ "and" ], [ "name" ], [ "of" ], [ "festival" ], [ "where" ], [ "it" ], [ "is" ], [ "nominated" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "nomination", "NN" ], [ ",", "," ], [ "show", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "artwork", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "festival", "NN" ], [ "where", "WRB" ], [ "it", "PRP" ], [ "is", "VBZ" ], [ "nominated", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(1) A(0) C(2) T(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "entertainment_awards", "query": "SELECT DISTINCT T2.Type FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T3.Year = 2007", "query_toks": [ "SELECT", "DISTINCT", "T2.Type", "FROM", "nomination", "AS", "T1", "JOIN", "artwork", "AS", "T2", "ON", "T1.Artwork_ID", "=", "T2.Artwork_ID", "JOIN", "festival_detail", "AS", "T3", "ON", "T1.Festival_ID", "=", "T3.Festival_ID", "WHERE", "T3.Year", "=", "2007" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "type", "from", "nomination", "as", "t1", "join", "artwork", "as", "t2", "on", "t1", ".", "artwork_id", "=", "t2", ".", "artwork_id", "join", "festival_detail", "as", "t3", "on", "t1", ".", "festival_id", "=", "t3", ".", "festival_id", "where", "t3", ".", "year", "=", "value" ], "question": "Show distinct types of artworks that are nominated in festivals in 2007.", "question_toks": [ "show", "distinct", "type", "of", "artwork", "that", "are", "nominated", "in", "festival", "in", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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, 5, false ], null ], 2007.0, null ] ] }, "names": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Show", "distinct", "types", "of", "artworks", "that", "are", "nominated", "in", "festivals", "in", "2007", "." ], "question_arg": [ [ "show" ], [ "distinct" ], [ "type" ], [ "of" ], [ "artwork" ], [ "that" ], [ "are" ], [ "nominated" ], [ "in" ], [ "festival" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "distinct", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "artwork", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "nominated", "VBN" ], [ "in", "IN" ], [ "festival", "NN" ], [ "in", "IN" ], [ "2007", "CD" ], [ ".", "." ] ], "values": [ "2007" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(8) T(1) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "entertainment_awards", "query": "SELECT T2.Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID ORDER BY T3.Year", "query_toks": [ "SELECT", "T2.Name", "FROM", "nomination", "AS", "T1", "JOIN", "artwork", "AS", "T2", "ON", "T1.Artwork_ID", "=", "T2.Artwork_ID", "JOIN", "festival_detail", "AS", "T3", "ON", "T1.Festival_ID", "=", "T3.Festival_ID", "ORDER", "BY", "T3.Year" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "nomination", "as", "t1", "join", "artwork", "as", "t2", "on", "t1", ".", "artwork_id", "=", "t2", ".", "artwork_id", "join", "festival_detail", "as", "t3", "on", "t1", ".", "festival_id", "=", "t3", ".", "festival_id", "order", "by", "t3", ".", "year" ], "question": "Show the names of artworks in ascending order of the year they are nominated in.", "question_toks": [ "show", "name", "of", "artwork", "in", "ascending", "order", "of", "year", "they", "are", "nominated", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Show", "the", "names", "of", "artworks", "in", "ascending", "order", "of", "the", "year", "they", "are", "nominated", "in", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "artwork" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "year" ], [ "they" ], [ "are" ], [ "nominated" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "artwork", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "year", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "nominated", "VBN" ], [ "in", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(9) T(1) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Order(1) A(0) C(5) T(0)" }, { "db_id": "entertainment_awards", "query": "SELECT T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T2.Type = \"Program Talent Show\"", "query_toks": [ "SELECT", "T3.Festival_Name", "FROM", "nomination", "AS", "T1", "JOIN", "artwork", "AS", "T2", "ON", "T1.Artwork_ID", "=", "T2.Artwork_ID", "JOIN", "festival_detail", "AS", "T3", "ON", "T1.Festival_ID", "=", "T3.Festival_ID", "WHERE", "T2.Type", "=", "``", "Program", "Talent", "Show", "''" ], "query_toks_no_value": [ "select", "t3", ".", "festival_name", "from", "nomination", "as", "t1", "join", "artwork", "as", "t2", "on", "t1", ".", "artwork_id", "=", "t2", ".", "artwork_id", "join", "festival_detail", "as", "t3", "on", "t1", ".", "festival_id", "=", "t3", ".", "festival_id", "where", "t2", ".", "type", "=", "value" ], "question": "Show the names of festivals that have nominated artworks of type \"Program Talent Show\".", "question_toks": [ "show", "name", "of", "festival", "that", "have", "nominated", "artwork", "of", "type", "'", "program", "talent", "show", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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, 8, false ], null ], "\"Program Talent Show\"", null ] ] }, "names": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Show", "the", "names", "of", "festivals", "that", "have", "nominated", "artworks", "of", "type", "``", "Program", "Talent", "Show", "''", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "festival" ], [ "that" ], [ "have" ], [ "nominated" ], [ "artwork" ], [ "of" ], [ "type" ], [ "'" ], [ "program" ], [ "talent" ], [ "show" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "festival", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "nominated", "VBN" ], [ "artwork", "NN" ], [ "of", "IN" ], [ "type", "NN" ], [ "'", "''" ], [ "program", "NN" ], [ "talent", "NN" ], [ "show", "NN" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "Program Talent Show" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "entertainment_awards", "query": "SELECT T1.Festival_ID , T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "T1.Festival_ID", ",", "T3.Festival_Name", "FROM", "nomination", "AS", "T1", "JOIN", "artwork", "AS", "T2", "ON", "T1.Artwork_ID", "=", "T2.Artwork_ID", "JOIN", "festival_detail", "AS", "T3", "ON", "T1.Festival_ID", "=", "T3.Festival_ID", "GROUP", "BY", "T1.Festival_ID", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "festival_id", ",", "t3", ".", "festival_name", "from", "nomination", "as", "t1", "join", "artwork", "as", "t2", "on", "t1", ".", "artwork_id", "=", "t2", ".", "artwork_id", "join", "festival_detail", "as", "t3", "on", "t1", ".", "festival_id", "=", "t3", ".", "festival_id", "group", "by", "t1", ".", "festival_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the ids and names of festivals that have at least two nominations for artworks.", "question_toks": [ "show", "id", "and", "name", "of", "festival", "that", "have", "at", "least", "two", "nomination", "for", "artwork", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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 ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, 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": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Show", "the", "ids", "and", "names", "of", "festivals", "that", "have", "at", "least", "two", "nominations", "for", "artworks", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "festival" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "nomination" ], [ "for" ], [ "artwork" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "festival", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "nomination", "NN" ], [ "for", "IN" ], [ "artwork", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(2) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(1) Filter(7) A(3) C(0) T(1) V(0)" }, { "db_id": "entertainment_awards", "query": "SELECT T1.Festival_ID , T3.Festival_Name , COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID", "query_toks": [ "SELECT", "T1.Festival_ID", ",", "T3.Festival_Name", ",", "COUNT", "(", "*", ")", "FROM", "nomination", "AS", "T1", "JOIN", "artwork", "AS", "T2", "ON", "T1.Artwork_ID", "=", "T2.Artwork_ID", "JOIN", "festival_detail", "AS", "T3", "ON", "T1.Festival_ID", "=", "T3.Festival_ID", "GROUP", "BY", "T1.Festival_ID" ], "query_toks_no_value": [ "select", "t1", ".", "festival_id", ",", "t3", ".", "festival_name", ",", "count", "(", "*", ")", "from", "nomination", "as", "t1", "join", "artwork", "as", "t2", "on", "t1", ".", "artwork_id", "=", "t2", ".", "artwork_id", "join", "festival_detail", "as", "t3", "on", "t1", ".", "festival_id", "=", "t3", ".", "festival_id", "group", "by", "t1", ".", "festival_id" ], "question": "Show the id, name of each festival and the number of artworks it has nominated.", "question_toks": [ "show", "id", ",", "name", "of", "each", "festival", "and", "number", "of", "artwork", "it", "ha", "nominated", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Show", "the", "id", ",", "name", "of", "each", "festival", "and", "the", "number", "of", "artworks", "it", "has", "nominated", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "," ], [ "name" ], [ "of" ], [ "each" ], [ "festival" ], [ "and" ], [ "number" ], [ "of" ], [ "artwork" ], [ "it" ], [ "ha" ], [ "nominated" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "festival", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "artwork", "NN" ], [ "it", "PRP" ], [ "ha", "VBD" ], [ "nominated", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(1) T(2) A(0) C(2) T(0) A(3) C(0) T(1)" }, { "db_id": "entertainment_awards", "query": "SELECT TYPE , COUNT(*) FROM artwork GROUP BY TYPE", "query_toks": [ "SELECT", "TYPE", ",", "COUNT", "(", "*", ")", "FROM", "artwork", "GROUP", "BY", "TYPE" ], "query_toks_no_value": [ "select", "type", ",", "count", "(", "*", ")", "from", "artwork", "group", "by", "type" ], "question": "Please show different types of artworks with the corresponding number of artworks of each type.", "question_toks": [ "please", "show", "different", "type", "of", "artwork", "with", "corresponding", "number", "of", "artwork", "of", "each", "type", "." ], "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": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Please", "show", "different", "types", "of", "artworks", "with", "the", "corresponding", "number", "of", "artworks", "of", "each", "type", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "different" ], [ "type" ], [ "of" ], [ "artwork" ], [ "with" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "artwork" ], [ "of" ], [ "each" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "VB" ], [ "different", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "artwork", "NN" ], [ "with", "IN" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "artwork", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "type", "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": "entertainment_awards", "query": "SELECT TYPE FROM artwork GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "TYPE", "FROM", "artwork", "GROUP", "BY", "TYPE", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "type", "from", "artwork", "group", "by", "type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "List the most common type of artworks.", "question_toks": [ "list", "most", "common", "type", "of", "artwork", "." ], "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": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "List", "the", "most", "common", "type", "of", "artworks", "." ], "question_arg": [ [ "list" ], [ "most" ], [ "common" ], [ "type" ], [ "of" ], [ "artwork" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "artwork", "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": "entertainment_awards", "query": "SELECT YEAR FROM festival_detail GROUP BY YEAR HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "YEAR", "FROM", "festival_detail", "GROUP", "BY", "YEAR", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "year", "from", "festival_detail", "group", "by", "year", "having", "count", "(", "*", ")", ">", "value" ], "question": "List the year in which there are more than one festivals.", "question_toks": [ "list", "year", "in", "which", "there", "are", "more", "than", "one", "festival", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "List", "the", "year", "in", "which", "there", "are", "more", "than", "one", "festivals", "." ], "question_arg": [ [ "list" ], [ "year" ], [ "in" ], [ "which" ], [ "there" ], [ "are" ], [ "more" ], [ "than" ], [ "one" ], [ "festival" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "year", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "there", "EX" ], [ "are", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "festival", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "entertainment_awards", "query": "SELECT Name FROM Artwork WHERE Artwork_ID NOT IN (SELECT Artwork_ID FROM nomination)", "query_toks": [ "SELECT", "Name", "FROM", "Artwork", "WHERE", "Artwork_ID", "NOT", "IN", "(", "SELECT", "Artwork_ID", "FROM", "nomination", ")" ], "query_toks_no_value": [ "select", "name", "from", "artwork", "where", "artwork_id", "not", "in", "(", "select", "artwork_id", "from", "nomination", ")" ], "question": "List the name of artworks that are not nominated.", "question_toks": [ "list", "name", "of", "artwork", "that", "are", "not", "nominated", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "List", "the", "name", "of", "artworks", "that", "are", "not", "nominated", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "artwork" ], [ "that" ], [ "are" ], [ "not" ], [ "nominated" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "artwork", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "nominated", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(19) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "entertainment_awards", "query": "SELECT Num_of_Audience FROM festival_detail WHERE YEAR = 2008 OR YEAR = 2010", "query_toks": [ "SELECT", "Num_of_Audience", "FROM", "festival_detail", "WHERE", "YEAR", "=", "2008", "OR", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "num_of_audience", "from", "festival_detail", "where", "year", "=", "value", "or", "year", "=", "value" ], "question": "Show the number of audience in year 2008 or 2010.", "question_toks": [ "show", "number", "of", "audience", "in", "year", "year", "or", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], 2008.0, null ], "or", [ false, 2, [ 0, [ 0, 5, false ], null ], 2010.0, null ] ] }, "names": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "Show", "the", "number", "of", "audience", "in", "year", "2008", "or", "2010", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "num", "of", "audience" ], [ "in" ], [ "year" ], [ "year" ], [ "or" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "audience", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2008", "CD" ], [ "or", "CC" ], [ "2010", "CD" ], [ ".", "." ] ], "values": [ "2008", "2010" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) 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": "entertainment_awards", "query": "SELECT sum(Num_of_Audience) FROM festival_detail", "query_toks": [ "SELECT", "sum", "(", "Num_of_Audience", ")", "FROM", "festival_detail" ], "query_toks_no_value": [ "select", "sum", "(", "num_of_audience", ")", "from", "festival_detail" ], "question": "What are the total number of the audiences who visited any of the festivals?", "question_toks": [ "what", "are", "total", "number", "of", "audience", "who", "visited", "any", "of", "festival", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "total", "number", "of", "the", "audiences", "who", "visited", "any", "of", "the", "festivals", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "total" ], [ "number" ], [ "num", "of", "audience" ], [ "who" ], [ "visited" ], [ "any" ], [ "of" ], [ "festival" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "audience", "NN" ], [ "who", "WP" ], [ "visited", "VBD" ], [ "any", "DT" ], [ "of", "IN" ], [ "festival", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(6) T(0)" }, { "db_id": "entertainment_awards", "query": "SELECT YEAR FROM festival_detail WHERE LOCATION = 'United States' INTERSECT SELECT YEAR FROM festival_detail WHERE LOCATION != 'United States'", "query_toks": [ "SELECT", "YEAR", "FROM", "festival_detail", "WHERE", "LOCATION", "=", "'United", "States", "'", "INTERSECT", "SELECT", "YEAR", "FROM", "festival_detail", "WHERE", "LOCATION", "!", "=", "'United", "States", "'" ], "query_toks_no_value": [ "select", "year", "from", "festival_detail", "where", "location", "=", "value", "intersect", "select", "year", "from", "festival_detail", "where", "location", "!", "=", "value" ], "question": "In which year are there festivals both inside the 'United States' and outside the 'United States'?", "question_toks": [ "in", "which", "year", "are", "there", "festival", "both", "inside", "'", "united", "state", "'", "and", "outside", "'", "united", "state", "'", "?" ], "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, 7, [ 0, [ 0, 4, false ], null ], "\"United States\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"United States\"", null ] ] }, "names": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "artwork id", "festival id", "result" ], "table_names": [ "festival detail", "artwork", "nomination" ], "col_set": [ "*", "festival id", "festival name", "chair name", "location", "year", "num of audience", "artwork id", "type", "name", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "10": 10, "7": 7 }, "origin_question_toks": [ "In", "which", "year", "are", "there", "festivals", "both", "inside", "the", "'United", "States", "'", "and", "outside", "the", "'United", "States", "'", "?" ], "question_arg": [ [ "in" ], [ "which" ], [ "year" ], [ "are" ], [ "there" ], [ "festival" ], [ "both" ], [ "inside" ], [ "'" ], [ "united" ], [ "state" ], [ "'" ], [ "and" ], [ "outside" ], [ "'" ], [ "united" ], [ "state" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "which", "WDT" ], [ "year", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "festival", "JJ" ], [ "both", "DT" ], [ "inside", "IN" ], [ "'", "POS" ], [ "united", "JJ" ], [ "state", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "outside", "IN" ], [ "'", "''" ], [ "united", "JJ" ], [ "state", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "United States" ], "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(0) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(3) A(0) C(4) T(0) V(0)" }, { "db_id": "customers_campaigns_ecommerce", "query": "SELECT count(*) FROM premises", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "premises" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "premises" ], "question": "How many premises are there?", "question_toks": [ "how", "many", "premise", "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": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "product category", "mailshot name", "mailshot start date", "mailshot end date", "customer id", "premise id", "date address from", "address type code", "date address to", "order id", "customer id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "mailshot id", "customer id", "outcome code", "mailshot customer date", "item id", "order item status code", "order id", "product id", "item status code", "item delivered datetime", "item order quantity" ], "table_names": [ "premises", "products", "customers", "mailshot campaigns", "customer addresses", "customer orders", "mailshot customers", "order items" ], "col_set": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "mailshot name", "mailshot start date", "mailshot end date", "date address from", "address type code", "date address to", "order id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "outcome code", "mailshot customer date", "item id", "order item status code", "item status code", "item delivered datetime", "item order quantity" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7 ], "keys": { "20": 7, "7": 7, "21": 1, "1": 1, "26": 7, "32": 15, "15": 15, "33": 7, "38": 25, "25": 25, "39": 4, "4": 4 }, "origin_question_toks": [ "How", "many", "premises", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "premise" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "premise", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "customers_campaigns_ecommerce", "query": "SELECT DISTINCT premises_type FROM premises", "query_toks": [ "SELECT", "DISTINCT", "premises_type", "FROM", "premises" ], "query_toks_no_value": [ "select", "distinct", "premises_type", "from", "premises" ], "question": "What are all the distinct premise types?", "question_toks": [ "what", "are", "all", "distinct", "premise", "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": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "product category", "mailshot name", "mailshot start date", "mailshot end date", "customer id", "premise id", "date address from", "address type code", "date address to", "order id", "customer id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "mailshot id", "customer id", "outcome code", "mailshot customer date", "item id", "order item status code", "order id", "product id", "item status code", "item delivered datetime", "item order quantity" ], "table_names": [ "premises", "products", "customers", "mailshot campaigns", "customer addresses", "customer orders", "mailshot customers", "order items" ], "col_set": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "mailshot name", "mailshot start date", "mailshot end date", "date address from", "address type code", "date address to", "order id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "outcome code", "mailshot customer date", "item id", "order item status code", "item status code", "item delivered datetime", "item order quantity" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7 ], "keys": { "20": 7, "7": 7, "21": 1, "1": 1, "26": 7, "32": 15, "15": 15, "33": 7, "38": 25, "25": 25, "39": 4, "4": 4 }, "origin_question_toks": [ "What", "are", "all", "the", "distinct", "premise", "types", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "distinct" ], [ "premise", "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "premise", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(2) T(0)" }, { "db_id": "customers_campaigns_ecommerce", "query": "SELECT premises_type , premise_details FROM premises ORDER BY premises_type", "query_toks": [ "SELECT", "premises_type", ",", "premise_details", "FROM", "premises", "ORDER", "BY", "premises_type" ], "query_toks_no_value": [ "select", "premises_type", ",", "premise_details", "from", "premises", "order", "by", "premises_type" ], "question": "Find the types and details for all premises and order by the premise type.", "question_toks": [ "find", "type", "and", "detail", "for", "all", "premise", "and", "order", "by", "premise", "type", "." ], "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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "product category", "mailshot name", "mailshot start date", "mailshot end date", "customer id", "premise id", "date address from", "address type code", "date address to", "order id", "customer id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "mailshot id", "customer id", "outcome code", "mailshot customer date", "item id", "order item status code", "order id", "product id", "item status code", "item delivered datetime", "item order quantity" ], "table_names": [ "premises", "products", "customers", "mailshot campaigns", "customer addresses", "customer orders", "mailshot customers", "order items" ], "col_set": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "mailshot name", "mailshot start date", "mailshot end date", "date address from", "address type code", "date address to", "order id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "outcome code", "mailshot customer date", "item id", "order item status code", "item status code", "item delivered datetime", "item order quantity" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7 ], "keys": { "20": 7, "7": 7, "21": 1, "1": 1, "26": 7, "32": 15, "15": 15, "33": 7, "38": 25, "25": 25, "39": 4, "4": 4 }, "origin_question_toks": [ "Find", "the", "types", "and", "details", "for", "all", "premises", "and", "order", "by", "the", "premise", "type", "." ], "question_arg": [ [ "find" ], [ "type" ], [ "and" ], [ "detail" ], [ "for" ], [ "all" ], [ "premise" ], [ "and" ], [ "order" ], [ "by" ], [ "premise", "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "type", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "premise", "NN" ], [ "and", "CC" ], [ "order", "NN" ], [ "by", "IN" ], [ "premise", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "Order" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Order(1) A(0) C(2) T(0)" }, { "db_id": "customers_campaigns_ecommerce", "query": "SELECT premises_type , count(*) FROM premises GROUP BY premises_type", "query_toks": [ "SELECT", "premises_type", ",", "count", "(", "*", ")", "FROM", "premises", "GROUP", "BY", "premises_type" ], "query_toks_no_value": [ "select", "premises_type", ",", "count", "(", "*", ")", "from", "premises", "group", "by", "premises_type" ], "question": "Show each premise type and the number of premises in that type.", "question_toks": [ "show", "each", "premise", "type", "and", "number", "of", "premise", "in", "that", "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": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "product category", "mailshot name", "mailshot start date", "mailshot end date", "customer id", "premise id", "date address from", "address type code", "date address to", "order id", "customer id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "mailshot id", "customer id", "outcome code", "mailshot customer date", "item id", "order item status code", "order id", "product id", "item status code", "item delivered datetime", "item order quantity" ], "table_names": [ "premises", "products", "customers", "mailshot campaigns", "customer addresses", "customer orders", "mailshot customers", "order items" ], "col_set": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "mailshot name", "mailshot start date", "mailshot end date", "date address from", "address type code", "date address to", "order id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "outcome code", "mailshot customer date", "item id", "order item status code", "item status code", "item delivered datetime", "item order quantity" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7 ], "keys": { "20": 7, "7": 7, "21": 1, "1": 1, "26": 7, "32": 15, "15": 15, "33": 7, "38": 25, "25": 25, "39": 4, "4": 4 }, "origin_question_toks": [ "Show", "each", "premise", "type", "and", "the", "number", "of", "premises", "in", "that", "type", "." ], "question_arg": [ [ "show" ], [ "each" ], [ "premise", "type" ], [ "and" ], [ "number" ], [ "of" ], [ "premise" ], [ "in" ], [ "that" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "each", "DT" ], [ "premise", "NN" ], [ "type", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "premise", "NN" ], [ "in", "IN" ], [ "that", "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": "customers_campaigns_ecommerce", "query": "SELECT product_category , count(*) FROM mailshot_campaigns GROUP BY product_category", "query_toks": [ "SELECT", "product_category", ",", "count", "(", "*", ")", "FROM", "mailshot_campaigns", "GROUP", "BY", "product_category" ], "query_toks_no_value": [ "select", "product_category", ",", "count", "(", "*", ")", "from", "mailshot_campaigns", "group", "by", "product_category" ], "question": "Show all distinct product categories along with the number of mailshots in each category.", "question_toks": [ "show", "all", "distinct", "product", "category", "along", "with", "number", "of", "mailshots", "in", "each", "category", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "product category", "mailshot name", "mailshot start date", "mailshot end date", "customer id", "premise id", "date address from", "address type code", "date address to", "order id", "customer id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "mailshot id", "customer id", "outcome code", "mailshot customer date", "item id", "order item status code", "order id", "product id", "item status code", "item delivered datetime", "item order quantity" ], "table_names": [ "premises", "products", "customers", "mailshot campaigns", "customer addresses", "customer orders", "mailshot customers", "order items" ], "col_set": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "mailshot name", "mailshot start date", "mailshot end date", "date address from", "address type code", "date address to", "order id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "outcome code", "mailshot customer date", "item id", "order item status code", "item status code", "item delivered datetime", "item order quantity" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7 ], "keys": { "20": 7, "7": 7, "21": 1, "1": 1, "26": 7, "32": 15, "15": 15, "33": 7, "38": 25, "25": 25, "39": 4, "4": 4 }, "origin_question_toks": [ "Show", "all", "distinct", "product", "categories", "along", "with", "the", "number", "of", "mailshots", "in", "each", "category", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "distinct" ], [ "product", "category" ], [ "along" ], [ "with" ], [ "number" ], [ "of" ], [ "mailshots" ], [ "in" ], [ "each" ], [ "category" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "product", "NN" ], [ "category", "NN" ], [ "along", "IN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "mailshots", "NNS" ], [ "in", "IN" ], [ "each", "DT" ], [ "category", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(5) T(3) A(3) C(0) T(3)" }, { "db_id": "customers_campaigns_ecommerce", "query": "SELECT customer_name , customer_phone FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM mailshot_customers)", "query_toks": [ "SELECT", "customer_name", ",", "customer_phone", "FROM", "customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "mailshot_customers", ")" ], "query_toks_no_value": [ "select", "customer_name", ",", "customer_phone", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "mailshot_customers", ")" ], "question": "Show the name and phone of the customer without any mailshot.", "question_toks": [ "show", "name", "and", "phone", "of", "customer", "without", "any", "mailshot", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "product category", "mailshot name", "mailshot start date", "mailshot end date", "customer id", "premise id", "date address from", "address type code", "date address to", "order id", "customer id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "mailshot id", "customer id", "outcome code", "mailshot customer date", "item id", "order item status code", "order id", "product id", "item status code", "item delivered datetime", "item order quantity" ], "table_names": [ "premises", "products", "customers", "mailshot campaigns", "customer addresses", "customer orders", "mailshot customers", "order items" ], "col_set": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "mailshot name", "mailshot start date", "mailshot end date", "date address from", "address type code", "date address to", "order id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "outcome code", "mailshot customer date", "item id", "order item status code", "item status code", "item delivered datetime", "item order quantity" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7 ], "keys": { "20": 7, "7": 7, "21": 1, "1": 1, "26": 7, "32": 15, "15": 15, "33": 7, "38": 25, "25": 25, "39": 4, "4": 4 }, "origin_question_toks": [ "Show", "the", "name", "and", "phone", "of", "the", "customer", "without", "any", "mailshot", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "phone" ], [ "of" ], [ "customer" ], [ "without" ], [ "any" ], [ "mailshot" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "without", "IN" ], [ "any", "DT" ], [ "mailshot", "NN" ], [ ".", "." ] ], "values": [ "iPhone" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(2) A(0) C(10) T(2) Filter(19) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(6)" }, { "db_id": "customers_campaigns_ecommerce", "query": "SELECT T1.customer_name , T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.outcome_code = 'No Response'", "query_toks": [ "SELECT", "T1.customer_name", ",", "T1.customer_phone", "FROM", "customers", "AS", "T1", "JOIN", "mailshot_customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.outcome_code", "=", "'No", "Response", "'" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", ",", "t1", ".", "customer_phone", "from", "customers", "as", "t1", "join", "mailshot_customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "outcome_code", "=", "value" ], "question": "Show the name and phone for customers with a mailshot with outcome code 'No Response'.", "question_toks": [ "show", "name", "and", "phone", "for", "customer", "with", "a", "mailshot", "with", "outcome", "code", "'", "no", "response", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 33, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 6 ] ] }, "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, 34, false ], null ], "\"No Response\"", null ] ] }, "names": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "product category", "mailshot name", "mailshot start date", "mailshot end date", "customer id", "premise id", "date address from", "address type code", "date address to", "order id", "customer id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "mailshot id", "customer id", "outcome code", "mailshot customer date", "item id", "order item status code", "order id", "product id", "item status code", "item delivered datetime", "item order quantity" ], "table_names": [ "premises", "products", "customers", "mailshot campaigns", "customer addresses", "customer orders", "mailshot customers", "order items" ], "col_set": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "mailshot name", "mailshot start date", "mailshot end date", "date address from", "address type code", "date address to", "order id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "outcome code", "mailshot customer date", "item id", "order item status code", "item status code", "item delivered datetime", "item order quantity" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7 ], "keys": { "20": 7, "7": 7, "21": 1, "1": 1, "26": 7, "32": 15, "15": 15, "33": 7, "38": 25, "25": 25, "39": 4, "4": 4 }, "origin_question_toks": [ "Show", "the", "name", "and", "phone", "for", "customers", "with", "a", "mailshot", "with", "outcome", "code", "'No", "Response", "'", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "phone" ], [ "for" ], [ "customer" ], [ "with" ], [ "a" ], [ "mailshot" ], [ "with" ], [ "outcome", "code" ], [ "'" ], [ "no" ], [ "response" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "mailshot", "NN" ], [ "with", "IN" ], [ "outcome", "JJ" ], [ "code", "NN" ], [ "'", "''" ], [ "no", "DT" ], [ "response", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "iPhone", "No Response" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(2) A(0) C(10) T(2) Filter(2) A(0) C(28) T(6) V(1)" }, { "db_id": "customers_campaigns_ecommerce", "query": "SELECT outcome_code , count(*) FROM mailshot_customers GROUP BY outcome_code", "query_toks": [ "SELECT", "outcome_code", ",", "count", "(", "*", ")", "FROM", "mailshot_customers", "GROUP", "BY", "outcome_code" ], "query_toks_no_value": [ "select", "outcome_code", ",", "count", "(", "*", ")", "from", "mailshot_customers", "group", "by", "outcome_code" ], "question": "Show the outcome code of mailshots along with the number of mailshots in each outcome code.", "question_toks": [ "show", "outcome", "code", "of", "mailshots", "along", "with", "number", "of", "mailshots", "in", "each", "outcome", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 34, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "product category", "mailshot name", "mailshot start date", "mailshot end date", "customer id", "premise id", "date address from", "address type code", "date address to", "order id", "customer id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "mailshot id", "customer id", "outcome code", "mailshot customer date", "item id", "order item status code", "order id", "product id", "item status code", "item delivered datetime", "item order quantity" ], "table_names": [ "premises", "products", "customers", "mailshot campaigns", "customer addresses", "customer orders", "mailshot customers", "order items" ], "col_set": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "mailshot name", "mailshot start date", "mailshot end date", "date address from", "address type code", "date address to", "order id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "outcome code", "mailshot customer date", "item id", "order item status code", "item status code", "item delivered datetime", "item order quantity" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7 ], "keys": { "20": 7, "7": 7, "21": 1, "1": 1, "26": 7, "32": 15, "15": 15, "33": 7, "38": 25, "25": 25, "39": 4, "4": 4 }, "origin_question_toks": [ "Show", "the", "outcome", "code", "of", "mailshots", "along", "with", "the", "number", "of", "mailshots", "in", "each", "outcome", "code", "." ], "question_arg": [ [ "show" ], [ "outcome", "code" ], [ "of" ], [ "mailshots" ], [ "along" ], [ "with" ], [ "number" ], [ "of" ], [ "mailshots" ], [ "in" ], [ "each" ], [ "outcome", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "outcome", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "mailshots", "NNS" ], [ "along", "IN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "mailshots", "NNS" ], [ "in", "IN" ], [ "each", "DT" ], [ "outcome", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(28) T(6) A(3) C(0) T(6)" }, { "db_id": "customers_campaigns_ecommerce", "query": "SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE outcome_code = 'Order' GROUP BY T1.customer_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.customer_name", "FROM", "mailshot_customers", "AS", "T1", "JOIN", "customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "outcome_code", "=", "'Order", "'", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "customer_name", "from", "mailshot_customers", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "outcome_code", "=", "value", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the names of customers who have at least 2 mailshots with outcome code 'Order'.", "question_toks": [ "show", "name", "of", "customer", "who", "have", "at", "least", "2", "mailshots", "with", "outcome", "code", "'", "order", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 33, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 34, false ], null ], "\"Order\"", null ] ] }, "names": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "product category", "mailshot name", "mailshot start date", "mailshot end date", "customer id", "premise id", "date address from", "address type code", "date address to", "order id", "customer id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "mailshot id", "customer id", "outcome code", "mailshot customer date", "item id", "order item status code", "order id", "product id", "item status code", "item delivered datetime", "item order quantity" ], "table_names": [ "premises", "products", "customers", "mailshot campaigns", "customer addresses", "customer orders", "mailshot customers", "order items" ], "col_set": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "mailshot name", "mailshot start date", "mailshot end date", "date address from", "address type code", "date address to", "order id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "outcome code", "mailshot customer date", "item id", "order item status code", "item status code", "item delivered datetime", "item order quantity" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7 ], "keys": { "20": 7, "7": 7, "21": 1, "1": 1, "26": 7, "32": 15, "15": 15, "33": 7, "38": 25, "25": 25, "39": 4, "4": 4 }, "origin_question_toks": [ "Show", "the", "names", "of", "customers", "who", "have", "at", "least", "2", "mailshots", "with", "outcome", "code", "'Order", "'", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "at" ], [ "least" ], [ "2" ], [ "mailshots" ], [ "with" ], [ "outcome", "code" ], [ "'" ], [ "order" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "mailshots", "NNS" ], [ "with", "IN" ], [ "outcome", "JJ" ], [ "code", "NN" ], [ "'", "''" ], [ "order", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "2", "Order" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(28) T(6) V(1) Filter(7) A(3) C(0) T(6) V(0)" }, { "db_id": "customers_campaigns_ecommerce", "query": "SELECT T2.customer_name FROM mailshot_customers 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_name", "FROM", "mailshot_customers", "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_name", "from", "mailshot_customers", "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": "Show the names of customers who have the most mailshots.", "question_toks": [ "show", "name", "of", "customer", "who", "have", "most", "mailshots", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 33, 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, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "product category", "mailshot name", "mailshot start date", "mailshot end date", "customer id", "premise id", "date address from", "address type code", "date address to", "order id", "customer id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "mailshot id", "customer id", "outcome code", "mailshot customer date", "item id", "order item status code", "order id", "product id", "item status code", "item delivered datetime", "item order quantity" ], "table_names": [ "premises", "products", "customers", "mailshot campaigns", "customer addresses", "customer orders", "mailshot customers", "order items" ], "col_set": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "mailshot name", "mailshot start date", "mailshot end date", "date address from", "address type code", "date address to", "order id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "outcome code", "mailshot customer date", "item id", "order item status code", "item status code", "item delivered datetime", "item order quantity" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7 ], "keys": { "20": 7, "7": 7, "21": 1, "1": 1, "26": 7, "32": 15, "15": 15, "33": 7, "38": 25, "25": 25, "39": 4, "4": 4 }, "origin_question_toks": [ "Show", "the", "names", "of", "customers", "who", "have", "the", "most", "mailshots", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "most" ], [ "mailshots" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "most", "RBS" ], [ "mailshots", "NNS" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(9) T(2) Sup(0) A(3) C(0) T(6) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(6)" }, { "db_id": "customers_campaigns_ecommerce", "query": "SELECT T2.customer_name , T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'Order' INTERSECT SELECT T2.customer_name , T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'No Response'", "query_toks": [ "SELECT", "T2.customer_name", ",", "T2.payment_method", "FROM", "mailshot_customers", "AS", "T1", "JOIN", "customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T1.outcome_code", "=", "'Order", "'", "INTERSECT", "SELECT", "T2.customer_name", ",", "T2.payment_method", "FROM", "mailshot_customers", "AS", "T1", "JOIN", "customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T1.outcome_code", "=", "'No", "Response", "'" ], "query_toks_no_value": [ "select", "t2", ".", "customer_name", ",", "t2", ".", "payment_method", "from", "mailshot_customers", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "outcome_code", "=", "value", "intersect", "select", "t2", ".", "customer_name", ",", "t2", ".", "payment_method", "from", "mailshot_customers", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "outcome_code", "=", "value" ], "question": "What are the name and payment method of customers who have both mailshots in 'Order' outcome and mailshots in 'No Response' outcome.", "question_toks": [ "what", "are", "name", "and", "payment", "method", "of", "customer", "who", "have", "both", "mailshots", "in", "'", "order", "'", "outcome", "and", "mailshots", "in", "'", "no", "response", "'", "outcome", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 34, false ], null ], "\"No Response\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 34, false ], null ], "\"Order\"", null ] ] }, "names": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "product category", "mailshot name", "mailshot start date", "mailshot end date", "customer id", "premise id", "date address from", "address type code", "date address to", "order id", "customer id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "mailshot id", "customer id", "outcome code", "mailshot customer date", "item id", "order item status code", "order id", "product id", "item status code", "item delivered datetime", "item order quantity" ], "table_names": [ "premises", "products", "customers", "mailshot campaigns", "customer addresses", "customer orders", "mailshot customers", "order items" ], "col_set": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "mailshot name", "mailshot start date", "mailshot end date", "date address from", "address type code", "date address to", "order id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "outcome code", "mailshot customer date", "item id", "order item status code", "item status code", "item delivered datetime", "item order quantity" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7 ], "keys": { "20": 7, "7": 7, "21": 1, "1": 1, "26": 7, "32": 15, "15": 15, "33": 7, "38": 25, "25": 25, "39": 4, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "payment", "method", "of", "customers", "who", "have", "both", "mailshots", "in", "'Order", "'", "outcome", "and", "mailshots", "in", "'No", "Response", "'", "outcome", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "payment", "method" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "both" ], [ "mailshots" ], [ "in" ], [ "'" ], [ "order" ], [ "'" ], [ "outcome" ], [ "and" ], [ "mailshots" ], [ "in" ], [ "'" ], [ "no" ], [ "response" ], [ "'" ], [ "outcome" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "payment", "NN" ], [ "method", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "both", "DT" ], [ "mailshots", "NNS" ], [ "in", "IN" ], [ "'", "''" ], [ "order", "NN" ], [ "'", "POS" ], [ "outcome", "NN" ], [ "and", "CC" ], [ "mailshots", "NNS" ], [ "in", "IN" ], [ "'", "''" ], [ "no", "DT" ], [ "response", "NN" ], [ "'", "POS" ], [ "outcome", "NN" ], [ ".", "." ] ], "values": [ "Order", "No Response" ], "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(9) T(2) A(0) C(8) T(2) Filter(2) A(0) C(28) T(6) V(0) Root(3) Sel(0) N(1) A(0) C(9) T(2) A(0) C(8) T(2) Filter(2) A(0) C(28) T(6) V(1)" }, { "db_id": "customers_campaigns_ecommerce", "query": "SELECT T2.premises_type , T1.address_type_code FROM customer_addresses AS T1 JOIN premises AS T2 ON T1.premise_id = T2.premise_id", "query_toks": [ "SELECT", "T2.premises_type", ",", "T1.address_type_code", "FROM", "customer_addresses", "AS", "T1", "JOIN", "premises", "AS", "T2", "ON", "T1.premise_id", "=", "T2.premise_id" ], "query_toks_no_value": [ "select", "t2", ".", "premises_type", ",", "t1", ".", "address_type_code", "from", "customer_addresses", "as", "t1", "join", "premises", "as", "t2", "on", "t1", ".", "premise_id", "=", "t2", ".", "premise_id" ], "question": "Show the premise type and address type code for all customer addresses.", "question_toks": [ "show", "premise", "type", "and", "address", "type", "code", "for", "all", "customer", "address", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "product category", "mailshot name", "mailshot start date", "mailshot end date", "customer id", "premise id", "date address from", "address type code", "date address to", "order id", "customer id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "mailshot id", "customer id", "outcome code", "mailshot customer date", "item id", "order item status code", "order id", "product id", "item status code", "item delivered datetime", "item order quantity" ], "table_names": [ "premises", "products", "customers", "mailshot campaigns", "customer addresses", "customer orders", "mailshot customers", "order items" ], "col_set": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "mailshot name", "mailshot start date", "mailshot end date", "date address from", "address type code", "date address to", "order id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "outcome code", "mailshot customer date", "item id", "order item status code", "item status code", "item delivered datetime", "item order quantity" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7 ], "keys": { "20": 7, "7": 7, "21": 1, "1": 1, "26": 7, "32": 15, "15": 15, "33": 7, "38": 25, "25": 25, "39": 4, "4": 4 }, "origin_question_toks": [ "Show", "the", "premise", "type", "and", "address", "type", "code", "for", "all", "customer", "addresses", "." ], "question_arg": [ [ "show" ], [ "premise", "type" ], [ "and" ], [ "address", "type", "code" ], [ "for" ], [ "all" ], [ "customer", "address" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "premise", "NN" ], [ "type", "NN" ], [ "and", "CC" ], [ "address", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "address", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(20) T(4)" }, { "db_id": "customers_campaigns_ecommerce", "query": "SELECT DISTINCT address_type_code FROM customer_addresses", "query_toks": [ "SELECT", "DISTINCT", "address_type_code", "FROM", "customer_addresses" ], "query_toks_no_value": [ "select", "distinct", "address_type_code", "from", "customer_addresses" ], "question": "What are the distinct address type codes for all customer addresses?", "question_toks": [ "what", "are", "distinct", "address", "type", "code", "for", "all", "customer", "address", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "product category", "mailshot name", "mailshot start date", "mailshot end date", "customer id", "premise id", "date address from", "address type code", "date address to", "order id", "customer id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "mailshot id", "customer id", "outcome code", "mailshot customer date", "item id", "order item status code", "order id", "product id", "item status code", "item delivered datetime", "item order quantity" ], "table_names": [ "premises", "products", "customers", "mailshot campaigns", "customer addresses", "customer orders", "mailshot customers", "order items" ], "col_set": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "mailshot name", "mailshot start date", "mailshot end date", "date address from", "address type code", "date address to", "order id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "outcome code", "mailshot customer date", "item id", "order item status code", "item status code", "item delivered datetime", "item order quantity" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7 ], "keys": { "20": 7, "7": 7, "21": 1, "1": 1, "26": 7, "32": 15, "15": 15, "33": 7, "38": 25, "25": 25, "39": 4, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "distinct", "address", "type", "codes", "for", "all", "customer", "addresses", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "address", "type", "code" ], [ "for" ], [ "all" ], [ "customer", "address" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "address", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "address", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(20) T(4)" }, { "db_id": "customers_campaigns_ecommerce", "query": "SELECT order_shipping_charges , customer_id FROM customer_orders WHERE order_status_code = 'Cancelled' OR order_status_code = 'Paid'", "query_toks": [ "SELECT", "order_shipping_charges", ",", "customer_id", "FROM", "customer_orders", "WHERE", "order_status_code", "=", "'Cancelled", "'", "OR", "order_status_code", "=", "'Paid", "'" ], "query_toks_no_value": [ "select", "order_shipping_charges", ",", "customer_id", "from", "customer_orders", "where", "order_status_code", "=", "value", "or", "order_status_code", "=", "value" ], "question": "Show the shipping charge and customer id for customer orders with order status Cancelled or Paid.", "question_toks": [ "show", "shipping", "charge", "and", "customer", "id", "for", "customer", "order", "with", "order", "status", "cancelled", "or", "paid", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"Cancelled\"", null ], "or", [ false, 2, [ 0, [ 0, 27, false ], null ], "\"Paid\"", null ] ] }, "names": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "product category", "mailshot name", "mailshot start date", "mailshot end date", "customer id", "premise id", "date address from", "address type code", "date address to", "order id", "customer id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "mailshot id", "customer id", "outcome code", "mailshot customer date", "item id", "order item status code", "order id", "product id", "item status code", "item delivered datetime", "item order quantity" ], "table_names": [ "premises", "products", "customers", "mailshot campaigns", "customer addresses", "customer orders", "mailshot customers", "order items" ], "col_set": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "mailshot name", "mailshot start date", "mailshot end date", "date address from", "address type code", "date address to", "order id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "outcome code", "mailshot customer date", "item id", "order item status code", "item status code", "item delivered datetime", "item order quantity" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7 ], "keys": { "20": 7, "7": 7, "21": 1, "1": 1, "26": 7, "32": 15, "15": 15, "33": 7, "38": 25, "25": 25, "39": 4, "4": 4 }, "origin_question_toks": [ "Show", "the", "shipping", "charge", "and", "customer", "id", "for", "customer", "orders", "with", "order", "status", "Cancelled", "or", "Paid", "." ], "question_arg": [ [ "show" ], [ "order", "shipping", "charge" ], [ "and" ], [ "customer", "id" ], [ "for" ], [ "customer", "order" ], [ "with" ], [ "order", "status", "code" ], [ "cancelled" ], [ "or" ], [ "paid" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "shipping", "VBG" ], [ "charge", "NN" ], [ "and", "CC" ], [ "customer", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "order", "NN" ], [ "with", "IN" ], [ "order", "NN" ], [ "status", "NN" ], [ "cancelled", "VBD" ], [ "or", "CC" ], [ "paid", "VBN" ], [ ".", "." ] ], "values": [ "Paid", "Order", "Cancelled", "Shipping" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(27) T(5) A(0) C(7) T(5) Filter(1) Filter(2) A(0) C(23) T(5) V(2) Filter(2) A(0) C(23) T(5) V(0)" }, { "db_id": "customers_campaigns_ecommerce", "query": "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE shipping_method_code = 'FedEx' AND order_status_code = 'Paid'", "query_toks": [ "SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "shipping_method_code", "=", "'FedEx", "'", "AND", "order_status_code", "=", "'Paid", "'" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "shipping_method_code", "=", "value", "and", "order_status_code", "=", "value" ], "question": "Show the names of customers having an order with shipping method FedEx and order status Paid.", "question_toks": [ "show", "name", "of", "customer", "having", "an", "order", "with", "shipping", "method", "fedex", "and", "order", "status", "paid", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 28, false ], null ], "\"FedEx\"", null ], "and", [ false, 2, [ 0, [ 0, 27, false ], null ], "\"Paid\"", null ] ] }, "names": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "product category", "mailshot name", "mailshot start date", "mailshot end date", "customer id", "premise id", "date address from", "address type code", "date address to", "order id", "customer id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "mailshot id", "customer id", "outcome code", "mailshot customer date", "item id", "order item status code", "order id", "product id", "item status code", "item delivered datetime", "item order quantity" ], "table_names": [ "premises", "products", "customers", "mailshot campaigns", "customer addresses", "customer orders", "mailshot customers", "order items" ], "col_set": [ "*", "premise id", "premises type", "premise details", "product id", "product category", "product name", "customer id", "payment method", "customer name", "customer phone", "customer email", "customer address", "customer login", "customer password", "mailshot id", "mailshot name", "mailshot start date", "mailshot end date", "date address from", "address type code", "date address to", "order id", "order status code", "shipping method code", "order placed datetime", "order delivered datetime", "order shipping charges", "outcome code", "mailshot customer date", "item id", "order item status code", "item status code", "item delivered datetime", "item order quantity" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7 ], "keys": { "20": 7, "7": 7, "21": 1, "1": 1, "26": 7, "32": 15, "15": 15, "33": 7, "38": 25, "25": 25, "39": 4, "4": 4 }, "origin_question_toks": [ "Show", "the", "names", "of", "customers", "having", "an", "order", "with", "shipping", "method", "FedEx", "and", "order", "status", "Paid", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "customer" ], [ "having" ], [ "an" ], [ "order" ], [ "with" ], [ "shipping", "method", "code" ], [ "fedex" ], [ "and" ], [ "order", "status", "code" ], [ "paid" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "having", "VBG" ], [ "an", "DT" ], [ "order", "NN" ], [ "with", "IN" ], [ "shipping", "VBG" ], [ "method", "NN" ], [ "fedex", "NN" ], [ "and", "CC" ], [ "order", "NN" ], [ "status", "NN" ], [ "paid", "VBN" ], [ ".", "." ] ], "values": [ "Paid", "Order", "FedEx", "Shipping" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(24) T(5) V(2) Filter(2) A(0) C(23) T(5) V(0)" }, { "db_id": "college_3", "query": "SELECT count(*) FROM COURSE", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "COURSE" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "course" ], "question": "How many courses are there in total?", "question_toks": [ "how", "many", "course", "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "How", "many", "courses", "are", "there", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "course" ], [ "are" ], [ "there" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "course", "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(4)" }, { "db_id": "college_3", "query": "SELECT count(*) FROM COURSE", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "COURSE" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "course" ], "question": "Count the number of courses.", "question_toks": [ "count", "number", "of", "course", "." ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "courses", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "course" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(4)" }, { "db_id": "college_3", "query": "SELECT count(*) FROM COURSE WHERE Credits > 2", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "COURSE", "WHERE", "Credits", ">", "2" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "course", "where", "credits", ">", "value" ], "question": "How many courses have more than 2 credits?", "question_toks": [ "how", "many", "course", "have", "more", "than", "2", "credit", "?" ], "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, 3, [ 0, [ 0, 28, false ], null ], 2.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "How", "many", "courses", "have", "more", "than", "2", "credits", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "course" ], [ "have" ], [ "more" ], [ "than" ], [ "2" ], [ "credit" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "course", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "credit", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(5) A(0) C(21) T(4) V(0)" }, { "db_id": "college_3", "query": "SELECT count(*) FROM COURSE WHERE Credits > 2", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "COURSE", "WHERE", "Credits", ">", "2" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "course", "where", "credits", ">", "value" ], "question": "Count the number of courses with more than 2 credits.", "question_toks": [ "count", "number", "of", "course", "with", "more", "than", "2", "credit", "." ], "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, 3, [ 0, [ 0, 28, false ], null ], 2.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "courses", "with", "more", "than", "2", "credits", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "course" ], [ "with" ], [ "more" ], [ "than" ], [ "2" ], [ "credit" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "credit", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(5) A(0) C(21) T(4) V(0)" }, { "db_id": "college_3", "query": "SELECT CName FROM COURSE WHERE Credits = 1", "query_toks": [ "SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "1" ], "query_toks_no_value": [ "select", "cname", "from", "course", "where", "credits", "=", "value" ], "question": "List all names of courses with 1 credit?", "question_toks": [ "list", "all", "name", "of", "course", "with", "1", "credit", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 28, false ], null ], 1.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "List", "all", "names", "of", "courses", "with", "1", "credit", "?" ], "question_arg": [ [ "list" ], [ "all" ], [ "name" ], [ "of" ], [ "course" ], [ "with" ], [ "1" ], [ "credit" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "with", "IN" ], [ "1", "CD" ], [ "credit", "NN" ], [ "?", "." ] ], "values": [ "1", "James", "Ames" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(20) T(4) Filter(2) A(0) C(21) T(4) V(0)" }, { "db_id": "college_3", "query": "SELECT CName FROM COURSE WHERE Credits = 1", "query_toks": [ "SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "1" ], "query_toks_no_value": [ "select", "cname", "from", "course", "where", "credits", "=", "value" ], "question": "What are the names of courses with 1 credit?", "question_toks": [ "what", "are", "name", "of", "course", "with", "1", "credit", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 28, false ], null ], 1.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "courses", "with", "1", "credit", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "course" ], [ "with" ], [ "1" ], [ "credit" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "with", "IN" ], [ "1", "CD" ], [ "credit", "NN" ], [ "?", "." ] ], "values": [ "1", "James", "Ames" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(20) T(4) Filter(2) A(0) C(21) T(4) V(0)" }, { "db_id": "college_3", "query": "SELECT CName FROM COURSE WHERE Days = \"MTW\"", "query_toks": [ "SELECT", "CName", "FROM", "COURSE", "WHERE", "Days", "=", "``", "MTW", "''" ], "query_toks_no_value": [ "select", "cname", "from", "course", "where", "days", "=", "value" ], "question": "Which courses are taught on days MTW?", "question_toks": [ "which", "course", "are", "taught", "on", "day", "mtw", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 30, false ], null ], "\"MTW\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Which", "courses", "are", "taught", "on", "days", "MTW", "?" ], "question_arg": [ [ "which" ], [ "course" ], [ "are" ], [ "taught" ], [ "on" ], [ "day" ], [ "mtw" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "course", "NN" ], [ "are", "VBP" ], [ "taught", "VBN" ], [ "on", "IN" ], [ "day", "NN" ], [ "mtw", "NN" ], [ "?", "." ] ], "values": [ "MTW", "MT" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(20) T(4) Filter(2) A(0) C(23) T(4) V(0)" }, { "db_id": "college_3", "query": "SELECT CName FROM COURSE WHERE Days = \"MTW\"", "query_toks": [ "SELECT", "CName", "FROM", "COURSE", "WHERE", "Days", "=", "``", "MTW", "''" ], "query_toks_no_value": [ "select", "cname", "from", "course", "where", "days", "=", "value" ], "question": "What are the course names for courses taught on MTW?", "question_toks": [ "what", "are", "course", "name", "for", "course", "taught", "on", "mtw", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 30, false ], null ], "\"MTW\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "course", "names", "for", "courses", "taught", "on", "MTW", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "course", "name" ], [ "for" ], [ "course" ], [ "taught" ], [ "on" ], [ "mtw" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "course", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "course", "NN" ], [ "taught", "NN" ], [ "on", "IN" ], [ "mtw", "NN" ], [ "?", "." ] ], "values": [ "Ames", "MTW", "MT", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(20) T(4) Filter(2) A(0) C(23) T(4) V(1)" }, { "db_id": "college_3", "query": "SELECT count(*) FROM DEPARTMENT WHERE Division = \"AS\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "``", "AS", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "department", "where", "division", "=", "value" ], "question": "What is the number of departments in Division \"AS\"?", "question_toks": [ "what", "is", "number", "of", "department", "in", "division", "'", "a", "'", "?" ], "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, 18, false ], null ], "\"AS\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "departments", "in", "Division", "``", "AS", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "department" ], [ "in" ], [ "division" ], [ "'" ], [ "a" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "in", "IN" ], [ "division", "NN" ], [ "'", "''" ], [ "a", "DT" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "AS" ], "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": "college_3", "query": "SELECT count(*) FROM DEPARTMENT WHERE Division = \"AS\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "``", "AS", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "department", "where", "division", "=", "value" ], "question": "How many departments are in the division AS?", "question_toks": [ "how", "many", "department", "are", "in", "division", "a", "?" ], "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, 18, false ], null ], "\"AS\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "How", "many", "departments", "are", "in", "the", "division", "AS", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "department" ], [ "are" ], [ "in" ], [ "division" ], [ "a" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "department", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "division", "NN" ], [ "a", "DT" ], [ "?", "." ] ], "values": [ "AS" ], "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": "college_3", "query": "SELECT DPhone FROM DEPARTMENT WHERE Room = 268", "query_toks": [ "SELECT", "DPhone", "FROM", "DEPARTMENT", "WHERE", "Room", "=", "268" ], "query_toks_no_value": [ "select", "dphone", "from", "department", "where", "room", "=", "value" ], "question": "What are the phones of departments in Room 268?", "question_toks": [ "what", "are", "phone", "of", "department", "in", "room", "268", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], 268.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "phones", "of", "departments", "in", "Room", "268", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "phone" ], [ "of" ], [ "department" ], [ "in" ], [ "room" ], [ "268" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "phone", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "in", "IN" ], [ "room", "NN" ], [ "268", "CD" ], [ "?", "." ] ], "values": [ "268" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(17) T(2) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "college_3", "query": "SELECT DPhone FROM DEPARTMENT WHERE Room = 268", "query_toks": [ "SELECT", "DPhone", "FROM", "DEPARTMENT", "WHERE", "Room", "=", "268" ], "query_toks_no_value": [ "select", "dphone", "from", "department", "where", "room", "=", "value" ], "question": "Give the phones for departments in room 268.", "question_toks": [ "give", "phone", "for", "department", "in", "room", "268", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], 268.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Give", "the", "phones", "for", "departments", "in", "room", "268", "." ], "question_arg": [ [ "give" ], [ "phone" ], [ "for" ], [ "department" ], [ "in" ], [ "room" ], [ "268" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "phone", "NN" ], [ "for", "IN" ], [ "department", "NN" ], [ "in", "IN" ], [ "room", "NN" ], [ "268", "CD" ], [ ".", "." ] ], "values": [ "268" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(17) T(2) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "college_3", "query": "SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade = \"B\"", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "StuID", ")", "FROM", "ENROLLED_IN", "WHERE", "Grade", "=", "``", "B", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "stuid", ")", "from", "enrolled_in", "where", "grade", "=", "value" ], "question": "Find the number of students that have at least one grade \"B\".", "question_toks": [ "find", "number", "of", "student", "that", "have", "at", "least", "one", "grade", "'", "b", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 35, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 37, false ], null ], "\"B\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "students", "that", "have", "at", "least", "one", "grade", "``", "B", "''", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "student" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "one" ], [ "grade" ], [ "'" ], [ "b" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "grade", "NN" ], [ "'", "''" ], [ "b", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "1", "B" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(1) T(6) Filter(2) A(0) C(25) T(6) V(1)" }, { "db_id": "college_3", "query": "SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade = \"B\"", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "StuID", ")", "FROM", "ENROLLED_IN", "WHERE", "Grade", "=", "``", "B", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "stuid", ")", "from", "enrolled_in", "where", "grade", "=", "value" ], "question": "How many students have had at least one \"B\" grade?", "question_toks": [ "how", "many", "student", "have", "had", "at", "least", "one", "'", "b", "'", "grade", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 35, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 37, false ], null ], "\"B\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "How", "many", "students", "have", "had", "at", "least", "one", "``", "B", "''", "grade", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "have" ], [ "had" ], [ "at" ], [ "least" ], [ "one" ], [ "'" ], [ "b" ], [ "'" ], [ "grade" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "have", "VBP" ], [ "had", "VBN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "'", "''" ], [ "b", "NN" ], [ "'", "''" ], [ "grade", "NN" ], [ "?", "." ] ], "values": [ "1", "B" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(1) T(6) Filter(2) A(0) C(25) T(6) V(1)" }, { "db_id": "college_3", "query": "SELECT max(gradepoint) , min(gradepoint) FROM GRADECONVERSION", "query_toks": [ "SELECT", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "FROM", "GRADECONVERSION" ], "query_toks_no_value": [ "select", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "from", "gradeconversion" ], "question": "Find the max and min grade point for all letter grade.", "question_toks": [ "find", "max", "and", "min", "grade", "point", "for", "all", "letter", "grade", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 39, false ], null ] ], [ 2, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "max", "and", "min", "grade", "point", "for", "all", "letter", "grade", "." ], "question_arg": [ [ "find" ], [ "max" ], [ "and" ], [ "min" ], [ "grade", "point" ], [ "for" ], [ "all" ], [ "letter", "grade" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "max", "NN" ], [ "and", "CC" ], [ "min", "NN" ], [ "grade", "NN" ], [ "point", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "letter", "NN" ], [ "grade", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(27) T(7) A(2) C(27) T(7)" }, { "db_id": "college_3", "query": "SELECT max(gradepoint) , min(gradepoint) FROM GRADECONVERSION", "query_toks": [ "SELECT", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "FROM", "GRADECONVERSION" ], "query_toks_no_value": [ "select", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "from", "gradeconversion" ], "question": "What are the maximum and minumum grade points?", "question_toks": [ "what", "are", "maximum", "and", "minumum", "grade", "point", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 39, false ], null ] ], [ 2, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "maximum", "and", "minumum", "grade", "points", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "and" ], [ "minumum" ], [ "grade", "point" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minumum", "JJ" ], [ "grade", "NN" ], [ "point", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(27) T(7) A(2) C(27) T(7)" }, { "db_id": "college_3", "query": "SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%'", "query_toks": [ "SELECT", "DISTINCT", "Fname", "FROM", "STUDENT", "WHERE", "Fname", "LIKE", "'", "%", "a", "%", "'" ], "query_toks_no_value": [ "select", "distinct", "fname", "from", "student", "where", "fname", "like", "value" ], "question": "Find the first names of students whose first names contain letter \"a\".", "question_toks": [ "find", "first", "name", "of", "student", "whose", "first", "name", "contain", "letter", "'", "a", "'", "." ], "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, 9, [ 0, [ 0, 3, false ], null ], "\"%a%\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "first", "names", "of", "students", "whose", "first", "names", "contain", "letter", "``", "a", "''", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "whose" ], [ "first", "name" ], [ "contain" ], [ "letter" ], [ "'" ], [ "a" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "contain", "VBP" ], [ "letter", "NN" ], [ "'", "''" ], [ "a", "DT" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "1", "James", "A", "a", "Ames" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(9) A(0) C(3) T(0) V(3)" }, { "db_id": "college_3", "query": "SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%'", "query_toks": [ "SELECT", "DISTINCT", "Fname", "FROM", "STUDENT", "WHERE", "Fname", "LIKE", "'", "%", "a", "%", "'" ], "query_toks_no_value": [ "select", "distinct", "fname", "from", "student", "where", "fname", "like", "value" ], "question": "What are the first names for students who have an \"a\" in their first name?", "question_toks": [ "what", "are", "first", "name", "for", "student", "who", "have", "an", "'", "a", "'", "in", "their", "first", "name", "?" ], "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, 9, [ 0, [ 0, 3, false ], null ], "\"%a%\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "for", "students", "who", "have", "an", "``", "a", "''", "in", "their", "first", "name", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "for" ], [ "student" ], [ "who" ], [ "have" ], [ "an" ], [ "'" ], [ "a" ], [ "'" ], [ "in" ], [ "their" ], [ "first", "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "an", "DT" ], [ "'", "''" ], [ "a", "DT" ], [ "'", "''" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "1", "James", "A", "a", "Ames" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(9) A(0) C(3) T(0) V(3)" }, { "db_id": "college_3", "query": "SELECT Fname , Lname FROM FACULTY WHERE sex = \"M\" AND Building = \"NEB\"", "query_toks": [ "SELECT", "Fname", ",", "Lname", "FROM", "FACULTY", "WHERE", "sex", "=", "``", "M", "''", "AND", "Building", "=", "``", "NEB", "''" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "faculty", "where", "sex", "=", "value", "and", "building", "=", "value" ], "question": "Find the first names and last names of male (sex is M) faculties who live in building NEB.", "question_toks": [ "find", "first", "name", "and", "last", "name", "of", "male", "(", "sex", "is", "m", ")", "faculty", "who", "live", "in", "building", "neb", "." ], "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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"M\"", null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"NEB\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "first", "names", "and", "last", "names", "of", "male", "(", "sex", "is", "M", ")", "faculties", "who", "live", "in", "building", "NEB", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "male" ], [ "(" ], [ "sex" ], [ "is" ], [ "m" ], [ ")" ], [ "faculty" ], [ "who" ], [ "live" ], [ "in" ], [ "building" ], [ "neb" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "male", "NN" ], [ "(", "(" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "m", "VBN" ], [ ")", ")" ], [ "faculty", "NN" ], [ "who", "WP" ], [ "live", "VBP" ], [ "in", "IN" ], [ "building", "NN" ], [ "neb", "NN" ], [ ".", "." ] ], "values": [ "1", "James", "M", "NEB", "Ames" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(0) C(2) T(1) Filter(0) Filter(2) A(0) C(5) T(1) V(2) Filter(2) A(0) C(13) T(1) V(3)" }, { "db_id": "college_3", "query": "SELECT Fname , Lname FROM FACULTY WHERE sex = \"M\" AND Building = \"NEB\"", "query_toks": [ "SELECT", "Fname", ",", "Lname", "FROM", "FACULTY", "WHERE", "sex", "=", "``", "M", "''", "AND", "Building", "=", "``", "NEB", "''" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "faculty", "where", "sex", "=", "value", "and", "building", "=", "value" ], "question": "What are the full names of faculties with sex M and who live in building NEB?", "question_toks": [ "what", "are", "full", "name", "of", "faculty", "with", "sex", "m", "and", "who", "live", "in", "building", "neb", "?" ], "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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"M\"", null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"NEB\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "full", "names", "of", "faculties", "with", "sex", "M", "and", "who", "live", "in", "building", "NEB", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "of" ], [ "faculty" ], [ "with" ], [ "sex" ], [ "m" ], [ "and" ], [ "who" ], [ "live" ], [ "in" ], [ "building" ], [ "neb" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "with", "IN" ], [ "sex", "NN" ], [ "m", "NNS" ], [ "and", "CC" ], [ "who", "WP" ], [ "live", "VBP" ], [ "in", "IN" ], [ "building", "NN" ], [ "neb", "NN" ], [ "?", "." ] ], "values": [ "Ames", "M", "James", "NEB" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(0) C(2) T(1) Filter(0) Filter(2) A(0) C(5) T(1) V(1) Filter(2) A(0) C(13) T(1) V(3)" }, { "db_id": "college_3", "query": "SELECT Room FROM FACULTY WHERE Rank = \"Professor\" AND Building = \"NEB\"", "query_toks": [ "SELECT", "Room", "FROM", "FACULTY", "WHERE", "Rank", "=", "``", "Professor", "''", "AND", "Building", "=", "``", "NEB", "''" ], "query_toks_no_value": [ "select", "room", "from", "faculty", "where", "rank", "=", "value", "and", "building", "=", "value" ], "question": "Find the rooms of faculties with rank professor who live in building NEB.", "question_toks": [ "find", "room", "of", "faculty", "with", "rank", "professor", "who", "live", "in", "building", "neb", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Professor\"", null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"NEB\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "rooms", "of", "faculties", "with", "rank", "professor", "who", "live", "in", "building", "NEB", "." ], "question_arg": [ [ "find" ], [ "room" ], [ "of" ], [ "faculty" ], [ "with" ], [ "rank" ], [ "professor" ], [ "who" ], [ "live" ], [ "in" ], [ "building" ], [ "neb" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "room", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "with", "IN" ], [ "rank", "NN" ], [ "professor", "NN" ], [ "who", "WP" ], [ "live", "VBP" ], [ "in", "IN" ], [ "building", "NN" ], [ "neb", "NN" ], [ ".", "." ] ], "values": [ "Frank", "NEB", "Professor" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(0) Filter(2) A(0) C(10) T(1) V(2) Filter(2) A(0) C(13) T(1) V(1)" }, { "db_id": "college_3", "query": "SELECT Room FROM FACULTY WHERE Rank = \"Professor\" AND Building = \"NEB\"", "query_toks": [ "SELECT", "Room", "FROM", "FACULTY", "WHERE", "Rank", "=", "``", "Professor", "''", "AND", "Building", "=", "``", "NEB", "''" ], "query_toks_no_value": [ "select", "room", "from", "faculty", "where", "rank", "=", "value", "and", "building", "=", "value" ], "question": "What are the rooms for members of the faculty who are professors and who live in building NEB?", "question_toks": [ "what", "are", "room", "for", "member", "of", "faculty", "who", "are", "professor", "and", "who", "live", "in", "building", "neb", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Professor\"", null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"NEB\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "rooms", "for", "members", "of", "the", "faculty", "who", "are", "professors", "and", "who", "live", "in", "building", "NEB", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "room" ], [ "for" ], [ "member", "of" ], [ "faculty" ], [ "who" ], [ "are" ], [ "professor" ], [ "and" ], [ "who" ], [ "live" ], [ "in" ], [ "building" ], [ "neb" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "room", "NN" ], [ "for", "IN" ], [ "member", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "professor", "JJ" ], [ "and", "CC" ], [ "who", "WP" ], [ "live", "VBP" ], [ "in", "IN" ], [ "building", "NN" ], [ "neb", "NN" ], [ "?", "." ] ], "values": [ "NEB", "Professor" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(0) Filter(2) A(0) C(10) T(1) V(1) Filter(2) A(0) C(13) T(1) V(0)" }, { "db_id": "college_3", "query": "SELECT DName FROM DEPARTMENT WHERE Building = \"Mergenthaler\"", "query_toks": [ "SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Building", "=", "``", "Mergenthaler", "''" ], "query_toks_no_value": [ "select", "dname", "from", "department", "where", "building", "=", "value" ], "question": "Find the department name that is in Building \"Mergenthaler\".", "question_toks": [ "find", "department", "name", "that", "is", "in", "building", "'", "mergenthaler", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Mergenthaler\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "department", "name", "that", "is", "in", "Building", "``", "Mergenthaler", "''", "." ], "question_arg": [ [ "find" ], [ "department", "name" ], [ "that" ], [ "is" ], [ "in" ], [ "building" ], [ "'" ], [ "mergenthaler" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "department", "NN" ], [ "name", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "in", "IN" ], [ "building", "VBG" ], [ "'", "''" ], [ "mergenthaler", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Mergenthaler" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(2) A(0) C(13) T(2) V(0)" }, { "db_id": "college_3", "query": "SELECT DName FROM DEPARTMENT WHERE Building = \"Mergenthaler\"", "query_toks": [ "SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Building", "=", "``", "Mergenthaler", "''" ], "query_toks_no_value": [ "select", "dname", "from", "department", "where", "building", "=", "value" ], "question": "What is the name of the department in the Building Mergenthaler?", "question_toks": [ "what", "is", "name", "of", "department", "in", "building", "mergenthaler", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Mergenthaler\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "department", "in", "the", "Building", "Mergenthaler", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "department" ], [ "in" ], [ "building" ], [ "mergenthaler" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "in", "IN" ], [ "building", "VBG" ], [ "mergenthaler", "NN" ], [ "?", "." ] ], "values": [ "Mergenthaler" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(2) A(0) C(13) T(2) V(0)" }, { "db_id": "college_3", "query": "SELECT * FROM COURSE ORDER BY Credits", "query_toks": [ "SELECT", "*", "FROM", "COURSE", "ORDER", "BY", "Credits" ], "query_toks_no_value": [ "select", "*", "from", "course", "order", "by", "credits" ], "question": "List all information about courses sorted by credits in the ascending order.", "question_toks": [ "list", "all", "information", "about", "course", "sorted", "by", "credit", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 28, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "List", "all", "information", "about", "courses", "sorted", "by", "credits", "in", "the", "ascending", "order", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "information" ], [ "about" ], [ "course" ], [ "sorted" ], [ "by" ], [ "credit" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "course", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "credit", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(0) T(4) Order(1) A(0) C(21) T(4)" }, { "db_id": "college_3", "query": "SELECT * FROM COURSE ORDER BY Credits", "query_toks": [ "SELECT", "*", "FROM", "COURSE", "ORDER", "BY", "Credits" ], "query_toks_no_value": [ "select", "*", "from", "course", "order", "by", "credits" ], "question": "What is all the information about courses, ordered by credits ascending?", "question_toks": [ "what", "is", "all", "information", "about", "course", ",", "ordered", "by", "credit", "ascending", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 28, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "is", "all", "the", "information", "about", "courses", ",", "ordered", "by", "credits", "ascending", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "all" ], [ "information" ], [ "about" ], [ "course" ], [ "," ], [ "ordered" ], [ "by" ], [ "credit" ], [ "ascending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "course", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "credit", "NN" ], [ "ascending", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(0) T(4) Order(1) A(0) C(21) T(4)" }, { "db_id": "college_3", "query": "SELECT CName FROM COURSE ORDER BY Credits", "query_toks": [ "SELECT", "CName", "FROM", "COURSE", "ORDER", "BY", "Credits" ], "query_toks_no_value": [ "select", "cname", "from", "course", "order", "by", "credits" ], "question": "List the course name of courses sorted by credits.", "question_toks": [ "list", "course", "name", "of", "course", "sorted", "by", "credit", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 28, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "List", "the", "course", "name", "of", "courses", "sorted", "by", "credits", "." ], "question_arg": [ [ "list" ], [ "course", "name" ], [ "of" ], [ "course" ], [ "sorted" ], [ "by" ], [ "credit" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "course", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "credit", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(20) T(4) Order(1) A(0) C(21) T(4)" }, { "db_id": "college_3", "query": "SELECT CName FROM COURSE ORDER BY Credits", "query_toks": [ "SELECT", "CName", "FROM", "COURSE", "ORDER", "BY", "Credits" ], "query_toks_no_value": [ "select", "cname", "from", "course", "order", "by", "credits" ], "question": "What are the course names, ordered by credits?", "question_toks": [ "what", "are", "course", "name", ",", "ordered", "by", "credit", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 28, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "course", "names", ",", "ordered", "by", "credits", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "course", "name" ], [ "," ], [ "ordered" ], [ "by" ], [ "credit" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "course", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "credit", "NN" ], [ "?", "." ] ], "values": [ "James", "Ames" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(20) T(4) Order(1) A(0) C(21) T(4)" }, { "db_id": "college_3", "query": "SELECT Fname FROM STUDENT ORDER BY Age DESC", "query_toks": [ "SELECT", "Fname", "FROM", "STUDENT", "ORDER", "BY", "Age", "DESC" ], "query_toks_no_value": [ "select", "fname", "from", "student", "order", "by", "age", "desc" ], "question": "Find the first name of students in the descending order of age.", "question_toks": [ "find", "first", "name", "of", "student", "in", "descending", "order", "of", "age", "." ], "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, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "first", "name", "of", "students", "in", "the", "descending", "order", "of", "age", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "age", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(0) A(0) C(4) T(0)" }, { "db_id": "college_3", "query": "SELECT Fname FROM STUDENT ORDER BY Age DESC", "query_toks": [ "SELECT", "Fname", "FROM", "STUDENT", "ORDER", "BY", "Age", "DESC" ], "query_toks_no_value": [ "select", "fname", "from", "student", "order", "by", "age", "desc" ], "question": "What are the first names of students, ordered by age from greatest to least?", "question_toks": [ "what", "are", "first", "name", "of", "student", ",", "ordered", "by", "age", "from", "greatest", "to", "least", "?" ], "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, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "students", ",", "ordered", "by", "age", "from", "greatest", "to", "least", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "," ], [ "ordered" ], [ "by" ], [ "age" ], [ "from" ], [ "greatest" ], [ "to" ], [ "least" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "age", "NN" ], [ "from", "IN" ], [ "greatest", "JJS" ], [ "to", "TO" ], [ "least", "VB" ], [ "?", "." ] ], "values": [ "1", "James", "Ames" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(0) A(0) C(4) T(0)" }, { "db_id": "college_3", "query": "SELECT LName FROM STUDENT WHERE Sex = \"F\" ORDER BY Age DESC", "query_toks": [ "SELECT", "LName", "FROM", "STUDENT", "WHERE", "Sex", "=", "``", "F", "''", "ORDER", "BY", "Age", "DESC" ], "query_toks_no_value": [ "select", "lname", "from", "student", "where", "sex", "=", "value", "order", "by", "age", "desc" ], "question": "Find the last name of female (sex is F) students in the descending order of age.", "question_toks": [ "find", "last", "name", "of", "female", "(", "sex", "is", "f", ")", "student", "in", "descending", "order", "of", "age", "." ], "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": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "last", "name", "of", "female", "(", "sex", "is", "F", ")", "students", "in", "the", "descending", "order", "of", "age", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "of" ], [ "female" ], [ "(" ], [ "sex" ], [ "is" ], [ "f" ], [ ")" ], [ "student" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "female", "NN" ], [ "(", "(" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "f", "VBN" ], [ ")", ")" ], [ "student", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "age", "NN" ], [ ".", "." ] ], "values": [ "F" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(5) T(0) V(0) Order(0) A(0) C(4) T(0)" }, { "db_id": "college_3", "query": "SELECT LName FROM STUDENT WHERE Sex = \"F\" ORDER BY Age DESC", "query_toks": [ "SELECT", "LName", "FROM", "STUDENT", "WHERE", "Sex", "=", "``", "F", "''", "ORDER", "BY", "Age", "DESC" ], "query_toks_no_value": [ "select", "lname", "from", "student", "where", "sex", "=", "value", "order", "by", "age", "desc" ], "question": "What are the last names of female students, ordered by age descending?", "question_toks": [ "what", "are", "last", "name", "of", "female", "student", ",", "ordered", "by", "age", "descending", "?" ], "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": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "last", "names", "of", "female", "students", ",", "ordered", "by", "age", "descending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "last", "name" ], [ "of" ], [ "female" ], [ "student" ], [ "," ], [ "ordered" ], [ "by" ], [ "age" ], [ "descending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "female", "JJ" ], [ "student", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "age", "NN" ], [ "descending", "NN" ], [ "?", "." ] ], "values": [ "James", "Ames", "F" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(5) T(0) V(2) Order(0) A(0) C(4) T(0)" }, { "db_id": "college_3", "query": "SELECT Lname FROM FACULTY WHERE Building = \"Barton\" ORDER BY Lname", "query_toks": [ "SELECT", "Lname", "FROM", "FACULTY", "WHERE", "Building", "=", "``", "Barton", "''", "ORDER", "BY", "Lname" ], "query_toks_no_value": [ "select", "lname", "from", "faculty", "where", "building", "=", "value", "order", "by", "lname" ], "question": "Find the last names of faculties in building Barton in alphabetic order.", "question_toks": [ "find", "last", "name", "of", "faculty", "in", "building", "barton", "in", "alphabetic", "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": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Barton\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "last", "names", "of", "faculties", "in", "building", "Barton", "in", "alphabetic", "order", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "of" ], [ "faculty" ], [ "in" ], [ "building" ], [ "barton" ], [ "in" ], [ "alphabetic" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "in", "IN" ], [ "building", "VBG" ], [ "barton", "NN" ], [ "in", "IN" ], [ "alphabetic", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "James", "Ames", "Barton" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(13) T(1) V(2) Order(1) A(0) C(2) T(1)" }, { "db_id": "college_3", "query": "SELECT Lname FROM FACULTY WHERE Building = \"Barton\" ORDER BY Lname", "query_toks": [ "SELECT", "Lname", "FROM", "FACULTY", "WHERE", "Building", "=", "``", "Barton", "''", "ORDER", "BY", "Lname" ], "query_toks_no_value": [ "select", "lname", "from", "faculty", "where", "building", "=", "value", "order", "by", "lname" ], "question": "What are the last names of faculty in building Barton, sorted by last name?", "question_toks": [ "what", "are", "last", "name", "of", "faculty", "in", "building", "barton", ",", "sorted", "by", "last", "name", "?" ], "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": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Barton\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "last", "names", "of", "faculty", "in", "building", "Barton", ",", "sorted", "by", "last", "name", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "last", "name" ], [ "of" ], [ "faculty" ], [ "in" ], [ "building" ], [ "barton" ], [ "," ], [ "sorted" ], [ "by" ], [ "last", "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "in", "IN" ], [ "building", "VBG" ], [ "barton", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "James", "Ames", "Barton" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(13) T(1) V(2) Order(1) A(0) C(2) T(1)" }, { "db_id": "college_3", "query": "SELECT Fname FROM FACULTY WHERE Rank = \"Professor\" ORDER BY Fname", "query_toks": [ "SELECT", "Fname", "FROM", "FACULTY", "WHERE", "Rank", "=", "``", "Professor", "''", "ORDER", "BY", "Fname" ], "query_toks_no_value": [ "select", "fname", "from", "faculty", "where", "rank", "=", "value", "order", "by", "fname" ], "question": "Find the first names of faculties of rank Professor in alphabetic order.", "question_toks": [ "find", "first", "name", "of", "faculty", "of", "rank", "professor", "in", "alphabetic", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Professor\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "first", "names", "of", "faculties", "of", "rank", "Professor", "in", "alphabetic", "order", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "faculty" ], [ "of" ], [ "rank" ], [ "professor" ], [ "in" ], [ "alphabetic" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "of", "IN" ], [ "rank", "NN" ], [ "professor", "NN" ], [ "in", "IN" ], [ "alphabetic", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "1", "Frank", "James", "Ames", "Professor" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(10) T(1) V(4) Order(1) A(0) C(3) T(1)" }, { "db_id": "college_3", "query": "SELECT Fname FROM FACULTY WHERE Rank = \"Professor\" ORDER BY Fname", "query_toks": [ "SELECT", "Fname", "FROM", "FACULTY", "WHERE", "Rank", "=", "``", "Professor", "''", "ORDER", "BY", "Fname" ], "query_toks_no_value": [ "select", "fname", "from", "faculty", "where", "rank", "=", "value", "order", "by", "fname" ], "question": "What are the first names for all faculty professors, ordered by first name?", "question_toks": [ "what", "are", "first", "name", "for", "all", "faculty", "professor", ",", "ordered", "by", "first", "name", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Professor\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "for", "all", "faculty", "professors", ",", "ordered", "by", "first", "name", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "for" ], [ "all" ], [ "faculty" ], [ "professor" ], [ "," ], [ "ordered" ], [ "by" ], [ "first", "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "faculty", "NN" ], [ "professor", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "1", "James", "Ames", "Professor" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(10) T(1) V(3) Order(1) A(0) C(3) T(1)" }, { "db_id": "college_3", "query": "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.DName", "FROM", "DEPARTMENT", "AS", "T1", "JOIN", "MINOR_IN", "AS", "T2", "ON", "T1.DNO", "=", "T2.DNO", "GROUP", "BY", "T2.DNO", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "dname", "from", "department", "as", "t1", "join", "minor_in", "as", "t2", "on", "t1", ".", "dno", "=", "t2", ".", "dno", "group", "by", "t2", ".", "dno", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name of the department that has the biggest number of students minored in?", "question_toks": [ "find", "name", "of", "department", "that", "ha", "biggest", "number", "of", "student", "minored", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 34, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 34, 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, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "department", "that", "has", "the", "biggest", "number", "of", "students", "minored", "in", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "department" ], [ "that" ], [ "ha" ], [ "biggest" ], [ "number" ], [ "of" ], [ "student" ], [ "minored" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "biggest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "minored", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(16) T(2) Sup(0) A(3) C(0) T(5) Filter(18) A(0) C(14) T(2) Root(5) Sel(0) N(0) A(0) C(14) T(5)" }, { "db_id": "college_3", "query": "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.DName", "FROM", "DEPARTMENT", "AS", "T1", "JOIN", "MINOR_IN", "AS", "T2", "ON", "T1.DNO", "=", "T2.DNO", "GROUP", "BY", "T2.DNO", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "dname", "from", "department", "as", "t1", "join", "minor_in", "as", "t2", "on", "t1", ".", "dno", "=", "t2", ".", "dno", "group", "by", "t2", ".", "dno", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the department with the most students minoring in it?", "question_toks": [ "what", "is", "name", "of", "department", "with", "most", "student", "minoring", "in", "it", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 34, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 34, 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, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "department", "with", "the", "most", "students", "minoring", "in", "it", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "department" ], [ "with" ], [ "most" ], [ "student" ], [ "minoring" ], [ "in" ], [ "it" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "student", "NN" ], [ "minoring", "VBG" ], [ "in", "IN" ], [ "it", "PRP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(16) T(2) Sup(0) A(3) C(0) T(5) Filter(18) A(0) C(14) T(2) Root(5) Sel(0) N(0) A(0) C(14) T(5)" }, { "db_id": "college_3", "query": "SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO", "query_toks": [ "SELECT", "DName", "FROM", "DEPARTMENT", "EXCEPT", "SELECT", "T1.DName", "FROM", "DEPARTMENT", "AS", "T1", "JOIN", "MINOR_IN", "AS", "T2", "ON", "T1.DNO", "=", "T2.DNO" ], "query_toks_no_value": [ "select", "dname", "from", "department", "except", "select", "t1", ".", "dname", "from", "department", "as", "t1", "join", "minor_in", "as", "t2", "on", "t1", ".", "dno", "=", "t2", ".", "dno" ], "question": "Find the name of the department that has no students minored in?", "question_toks": [ "find", "name", "of", "department", "that", "ha", "no", "student", "minored", "in", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 34, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "department", "that", "has", "no", "students", "minored", "in", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "department" ], [ "that" ], [ "ha" ], [ "no" ], [ "student" ], [ "minored" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "no", "DT" ], [ "student", "NN" ], [ "minored", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(16) T(2) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(18) A(0) C(14) T(2) Root(5) Sel(0) N(0) A(0) C(14) T(5)" }, { "db_id": "college_3", "query": "SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO", "query_toks": [ "SELECT", "DName", "FROM", "DEPARTMENT", "EXCEPT", "SELECT", "T1.DName", "FROM", "DEPARTMENT", "AS", "T1", "JOIN", "MINOR_IN", "AS", "T2", "ON", "T1.DNO", "=", "T2.DNO" ], "query_toks_no_value": [ "select", "dname", "from", "department", "except", "select", "t1", ".", "dname", "from", "department", "as", "t1", "join", "minor_in", "as", "t2", "on", "t1", ".", "dno", "=", "t2", ".", "dno" ], "question": "What is the name of the department htat has no students minoring in it?", "question_toks": [ "what", "is", "name", "of", "department", "htat", "ha", "no", "student", "minoring", "in", "it", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 34, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "department", "htat", "has", "no", "students", "minoring", "in", "it", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "department" ], [ "htat" ], [ "ha" ], [ "no" ], [ "student" ], [ "minoring" ], [ "in" ], [ "it" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "htat", "NN" ], [ "ha", "VBZ" ], [ "no", "DT" ], [ "student", "NN" ], [ "minoring", "VBG" ], [ "in", "IN" ], [ "it", "PRP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(16) T(2) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(18) A(0) C(14) T(2) Root(5) Sel(0) N(0) A(0) C(14) T(5)" }, { "db_id": "college_3", "query": "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.DName", "FROM", "DEPARTMENT", "AS", "T1", "JOIN", "MEMBER_OF", "AS", "T2", "ON", "T1.DNO", "=", "T2.DNO", "GROUP", "BY", "T2.DNO", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "dname", "from", "department", "as", "t1", "join", "member_of", "as", "t2", "on", "t1", ".", "dno", "=", "t2", ".", "dno", "group", "by", "t2", ".", "dno", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Find the name of the department that has the fewest members.", "question_toks": [ "find", "name", "of", "department", "that", "ha", "fewest", "member", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "department", "that", "has", "the", "fewest", "members", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "department" ], [ "that" ], [ "ha" ], [ "fewest" ], [ "member" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "that", "IN" ], [ "ha", "JJ" ], [ "fewest", "JJ" ], [ "member", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(16) T(2) Sup(1) A(3) C(0) T(3) Filter(18) A(0) C(14) T(2) Root(5) Sel(0) N(0) A(0) C(14) T(3)" }, { "db_id": "college_3", "query": "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.DName", "FROM", "DEPARTMENT", "AS", "T1", "JOIN", "MEMBER_OF", "AS", "T2", "ON", "T1.DNO", "=", "T2.DNO", "GROUP", "BY", "T2.DNO", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "dname", "from", "department", "as", "t1", "join", "member_of", "as", "t2", "on", "t1", ".", "dno", "=", "t2", ".", "dno", "group", "by", "t2", ".", "dno", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "What is the name of the department with the fewest members?", "question_toks": [ "what", "is", "name", "of", "department", "with", "fewest", "member", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "department", "with", "the", "fewest", "members", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "department" ], [ "with" ], [ "fewest" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "fewest", "JJ" ], [ "member", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(16) T(2) Sup(1) A(3) C(0) T(3) Filter(18) A(0) C(14) T(2) Root(5) Sel(0) N(0) A(0) C(14) T(3)" }, { "db_id": "college_3", "query": "SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "Rank", "FROM", "FACULTY", "GROUP", "BY", "Rank", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "rank", "from", "faculty", "group", "by", "rank", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Find the rank of the faculty that the fewest faculties belong to.", "question_toks": [ "find", "rank", "of", "faculty", "that", "fewest", "faculty", "belong", "to", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "rank", "of", "the", "faculty", "that", "the", "fewest", "faculties", "belong", "to", "." ], "question_arg": [ [ "find" ], [ "rank" ], [ "of" ], [ "faculty" ], [ "that" ], [ "fewest" ], [ "faculty" ], [ "belong" ], [ "to" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "rank", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "that", "IN" ], [ "fewest", "JJS" ], [ "faculty", "NN" ], [ "belong", "NN" ], [ "to", "TO" ], [ ".", "." ] ], "values": [ "Frank" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(1) Sup(1) A(3) C(0) T(1)" }, { "db_id": "college_3", "query": "SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "Rank", "FROM", "FACULTY", "GROUP", "BY", "Rank", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "rank", "from", "faculty", "group", "by", "rank", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "What is the least common faculty rank?", "question_toks": [ "what", "is", "least", "common", "faculty", "rank", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "is", "the", "least", "common", "faculty", "rank", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "least" ], [ "common" ], [ "faculty" ], [ "rank" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "least", "JJ" ], [ "common", "JJ" ], [ "faculty", "NN" ], [ "rank", "NN" ], [ "?", "." ] ], "values": [ "Frank" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(1) Sup(1) A(3) C(0) T(1)" }, { "db_id": "college_3", "query": "SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "T2.Fname", ",", "T2.Lname", "FROM", "COURSE", "AS", "T1", "JOIN", "FACULTY", "AS", "T2", "ON", "T1.Instructor", "=", "T2.FacID", "GROUP", "BY", "T1.Instructor", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t2", ".", "fname", ",", "t2", ".", "lname", "from", "course", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "instructor", "=", "t2", ".", "facid", "group", "by", "t1", ".", "instructor", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the first and last names of the instructors who teach the top 3 number of courses?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "instructor", "who", "teach", "top", "3", "number", "of", "course", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "of", "the", "instructors", "who", "teach", "the", "top", "3", "number", "of", "courses", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "instructor" ], [ "who" ], [ "teach" ], [ "top" ], [ "3" ], [ "number" ], [ "of" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "teach", "VBP" ], [ "top", "JJ" ], [ "3", "CD" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "1", "James", "Instructor", "3", "Ames" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(3) T(1) A(0) C(2) T(1) Sup(0) A(3) C(0) T(4) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(22) T(4)" }, { "db_id": "college_3", "query": "SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "T2.Fname", ",", "T2.Lname", "FROM", "COURSE", "AS", "T1", "JOIN", "FACULTY", "AS", "T2", "ON", "T1.Instructor", "=", "T2.FacID", "GROUP", "BY", "T1.Instructor", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t2", ".", "fname", ",", "t2", ".", "lname", "from", "course", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "instructor", "=", "t2", ".", "facid", "group", "by", "t1", ".", "instructor", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the full names of the 3 instructors who teach the most courses?", "question_toks": [ "what", "are", "full", "name", "of", "3", "instructor", "who", "teach", "most", "course", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "full", "names", "of", "the", "3", "instructors", "who", "teach", "the", "most", "courses", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "of" ], [ "3" ], [ "instructor" ], [ "who" ], [ "teach" ], [ "most" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "3", "CD" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "teach", "VBP" ], [ "most", "RBS" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "Instructor", "3", "Ames", "James" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(3) T(1) A(0) C(2) T(1) Sup(0) A(3) C(0) T(4) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(22) T(4)" }, { "db_id": "college_3", "query": "SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Building", "FROM", "COURSE", "AS", "T1", "JOIN", "FACULTY", "AS", "T2", "ON", "T1.Instructor", "=", "T2.FacID", "GROUP", "BY", "T1.Instructor", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "building", "from", "course", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "instructor", "=", "t2", ".", "facid", "group", "by", "t1", ".", "instructor", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which building does the instructor who teaches the most number of courses live in?", "question_toks": [ "which", "building", "doe", "instructor", "who", "teach", "most", "number", "of", "course", "live", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Which", "building", "does", "the", "instructor", "who", "teaches", "the", "most", "number", "of", "courses", "live", "in", "?" ], "question_arg": [ [ "which" ], [ "building" ], [ "doe" ], [ "instructor" ], [ "who" ], [ "teach" ], [ "most" ], [ "number" ], [ "of" ], [ "course" ], [ "live" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "building", "NN" ], [ "doe", "NN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "teach", "VBZ" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "live", "VBP" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "Instructor" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(13) T(1) Sup(0) A(3) C(0) T(4) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(22) T(4)" }, { "db_id": "college_3", "query": "SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Building", "FROM", "COURSE", "AS", "T1", "JOIN", "FACULTY", "AS", "T2", "ON", "T1.Instructor", "=", "T2.FacID", "GROUP", "BY", "T1.Instructor", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "building", "from", "course", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "instructor", "=", "t2", ".", "facid", "group", "by", "t1", ".", "instructor", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Give the building that the instructor who teaches the greatest number of courses lives in.", "question_toks": [ "give", "building", "that", "instructor", "who", "teach", "greatest", "number", "of", "course", "life", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Give", "the", "building", "that", "the", "instructor", "who", "teaches", "the", "greatest", "number", "of", "courses", "lives", "in", "." ], "question_arg": [ [ "give" ], [ "building" ], [ "that" ], [ "instructor" ], [ "who" ], [ "teach" ], [ "greatest" ], [ "number" ], [ "of" ], [ "course" ], [ "life" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "building", "NN" ], [ "that", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "teach", "VBP" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "life", "NN" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "Instructor" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(13) T(1) Sup(0) A(3) C(0) T(4) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(22) T(4)" }, { "db_id": "college_3", "query": "SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT(*) >= 5", "query_toks": [ "SELECT", "T1.CName", "FROM", "COURSE", "AS", "T1", "JOIN", "ENROLLED_IN", "AS", "T2", "ON", "T1.CID", "=", "T2.CID", "GROUP", "BY", "T2.CID", "HAVING", "COUNT", "(", "*", ")", ">", "=", "5" ], "query_toks_no_value": [ "select", "t1", ".", "cname", "from", "course", "as", "t1", "join", "enrolled_in", "as", "t2", "on", "t1", ".", "cid", "=", "t2", ".", "cid", "group", "by", "t2", ".", "cid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the name of courses that have at least five enrollments?", "question_toks": [ "what", "are", "name", "of", "course", "that", "have", "at", "least", "five", "enrollment", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 36, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 36, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 5.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 26, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "name", "of", "courses", "that", "have", "at", "least", "five", "enrollments", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "course" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "five" ], [ "enrollment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "five", "CD" ], [ "enrollment", "NN" ], [ "?", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(20) T(4) Filter(0) Filter(18) A(0) C(19) T(4) Root(5) Sel(0) N(0) A(0) C(19) T(6) Filter(7) A(3) C(0) T(6) V(0)" }, { "db_id": "college_3", "query": "SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT(*) >= 5", "query_toks": [ "SELECT", "T1.CName", "FROM", "COURSE", "AS", "T1", "JOIN", "ENROLLED_IN", "AS", "T2", "ON", "T1.CID", "=", "T2.CID", "GROUP", "BY", "T2.CID", "HAVING", "COUNT", "(", "*", ")", ">", "=", "5" ], "query_toks_no_value": [ "select", "t1", ".", "cname", "from", "course", "as", "t1", "join", "enrolled_in", "as", "t2", "on", "t1", ".", "cid", "=", "t2", ".", "cid", "group", "by", "t2", ".", "cid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Give the names of the courses with at least five enrollments.", "question_toks": [ "give", "name", "of", "course", "with", "at", "least", "five", "enrollment", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 36, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 36, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 5.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 26, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Give", "the", "names", "of", "the", "courses", "with", "at", "least", "five", "enrollments", "." ], "question_arg": [ [ "give" ], [ "name" ], [ "of" ], [ "course" ], [ "with" ], [ "at" ], [ "least" ], [ "five" ], [ "enrollment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "five", "CD" ], [ "enrollment", "NN" ], [ ".", "." ] ], "values": [ "5", "James", "Ames" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(20) T(4) Filter(0) Filter(18) A(0) C(19) T(4) Root(5) Sel(0) N(0) A(0) C(19) T(6) Filter(7) A(3) C(0) T(6) V(0)" }, { "db_id": "college_3", "query": "SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID WHERE T1.CName = \"COMPUTER LITERACY\"", "query_toks": [ "SELECT", "T2.Fname", ",", "T2.Lname", "FROM", "COURSE", "AS", "T1", "JOIN", "FACULTY", "AS", "T2", "ON", "T1.Instructor", "=", "T2.FacID", "WHERE", "T1.CName", "=", "``", "COMPUTER", "LITERACY", "''" ], "query_toks_no_value": [ "select", "t2", ".", "fname", ",", "t2", ".", "lname", "from", "course", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "instructor", "=", "t2", ".", "facid", "where", "t1", ".", "cname", "=", "value" ], "question": "Find the first name and last name of the instructor of course that has course name", "question_toks": [ "find", "first", "name", "and", "last", "name", "of", "instructor", "of", "course", "that", "ha", "course", "name" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 9, 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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"COMPUTER LITERACY\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "first", "name", "and", "last", "name", "of", "the", "instructor", "of", "course", "that", "has", "course", "name" ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "instructor" ], [ "of" ], [ "course" ], [ "that" ], [ "ha" ], [ "course", "name" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "course", "NN" ], [ "name", "NN" ] ], "values": [ "1", "Instructor", "COMPUTER LITERACY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(0) C(2) T(1) Filter(2) A(0) C(20) T(4) V(2)" }, { "db_id": "college_3", "query": "SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID WHERE T1.CName = \"COMPUTER LITERACY\"", "query_toks": [ "SELECT", "T2.Fname", ",", "T2.Lname", "FROM", "COURSE", "AS", "T1", "JOIN", "FACULTY", "AS", "T2", "ON", "T1.Instructor", "=", "T2.FacID", "WHERE", "T1.CName", "=", "``", "COMPUTER", "LITERACY", "''" ], "query_toks_no_value": [ "select", "t2", ".", "fname", ",", "t2", ".", "lname", "from", "course", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "instructor", "=", "t2", ".", "facid", "where", "t1", ".", "cname", "=", "value" ], "question": "What is the full name of the instructor who has a course named COMPUTER LITERACY?", "question_toks": [ "what", "is", "full", "name", "of", "instructor", "who", "ha", "a", "course", "named", "computer", "literacy", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 9, 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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"COMPUTER LITERACY\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "is", "the", "full", "name", "of", "the", "instructor", "who", "has", "a", "course", "named", "COMPUTER", "LITERACY", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "full" ], [ "name" ], [ "of" ], [ "instructor" ], [ "who" ], [ "ha" ], [ "a" ], [ "course" ], [ "named" ], [ "computer" ], [ "literacy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "a", "DT" ], [ "course", "NN" ], [ "named", "VBN" ], [ "computer", "NN" ], [ "literacy", "NN" ], [ "?", "." ] ], "values": [ "COMPUTER LITERACY", "Instructor" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(0) C(2) T(1) Filter(2) A(0) C(20) T(4) V(0)" }, { "db_id": "college_3", "query": "SELECT T2.Dname , T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = \"INTRODUCTION TO COMPUTER SCIENCE\"", "query_toks": [ "SELECT", "T2.Dname", ",", "T2.Room", "FROM", "COURSE", "AS", "T1", "JOIN", "DEPARTMENT", "AS", "T2", "ON", "T1.DNO", "=", "T2.DNO", "WHERE", "T1.CName", "=", "``", "INTRODUCTION", "TO", "COMPUTER", "SCIENCE", "''" ], "query_toks_no_value": [ "select", "t2", ".", "dname", ",", "t2", ".", "room", "from", "course", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dno", "=", "t2", ".", "dno", "where", "t1", ".", "cname", "=", "value" ], "question": "Find the department name and room of the course INTRODUCTION TO COMPUTER SCIENCE.", "question_toks": [ "find", "department", "name", "and", "room", "of", "course", "introduction", "to", "computer", "science", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "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, 27, false ], null ], "\"INTRODUCTION TO COMPUTER SCIENCE\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "department", "name", "and", "room", "of", "the", "course", "INTRODUCTION", "TO", "COMPUTER", "SCIENCE", "." ], "question_arg": [ [ "find" ], [ "department", "name" ], [ "and" ], [ "room" ], [ "of" ], [ "course" ], [ "introduction" ], [ "to" ], [ "computer" ], [ "science" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "department", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "room", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "introduction", "NN" ], [ "to", "TO" ], [ "computer", "NN" ], [ "science", "NN" ], [ ".", "." ] ], "values": [ "Computer Science", "INTRODUCTION TO COMPUTER SCIENCE" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(2) A(0) C(12) T(2) Filter(2) A(0) C(20) T(4) V(1)" }, { "db_id": "college_3", "query": "SELECT T2.Dname , T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = \"INTRODUCTION TO COMPUTER SCIENCE\"", "query_toks": [ "SELECT", "T2.Dname", ",", "T2.Room", "FROM", "COURSE", "AS", "T1", "JOIN", "DEPARTMENT", "AS", "T2", "ON", "T1.DNO", "=", "T2.DNO", "WHERE", "T1.CName", "=", "``", "INTRODUCTION", "TO", "COMPUTER", "SCIENCE", "''" ], "query_toks_no_value": [ "select", "t2", ".", "dname", ",", "t2", ".", "room", "from", "course", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dno", "=", "t2", ".", "dno", "where", "t1", ".", "cname", "=", "value" ], "question": "What are the department name and room for the course INTRODUCTION TO COMPUTER SCIENCE?", "question_toks": [ "what", "are", "department", "name", "and", "room", "for", "course", "introduction", "to", "computer", "science", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "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, 27, false ], null ], "\"INTRODUCTION TO COMPUTER SCIENCE\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "department", "name", "and", "room", "for", "the", "course", "INTRODUCTION", "TO", "COMPUTER", "SCIENCE", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "department", "name" ], [ "and" ], [ "room" ], [ "for" ], [ "course" ], [ "introduction" ], [ "to" ], [ "computer" ], [ "science" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "department", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "room", "NN" ], [ "for", "IN" ], [ "course", "NN" ], [ "introduction", "NN" ], [ "to", "TO" ], [ "computer", "NN" ], [ "science", "NN" ], [ "?", "." ] ], "values": [ "Computer Science", "INTRODUCTION TO COMPUTER SCIENCE" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(2) A(0) C(12) T(2) Filter(2) A(0) C(20) T(4) V(1)" }, { "db_id": "college_3", "query": "SELECT T3.Fname , T3.LName , T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID", "query_toks": [ "SELECT", "T3.Fname", ",", "T3.LName", ",", "T2.gradepoint", "FROM", "ENROLLED_IN", "AS", "T1", "JOIN", "GRADECONVERSION", "AS", "T2", "JOIN", "STUDENT", "AS", "T3", "ON", "T1.Grade", "=", "T2.lettergrade", "AND", "T1.StuID", "=", "T3.StuID" ], "query_toks_no_value": [ "select", "t3", ".", "fname", ",", "t3", ".", "lname", ",", "t2", ".", "gradepoint", "from", "enrolled_in", "as", "t1", "join", "gradeconversion", "as", "t2", "join", "student", "as", "t3", "on", "t1", ".", "grade", "=", "t2", ".", "lettergrade", "and", "t1", ".", "stuid", "=", "t3", ".", "stuid" ], "question": "Find the student first and last names and grade points of all enrollments.", "question_toks": [ "find", "student", "first", "and", "last", "name", "and", "grade", "point", "of", "all", "enrollment", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 38, false ], null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ], [ "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, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 38, 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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "student", "first", "and", "last", "names", "and", "grade", "points", "of", "all", "enrollments", "." ], "question_arg": [ [ "find" ], [ "student" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "and" ], [ "grade", "point" ], [ "of" ], [ "all" ], [ "enrollment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "student", "NN" ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "grade", "JJ" ], [ "point", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "enrollment", "NN" ], [ ".", "." ] ], "values": [ "1", "James", "Ames" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(3) T(0) A(0) C(2) T(0) A(0) C(27) T(7) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(6) Filter(18) A(0) C(26) T(7) Root(5) Sel(0) N(0) A(0) C(25) T(6)" }, { "db_id": "college_3", "query": "SELECT T3.Fname , T3.LName , T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID", "query_toks": [ "SELECT", "T3.Fname", ",", "T3.LName", ",", "T2.gradepoint", "FROM", "ENROLLED_IN", "AS", "T1", "JOIN", "GRADECONVERSION", "AS", "T2", "JOIN", "STUDENT", "AS", "T3", "ON", "T1.Grade", "=", "T2.lettergrade", "AND", "T1.StuID", "=", "T3.StuID" ], "query_toks_no_value": [ "select", "t3", ".", "fname", ",", "t3", ".", "lname", ",", "t2", ".", "gradepoint", "from", "enrolled_in", "as", "t1", "join", "gradeconversion", "as", "t2", "join", "student", "as", "t3", "on", "t1", ".", "grade", "=", "t2", ".", "lettergrade", "and", "t1", ".", "stuid", "=", "t3", ".", "stuid" ], "question": "What are the full names and gradepoints for all enrollments?", "question_toks": [ "what", "are", "full", "name", "and", "gradepoints", "for", "all", "enrollment", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 38, false ], null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ], [ "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, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 38, 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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "full", "names", "and", "gradepoints", "for", "all", "enrollments", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "and" ], [ "gradepoints" ], [ "for" ], [ "all" ], [ "enrollment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "gradepoints", "NNS" ], [ "for", "IN" ], [ "all", "DT" ], [ "enrollment", "NN" ], [ "?", "." ] ], "values": [ "James", "Ames" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(3) T(0) A(0) C(2) T(0) A(0) C(27) T(7) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(6) Filter(18) A(0) C(26) T(7) Root(5) Sel(0) N(0) A(0) C(25) T(6)" }, { "db_id": "college_3", "query": "SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8", "query_toks": [ "SELECT", "DISTINCT", "T3.Fname", "FROM", "ENROLLED_IN", "AS", "T1", "JOIN", "GRADECONVERSION", "AS", "T2", "JOIN", "STUDENT", "AS", "T3", "ON", "T1.Grade", "=", "T2.lettergrade", "AND", "T1.StuID", "=", "T3.StuID", "WHERE", "T2.gradepoint", ">", "=", "3.8" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "fname", "from", "enrolled_in", "as", "t1", "join", "gradeconversion", "as", "t2", "join", "student", "as", "t3", "on", "t1", ".", "grade", "=", "t2", ".", "lettergrade", "and", "t1", ".", "stuid", "=", "t3", ".", "stuid", "where", "t2", ".", "gradepoint", ">", "=", "value" ], "question": "Find the distinct student first names of all students that have grade point at least 3.8 in one course.", "question_toks": [ "find", "distinct", "student", "first", "name", "of", "all", "student", "that", "have", "grade", "point", "at", "least", "3.8", "in", "one", "course", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 38, false ], null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ], [ "table_unit", 0 ] ] }, "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, 35, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 38, 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 ], "and", [ false, 5, [ 0, [ 0, 39, false ], null ], 3.8, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "distinct", "student", "first", "names", "of", "all", "students", "that", "have", "grade", "point", "at", "least", "3.8", "in", "one", "course", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "student" ], [ "first", "name" ], [ "of" ], [ "all" ], [ "student" ], [ "that" ], [ "have" ], [ "grade", "point" ], [ "at" ], [ "least" ], [ "3.8" ], [ "in" ], [ "one" ], [ "course" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "student", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "grade", "VBN" ], [ "point", "NN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "3.8", "CD" ], [ "in", "IN" ], [ "one", "CD" ], [ "course", "NN" ], [ ".", "." ] ], "values": [ "1", "James", "Ames", "3.8" ], "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(6) Filter(0) Filter(18) A(0) C(26) T(7) Root(5) Sel(0) N(0) A(0) C(25) T(6) Filter(7) A(0) C(27) T(7) V(3)" }, { "db_id": "college_3", "query": "SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8", "query_toks": [ "SELECT", "DISTINCT", "T3.Fname", "FROM", "ENROLLED_IN", "AS", "T1", "JOIN", "GRADECONVERSION", "AS", "T2", "JOIN", "STUDENT", "AS", "T3", "ON", "T1.Grade", "=", "T2.lettergrade", "AND", "T1.StuID", "=", "T3.StuID", "WHERE", "T2.gradepoint", ">", "=", "3.8" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "fname", "from", "enrolled_in", "as", "t1", "join", "gradeconversion", "as", "t2", "join", "student", "as", "t3", "on", "t1", ".", "grade", "=", "t2", ".", "lettergrade", "and", "t1", ".", "stuid", "=", "t3", ".", "stuid", "where", "t2", ".", "gradepoint", ">", "=", "value" ], "question": "What are the distinct first names for students with a grade point of 3.8 or above in at least one course?", "question_toks": [ "what", "are", "distinct", "first", "name", "for", "student", "with", "a", "grade", "point", "of", "3.8", "or", "above", "in", "at", "least", "one", "course", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 38, false ], null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ], [ "table_unit", 0 ] ] }, "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, 35, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 38, 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 ], "and", [ false, 5, [ 0, [ 0, 39, false ], null ], 3.8, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "distinct", "first", "names", "for", "students", "with", "a", "grade", "point", "of", "3.8", "or", "above", "in", "at", "least", "one", "course", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "first", "name" ], [ "for" ], [ "student" ], [ "with" ], [ "a" ], [ "grade", "point" ], [ "of" ], [ "3.8" ], [ "or" ], [ "above" ], [ "in" ], [ "at" ], [ "least" ], [ "one" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "grade", "JJ" ], [ "point", "NN" ], [ "of", "IN" ], [ "3.8", "CD" ], [ "or", "CC" ], [ "above", "VB" ], [ "in", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "1", "James", "Ames", "3.8" ], "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(6) Filter(0) Filter(18) A(0) C(26) T(7) Root(5) Sel(0) N(0) A(0) C(25) T(6) Filter(7) A(0) C(27) T(7) V(3)" }, { "db_id": "college_3", "query": "SELECT T1.Fname , T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 520", "query_toks": [ "SELECT", "T1.Fname", ",", "T1.Lname", "FROM", "FACULTY", "AS", "T1", "JOIN", "MEMBER_OF", "AS", "T2", "ON", "T1.FacID", "=", "T2.FacID", "WHERE", "T2.DNO", "=", "520" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "member_of", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "where", "t2", ".", "dno", "=", "value" ], "question": "Find the full names of faculties who are members of department with department number 520.", "question_toks": [ "find", "full", "name", "of", "faculty", "who", "are", "member", "of", "department", "with", "department", "number", "520", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], 520.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "full", "names", "of", "faculties", "who", "are", "members", "of", "department", "with", "department", "number", "520", "." ], "question_arg": [ [ "find" ], [ "full" ], [ "name" ], [ "of" ], [ "faculty" ], [ "who" ], [ "are" ], [ "member", "of" ], [ "department" ], [ "with" ], [ "department", "number" ], [ "520" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "member", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "department", "NN" ], [ "number", "NN" ], [ "520", "CD" ], [ ".", "." ] ], "values": [ "520", "James", "Ames" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(0) C(2) T(1) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "college_3", "query": "SELECT T1.Fname , T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 520", "query_toks": [ "SELECT", "T1.Fname", ",", "T1.Lname", "FROM", "FACULTY", "AS", "T1", "JOIN", "MEMBER_OF", "AS", "T2", "ON", "T1.FacID", "=", "T2.FacID", "WHERE", "T2.DNO", "=", "520" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "member_of", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "where", "t2", ".", "dno", "=", "value" ], "question": "What are the full names of faculty members who are a part of department 520?", "question_toks": [ "what", "are", "full", "name", "of", "faculty", "member", "who", "are", "a", "part", "of", "department", "520", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], 520.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "full", "names", "of", "faculty", "members", "who", "are", "a", "part", "of", "department", "520", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "of" ], [ "faculty" ], [ "member" ], [ "who" ], [ "are" ], [ "a" ], [ "part" ], [ "of" ], [ "department" ], [ "520" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "a", "DT" ], [ "part", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "520", "CD" ], [ "?", "." ] ], "values": [ "520", "James", "Ames" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(0) C(2) T(1) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "college_3", "query": "SELECT T2.Fname , T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140", "query_toks": [ "SELECT", "T2.Fname", ",", "T2.Lname", "FROM", "MINOR_IN", "AS", "T1", "JOIN", "STUDENT", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T1.DNO", "=", "140" ], "query_toks_no_value": [ "select", "t2", ".", "fname", ",", "t2", ".", "lname", "from", "minor_in", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "dno", "=", "value" ], "question": "What are the first names and last names of the students that minor in the department with DNO 140.", "question_toks": [ "what", "are", "first", "name", "and", "last", "name", "of", "student", "that", "minor", "in", "department", "with", "dno", "140", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 34, false ], null ], 140.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "and", "last", "names", "of", "the", "students", "that", "minor", "in", "the", "department", "with", "DNO", "140", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "that" ], [ "minor", "in" ], [ "department" ], [ "with" ], [ "dno" ], [ "140" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "that", "WDT" ], [ "minor", "VBZ" ], [ "in", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "dno", "JJ" ], [ "140", "CD" ], [ ".", "." ] ], "values": [ "140", "1", "James", "Ames" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(2) A(0) C(14) T(5) V(0)" }, { "db_id": "college_3", "query": "SELECT T2.Fname , T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140", "query_toks": [ "SELECT", "T2.Fname", ",", "T2.Lname", "FROM", "MINOR_IN", "AS", "T1", "JOIN", "STUDENT", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T1.DNO", "=", "140" ], "query_toks_no_value": [ "select", "t2", ".", "fname", ",", "t2", ".", "lname", "from", "minor_in", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "dno", "=", "value" ], "question": "What are the full names of students minoring in department 140?", "question_toks": [ "what", "are", "full", "name", "of", "student", "minoring", "in", "department", "140", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 34, false ], null ], 140.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "full", "names", "of", "students", "minoring", "in", "department", "140", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "of" ], [ "student" ], [ "minoring" ], [ "in" ], [ "department" ], [ "140" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "minoring", "VBG" ], [ "in", "IN" ], [ "department", "NN" ], [ "140", "CD" ], [ "?", "." ] ], "values": [ "140", "James", "Ames" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(2) A(0) C(14) T(5) V(0)" }, { "db_id": "college_3", "query": "SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = \"Computer Science\"", "query_toks": [ "SELECT", "T2.Lname", "FROM", "DEPARTMENT", "AS", "T1", "JOIN", "FACULTY", "AS", "T2", "ON", "T1.DNO", "=", "T3.DNO", "JOIN", "MEMBER_OF", "AS", "T3", "ON", "T2.FacID", "=", "T3.FacID", "WHERE", "T1.DName", "=", "``", "Computer", "Science", "''" ], "query_toks_no_value": [ "select", "t2", ".", "lname", "from", "department", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "dno", "=", "t3", ".", "dno", "join", "member_of", "as", "t3", "on", "t2", ".", "facid", "=", "t3", ".", "facid", "where", "t1", ".", "dname", "=", "value" ], "question": "Find the last names of faculties who are members of computer science department.", "question_toks": [ "find", "last", "name", "of", "faculty", "who", "are", "member", "of", "computer", "science", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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, 19, false ], null ], "\"Computer Science\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "last", "names", "of", "faculties", "who", "are", "members", "of", "computer", "science", "department", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "of" ], [ "faculty" ], [ "who" ], [ "are" ], [ "member", "of" ], [ "computer" ], [ "science" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "member", "NN" ], [ "of", "IN" ], [ "computer", "NN" ], [ "science", "NN" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "Computer Science", "James", "Ames" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(16) T(2) V(0)" }, { "db_id": "college_3", "query": "SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = \"Computer Science\"", "query_toks": [ "SELECT", "T2.Lname", "FROM", "DEPARTMENT", "AS", "T1", "JOIN", "FACULTY", "AS", "T2", "ON", "T1.DNO", "=", "T3.DNO", "JOIN", "MEMBER_OF", "AS", "T3", "ON", "T2.FacID", "=", "T3.FacID", "WHERE", "T1.DName", "=", "``", "Computer", "Science", "''" ], "query_toks_no_value": [ "select", "t2", ".", "lname", "from", "department", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "dno", "=", "t3", ".", "dno", "join", "member_of", "as", "t3", "on", "t2", ".", "facid", "=", "t3", ".", "facid", "where", "t1", ".", "dname", "=", "value" ], "question": "What are the last names of faculty who are part of the computer science department?", "question_toks": [ "what", "are", "last", "name", "of", "faculty", "who", "are", "part", "of", "computer", "science", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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, 19, false ], null ], "\"Computer Science\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "last", "names", "of", "faculty", "who", "are", "part", "of", "the", "computer", "science", "department", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "last", "name" ], [ "of" ], [ "faculty" ], [ "who" ], [ "are" ], [ "part" ], [ "of" ], [ "computer" ], [ "science" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "part", "NN" ], [ "of", "IN" ], [ "computer", "NN" ], [ "science", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Computer Science", "James", "Ames" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(16) T(2) V(0)" }, { "db_id": "college_3", "query": "SELECT avg(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.LName = \"Smith\"", "query_toks": [ "SELECT", "avg", "(", "T2.gradepoint", ")", "FROM", "ENROLLED_IN", "AS", "T1", "JOIN", "GRADECONVERSION", "AS", "T2", "JOIN", "STUDENT", "AS", "T3", "ON", "T1.Grade", "=", "T2.lettergrade", "AND", "T1.StuID", "=", "T3.StuID", "WHERE", "T3.LName", "=", "``", "Smith", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "gradepoint", ")", "from", "enrolled_in", "as", "t1", "join", "gradeconversion", "as", "t2", "join", "student", "as", "t3", "on", "t1", ".", "grade", "=", "t2", ".", "lettergrade", "and", "t1", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "lname", "=", "value" ], "question": "Find the average grade point of student whose last name is Smith.", "question_toks": [ "find", "average", "grade", "point", "of", "student", "whose", "last", "name", "is", "smith", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 38, false ], null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 38, 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 ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Smith\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "average", "grade", "point", "of", "student", "whose", "last", "name", "is", "Smith", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "grade", "point" ], [ "of" ], [ "student" ], [ "whose" ], [ "last", "name" ], [ "is" ], [ "smith" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "grade", "JJ" ], [ "point", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "smith", "VBN" ], [ ".", "." ] ], "values": [ "Smith" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(27) T(7) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(6) Filter(0) Filter(18) A(0) C(26) T(7) Root(5) Sel(0) N(0) A(0) C(25) T(6) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "college_3", "query": "SELECT avg(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.LName = \"Smith\"", "query_toks": [ "SELECT", "avg", "(", "T2.gradepoint", ")", "FROM", "ENROLLED_IN", "AS", "T1", "JOIN", "GRADECONVERSION", "AS", "T2", "JOIN", "STUDENT", "AS", "T3", "ON", "T1.Grade", "=", "T2.lettergrade", "AND", "T1.StuID", "=", "T3.StuID", "WHERE", "T3.LName", "=", "``", "Smith", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "gradepoint", ")", "from", "enrolled_in", "as", "t1", "join", "gradeconversion", "as", "t2", "join", "student", "as", "t3", "on", "t1", ".", "grade", "=", "t2", ".", "lettergrade", "and", "t1", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "lname", "=", "value" ], "question": "What is the average gradepoint for students with the last name Smith?", "question_toks": [ "what", "is", "average", "gradepoint", "for", "student", "with", "last", "name", "smith", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 38, false ], null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 38, 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 ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Smith\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "gradepoint", "for", "students", "with", "the", "last", "name", "Smith", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "gradepoint" ], [ "for" ], [ "student" ], [ "with" ], [ "last", "name" ], [ "smith" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "gradepoint", "NN" ], [ "for", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "smith", "NN" ], [ "?", "." ] ], "values": [ "Smith" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(27) T(7) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(6) Filter(0) Filter(18) A(0) C(26) T(7) Root(5) Sel(0) N(0) A(0) C(25) T(6) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "college_3", "query": "SELECT max(T2.gradepoint) , min(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = \"NYC\"", "query_toks": [ "SELECT", "max", "(", "T2.gradepoint", ")", ",", "min", "(", "T2.gradepoint", ")", "FROM", "ENROLLED_IN", "AS", "T1", "JOIN", "GRADECONVERSION", "AS", "T2", "JOIN", "STUDENT", "AS", "T3", "ON", "T1.Grade", "=", "T2.lettergrade", "AND", "T1.StuID", "=", "T3.StuID", "WHERE", "T3.city_code", "=", "``", "NYC", "''" ], "query_toks_no_value": [ "select", "max", "(", "t2", ".", "gradepoint", ")", ",", "min", "(", "t2", ".", "gradepoint", ")", "from", "enrolled_in", "as", "t1", "join", "gradeconversion", "as", "t2", "join", "student", "as", "t3", "on", "t1", ".", "grade", "=", "t2", ".", "lettergrade", "and", "t1", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "city_code", "=", "value" ], "question": "What is the maximum and minimum grade point of students who live in NYC?", "question_toks": [ "what", "is", "maximum", "and", "minimum", "grade", "point", "of", "student", "who", "live", "in", "nyc", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 38, false ], null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 39, false ], null ] ], [ 2, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 38, 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 ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"NYC\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "is", "the", "maximum", "and", "minimum", "grade", "point", "of", "students", "who", "live", "in", "NYC", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "grade", "point" ], [ "of" ], [ "student" ], [ "who" ], [ "live" ], [ "in" ], [ "nyc" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "grade", "JJ" ], [ "point", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "live", "VBP" ], [ "in", "IN" ], [ "nyc", "NN" ], [ "?", "." ] ], "values": [ "NYC" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(27) T(7) A(2) C(27) T(7) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(6) Filter(0) Filter(18) A(0) C(26) T(7) Root(5) Sel(0) N(0) A(0) C(25) T(6) Filter(2) A(0) C(8) T(0) V(0)" }, { "db_id": "college_3", "query": "SELECT max(T2.gradepoint) , min(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = \"NYC\"", "query_toks": [ "SELECT", "max", "(", "T2.gradepoint", ")", ",", "min", "(", "T2.gradepoint", ")", "FROM", "ENROLLED_IN", "AS", "T1", "JOIN", "GRADECONVERSION", "AS", "T2", "JOIN", "STUDENT", "AS", "T3", "ON", "T1.Grade", "=", "T2.lettergrade", "AND", "T1.StuID", "=", "T3.StuID", "WHERE", "T3.city_code", "=", "``", "NYC", "''" ], "query_toks_no_value": [ "select", "max", "(", "t2", ".", "gradepoint", ")", ",", "min", "(", "t2", ".", "gradepoint", ")", "from", "enrolled_in", "as", "t1", "join", "gradeconversion", "as", "t2", "join", "student", "as", "t3", "on", "t1", ".", "grade", "=", "t2", ".", "lettergrade", "and", "t1", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "city_code", "=", "value" ], "question": "Give the maximum and minimum gradepoints for students living in NYC?", "question_toks": [ "give", "maximum", "and", "minimum", "gradepoints", "for", "student", "living", "in", "nyc", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 38, false ], null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 39, false ], null ] ], [ 2, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 38, 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 ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"NYC\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Give", "the", "maximum", "and", "minimum", "gradepoints", "for", "students", "living", "in", "NYC", "?" ], "question_arg": [ [ "give" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "gradepoints" ], [ "for" ], [ "student" ], [ "living" ], [ "in" ], [ "nyc" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "maximum", "NN" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "gradepoints", "NNS" ], [ "for", "IN" ], [ "student", "NN" ], [ "living", "NN" ], [ "in", "IN" ], [ "nyc", "NN" ], [ "?", "." ] ], "values": [ "NYC" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(27) T(7) A(2) C(27) T(7) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(6) Filter(0) Filter(18) A(0) C(26) T(7) Root(5) Sel(0) N(0) A(0) C(25) T(6) Filter(2) A(0) C(8) T(0) V(0)" }, { "db_id": "college_3", "query": "SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1 AND Hours = 4", "query_toks": [ "SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "3", "UNION", "SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "1", "AND", "Hours", "=", "4" ], "query_toks_no_value": [ "select", "cname", "from", "course", "where", "credits", "=", "value", "union", "select", "cname", "from", "course", "where", "credits", "=", "value", "and", "hours", "=", "value" ], "question": "Find the names of courses that have either 3 credits or 1 credit but 4 hours.", "question_toks": [ "find", "name", "of", "course", "that", "have", "either", "3", "credit", "or", "1", "credit", "but", "4", "hour", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 28, false ], null ], 1.0, null ], "and", [ false, 2, [ 0, [ 0, 31, false ], null ], 4.0, null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 28, false ], null ], 3.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "courses", "that", "have", "either", "3", "credits", "or", "1", "credit", "but", "4", "hours", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "course" ], [ "that" ], [ "have" ], [ "either" ], [ "3" ], [ "credit" ], [ "or" ], [ "1" ], [ "credit" ], [ "but" ], [ "4" ], [ "hour" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "either", "DT" ], [ "3", "CD" ], [ "credit", "NN" ], [ "or", "CC" ], [ "1", "CD" ], [ "credit", "NN" ], [ "but", "CC" ], [ "4", "CD" ], [ "hour", "NN" ], [ ".", "." ] ], "values": [ "1", "4", "James", "3", "Ames" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(20) T(4) Filter(2) A(0) C(21) T(4) V(3) Root(3) Sel(0) N(0) A(0) C(20) T(4) Filter(0) Filter(2) A(0) C(21) T(4) V(0) Filter(2) A(0) C(24) T(4) V(1)" }, { "db_id": "college_3", "query": "SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1 AND Hours = 4", "query_toks": [ "SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "3", "UNION", "SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "1", "AND", "Hours", "=", "4" ], "query_toks_no_value": [ "select", "cname", "from", "course", "where", "credits", "=", "value", "union", "select", "cname", "from", "course", "where", "credits", "=", "value", "and", "hours", "=", "value" ], "question": "What are the names of courses that give either 3 credits, or 1 credit and 4 hours?", "question_toks": [ "what", "are", "name", "of", "course", "that", "give", "either", "3", "credit", ",", "or", "1", "credit", "and", "4", "hour", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 28, false ], null ], 1.0, null ], "and", [ false, 2, [ 0, [ 0, 31, false ], null ], 4.0, null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 28, false ], null ], 3.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "courses", "that", "give", "either", "3", "credits", ",", "or", "1", "credit", "and", "4", "hours", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "course" ], [ "that" ], [ "give" ], [ "either" ], [ "3" ], [ "credit" ], [ "," ], [ "or" ], [ "1" ], [ "credit" ], [ "and" ], [ "4" ], [ "hour" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "give", "VBP" ], [ "either", "DT" ], [ "3", "CD" ], [ "credit", "NN" ], [ ",", "," ], [ "or", "CC" ], [ "1", "CD" ], [ "credit", "NN" ], [ "and", "CC" ], [ "4", "CD" ], [ "hour", "NN" ], [ "?", "." ] ], "values": [ "1", "4", "James", "3", "Ames" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(20) T(4) Filter(2) A(0) C(21) T(4) V(3) Root(3) Sel(0) N(0) A(0) C(20) T(4) Filter(0) Filter(2) A(0) C(21) T(4) V(0) Filter(2) A(0) C(24) T(4) V(1)" }, { "db_id": "college_3", "query": "SELECT DName FROM DEPARTMENT WHERE Division = \"AS\" UNION SELECT DName FROM DEPARTMENT WHERE Division = \"EN\" AND Building = \"NEB\"", "query_toks": [ "SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "``", "AS", "''", "UNION", "SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "``", "EN", "''", "AND", "Building", "=", "``", "NEB", "''" ], "query_toks_no_value": [ "select", "dname", "from", "department", "where", "division", "=", "value", "union", "select", "dname", "from", "department", "where", "division", "=", "value", "and", "building", "=", "value" ], "question": "Find the names of departments that are either in division AS or in division EN and in Building NEB.", "question_toks": [ "find", "name", "of", "department", "that", "are", "either", "in", "division", "a", "or", "in", "division", "en", "and", "in", "building", "neb", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"EN\"", null ], "and", [ false, 2, [ 0, [ 0, 21, false ], null ], "\"NEB\"", null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"AS\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "departments", "that", "are", "either", "in", "division", "AS", "or", "in", "division", "EN", "and", "in", "Building", "NEB", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "department" ], [ "that" ], [ "are" ], [ "either" ], [ "in" ], [ "division" ], [ "a" ], [ "or" ], [ "in" ], [ "division" ], [ "en" ], [ "and" ], [ "in" ], [ "building" ], [ "neb" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "either", "DT" ], [ "in", "IN" ], [ "division", "NN" ], [ "a", "DT" ], [ "or", "CC" ], [ "in", "IN" ], [ "division", "NN" ], [ "en", "NN" ], [ "and", "CC" ], [ "in", "IN" ], [ "building", "NN" ], [ "neb", "NN" ], [ ".", "." ] ], "values": [ "EN", "James", "AS", "NEB", "Ames" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(2) A(0) C(15) T(2) V(2) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(0) Filter(2) A(0) C(15) T(2) V(0) Filter(2) A(0) C(13) T(2) V(3)" }, { "db_id": "college_3", "query": "SELECT DName FROM DEPARTMENT WHERE Division = \"AS\" UNION SELECT DName FROM DEPARTMENT WHERE Division = \"EN\" AND Building = \"NEB\"", "query_toks": [ "SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "``", "AS", "''", "UNION", "SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "``", "EN", "''", "AND", "Building", "=", "``", "NEB", "''" ], "query_toks_no_value": [ "select", "dname", "from", "department", "where", "division", "=", "value", "union", "select", "dname", "from", "department", "where", "division", "=", "value", "and", "building", "=", "value" ], "question": "What are the names of departments either in division AS, or in division EN and in building NEB?", "question_toks": [ "what", "are", "name", "of", "department", "either", "in", "division", "a", ",", "or", "in", "division", "en", "and", "in", "building", "neb", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"EN\"", null ], "and", [ false, 2, [ 0, [ 0, 21, false ], null ], "\"NEB\"", null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"AS\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "departments", "either", "in", "division", "AS", ",", "or", "in", "division", "EN", "and", "in", "building", "NEB", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "department" ], [ "either" ], [ "in" ], [ "division" ], [ "a" ], [ "," ], [ "or" ], [ "in" ], [ "division" ], [ "en" ], [ "and" ], [ "in" ], [ "building" ], [ "neb" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "either", "CC" ], [ "in", "IN" ], [ "division", "NN" ], [ "a", "DT" ], [ ",", "," ], [ "or", "CC" ], [ "in", "IN" ], [ "division", "NN" ], [ "en", "NN" ], [ "and", "CC" ], [ "in", "IN" ], [ "building", "VBG" ], [ "neb", "NN" ], [ "?", "." ] ], "values": [ "EN", "James", "AS", "NEB", "Ames" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(2) A(0) C(15) T(2) V(2) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(0) Filter(2) A(0) C(15) T(2) V(0) Filter(2) A(0) C(13) T(2) V(3)" }, { "db_id": "college_3", "query": "SELECT Fname FROM STUDENT WHERE StuID NOT IN (SELECT StuID FROM ENROLLED_IN)", "query_toks": [ "SELECT", "Fname", "FROM", "STUDENT", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "ENROLLED_IN", ")" ], "query_toks_no_value": [ "select", "fname", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "enrolled_in", ")" ], "question": "Find the first name of students not enrolled in any course.", "question_toks": [ "find", "first", "name", "of", "student", "not", "enrolled", "in", "any", "course", "." ], "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", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "Find", "the", "first", "name", "of", "students", "not", "enrolled", "in", "any", "course", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "not" ], [ "enrolled", "in" ], [ "any" ], [ "course" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "not", "RB" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "any", "DT" ], [ "course", "NN" ], [ ".", "." ] ], "values": [ "1" ], "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(6)" }, { "db_id": "college_3", "query": "SELECT Fname FROM STUDENT WHERE StuID NOT IN (SELECT StuID FROM ENROLLED_IN)", "query_toks": [ "SELECT", "Fname", "FROM", "STUDENT", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "ENROLLED_IN", ")" ], "query_toks_no_value": [ "select", "fname", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "enrolled_in", ")" ], "question": "What are the first names of all students that are not enrolled in courses?", "question_toks": [ "what", "are", "first", "name", "of", "all", "student", "that", "are", "not", "enrolled", "in", "course", "?" ], "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", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building", "department number", "division", "department name", "room", "building", "department phone", "faculty id", "department number", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "department number", "student id", "department number", "student id", "course id", "grade", "letter grade", "grade point" ], "table_names": [ "student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "rank", "phone", "room", "building", "department number", "division", "department name", "department phone", "appt type", "course id", "course name", "credits", "instructor", "days", "hours", "grade", "letter grade", "grade point" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7 ], "keys": { "24": 17, "17": 17, "23": 9, "9": 9, "32": 17, "29": 9, "34": 17, "33": 1, "1": 1, "37": 38, "38": 38, "36": 26, "26": 26, "35": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "all", "students", "that", "are", "not", "enrolled", "in", "courses", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "of" ], [ "all" ], [ "student" ], [ "that" ], [ "are" ], [ "not" ], [ "enrolled", "in" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "1", "James", "Ames" ], "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(6)" }, { "db_id": "department_store", "query": "SELECT product_id FROM product_suppliers ORDER BY total_amount_purchased DESC LIMIT 3", "query_toks": [ "SELECT", "product_id", "FROM", "product_suppliers", "ORDER", "BY", "total_amount_purchased", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "product_id", "from", "product_suppliers", "order", "by", "total_amount_purchased", "desc", "limit", "value" ], "question": "What are the ids of the top three products that were purchased in the largest amount?", "question_toks": [ "what", "are", "id", "of", "top", "three", "product", "that", "were", "purchased", "in", "largest", "amount", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 50, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "top", "three", "products", "that", "were", "purchased", "in", "the", "largest", "amount", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "top" ], [ "three" ], [ "product" ], [ "that" ], [ "were" ], [ "purchased" ], [ "in" ], [ "largest" ], [ "amount" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "top", "JJ" ], [ "three", "CD" ], [ "product", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "purchased", "VBN" ], [ "in", "IN" ], [ "largest", "JJS" ], [ "amount", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(18) T(12) Sup(0) A(0) C(37) T(12)" }, { "db_id": "department_store", "query": "SELECT product_id FROM product_suppliers ORDER BY total_amount_purchased DESC LIMIT 3", "query_toks": [ "SELECT", "product_id", "FROM", "product_suppliers", "ORDER", "BY", "total_amount_purchased", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "product_id", "from", "product_suppliers", "order", "by", "total_amount_purchased", "desc", "limit", "value" ], "question": "Give the ids of the three products purchased in the largest amounts.", "question_toks": [ "give", "id", "of", "three", "product", "purchased", "in", "largest", "amount", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 50, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Give", "the", "ids", "of", "the", "three", "products", "purchased", "in", "the", "largest", "amounts", "." ], "question_arg": [ [ "give" ], [ "id" ], [ "of" ], [ "three" ], [ "product" ], [ "purchased" ], [ "in" ], [ "largest" ], [ "amount" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "id", "NN" ], [ "of", "IN" ], [ "three", "CD" ], [ "product", "NN" ], [ "purchased", "VBN" ], [ "in", "IN" ], [ "largest", "JJS" ], [ "amount", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(18) T(12) Sup(0) A(0) C(37) T(12)" }, { "db_id": "department_store", "query": "SELECT product_id , product_type_code FROM products ORDER BY product_price LIMIT 1", "query_toks": [ "SELECT", "product_id", ",", "product_type_code", "FROM", "products", "ORDER", "BY", "product_price", "LIMIT", "1" ], "query_toks_no_value": [ "select", "product_id", ",", "product_type_code", "from", "products", "order", "by", "product_price", "limit", "value" ], "question": "What are the product id and product type of the cheapest product?", "question_toks": [ "what", "are", "product", "id", "and", "product", "type", "of", "cheapest", "product", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "product", "id", "and", "product", "type", "of", "the", "cheapest", "product", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "product", "id" ], [ "and" ], [ "product" ], [ "type" ], [ "of" ], [ "cheapest" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "product", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "product", "NN" ], [ "type", "NN" ], [ "of", "IN" ], [ "cheapest", "JJS" ], [ "product", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(18) T(5) A(0) C(19) T(5) Sup(1) A(0) C(21) T(5)" }, { "db_id": "department_store", "query": "SELECT product_id , product_type_code FROM products ORDER BY product_price LIMIT 1", "query_toks": [ "SELECT", "product_id", ",", "product_type_code", "FROM", "products", "ORDER", "BY", "product_price", "LIMIT", "1" ], "query_toks_no_value": [ "select", "product_id", ",", "product_type_code", "from", "products", "order", "by", "product_price", "limit", "value" ], "question": "Give the id and product type of the product with the lowest price.", "question_toks": [ "give", "id", "and", "product", "type", "of", "product", "with", "lowest", "price", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Give", "the", "id", "and", "product", "type", "of", "the", "product", "with", "the", "lowest", "price", "." ], "question_arg": [ [ "give" ], [ "id" ], [ "and" ], [ "product" ], [ "type" ], [ "of" ], [ "product" ], [ "with" ], [ "lowest" ], [ "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "product", "NN" ], [ "type", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "lowest", "JJ" ], [ "price", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(18) T(5) A(0) C(19) T(5) Sup(1) A(0) C(21) T(5)" }, { "db_id": "department_store", "query": "SELECT count(DISTINCT product_type_code) FROM products", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "product_type_code", ")", "FROM", "products" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "product_type_code", ")", "from", "products" ], "question": "Find the number of different product types.", "question_toks": [ "find", "number", "of", "different", "product", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 19, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Find", "the", "number", "of", "different", "product", "types", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "different" ], [ "product" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "product", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(19) T(5)" }, { "db_id": "department_store", "query": "SELECT count(DISTINCT product_type_code) FROM products", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "product_type_code", ")", "FROM", "products" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "product_type_code", ")", "from", "products" ], "question": "Count the number of distinct product types.", "question_toks": [ "count", "number", "of", "distinct", "product", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 19, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Count", "the", "number", "of", "distinct", "product", "types", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "distinct" ], [ "product" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "product", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(19) T(5)" }, { "db_id": "department_store", "query": "SELECT T1.address_details FROM addresses AS T1 JOIN customer_addresses AS T2 ON T1.address_id = T2.address_id WHERE T2.customer_id = 10", "query_toks": [ "SELECT", "T1.address_details", "FROM", "addresses", "AS", "T1", "JOIN", "customer_addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "WHERE", "T2.customer_id", "=", "10" ], "query_toks_no_value": [ "select", "t1", ".", "address_details", "from", "addresses", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "customer_id", "=", "value" ], "question": "Return the address of customer 10.", "question_toks": [ "return", "address", "of", "customer", "10", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], 10.0, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Return", "the", "address", "of", "customer", "10", "." ], "question_arg": [ [ "return" ], [ "address" ], [ "of" ], [ "customer" ], [ "10" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "address", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "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(11) T(7) V(0)" }, { "db_id": "department_store", "query": "SELECT T1.address_details FROM addresses AS T1 JOIN customer_addresses AS T2 ON T1.address_id = T2.address_id WHERE T2.customer_id = 10", "query_toks": [ "SELECT", "T1.address_details", "FROM", "addresses", "AS", "T1", "JOIN", "customer_addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "WHERE", "T2.customer_id", "=", "10" ], "query_toks_no_value": [ "select", "t1", ".", "address_details", "from", "addresses", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "customer_id", "=", "value" ], "question": "What is the address for the customer with id 10?", "question_toks": [ "what", "is", "address", "for", "customer", "with", "id", "10", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], 10.0, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "is", "the", "address", "for", "the", "customer", "with", "id", "10", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "address" ], [ "for" ], [ "customer" ], [ "with" ], [ "id" ], [ "10" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "address", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "id", "NN" ], [ "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(11) T(7) V(0)" }, { "db_id": "department_store", "query": "SELECT T1.staff_id , T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = \"Department Manager\"", "query_toks": [ "SELECT", "T1.staff_id", ",", "T1.staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "staff_department_assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.job_title_code", "=", "``", "Department", "Manager", "''" ], "query_toks_no_value": [ "select", "t1", ".", "staff_id", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "job_title_code", "=", "value" ], "question": "What are the staff ids and genders of all staffs whose job title is Department Manager?", "question_toks": [ "what", "are", "staff", "id", "and", "gender", "of", "all", "staff", "whose", "job", "title", "is", "department", "manager", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 52, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 55, false ], null ], "\"Department Manager\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "staff", "ids", "and", "genders", "of", "all", "staffs", "whose", "job", "title", "is", "Department", "Manager", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "staff", "id" ], [ "and" ], [ "gender" ], [ "of" ], [ "all" ], [ "staff" ], [ "whose" ], [ "job", "title", "code" ], [ "is" ], [ "department" ], [ "manager" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "staff", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "gender", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "staff", "NN" ], [ "whose", "WP$" ], [ "job", "NN" ], [ "title", "NN" ], [ "is", "VBZ" ], [ "department", "NN" ], [ "manager", "NN" ], [ "?", "." ] ], "values": [ "Department Manager" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(0) C(4) T(1) Filter(2) A(0) C(40) T(13) V(0)" }, { "db_id": "department_store", "query": "SELECT T1.staff_id , T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = \"Department Manager\"", "query_toks": [ "SELECT", "T1.staff_id", ",", "T1.staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "staff_department_assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.job_title_code", "=", "``", "Department", "Manager", "''" ], "query_toks_no_value": [ "select", "t1", ".", "staff_id", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "job_title_code", "=", "value" ], "question": "Return the staff ids and genders for any staff with the title Department Manager.", "question_toks": [ "return", "staff", "id", "and", "gender", "for", "any", "staff", "with", "title", "department", "manager", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 52, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 55, false ], null ], "\"Department Manager\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Return", "the", "staff", "ids", "and", "genders", "for", "any", "staff", "with", "the", "title", "Department", "Manager", "." ], "question_arg": [ [ "return" ], [ "staff", "id" ], [ "and" ], [ "gender" ], [ "for" ], [ "any" ], [ "staff" ], [ "with" ], [ "title" ], [ "department" ], [ "manager" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "staff", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "gender", "NN" ], [ "for", "IN" ], [ "any", "DT" ], [ "staff", "NN" ], [ "with", "IN" ], [ "title", "NN" ], [ "department", "NN" ], [ "manager", "NN" ], [ ".", "." ] ], "values": [ "Department Manager" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(0) C(4) T(1) Filter(2) A(0) C(40) T(13) V(0)" }, { "db_id": "department_store", "query": "SELECT payment_method_code , count(*) FROM customers GROUP BY payment_method_code", "query_toks": [ "SELECT", "payment_method_code", ",", "count", "(", "*", ")", "FROM", "customers", "GROUP", "BY", "payment_method_code" ], "query_toks_no_value": [ "select", "payment_method_code", ",", "count", "(", "*", ")", "from", "customers", "group", "by", "payment_method_code" ], "question": "For each payment method, return how many customers use it.", "question_toks": [ "for", "each", "payment", "method", ",", "return", "how", "many", "customer", "use", "it", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "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": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "For", "each", "payment", "method", ",", "return", "how", "many", "customers", "use", "it", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "payment", "method", "code" ], [ "," ], [ "return" ], [ "how" ], [ "many" ], [ "customer" ], [ "use" ], [ "it" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "payment", "NN" ], [ "method", "NN" ], [ ",", "," ], [ "return", "VB" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "use", "NN" ], [ "it", "PRP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(12) T(4) A(3) C(0) T(4)" }, { "db_id": "department_store", "query": "SELECT payment_method_code , count(*) FROM customers GROUP BY payment_method_code", "query_toks": [ "SELECT", "payment_method_code", ",", "count", "(", "*", ")", "FROM", "customers", "GROUP", "BY", "payment_method_code" ], "query_toks_no_value": [ "select", "payment_method_code", ",", "count", "(", "*", ")", "from", "customers", "group", "by", "payment_method_code" ], "question": "How many customers use each payment method?", "question_toks": [ "how", "many", "customer", "use", "each", "payment", "method", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "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": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "How", "many", "customers", "use", "each", "payment", "method", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "use" ], [ "each" ], [ "payment", "method", "code" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "use", "IN" ], [ "each", "DT" ], [ "payment", "NN" ], [ "method", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(12) T(4) A(3) C(0) T(4)" }, { "db_id": "department_store", "query": "SELECT product_id FROM order_items GROUP BY product_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "product_id", "FROM", "order_items", "GROUP", "BY", "product_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "product_id", "from", "order_items", "group", "by", "product_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the id of the product that was ordered the most often?", "question_toks": [ "what", "is", "id", "of", "product", "that", "wa", "ordered", "most", "often", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 45, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "product", "that", "was", "ordered", "the", "most", "often", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "product" ], [ "that" ], [ "wa" ], [ "ordered" ], [ "most" ], [ "often" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "wa", "VBP" ], [ "ordered", "VBN" ], [ "most", "RBS" ], [ "often", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(18) T(11) Sup(0) A(3) C(0) T(11)" }, { "db_id": "department_store", "query": "SELECT product_id FROM order_items GROUP BY product_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "product_id", "FROM", "order_items", "GROUP", "BY", "product_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "product_id", "from", "order_items", "group", "by", "product_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Give the product id for the product that was ordered most frequently.", "question_toks": [ "give", "product", "id", "for", "product", "that", "wa", "ordered", "most", "frequently", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 45, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Give", "the", "product", "id", "for", "the", "product", "that", "was", "ordered", "most", "frequently", "." ], "question_arg": [ [ "give" ], [ "product", "id" ], [ "for" ], [ "product" ], [ "that" ], [ "wa" ], [ "ordered" ], [ "most" ], [ "frequently" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "product", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "wa", "VBP" ], [ "ordered", "VBN" ], [ "most", "JJS" ], [ "frequently", "RB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(18) T(11) Sup(0) A(3) C(0) T(11)" }, { "db_id": "department_store", "query": "SELECT T1.customer_name , T1.customer_phone , T1.customer_email FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.customer_name", ",", "T1.customer_phone", ",", "T1.customer_email", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T2.customer_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", ",", "t1", ".", "customer_phone", ",", "t1", ".", "customer_email", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t2", ".", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the name, phone number and email address of the customer who made the largest number of orders?", "question_toks": [ "what", "are", "name", ",", "phone", "number", "and", "email", "address", "of", "customer", "who", "made", "largest", "number", "of", "order", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 31, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "name", ",", "phone", "number", "and", "email", "address", "of", "the", "customer", "who", "made", "the", "largest", "number", "of", "orders", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "phone" ], [ "number" ], [ "and" ], [ "email" ], [ "address" ], [ "of" ], [ "customer" ], [ "who" ], [ "made" ], [ "largest" ], [ "number" ], [ "of" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "phone", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "email", "JJ" ], [ "address", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(14) T(4) A(0) C(16) T(4) A(0) C(17) T(4) Sup(0) A(3) C(0) T(8) Filter(18) A(0) C(11) T(4) Root(5) Sel(0) N(0) A(0) C(11) T(8)" }, { "db_id": "department_store", "query": "SELECT T1.customer_name , T1.customer_phone , T1.customer_email FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.customer_name", ",", "T1.customer_phone", ",", "T1.customer_email", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T2.customer_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", ",", "t1", ".", "customer_phone", ",", "t1", ".", "customer_email", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t2", ".", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the name, phone number and email address for the customer with the most orders.", "question_toks": [ "return", "name", ",", "phone", "number", "and", "email", "address", "for", "customer", "with", "most", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 31, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Return", "the", "name", ",", "phone", "number", "and", "email", "address", "for", "the", "customer", "with", "the", "most", "orders", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "," ], [ "phone" ], [ "number" ], [ "and" ], [ "email" ], [ "address" ], [ "for" ], [ "customer" ], [ "with" ], [ "most" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "phone", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "email", "JJ" ], [ "address", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(14) T(4) A(0) C(16) T(4) A(0) C(17) T(4) Sup(0) A(3) C(0) T(8) Filter(18) A(0) C(11) T(4) Root(5) Sel(0) N(0) A(0) C(11) T(8)" }, { "db_id": "department_store", "query": "SELECT product_type_code , avg(product_price) FROM products GROUP BY product_type_code", "query_toks": [ "SELECT", "product_type_code", ",", "avg", "(", "product_price", ")", "FROM", "products", "GROUP", "BY", "product_type_code" ], "query_toks_no_value": [ "select", "product_type_code", ",", "avg", "(", "product_price", ")", "from", "products", "group", "by", "product_type_code" ], "question": "What is the average price for each type of product?", "question_toks": [ "what", "is", "average", "price", "for", "each", "type", "of", "product", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "is", "the", "average", "price", "for", "each", "type", "of", "product", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "price" ], [ "for" ], [ "each" ], [ "type" ], [ "of" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(19) T(5) A(5) C(21) T(5)" }, { "db_id": "department_store", "query": "SELECT product_type_code , avg(product_price) FROM products GROUP BY product_type_code", "query_toks": [ "SELECT", "product_type_code", ",", "avg", "(", "product_price", ")", "FROM", "products", "GROUP", "BY", "product_type_code" ], "query_toks_no_value": [ "select", "product_type_code", ",", "avg", "(", "product_price", ")", "from", "products", "group", "by", "product_type_code" ], "question": "Return the average price for each product type.", "question_toks": [ "return", "average", "price", "for", "each", "product", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Return", "the", "average", "price", "for", "each", "product", "type", "." ], "question_arg": [ [ "return" ], [ "average" ], [ "price" ], [ "for" ], [ "each" ], [ "product" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "average", "JJ" ], [ "price", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "product", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(19) T(5) A(5) C(21) T(5)" }, { "db_id": "department_store", "query": "SELECT count(*) FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = \"South\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "department_stores", "AS", "T1", "JOIN", "department_store_chain", "AS", "T2", "ON", "T1.dept_store_chain_id", "=", "T2.dept_store_chain_id", "WHERE", "T2.dept_store_chain_name", "=", "``", "South", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "department_stores", "as", "t1", "join", "department_store_chain", "as", "t2", "on", "t1", ".", "dept_store_chain_id", "=", "t2", ".", "dept_store_chain_id", "where", "t2", ".", "dept_store_chain_name", "=", "value" ], "question": "How many department stores does the store chain South have?", "question_toks": [ "how", "many", "department", "store", "doe", "store", "chain", "south", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 35, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 9 ], [ "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, 10, false ], null ], "\"South\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "How", "many", "department", "stores", "does", "the", "store", "chain", "South", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "department", "store" ], [ "doe" ], [ "store" ], [ "chain" ], [ "south" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "department", "NN" ], [ "store", "NN" ], [ "doe", "NN" ], [ "store", "NN" ], [ "chain", "NN" ], [ "south", "NNS" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [ "South" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(9) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "department_store", "query": "SELECT count(*) FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = \"South\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "department_stores", "AS", "T1", "JOIN", "department_store_chain", "AS", "T2", "ON", "T1.dept_store_chain_id", "=", "T2.dept_store_chain_id", "WHERE", "T2.dept_store_chain_name", "=", "``", "South", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "department_stores", "as", "t1", "join", "department_store_chain", "as", "t2", "on", "t1", ".", "dept_store_chain_id", "=", "t2", ".", "dept_store_chain_id", "where", "t2", ".", "dept_store_chain_name", "=", "value" ], "question": "Count the number of stores the chain South has.", "question_toks": [ "count", "number", "of", "store", "chain", "south", "ha", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 35, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 9 ], [ "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, 10, false ], null ], "\"South\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Count", "the", "number", "of", "stores", "the", "chain", "South", "has", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "store" ], [ "chain" ], [ "south" ], [ "ha" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "store", "NN" ], [ "chain", "NN" ], [ "south", "JJ" ], [ "ha", "NN" ], [ ".", "." ] ], "values": [ "South" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(9) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "department_store", "query": "SELECT T1.staff_name , T2.job_title_code FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY T2.date_assigned_to DESC LIMIT 1", "query_toks": [ "SELECT", "T1.staff_name", ",", "T2.job_title_code", "FROM", "staff", "AS", "T1", "JOIN", "staff_department_assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "ORDER", "BY", "T2.date_assigned_to", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "staff_name", ",", "t2", ".", "job_title_code", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "order", "by", "t2", ".", "date_assigned_to", "desc", "limit", "value" ], "question": "What is the name and job title of the staff who was assigned the latest?", "question_toks": [ "what", "is", "name", "and", "job", "title", "of", "staff", "who", "wa", "assigned", "latest", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 52, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 56, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 55, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "job", "title", "of", "the", "staff", "who", "was", "assigned", "the", "latest", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "job", "title", "code" ], [ "of" ], [ "staff" ], [ "who" ], [ "wa" ], [ "assigned" ], [ "latest" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "job", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "who", "WP" ], [ "wa", "VBP" ], [ "assigned", "VBN" ], [ "latest", "JJS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(5) T(1) A(0) C(40) T(13) Sup(0) A(0) C(41) T(13)" }, { "db_id": "department_store", "query": "SELECT T1.staff_name , T2.job_title_code FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY T2.date_assigned_to DESC LIMIT 1", "query_toks": [ "SELECT", "T1.staff_name", ",", "T2.job_title_code", "FROM", "staff", "AS", "T1", "JOIN", "staff_department_assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "ORDER", "BY", "T2.date_assigned_to", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "staff_name", ",", "t2", ".", "job_title_code", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "order", "by", "t2", ".", "date_assigned_to", "desc", "limit", "value" ], "question": "Return the name and job title of the staff with the latest date assigned.", "question_toks": [ "return", "name", "and", "job", "title", "of", "staff", "with", "latest", "date", "assigned", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 52, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 56, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 55, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Return", "the", "name", "and", "job", "title", "of", "the", "staff", "with", "the", "latest", "date", "assigned", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "and" ], [ "job", "title", "code" ], [ "of" ], [ "staff" ], [ "with" ], [ "latest" ], [ "date" ], [ "assigned" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "job", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "with", "IN" ], [ "latest", "JJS" ], [ "date", "NN" ], [ "assigned", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(5) T(1) A(0) C(40) T(13) Sup(0) A(0) C(41) T(13)" }, { "db_id": "department_store", "query": "SELECT T2.product_type_code , T2.product_name , T2.product_price FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3", "query_toks": [ "SELECT", "T2.product_type_code", ",", "T2.product_name", ",", "T2.product_price", "FROM", "product_suppliers", "AS", "T1", "JOIN", "products", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T1.supplier_id", "=", "3" ], "query_toks_no_value": [ "select", "t2", ".", "product_type_code", ",", "t2", ".", "product_name", ",", "t2", ".", "product_price", "from", "product_suppliers", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t1", ".", "supplier_id", "=", "value" ], "question": "Give me the product type, name and price for all the products supplied by supplier id 3.", "question_toks": [ "give", "me", "product", "type", ",", "name", "and", "price", "for", "all", "product", "supplied", "by", "supplier", "id", "3", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 12 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 47, false ], null ], 3.0, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Give", "me", "the", "product", "type", ",", "name", "and", "price", "for", "all", "the", "products", "supplied", "by", "supplier", "id", "3", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "product" ], [ "type" ], [ "," ], [ "name" ], [ "and" ], [ "price" ], [ "for" ], [ "all" ], [ "product" ], [ "supplied" ], [ "by" ], [ "supplier", "id" ], [ "3" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "product", "NN" ], [ "type", "NN" ], [ ",", "," ], [ "name", "NN" ], [ "and", "CC" ], [ "price", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "supplied", "VBN" ], [ "by", "IN" ], [ "supplier", "NN" ], [ "id", "NN" ], [ "3", "CD" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(19) T(5) A(0) C(20) T(5) A(0) C(21) T(5) Filter(2) A(0) C(6) T(12) V(0)" }, { "db_id": "department_store", "query": "SELECT T2.product_type_code , T2.product_name , T2.product_price FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3", "query_toks": [ "SELECT", "T2.product_type_code", ",", "T2.product_name", ",", "T2.product_price", "FROM", "product_suppliers", "AS", "T1", "JOIN", "products", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T1.supplier_id", "=", "3" ], "query_toks_no_value": [ "select", "t2", ".", "product_type_code", ",", "t2", ".", "product_name", ",", "t2", ".", "product_price", "from", "product_suppliers", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t1", ".", "supplier_id", "=", "value" ], "question": "Return the product type, name, and price for products supplied by supplier 3.", "question_toks": [ "return", "product", "type", ",", "name", ",", "and", "price", "for", "product", "supplied", "by", "supplier", "3", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 12 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 47, false ], null ], 3.0, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Return", "the", "product", "type", ",", "name", ",", "and", "price", "for", "products", "supplied", "by", "supplier", "3", "." ], "question_arg": [ [ "return" ], [ "product" ], [ "type" ], [ "," ], [ "name" ], [ "," ], [ "and" ], [ "price" ], [ "for" ], [ "product" ], [ "supplied" ], [ "by" ], [ "supplier" ], [ "3" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "product", "NN" ], [ "type", "NN" ], [ ",", "," ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "price", "NN" ], [ "for", "IN" ], [ "product", "NN" ], [ "supplied", "VBN" ], [ "by", "IN" ], [ "supplier", "NN" ], [ "3", "CD" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(19) T(5) A(0) C(20) T(5) A(0) C(21) T(5) Filter(2) A(0) C(6) T(12) V(0)" }, { "db_id": "department_store", "query": "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = \"Pending\" ORDER BY T2.customer_id", "query_toks": [ "SELECT", "DISTINCT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status_code", "=", "``", "Pending", "''", "ORDER", "BY", "T2.customer_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status_code", "=", "value", "order", "by", "t2", ".", "customer_id" ], "question": "Return the distinct name of customers whose order status is Pending, in the order of customer id.", "question_toks": [ "return", "distinct", "name", "of", "customer", "whose", "order", "status", "is", "pending", ",", "in", "order", "of", "customer", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 31, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 32, false ], null ], "\"Pending\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Return", "the", "distinct", "name", "of", "customers", "whose", "order", "status", "is", "Pending", ",", "in", "the", "order", "of", "customer", "id", "." ], "question_arg": [ [ "return" ], [ "distinct" ], [ "name" ], [ "of" ], [ "customer" ], [ "whose" ], [ "order", "status", "code" ], [ "is" ], [ "pending" ], [ "," ], [ "in" ], [ "order" ], [ "of" ], [ "customer", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "order", "NN" ], [ "status", "NN" ], [ "is", "VBZ" ], [ "pending", "VBG" ], [ ",", "," ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "Pending" ], "rule_label": "Root1(3) Root(1) Sel(1) N(0) A(0) C(14) T(4) Filter(2) A(0) C(25) T(8) V(0) Order(1) A(0) C(11) T(8)" }, { "db_id": "department_store", "query": "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = \"Pending\" ORDER BY T2.customer_id", "query_toks": [ "SELECT", "DISTINCT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status_code", "=", "``", "Pending", "''", "ORDER", "BY", "T2.customer_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status_code", "=", "value", "order", "by", "t2", ".", "customer_id" ], "question": "What are the distinct names of customers with an order status of Pending, sorted by customer id?", "question_toks": [ "what", "are", "distinct", "name", "of", "customer", "with", "an", "order", "status", "of", "pending", ",", "sorted", "by", "customer", "id", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 31, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 32, false ], null ], "\"Pending\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "distinct", "names", "of", "customers", "with", "an", "order", "status", "of", "Pending", ",", "sorted", "by", "customer", "id", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "name" ], [ "of" ], [ "customer" ], [ "with" ], [ "an" ], [ "order", "status", "code" ], [ "of" ], [ "pending" ], [ "," ], [ "sorted" ], [ "by" ], [ "customer", "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "an", "DT" ], [ "order", "NN" ], [ "status", "NN" ], [ "of", "IN" ], [ "pending", "VBG" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "id", "NN" ], [ "?", "." ] ], "values": [ "Pending" ], "rule_label": "Root1(3) Root(1) Sel(1) N(0) A(0) C(14) T(4) Filter(2) A(0) C(25) T(8) V(0) Order(1) A(0) C(11) T(8)" }, { "db_id": "department_store", "query": "SELECT T1.customer_name , T1.customer_address FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = \"New\" INTERSECT SELECT T1.customer_name , T1.customer_address FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = \"Pending\"", "query_toks": [ "SELECT", "T1.customer_name", ",", "T1.customer_address", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status_code", "=", "``", "New", "''", "INTERSECT", "SELECT", "T1.customer_name", ",", "T1.customer_address", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status_code", "=", "``", "Pending", "''" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", ",", "t1", ".", "customer_address", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status_code", "=", "value", "intersect", "select", "t1", ".", "customer_name", ",", "t1", ".", "customer_address", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status_code", "=", "value" ], "question": "Find the name and address of the customers who have both New and Pending orders.", "question_toks": [ "find", "name", "and", "address", "of", "customer", "who", "have", "both", "new", "and", "pending", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 8 ] ] }, "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, 32, false ], null ], "\"Pending\"", 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, 32, false ], null ], "\"New\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Find", "the", "name", "and", "address", "of", "the", "customers", "who", "have", "both", "New", "and", "Pending", "orders", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "address" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "both" ], [ "new" ], [ "and" ], [ "pending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "address", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "both", "DT" ], [ "new", "JJ" ], [ "and", "CC" ], [ "pending", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "New", "Pending" ], "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(14) T(4) A(0) C(15) T(4) Filter(2) A(0) C(25) T(8) V(0) Root(3) Sel(0) N(1) A(0) C(14) T(4) A(0) C(15) T(4) Filter(2) A(0) C(25) T(8) V(1)" }, { "db_id": "department_store", "query": "SELECT T1.customer_name , T1.customer_address FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = \"New\" INTERSECT SELECT T1.customer_name , T1.customer_address FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = \"Pending\"", "query_toks": [ "SELECT", "T1.customer_name", ",", "T1.customer_address", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status_code", "=", "``", "New", "''", "INTERSECT", "SELECT", "T1.customer_name", ",", "T1.customer_address", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status_code", "=", "``", "Pending", "''" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", ",", "t1", ".", "customer_address", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status_code", "=", "value", "intersect", "select", "t1", ".", "customer_name", ",", "t1", ".", "customer_address", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status_code", "=", "value" ], "question": "What are the names and addressed of customers who have both New and Pending orders?", "question_toks": [ "what", "are", "name", "and", "addressed", "of", "customer", "who", "have", "both", "new", "and", "pending", "order", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 8 ] ] }, "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, 32, false ], null ], "\"Pending\"", 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, 32, false ], null ], "\"New\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "addressed", "of", "customers", "who", "have", "both", "New", "and", "Pending", "orders", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "addressed" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "both" ], [ "new" ], [ "and" ], [ "pending" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "addressed", "VBD" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "both", "DT" ], [ "new", "JJ" ], [ "and", "CC" ], [ "pending", "VBG" ], [ "order", "NN" ], [ "?", "." ] ], "values": [ "New", "Pending" ], "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(14) T(4) A(0) C(15) T(4) Filter(2) A(0) C(25) T(8) V(0) Root(3) Sel(0) N(1) A(0) C(14) T(4) A(0) C(15) T(4) Filter(2) A(0) C(25) T(8) V(1)" }, { "db_id": "department_store", "query": "SELECT T1.product_id FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 2 AND T2.product_price > (SELECT avg(product_price) FROM products)", "query_toks": [ "SELECT", "T1.product_id", "FROM", "product_suppliers", "AS", "T1", "JOIN", "products", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T1.supplier_id", "=", "2", "AND", "T2.product_price", ">", "(", "SELECT", "avg", "(", "product_price", ")", "FROM", "products", ")" ], "query_toks_no_value": [ "select", "t1", ".", "product_id", "from", "product_suppliers", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t1", ".", "supplier_id", "=", "value", "and", "t2", ".", "product_price", ">", "(", "select", "avg", "(", "product_price", ")", "from", "products", ")" ], "question": "Return ids of all the products that are supplied by supplier id 2 and are more expensive than the average price of all products.", "question_toks": [ "return", "id", "of", "all", "product", "that", "are", "supplied", "by", "supplier", "id", "2", "and", "are", "more", "expensive", "than", "average", "price", "of", "all", "product", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 12 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 47, false ], null ], 2.0, null ], "and", [ false, 3, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Return", "ids", "of", "all", "the", "products", "that", "are", "supplied", "by", "supplier", "id", "2", "and", "are", "more", "expensive", "than", "the", "average", "price", "of", "all", "products", "." ], "question_arg": [ [ "return" ], [ "id" ], [ "of" ], [ "all" ], [ "product" ], [ "that" ], [ "are" ], [ "supplied" ], [ "by" ], [ "supplier", "id" ], [ "2" ], [ "and" ], [ "are" ], [ "more" ], [ "expensive" ], [ "than" ], [ "average" ], [ "price" ], [ "of" ], [ "all" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "supplied", "VBN" ], [ "by", "IN" ], [ "supplier", "NN" ], [ "id", "NN" ], [ "2", "CD" ], [ "and", "CC" ], [ "are", "VBP" ], [ "more", "RBR" ], [ "expensive", "JJ" ], [ "than", "IN" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(12) Filter(0) Filter(2) A(0) C(6) T(12) V(0) Filter(13) A(0) C(21) T(5) Root(5) Sel(0) N(0) A(5) C(21) T(5)" }, { "db_id": "department_store", "query": "SELECT T1.product_id FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 2 AND T2.product_price > (SELECT avg(product_price) FROM products)", "query_toks": [ "SELECT", "T1.product_id", "FROM", "product_suppliers", "AS", "T1", "JOIN", "products", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T1.supplier_id", "=", "2", "AND", "T2.product_price", ">", "(", "SELECT", "avg", "(", "product_price", ")", "FROM", "products", ")" ], "query_toks_no_value": [ "select", "t1", ".", "product_id", "from", "product_suppliers", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t1", ".", "supplier_id", "=", "value", "and", "t2", ".", "product_price", ">", "(", "select", "avg", "(", "product_price", ")", "from", "products", ")" ], "question": "What are the ids of products from the supplier with id 2, which are more expensive than the average price across all products?", "question_toks": [ "what", "are", "id", "of", "product", "from", "supplier", "with", "id", "2", ",", "which", "are", "more", "expensive", "than", "average", "price", "across", "all", "product", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 12 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 47, false ], null ], 2.0, null ], "and", [ false, 3, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "products", "from", "the", "supplier", "with", "id", "2", ",", "which", "are", "more", "expensive", "than", "the", "average", "price", "across", "all", "products", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "product" ], [ "from" ], [ "supplier" ], [ "with" ], [ "id" ], [ "2" ], [ "," ], [ "which" ], [ "are" ], [ "more" ], [ "expensive" ], [ "than" ], [ "average" ], [ "price" ], [ "across" ], [ "all" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "product", "NN" ], [ "from", "IN" ], [ "supplier", "NN" ], [ "with", "IN" ], [ "id", "JJ" ], [ "2", "CD" ], [ ",", "," ], [ "which", "WDT" ], [ "are", "VBP" ], [ "more", "RBR" ], [ "expensive", "JJ" ], [ "than", "IN" ], [ "average", "JJ" ], [ "price", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(12) Filter(0) Filter(2) A(0) C(6) T(12) V(0) Filter(13) A(0) C(21) T(5) Root(5) Sel(0) N(0) A(5) C(21) T(5)" }, { "db_id": "department_store", "query": "SELECT T2.dept_store_id , T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = \"marketing\" INTERSECT SELECT T2.dept_store_id , T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = \"managing\"", "query_toks": [ "SELECT", "T2.dept_store_id", ",", "T2.store_name", "FROM", "departments", "AS", "T1", "JOIN", "department_stores", "AS", "T2", "ON", "T1.dept_store_id", "=", "T2.dept_store_id", "WHERE", "T1.department_name", "=", "``", "marketing", "''", "INTERSECT", "SELECT", "T2.dept_store_id", ",", "T2.store_name", "FROM", "departments", "AS", "T1", "JOIN", "department_stores", "AS", "T2", "ON", "T1.dept_store_id", "=", "T2.dept_store_id", "WHERE", "T1.department_name", "=", "``", "managing", "''" ], "query_toks_no_value": [ "select", "t2", ".", "dept_store_id", ",", "t2", ".", "store_name", "from", "departments", "as", "t1", "join", "department_stores", "as", "t2", "on", "t1", ".", "dept_store_id", "=", "t2", ".", "dept_store_id", "where", "t1", ".", "department_name", "=", "value", "intersect", "select", "t2", ".", "dept_store_id", ",", "t2", ".", "store_name", "from", "departments", "as", "t1", "join", "department_stores", "as", "t2", "on", "t1", ".", "dept_store_id", "=", "t2", ".", "dept_store_id", "where", "t1", ".", "department_name", "=", "value" ], "question": "What is the id and name of the department store that has both marketing and managing department?", "question_toks": [ "what", "is", "id", "and", "name", "of", "department", "store", "that", "ha", "both", "marketing", "and", "managing", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 34, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 34, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 42, false ], null ], "\"managing\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 42, false ], null ], "\"marketing\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "is", "the", "id", "and", "name", "of", "the", "department", "store", "that", "has", "both", "marketing", "and", "managing", "department", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "department", "store" ], [ "that" ], [ "ha" ], [ "both" ], [ "marketing" ], [ "and" ], [ "managing" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "store", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "both", "DT" ], [ "marketing", "NN" ], [ "and", "CC" ], [ "managing", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "marketing", "managing" ], "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(27) T(9) A(0) C(28) T(9) Filter(2) A(0) C(33) T(10) V(0) Root(3) Sel(0) N(1) A(0) C(27) T(9) A(0) C(28) T(9) Filter(2) A(0) C(33) T(10) V(1)" }, { "db_id": "department_store", "query": "SELECT T2.dept_store_id , T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = \"marketing\" INTERSECT SELECT T2.dept_store_id , T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = \"managing\"", "query_toks": [ "SELECT", "T2.dept_store_id", ",", "T2.store_name", "FROM", "departments", "AS", "T1", "JOIN", "department_stores", "AS", "T2", "ON", "T1.dept_store_id", "=", "T2.dept_store_id", "WHERE", "T1.department_name", "=", "``", "marketing", "''", "INTERSECT", "SELECT", "T2.dept_store_id", ",", "T2.store_name", "FROM", "departments", "AS", "T1", "JOIN", "department_stores", "AS", "T2", "ON", "T1.dept_store_id", "=", "T2.dept_store_id", "WHERE", "T1.department_name", "=", "``", "managing", "''" ], "query_toks_no_value": [ "select", "t2", ".", "dept_store_id", ",", "t2", ".", "store_name", "from", "departments", "as", "t1", "join", "department_stores", "as", "t2", "on", "t1", ".", "dept_store_id", "=", "t2", ".", "dept_store_id", "where", "t1", ".", "department_name", "=", "value", "intersect", "select", "t2", ".", "dept_store_id", ",", "t2", ".", "store_name", "from", "departments", "as", "t1", "join", "department_stores", "as", "t2", "on", "t1", ".", "dept_store_id", "=", "t2", ".", "dept_store_id", "where", "t1", ".", "department_name", "=", "value" ], "question": "What are the ids and names of department stores with both marketing and managing departments?", "question_toks": [ "what", "are", "id", "and", "name", "of", "department", "store", "with", "both", "marketing", "and", "managing", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 34, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 34, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 42, false ], null ], "\"managing\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 42, false ], null ], "\"marketing\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "names", "of", "department", "stores", "with", "both", "marketing", "and", "managing", "departments", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "department", "store" ], [ "with" ], [ "both" ], [ "marketing" ], [ "and" ], [ "managing" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "store", "NN" ], [ "with", "IN" ], [ "both", "DT" ], [ "marketing", "NN" ], [ "and", "CC" ], [ "managing", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "marketing", "managing" ], "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(27) T(9) A(0) C(28) T(9) Filter(2) A(0) C(33) T(10) V(0) Root(3) Sel(0) N(1) A(0) C(27) T(9) A(0) C(28) T(9) Filter(2) A(0) C(33) T(10) V(1)" }, { "db_id": "department_store", "query": "SELECT dept_store_chain_id FROM department_stores GROUP BY dept_store_chain_id ORDER BY count(*) DESC LIMIT 2", "query_toks": [ "SELECT", "dept_store_chain_id", "FROM", "department_stores", "GROUP", "BY", "dept_store_chain_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "2" ], "query_toks_no_value": [ "select", "dept_store_chain_id", "from", "department_stores", "group", "by", "dept_store_chain_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the ids of the two department store chains with the largest number of department stores?", "question_toks": [ "what", "are", "id", "of", "two", "department", "store", "chain", "with", "largest", "number", "of", "department", "store", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 35, false ] ], "having": [], "intersect": null, "limit": 2, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "two", "department", "store", "chains", "with", "the", "largest", "number", "of", "department", "stores", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "two" ], [ "department", "store", "chain" ], [ "with" ], [ "largest" ], [ "number" ], [ "of" ], [ "department", "store" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "two", "CD" ], [ "department", "NN" ], [ "store", "NN" ], [ "chain", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "store", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(9) Sup(0) A(3) C(0) T(9)" }, { "db_id": "department_store", "query": "SELECT dept_store_chain_id FROM department_stores GROUP BY dept_store_chain_id ORDER BY count(*) DESC LIMIT 2", "query_toks": [ "SELECT", "dept_store_chain_id", "FROM", "department_stores", "GROUP", "BY", "dept_store_chain_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "2" ], "query_toks_no_value": [ "select", "dept_store_chain_id", "from", "department_stores", "group", "by", "dept_store_chain_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the ids of the two department store chains with the most department stores.", "question_toks": [ "return", "id", "of", "two", "department", "store", "chain", "with", "most", "department", "store", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 35, false ] ], "having": [], "intersect": null, "limit": 2, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Return", "the", "ids", "of", "the", "two", "department", "store", "chains", "with", "the", "most", "department", "stores", "." ], "question_arg": [ [ "return" ], [ "id" ], [ "of" ], [ "two" ], [ "department", "store", "chain" ], [ "with" ], [ "most" ], [ "department", "store" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "two", "CD" ], [ "department", "NN" ], [ "store", "NN" ], [ "chain", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "department", "NN" ], [ "store", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(9) Sup(0) A(3) C(0) T(9)" }, { "db_id": "department_store", "query": "SELECT department_id FROM staff_department_assignments GROUP BY department_id ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "department_id", "FROM", "staff_department_assignments", "GROUP", "BY", "department_id", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "department_id", "from", "staff_department_assignments", "group", "by", "department_id", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "What is the id of the department with the least number of staff?", "question_toks": [ "what", "is", "id", "of", "department", "with", "least", "number", "of", "staff", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [ [ 0, 53, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 53, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "department", "with", "the", "least", "number", "of", "staff", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "department" ], [ "with" ], [ "least" ], [ "number" ], [ "of" ], [ "staff" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(32) T(13) Sup(1) A(3) C(0) T(13)" }, { "db_id": "department_store", "query": "SELECT department_id FROM staff_department_assignments GROUP BY department_id ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "department_id", "FROM", "staff_department_assignments", "GROUP", "BY", "department_id", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "department_id", "from", "staff_department_assignments", "group", "by", "department_id", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Return the id of the department with the fewest staff assignments.", "question_toks": [ "return", "id", "of", "department", "with", "fewest", "staff", "assignment", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [ [ 0, 53, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 53, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Return", "the", "id", "of", "the", "department", "with", "the", "fewest", "staff", "assignments", "." ], "question_arg": [ [ "return" ], [ "id" ], [ "of" ], [ "department" ], [ "with" ], [ "fewest" ], [ "staff" ], [ "assignment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "fewest", "JJ" ], [ "staff", "NN" ], [ "assignment", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(32) T(13) Sup(1) A(3) C(0) T(13)" }, { "db_id": "department_store", "query": "SELECT product_type_code , max(product_price) , min(product_price) FROM products GROUP BY product_type_code", "query_toks": [ "SELECT", "product_type_code", ",", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", "FROM", "products", "GROUP", "BY", "product_type_code" ], "query_toks_no_value": [ "select", "product_type_code", ",", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", "from", "products", "group", "by", "product_type_code" ], "question": "For each product type, return the maximum and minimum price.", "question_toks": [ "for", "each", "product", "type", ",", "return", "maximum", "and", "minimum", "price", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 1, [ 0, [ 0, 21, false ], null ] ], [ 2, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "For", "each", "product", "type", ",", "return", "the", "maximum", "and", "minimum", "price", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "product" ], [ "type" ], [ "," ], [ "return" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "product", "NN" ], [ "type", "NN" ], [ ",", "," ], [ "return", "VB" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "price", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(19) T(5) A(1) C(21) T(5) A(2) C(21) T(5)" }, { "db_id": "department_store", "query": "SELECT product_type_code , max(product_price) , min(product_price) FROM products GROUP BY product_type_code", "query_toks": [ "SELECT", "product_type_code", ",", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", "FROM", "products", "GROUP", "BY", "product_type_code" ], "query_toks_no_value": [ "select", "product_type_code", ",", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", "from", "products", "group", "by", "product_type_code" ], "question": "What are the maximum and minimum product prices for each product type?", "question_toks": [ "what", "are", "maximum", "and", "minimum", "product", "price", "for", "each", "product", "type", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 1, [ 0, [ 0, 21, false ], null ] ], [ 2, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "maximum", "and", "minimum", "product", "prices", "for", "each", "product", "type", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "product", "price" ], [ "for" ], [ "each" ], [ "product" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "product", "NN" ], [ "price", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "product", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(19) T(5) A(1) C(21) T(5) A(2) C(21) T(5)" }, { "db_id": "department_store", "query": "SELECT product_type_code FROM products GROUP BY product_type_code HAVING avg(product_price) > (SELECT avg(product_price) FROM products)", "query_toks": [ "SELECT", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "HAVING", "avg", "(", "product_price", ")", ">", "(", "SELECT", "avg", "(", "product_price", ")", "FROM", "products", ")" ], "query_toks_no_value": [ "select", "product_type_code", "from", "products", "group", "by", "product_type_code", "having", "avg", "(", "product_price", ")", ">", "(", "select", "avg", "(", "product_price", ")", "from", "products", ")" ], "question": "Find the product type whose average price is higher than the average price of all products.", "question_toks": [ "find", "product", "type", "whose", "average", "price", "is", "higher", "than", "average", "price", "of", "all", "product", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [ [ false, 3, [ 0, [ 5, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Find", "the", "product", "type", "whose", "average", "price", "is", "higher", "than", "the", "average", "price", "of", "all", "products", "." ], "question_arg": [ [ "find" ], [ "product" ], [ "type" ], [ "whose" ], [ "average" ], [ "price" ], [ "is" ], [ "higher" ], [ "than" ], [ "average" ], [ "price" ], [ "of" ], [ "all" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "product", "NN" ], [ "type", "NN" ], [ "whose", "WP$" ], [ "average", "JJ" ], [ "price", "NN" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(5) Filter(13) A(5) C(21) T(5) Root(5) Sel(0) N(0) A(5) C(21) T(5)" }, { "db_id": "department_store", "query": "SELECT product_type_code FROM products GROUP BY product_type_code HAVING avg(product_price) > (SELECT avg(product_price) FROM products)", "query_toks": [ "SELECT", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "HAVING", "avg", "(", "product_price", ")", ">", "(", "SELECT", "avg", "(", "product_price", ")", "FROM", "products", ")" ], "query_toks_no_value": [ "select", "product_type_code", "from", "products", "group", "by", "product_type_code", "having", "avg", "(", "product_price", ")", ">", "(", "select", "avg", "(", "product_price", ")", "from", "products", ")" ], "question": "What is the code of the product type with an average price higher than the average price of all products?", "question_toks": [ "what", "is", "code", "of", "product", "type", "with", "an", "average", "price", "higher", "than", "average", "price", "of", "all", "product", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [ [ false, 3, [ 0, [ 5, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "is", "the", "code", "of", "the", "product", "type", "with", "an", "average", "price", "higher", "than", "the", "average", "price", "of", "all", "products", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "code" ], [ "of" ], [ "product" ], [ "type" ], [ "with" ], [ "an" ], [ "average" ], [ "price" ], [ "higher" ], [ "than" ], [ "average" ], [ "price" ], [ "of" ], [ "all" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "code", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "type", "NN" ], [ "with", "IN" ], [ "an", "DT" ], [ "average", "JJ" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(5) Filter(13) A(5) C(21) T(5) Root(5) Sel(0) N(0) A(5) C(21) T(5)" }, { "db_id": "department_store", "query": "SELECT T1.staff_id , T1.staff_name FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY date_assigned_to - date_assigned_from LIMIT 1", "query_toks": [ "SELECT", "T1.staff_id", ",", "T1.staff_name", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "ORDER", "BY", "date_assigned_to", "-", "date_assigned_from", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "staff_id", ",", "t1", ".", "staff_name", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "order", "by", "date_assigned_to", "-", "date_assigned_from", "limit", "value" ], "question": "Find the id and name of the staff who has been assigned for the shortest period.", "question_toks": [ "find", "id", "and", "name", "of", "staff", "who", "ha", "been", "assigned", "for", "shortest", "period", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 52, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 1, [ 0, 56, false ], [ 0, 54, false ] ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Find", "the", "id", "and", "name", "of", "the", "staff", "who", "has", "been", "assigned", "for", "the", "shortest", "period", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "staff" ], [ "who" ], [ "ha" ], [ "been" ], [ "assigned" ], [ "for" ], [ "shortest" ], [ "period" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "who", "WP" ], [ "ha", "VBD" ], [ "been", "VBN" ], [ "assigned", "VBN" ], [ "for", "IN" ], [ "shortest", "JJ" ], [ "period", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(3) T(1) A(0) C(5) T(1) Sup(1) A(0) C(41) T(13)" }, { "db_id": "department_store", "query": "SELECT T1.staff_id , T1.staff_name FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY date_assigned_to - date_assigned_from LIMIT 1", "query_toks": [ "SELECT", "T1.staff_id", ",", "T1.staff_name", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "ORDER", "BY", "date_assigned_to", "-", "date_assigned_from", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "staff_id", ",", "t1", ".", "staff_name", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "order", "by", "date_assigned_to", "-", "date_assigned_from", "limit", "value" ], "question": "What is the id and name of the staff who has been assigned for the least amount of time?", "question_toks": [ "what", "is", "id", "and", "name", "of", "staff", "who", "ha", "been", "assigned", "for", "least", "amount", "of", "time", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 52, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 1, [ 0, 56, false ], [ 0, 54, false ] ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "is", "the", "id", "and", "name", "of", "the", "staff", "who", "has", "been", "assigned", "for", "the", "least", "amount", "of", "time", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "staff" ], [ "who" ], [ "ha" ], [ "been" ], [ "assigned" ], [ "for" ], [ "least" ], [ "amount" ], [ "of" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "who", "WP" ], [ "ha", "VBD" ], [ "been", "VBN" ], [ "assigned", "VBN" ], [ "for", "IN" ], [ "least", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(3) T(1) A(0) C(5) T(1) Sup(1) A(0) C(41) T(13)" }, { "db_id": "department_store", "query": "SELECT product_name , product_id FROM products WHERE product_price BETWEEN 600 AND 700", "query_toks": [ "SELECT", "product_name", ",", "product_id", "FROM", "products", "WHERE", "product_price", "BETWEEN", "600", "AND", "700" ], "query_toks_no_value": [ "select", "product_name", ",", "product_id", "from", "products", "where", "product_price", "between", "value", "and", "value" ], "question": "Return the names and ids of all products whose price is between 600 and 700.", "question_toks": [ "return", "name", "and", "id", "of", "all", "product", "whose", "price", "is", "between", "600", "and", "700", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 21, false ], null ], 600.0, 700.0 ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Return", "the", "names", "and", "ids", "of", "all", "products", "whose", "price", "is", "between", "600", "and", "700", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "all" ], [ "product" ], [ "whose" ], [ "price" ], [ "is" ], [ "between" ], [ "600" ], [ "and" ], [ "700" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "whose", "WP$" ], [ "price", "NN" ], [ "is", "VBZ" ], [ "between", "IN" ], [ "600", "CD" ], [ "and", "CC" ], [ "700", "CD" ], [ ".", "." ] ], "values": [ "600", "700" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(20) T(5) A(0) C(18) T(5) Filter(8) A(0) C(21) T(5) V(0) V(1)" }, { "db_id": "department_store", "query": "SELECT product_name , product_id FROM products WHERE product_price BETWEEN 600 AND 700", "query_toks": [ "SELECT", "product_name", ",", "product_id", "FROM", "products", "WHERE", "product_price", "BETWEEN", "600", "AND", "700" ], "query_toks_no_value": [ "select", "product_name", ",", "product_id", "from", "products", "where", "product_price", "between", "value", "and", "value" ], "question": "What are the names and ids of products costing between 600 and 700?", "question_toks": [ "what", "are", "name", "and", "id", "of", "product", "costing", "between", "600", "and", "700", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 21, false ], null ], 600.0, 700.0 ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "ids", "of", "products", "costing", "between", "600", "and", "700", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "product" ], [ "costing" ], [ "between" ], [ "600" ], [ "and" ], [ "700" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "costing", "VBG" ], [ "between", "IN" ], [ "600", "CD" ], [ "and", "CC" ], [ "700", "CD" ], [ "?", "." ] ], "values": [ "700", "600" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(20) T(5) A(0) C(18) T(5) Filter(8) A(0) C(21) T(5) V(1) V(0)" }, { "db_id": "department_store", "query": "SELECT DISTINCT customer_id FROM Customer_Orders WHERE order_date > (SELECT min(order_date) FROM Customer_Orders WHERE order_status_code = \"Cancelled\")", "query_toks": [ "SELECT", "DISTINCT", "customer_id", "FROM", "Customer_Orders", "WHERE", "order_date", ">", "(", "SELECT", "min", "(", "order_date", ")", "FROM", "Customer_Orders", "WHERE", "order_status_code", "=", "``", "Cancelled", "''", ")" ], "query_toks_no_value": [ "select", "distinct", "customer_id", "from", "customer_orders", "where", "order_date", ">", "(", "select", "min", "(", "order_date", ")", "from", "customer_orders", "where", "order_status_code", "=", "value", ")" ], "question": "Find the ids of all distinct customers who made order after some orders that were Cancelled.", "question_toks": [ "find", "id", "of", "all", "distinct", "customer", "who", "made", "order", "after", "some", "order", "that", "were", "cancelled", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 33, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 32, false ], null ], "\"Cancelled\"", null ] ] }, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Find", "the", "ids", "of", "all", "distinct", "customers", "who", "made", "order", "after", "some", "orders", "that", "were", "Cancelled", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "all" ], [ "distinct" ], [ "customer" ], [ "who" ], [ "made" ], [ "order" ], [ "after" ], [ "some" ], [ "order" ], [ "that" ], [ "were" ], [ "cancelled" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "customer", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "order", "NN" ], [ "after", "IN" ], [ "some", "DT" ], [ "order", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "cancelled", "VBN" ], [ ".", "." ] ], "values": [ "Cancelled" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(11) T(8) Filter(13) A(0) C(26) T(8) Root(3) Sel(0) N(0) A(2) C(26) T(8) Filter(2) A(0) C(25) T(8) V(0)" }, { "db_id": "department_store", "query": "SELECT DISTINCT customer_id FROM Customer_Orders WHERE order_date > (SELECT min(order_date) FROM Customer_Orders WHERE order_status_code = \"Cancelled\")", "query_toks": [ "SELECT", "DISTINCT", "customer_id", "FROM", "Customer_Orders", "WHERE", "order_date", ">", "(", "SELECT", "min", "(", "order_date", ")", "FROM", "Customer_Orders", "WHERE", "order_status_code", "=", "``", "Cancelled", "''", ")" ], "query_toks_no_value": [ "select", "distinct", "customer_id", "from", "customer_orders", "where", "order_date", ">", "(", "select", "min", "(", "order_date", ")", "from", "customer_orders", "where", "order_status_code", "=", "value", ")" ], "question": "What are the distinct ids of customers who made an order after any order that was Cancelled?", "question_toks": [ "what", "are", "distinct", "id", "of", "customer", "who", "made", "an", "order", "after", "any", "order", "that", "wa", "cancelled", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 33, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 32, false ], null ], "\"Cancelled\"", null ] ] }, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "distinct", "ids", "of", "customers", "who", "made", "an", "order", "after", "any", "order", "that", "was", "Cancelled", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "id" ], [ "of" ], [ "customer" ], [ "who" ], [ "made" ], [ "an" ], [ "order" ], [ "after" ], [ "any" ], [ "order" ], [ "that" ], [ "wa" ], [ "cancelled" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "id", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "an", "DT" ], [ "order", "NN" ], [ "after", "IN" ], [ "any", "DT" ], [ "order", "NN" ], [ "that", "WDT" ], [ "wa", "VBZ" ], [ "cancelled", "VBN" ], [ "?", "." ] ], "values": [ "Cancelled" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(11) T(8) Filter(13) A(0) C(26) T(8) Root(3) Sel(0) N(0) A(2) C(26) T(8) Filter(2) A(0) C(25) T(8) V(0)" }, { "db_id": "department_store", "query": "SELECT staff_id FROM Staff_Department_Assignments WHERE date_assigned_to < (SELECT max(date_assigned_to) FROM Staff_Department_Assignments WHERE job_title_code = 'Clerical Staff')", "query_toks": [ "SELECT", "staff_id", "FROM", "Staff_Department_Assignments", "WHERE", "date_assigned_to", "<", "(", "SELECT", "max", "(", "date_assigned_to", ")", "FROM", "Staff_Department_Assignments", "WHERE", "job_title_code", "=", "'Clerical", "Staff", "'", ")" ], "query_toks_no_value": [ "select", "staff_id", "from", "staff_department_assignments", "where", "date_assigned_to", "<", "(", "select", "max", "(", "date_assigned_to", ")", "from", "staff_department_assignments", "where", "job_title_code", "=", "value", ")" ], "question": "What is id of the staff who had a Staff Department Assignment earlier than any Clerical Staff?", "question_toks": [ "what", "is", "id", "of", "staff", "who", "had", "a", "staff", "department", "assignment", "earlier", "than", "any", "clerical", "staff", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 52, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 56, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 56, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 55, false ], null ], "\"Clerical Staff\"", null ] ] }, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "is", "id", "of", "the", "staff", "who", "had", "a", "Staff", "Department", "Assignment", "earlier", "than", "any", "Clerical", "Staff", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "staff" ], [ "who" ], [ "had" ], [ "a" ], [ "staff", "department", "assignment" ], [ "earlier" ], [ "than" ], [ "any" ], [ "clerical" ], [ "staff" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "a", "DT" ], [ "staff", "NN" ], [ "department", "NN" ], [ "assignment", "NN" ], [ "earlier", "RBR" ], [ "than", "IN" ], [ "any", "DT" ], [ "clerical", "JJ" ], [ "staff", "NN" ], [ "?", "." ] ], "values": [ "Clerical Staff" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(13) Filter(12) A(0) C(41) T(13) Root(3) Sel(0) N(0) A(1) C(41) T(13) Filter(2) A(0) C(40) T(13) V(0)" }, { "db_id": "department_store", "query": "SELECT staff_id FROM Staff_Department_Assignments WHERE date_assigned_to < (SELECT max(date_assigned_to) FROM Staff_Department_Assignments WHERE job_title_code = 'Clerical Staff')", "query_toks": [ "SELECT", "staff_id", "FROM", "Staff_Department_Assignments", "WHERE", "date_assigned_to", "<", "(", "SELECT", "max", "(", "date_assigned_to", ")", "FROM", "Staff_Department_Assignments", "WHERE", "job_title_code", "=", "'Clerical", "Staff", "'", ")" ], "query_toks_no_value": [ "select", "staff_id", "from", "staff_department_assignments", "where", "date_assigned_to", "<", "(", "select", "max", "(", "date_assigned_to", ")", "from", "staff_department_assignments", "where", "job_title_code", "=", "value", ")" ], "question": "Return the id of the staff whose Staff Department Assignment was earlier than that of any Clerical Staff.", "question_toks": [ "return", "id", "of", "staff", "whose", "staff", "department", "assignment", "wa", "earlier", "than", "that", "of", "any", "clerical", "staff", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 52, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 56, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 56, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 55, false ], null ], "\"Clerical Staff\"", null ] ] }, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Return", "the", "id", "of", "the", "staff", "whose", "Staff", "Department", "Assignment", "was", "earlier", "than", "that", "of", "any", "Clerical", "Staff", "." ], "question_arg": [ [ "return" ], [ "id" ], [ "of" ], [ "staff" ], [ "whose" ], [ "staff", "department", "assignment" ], [ "wa" ], [ "earlier" ], [ "than" ], [ "that" ], [ "of" ], [ "any" ], [ "clerical" ], [ "staff" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "whose", "WP$" ], [ "staff", "NN" ], [ "department", "NN" ], [ "assignment", "NN" ], [ "wa", "NN" ], [ "earlier", "RBR" ], [ "than", "IN" ], [ "that", "DT" ], [ "of", "IN" ], [ "any", "DT" ], [ "clerical", "JJ" ], [ "staff", "NN" ], [ ".", "." ] ], "values": [ "Clerical Staff" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(13) Filter(12) A(0) C(41) T(13) Root(3) Sel(0) N(0) A(1) C(41) T(13) Filter(2) A(0) C(40) T(13) V(0)" }, { "db_id": "department_store", "query": "SELECT customer_name , customer_id FROM customers WHERE customer_address LIKE \"%TN%\"", "query_toks": [ "SELECT", "customer_name", ",", "customer_id", "FROM", "customers", "WHERE", "customer_address", "LIKE", "``", "%", "TN", "%", "''" ], "query_toks_no_value": [ "select", "customer_name", ",", "customer_id", "from", "customers", "where", "customer_address", "like", "value" ], "question": "What are the names and ids of customers whose address contains TN?", "question_toks": [ "what", "are", "name", "and", "id", "of", "customer", "whose", "address", "contains", "tn", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%TN%\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "ids", "of", "customers", "whose", "address", "contains", "TN", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "customer" ], [ "whose" ], [ "address" ], [ "contains" ], [ "tn" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "address", "NN" ], [ "contains", "VBZ" ], [ "tn", "RP" ], [ "?", "." ] ], "values": [ "TN" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(4) A(0) C(11) T(4) Filter(9) A(0) C(15) T(4) V(0)" }, { "db_id": "department_store", "query": "SELECT customer_name , customer_id FROM customers WHERE customer_address LIKE \"%TN%\"", "query_toks": [ "SELECT", "customer_name", ",", "customer_id", "FROM", "customers", "WHERE", "customer_address", "LIKE", "``", "%", "TN", "%", "''" ], "query_toks_no_value": [ "select", "customer_name", ",", "customer_id", "from", "customers", "where", "customer_address", "like", "value" ], "question": "Return the names and ids of customers who have TN in their address.", "question_toks": [ "return", "name", "and", "id", "of", "customer", "who", "have", "tn", "in", "their", "address", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%TN%\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Return", "the", "names", "and", "ids", "of", "customers", "who", "have", "TN", "in", "their", "address", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "tn" ], [ "in" ], [ "their" ], [ "address" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "tn", "VBN" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "address", "NN" ], [ ".", "." ] ], "values": [ "TN" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(4) A(0) C(11) T(4) Filter(9) A(0) C(15) T(4) V(0)" }, { "db_id": "department_store", "query": "SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.date_assigned_from LIKE \"2016%\"", "query_toks": [ "SELECT", "T1.staff_name", ",", "T1.staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "staff_department_assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.date_assigned_from", "LIKE", "``", "2016", "%", "''" ], "query_toks_no_value": [ "select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "date_assigned_from", "like", "value" ], "question": "Return the name and gender of the staff who was assigned in 2016.", "question_toks": [ "return", "name", "and", "gender", "of", "staff", "who", "wa", "assigned", "in", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 52, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 54, false ], null ], "\"2016%\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Return", "the", "name", "and", "gender", "of", "the", "staff", "who", "was", "assigned", "in", "2016", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "and" ], [ "gender" ], [ "of" ], [ "staff" ], [ "who" ], [ "wa" ], [ "assigned" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "gender", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "who", "WP" ], [ "wa", "VBP" ], [ "assigned", "VBN" ], [ "in", "IN" ], [ "2016", "CD" ], [ ".", "." ] ], "values": [ "2016" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(4) T(1) Filter(9) A(0) C(39) T(13) V(0)" }, { "db_id": "department_store", "query": "SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.date_assigned_from LIKE \"2016%\"", "query_toks": [ "SELECT", "T1.staff_name", ",", "T1.staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "staff_department_assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.date_assigned_from", "LIKE", "``", "2016", "%", "''" ], "query_toks_no_value": [ "select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "date_assigned_from", "like", "value" ], "question": "What are the names and genders of staff who were assigned in 2016?", "question_toks": [ "what", "are", "name", "and", "gender", "of", "staff", "who", "were", "assigned", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 52, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 54, false ], null ], "\"2016%\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "genders", "of", "staff", "who", "were", "assigned", "in", "2016", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "gender" ], [ "of" ], [ "staff" ], [ "who" ], [ "were" ], [ "assigned" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "gender", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "who", "WP" ], [ "were", "VBD" ], [ "assigned", "VBN" ], [ "in", "IN" ], [ "2016", "CD" ], [ "?", "." ] ], "values": [ "2016" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(4) T(1) Filter(9) A(0) C(39) T(13) V(0)" }, { "db_id": "department_store", "query": "SELECT T1.staff_name FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id GROUP BY T2.staff_id HAVING COUNT (*) > 1", "query_toks": [ "SELECT", "T1.staff_name", "FROM", "staff", "AS", "T1", "JOIN", "staff_department_assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "GROUP", "BY", "T2.staff_id", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "staff_name", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "group", "by", "t2", ".", "staff_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "List the name of staff who has been assigned multiple jobs.", "question_toks": [ "list", "name", "of", "staff", "who", "ha", "been", "assigned", "multiple", "job", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 52, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 13 ] ] }, "groupBy": [ [ 0, 52, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 52, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 13 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "List", "the", "name", "of", "staff", "who", "has", "been", "assigned", "multiple", "jobs", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "staff" ], [ "who" ], [ "ha" ], [ "been" ], [ "assigned" ], [ "multiple" ], [ "job" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "who", "WP" ], [ "ha", "VBD" ], [ "been", "VBN" ], [ "assigned", "VBN" ], [ "multiple", "JJ" ], [ "job", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(13) Filter(5) A(3) C(0) T(13) V(0)" }, { "db_id": "department_store", "query": "SELECT T1.staff_name FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id GROUP BY T2.staff_id HAVING COUNT (*) > 1", "query_toks": [ "SELECT", "T1.staff_name", "FROM", "staff", "AS", "T1", "JOIN", "staff_department_assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "GROUP", "BY", "T2.staff_id", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "staff_name", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "group", "by", "t2", ".", "staff_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the names of staff who have been assigned multiple jobs?", "question_toks": [ "what", "are", "name", "of", "staff", "who", "have", "been", "assigned", "multiple", "job", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 52, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 13 ] ] }, "groupBy": [ [ 0, 52, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 52, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 13 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "staff", "who", "have", "been", "assigned", "multiple", "jobs", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "staff" ], [ "who" ], [ "have" ], [ "been" ], [ "assigned" ], [ "multiple" ], [ "job" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "assigned", "VBN" ], [ "multiple", "JJ" ], [ "job", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(13) Filter(5) A(3) C(0) T(13) V(0)" }, { "db_id": "department_store", "query": "SELECT T1.supplier_name , T1.supplier_phone FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id = T2.supplier_id JOIN addresses AS T3 ON T2.address_id = T3.address_id ORDER BY T3.address_details", "query_toks": [ "SELECT", "T1.supplier_name", ",", "T1.supplier_phone", "FROM", "Suppliers", "AS", "T1", "JOIN", "supplier_addresses", "AS", "T2", "ON", "T1.supplier_id", "=", "T2.supplier_id", "JOIN", "addresses", "AS", "T3", "ON", "T2.address_id", "=", "T3.address_id", "ORDER", "BY", "T3.address_details" ], "query_toks_no_value": [ "select", "t1", ".", "supplier_name", ",", "t1", ".", "supplier_phone", "from", "suppliers", "as", "t1", "join", "supplier_addresses", "as", "t2", "on", "t1", ".", "supplier_id", "=", "t2", ".", "supplier_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", "order", "by", "t3", ".", "address_details" ], "question": "List the name and phone number of all suppliers in the alphabetical order of their addresses.", "question_toks": [ "list", "name", "and", "phone", "number", "of", "all", "supplier", "in", "alphabetical", "order", "of", "their", "address", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 2, false ], null ] ] ], "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, 22, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "List", "the", "name", "and", "phone", "number", "of", "all", "suppliers", "in", "the", "alphabetical", "order", "of", "their", "addresses", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "phone" ], [ "number" ], [ "of" ], [ "all" ], [ "supplier" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "their" ], [ "address" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "supplier", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "address", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(7) T(2) A(0) C(8) T(2) Filter(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(6) Order(1) A(0) C(2) T(0)" }, { "db_id": "department_store", "query": "SELECT T1.supplier_name , T1.supplier_phone FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id = T2.supplier_id JOIN addresses AS T3 ON T2.address_id = T3.address_id ORDER BY T3.address_details", "query_toks": [ "SELECT", "T1.supplier_name", ",", "T1.supplier_phone", "FROM", "Suppliers", "AS", "T1", "JOIN", "supplier_addresses", "AS", "T2", "ON", "T1.supplier_id", "=", "T2.supplier_id", "JOIN", "addresses", "AS", "T3", "ON", "T2.address_id", "=", "T3.address_id", "ORDER", "BY", "T3.address_details" ], "query_toks_no_value": [ "select", "t1", ".", "supplier_name", ",", "t1", ".", "supplier_phone", "from", "suppliers", "as", "t1", "join", "supplier_addresses", "as", "t2", "on", "t1", ".", "supplier_id", "=", "t2", ".", "supplier_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", "order", "by", "t3", ".", "address_details" ], "question": "What are the names and phone numbers for all suppliers, sorted in alphabetical order of their addressed?", "question_toks": [ "what", "are", "name", "and", "phone", "number", "for", "all", "supplier", ",", "sorted", "in", "alphabetical", "order", "of", "their", "addressed", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 2, false ], null ] ] ], "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, 22, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "phone", "numbers", "for", "all", "suppliers", ",", "sorted", "in", "alphabetical", "order", "of", "their", "addressed", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "phone" ], [ "number" ], [ "for" ], [ "all" ], [ "supplier" ], [ "," ], [ "sorted" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "their" ], [ "addressed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "supplier", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "addressed", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(7) T(2) A(0) C(8) T(2) Filter(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(6) Order(1) A(0) C(2) T(0)" }, { "db_id": "department_store", "query": "SELECT customer_phone FROM customers UNION SELECT supplier_phone FROM suppliers", "query_toks": [ "SELECT", "customer_phone", "FROM", "customers", "UNION", "SELECT", "supplier_phone", "FROM", "suppliers" ], "query_toks_no_value": [ "select", "customer_phone", "from", "customers", "union", "select", "supplier_phone", "from", "suppliers" ], "question": "What are the phone numbers of all customers and suppliers.", "question_toks": [ "what", "are", "phone", "number", "of", "all", "customer", "and", "supplier", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": { "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": [] }, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "phone", "numbers", "of", "all", "customers", "and", "suppliers", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "phone" ], [ "number" ], [ "of" ], [ "all" ], [ "customer" ], [ "and" ], [ "supplier" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "and", "CC" ], [ "supplier", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(1) Root(5) Sel(0) N(0) A(0) C(16) T(4) Root(5) Sel(0) N(0) A(0) C(8) T(2)" }, { "db_id": "department_store", "query": "SELECT customer_phone FROM customers UNION SELECT supplier_phone FROM suppliers", "query_toks": [ "SELECT", "customer_phone", "FROM", "customers", "UNION", "SELECT", "supplier_phone", "FROM", "suppliers" ], "query_toks_no_value": [ "select", "customer_phone", "from", "customers", "union", "select", "supplier_phone", "from", "suppliers" ], "question": "Return the phone numbers for all customers and suppliers.", "question_toks": [ "return", "phone", "number", "for", "all", "customer", "and", "supplier", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": { "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": [] }, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Return", "the", "phone", "numbers", "for", "all", "customers", "and", "suppliers", "." ], "question_arg": [ [ "return" ], [ "phone" ], [ "number" ], [ "for" ], [ "all" ], [ "customer" ], [ "and" ], [ "supplier" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "phone", "NN" ], [ "number", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "and", "CC" ], [ "supplier", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(1) Root(5) Sel(0) N(0) A(0) C(16) T(4) Root(5) Sel(0) N(0) A(0) C(8) T(2)" }, { "db_id": "department_store", "query": "SELECT product_id FROM Order_Items GROUP BY product_id HAVING count(*) > 3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING sum(total_amount_purchased) > 80000", "query_toks": [ "SELECT", "product_id", "FROM", "Order_Items", "GROUP", "BY", "product_id", "HAVING", "count", "(", "*", ")", ">", "3", "UNION", "SELECT", "product_id", "FROM", "Product_Suppliers", "GROUP", "BY", "product_id", "HAVING", "sum", "(", "total_amount_purchased", ")", ">", "80000" ], "query_toks_no_value": [ "select", "product_id", "from", "order_items", "group", "by", "product_id", "having", "count", "(", "*", ")", ">", "value", "union", "select", "product_id", "from", "product_suppliers", "group", "by", "product_id", "having", "sum", "(", "total_amount_purchased", ")", ">", "value" ], "question": "Return the ids of all products that were ordered more than three times or supplied more than 80000.", "question_toks": [ "return", "id", "of", "all", "product", "that", "were", "ordered", "more", "than", "three", "time", "or", "supplied", "more", "than", "80000", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 45, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 46, false ] ], "having": [ [ false, 3, [ 0, [ 4, 50, false ], null ], 80000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Return", "the", "ids", "of", "all", "products", "that", "were", "ordered", "more", "than", "three", "times", "or", "supplied", "more", "than", "80000", "." ], "question_arg": [ [ "return" ], [ "id" ], [ "of" ], [ "all" ], [ "product" ], [ "that" ], [ "were" ], [ "ordered" ], [ "more" ], [ "than" ], [ "three" ], [ "time" ], [ "or" ], [ "supplied" ], [ "more" ], [ "than" ], [ "80000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "ordered", "VBN" ], [ "more", "RBR" ], [ "than", "IN" ], [ "three", "CD" ], [ "time", "NN" ], [ "or", "CC" ], [ "supplied", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "80000", "CD" ], [ ".", "." ] ], "values": [ "80000", "3" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(18) T(11) Filter(5) A(3) C(0) T(11) V(1) Root(3) Sel(0) N(0) A(0) C(18) T(12) Filter(5) A(4) C(37) T(12) V(0)" }, { "db_id": "department_store", "query": "SELECT product_id FROM Order_Items GROUP BY product_id HAVING count(*) > 3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING sum(total_amount_purchased) > 80000", "query_toks": [ "SELECT", "product_id", "FROM", "Order_Items", "GROUP", "BY", "product_id", "HAVING", "count", "(", "*", ")", ">", "3", "UNION", "SELECT", "product_id", "FROM", "Product_Suppliers", "GROUP", "BY", "product_id", "HAVING", "sum", "(", "total_amount_purchased", ")", ">", "80000" ], "query_toks_no_value": [ "select", "product_id", "from", "order_items", "group", "by", "product_id", "having", "count", "(", "*", ")", ">", "value", "union", "select", "product_id", "from", "product_suppliers", "group", "by", "product_id", "having", "sum", "(", "total_amount_purchased", ")", ">", "value" ], "question": "What are the ids of all products that were either ordered more than 3 times or have a cumulative amount purchased of above 80000?", "question_toks": [ "what", "are", "id", "of", "all", "product", "that", "were", "either", "ordered", "more", "than", "3", "time", "or", "have", "a", "cumulative", "amount", "purchased", "of", "above", "80000", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 45, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 46, false ] ], "having": [ [ false, 3, [ 0, [ 4, 50, false ], null ], 80000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "products", "that", "were", "either", "ordered", "more", "than", "3", "times", "or", "have", "a", "cumulative", "amount", "purchased", "of", "above", "80000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "product" ], [ "that" ], [ "were" ], [ "either" ], [ "ordered" ], [ "more" ], [ "than" ], [ "3" ], [ "time" ], [ "or" ], [ "have" ], [ "a" ], [ "cumulative" ], [ "total", "amount", "purchased" ], [ "of" ], [ "above" ], [ "80000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "either", "RB" ], [ "ordered", "VBN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "time", "NN" ], [ "or", "CC" ], [ "have", "VB" ], [ "a", "DT" ], [ "cumulative", "JJ" ], [ "amount", "NN" ], [ "purchased", "VBD" ], [ "of", "IN" ], [ "above", "IN" ], [ "80000", "CD" ], [ "?", "." ] ], "values": [ "80000", "3" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(18) T(11) Filter(5) A(3) C(0) T(11) V(1) Root(3) Sel(0) N(0) A(0) C(18) T(12) Filter(5) A(4) C(37) T(12) V(0)" }, { "db_id": "department_store", "query": "SELECT product_id , product_name FROM products WHERE product_price < 600 OR product_price > 900", "query_toks": [ "SELECT", "product_id", ",", "product_name", "FROM", "products", "WHERE", "product_price", "<", "600", "OR", "product_price", ">", "900" ], "query_toks_no_value": [ "select", "product_id", ",", "product_name", "from", "products", "where", "product_price", "<", "value", "or", "product_price", ">", "value" ], "question": "What are id and name of the products whose price is lower than 600 or higher than 900?", "question_toks": [ "what", "are", "id", "and", "name", "of", "product", "whose", "price", "is", "lower", "than", "600", "or", "higher", "than", "900", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 21, false ], null ], 600.0, null ], "or", [ false, 3, [ 0, [ 0, 21, false ], null ], 900.0, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "id", "and", "name", "of", "the", "products", "whose", "price", "is", "lower", "than", "600", "or", "higher", "than", "900", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "product" ], [ "whose" ], [ "price" ], [ "is" ], [ "lower" ], [ "than" ], [ "600" ], [ "or" ], [ "higher" ], [ "than" ], [ "900" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "whose", "WP$" ], [ "price", "NN" ], [ "is", "VBZ" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "600", "CD" ], [ "or", "CC" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "900", "CD" ], [ "?", "." ] ], "values": [ "600", "900" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(18) T(5) A(0) C(20) T(5) Filter(1) Filter(4) A(0) C(21) T(5) V(0) Filter(5) A(0) C(21) T(5) V(1)" }, { "db_id": "department_store", "query": "SELECT product_id , product_name FROM products WHERE product_price < 600 OR product_price > 900", "query_toks": [ "SELECT", "product_id", ",", "product_name", "FROM", "products", "WHERE", "product_price", "<", "600", "OR", "product_price", ">", "900" ], "query_toks_no_value": [ "select", "product_id", ",", "product_name", "from", "products", "where", "product_price", "<", "value", "or", "product_price", ">", "value" ], "question": "Give the ids and names of products with price lower than 600 or higher than 900.", "question_toks": [ "give", "id", "and", "name", "of", "product", "with", "price", "lower", "than", "600", "or", "higher", "than", "900", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 21, false ], null ], 600.0, null ], "or", [ false, 3, [ 0, [ 0, 21, false ], null ], 900.0, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Give", "the", "ids", "and", "names", "of", "products", "with", "price", "lower", "than", "600", "or", "higher", "than", "900", "." ], "question_arg": [ [ "give" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "product" ], [ "with" ], [ "price" ], [ "lower" ], [ "than" ], [ "600" ], [ "or" ], [ "higher" ], [ "than" ], [ "900" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "600", "CD" ], [ "or", "CC" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "900", "CD" ], [ ".", "." ] ], "values": [ "600", "900" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(18) T(5) A(0) C(20) T(5) Filter(1) Filter(4) A(0) C(21) T(5) V(0) Filter(5) A(0) C(21) T(5) V(1)" }, { "db_id": "department_store", "query": "SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id HAVING avg(total_amount_purchased) > 50000 OR avg(total_amount_purchased) < 30000", "query_toks": [ "SELECT", "supplier_id", "FROM", "Product_Suppliers", "GROUP", "BY", "supplier_id", "HAVING", "avg", "(", "total_amount_purchased", ")", ">", "50000", "OR", "avg", "(", "total_amount_purchased", ")", "<", "30000" ], "query_toks_no_value": [ "select", "supplier_id", "from", "product_suppliers", "group", "by", "supplier_id", "having", "avg", "(", "total_amount_purchased", ")", ">", "value", "or", "avg", "(", "total_amount_purchased", ")", "<", "value" ], "question": "Find the id of suppliers whose average amount purchased for each product is above 50000 or below 30000.", "question_toks": [ "find", "id", "of", "supplier", "whose", "average", "amount", "purchased", "for", "each", "product", "is", "above", "50000", "or", "below", "30000", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 47, false ] ], "having": [ [ false, 3, [ 0, [ 5, 50, false ], null ], 50000.0, null ], "or", [ false, 4, [ 0, [ 5, 50, false ], null ], 30000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 47, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Find", "the", "id", "of", "suppliers", "whose", "average", "amount", "purchased", "for", "each", "product", "is", "above", "50000", "or", "below", "30000", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "supplier" ], [ "whose" ], [ "average" ], [ "total", "amount", "purchased" ], [ "for" ], [ "each" ], [ "product" ], [ "is" ], [ "above" ], [ "50000" ], [ "or" ], [ "below" ], [ "30000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "supplier", "NN" ], [ "whose", "WP$" ], [ "average", "JJ" ], [ "amount", "NN" ], [ "purchased", "VBD" ], [ "for", "IN" ], [ "each", "DT" ], [ "product", "NN" ], [ "is", "VBZ" ], [ "above", "JJ" ], [ "50000", "CD" ], [ "or", "CC" ], [ "below", "IN" ], [ "30000", "CD" ], [ ".", "." ] ], "values": [ "30000", "50000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(12) Filter(5) A(5) C(37) T(12) V(1)" }, { "db_id": "department_store", "query": "SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id HAVING avg(total_amount_purchased) > 50000 OR avg(total_amount_purchased) < 30000", "query_toks": [ "SELECT", "supplier_id", "FROM", "Product_Suppliers", "GROUP", "BY", "supplier_id", "HAVING", "avg", "(", "total_amount_purchased", ")", ">", "50000", "OR", "avg", "(", "total_amount_purchased", ")", "<", "30000" ], "query_toks_no_value": [ "select", "supplier_id", "from", "product_suppliers", "group", "by", "supplier_id", "having", "avg", "(", "total_amount_purchased", ")", ">", "value", "or", "avg", "(", "total_amount_purchased", ")", "<", "value" ], "question": "What are the ids of suppliers which have an average amount purchased of above 50000 or below 30000?", "question_toks": [ "what", "are", "id", "of", "supplier", "which", "have", "an", "average", "amount", "purchased", "of", "above", "50000", "or", "below", "30000", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 47, false ] ], "having": [ [ false, 3, [ 0, [ 5, 50, false ], null ], 50000.0, null ], "or", [ false, 4, [ 0, [ 5, 50, false ], null ], 30000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 47, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "suppliers", "which", "have", "an", "average", "amount", "purchased", "of", "above", "50000", "or", "below", "30000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "supplier" ], [ "which" ], [ "have" ], [ "an" ], [ "average" ], [ "total", "amount", "purchased" ], [ "of" ], [ "above" ], [ "50000" ], [ "or" ], [ "below" ], [ "30000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "supplier", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "an", "DT" ], [ "average", "JJ" ], [ "amount", "NN" ], [ "purchased", "VBD" ], [ "of", "IN" ], [ "above", "IN" ], [ "50000", "CD" ], [ "or", "CC" ], [ "below", "IN" ], [ "30000", "CD" ], [ "?", "." ] ], "values": [ "30000", "50000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(12) Filter(5) A(5) C(37) T(12) V(1)" }, { "db_id": "department_store", "query": "SELECT avg(total_amount_purchased) , avg(total_value_purchased) FROM Product_Suppliers WHERE supplier_id = (SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "avg", "(", "total_amount_purchased", ")", ",", "avg", "(", "total_value_purchased", ")", "FROM", "Product_Suppliers", "WHERE", "supplier_id", "=", "(", "SELECT", "supplier_id", "FROM", "Product_Suppliers", "GROUP", "BY", "supplier_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "avg", "(", "total_amount_purchased", ")", ",", "avg", "(", "total_value_purchased", ")", "from", "product_suppliers", "where", "supplier_id", "=", "(", "select", "supplier_id", "from", "product_suppliers", "group", "by", "supplier_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "What are the average amount purchased and value purchased for the supplier who supplies the most products.", "question_toks": [ "what", "are", "average", "amount", "purchased", "and", "value", "purchased", "for", "supplier", "who", "supply", "most", "product", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 50, false ], null ] ], [ 5, [ 0, [ 0, 51, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 47, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 47, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 47, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "average", "amount", "purchased", "and", "value", "purchased", "for", "the", "supplier", "who", "supplies", "the", "most", "products", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "total", "amount", "purchased" ], [ "and" ], [ "total", "value", "purchased" ], [ "for" ], [ "supplier" ], [ "who" ], [ "supply" ], [ "most" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "amount", "NN" ], [ "purchased", "VBD" ], [ "and", "CC" ], [ "value", "NN" ], [ "purchased", "VBN" ], [ "for", "IN" ], [ "supplier", "NN" ], [ "who", "WP" ], [ "supply", "VBZ" ], [ "most", "RBS" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(37) T(12) A(5) C(38) T(12) Filter(11) A(0) C(6) T(12) Root(2) Sel(0) N(0) A(0) C(6) T(12) Sup(0) A(3) C(0) T(12)" }, { "db_id": "department_store", "query": "SELECT avg(total_amount_purchased) , avg(total_value_purchased) FROM Product_Suppliers WHERE supplier_id = (SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "avg", "(", "total_amount_purchased", ")", ",", "avg", "(", "total_value_purchased", ")", "FROM", "Product_Suppliers", "WHERE", "supplier_id", "=", "(", "SELECT", "supplier_id", "FROM", "Product_Suppliers", "GROUP", "BY", "supplier_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "avg", "(", "total_amount_purchased", ")", ",", "avg", "(", "total_value_purchased", ")", "from", "product_suppliers", "where", "supplier_id", "=", "(", "select", "supplier_id", "from", "product_suppliers", "group", "by", "supplier_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "Return the average total amount purchased and total value purchased for the supplier who supplies the greatest number of products.", "question_toks": [ "return", "average", "total", "amount", "purchased", "and", "total", "value", "purchased", "for", "supplier", "who", "supply", "greatest", "number", "of", "product", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 50, false ], null ] ], [ 5, [ 0, [ 0, 51, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 47, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 47, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 47, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Return", "the", "average", "total", "amount", "purchased", "and", "total", "value", "purchased", "for", "the", "supplier", "who", "supplies", "the", "greatest", "number", "of", "products", "." ], "question_arg": [ [ "return" ], [ "average" ], [ "total", "amount", "purchased" ], [ "and" ], [ "total", "value", "purchased" ], [ "for" ], [ "supplier" ], [ "who" ], [ "supply" ], [ "greatest" ], [ "number" ], [ "of" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "average", "JJ" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "purchased", "VBD" ], [ "and", "CC" ], [ "total", "JJ" ], [ "value", "NN" ], [ "purchased", "VBN" ], [ "for", "IN" ], [ "supplier", "NN" ], [ "who", "WP" ], [ "supply", "VBP" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(37) T(12) A(5) C(38) T(12) Filter(11) A(0) C(6) T(12) Root(2) Sel(0) N(0) A(0) C(6) T(12) Sup(0) A(3) C(0) T(12)" }, { "db_id": "department_store", "query": "SELECT max(customer_code) , min(customer_code) FROM Customers", "query_toks": [ "SELECT", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "FROM", "Customers" ], "query_toks_no_value": [ "select", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "from", "customers" ], "question": "What is the largest and smallest customer codes?", "question_toks": [ "what", "is", "largest", "and", "smallest", "customer", "code", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 13, false ], null ] ], [ 2, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "is", "the", "largest", "and", "smallest", "customer", "codes", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "largest" ], [ "and" ], [ "smallest" ], [ "customer", "code" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "largest", "JJS" ], [ "and", "CC" ], [ "smallest", "JJS" ], [ "customer", "NN" ], [ "code", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(13) T(4) A(2) C(13) T(4)" }, { "db_id": "department_store", "query": "SELECT max(customer_code) , min(customer_code) FROM Customers", "query_toks": [ "SELECT", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "FROM", "Customers" ], "query_toks_no_value": [ "select", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "from", "customers" ], "question": "Return the maximum and minimum customer codes.", "question_toks": [ "return", "maximum", "and", "minimum", "customer", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 13, false ], null ] ], [ 2, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Return", "the", "maximum", "and", "minimum", "customer", "codes", "." ], "question_arg": [ [ "return" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "customer", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "maximum", "NN" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "customer", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(13) T(4) A(2) C(13) T(4)" }, { "db_id": "department_store", "query": "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T2.order_id = T3.order_id JOIN products AS T4 ON T3.product_id = T4.product_id WHERE T4.product_name = \"keyboard\"", "query_toks": [ "SELECT", "DISTINCT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "JOIN", "order_items", "AS", "T3", "ON", "T2.order_id", "=", "T3.order_id", "JOIN", "products", "AS", "T4", "ON", "T3.product_id", "=", "T4.product_id", "WHERE", "T4.product_name", "=", "``", "keyboard", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "join", "products", "as", "t4", "on", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_name", "=", "value" ], "question": "List the names of all the distinct customers who bought a keyboard.", "question_toks": [ "list", "name", "of", "all", "distinct", "customer", "who", "bought", "a", "keyboard", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 31, 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, 20, false ], null ], "\"keyboard\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "the", "distinct", "customers", "who", "bought", "a", "keyboard", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "distinct" ], [ "customer" ], [ "who" ], [ "bought" ], [ "a" ], [ "keyboard" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "customer", "NN" ], [ "who", "WP" ], [ "bought", "VBD" ], [ "a", "DT" ], [ "keyboard", "NN" ], [ ".", "." ] ], "values": [ "keyboard" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(14) T(4) Filter(0) Filter(18) A(0) C(11) T(4) Root(5) Sel(0) N(0) A(0) C(11) T(8) Filter(2) A(0) C(20) T(5) V(0)" }, { "db_id": "department_store", "query": "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T2.order_id = T3.order_id JOIN products AS T4 ON T3.product_id = T4.product_id WHERE T4.product_name = \"keyboard\"", "query_toks": [ "SELECT", "DISTINCT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "JOIN", "order_items", "AS", "T3", "ON", "T2.order_id", "=", "T3.order_id", "JOIN", "products", "AS", "T4", "ON", "T3.product_id", "=", "T4.product_id", "WHERE", "T4.product_name", "=", "``", "keyboard", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "join", "products", "as", "t4", "on", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_name", "=", "value" ], "question": "What are the distinct names of customers who have purchased a keyboard?", "question_toks": [ "what", "are", "distinct", "name", "of", "customer", "who", "have", "purchased", "a", "keyboard", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 31, 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, 20, false ], null ], "\"keyboard\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "distinct", "names", "of", "customers", "who", "have", "purchased", "a", "keyboard", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "purchased" ], [ "a" ], [ "keyboard" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "purchased", "VBN" ], [ "a", "DT" ], [ "keyboard", "NN" ], [ "?", "." ] ], "values": [ "keyboard" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(14) T(4) Filter(0) Filter(18) A(0) C(11) T(4) Root(5) Sel(0) N(0) A(0) C(11) T(8) Filter(2) A(0) C(20) T(5) V(0)" }, { "db_id": "department_store", "query": "SELECT DISTINCT T1.supplier_name , T1.supplier_phone FROM suppliers AS T1 JOIN product_suppliers AS T2 ON T1.supplier_id = T2.supplier_id JOIN products AS T3 ON T2.product_id = T3.product_id WHERE T3.product_name = \"red jeans\"", "query_toks": [ "SELECT", "DISTINCT", "T1.supplier_name", ",", "T1.supplier_phone", "FROM", "suppliers", "AS", "T1", "JOIN", "product_suppliers", "AS", "T2", "ON", "T1.supplier_id", "=", "T2.supplier_id", "JOIN", "products", "AS", "T3", "ON", "T2.product_id", "=", "T3.product_id", "WHERE", "T3.product_name", "=", "``", "red", "jeans", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "supplier_name", ",", "t1", ".", "supplier_phone", "from", "suppliers", "as", "t1", "join", "product_suppliers", "as", "t2", "on", "t1", ".", "supplier_id", "=", "t2", ".", "supplier_id", "join", "products", "as", "t3", "on", "t2", ".", "product_id", "=", "t3", ".", "product_id", "where", "t3", ".", "product_name", "=", "value" ], "question": "List the names and phone numbers of all the distinct suppliers who supply red jeans.", "question_toks": [ "list", "name", "and", "phone", "number", "of", "all", "distinct", "supplier", "who", "supply", "red", "jean", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 47, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 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, 47, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 20, false ], null ], "\"red jeans\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "List", "the", "names", "and", "phone", "numbers", "of", "all", "the", "distinct", "suppliers", "who", "supply", "red", "jeans", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "phone" ], [ "number" ], [ "of" ], [ "all" ], [ "distinct" ], [ "supplier" ], [ "who" ], [ "supply" ], [ "red" ], [ "jean" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "supplier", "NN" ], [ "who", "WP" ], [ "supply", "VBP" ], [ "red", "JJ" ], [ "jean", "NN" ], [ ".", "." ] ], "values": [ "red jeans" ], "rule_label": "Root1(3) Root(3) Sel(1) 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(6) T(12) Filter(2) A(0) C(20) T(5) V(0)" }, { "db_id": "department_store", "query": "SELECT DISTINCT T1.supplier_name , T1.supplier_phone FROM suppliers AS T1 JOIN product_suppliers AS T2 ON T1.supplier_id = T2.supplier_id JOIN products AS T3 ON T2.product_id = T3.product_id WHERE T3.product_name = \"red jeans\"", "query_toks": [ "SELECT", "DISTINCT", "T1.supplier_name", ",", "T1.supplier_phone", "FROM", "suppliers", "AS", "T1", "JOIN", "product_suppliers", "AS", "T2", "ON", "T1.supplier_id", "=", "T2.supplier_id", "JOIN", "products", "AS", "T3", "ON", "T2.product_id", "=", "T3.product_id", "WHERE", "T3.product_name", "=", "``", "red", "jeans", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "supplier_name", ",", "t1", ".", "supplier_phone", "from", "suppliers", "as", "t1", "join", "product_suppliers", "as", "t2", "on", "t1", ".", "supplier_id", "=", "t2", ".", "supplier_id", "join", "products", "as", "t3", "on", "t2", ".", "product_id", "=", "t3", ".", "product_id", "where", "t3", ".", "product_name", "=", "value" ], "question": "What are the distinct names and phone numbers for suppliers who have red jeans?", "question_toks": [ "what", "are", "distinct", "name", "and", "phone", "number", "for", "supplier", "who", "have", "red", "jean", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 47, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 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, 47, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 20, false ], null ], "\"red jeans\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "distinct", "names", "and", "phone", "numbers", "for", "suppliers", "who", "have", "red", "jeans", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "name" ], [ "and" ], [ "phone" ], [ "number" ], [ "for" ], [ "supplier" ], [ "who" ], [ "have" ], [ "red" ], [ "jean" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "for", "IN" ], [ "supplier", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "red", "VBN" ], [ "jean", "NN" ], [ "?", "." ] ], "values": [ "red jeans" ], "rule_label": "Root1(3) Root(3) Sel(1) 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(6) T(12) Filter(2) A(0) C(20) T(5) V(0)" }, { "db_id": "department_store", "query": "SELECT max(product_price) , min(product_price) , product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code", "query_toks": [ "SELECT", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code" ], "query_toks_no_value": [ "select", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code" ], "question": "What are the highest and lowest prices of products, grouped by and alphabetically ordered by product type?", "question_toks": [ "what", "are", "highest", "and", "lowest", "price", "of", "product", ",", "grouped", "by", "and", "alphabetically", "ordered", "by", "product", "type", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 19, false ], null ] ] ], "select": [ false, [ [ 1, [ 0, [ 0, 21, false ], null ] ], [ 2, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "highest", "and", "lowest", "prices", "of", "products", ",", "grouped", "by", "and", "alphabetically", "ordered", "by", "product", "type", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "highest" ], [ "and" ], [ "lowest" ], [ "price" ], [ "of" ], [ "product" ], [ "," ], [ "grouped" ], [ "by" ], [ "and" ], [ "alphabetically" ], [ "ordered" ], [ "by" ], [ "product" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "highest", "JJS" ], [ "and", "CC" ], [ "lowest", "JJS" ], [ "price", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ ",", "," ], [ "grouped", "VBN" ], [ "by", "IN" ], [ "and", "CC" ], [ "alphabetically", "RB" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "product", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(1) C(21) T(5) A(2) C(21) T(5) A(0) C(19) T(5) Order(1) A(0) C(19) T(5)" }, { "db_id": "department_store", "query": "SELECT max(product_price) , min(product_price) , product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code", "query_toks": [ "SELECT", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code" ], "query_toks_no_value": [ "select", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code" ], "question": "Give the maximum and minimum product prices for each product type, grouped and ordered by product type.", "question_toks": [ "give", "maximum", "and", "minimum", "product", "price", "for", "each", "product", "type", ",", "grouped", "and", "ordered", "by", "product", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 19, false ], null ] ] ], "select": [ false, [ [ 1, [ 0, [ 0, 21, false ], null ] ], [ 2, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Give", "the", "maximum", "and", "minimum", "product", "prices", "for", "each", "product", "type", ",", "grouped", "and", "ordered", "by", "product", "type", "." ], "question_arg": [ [ "give" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "product", "price" ], [ "for" ], [ "each" ], [ "product" ], [ "type" ], [ "," ], [ "grouped" ], [ "and" ], [ "ordered" ], [ "by" ], [ "product" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "maximum", "NN" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "product", "NN" ], [ "price", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "product", "NN" ], [ "type", "NN" ], [ ",", "," ], [ "grouped", "VBD" ], [ "and", "CC" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "product", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(1) C(21) T(5) A(2) C(21) T(5) A(0) C(19) T(5) Order(1) A(0) C(19) T(5)" }, { "db_id": "department_store", "query": "SELECT order_id , customer_id FROM customer_orders WHERE order_status_code = \"Cancelled\" ORDER BY order_date", "query_toks": [ "SELECT", "order_id", ",", "customer_id", "FROM", "customer_orders", "WHERE", "order_status_code", "=", "``", "Cancelled", "''", "ORDER", "BY", "order_date" ], "query_toks_no_value": [ "select", "order_id", ",", "customer_id", "from", "customer_orders", "where", "order_status_code", "=", "value", "order", "by", "order_date" ], "question": "List the order id, customer id for orders in Cancelled status, ordered by their order dates.", "question_toks": [ "list", "order", "id", ",", "customer", "id", "for", "order", "in", "cancelled", "status", ",", "ordered", "by", "their", "order", "date", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 33, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ], [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 32, false ], null ], "\"Cancelled\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "List", "the", "order", "id", ",", "customer", "id", "for", "orders", "in", "Cancelled", "status", ",", "ordered", "by", "their", "order", "dates", "." ], "question_arg": [ [ "list" ], [ "order", "id" ], [ "," ], [ "customer", "id" ], [ "for" ], [ "order" ], [ "in" ], [ "cancelled" ], [ "status" ], [ "," ], [ "ordered" ], [ "by" ], [ "their" ], [ "order", "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "order", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "customer", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "order", "NN" ], [ "in", "IN" ], [ "cancelled", "JJ" ], [ "status", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "order", "NN" ], [ "date", "NN" ], [ ".", "." ] ], "values": [ "Cancelled" ], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(24) T(8) A(0) C(11) T(8) Filter(2) A(0) C(25) T(8) V(0) Order(1) A(0) C(26) T(8)" }, { "db_id": "department_store", "query": "SELECT order_id , customer_id FROM customer_orders WHERE order_status_code = \"Cancelled\" ORDER BY order_date", "query_toks": [ "SELECT", "order_id", ",", "customer_id", "FROM", "customer_orders", "WHERE", "order_status_code", "=", "``", "Cancelled", "''", "ORDER", "BY", "order_date" ], "query_toks_no_value": [ "select", "order_id", ",", "customer_id", "from", "customer_orders", "where", "order_status_code", "=", "value", "order", "by", "order_date" ], "question": "What are the order ids and customer ids for orders that have been Cancelled, sorted by their order dates?", "question_toks": [ "what", "are", "order", "id", "and", "customer", "id", "for", "order", "that", "have", "been", "cancelled", ",", "sorted", "by", "their", "order", "date", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 33, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ], [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 32, false ], null ], "\"Cancelled\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "order", "ids", "and", "customer", "ids", "for", "orders", "that", "have", "been", "Cancelled", ",", "sorted", "by", "their", "order", "dates", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "order", "id" ], [ "and" ], [ "customer", "id" ], [ "for" ], [ "order" ], [ "that" ], [ "have" ], [ "been" ], [ "cancelled" ], [ "," ], [ "sorted" ], [ "by" ], [ "their" ], [ "order", "date" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "order", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "customer", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "order", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "cancelled", "VBN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "order", "NN" ], [ "date", "NN" ], [ "?", "." ] ], "values": [ "Cancelled" ], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(24) T(8) A(0) C(11) T(8) Filter(2) A(0) C(25) T(8) V(0) Order(1) A(0) C(26) T(8)" }, { "db_id": "department_store", "query": "SELECT DISTINCT T3.product_name FROM customer_orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id JOIN products AS T3 ON T2.product_id = T3.product_id GROUP BY T3.product_id HAVING COUNT (DISTINCT T1.customer_id) >= 2", "query_toks": [ "SELECT", "DISTINCT", "T3.product_name", "FROM", "customer_orders", "AS", "T1", "JOIN", "order_items", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "JOIN", "products", "AS", "T3", "ON", "T2.product_id", "=", "T3.product_id", "GROUP", "BY", "T3.product_id", "HAVING", "COUNT", "(", "DISTINCT", "T1.customer_id", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "product_name", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "join", "products", "as", "t3", "on", "t2", ".", "product_id", "=", "t3", ".", "product_id", "group", "by", "t3", ".", "product_id", "having", "count", "(", "distinct", "t1", ".", "customer_id", ")", ">", "=", "value" ], "question": "Find the names of products that were bought by at least two distinct customers.", "question_toks": [ "find", "name", "of", "product", "that", "were", "bought", "by", "at", "least", "two", "distinct", "customer", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 30, false ], null ], [ 0, 44, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 5, [ 0, [ 3, 31, true ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 30, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 11 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 44, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Find", "the", "names", "of", "products", "that", "were", "bought", "by", "at", "least", "two", "distinct", "customers", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "product" ], [ "that" ], [ "were" ], [ "bought" ], [ "by" ], [ "at" ], [ "least" ], [ "two" ], [ "distinct" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "bought", "VBN" ], [ "by", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "distinct", "JJ" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(20) T(5) Filter(0) Filter(0) Filter(18) A(0) C(24) T(8) Root(5) Sel(0) N(0) A(0) C(24) T(11) Filter(18) A(0) C(24) T(11) Root(5) Sel(0) N(0) A(0) C(24) T(8) Filter(7) A(3) C(11) T(8) V(0)" }, { "db_id": "department_store", "query": "SELECT DISTINCT T3.product_name FROM customer_orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id JOIN products AS T3 ON T2.product_id = T3.product_id GROUP BY T3.product_id HAVING COUNT (DISTINCT T1.customer_id) >= 2", "query_toks": [ "SELECT", "DISTINCT", "T3.product_name", "FROM", "customer_orders", "AS", "T1", "JOIN", "order_items", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "JOIN", "products", "AS", "T3", "ON", "T2.product_id", "=", "T3.product_id", "GROUP", "BY", "T3.product_id", "HAVING", "COUNT", "(", "DISTINCT", "T1.customer_id", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "product_name", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "join", "products", "as", "t3", "on", "t2", ".", "product_id", "=", "t3", ".", "product_id", "group", "by", "t3", ".", "product_id", "having", "count", "(", "distinct", "t1", ".", "customer_id", ")", ">", "=", "value" ], "question": "What are the distinct names of products purchased by at least two different customers?", "question_toks": [ "what", "are", "distinct", "name", "of", "product", "purchased", "by", "at", "least", "two", "different", "customer", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 30, false ], null ], [ 0, 44, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 11 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 5, [ 0, [ 3, 31, true ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 30, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 11 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 44, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "distinct", "names", "of", "products", "purchased", "by", "at", "least", "two", "different", "customers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "name" ], [ "of" ], [ "product" ], [ "purchased" ], [ "by" ], [ "at" ], [ "least" ], [ "two" ], [ "different" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "purchased", "VBN" ], [ "by", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "different", "JJ" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(20) T(5) Filter(0) Filter(0) Filter(18) A(0) C(24) T(8) Root(5) Sel(0) N(0) A(0) C(24) T(11) Filter(18) A(0) C(24) T(11) Root(5) Sel(0) N(0) A(0) C(24) T(8) Filter(7) A(3) C(11) T(8) V(0)" }, { "db_id": "department_store", "query": "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T2.order_id = T3.order_id GROUP BY T1.customer_id HAVING COUNT (DISTINCT T3.product_id) >= 3", "query_toks": [ "SELECT", "DISTINCT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "JOIN", "order_items", "AS", "T3", "ON", "T2.order_id", "=", "T3.order_id", "GROUP", "BY", "T1.customer_id", "HAVING", "COUNT", "(", "DISTINCT", "T3.product_id", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "distinct", "t3", ".", "product_id", ")", ">", "=", "value" ], "question": "Find the names of customers who have bought by at least three distinct products.", "question_toks": [ "find", "name", "of", "customer", "who", "have", "bought", "by", "at", "least", "three", "distinct", "product", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 5, [ 0, [ 3, 45, true ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Find", "the", "names", "of", "customers", "who", "have", "bought", "by", "at", "least", "three", "distinct", "products", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "bought" ], [ "by" ], [ "at" ], [ "least" ], [ "three" ], [ "distinct" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "bought", "VBN" ], [ "by", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "three", "CD" ], [ "distinct", "JJ" ], [ "product", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(14) T(4) Filter(0) Filter(18) A(0) C(11) T(4) Root(5) Sel(0) N(0) A(0) C(11) T(8) Filter(7) A(3) C(18) T(11) V(0)" }, { "db_id": "department_store", "query": "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T2.order_id = T3.order_id GROUP BY T1.customer_id HAVING COUNT (DISTINCT T3.product_id) >= 3", "query_toks": [ "SELECT", "DISTINCT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "JOIN", "order_items", "AS", "T3", "ON", "T2.order_id", "=", "T3.order_id", "GROUP", "BY", "T1.customer_id", "HAVING", "COUNT", "(", "DISTINCT", "T3.product_id", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "distinct", "t3", ".", "product_id", ")", ">", "=", "value" ], "question": "What are the distinct names of customers who have purchased at least three different products?", "question_toks": [ "what", "are", "distinct", "name", "of", "customer", "who", "have", "purchased", "at", "least", "three", "different", "product", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 5, [ 0, [ 3, 45, true ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "distinct", "names", "of", "customers", "who", "have", "purchased", "at", "least", "three", "different", "products", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "purchased" ], [ "at" ], [ "least" ], [ "three" ], [ "different" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "purchased", "VBN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "three", "CD" ], [ "different", "JJ" ], [ "product", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(14) T(4) Filter(0) Filter(18) A(0) C(11) T(4) Root(5) Sel(0) N(0) A(0) C(11) T(8) Filter(7) A(3) C(18) T(11) V(0)" }, { "db_id": "department_store", "query": "SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = \"Sales Person\" EXCEPT SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = \"Clerical Staff\"", "query_toks": [ "SELECT", "T1.staff_name", ",", "T1.staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.job_title_code", "=", "``", "Sales", "Person", "''", "EXCEPT", "SELECT", "T1.staff_name", ",", "T1.staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.job_title_code", "=", "``", "Clerical", "Staff", "''" ], "query_toks_no_value": [ "select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "job_title_code", "=", "value", "except", "select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "job_title_code", "=", "value" ], "question": "Find the name and gender of the staff who has been assigned the job of Sales Person but never Clerical Staff.", "question_toks": [ "find", "name", "and", "gender", "of", "staff", "who", "ha", "been", "assigned", "job", "of", "sale", "person", "but", "never", "clerical", "staff", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 52, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 55, false ], null ], "\"Clerical Staff\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 52, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 55, false ], null ], "\"Sales Person\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Find", "the", "name", "and", "gender", "of", "the", "staff", "who", "has", "been", "assigned", "the", "job", "of", "Sales", "Person", "but", "never", "Clerical", "Staff", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "gender" ], [ "of" ], [ "staff" ], [ "who" ], [ "ha" ], [ "been" ], [ "assigned" ], [ "job" ], [ "of" ], [ "sale" ], [ "person" ], [ "but" ], [ "never" ], [ "clerical" ], [ "staff" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "gender", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "who", "WP" ], [ "ha", "VBD" ], [ "been", "VBN" ], [ "assigned", "VBN" ], [ "job", "NN" ], [ "of", "IN" ], [ "sale", "NN" ], [ "person", "NN" ], [ "but", "CC" ], [ "never", "RB" ], [ "clerical", "JJ" ], [ "staff", "NN" ], [ ".", "." ] ], "values": [ "Clerical Staff", "Sales Person" ], "rule_label": "Root1(2) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(4) T(1) Filter(2) A(0) C(40) T(13) V(1) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(4) T(1) Filter(2) A(0) C(40) T(13) V(0)" }, { "db_id": "department_store", "query": "SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = \"Sales Person\" EXCEPT SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = \"Clerical Staff\"", "query_toks": [ "SELECT", "T1.staff_name", ",", "T1.staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.job_title_code", "=", "``", "Sales", "Person", "''", "EXCEPT", "SELECT", "T1.staff_name", ",", "T1.staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.job_title_code", "=", "``", "Clerical", "Staff", "''" ], "query_toks_no_value": [ "select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "job_title_code", "=", "value", "except", "select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "job_title_code", "=", "value" ], "question": "What are the names and genders of staff who have held the title Sales Person, but never Clerical Staff?", "question_toks": [ "what", "are", "name", "and", "gender", "of", "staff", "who", "have", "held", "title", "sale", "person", ",", "but", "never", "clerical", "staff", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 52, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 55, false ], null ], "\"Clerical Staff\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 52, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 55, false ], null ], "\"Sales Person\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "genders", "of", "staff", "who", "have", "held", "the", "title", "Sales", "Person", ",", "but", "never", "Clerical", "Staff", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "gender" ], [ "of" ], [ "staff" ], [ "who" ], [ "have" ], [ "held" ], [ "title" ], [ "sale" ], [ "person" ], [ "," ], [ "but" ], [ "never" ], [ "clerical" ], [ "staff" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "gender", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "held", "VBN" ], [ "title", "JJ" ], [ "sale", "NN" ], [ "person", "NN" ], [ ",", "," ], [ "but", "CC" ], [ "never", "RB" ], [ "clerical", "JJ" ], [ "staff", "NN" ], [ "?", "." ] ], "values": [ "Clerical Staff", "Sales Person" ], "rule_label": "Root1(2) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(4) T(1) Filter(2) A(0) C(40) T(13) V(1) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(4) T(1) Filter(2) A(0) C(40) T(13) V(0)" }, { "db_id": "department_store", "query": "SELECT customer_id , customer_name FROM customers WHERE customer_address LIKE \"%WY%\" AND payment_method_code != \"Credit Card\"", "query_toks": [ "SELECT", "customer_id", ",", "customer_name", "FROM", "customers", "WHERE", "customer_address", "LIKE", "``", "%", "WY", "%", "''", "AND", "payment_method_code", "!", "=", "``", "Credit", "Card", "''" ], "query_toks_no_value": [ "select", "customer_id", ",", "customer_name", "from", "customers", "where", "customer_address", "like", "value", "and", "payment_method_code", "!", "=", "value" ], "question": "Find the id and name of customers whose address contains WY state and do not use credit card for payment.", "question_toks": [ "find", "id", "and", "name", "of", "customer", "whose", "address", "contains", "wy", "state", "and", "do", "not", "use", "credit", "card", "for", "payment", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%WY%\"", null ], "and", [ false, 7, [ 0, [ 0, 12, false ], null ], "\"Credit Card\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Find", "the", "id", "and", "name", "of", "customers", "whose", "address", "contains", "WY", "state", "and", "do", "not", "use", "credit", "card", "for", "payment", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "customer" ], [ "whose" ], [ "address" ], [ "contains" ], [ "wy" ], [ "state" ], [ "and" ], [ "do" ], [ "not" ], [ "use" ], [ "credit" ], [ "card" ], [ "for" ], [ "payment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "address", "NN" ], [ "contains", "VBZ" ], [ "wy", "JJ" ], [ "state", "NN" ], [ "and", "CC" ], [ "do", "VBP" ], [ "not", "RB" ], [ "use", "VB" ], [ "credit", "NN" ], [ "card", "NN" ], [ "for", "IN" ], [ "payment", "NN" ], [ ".", "." ] ], "values": [ "Credit Card", "WY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(11) T(4) A(0) C(14) T(4) Filter(0) Filter(9) A(0) C(15) T(4) V(1) Filter(3) A(0) C(12) T(4) V(0)" }, { "db_id": "department_store", "query": "SELECT customer_id , customer_name FROM customers WHERE customer_address LIKE \"%WY%\" AND payment_method_code != \"Credit Card\"", "query_toks": [ "SELECT", "customer_id", ",", "customer_name", "FROM", "customers", "WHERE", "customer_address", "LIKE", "``", "%", "WY", "%", "''", "AND", "payment_method_code", "!", "=", "``", "Credit", "Card", "''" ], "query_toks_no_value": [ "select", "customer_id", ",", "customer_name", "from", "customers", "where", "customer_address", "like", "value", "and", "payment_method_code", "!", "=", "value" ], "question": "What are the ids and names of customers with addressed that contain WY and who do not use a credit card for payment?", "question_toks": [ "what", "are", "id", "and", "name", "of", "customer", "with", "addressed", "that", "contain", "wy", "and", "who", "do", "not", "use", "a", "credit", "card", "for", "payment", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%WY%\"", null ], "and", [ false, 7, [ 0, [ 0, 12, false ], null ], "\"Credit Card\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "names", "of", "customers", "with", "addressed", "that", "contain", "WY", "and", "who", "do", "not", "use", "a", "credit", "card", "for", "payment", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "customer" ], [ "with" ], [ "addressed" ], [ "that" ], [ "contain" ], [ "wy" ], [ "and" ], [ "who" ], [ "do" ], [ "not" ], [ "use" ], [ "a" ], [ "credit" ], [ "card" ], [ "for" ], [ "payment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "addressed", "JJ" ], [ "that", "WDT" ], [ "contain", "VBP" ], [ "wy", "NNS" ], [ "and", "CC" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "use", "VB" ], [ "a", "DT" ], [ "credit", "NN" ], [ "card", "NN" ], [ "for", "IN" ], [ "payment", "NN" ], [ "?", "." ] ], "values": [ "Credit Card", "WY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(11) T(4) A(0) C(14) T(4) Filter(0) Filter(9) A(0) C(15) T(4) V(1) Filter(3) A(0) C(12) T(4) V(0)" }, { "db_id": "department_store", "query": "SELECT avg(product_price) FROM products WHERE product_type_code = 'Clothes'", "query_toks": [ "SELECT", "avg", "(", "product_price", ")", "FROM", "products", "WHERE", "product_type_code", "=", "'Clothes", "'" ], "query_toks_no_value": [ "select", "avg", "(", "product_price", ")", "from", "products", "where", "product_type_code", "=", "value" ], "question": "Find the average price of all product clothes.", "question_toks": [ "find", "average", "price", "of", "all", "product", "clothes", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Clothes\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Find", "the", "average", "price", "of", "all", "product", "clothes", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "price" ], [ "of" ], [ "all" ], [ "product" ], [ "clothes" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "clothes", "NNS" ], [ ".", "." ] ], "values": [ "Clothes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(21) T(5) Filter(2) A(0) C(19) T(5) V(0)" }, { "db_id": "department_store", "query": "SELECT avg(product_price) FROM products WHERE product_type_code = 'Clothes'", "query_toks": [ "SELECT", "avg", "(", "product_price", ")", "FROM", "products", "WHERE", "product_type_code", "=", "'Clothes", "'" ], "query_toks_no_value": [ "select", "avg", "(", "product_price", ")", "from", "products", "where", "product_type_code", "=", "value" ], "question": "What is the average price of clothes?", "question_toks": [ "what", "is", "average", "price", "of", "clothes", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Clothes\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "is", "the", "average", "price", "of", "clothes", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "price" ], [ "of" ], [ "clothes" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "clothes", "NNS" ], [ "?", "." ] ], "values": [ "Clothes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(21) T(5) Filter(2) A(0) C(19) T(5) V(0)" }, { "db_id": "department_store", "query": "SELECT product_name FROM products WHERE product_type_code = 'Hardware' ORDER BY product_price DESC LIMIT 1", "query_toks": [ "SELECT", "product_name", "FROM", "products", "WHERE", "product_type_code", "=", "'Hardware", "'", "ORDER", "BY", "product_price", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "product_name", "from", "products", "where", "product_type_code", "=", "value", "order", "by", "product_price", "desc", "limit", "value" ], "question": "Find the name of the most expensive hardware product.", "question_toks": [ "find", "name", "of", "most", "expensive", "hardware", "product", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Hardware\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "most", "expensive", "hardware", "product", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "most" ], [ "expensive" ], [ "hardware" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "expensive", "JJ" ], [ "hardware", "NN" ], [ "product", "NN" ], [ ".", "." ] ], "values": [ "Hardware" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(20) T(5) Sup(0) A(0) C(21) T(5) Filter(2) A(0) C(19) T(5) V(0)" }, { "db_id": "department_store", "query": "SELECT product_name FROM products WHERE product_type_code = 'Hardware' ORDER BY product_price DESC LIMIT 1", "query_toks": [ "SELECT", "product_name", "FROM", "products", "WHERE", "product_type_code", "=", "'Hardware", "'", "ORDER", "BY", "product_price", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "product_name", "from", "products", "where", "product_type_code", "=", "value", "order", "by", "product_price", "desc", "limit", "value" ], "question": "What is the name of the hardware product with the greatest price?", "question_toks": [ "what", "is", "name", "of", "hardware", "product", "with", "greatest", "price", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Hardware\"", null ] ] }, "names": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "supplier id", "address id", "date from", "date to", "customer id", "address id", "date from", "date to", "order id", "customer id", "order status code", "order date", "department store id", "department store chain id", "store name", "store address", "store phone", "store email", "department id", "department store id", "department name", "order item id", "order id", "product id", "product id", "supplier id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "staff id", "department id", "date assigned from", "job title code", "date assigned to" ], "table_names": [ "addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments" ], "col_set": [ "*", "address id", "address details", "staff id", "staff gender", "staff name", "supplier id", "supplier name", "supplier phone", "department store chain id", "department store chain name", "customer id", "payment method code", "customer code", "customer name", "customer address", "customer phone", "customer email", "product id", "product type code", "product name", "product price", "date from", "date to", "order id", "order status code", "order date", "department store id", "store name", "store address", "store phone", "store email", "department id", "department name", "order item id", "date supplied from", "date supplied to", "total amount purchased", "total value purchased", "date assigned from", "job title code", "date assigned to" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13 ], "keys": { "22": 22, "6": 6, "23": 1, "1": 1, "26": 26, "11": 11, "27": 1, "31": 11, "35": 9, "9": 9, "41": 34, "34": 34, "45": 18, "18": 18, "44": 30, "30": 30, "46": 46, "47": 6, "52": 52, "3": 3, "53": 40, "40": 40, "43": 43 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "hardware", "product", "with", "the", "greatest", "price", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "hardware" ], [ "product" ], [ "with" ], [ "greatest" ], [ "price" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "hardware", "NN" ], [ "product", "NN" ], [ "with", "IN" ], [ "greatest", "JJ" ], [ "price", "NN" ], [ "?", "." ] ], "values": [ "Hardware" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(20) T(5) Sup(0) A(0) C(21) T(5) Filter(2) A(0) C(19) T(5) V(0)" }, { "db_id": "aircraft", "query": "SELECT count(*) FROM aircraft", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "aircraft" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "aircraft" ], "question": "How many aircrafts are there?", "question_toks": [ "how", "many", "aircraft", "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": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "How", "many", "aircrafts", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "aircraft" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "aircraft", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "aircraft", "query": "SELECT count(*) FROM aircraft", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "aircraft" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "aircraft" ], "question": "What is the number of aircraft?", "question_toks": [ "what", "is", "number", "of", "aircraft", "?" ], "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": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "aircraft", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "aircraft" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "aircraft", "query": "SELECT Description FROM aircraft", "query_toks": [ "SELECT", "Description", "FROM", "aircraft" ], "query_toks_no_value": [ "select", "description", "from", "aircraft" ], "question": "List the description of all aircrafts.", "question_toks": [ "list", "description", "of", "all", "aircraft", "." ], "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": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "List", "the", "description", "of", "all", "aircrafts", "." ], "question_arg": [ [ "list" ], [ "description" ], [ "of" ], [ "all" ], [ "aircraft" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "description", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "aircraft", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(6) T(1)" }, { "db_id": "aircraft", "query": "SELECT Description FROM aircraft", "query_toks": [ "SELECT", "Description", "FROM", "aircraft" ], "query_toks_no_value": [ "select", "description", "from", "aircraft" ], "question": "What are the descriptions for the aircrafts?", "question_toks": [ "what", "are", "description", "for", "aircraft", "?" ], "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": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "descriptions", "for", "the", "aircrafts", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "description" ], [ "for" ], [ "aircraft" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "description", "NN" ], [ "for", "IN" ], [ "aircraft", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(6) T(1)" }, { "db_id": "aircraft", "query": "SELECT avg(International_Passengers) FROM airport", "query_toks": [ "SELECT", "avg", "(", "International_Passengers", ")", "FROM", "airport" ], "query_toks_no_value": [ "select", "avg", "(", "international_passengers", ")", "from", "airport" ], "question": "What is the average number of international passengers of all airports?", "question_toks": [ "what", "is", "average", "number", "of", "international", "passenger", "of", "all", "airport", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "international", "passengers", "of", "all", "airports", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "international", "passenger" ], [ "of" ], [ "all" ], [ "airport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "international", "JJ" ], [ "passenger", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "airport", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(21) T(3)" }, { "db_id": "aircraft", "query": "SELECT avg(International_Passengers) FROM airport", "query_toks": [ "SELECT", "avg", "(", "International_Passengers", ")", "FROM", "airport" ], "query_toks_no_value": [ "select", "avg", "(", "international_passengers", ")", "from", "airport" ], "question": "What is the average number of international passengers for an airport?", "question_toks": [ "what", "is", "average", "number", "of", "international", "passenger", "for", "an", "airport", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "international", "passengers", "for", "an", "airport", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "international", "passenger" ], [ "for" ], [ "an" ], [ "airport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "international", "JJ" ], [ "passenger", "NN" ], [ "for", "IN" ], [ "an", "DT" ], [ "airport", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(21) T(3)" }, { "db_id": "aircraft", "query": "SELECT International_Passengers , Domestic_Passengers FROM airport WHERE Airport_Name = \"London Heathrow\"", "query_toks": [ "SELECT", "International_Passengers", ",", "Domestic_Passengers", "FROM", "airport", "WHERE", "Airport_Name", "=", "``", "London", "Heathrow", "''" ], "query_toks_no_value": [ "select", "international_passengers", ",", "domestic_passengers", "from", "airport", "where", "airport_name", "=", "value" ], "question": "What are the number of international and domestic passengers of the airport named London \"Heathrow\"?", "question_toks": [ "what", "are", "number", "of", "international", "and", "domestic", "passenger", "of", "airport", "named", "london", "'", "heathrow", "'", "?" ], "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, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"London Heathrow\"", null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "number", "of", "international", "and", "domestic", "passengers", "of", "the", "airport", "named", "London", "``", "Heathrow", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "number" ], [ "of" ], [ "international" ], [ "and" ], [ "domestic", "passenger" ], [ "of" ], [ "airport" ], [ "named" ], [ "london" ], [ "'" ], [ "heathrow" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "international", "JJ" ], [ "and", "CC" ], [ "domestic", "JJ" ], [ "passenger", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "named", "VBN" ], [ "london", "NN" ], [ "'", "''" ], [ "heathrow", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Heathrow", "London Heathrow" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(21) T(3) A(0) C(22) T(3) Filter(2) A(0) C(18) T(3) V(1)" }, { "db_id": "aircraft", "query": "SELECT International_Passengers , Domestic_Passengers FROM airport WHERE Airport_Name = \"London Heathrow\"", "query_toks": [ "SELECT", "International_Passengers", ",", "Domestic_Passengers", "FROM", "airport", "WHERE", "Airport_Name", "=", "``", "London", "Heathrow", "''" ], "query_toks_no_value": [ "select", "international_passengers", ",", "domestic_passengers", "from", "airport", "where", "airport_name", "=", "value" ], "question": "How many international and domestic passengers are there in the airport London Heathrow?", "question_toks": [ "how", "many", "international", "and", "domestic", "passenger", "are", "there", "in", "airport", "london", "heathrow", "?" ], "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, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"London Heathrow\"", null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "How", "many", "international", "and", "domestic", "passengers", "are", "there", "in", "the", "airport", "London", "Heathrow", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "international" ], [ "and" ], [ "domestic", "passenger" ], [ "are" ], [ "there" ], [ "in" ], [ "airport" ], [ "london" ], [ "heathrow" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "international", "JJ" ], [ "and", "CC" ], [ "domestic", "JJ" ], [ "passenger", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "airport", "NN" ], [ "london", "NN" ], [ "heathrow", "NN" ], [ "?", "." ] ], "values": [ "London Heathrow" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(21) T(3) A(0) C(22) T(3) Filter(2) A(0) C(18) T(3) V(0)" }, { "db_id": "aircraft", "query": "SELECT sum(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE \"%London%\"", "query_toks": [ "SELECT", "sum", "(", "Domestic_Passengers", ")", "FROM", "airport", "WHERE", "Airport_Name", "LIKE", "``", "%", "London", "%", "''" ], "query_toks_no_value": [ "select", "sum", "(", "domestic_passengers", ")", "from", "airport", "where", "airport_name", "like", "value" ], "question": "What are the total number of Domestic Passengers of airports that contain the word \"London\".", "question_toks": [ "what", "are", "total", "number", "of", "domestic", "passenger", "of", "airport", "that", "contain", "word", "'", "london", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 18, false ], null ], "\"%London%\"", null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "total", "number", "of", "Domestic", "Passengers", "of", "airports", "that", "contain", "the", "word", "``", "London", "''", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "total" ], [ "number" ], [ "of" ], [ "domestic", "passenger" ], [ "of" ], [ "airport" ], [ "that" ], [ "contain" ], [ "word" ], [ "'" ], [ "london" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "domestic", "JJ" ], [ "passenger", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "that", "WDT" ], [ "contain", "VBP" ], [ "word", "NN" ], [ "'", "''" ], [ "london", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "London" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(22) T(3) Filter(9) A(0) C(18) T(3) V(0)" }, { "db_id": "aircraft", "query": "SELECT sum(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE \"%London%\"", "query_toks": [ "SELECT", "sum", "(", "Domestic_Passengers", ")", "FROM", "airport", "WHERE", "Airport_Name", "LIKE", "``", "%", "London", "%", "''" ], "query_toks_no_value": [ "select", "sum", "(", "domestic_passengers", ")", "from", "airport", "where", "airport_name", "like", "value" ], "question": "What are the total number of domestic passengers at all London airports?", "question_toks": [ "what", "are", "total", "number", "of", "domestic", "passenger", "at", "all", "london", "airport", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 18, false ], null ], "\"%London%\"", null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "total", "number", "of", "domestic", "passengers", "at", "all", "London", "airports", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "total" ], [ "number" ], [ "of" ], [ "domestic", "passenger" ], [ "at" ], [ "all" ], [ "london" ], [ "airport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "domestic", "JJ" ], [ "passenger", "NN" ], [ "at", "IN" ], [ "all", "DT" ], [ "london", "JJ" ], [ "airport", "NN" ], [ "?", "." ] ], "values": [ "London" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(22) T(3) Filter(9) A(0) C(18) T(3) V(0)" }, { "db_id": "aircraft", "query": "SELECT max(Transit_Passengers) , min(Transit_Passengers) FROM airport", "query_toks": [ "SELECT", "max", "(", "Transit_Passengers", ")", ",", "min", "(", "Transit_Passengers", ")", "FROM", "airport" ], "query_toks_no_value": [ "select", "max", "(", "transit_passengers", ")", ",", "min", "(", "transit_passengers", ")", "from", "airport" ], "question": "What are the maximum and minimum number of transit passengers of all aiports.", "question_toks": [ "what", "are", "maximum", "and", "minimum", "number", "of", "transit", "passenger", "of", "all", "aiports", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 23, false ], null ] ], [ 2, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "maximum", "and", "minimum", "number", "of", "transit", "passengers", "of", "all", "aiports", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "number" ], [ "of" ], [ "transit", "passenger" ], [ "of" ], [ "all" ], [ "aiports" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "transit", "JJ" ], [ "passenger", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "aiports", "NNS" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(23) T(3) A(2) C(23) T(3)" }, { "db_id": "aircraft", "query": "SELECT max(Transit_Passengers) , min(Transit_Passengers) FROM airport", "query_toks": [ "SELECT", "max", "(", "Transit_Passengers", ")", ",", "min", "(", "Transit_Passengers", ")", "FROM", "airport" ], "query_toks_no_value": [ "select", "max", "(", "transit_passengers", ")", ",", "min", "(", "transit_passengers", ")", "from", "airport" ], "question": "What is the maximum and mininum number of transit passengers for all airports?", "question_toks": [ "what", "is", "maximum", "and", "mininum", "number", "of", "transit", "passenger", "for", "all", "airport", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 23, false ], null ] ], [ 2, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "maximum", "and", "mininum", "number", "of", "transit", "passengers", "for", "all", "airports", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "and" ], [ "mininum" ], [ "number" ], [ "of" ], [ "transit", "passenger" ], [ "for" ], [ "all" ], [ "airport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "mininum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "transit", "NN" ], [ "passenger", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "airport", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(23) T(3) A(2) C(23) T(3)" }, { "db_id": "aircraft", "query": "SELECT Name FROM pilot WHERE Age >= 25", "query_toks": [ "SELECT", "Name", "FROM", "pilot", "WHERE", "Age", ">", "=", "25" ], "query_toks_no_value": [ "select", "name", "from", "pilot", "where", "age", ">", "=", "value" ], "question": "What are the name of pilots aged 25 or older?", "question_toks": [ "what", "are", "name", "of", "pilot", "aged", "25", "or", "older", "?" ], "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, 5, [ 0, [ 0, 3, false ], null ], 25.0, null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "name", "of", "pilots", "aged", "25", "or", "older", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "pilot" ], [ "aged" ], [ "25" ], [ "or" ], [ "older" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "aged", "VBN" ], [ "25", "CD" ], [ "or", "CC" ], [ "older", "JJR" ], [ "?", "." ] ], "values": [ "25" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(7) A(0) C(3) T(0) V(0)" }, { "db_id": "aircraft", "query": "SELECT Name FROM pilot WHERE Age >= 25", "query_toks": [ "SELECT", "Name", "FROM", "pilot", "WHERE", "Age", ">", "=", "25" ], "query_toks_no_value": [ "select", "name", "from", "pilot", "where", "age", ">", "=", "value" ], "question": "what is the name of every pilot who is at least 25 years old?", "question_toks": [ "what", "is", "name", "of", "every", "pilot", "who", "is", "at", "least", "25", "year", "old", "?" ], "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, 5, [ 0, [ 0, 3, false ], null ], 25.0, null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "what", "is", "the", "name", "of", "every", "pilot", "who", "is", "at", "least", "25", "years", "old", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "every" ], [ "pilot" ], [ "who" ], [ "is" ], [ "at" ], [ "least" ], [ "25" ], [ "year" ], [ "old" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "pilot", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "at", "IN" ], [ "least", "JJS" ], [ "25", "CD" ], [ "year", "NN" ], [ "old", "JJ" ], [ "?", "." ] ], "values": [ "25" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(7) A(0) C(3) T(0) V(0)" }, { "db_id": "aircraft", "query": "SELECT Name FROM pilot ORDER BY Name ASC", "query_toks": [ "SELECT", "Name", "FROM", "pilot", "ORDER", "BY", "Name", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "pilot", "order", "by", "name", "asc" ], "question": "List all pilot names in ascending alphabetical order.", "question_toks": [ "list", "all", "pilot", "name", "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": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "List", "all", "pilot", "names", "in", "ascending", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "pilot" ], [ "name" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "pilot", "NN" ], [ "name", "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": "aircraft", "query": "SELECT Name FROM pilot ORDER BY Name ASC", "query_toks": [ "SELECT", "Name", "FROM", "pilot", "ORDER", "BY", "Name", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "pilot", "order", "by", "name", "asc" ], "question": "What are the names of the pilots in alphabetical order?", "question_toks": [ "what", "are", "name", "of", "pilot", "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": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "pilots", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "pilot" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "pilot", "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": "aircraft", "query": "SELECT Name FROM pilot WHERE Age <= 30 ORDER BY Name DESC", "query_toks": [ "SELECT", "Name", "FROM", "pilot", "WHERE", "Age", "<", "=", "30", "ORDER", "BY", "Name", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "pilot", "where", "age", "<", "=", "value", "order", "by", "name", "desc" ], "question": "List names of all pilot aged 30 or younger in descending alphabetical order.", "question_toks": [ "list", "name", "of", "all", "pilot", "aged", "30", "or", "younger", "in", "descending", "alphabetical", "order", "." ], "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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 6, [ 0, [ 0, 3, false ], null ], 30.0, null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "List", "names", "of", "all", "pilot", "aged", "30", "or", "younger", "in", "descending", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "pilot" ], [ "aged" ], [ "30" ], [ "or" ], [ "younger" ], [ "in" ], [ "descending" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "pilot", "NN" ], [ "aged", "VBD" ], [ "30", "CD" ], [ "or", "CC" ], [ "younger", "JJR" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "30" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(2) T(0) Filter(6) A(0) C(3) T(0) V(0) Order(0) A(0) C(2) T(0)" }, { "db_id": "aircraft", "query": "SELECT Name FROM pilot WHERE Age <= 30 ORDER BY Name DESC", "query_toks": [ "SELECT", "Name", "FROM", "pilot", "WHERE", "Age", "<", "=", "30", "ORDER", "BY", "Name", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "pilot", "where", "age", "<", "=", "value", "order", "by", "name", "desc" ], "question": "What are the names of all pilots 30 years old or young in descending alphabetical order?", "question_toks": [ "what", "are", "name", "of", "all", "pilot", "30", "year", "old", "or", "young", "in", "descending", "alphabetical", "order", "?" ], "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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 6, [ 0, [ 0, 3, false ], null ], 30.0, null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "pilots", "30", "years", "old", "or", "young", "in", "descending", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "pilot" ], [ "30" ], [ "year" ], [ "old" ], [ "or" ], [ "young" ], [ "in" ], [ "descending" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "pilot", "NN" ], [ "30", "CD" ], [ "year", "NN" ], [ "old", "JJ" ], [ "or", "CC" ], [ "young", "JJ" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [ "30" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(2) T(0) Filter(6) A(0) C(3) T(0) V(0) Order(0) A(0) C(2) T(0)" }, { "db_id": "aircraft", "query": "SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = \"London Gatwick\"", "query_toks": [ "SELECT", "T1.Aircraft", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2.Airport_ID", "=", "T3.Airport_ID", "WHERE", "T3.Airport_Name", "=", "``", "London", "Gatwick", "''" ], "query_toks_no_value": [ "select", "t1", ".", "aircraft", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t3", ".", "airport_name", "=", "value" ], "question": "Please show the names of aircrafts associated with airport with name \"London Gatwick\".", "question_toks": [ "please", "show", "name", "of", "aircraft", "associated", "with", "airport", "with", "name", "'", "london", "gatwick", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "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, 28, 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, 18, false ], null ], "\"London Gatwick\"", null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "Please", "show", "the", "names", "of", "aircrafts", "associated", "with", "airport", "with", "name", "``", "London", "Gatwick", "''", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "name" ], [ "of" ], [ "aircraft" ], [ "associated" ], [ "with" ], [ "airport" ], [ "with" ], [ "name" ], [ "'" ], [ "london" ], [ "gatwick" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "airport", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "london", "JJ" ], [ "gatwick", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "London Gatwick" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(4) Filter(2) A(0) C(18) T(3) V(0)" }, { "db_id": "aircraft", "query": "SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = \"London Gatwick\"", "query_toks": [ "SELECT", "T1.Aircraft", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2.Airport_ID", "=", "T3.Airport_ID", "WHERE", "T3.Airport_Name", "=", "``", "London", "Gatwick", "''" ], "query_toks_no_value": [ "select", "t1", ".", "aircraft", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t3", ".", "airport_name", "=", "value" ], "question": "What are the names of all the aircrafts associated with London Gatwick airport?", "question_toks": [ "what", "are", "name", "of", "all", "aircraft", "associated", "with", "london", "gatwick", "airport", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "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, 28, 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, 18, false ], null ], "\"London Gatwick\"", null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "aircrafts", "associated", "with", "London", "Gatwick", "airport", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "aircraft" ], [ "associated" ], [ "with" ], [ "london" ], [ "gatwick" ], [ "airport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "aircraft", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "london", "JJ" ], [ "gatwick", "JJ" ], [ "airport", "NN" ], [ "?", "." ] ], "values": [ "London Gatwick" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(4) Filter(2) A(0) C(18) T(3) V(0)" }, { "db_id": "aircraft", "query": "SELECT T1.Aircraft , T1.Description FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Total_Passengers > 10000000", "query_toks": [ "SELECT", "T1.Aircraft", ",", "T1.Description", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2.Airport_ID", "=", "T3.Airport_ID", "WHERE", "T3.Total_Passengers", ">", "10000000" ], "query_toks_no_value": [ "select", "t1", ".", "aircraft", ",", "t1", ".", "description", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t3", ".", "total_passengers", ">", "value" ], "question": "Please show the names and descriptions of aircrafts associated with airports that have a total number of passengers bigger than 10000000.", "question_toks": [ "please", "show", "name", "and", "description", "of", "aircraft", "associated", "with", "airport", "that", "have", "a", "total", "number", "of", "passenger", "bigger", "than", "10000000", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "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, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 3, [ 0, [ 0, 19, false ], null ], 10000000.0, null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "Please", "show", "the", "names", "and", "descriptions", "of", "aircrafts", "associated", "with", "airports", "that", "have", "a", "total", "number", "of", "passengers", "bigger", "than", "10000000", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "name" ], [ "and" ], [ "description" ], [ "of" ], [ "aircraft" ], [ "associated" ], [ "with" ], [ "airport" ], [ "that" ], [ "have" ], [ "a" ], [ "total" ], [ "number" ], [ "of" ], [ "passenger" ], [ "bigger" ], [ "than" ], [ "10000000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "airport", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "passenger", "NN" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "10000000", "CD" ], [ ".", "." ] ], "values": [ "10000000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(6) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(4) Filter(5) A(0) C(19) T(3) V(0)" }, { "db_id": "aircraft", "query": "SELECT T1.Aircraft , T1.Description FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Total_Passengers > 10000000", "query_toks": [ "SELECT", "T1.Aircraft", ",", "T1.Description", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2.Airport_ID", "=", "T3.Airport_ID", "WHERE", "T3.Total_Passengers", ">", "10000000" ], "query_toks_no_value": [ "select", "t1", ".", "aircraft", ",", "t1", ".", "description", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t3", ".", "total_passengers", ">", "value" ], "question": "What are the names and descriptions of aircrafts associated with an airport that has more total passengers than 10000000?", "question_toks": [ "what", "are", "name", "and", "description", "of", "aircraft", "associated", "with", "an", "airport", "that", "ha", "more", "total", "passenger", "than", "10000000", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "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, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 3, [ 0, [ 0, 19, false ], null ], 10000000.0, null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "descriptions", "of", "aircrafts", "associated", "with", "an", "airport", "that", "has", "more", "total", "passengers", "than", "10000000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "description" ], [ "of" ], [ "aircraft" ], [ "associated" ], [ "with" ], [ "an" ], [ "airport" ], [ "that" ], [ "ha" ], [ "more" ], [ "total", "passenger" ], [ "than" ], [ "10000000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "an", "DT" ], [ "airport", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "more", "JJR" ], [ "total", "JJ" ], [ "passenger", "NN" ], [ "than", "IN" ], [ "10000000", "CD" ], [ "?", "." ] ], "values": [ "10000000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(6) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(4) Filter(5) A(0) C(19) T(3) V(0)" }, { "db_id": "aircraft", "query": "SELECT avg(T3.Total_Passengers) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T1.Aircraft = \"Robinson R-22\"", "query_toks": [ "SELECT", "avg", "(", "T3.Total_Passengers", ")", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2.Airport_ID", "=", "T3.Airport_ID", "WHERE", "T1.Aircraft", "=", "``", "Robinson", "R-22", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t3", ".", "total_passengers", ")", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t1", ".", "aircraft", "=", "value" ], "question": "What is the average total number of passengers of airports that are associated with aircraft \"Robinson R-22\"?", "question_toks": [ "what", "is", "average", "total", "number", "of", "passenger", "of", "airport", "that", "are", "associated", "with", "aircraft", "'", "robinson", "r-22", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 28, 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, 5, false ], null ], "\"Robinson R-22\"", null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "average", "total", "number", "of", "passengers", "of", "airports", "that", "are", "associated", "with", "aircraft", "``", "Robinson", "R-22", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "total" ], [ "number" ], [ "of" ], [ "passenger" ], [ "of" ], [ "airport" ], [ "that" ], [ "are" ], [ "associated" ], [ "with" ], [ "aircraft" ], [ "'" ], [ "robinson" ], [ "r-22" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "passenger", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "aircraft", "NN" ], [ "'", "''" ], [ "robinson", "JJ" ], [ "r-22", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "22", "Robinson R-22" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(19) T(3) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(4) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "aircraft", "query": "SELECT avg(T3.Total_Passengers) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T1.Aircraft = \"Robinson R-22\"", "query_toks": [ "SELECT", "avg", "(", "T3.Total_Passengers", ")", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2.Airport_ID", "=", "T3.Airport_ID", "WHERE", "T1.Aircraft", "=", "``", "Robinson", "R-22", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t3", ".", "total_passengers", ")", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t1", ".", "aircraft", "=", "value" ], "question": "What is the average total number of passengers for all airports that the aircraft \"Robinson R-22\" visits?", "question_toks": [ "what", "is", "average", "total", "number", "of", "passenger", "for", "all", "airport", "that", "aircraft", "'", "robinson", "r-22", "'", "visit", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 28, 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, 5, false ], null ], "\"Robinson R-22\"", null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "average", "total", "number", "of", "passengers", "for", "all", "airports", "that", "the", "aircraft", "``", "Robinson", "R-22", "''", "visits", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "total" ], [ "number" ], [ "of" ], [ "passenger" ], [ "for" ], [ "all" ], [ "airport" ], [ "that" ], [ "aircraft" ], [ "'" ], [ "robinson" ], [ "r-22" ], [ "'" ], [ "visit" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "passenger", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "airport", "NN" ], [ "that", "IN" ], [ "aircraft", "NN" ], [ "'", "''" ], [ "robinson", "JJ" ], [ "r-22", "NN" ], [ "'", "''" ], [ "visit", "NN" ], [ "?", "." ] ], "values": [ "22", "Robinson R-22" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(19) T(3) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(4) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "aircraft", "query": "SELECT T2.Location , T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft", "query_toks": [ "SELECT", "T2.Location", ",", "T1.Aircraft", "FROM", "aircraft", "AS", "T1", "JOIN", "MATCH", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Winning_Aircraft" ], "query_toks_no_value": [ "select", "t2", ".", "location", ",", "t1", ".", "aircraft", "from", "aircraft", "as", "t1", "join", "match", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "winning_aircraft" ], "question": "Please list the location and the winning aircraft name.", "question_toks": [ "please", "list", "location", "and", "winning", "aircraft", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "Please", "list", "the", "location", "and", "the", "winning", "aircraft", "name", "." ], "question_arg": [ [ "please" ], [ "list" ], [ "location" ], [ "and" ], [ "winning", "aircraft" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "JJ" ], [ "list", "NN" ], [ "location", "NN" ], [ "and", "CC" ], [ "winning", "NN" ], [ "aircraft", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(2) A(0) C(5) T(1)" }, { "db_id": "aircraft", "query": "SELECT T2.Location , T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft", "query_toks": [ "SELECT", "T2.Location", ",", "T1.Aircraft", "FROM", "aircraft", "AS", "T1", "JOIN", "MATCH", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Winning_Aircraft" ], "query_toks_no_value": [ "select", "t2", ".", "location", ",", "t1", ".", "aircraft", "from", "aircraft", "as", "t1", "join", "match", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "winning_aircraft" ], "question": "What is the location and name of the winning aircraft?", "question_toks": [ "what", "is", "location", "and", "name", "of", "winning", "aircraft", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "location", "and", "name", "of", "the", "winning", "aircraft", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "location" ], [ "and" ], [ "name" ], [ "of" ], [ "winning", "aircraft" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "location", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "winning", "VBG" ], [ "aircraft", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(2) A(0) C(5) T(1)" }, { "db_id": "aircraft", "query": "SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Aircraft", "FROM", "aircraft", "AS", "T1", "JOIN", "MATCH", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Winning_Aircraft", "GROUP", "BY", "T2.Winning_Aircraft", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "aircraft", "from", "aircraft", "as", "t1", "join", "match", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "winning_aircraft", "group", "by", "t2", ".", "winning_aircraft", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "List the name of the aircraft that has been named winning aircraft the most number of times.", "question_toks": [ "list", "name", "of", "aircraft", "that", "ha", "been", "named", "winning", "aircraft", "most", "number", "of", "time", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 16, 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, 16, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "List", "the", "name", "of", "the", "aircraft", "that", "has", "been", "named", "winning", "aircraft", "the", "most", "number", "of", "times", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "aircraft" ], [ "that" ], [ "ha" ], [ "been" ], [ "named" ], [ "winning", "aircraft" ], [ "most" ], [ "number" ], [ "of" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "been", "VBN" ], [ "named", "VBN" ], [ "winning", "VBG" ], [ "aircraft", "NN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(5) T(1) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(16) T(2)" }, { "db_id": "aircraft", "query": "SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Aircraft", "FROM", "aircraft", "AS", "T1", "JOIN", "MATCH", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Winning_Aircraft", "GROUP", "BY", "T2.Winning_Aircraft", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "aircraft", "from", "aircraft", "as", "t1", "join", "match", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "winning_aircraft", "group", "by", "t2", ".", "winning_aircraft", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the aircraft that has won an award the most?", "question_toks": [ "what", "is", "name", "of", "aircraft", "that", "ha", "won", "an", "award", "most", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 16, 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, 16, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "aircraft", "that", "has", "won", "an", "award", "the", "most", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "aircraft" ], [ "that" ], [ "ha" ], [ "won" ], [ "an" ], [ "award" ], [ "most" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "won", "VBD" ], [ "an", "DT" ], [ "award", "NN" ], [ "most", "RBS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(5) T(1) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(16) T(2)" }, { "db_id": "aircraft", "query": "SELECT T1.Aircraft , COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft", "query_toks": [ "SELECT", "T1.Aircraft", ",", "COUNT", "(", "*", ")", "FROM", "aircraft", "AS", "T1", "JOIN", "MATCH", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Winning_Aircraft", "GROUP", "BY", "T2.Winning_Aircraft" ], "query_toks_no_value": [ "select", "t1", ".", "aircraft", ",", "count", "(", "*", ")", "from", "aircraft", "as", "t1", "join", "match", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "winning_aircraft", "group", "by", "t2", ".", "winning_aircraft" ], "question": "List the names of aircrafts and the number of times it won matches.", "question_toks": [ "list", "name", "of", "aircraft", "and", "number", "of", "time", "it", "won", "match", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 16, 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": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "List", "the", "names", "of", "aircrafts", "and", "the", "number", "of", "times", "it", "won", "matches", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "aircraft" ], [ "and" ], [ "number" ], [ "of" ], [ "time" ], [ "it" ], [ "won" ], [ "match" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "it", "PRP" ], [ "won", "VBD" ], [ "match", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(5) T(1) A(3) C(0) T(2)" }, { "db_id": "aircraft", "query": "SELECT T1.Aircraft , COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft", "query_toks": [ "SELECT", "T1.Aircraft", ",", "COUNT", "(", "*", ")", "FROM", "aircraft", "AS", "T1", "JOIN", "MATCH", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Winning_Aircraft", "GROUP", "BY", "T2.Winning_Aircraft" ], "query_toks_no_value": [ "select", "t1", ".", "aircraft", ",", "count", "(", "*", ")", "from", "aircraft", "as", "t1", "join", "match", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "winning_aircraft", "group", "by", "t2", ".", "winning_aircraft" ], "question": "For each aircraft that has won an award, what is its name and how many time has it won?", "question_toks": [ "for", "each", "aircraft", "that", "ha", "won", "an", "award", ",", "what", "is", "it", "name", "and", "how", "many", "time", "ha", "it", "won", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 16, 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": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "For", "each", "aircraft", "that", "has", "won", "an", "award", ",", "what", "is", "its", "name", "and", "how", "many", "time", "has", "it", "won", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "aircraft" ], [ "that" ], [ "ha" ], [ "won" ], [ "an" ], [ "award" ], [ "," ], [ "what" ], [ "is" ], [ "it" ], [ "name" ], [ "and" ], [ "how" ], [ "many" ], [ "time" ], [ "ha" ], [ "it" ], [ "won" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "aircraft", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "won", "VBD" ], [ "an", "DT" ], [ "award", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "it", "PRP" ], [ "name", "NN" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "time", "NN" ], [ "ha", "VB" ], [ "it", "PRP" ], [ "won", "VBD" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(5) T(1) A(3) C(0) T(2)" }, { "db_id": "aircraft", "query": "SELECT Name FROM pilot ORDER BY Age DESC", "query_toks": [ "SELECT", "Name", "FROM", "pilot", "ORDER", "BY", "Age", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "pilot", "order", "by", "age", "desc" ], "question": "List names of all pilot in descending order of age.", "question_toks": [ "list", "name", "of", "all", "pilot", "in", "descending", "order", "of", "age", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "List", "names", "of", "all", "pilot", "in", "descending", "order", "of", "age", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "pilot" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "pilot", "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(2) T(0) Order(0) A(0) C(3) T(0)" }, { "db_id": "aircraft", "query": "SELECT Name FROM pilot ORDER BY Age DESC", "query_toks": [ "SELECT", "Name", "FROM", "pilot", "ORDER", "BY", "Age", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "pilot", "order", "by", "age", "desc" ], "question": "What are the names of all pilots listed by descending age?", "question_toks": [ "what", "are", "name", "of", "all", "pilot", "listed", "by", "descending", "age", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "pilots", "listed", "by", "descending", "age", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "pilot" ], [ "listed" ], [ "by" ], [ "descending" ], [ "age" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "pilot", "NN" ], [ "listed", "VBN" ], [ "by", "IN" ], [ "descending", "VBG" ], [ "age", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(0) A(0) C(3) T(0)" }, { "db_id": "aircraft", "query": "SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "T1.Aircraft", "FROM", "aircraft", "AS", "T1", "JOIN", "MATCH", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Winning_Aircraft", "GROUP", "BY", "T2.Winning_Aircraft", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "aircraft", "from", "aircraft", "as", "t1", "join", "match", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "winning_aircraft", "group", "by", "t2", ".", "winning_aircraft", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "List the names of aircrafts and that won matches at least twice.", "question_toks": [ "list", "name", "of", "aircraft", "and", "that", "won", "match", "at", "least", "twice", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "List", "the", "names", "of", "aircrafts", "and", "that", "won", "matches", "at", "least", "twice", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "aircraft" ], [ "and" ], [ "that" ], [ "won" ], [ "match" ], [ "at" ], [ "least" ], [ "twice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "and", "CC" ], [ "that", "IN" ], [ "won", "VBD" ], [ "match", "NN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "twice", "RB" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(16) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "aircraft", "query": "SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "T1.Aircraft", "FROM", "aircraft", "AS", "T1", "JOIN", "MATCH", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Winning_Aircraft", "GROUP", "BY", "T2.Winning_Aircraft", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "aircraft", "from", "aircraft", "as", "t1", "join", "match", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "winning_aircraft", "group", "by", "t2", ".", "winning_aircraft", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the names of all aircrafts that have won a match at least twice?", "question_toks": [ "what", "are", "name", "of", "all", "aircraft", "that", "have", "won", "a", "match", "at", "least", "twice", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "aircrafts", "that", "have", "won", "a", "match", "at", "least", "twice", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "aircraft" ], [ "that" ], [ "have" ], [ "won" ], [ "a" ], [ "match" ], [ "at" ], [ "least" ], [ "twice" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "aircraft", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "won", "VBN" ], [ "a", "DT" ], [ "match", "NN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "twice", "RB" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(16) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "aircraft", "query": "SELECT Aircraft FROM aircraft WHERE Aircraft_ID NOT IN (SELECT Winning_Aircraft FROM MATCH)", "query_toks": [ "SELECT", "Aircraft", "FROM", "aircraft", "WHERE", "Aircraft_ID", "NOT", "IN", "(", "SELECT", "Winning_Aircraft", "FROM", "MATCH", ")" ], "query_toks_no_value": [ "select", "aircraft", "from", "aircraft", "where", "aircraft_id", "not", "in", "(", "select", "winning_aircraft", "from", "match", ")" ], "question": "List the names of aircrafts and that did not win any match.", "question_toks": [ "list", "name", "of", "aircraft", "and", "that", "did", "not", "win", "any", "match", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 4, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "List", "the", "names", "of", "aircrafts", "and", "that", "did", "not", "win", "any", "match", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "aircraft" ], [ "and" ], [ "that" ], [ "did" ], [ "not" ], [ "win" ], [ "any" ], [ "match" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "and", "CC" ], [ "that", "DT" ], [ "did", "VBD" ], [ "not", "RB" ], [ "win", "VB" ], [ "any", "DT" ], [ "match", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(19) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(16) T(2)" }, { "db_id": "aircraft", "query": "SELECT Aircraft FROM aircraft WHERE Aircraft_ID NOT IN (SELECT Winning_Aircraft FROM MATCH)", "query_toks": [ "SELECT", "Aircraft", "FROM", "aircraft", "WHERE", "Aircraft_ID", "NOT", "IN", "(", "SELECT", "Winning_Aircraft", "FROM", "MATCH", ")" ], "query_toks_no_value": [ "select", "aircraft", "from", "aircraft", "where", "aircraft_id", "not", "in", "(", "select", "winning_aircraft", "from", "match", ")" ], "question": "What are the names of all aicrafts that have never won any match?", "question_toks": [ "what", "are", "name", "of", "all", "aicrafts", "that", "have", "never", "won", "any", "match", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 4, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "aicrafts", "that", "have", "never", "won", "any", "match", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "aicrafts" ], [ "that" ], [ "have" ], [ "never" ], [ "won" ], [ "any" ], [ "match" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "aicrafts", "NNS" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "never", "RB" ], [ "won", "VBN" ], [ "any", "DT" ], [ "match", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(19) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(16) T(2)" }, { "db_id": "aircraft", "query": "SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = \"London Heathrow\" INTERSECT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = \"London Gatwick\"", "query_toks": [ "SELECT", "T1.Aircraft", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2.Airport_ID", "=", "T3.Airport_ID", "WHERE", "T3.Airport_Name", "=", "``", "London", "Heathrow", "''", "INTERSECT", "SELECT", "T1.Aircraft", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2.Airport_ID", "=", "T3.Airport_ID", "WHERE", "T3.Airport_Name", "=", "``", "London", "Gatwick", "''" ], "query_toks_no_value": [ "select", "t1", ".", "aircraft", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t3", ".", "airport_name", "=", "value", "intersect", "select", "t1", ".", "aircraft", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t3", ".", "airport_name", "=", "value" ], "question": "Show the names of aircrafts that are associated with both an airport named \"London Heathrow\" and an airport named \"London Gatwick\"", "question_toks": [ "show", "name", "of", "aircraft", "that", "are", "associated", "with", "both", "an", "airport", "named", "'", "london", "heathrow", "'", "and", "an", "airport", "named", "'", "london", "gatwick", "'" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "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, 28, 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, 18, false ], null ], "\"London Gatwick\"", 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, 28, 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, 18, false ], null ], "\"London Heathrow\"", null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "Show", "the", "names", "of", "aircrafts", "that", "are", "associated", "with", "both", "an", "airport", "named", "``", "London", "Heathrow", "''", "and", "an", "airport", "named", "``", "London", "Gatwick", "''" ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "aircraft" ], [ "that" ], [ "are" ], [ "associated" ], [ "with" ], [ "both" ], [ "an" ], [ "airport" ], [ "named" ], [ "'" ], [ "london" ], [ "heathrow" ], [ "'" ], [ "and" ], [ "an" ], [ "airport" ], [ "named" ], [ "'" ], [ "london" ], [ "gatwick" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "both", "DT" ], [ "an", "DT" ], [ "airport", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "london", "JJ" ], [ "heathrow", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "an", "DT" ], [ "airport", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "london", "JJ" ], [ "gatwick", "NN" ], [ "'", "''" ] ], "values": [ "London Heathrow", "London Gatwick" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(4) Filter(2) A(0) C(18) T(3) V(0) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(4) Filter(2) A(0) C(18) T(3) V(1)" }, { "db_id": "aircraft", "query": "SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = \"London Heathrow\" INTERSECT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = \"London Gatwick\"", "query_toks": [ "SELECT", "T1.Aircraft", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2.Airport_ID", "=", "T3.Airport_ID", "WHERE", "T3.Airport_Name", "=", "``", "London", "Heathrow", "''", "INTERSECT", "SELECT", "T1.Aircraft", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2.Airport_ID", "=", "T3.Airport_ID", "WHERE", "T3.Airport_Name", "=", "``", "London", "Gatwick", "''" ], "query_toks_no_value": [ "select", "t1", ".", "aircraft", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t3", ".", "airport_name", "=", "value", "intersect", "select", "t1", ".", "aircraft", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t3", ".", "airport_name", "=", "value" ], "question": "What are the names of all aircrafts that are associated with both London Heathrow and Gatwick airports?", "question_toks": [ "what", "are", "name", "of", "all", "aircraft", "that", "are", "associated", "with", "both", "london", "heathrow", "and", "gatwick", "airport", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "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, 28, 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, 18, false ], null ], "\"London Gatwick\"", 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, 28, 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, 18, false ], null ], "\"London Heathrow\"", null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "aircrafts", "that", "are", "associated", "with", "both", "London", "Heathrow", "and", "Gatwick", "airports", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "aircraft" ], [ "that" ], [ "are" ], [ "associated" ], [ "with" ], [ "both" ], [ "london" ], [ "heathrow" ], [ "and" ], [ "gatwick" ], [ "airport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "aircraft", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "both", "DT" ], [ "london", "JJ" ], [ "heathrow", "NN" ], [ "and", "CC" ], [ "gatwick", "NN" ], [ "airport", "NN" ], [ "?", "." ] ], "values": [ "London Heathrow", "London Gatwick" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(4) Filter(2) A(0) C(18) T(3) V(0) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(4) Filter(2) A(0) C(18) T(3) V(1)" }, { "db_id": "aircraft", "query": "SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1", "query_toks": [ "SELECT", "*", "FROM", "airport", "ORDER", "BY", "International_Passengers", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "*", "from", "airport", "order", "by", "international_passengers", "desc", "limit", "value" ], "question": "Show all information on the airport that has the largest number of international passengers.", "question_toks": [ "show", "all", "information", "on", "airport", "that", "ha", "largest", "number", "of", "international", "passenger", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "Show", "all", "information", "on", "the", "airport", "that", "has", "the", "largest", "number", "of", "international", "passengers", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "information" ], [ "on" ], [ "airport" ], [ "that" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "international", "passenger" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "information", "NN" ], [ "on", "IN" ], [ "airport", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "international", "JJ" ], [ "passenger", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(0) T(3) Sup(0) A(0) C(21) T(3)" }, { "db_id": "aircraft", "query": "SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1", "query_toks": [ "SELECT", "*", "FROM", "airport", "ORDER", "BY", "International_Passengers", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "*", "from", "airport", "order", "by", "international_passengers", "desc", "limit", "value" ], "question": "What is all the information on the airport with the largest number of international passengers?", "question_toks": [ "what", "is", "all", "information", "on", "airport", "with", "largest", "number", "of", "international", "passenger", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "is", "all", "the", "information", "on", "the", "airport", "with", "the", "largest", "number", "of", "international", "passengers", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "all" ], [ "information" ], [ "on" ], [ "airport" ], [ "with" ], [ "largest" ], [ "number" ], [ "of" ], [ "international", "passenger" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "all", "DT" ], [ "information", "NN" ], [ "on", "IN" ], [ "airport", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "international", "JJ" ], [ "passenger", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(0) T(3) Sup(0) A(0) C(21) T(3)" }, { "db_id": "aircraft", "query": "SELECT t1.name , t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot WHERE t1.age < 30 GROUP BY t2.winning_pilot ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", ",", "t1.age", "FROM", "pilot", "AS", "t1", "JOIN", "MATCH", "AS", "t2", "ON", "t1.pilot_id", "=", "t2.winning_pilot", "WHERE", "t1.age", "<", "30", "GROUP", "BY", "t2.winning_pilot", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "age", "from", "pilot", "as", "t1", "join", "match", "as", "t2", "on", "t1", ".", "pilot_id", "=", "t2", ".", "winning_pilot", "where", "t1", ".", "age", "<", "value", "group", "by", "t2", ".", "winning_pilot", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "find the name and age of the pilot who has won the most number of times among the pilots who are younger than 30.", "question_toks": [ "find", "name", "and", "age", "of", "pilot", "who", "ha", "won", "most", "number", "of", "time", "among", "pilot", "who", "are", "younger", "than", "30", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, 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, 15, 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, 3, false ], null ], 30.0, null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "find", "the", "name", "and", "age", "of", "the", "pilot", "who", "has", "won", "the", "most", "number", "of", "times", "among", "the", "pilots", "who", "are", "younger", "than", "30", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "age" ], [ "of" ], [ "pilot" ], [ "who" ], [ "ha" ], [ "won" ], [ "most" ], [ "number" ], [ "of" ], [ "time" ], [ "among" ], [ "pilot" ], [ "who" ], [ "are" ], [ "younger" ], [ "than" ], [ "30" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "who", "WP" ], [ "ha", "VBP" ], [ "won", "VBD" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "among", "IN" ], [ "pilot", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "younger", "JJR" ], [ "than", "IN" ], [ "30", "CD" ], [ ".", "." ] ], "values": [ "30" ], "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(2) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(15) T(2) Filter(4) A(0) C(3) T(0) V(0)" }, { "db_id": "aircraft", "query": "SELECT t1.name , t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot WHERE t1.age < 30 GROUP BY t2.winning_pilot ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", ",", "t1.age", "FROM", "pilot", "AS", "t1", "JOIN", "MATCH", "AS", "t2", "ON", "t1.pilot_id", "=", "t2.winning_pilot", "WHERE", "t1.age", "<", "30", "GROUP", "BY", "t2.winning_pilot", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "age", "from", "pilot", "as", "t1", "join", "match", "as", "t2", "on", "t1", ".", "pilot_id", "=", "t2", ".", "winning_pilot", "where", "t1", ".", "age", "<", "value", "group", "by", "t2", ".", "winning_pilot", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name and age of the pilot younger than 30 who has won the most number of times?", "question_toks": [ "what", "is", "name", "and", "age", "of", "pilot", "younger", "than", "30", "who", "ha", "won", "most", "number", "of", "time", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, 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, 15, 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, 3, false ], null ], 30.0, null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "age", "of", "the", "pilot", "younger", "than", "30", "who", "has", "won", "the", "most", "number", "of", "times", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "age" ], [ "of" ], [ "pilot" ], [ "younger" ], [ "than" ], [ "30" ], [ "who" ], [ "ha" ], [ "won" ], [ "most" ], [ "number" ], [ "of" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "younger", "JJR" ], [ "than", "IN" ], [ "30", "CD" ], [ "who", "WP" ], [ "ha", "VBP" ], [ "won", "VBD" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "?", "." ] ], "values": [ "30" ], "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(2) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(15) T(2) Filter(4) A(0) C(3) T(0) V(0)" }, { "db_id": "aircraft", "query": "SELECT t1.name , t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot ORDER BY t1.age LIMIT 1", "query_toks": [ "SELECT", "t1.name", ",", "t1.age", "FROM", "pilot", "AS", "t1", "JOIN", "MATCH", "AS", "t2", "ON", "t1.pilot_id", "=", "t2.winning_pilot", "ORDER", "BY", "t1.age", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "age", "from", "pilot", "as", "t1", "join", "match", "as", "t2", "on", "t1", ".", "pilot_id", "=", "t2", ".", "winning_pilot", "order", "by", "t1", ".", "age", "limit", "value" ], "question": "what is the name and age of the youngest winning pilot?", "question_toks": [ "what", "is", "name", "and", "age", "of", "youngest", "winning", "pilot", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "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 ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "what", "is", "the", "name", "and", "age", "of", "the", "youngest", "winning", "pilot", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "age" ], [ "of" ], [ "youngest" ], [ "winning", "pilot" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "youngest", "JJS" ], [ "winning", "VBG" ], [ "pilot", "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(1) A(0) C(3) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(15) T(2)" }, { "db_id": "aircraft", "query": "SELECT t1.name , t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot ORDER BY t1.age LIMIT 1", "query_toks": [ "SELECT", "t1.name", ",", "t1.age", "FROM", "pilot", "AS", "t1", "JOIN", "MATCH", "AS", "t2", "ON", "t1.pilot_id", "=", "t2.winning_pilot", "ORDER", "BY", "t1.age", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "age", "from", "pilot", "as", "t1", "join", "match", "as", "t2", "on", "t1", ".", "pilot_id", "=", "t2", ".", "winning_pilot", "order", "by", "t1", ".", "age", "limit", "value" ], "question": "How old is the youngest winning pilot and what is their name?", "question_toks": [ "how", "old", "is", "youngest", "winning", "pilot", "and", "what", "is", "their", "name", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "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 ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "How", "old", "is", "the", "youngest", "winning", "pilot", "and", "what", "is", "their", "name", "?" ], "question_arg": [ [ "how" ], [ "old" ], [ "is" ], [ "youngest" ], [ "winning", "pilot" ], [ "and" ], [ "what" ], [ "is" ], [ "their" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "old", "JJ" ], [ "is", "VBZ" ], [ "youngest", "JJS" ], [ "winning", "VBG" ], [ "pilot", "NN" ], [ "and", "CC" ], [ "what", "WP" ], [ "is", "VBZ" ], [ "their", "PRP$" ], [ "name", "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(1) A(0) C(3) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(15) T(2)" }, { "db_id": "aircraft", "query": "SELECT name FROM pilot WHERE pilot_id NOT IN (SELECT Winning_Pilot FROM MATCH WHERE country = 'Australia')", "query_toks": [ "SELECT", "name", "FROM", "pilot", "WHERE", "pilot_id", "NOT", "IN", "(", "SELECT", "Winning_Pilot", "FROM", "MATCH", "WHERE", "country", "=", "'Australia", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "pilot", "where", "pilot_id", "not", "in", "(", "select", "winning_pilot", "from", "match", "where", "country", "=", "value", ")" ], "question": "find the name of pilots who did not win the matches held in the country of Australia.", "question_toks": [ "find", "name", "of", "pilot", "who", "did", "not", "win", "match", "held", "in", "country", "of", "australia", "." ], "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, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Australia\"", null ] ] }, null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "find", "the", "name", "of", "pilots", "who", "did", "not", "win", "the", "matches", "held", "in", "the", "country", "of", "Australia", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "pilot" ], [ "who" ], [ "did" ], [ "not" ], [ "win" ], [ "match" ], [ "held" ], [ "in" ], [ "country" ], [ "of" ], [ "australia" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "win", "VB" ], [ "match", "NN" ], [ "held", "VBN" ], [ "in", "IN" ], [ "country", "NN" ], [ "of", "IN" ], [ "australia", "NNS" ], [ ".", "." ] ], "values": [ "Australia" ], "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(3) Sel(0) N(0) A(0) C(15) T(2) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "aircraft", "query": "SELECT name FROM pilot WHERE pilot_id NOT IN (SELECT Winning_Pilot FROM MATCH WHERE country = 'Australia')", "query_toks": [ "SELECT", "name", "FROM", "pilot", "WHERE", "pilot_id", "NOT", "IN", "(", "SELECT", "Winning_Pilot", "FROM", "MATCH", "WHERE", "country", "=", "'Australia", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "pilot", "where", "pilot_id", "not", "in", "(", "select", "winning_pilot", "from", "match", "where", "country", "=", "value", ")" ], "question": "What are the names of the pilots that have not won any matches in Australia?", "question_toks": [ "what", "are", "name", "of", "pilot", "that", "have", "not", "won", "any", "match", "in", "australia", "?" ], "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, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Australia\"", null ] ] }, null ] ] }, "names": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id", "airport id", "aircraft id" ], "table_names": [ "pilot", "aircraft", "match", "airport", "airport aircraft" ], "col_set": [ "*", "pilot id", "name", "age", "aircraft id", "aircraft", "description", "max gross weight", "total disk area", "max disk loading", "round", "location", "country", "date", "fastest qualifying", "winning pilot", "winning aircraft", "airport id", "airport name", "total passengers", "% change 2007", "international passengers", "domestic passengers", "transit passengers", "aircraft movements", "freight metric tonnes", "id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "15": 1, "1": 1, "16": 4, "4": 4, "28": 4, "27": 27, "17": 17, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "pilots", "that", "have", "not", "won", "any", "matches", "in", "Australia", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "pilot" ], [ "that" ], [ "have" ], [ "not" ], [ "won" ], [ "any" ], [ "match" ], [ "in" ], [ "australia" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "not", "RB" ], [ "won", "VBN" ], [ "any", "DT" ], [ "match", "NN" ], [ "in", "IN" ], [ "australia", "NNS" ], [ "?", "." ] ], "values": [ "Australia" ], "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(3) Sel(0) N(0) A(0) C(15) T(2) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "local_govt_and_lot", "query": "SELECT T1.property_id , count(*) FROM properties AS T1 JOIN residents AS T2 ON T1.property_id = T2.property_id GROUP BY T1.property_id", "query_toks": [ "SELECT", "T1.property_id", ",", "count", "(", "*", ")", "FROM", "properties", "AS", "T1", "JOIN", "residents", "AS", "T2", "ON", "T1.property_id", "=", "T2.property_id", "GROUP", "BY", "T1.property_id" ], "query_toks_no_value": [ "select", "t1", ".", "property_id", ",", "count", "(", "*", ")", "from", "properties", "as", "t1", "join", "residents", "as", "t2", "on", "t1", ".", "property_id", "=", "t2", ".", "property_id", "group", "by", "t1", ".", "property_id" ], "question": "How many residents does each property have? List property id and resident count.", "question_toks": [ "how", "many", "resident", "doe", "each", "property", "have", "?", "list", "property", "id", "and", "resident", "count", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "property id", "date moved in", "date moved out", "other details", "organization id", "parent organization id", "organization details", "service id", "organization id", "service type code", "service details", "resident id", "service id", "date moved in", "property id", "date requested", "date provided", "other details", "thing id", "organization id", "type of thing code", "service type code", "service details", "customer event id", "customer id", "date moved in", "property id", "resident id", "thing id", "customer event note id", "customer event id", "service type code", "resident id", "property id", "date moved in", "thing id", "date and date", "status of thing code", "thing id", "date and time", "location code" ], "table_names": [ "customers", "properties", "residents", "organizations", "services", "residents services", "things", "customer events", "customer event notes", "timed status of things", "timed locations of things" ], "col_set": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "date moved in", "date moved out", "organization id", "parent organization id", "organization details", "service id", "service type code", "service details", "date requested", "date provided", "thing id", "type of thing code", "customer event id", "customer event note id", "date and date", "status of thing code", "date and time", "location code" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10 ], "keys": { "8": 34, "3": 3, "16": 12, "12": 12, "19": 19, "7": 7, "22": 8, "21": 9, "9": 33, "20": 15, "15": 15, "27": 12, "35": 7, "34": 8, "33": 9, "32": 1, "1": 1, "36": 26, "26": 26, "38": 31, "31": 31, "43": 43, "46": 46, "37": 37 }, "origin_question_toks": [ "How", "many", "residents", "does", "each", "property", "have", "?", "List", "property", "id", "and", "resident", "count", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "resident" ], [ "doe" ], [ "each" ], [ "property" ], [ "have" ], [ "?" ], [ "list" ], [ "property", "id" ], [ "and" ], [ "resident" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "resident", "JJ" ], [ "doe", "NNS" ], [ "each", "DT" ], [ "property", "NN" ], [ "have", "VBP" ], [ "?", "." ], [ "list", "JJ" ], [ "property", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "resident", "NN" ], [ "count", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(1) A(3) C(0) T(2)" }, { "db_id": "local_govt_and_lot", "query": "SELECT DISTINCT T1.service_type_code FROM services AS T1 JOIN organizations AS T2 ON T1.organization_id = T2.organization_id WHERE T2.organization_details = 'Denesik and Sons Party'", "query_toks": [ "SELECT", "DISTINCT", "T1.service_type_code", "FROM", "services", "AS", "T1", "JOIN", "organizations", "AS", "T2", "ON", "T1.organization_id", "=", "T2.organization_id", "WHERE", "T2.organization_details", "=", "'Denesik", "and", "Sons", "Party", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "service_type_code", "from", "services", "as", "t1", "join", "organizations", "as", "t2", "on", "t1", ".", "organization_id", "=", "t2", ".", "organization_id", "where", "t2", ".", "organization_details", "=", "value" ], "question": "What is the distinct service types that are provided by the organization which has detail 'Denesik and Sons Party'?", "question_toks": [ "what", "is", "distinct", "service", "type", "that", "are", "provided", "by", "organization", "which", "ha", "detail", "'", "denesik", "and", "son", "party", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Denesik and Sons Party\"", null ] ] }, "names": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "property id", "date moved in", "date moved out", "other details", "organization id", "parent organization id", "organization details", "service id", "organization id", "service type code", "service details", "resident id", "service id", "date moved in", "property id", "date requested", "date provided", "other details", "thing id", "organization id", "type of thing code", "service type code", "service details", "customer event id", "customer id", "date moved in", "property id", "resident id", "thing id", "customer event note id", "customer event id", "service type code", "resident id", "property id", "date moved in", "thing id", "date and date", "status of thing code", "thing id", "date and time", "location code" ], "table_names": [ "customers", "properties", "residents", "organizations", "services", "residents services", "things", "customer events", "customer event notes", "timed status of things", "timed locations of things" ], "col_set": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "date moved in", "date moved out", "organization id", "parent organization id", "organization details", "service id", "service type code", "service details", "date requested", "date provided", "thing id", "type of thing code", "customer event id", "customer event note id", "date and date", "status of thing code", "date and time", "location code" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10 ], "keys": { "8": 34, "3": 3, "16": 12, "12": 12, "19": 19, "7": 7, "22": 8, "21": 9, "9": 33, "20": 15, "15": 15, "27": 12, "35": 7, "34": 8, "33": 9, "32": 1, "1": 1, "36": 26, "26": 26, "38": 31, "31": 31, "43": 43, "46": 46, "37": 37 }, "origin_question_toks": [ "What", "is", "the", "distinct", "service", "types", "that", "are", "provided", "by", "the", "organization", "which", "has", "detail", "'Denesik", "and", "Sons", "Party", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "distinct" ], [ "service" ], [ "type" ], [ "that" ], [ "are" ], [ "provided" ], [ "by" ], [ "organization" ], [ "which" ], [ "ha" ], [ "detail" ], [ "'" ], [ "denesik" ], [ "and" ], [ "son" ], [ "party" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "distinct", "JJ" ], [ "service", "NN" ], [ "type", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "provided", "VBN" ], [ "by", "IN" ], [ "organization", "NN" ], [ "which", "WDT" ], [ "ha", "VBD" ], [ "detail", "NN" ], [ "'", "''" ], [ "denesik", "NN" ], [ "and", "CC" ], [ "son", "NN" ], [ "party", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Denesik and Sons Party" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(14) T(4) Filter(2) A(0) C(12) T(3) V(0)" }, { "db_id": "local_govt_and_lot", "query": "SELECT T1.resident_id , T1.other_details , count(*) FROM Residents AS T1 JOIN Residents_Services AS T2 ON T1.resident_id = T2.resident_id GROUP BY T1.resident_id ORDER BY count(*) DESC", "query_toks": [ "SELECT", "T1.resident_id", ",", "T1.other_details", ",", "count", "(", "*", ")", "FROM", "Residents", "AS", "T1", "JOIN", "Residents_Services", "AS", "T2", "ON", "T1.resident_id", "=", "T2.resident_id", "GROUP", "BY", "T1.resident_id", "ORDER", "BY", "count", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "t1", ".", "resident_id", ",", "t1", ".", "other_details", ",", "count", "(", "*", ")", "from", "residents", "as", "t1", "join", "residents_services", "as", "t2", "on", "t1", ".", "resident_id", "=", "t2", ".", "resident_id", "group", "by", "t1", ".", "resident_id", "order", "by", "count", "(", "*", ")", "desc" ], "question": "How many services has each resident requested? List the resident id, details, and the count in descending order of the count.", "question_toks": [ "how", "many", "service", "ha", "each", "resident", "requested", "?", "list", "resident", "id", ",", "detail", ",", "and", "count", "in", "descending", "order", "of", "count", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "property id", "date moved in", "date moved out", "other details", "organization id", "parent organization id", "organization details", "service id", "organization id", "service type code", "service details", "resident id", "service id", "date moved in", "property id", "date requested", "date provided", "other details", "thing id", "organization id", "type of thing code", "service type code", "service details", "customer event id", "customer id", "date moved in", "property id", "resident id", "thing id", "customer event note id", "customer event id", "service type code", "resident id", "property id", "date moved in", "thing id", "date and date", "status of thing code", "thing id", "date and time", "location code" ], "table_names": [ "customers", "properties", "residents", "organizations", "services", "residents services", "things", "customer events", "customer event notes", "timed status of things", "timed locations of things" ], "col_set": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "date moved in", "date moved out", "organization id", "parent organization id", "organization details", "service id", "service type code", "service details", "date requested", "date provided", "thing id", "type of thing code", "customer event id", "customer event note id", "date and date", "status of thing code", "date and time", "location code" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10 ], "keys": { "8": 34, "3": 3, "16": 12, "12": 12, "19": 19, "7": 7, "22": 8, "21": 9, "9": 33, "20": 15, "15": 15, "27": 12, "35": 7, "34": 8, "33": 9, "32": 1, "1": 1, "36": 26, "26": 26, "38": 31, "31": 31, "43": 43, "46": 46, "37": 37 }, "origin_question_toks": [ "How", "many", "services", "has", "each", "resident", "requested", "?", "List", "the", "resident", "id", ",", "details", ",", "and", "the", "count", "in", "descending", "order", "of", "the", "count", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "service" ], [ "ha" ], [ "each" ], [ "resident" ], [ "requested" ], [ "?" ], [ "list" ], [ "resident", "id" ], [ "," ], [ "detail" ], [ "," ], [ "and" ], [ "count" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "service", "NN" ], [ "ha", "NNS" ], [ "each", "DT" ], [ "resident", "NN" ], [ "requested", "VBN" ], [ "?", "." ], [ "list", "JJ" ], [ "resident", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "detail", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "count", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "count", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(7) T(2) A(0) C(6) T(2) A(3) C(0) T(5) Order(0) A(3) C(0) T(5)" }, { "db_id": "local_govt_and_lot", "query": "SELECT T1.service_id , T1.service_details , count(*) FROM Services AS T1 JOIN Residents_Services AS T2 ON T1.service_id = T2.service_id GROUP BY T1.service_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.service_id", ",", "T1.service_details", ",", "count", "(", "*", ")", "FROM", "Services", "AS", "T1", "JOIN", "Residents_Services", "AS", "T2", "ON", "T1.service_id", "=", "T2.service_id", "GROUP", "BY", "T1.service_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "service_id", ",", "t1", ".", "service_details", ",", "count", "(", "*", ")", "from", "services", "as", "t1", "join", "residents_services", "as", "t2", "on", "t1", ".", "service_id", "=", "t2", ".", "service_id", "group", "by", "t1", ".", "service_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the maximum number that a certain service is provided? List the service id, details and number.", "question_toks": [ "what", "is", "maximum", "number", "that", "a", "certain", "service", "is", "provided", "?", "list", "service", "id", ",", "detail", "and", "number", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "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, 18, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "property id", "date moved in", "date moved out", "other details", "organization id", "parent organization id", "organization details", "service id", "organization id", "service type code", "service details", "resident id", "service id", "date moved in", "property id", "date requested", "date provided", "other details", "thing id", "organization id", "type of thing code", "service type code", "service details", "customer event id", "customer id", "date moved in", "property id", "resident id", "thing id", "customer event note id", "customer event id", "service type code", "resident id", "property id", "date moved in", "thing id", "date and date", "status of thing code", "thing id", "date and time", "location code" ], "table_names": [ "customers", "properties", "residents", "organizations", "services", "residents services", "things", "customer events", "customer event notes", "timed status of things", "timed locations of things" ], "col_set": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "date moved in", "date moved out", "organization id", "parent organization id", "organization details", "service id", "service type code", "service details", "date requested", "date provided", "thing id", "type of thing code", "customer event id", "customer event note id", "date and date", "status of thing code", "date and time", "location code" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10 ], "keys": { "8": 34, "3": 3, "16": 12, "12": 12, "19": 19, "7": 7, "22": 8, "21": 9, "9": 33, "20": 15, "15": 15, "27": 12, "35": 7, "34": 8, "33": 9, "32": 1, "1": 1, "36": 26, "26": 26, "38": 31, "31": 31, "43": 43, "46": 46, "37": 37 }, "origin_question_toks": [ "What", "is", "the", "maximum", "number", "that", "a", "certain", "service", "is", "provided", "?", "List", "the", "service", "id", ",", "details", "and", "number", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "number" ], [ "that" ], [ "a" ], [ "certain" ], [ "service" ], [ "is" ], [ "provided" ], [ "?" ], [ "list" ], [ "service", "id" ], [ "," ], [ "detail" ], [ "and" ], [ "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "number", "NN" ], [ "that", "IN" ], [ "a", "DT" ], [ "certain", "JJ" ], [ "service", "NN" ], [ "is", "VBZ" ], [ "provided", "VBN" ], [ "?", "." ], [ "list", "JJ" ], [ "service", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "detail", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(13) T(4) A(0) C(15) T(4) A(3) C(0) T(5) Sup(0) A(3) C(0) T(5)" }, { "db_id": "local_govt_and_lot", "query": "SELECT T1.thing_id , T1.type_of_Thing_Code , T2.organization_details FROM Things AS T1 JOIN Organizations AS T2 ON T1.organization_id = T2.organization_id", "query_toks": [ "SELECT", "T1.thing_id", ",", "T1.type_of_Thing_Code", ",", "T2.organization_details", "FROM", "Things", "AS", "T1", "JOIN", "Organizations", "AS", "T2", "ON", "T1.organization_id", "=", "T2.organization_id" ], "query_toks_no_value": [ "select", "t1", ".", "thing_id", ",", "t1", ".", "type_of_thing_code", ",", "t2", ".", "organization_details", "from", "things", "as", "t1", "join", "organizations", "as", "t2", "on", "t1", ".", "organization_id", "=", "t2", ".", "organization_id" ], "question": "List the id and type of each thing, and the details of the organization that owns it.", "question_toks": [ "list", "id", "and", "type", "of", "each", "thing", ",", "and", "detail", "of", "organization", "that", "owns", "it", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "property id", "date moved in", "date moved out", "other details", "organization id", "parent organization id", "organization details", "service id", "organization id", "service type code", "service details", "resident id", "service id", "date moved in", "property id", "date requested", "date provided", "other details", "thing id", "organization id", "type of thing code", "service type code", "service details", "customer event id", "customer id", "date moved in", "property id", "resident id", "thing id", "customer event note id", "customer event id", "service type code", "resident id", "property id", "date moved in", "thing id", "date and date", "status of thing code", "thing id", "date and time", "location code" ], "table_names": [ "customers", "properties", "residents", "organizations", "services", "residents services", "things", "customer events", "customer event notes", "timed status of things", "timed locations of things" ], "col_set": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "date moved in", "date moved out", "organization id", "parent organization id", "organization details", "service id", "service type code", "service details", "date requested", "date provided", "thing id", "type of thing code", "customer event id", "customer event note id", "date and date", "status of thing code", "date and time", "location code" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10 ], "keys": { "8": 34, "3": 3, "16": 12, "12": 12, "19": 19, "7": 7, "22": 8, "21": 9, "9": 33, "20": 15, "15": 15, "27": 12, "35": 7, "34": 8, "33": 9, "32": 1, "1": 1, "36": 26, "26": 26, "38": 31, "31": 31, "43": 43, "46": 46, "37": 37 }, "origin_question_toks": [ "List", "the", "id", "and", "type", "of", "each", "thing", ",", "and", "the", "details", "of", "the", "organization", "that", "owns", "it", "." ], "question_arg": [ [ "list" ], [ "id" ], [ "and" ], [ "type" ], [ "of" ], [ "each" ], [ "thing" ], [ "," ], [ "and" ], [ "detail" ], [ "of" ], [ "organization" ], [ "that" ], [ "owns" ], [ "it" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "type", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "thing", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "detail", "NN" ], [ "of", "IN" ], [ "organization", "NN" ], [ "that", "IN" ], [ "owns", "VBZ" ], [ "it", "PRP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(18) T(6) A(0) C(19) T(6) A(0) C(12) T(3)" }, { "db_id": "local_govt_and_lot", "query": "SELECT T1.customer_id , T1.customer_details FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 3", "query_toks": [ "SELECT", "T1.customer_id", ",", "T1.customer_details", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Events", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "t1", ".", "customer_id", ",", "t1", ".", "customer_details", "from", "customers", "as", "t1", "join", "customer_events", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the id and details of the customers who have at least 3 events?", "question_toks": [ "what", "are", "id", "and", "detail", "of", "customer", "who", "have", "at", "least", "3", "event", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 32, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 7 ] ] }, "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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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 ] ] }, "names": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "property id", "date moved in", "date moved out", "other details", "organization id", "parent organization id", "organization details", "service id", "organization id", "service type code", "service details", "resident id", "service id", "date moved in", "property id", "date requested", "date provided", "other details", "thing id", "organization id", "type of thing code", "service type code", "service details", "customer event id", "customer id", "date moved in", "property id", "resident id", "thing id", "customer event note id", "customer event id", "service type code", "resident id", "property id", "date moved in", "thing id", "date and date", "status of thing code", "thing id", "date and time", "location code" ], "table_names": [ "customers", "properties", "residents", "organizations", "services", "residents services", "things", "customer events", "customer event notes", "timed status of things", "timed locations of things" ], "col_set": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "date moved in", "date moved out", "organization id", "parent organization id", "organization details", "service id", "service type code", "service details", "date requested", "date provided", "thing id", "type of thing code", "customer event id", "customer event note id", "date and date", "status of thing code", "date and time", "location code" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10 ], "keys": { "8": 34, "3": 3, "16": 12, "12": 12, "19": 19, "7": 7, "22": 8, "21": 9, "9": 33, "20": 15, "15": 15, "27": 12, "35": 7, "34": 8, "33": 9, "32": 1, "1": 1, "36": 26, "26": 26, "38": 31, "31": 31, "43": 43, "46": 46, "37": 37 }, "origin_question_toks": [ "What", "are", "the", "id", "and", "details", "of", "the", "customers", "who", "have", "at", "least", "3", "events", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "detail" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "at" ], [ "least" ], [ "3" ], [ "event" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "detail", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "3", "CD" ], [ "event", "NN" ], [ "?", "." ] ], "values": [ "3" ], "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(1) T(7) Filter(7) A(3) C(0) T(7) V(0)" }, { "db_id": "local_govt_and_lot", "query": "SELECT T2.date_moved_in , T1.customer_id , T1.customer_details FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id = T2.customer_id", "query_toks": [ "SELECT", "T2.date_moved_in", ",", "T1.customer_id", ",", "T1.customer_details", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Events", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id" ], "query_toks_no_value": [ "select", "t2", ".", "date_moved_in", ",", "t1", ".", "customer_id", ",", "t1", ".", "customer_details", "from", "customers", "as", "t1", "join", "customer_events", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id" ], "question": "What is each customer's move in date, and the corresponding customer id and details?", "question_toks": [ "what", "is", "each", "customer", "'s", "move", "in", "date", ",", "and", "corresponding", "customer", "id", "and", "detail", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 32, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "property id", "date moved in", "date moved out", "other details", "organization id", "parent organization id", "organization details", "service id", "organization id", "service type code", "service details", "resident id", "service id", "date moved in", "property id", "date requested", "date provided", "other details", "thing id", "organization id", "type of thing code", "service type code", "service details", "customer event id", "customer id", "date moved in", "property id", "resident id", "thing id", "customer event note id", "customer event id", "service type code", "resident id", "property id", "date moved in", "thing id", "date and date", "status of thing code", "thing id", "date and time", "location code" ], "table_names": [ "customers", "properties", "residents", "organizations", "services", "residents services", "things", "customer events", "customer event notes", "timed status of things", "timed locations of things" ], "col_set": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "date moved in", "date moved out", "organization id", "parent organization id", "organization details", "service id", "service type code", "service details", "date requested", "date provided", "thing id", "type of thing code", "customer event id", "customer event note id", "date and date", "status of thing code", "date and time", "location code" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10 ], "keys": { "8": 34, "3": 3, "16": 12, "12": 12, "19": 19, "7": 7, "22": 8, "21": 9, "9": 33, "20": 15, "15": 15, "27": 12, "35": 7, "34": 8, "33": 9, "32": 1, "1": 1, "36": 26, "26": 26, "38": 31, "31": 31, "43": 43, "46": 46, "37": 37 }, "origin_question_toks": [ "What", "is", "each", "customer", "'s", "move", "in", "date", ",", "and", "the", "corresponding", "customer", "id", "and", "details", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "each" ], [ "customer" ], [ "'s" ], [ "move" ], [ "date", "moved", "in" ], [ "," ], [ "and" ], [ "corresponding" ], [ "customer", "id" ], [ "and" ], [ "detail" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "each", "DT" ], [ "customer", "NN" ], [ "'s", "POS" ], [ "move", "NN" ], [ "in", "IN" ], [ "date", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "customer", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(8) T(7) A(0) C(1) T(0) A(0) C(2) T(0)" }, { "db_id": "local_govt_and_lot", "query": "SELECT T1.Customer_Event_ID , T1.property_id FROM Customer_Events AS T1 JOIN Customer_Event_Notes AS T2 ON T1.Customer_Event_ID = T2.Customer_Event_ID GROUP BY T1.customer_event_id HAVING count(*) BETWEEN 1 AND 3", "query_toks": [ "SELECT", "T1.Customer_Event_ID", ",", "T1.property_id", "FROM", "Customer_Events", "AS", "T1", "JOIN", "Customer_Event_Notes", "AS", "T2", "ON", "T1.Customer_Event_ID", "=", "T2.Customer_Event_ID", "GROUP", "BY", "T1.customer_event_id", "HAVING", "count", "(", "*", ")", "BETWEEN", "1", "AND", "3" ], "query_toks_no_value": [ "select", "t1", ".", "customer_event_id", ",", "t1", ".", "property_id", "from", "customer_events", "as", "t1", "join", "customer_event_notes", "as", "t2", "on", "t1", ".", "customer_event_id", "=", "t2", ".", "customer_event_id", "group", "by", "t1", ".", "customer_event_id", "having", "count", "(", "*", ")", "between", "value", "and", "value" ], "question": "Which events have the number of notes between one and three? List the event id and the property id.", "question_toks": [ "which", "event", "have", "number", "of", "note", "between", "one", "and", "three", "?", "list", "event", "id", "and", "property", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 31, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 31, false ] ], "having": [ [ false, 1, [ 0, [ 3, 0, false ], null ], 1.0, 3.0 ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 31, 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": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "property id", "date moved in", "date moved out", "other details", "organization id", "parent organization id", "organization details", "service id", "organization id", "service type code", "service details", "resident id", "service id", "date moved in", "property id", "date requested", "date provided", "other details", "thing id", "organization id", "type of thing code", "service type code", "service details", "customer event id", "customer id", "date moved in", "property id", "resident id", "thing id", "customer event note id", "customer event id", "service type code", "resident id", "property id", "date moved in", "thing id", "date and date", "status of thing code", "thing id", "date and time", "location code" ], "table_names": [ "customers", "properties", "residents", "organizations", "services", "residents services", "things", "customer events", "customer event notes", "timed status of things", "timed locations of things" ], "col_set": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "date moved in", "date moved out", "organization id", "parent organization id", "organization details", "service id", "service type code", "service details", "date requested", "date provided", "thing id", "type of thing code", "customer event id", "customer event note id", "date and date", "status of thing code", "date and time", "location code" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10 ], "keys": { "8": 34, "3": 3, "16": 12, "12": 12, "19": 19, "7": 7, "22": 8, "21": 9, "9": 33, "20": 15, "15": 15, "27": 12, "35": 7, "34": 8, "33": 9, "32": 1, "1": 1, "36": 26, "26": 26, "38": 31, "31": 31, "43": 43, "46": 46, "37": 37 }, "origin_question_toks": [ "Which", "events", "have", "the", "number", "of", "notes", "between", "one", "and", "three", "?", "List", "the", "event", "id", "and", "the", "property", "id", "." ], "question_arg": [ [ "which" ], [ "event" ], [ "have" ], [ "number" ], [ "of" ], [ "note" ], [ "between" ], [ "one" ], [ "and" ], [ "three" ], [ "?" ], [ "list" ], [ "customer", "event", "id" ], [ "and" ], [ "property", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "event", "NN" ], [ "have", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "note", "NN" ], [ "between", "IN" ], [ "one", "CD" ], [ "and", "CC" ], [ "three", "CD" ], [ "?", "." ], [ "list", "NN" ], [ "event", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "property", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "1", "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(20) T(7) A(0) C(3) T(7) Filter(0) Filter(18) A(0) C(20) T(7) Root(5) Sel(0) N(0) A(0) C(20) T(8) Filter(8) A(3) C(0) T(8) V(0) V(1)" }, { "db_id": "local_govt_and_lot", "query": "SELECT DISTINCT T2.thing_id , T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.Status_of_Thing_Code = 'Close' OR T1.Date_and_Date < '2017-06-19 02:59:21'", "query_toks": [ "SELECT", "DISTINCT", "T2.thing_id", ",", "T2.Type_of_Thing_Code", "FROM", "Timed_Status_of_Things", "AS", "T1", "JOIN", "Things", "AS", "T2", "ON", "T1.thing_id", "=", "T2.thing_id", "WHERE", "T1.Status_of_Thing_Code", "=", "'Close", "'", "OR", "T1.Date_and_Date", "<", "'2017-06-19", "02:59:21", "'" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "thing_id", ",", "t2", ".", "type_of_thing_code", "from", "timed_status_of_things", "as", "t1", "join", "things", "as", "t2", "on", "t1", ".", "thing_id", "=", "t2", ".", "thing_id", "where", "t1", ".", "status_of_thing_code", "=", "value", "or", "t1", ".", "date_and_date", "<", "value" ], "question": "What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21'", "question_toks": [ "what", "are", "distinct", "id", "and", "type", "of", "thing", "that", "ha", "status", "'", "close", "'", "or", "ha", "a", "status", "record", "before", "date", "'", "2017-06-19", "02:59:21", "'" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 43, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 9 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 45, false ], null ], "\"Close\"", null ], "or", [ false, 4, [ 0, [ 0, 44, false ], null ], "\"2017-06-19 02:59:21\"", null ] ] }, "names": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "property id", "date moved in", "date moved out", "other details", "organization id", "parent organization id", "organization details", "service id", "organization id", "service type code", "service details", "resident id", "service id", "date moved in", "property id", "date requested", "date provided", "other details", "thing id", "organization id", "type of thing code", "service type code", "service details", "customer event id", "customer id", "date moved in", "property id", "resident id", "thing id", "customer event note id", "customer event id", "service type code", "resident id", "property id", "date moved in", "thing id", "date and date", "status of thing code", "thing id", "date and time", "location code" ], "table_names": [ "customers", "properties", "residents", "organizations", "services", "residents services", "things", "customer events", "customer event notes", "timed status of things", "timed locations of things" ], "col_set": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "date moved in", "date moved out", "organization id", "parent organization id", "organization details", "service id", "service type code", "service details", "date requested", "date provided", "thing id", "type of thing code", "customer event id", "customer event note id", "date and date", "status of thing code", "date and time", "location code" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10 ], "keys": { "8": 34, "3": 3, "16": 12, "12": 12, "19": 19, "7": 7, "22": 8, "21": 9, "9": 33, "20": 15, "15": 15, "27": 12, "35": 7, "34": 8, "33": 9, "32": 1, "1": 1, "36": 26, "26": 26, "38": 31, "31": 31, "43": 43, "46": 46, "37": 37 }, "origin_question_toks": [ "What", "are", "the", "distinct", "id", "and", "type", "of", "the", "thing", "that", "has", "the", "status", "'Close", "'", "or", "has", "a", "status", "record", "before", "the", "date", "'2017-06-19", "02:59:21", "'" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "id" ], [ "and" ], [ "type" ], [ "of" ], [ "thing" ], [ "that" ], [ "ha" ], [ "status" ], [ "'" ], [ "close" ], [ "'" ], [ "or" ], [ "ha" ], [ "a" ], [ "status" ], [ "record" ], [ "before" ], [ "date" ], [ "'" ], [ "2017-06-19" ], [ "02:59:21" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "id", "NN" ], [ "and", "CC" ], [ "type", "NN" ], [ "of", "IN" ], [ "thing", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "status", "NN" ], [ "'", "''" ], [ "close", "RB" ], [ "'", "POS" ], [ "or", "CC" ], [ "ha", "VB" ], [ "a", "DT" ], [ "status", "NN" ], [ "record", "NN" ], [ "before", "IN" ], [ "date", "NN" ], [ "'", "POS" ], [ "2017-06-19", "JJ" ], [ "02:59:21", "CD" ], [ "'", "POS" ] ], "values": [ "19", "59", "6", "Close", "2017-06-19", "2", "21", "2017", "2017-06-19 02:59:21" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(18) T(6) A(0) C(19) T(6) Filter(1) Filter(2) A(0) C(23) T(9) V(3) Filter(4) A(0) C(22) T(9) V(8)" }, { "db_id": "local_govt_and_lot", "query": "SELECT count(DISTINCT T2.Location_Code) FROM Things AS T1 JOIN Timed_Locations_of_Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.service_details = 'Unsatisfied'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T2.Location_Code", ")", "FROM", "Things", "AS", "T1", "JOIN", "Timed_Locations_of_Things", "AS", "T2", "ON", "T1.thing_id", "=", "T2.thing_id", "WHERE", "T1.service_details", "=", "'Unsatisfied", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t2", ".", "location_code", ")", "from", "things", "as", "t1", "join", "timed_locations_of_things", "as", "t2", "on", "t1", ".", "thing_id", "=", "t2", ".", "thing_id", "where", "t1", ".", "service_details", "=", "value" ], "question": "How many distinct locations have the things with service detail 'Unsatisfied' been located in?", "question_toks": [ "how", "many", "distinct", "location", "have", "thing", "with", "service", "detail", "'", "unsatisfied", "'", "been", "located", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 46, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 48, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 30, false ], null ], "\"Unsatisfied\"", null ] ] }, "names": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "property id", "date moved in", "date moved out", "other details", "organization id", "parent organization id", "organization details", "service id", "organization id", "service type code", "service details", "resident id", "service id", "date moved in", "property id", "date requested", "date provided", "other details", "thing id", "organization id", "type of thing code", "service type code", "service details", "customer event id", "customer id", "date moved in", "property id", "resident id", "thing id", "customer event note id", "customer event id", "service type code", "resident id", "property id", "date moved in", "thing id", "date and date", "status of thing code", "thing id", "date and time", "location code" ], "table_names": [ "customers", "properties", "residents", "organizations", "services", "residents services", "things", "customer events", "customer event notes", "timed status of things", "timed locations of things" ], "col_set": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "date moved in", "date moved out", "organization id", "parent organization id", "organization details", "service id", "service type code", "service details", "date requested", "date provided", "thing id", "type of thing code", "customer event id", "customer event note id", "date and date", "status of thing code", "date and time", "location code" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10 ], "keys": { "8": 34, "3": 3, "16": 12, "12": 12, "19": 19, "7": 7, "22": 8, "21": 9, "9": 33, "20": 15, "15": 15, "27": 12, "35": 7, "34": 8, "33": 9, "32": 1, "1": 1, "36": 26, "26": 26, "38": 31, "31": 31, "43": 43, "46": 46, "37": 37 }, "origin_question_toks": [ "How", "many", "distinct", "locations", "have", "the", "things", "with", "service", "detail", "'Unsatisfied", "'", "been", "located", "in", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "location" ], [ "have" ], [ "thing" ], [ "with" ], [ "service", "detail" ], [ "'" ], [ "unsatisfied" ], [ "'" ], [ "been" ], [ "located" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "location", "NN" ], [ "have", "VBP" ], [ "thing", "NN" ], [ "with", "IN" ], [ "service", "NN" ], [ "detail", "NN" ], [ "'", "''" ], [ "unsatisfied", "JJ" ], [ "'", "POS" ], [ "been", "VBN" ], [ "located", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "Unsatisfied" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(25) T(10) Filter(2) A(0) C(15) T(6) V(0)" }, { "db_id": "local_govt_and_lot", "query": "SELECT count(DISTINCT Status_of_Thing_Code) FROM Timed_Status_of_Things", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Status_of_Thing_Code", ")", "FROM", "Timed_Status_of_Things" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "status_of_thing_code", ")", "from", "timed_status_of_things" ], "question": "How many different status codes of things are there?", "question_toks": [ "how", "many", "different", "status", "code", "of", "thing", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 45, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "property id", "date moved in", "date moved out", "other details", "organization id", "parent organization id", "organization details", "service id", "organization id", "service type code", "service details", "resident id", "service id", "date moved in", "property id", "date requested", "date provided", "other details", "thing id", "organization id", "type of thing code", "service type code", "service details", "customer event id", "customer id", "date moved in", "property id", "resident id", "thing id", "customer event note id", "customer event id", "service type code", "resident id", "property id", "date moved in", "thing id", "date and date", "status of thing code", "thing id", "date and time", "location code" ], "table_names": [ "customers", "properties", "residents", "organizations", "services", "residents services", "things", "customer events", "customer event notes", "timed status of things", "timed locations of things" ], "col_set": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "date moved in", "date moved out", "organization id", "parent organization id", "organization details", "service id", "service type code", "service details", "date requested", "date provided", "thing id", "type of thing code", "customer event id", "customer event note id", "date and date", "status of thing code", "date and time", "location code" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10 ], "keys": { "8": 34, "3": 3, "16": 12, "12": 12, "19": 19, "7": 7, "22": 8, "21": 9, "9": 33, "20": 15, "15": 15, "27": 12, "35": 7, "34": 8, "33": 9, "32": 1, "1": 1, "36": 26, "26": 26, "38": 31, "31": 31, "43": 43, "46": 46, "37": 37 }, "origin_question_toks": [ "How", "many", "different", "status", "codes", "of", "things", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "status" ], [ "code" ], [ "of" ], [ "thing" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "status", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "thing", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(23) T(9)" }, { "db_id": "local_govt_and_lot", "query": "SELECT organization_id FROM organizations EXCEPT SELECT parent_organization_id FROM organizations", "query_toks": [ "SELECT", "organization_id", "FROM", "organizations", "EXCEPT", "SELECT", "parent_organization_id", "FROM", "organizations" ], "query_toks_no_value": [ "select", "organization_id", "from", "organizations", "except", "select", "parent_organization_id", "from", "organizations" ], "question": "Which organizations are not a parent organization of others? List the organization id.", "question_toks": [ "which", "organization", "are", "not", "a", "parent", "organization", "of", "others", "?", "list", "organization", "id", "." ], "sql": { "except": { "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": [] }, "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": [] }, "names": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "property id", "date moved in", "date moved out", "other details", "organization id", "parent organization id", "organization details", "service id", "organization id", "service type code", "service details", "resident id", "service id", "date moved in", "property id", "date requested", "date provided", "other details", "thing id", "organization id", "type of thing code", "service type code", "service details", "customer event id", "customer id", "date moved in", "property id", "resident id", "thing id", "customer event note id", "customer event id", "service type code", "resident id", "property id", "date moved in", "thing id", "date and date", "status of thing code", "thing id", "date and time", "location code" ], "table_names": [ "customers", "properties", "residents", "organizations", "services", "residents services", "things", "customer events", "customer event notes", "timed status of things", "timed locations of things" ], "col_set": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "date moved in", "date moved out", "organization id", "parent organization id", "organization details", "service id", "service type code", "service details", "date requested", "date provided", "thing id", "type of thing code", "customer event id", "customer event note id", "date and date", "status of thing code", "date and time", "location code" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10 ], "keys": { "8": 34, "3": 3, "16": 12, "12": 12, "19": 19, "7": 7, "22": 8, "21": 9, "9": 33, "20": 15, "15": 15, "27": 12, "35": 7, "34": 8, "33": 9, "32": 1, "1": 1, "36": 26, "26": 26, "38": 31, "31": 31, "43": 43, "46": 46, "37": 37 }, "origin_question_toks": [ "Which", "organizations", "are", "not", "a", "parent", "organization", "of", "others", "?", "List", "the", "organization", "id", "." ], "question_arg": [ [ "which" ], [ "organization" ], [ "are" ], [ "not" ], [ "a" ], [ "parent", "organization", "id" ], [ "of" ], [ "others" ], [ "?" ], [ "list" ], [ "organization", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "organization", "NN" ], [ "are", "VBP" ], [ "not", "RB" ], [ "a", "DT" ], [ "parent", "NN" ], [ "organization", "NN" ], [ "of", "IN" ], [ "others", "NNS" ], [ "?", "." ], [ "list", "NN" ], [ "organization", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(10) T(3) Root(5) Sel(0) N(0) A(0) C(11) T(3)" }, { "db_id": "local_govt_and_lot", "query": "SELECT max(date_moved_in) FROM Residents", "query_toks": [ "SELECT", "max", "(", "date_moved_in", ")", "FROM", "Residents" ], "query_toks_no_value": [ "select", "max", "(", "date_moved_in", ")", "from", "residents" ], "question": "When is the last day any resident moved in?", "question_toks": [ "when", "is", "last", "day", "any", "resident", "moved", "in", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "property id", "date moved in", "date moved out", "other details", "organization id", "parent organization id", "organization details", "service id", "organization id", "service type code", "service details", "resident id", "service id", "date moved in", "property id", "date requested", "date provided", "other details", "thing id", "organization id", "type of thing code", "service type code", "service details", "customer event id", "customer id", "date moved in", "property id", "resident id", "thing id", "customer event note id", "customer event id", "service type code", "resident id", "property id", "date moved in", "thing id", "date and date", "status of thing code", "thing id", "date and time", "location code" ], "table_names": [ "customers", "properties", "residents", "organizations", "services", "residents services", "things", "customer events", "customer event notes", "timed status of things", "timed locations of things" ], "col_set": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "date moved in", "date moved out", "organization id", "parent organization id", "organization details", "service id", "service type code", "service details", "date requested", "date provided", "thing id", "type of thing code", "customer event id", "customer event note id", "date and date", "status of thing code", "date and time", "location code" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10 ], "keys": { "8": 34, "3": 3, "16": 12, "12": 12, "19": 19, "7": 7, "22": 8, "21": 9, "9": 33, "20": 15, "15": 15, "27": 12, "35": 7, "34": 8, "33": 9, "32": 1, "1": 1, "36": 26, "26": 26, "38": 31, "31": 31, "43": 43, "46": 46, "37": 37 }, "origin_question_toks": [ "When", "is", "the", "last", "day", "any", "resident", "moved", "in", "?" ], "question_arg": [ [ "when" ], [ "is" ], [ "last" ], [ "day" ], [ "any" ], [ "resident" ], [ "date", "moved", "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "day", "NN" ], [ "any", "DT" ], [ "resident", "NN" ], [ "moved", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(1) C(8) T(2)" }, { "db_id": "local_govt_and_lot", "query": "SELECT other_details FROM Residents WHERE other_details LIKE '%Miss%'", "query_toks": [ "SELECT", "other_details", "FROM", "Residents", "WHERE", "other_details", "LIKE", "'", "%", "Miss", "%", "'" ], "query_toks_no_value": [ "select", "other_details", "from", "residents", "where", "other_details", "like", "value" ], "question": "What are the resident details containing the substring 'Miss'?", "question_toks": [ "what", "are", "resident", "detail", "containing", "substring", "'", "miss", "'", "?" ], "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, 9, [ 0, [ 0, 11, false ], null ], "\"%Miss%\"", null ] ] }, "names": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "property id", "date moved in", "date moved out", "other details", "organization id", "parent organization id", "organization details", "service id", "organization id", "service type code", "service details", "resident id", "service id", "date moved in", "property id", "date requested", "date provided", "other details", "thing id", "organization id", "type of thing code", "service type code", "service details", "customer event id", "customer id", "date moved in", "property id", "resident id", "thing id", "customer event note id", "customer event id", "service type code", "resident id", "property id", "date moved in", "thing id", "date and date", "status of thing code", "thing id", "date and time", "location code" ], "table_names": [ "customers", "properties", "residents", "organizations", "services", "residents services", "things", "customer events", "customer event notes", "timed status of things", "timed locations of things" ], "col_set": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "date moved in", "date moved out", "organization id", "parent organization id", "organization details", "service id", "service type code", "service details", "date requested", "date provided", "thing id", "type of thing code", "customer event id", "customer event note id", "date and date", "status of thing code", "date and time", "location code" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10 ], "keys": { "8": 34, "3": 3, "16": 12, "12": 12, "19": 19, "7": 7, "22": 8, "21": 9, "9": 33, "20": 15, "15": 15, "27": 12, "35": 7, "34": 8, "33": 9, "32": 1, "1": 1, "36": 26, "26": 26, "38": 31, "31": 31, "43": 43, "46": 46, "37": 37 }, "origin_question_toks": [ "What", "are", "the", "resident", "details", "containing", "the", "substring", "'Miss", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "resident" ], [ "detail" ], [ "containing" ], [ "substring" ], [ "'" ], [ "miss" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "resident", "JJ" ], [ "detail", "NN" ], [ "containing", "VBG" ], [ "substring", "VBG" ], [ "'", "''" ], [ "miss", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Miss" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(9) A(0) C(6) T(2) V(0)" }, { "db_id": "local_govt_and_lot", "query": "SELECT customer_event_id , date_moved_in , property_id FROM customer_events", "query_toks": [ "SELECT", "customer_event_id", ",", "date_moved_in", ",", "property_id", "FROM", "customer_events" ], "query_toks_no_value": [ "select", "customer_event_id", ",", "date_moved_in", ",", "property_id", "from", "customer_events" ], "question": "List the customer event id and the corresponding move in date and property id.", "question_toks": [ "list", "customer", "event", "id", "and", "corresponding", "move", "in", "date", "and", "property", "id", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "property id", "date moved in", "date moved out", "other details", "organization id", "parent organization id", "organization details", "service id", "organization id", "service type code", "service details", "resident id", "service id", "date moved in", "property id", "date requested", "date provided", "other details", "thing id", "organization id", "type of thing code", "service type code", "service details", "customer event id", "customer id", "date moved in", "property id", "resident id", "thing id", "customer event note id", "customer event id", "service type code", "resident id", "property id", "date moved in", "thing id", "date and date", "status of thing code", "thing id", "date and time", "location code" ], "table_names": [ "customers", "properties", "residents", "organizations", "services", "residents services", "things", "customer events", "customer event notes", "timed status of things", "timed locations of things" ], "col_set": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "date moved in", "date moved out", "organization id", "parent organization id", "organization details", "service id", "service type code", "service details", "date requested", "date provided", "thing id", "type of thing code", "customer event id", "customer event note id", "date and date", "status of thing code", "date and time", "location code" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10 ], "keys": { "8": 34, "3": 3, "16": 12, "12": 12, "19": 19, "7": 7, "22": 8, "21": 9, "9": 33, "20": 15, "15": 15, "27": 12, "35": 7, "34": 8, "33": 9, "32": 1, "1": 1, "36": 26, "26": 26, "38": 31, "31": 31, "43": 43, "46": 46, "37": 37 }, "origin_question_toks": [ "List", "the", "customer", "event", "id", "and", "the", "corresponding", "move", "in", "date", "and", "property", "id", "." ], "question_arg": [ [ "list" ], [ "customer", "event", "id" ], [ "and" ], [ "corresponding" ], [ "move" ], [ "date", "moved", "in" ], [ "and" ], [ "property", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "customer", "NN" ], [ "event", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "move", "NN" ], [ "in", "IN" ], [ "date", "NN" ], [ "and", "CC" ], [ "property", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(20) T(7) A(0) C(8) T(7) A(0) C(3) T(7)" }, { "db_id": "local_govt_and_lot", "query": "SELECT count(*) FROM customers WHERE customer_id NOT IN ( SELECT customer_id FROM customer_events )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "customer_events", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "customer_events", ")" ], "question": "How many customers did not have any event?", "question_toks": [ "how", "many", "customer", "did", "not", "have", "any", "event", "?" ], "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", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "property id", "date moved in", "date moved out", "other details", "organization id", "parent organization id", "organization details", "service id", "organization id", "service type code", "service details", "resident id", "service id", "date moved in", "property id", "date requested", "date provided", "other details", "thing id", "organization id", "type of thing code", "service type code", "service details", "customer event id", "customer id", "date moved in", "property id", "resident id", "thing id", "customer event note id", "customer event id", "service type code", "resident id", "property id", "date moved in", "thing id", "date and date", "status of thing code", "thing id", "date and time", "location code" ], "table_names": [ "customers", "properties", "residents", "organizations", "services", "residents services", "things", "customer events", "customer event notes", "timed status of things", "timed locations of things" ], "col_set": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "date moved in", "date moved out", "organization id", "parent organization id", "organization details", "service id", "service type code", "service details", "date requested", "date provided", "thing id", "type of thing code", "customer event id", "customer event note id", "date and date", "status of thing code", "date and time", "location code" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10 ], "keys": { "8": 34, "3": 3, "16": 12, "12": 12, "19": 19, "7": 7, "22": 8, "21": 9, "9": 33, "20": 15, "15": 15, "27": 12, "35": 7, "34": 8, "33": 9, "32": 1, "1": 1, "36": 26, "26": 26, "38": 31, "31": 31, "43": 43, "46": 46, "37": 37 }, "origin_question_toks": [ "How", "many", "customers", "did", "not", "have", "any", "event", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "did" ], [ "not" ], [ "have" ], [ "any" ], [ "event" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "did", "VBD" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "event", "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(7)" }, { "db_id": "local_govt_and_lot", "query": "SELECT DISTINCT date_moved_in FROM residents", "query_toks": [ "SELECT", "DISTINCT", "date_moved_in", "FROM", "residents" ], "query_toks_no_value": [ "select", "distinct", "date_moved_in", "from", "residents" ], "question": "What are the distinct move in dates of the residents?", "question_toks": [ "what", "are", "distinct", "move", "in", "date", "of", "resident", "?" ], "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": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "property id", "date moved in", "date moved out", "other details", "organization id", "parent organization id", "organization details", "service id", "organization id", "service type code", "service details", "resident id", "service id", "date moved in", "property id", "date requested", "date provided", "other details", "thing id", "organization id", "type of thing code", "service type code", "service details", "customer event id", "customer id", "date moved in", "property id", "resident id", "thing id", "customer event note id", "customer event id", "service type code", "resident id", "property id", "date moved in", "thing id", "date and date", "status of thing code", "thing id", "date and time", "location code" ], "table_names": [ "customers", "properties", "residents", "organizations", "services", "residents services", "things", "customer events", "customer event notes", "timed status of things", "timed locations of things" ], "col_set": [ "*", "customer id", "customer details", "property id", "property type code", "property address", "other details", "resident id", "date moved in", "date moved out", "organization id", "parent organization id", "organization details", "service id", "service type code", "service details", "date requested", "date provided", "thing id", "type of thing code", "customer event id", "customer event note id", "date and date", "status of thing code", "date and time", "location code" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10 ], "keys": { "8": 34, "3": 3, "16": 12, "12": 12, "19": 19, "7": 7, "22": 8, "21": 9, "9": 33, "20": 15, "15": 15, "27": 12, "35": 7, "34": 8, "33": 9, "32": 1, "1": 1, "36": 26, "26": 26, "38": 31, "31": 31, "43": 43, "46": 46, "37": 37 }, "origin_question_toks": [ "What", "are", "the", "distinct", "move", "in", "dates", "of", "the", "residents", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "move" ], [ "date", "moved", "in" ], [ "of" ], [ "resident" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "move", "NN" ], [ "in", "IN" ], [ "date", "NN" ], [ "of", "IN" ], [ "resident", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(8) T(2)" }, { "db_id": "school_player", "query": "SELECT count(*) FROM school", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "school" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "school" ], "question": "How many schools are there?", "question_toks": [ "how", "many", "school", "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": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "How", "many", "schools", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "school" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "school", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "school_player", "query": "SELECT count(*) FROM school", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "school" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "school" ], "question": "Count the number of schools.", "question_toks": [ "count", "number", "of", "school", "." ], "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": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "Count", "the", "number", "of", "schools", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "school" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "school_player", "query": "SELECT LOCATION FROM school ORDER BY Enrollment ASC", "query_toks": [ "SELECT", "LOCATION", "FROM", "school", "ORDER", "BY", "Enrollment", "ASC" ], "query_toks_no_value": [ "select", "location", "from", "school", "order", "by", "enrollment", "asc" ], "question": "List the locations of schools in ascending order of enrollment.", "question_toks": [ "list", "location", "of", "school", "in", "ascending", "order", "of", "enrollment", "." ], "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, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "List", "the", "locations", "of", "schools", "in", "ascending", "order", "of", "enrollment", "." ], "question_arg": [ [ "list" ], [ "location" ], [ "of" ], [ "school" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "enrollment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "location", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "enrollment", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(1) A(0) C(4) T(0)" }, { "db_id": "school_player", "query": "SELECT LOCATION FROM school ORDER BY Enrollment ASC", "query_toks": [ "SELECT", "LOCATION", "FROM", "school", "ORDER", "BY", "Enrollment", "ASC" ], "query_toks_no_value": [ "select", "location", "from", "school", "order", "by", "enrollment", "asc" ], "question": "What is the list of school locations sorted in ascending order of school enrollment?", "question_toks": [ "what", "is", "list", "of", "school", "location", "sorted", "in", "ascending", "order", "of", "school", "enrollment", "?" ], "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, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "What", "is", "the", "list", "of", "school", "locations", "sorted", "in", "ascending", "order", "of", "school", "enrollment", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "list" ], [ "of" ], [ "school" ], [ "location" ], [ "sorted" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "school" ], [ "enrollment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "list", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "location", "NN" ], [ "sorted", "VBN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "enrollment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(1) A(0) C(4) T(0)" }, { "db_id": "school_player", "query": "SELECT LOCATION FROM school ORDER BY Founded DESC", "query_toks": [ "SELECT", "LOCATION", "FROM", "school", "ORDER", "BY", "Founded", "DESC" ], "query_toks_no_value": [ "select", "location", "from", "school", "order", "by", "founded", "desc" ], "question": "List the locations of schools in descending order of founded year.", "question_toks": [ "list", "location", "of", "school", "in", "descending", "order", "of", "founded", "year", "." ], "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, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "List", "the", "locations", "of", "schools", "in", "descending", "order", "of", "founded", "year", "." ], "question_arg": [ [ "list" ], [ "location" ], [ "of" ], [ "school" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "founded" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "location", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "founded", "JJ" ], [ "year", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(0) A(0) C(5) T(0)" }, { "db_id": "school_player", "query": "SELECT LOCATION FROM school ORDER BY Founded DESC", "query_toks": [ "SELECT", "LOCATION", "FROM", "school", "ORDER", "BY", "Founded", "DESC" ], "query_toks_no_value": [ "select", "location", "from", "school", "order", "by", "founded", "desc" ], "question": "What is the list of school locations sorted in descending order of school foundation year?", "question_toks": [ "what", "is", "list", "of", "school", "location", "sorted", "in", "descending", "order", "of", "school", "foundation", "year", "?" ], "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, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "What", "is", "the", "list", "of", "school", "locations", "sorted", "in", "descending", "order", "of", "school", "foundation", "year", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "list" ], [ "of" ], [ "school" ], [ "location" ], [ "sorted" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "school" ], [ "foundation" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "list", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "location", "NN" ], [ "sorted", "VBN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "foundation", "NN" ], [ "year", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(0) A(0) C(5) T(0)" }, { "db_id": "school_player", "query": "SELECT Enrollment FROM school WHERE Denomination != \"Catholic\"", "query_toks": [ "SELECT", "Enrollment", "FROM", "school", "WHERE", "Denomination", "!", "=", "``", "Catholic", "''" ], "query_toks_no_value": [ "select", "enrollment", "from", "school", "where", "denomination", "!", "=", "value" ], "question": "What are the enrollments of schools whose denomination is not \"Catholic\"?", "question_toks": [ "what", "are", "enrollment", "of", "school", "whose", "denomination", "is", "not", "'", "catholic", "'", "?" ], "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, 7, [ 0, [ 0, 6, false ], null ], "\"Catholic\"", null ] ] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "What", "are", "the", "enrollments", "of", "schools", "whose", "denomination", "is", "not", "``", "Catholic", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "enrollment" ], [ "of" ], [ "school" ], [ "whose" ], [ "denomination" ], [ "is" ], [ "not" ], [ "'" ], [ "catholic" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "enrollment", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "whose", "WP$" ], [ "denomination", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "catholic", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Catholic" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(3) A(0) C(6) T(0) V(0)" }, { "db_id": "school_player", "query": "SELECT Enrollment FROM school WHERE Denomination != \"Catholic\"", "query_toks": [ "SELECT", "Enrollment", "FROM", "school", "WHERE", "Denomination", "!", "=", "``", "Catholic", "''" ], "query_toks_no_value": [ "select", "enrollment", "from", "school", "where", "denomination", "!", "=", "value" ], "question": "List the enrollment for each school that does not have \"Catholic\" as denomination.", "question_toks": [ "list", "enrollment", "for", "each", "school", "that", "doe", "not", "have", "'", "catholic", "'", "a", "denomination", "." ], "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, 7, [ 0, [ 0, 6, false ], null ], "\"Catholic\"", null ] ] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "List", "the", "enrollment", "for", "each", "school", "that", "does", "not", "have", "``", "Catholic", "''", "as", "denomination", "." ], "question_arg": [ [ "list" ], [ "enrollment" ], [ "for" ], [ "each" ], [ "school" ], [ "that" ], [ "doe" ], [ "not" ], [ "have" ], [ "'" ], [ "catholic" ], [ "'" ], [ "a" ], [ "denomination" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "enrollment", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "school", "NN" ], [ "that", "IN" ], [ "doe", "NN" ], [ "not", "RB" ], [ "have", "VB" ], [ "'", "''" ], [ "catholic", "JJ" ], [ "'", "POS" ], [ "a", "DT" ], [ "denomination", "NN" ], [ ".", "." ] ], "values": [ "Catholic" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(3) A(0) C(6) T(0) V(0)" }, { "db_id": "school_player", "query": "SELECT avg(Enrollment) FROM school", "query_toks": [ "SELECT", "avg", "(", "Enrollment", ")", "FROM", "school" ], "query_toks_no_value": [ "select", "avg", "(", "enrollment", ")", "from", "school" ], "question": "What is the average enrollment of schools?", "question_toks": [ "what", "is", "average", "enrollment", "of", "school", "?" ], "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": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "What", "is", "the", "average", "enrollment", "of", "schools", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "enrollment" ], [ "of" ], [ "school" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "enrollment", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(4) T(0)" }, { "db_id": "school_player", "query": "SELECT avg(Enrollment) FROM school", "query_toks": [ "SELECT", "avg", "(", "Enrollment", ")", "FROM", "school" ], "query_toks_no_value": [ "select", "avg", "(", "enrollment", ")", "from", "school" ], "question": "Take the average of the school enrollment.", "question_toks": [ "take", "average", "of", "school", "enrollment", "." ], "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": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "Take", "the", "average", "of", "the", "school", "enrollment", "." ], "question_arg": [ [ "take" ], [ "average" ], [ "of" ], [ "school" ], [ "enrollment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "take", "JJ" ], [ "average", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "enrollment", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(4) T(0)" }, { "db_id": "school_player", "query": "SELECT Team FROM player ORDER BY Team ASC", "query_toks": [ "SELECT", "Team", "FROM", "player", "ORDER", "BY", "Team", "ASC" ], "query_toks_no_value": [ "select", "team", "from", "player", "order", "by", "team", "asc" ], "question": "What are the teams of the players, sorted in ascending alphabetical order?", "question_toks": [ "what", "are", "team", "of", "player", ",", "sorted", "in", "ascending", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 23, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "What", "are", "the", "teams", "of", "the", "players", ",", "sorted", "in", "ascending", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "team" ], [ "of" ], [ "player" ], [ "," ], [ "sorted" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "team", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(21) T(3) Order(1) A(0) C(21) T(3)" }, { "db_id": "school_player", "query": "SELECT Team FROM player ORDER BY Team ASC", "query_toks": [ "SELECT", "Team", "FROM", "player", "ORDER", "BY", "Team", "ASC" ], "query_toks_no_value": [ "select", "team", "from", "player", "order", "by", "team", "asc" ], "question": "Find the team of each player and sort them in ascending alphabetical order.", "question_toks": [ "find", "team", "of", "each", "player", "and", "sort", "them", "in", "ascending", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 23, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "Find", "the", "team", "of", "each", "player", "and", "sort", "them", "in", "ascending", "alphabetical", "order", "." ], "question_arg": [ [ "find" ], [ "team" ], [ "of" ], [ "each" ], [ "player" ], [ "and" ], [ "sort" ], [ "them" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "team", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "player", "NN" ], [ "and", "CC" ], [ "sort", "VB" ], [ "them", "PRP" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(21) T(3) Order(1) A(0) C(21) T(3)" }, { "db_id": "school_player", "query": "SELECT count(DISTINCT POSITION) FROM player", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "POSITION", ")", "FROM", "player" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "position", ")", "from", "player" ], "question": "How many different positions of players are there?", "question_toks": [ "how", "many", "different", "position", "of", "player", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 25, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "How", "many", "different", "positions", "of", "players", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "position" ], [ "of" ], [ "player" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "position", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(23) T(3)" }, { "db_id": "school_player", "query": "SELECT count(DISTINCT POSITION) FROM player", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "POSITION", ")", "FROM", "player" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "position", ")", "from", "player" ], "question": "Count the number of distinct player positions.", "question_toks": [ "count", "number", "of", "distinct", "player", "position", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 25, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "Count", "the", "number", "of", "distinct", "player", "positions", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "distinct" ], [ "player" ], [ "position" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "player", "NN" ], [ "position", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(23) T(3)" }, { "db_id": "school_player", "query": "SELECT Team FROM player ORDER BY Age DESC LIMIT 1", "query_toks": [ "SELECT", "Team", "FROM", "player", "ORDER", "BY", "Age", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "team", "from", "player", "order", "by", "age", "desc", "limit", "value" ], "question": "Find the team of the player of the highest age.", "question_toks": [ "find", "team", "of", "player", "of", "highest", "age", "." ], "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, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "Find", "the", "team", "of", "the", "player", "of", "the", "highest", "age", "." ], "question_arg": [ [ "find" ], [ "team" ], [ "of" ], [ "player" ], [ "of" ], [ "highest" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "team", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "of", "IN" ], [ "highest", "JJS" ], [ "age", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(21) T(3) Sup(0) A(0) C(22) T(3)" }, { "db_id": "school_player", "query": "SELECT Team FROM player ORDER BY Age DESC LIMIT 1", "query_toks": [ "SELECT", "Team", "FROM", "player", "ORDER", "BY", "Age", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "team", "from", "player", "order", "by", "age", "desc", "limit", "value" ], "question": "Which team has the oldest player?", "question_toks": [ "which", "team", "ha", "oldest", "player", "?" ], "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, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "Which", "team", "has", "the", "oldest", "player", "?" ], "question_arg": [ [ "which" ], [ "team" ], [ "ha" ], [ "oldest" ], [ "player" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "team", "NN" ], [ "ha", "NN" ], [ "oldest", "JJS" ], [ "player", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(21) T(3) Sup(0) A(0) C(22) T(3)" }, { "db_id": "school_player", "query": "SELECT Team FROM player ORDER BY Age DESC LIMIT 5", "query_toks": [ "SELECT", "Team", "FROM", "player", "ORDER", "BY", "Age", "DESC", "LIMIT", "5" ], "query_toks_no_value": [ "select", "team", "from", "player", "order", "by", "age", "desc", "limit", "value" ], "question": "List the teams of the players with the top 5 largest ages.", "question_toks": [ "list", "team", "of", "player", "with", "top", "5", "largest", "age", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 0, 24, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "List", "the", "teams", "of", "the", "players", "with", "the", "top", "5", "largest", "ages", "." ], "question_arg": [ [ "list" ], [ "team" ], [ "of" ], [ "player" ], [ "with" ], [ "top" ], [ "5" ], [ "largest" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "team", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "with", "IN" ], [ "top", "JJ" ], [ "5", "CD" ], [ "largest", "JJS" ], [ "age", "NN" ], [ ".", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(21) T(3) Sup(0) A(0) C(22) T(3)" }, { "db_id": "school_player", "query": "SELECT Team FROM player ORDER BY Age DESC LIMIT 5", "query_toks": [ "SELECT", "Team", "FROM", "player", "ORDER", "BY", "Age", "DESC", "LIMIT", "5" ], "query_toks_no_value": [ "select", "team", "from", "player", "order", "by", "age", "desc", "limit", "value" ], "question": "What are the teams that have the 5 oldest players?", "question_toks": [ "what", "are", "team", "that", "have", "5", "oldest", "player", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 0, 24, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "What", "are", "the", "teams", "that", "have", "the", "5", "oldest", "players", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "team" ], [ "that" ], [ "have" ], [ "5" ], [ "oldest" ], [ "player" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "team", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "5", "CD" ], [ "oldest", "JJS" ], [ "player", "NN" ], [ "?", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(21) T(3) Sup(0) A(0) C(22) T(3)" }, { "db_id": "school_player", "query": "SELECT T1.Team , T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID", "query_toks": [ "SELECT", "T1.Team", ",", "T2.Location", "FROM", "player", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.School_ID", "=", "T2.School_ID" ], "query_toks_no_value": [ "select", "t1", ".", "team", ",", "t2", ".", "location", "from", "player", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id" ], "question": "For each player, show the team and the location of school they belong to.", "question_toks": [ "for", "each", "player", ",", "show", "team", "and", "location", "of", "school", "they", "belong", "to", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, 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, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "For", "each", "player", ",", "show", "the", "team", "and", "the", "location", "of", "school", "they", "belong", "to", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "player" ], [ "," ], [ "show" ], [ "team" ], [ "and" ], [ "location" ], [ "of" ], [ "school" ], [ "they" ], [ "belong" ], [ "to" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "player", "NN" ], [ ",", "," ], [ "show", "VBP" ], [ "team", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "they", "PRP" ], [ "belong", "VBP" ], [ "to", "TO" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(21) T(3) A(0) C(3) T(0)" }, { "db_id": "school_player", "query": "SELECT T1.Team , T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID", "query_toks": [ "SELECT", "T1.Team", ",", "T2.Location", "FROM", "player", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.School_ID", "=", "T2.School_ID" ], "query_toks_no_value": [ "select", "t1", ".", "team", ",", "t2", ".", "location", "from", "player", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id" ], "question": "What are the team and the location of school each player belongs to?", "question_toks": [ "what", "are", "team", "and", "location", "of", "school", "each", "player", "belongs", "to", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, 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, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "What", "are", "the", "team", "and", "the", "location", "of", "school", "each", "player", "belongs", "to", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "team" ], [ "and" ], [ "location" ], [ "of" ], [ "school" ], [ "each" ], [ "player" ], [ "belongs" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "team", "JJ" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "each", "DT" ], [ "player", "NN" ], [ "belongs", "VBZ" ], [ "to", "TO" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(21) T(3) A(0) C(3) T(0)" }, { "db_id": "school_player", "query": "SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T2.Location", "FROM", "player", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.School_ID", "=", "T2.School_ID", "GROUP", "BY", "T1.School_ID", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t2", ".", "location", "from", "player", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "group", "by", "t1", ".", "school_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show the locations of schools that have more than 1 player.", "question_toks": [ "show", "location", "of", "school", "that", "have", "more", "than", "1", "player", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 26, 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": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "Show", "the", "locations", "of", "schools", "that", "have", "more", "than", "1", "player", "." ], "question_arg": [ [ "show" ], [ "location" ], [ "of" ], [ "school" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "1" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "location", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1", "CD" ], [ "player", "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(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(3) Filter(5) A(3) C(0) T(3) V(0)" }, { "db_id": "school_player", "query": "SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T2.Location", "FROM", "player", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.School_ID", "=", "T2.School_ID", "GROUP", "BY", "T1.School_ID", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t2", ".", "location", "from", "player", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "group", "by", "t1", ".", "school_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which schools have more than 1 player? Give me the school locations.", "question_toks": [ "which", "school", "have", "more", "than", "1", "player", "?", "give", "me", "school", "location", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 26, 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": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "Which", "schools", "have", "more", "than", "1", "player", "?", "Give", "me", "the", "school", "locations", "." ], "question_arg": [ [ "which" ], [ "school" ], [ "have" ], [ "more" ], [ "than" ], [ "1" ], [ "player" ], [ "?" ], [ "give" ], [ "me" ], [ "school" ], [ "location" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "school", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1", "CD" ], [ "player", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "school", "NN" ], [ "location", "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(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(3) Filter(5) A(3) C(0) T(3) V(0)" }, { "db_id": "school_player", "query": "SELECT T2.Denomination FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Denomination", "FROM", "player", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.School_ID", "=", "T2.School_ID", "GROUP", "BY", "T1.School_ID", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "denomination", "from", "player", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "group", "by", "t1", ".", "school_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the denomination of the school that has the most players.", "question_toks": [ "show", "denomination", "of", "school", "that", "ha", "most", "player", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 26, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "Show", "the", "denomination", "of", "the", "school", "that", "has", "the", "most", "players", "." ], "question_arg": [ [ "show" ], [ "denomination" ], [ "of" ], [ "school" ], [ "that" ], [ "ha" ], [ "most" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "denomination", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "player", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(6) 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": "school_player", "query": "SELECT T2.Denomination FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Denomination", "FROM", "player", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.School_ID", "=", "T2.School_ID", "GROUP", "BY", "T1.School_ID", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "denomination", "from", "player", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "group", "by", "t1", ".", "school_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the denomination of the school the most players belong to?", "question_toks": [ "what", "is", "denomination", "of", "school", "most", "player", "belong", "to", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 26, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "What", "is", "the", "denomination", "of", "the", "school", "the", "most", "players", "belong", "to", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "denomination" ], [ "of" ], [ "school" ], [ "most" ], [ "player" ], [ "belong" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "denomination", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "most", "RBS" ], [ "player", "NN" ], [ "belong", "NN" ], [ "to", "TO" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(6) 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": "school_player", "query": "SELECT T1.Location , T2.Nickname FROM school AS T1 JOIN school_details AS T2 ON T1.School_ID = T2.School_ID", "query_toks": [ "SELECT", "T1.Location", ",", "T2.Nickname", "FROM", "school", "AS", "T1", "JOIN", "school_details", "AS", "T2", "ON", "T1.School_ID", "=", "T2.School_ID" ], "query_toks_no_value": [ "select", "t1", ".", "location", ",", "t2", ".", "nickname", "from", "school", "as", "t1", "join", "school_details", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id" ], "question": "Show locations and nicknames of schools.", "question_toks": [ "show", "location", "and", "nickname", "of", "school", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "Show", "locations", "and", "nicknames", "of", "schools", "." ], "question_arg": [ [ "show" ], [ "location" ], [ "and" ], [ "nickname" ], [ "of" ], [ "school" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "location", "NN" ], [ "and", "CC" ], [ "nickname", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(0) C(11) T(1)" }, { "db_id": "school_player", "query": "SELECT T1.Location , T2.Nickname FROM school AS T1 JOIN school_details AS T2 ON T1.School_ID = T2.School_ID", "query_toks": [ "SELECT", "T1.Location", ",", "T2.Nickname", "FROM", "school", "AS", "T1", "JOIN", "school_details", "AS", "T2", "ON", "T1.School_ID", "=", "T2.School_ID" ], "query_toks_no_value": [ "select", "t1", ".", "location", ",", "t2", ".", "nickname", "from", "school", "as", "t1", "join", "school_details", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id" ], "question": "What are the location and nickname of each school?", "question_toks": [ "what", "are", "location", "and", "nickname", "of", "each", "school", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "What", "are", "the", "location", "and", "nickname", "of", "each", "school", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "location" ], [ "and" ], [ "nickname" ], [ "of" ], [ "each" ], [ "school" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "location", "NN" ], [ "and", "CC" ], [ "nickname", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "school", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(0) C(11) T(1)" }, { "db_id": "school_player", "query": "SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination", "query_toks": [ "SELECT", "Denomination", ",", "COUNT", "(", "*", ")", "FROM", "school", "GROUP", "BY", "Denomination" ], "query_toks_no_value": [ "select", "denomination", ",", "count", "(", "*", ")", "from", "school", "group", "by", "denomination" ], "question": "Please show different denominations and the corresponding number of schools.", "question_toks": [ "please", "show", "different", "denomination", "and", "corresponding", "number", "of", "school", "." ], "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": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "Please", "show", "different", "denominations", "and", "the", "corresponding", "number", "of", "schools", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "different" ], [ "denomination" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "school" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "VB" ], [ "different", "JJ" ], [ "denomination", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "school", "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": "school_player", "query": "SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination", "query_toks": [ "SELECT", "Denomination", ",", "COUNT", "(", "*", ")", "FROM", "school", "GROUP", "BY", "Denomination" ], "query_toks_no_value": [ "select", "denomination", ",", "count", "(", "*", ")", "from", "school", "group", "by", "denomination" ], "question": "For each denomination, return the denomination and the count of schools with that denomination.", "question_toks": [ "for", "each", "denomination", ",", "return", "denomination", "and", "count", "of", "school", "with", "that", "denomination", "." ], "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": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "For", "each", "denomination", ",", "return", "the", "denomination", "and", "the", "count", "of", "schools", "with", "that", "denomination", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "denomination" ], [ "," ], [ "return" ], [ "denomination" ], [ "and" ], [ "count" ], [ "of" ], [ "school" ], [ "with" ], [ "that" ], [ "denomination" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "denomination", "NN" ], [ ",", "," ], [ "return", "VB" ], [ "denomination", "NN" ], [ "and", "CC" ], [ "count", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "with", "IN" ], [ "that", "DT" ], [ "denomination", "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": "school_player", "query": "SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC", "query_toks": [ "SELECT", "Denomination", ",", "COUNT", "(", "*", ")", "FROM", "school", "GROUP", "BY", "Denomination", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "denomination", ",", "count", "(", "*", ")", "from", "school", "group", "by", "denomination", "order", "by", "count", "(", "*", ")", "desc" ], "question": "Please show different denominations and the corresponding number of schools in descending order.", "question_toks": [ "please", "show", "different", "denomination", "and", "corresponding", "number", "of", "school", "in", "descending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "Please", "show", "different", "denominations", "and", "the", "corresponding", "number", "of", "schools", "in", "descending", "order", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "different" ], [ "denomination" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "school" ], [ "in" ], [ "descending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "VB" ], [ "different", "JJ" ], [ "denomination", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(6) T(0) A(3) C(0) T(0) Order(0) A(3) C(0) T(0)" }, { "db_id": "school_player", "query": "SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC", "query_toks": [ "SELECT", "Denomination", ",", "COUNT", "(", "*", ")", "FROM", "school", "GROUP", "BY", "Denomination", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "denomination", ",", "count", "(", "*", ")", "from", "school", "group", "by", "denomination", "order", "by", "count", "(", "*", ")", "desc" ], "question": "Order denominations in descending order of the count of schools with the denomination. Return each denomination with the count of schools.", "question_toks": [ "order", "denomination", "in", "descending", "order", "of", "count", "of", "school", "with", "denomination", ".", "return", "each", "denomination", "with", "count", "of", "school", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "Order", "denominations", "in", "descending", "order", "of", "the", "count", "of", "schools", "with", "the", "denomination", ".", "Return", "each", "denomination", "with", "the", "count", "of", "schools", "." ], "question_arg": [ [ "order" ], [ "denomination" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "count" ], [ "of" ], [ "school" ], [ "with" ], [ "denomination" ], [ "." ], [ "return" ], [ "each" ], [ "denomination" ], [ "with" ], [ "count" ], [ "of" ], [ "school" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "order", "NN" ], [ "denomination", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "count", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "with", "IN" ], [ "denomination", "NN" ], [ ".", "." ], [ "return", "VB" ], [ "each", "DT" ], [ "denomination", "NN" ], [ "with", "IN" ], [ "count", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(6) T(0) A(3) C(0) T(0) Order(0) A(3) C(0) T(0)" }, { "db_id": "school_player", "query": "SELECT School_Colors FROM school ORDER BY Enrollment DESC LIMIT 1", "query_toks": [ "SELECT", "School_Colors", "FROM", "school", "ORDER", "BY", "Enrollment", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "school_colors", "from", "school", "order", "by", "enrollment", "desc", "limit", "value" ], "question": "List the school color of the school that has the largest enrollment.", "question_toks": [ "list", "school", "color", "of", "school", "that", "ha", "largest", "enrollment", "." ], "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, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "List", "the", "school", "color", "of", "the", "school", "that", "has", "the", "largest", "enrollment", "." ], "question_arg": [ [ "list" ], [ "school", "color" ], [ "of" ], [ "school" ], [ "that" ], [ "ha" ], [ "largest" ], [ "enrollment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "school", "NN" ], [ "color", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "largest", "JJS" ], [ "enrollment", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(0) Sup(0) A(0) C(4) T(0)" }, { "db_id": "school_player", "query": "SELECT School_Colors FROM school ORDER BY Enrollment DESC LIMIT 1", "query_toks": [ "SELECT", "School_Colors", "FROM", "school", "ORDER", "BY", "Enrollment", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "school_colors", "from", "school", "order", "by", "enrollment", "desc", "limit", "value" ], "question": "What is the school color of the school with the largest enrollment?", "question_toks": [ "what", "is", "school", "color", "of", "school", "with", "largest", "enrollment", "?" ], "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, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "What", "is", "the", "school", "color", "of", "the", "school", "with", "the", "largest", "enrollment", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "school", "color" ], [ "of" ], [ "school" ], [ "with" ], [ "largest" ], [ "enrollment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "school", "NN" ], [ "color", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "enrollment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(0) Sup(0) A(0) C(4) T(0)" }, { "db_id": "school_player", "query": "SELECT LOCATION FROM school WHERE School_ID NOT IN (SELECT School_ID FROM Player)", "query_toks": [ "SELECT", "LOCATION", "FROM", "school", "WHERE", "School_ID", "NOT", "IN", "(", "SELECT", "School_ID", "FROM", "Player", ")" ], "query_toks_no_value": [ "select", "location", "from", "school", "where", "school_id", "not", "in", "(", "select", "school_id", "from", "player", ")" ], "question": "List the locations of schools that do not have any player.", "question_toks": [ "list", "location", "of", "school", "that", "do", "not", "have", "any", "player", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "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, 26, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "List", "the", "locations", "of", "schools", "that", "do", "not", "have", "any", "player", "." ], "question_arg": [ [ "list" ], [ "location" ], [ "of" ], [ "school" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "location", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "player", "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": "school_player", "query": "SELECT LOCATION FROM school WHERE School_ID NOT IN (SELECT School_ID FROM Player)", "query_toks": [ "SELECT", "LOCATION", "FROM", "school", "WHERE", "School_ID", "NOT", "IN", "(", "SELECT", "School_ID", "FROM", "Player", ")" ], "query_toks_no_value": [ "select", "location", "from", "school", "where", "school_id", "not", "in", "(", "select", "school_id", "from", "player", ")" ], "question": "Which schools do not have any player? Give me the school locations.", "question_toks": [ "which", "school", "do", "not", "have", "any", "player", "?", "give", "me", "school", "location", "." ], "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, 26, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "Which", "schools", "do", "not", "have", "any", "player", "?", "Give", "me", "the", "school", "locations", "." ], "question_arg": [ [ "which" ], [ "school" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "player" ], [ "?" ], [ "give" ], [ "me" ], [ "school" ], [ "location" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "school", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "player", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "school", "NN" ], [ "location", "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": "school_player", "query": "SELECT Denomination FROM school WHERE Founded < 1890 INTERSECT SELECT Denomination FROM school WHERE Founded > 1900", "query_toks": [ "SELECT", "Denomination", "FROM", "school", "WHERE", "Founded", "<", "1890", "INTERSECT", "SELECT", "Denomination", "FROM", "school", "WHERE", "Founded", ">", "1900" ], "query_toks_no_value": [ "select", "denomination", "from", "school", "where", "founded", "<", "value", "intersect", "select", "denomination", "from", "school", "where", "founded", ">", "value" ], "question": "Show the denomination shared by schools founded before 1890 and schools founded after 1900", "question_toks": [ "show", "denomination", "shared", "by", "school", "founded", "before", "year", "and", "school", "founded", "after", "year" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 1900.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 5, false ], null ], 1890.0, null ] ] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "Show", "the", "denomination", "shared", "by", "schools", "founded", "before", "1890", "and", "schools", "founded", "after", "1900" ], "question_arg": [ [ "show" ], [ "denomination" ], [ "shared" ], [ "by" ], [ "school" ], [ "founded" ], [ "before" ], [ "year" ], [ "and" ], [ "school" ], [ "founded" ], [ "after" ], [ "year" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "denomination", "NN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "school", "NN" ], [ "founded", "VBN" ], [ "before", "IN" ], [ "1890", "CD" ], [ "and", "CC" ], [ "school", "NN" ], [ "founded", "VBN" ], [ "after", "IN" ], [ "1900", "CD" ] ], "values": [ "1890", "1900" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(4) A(0) C(5) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(5) A(0) C(5) T(0) V(1)" }, { "db_id": "school_player", "query": "SELECT Denomination FROM school WHERE Founded < 1890 INTERSECT SELECT Denomination FROM school WHERE Founded > 1900", "query_toks": [ "SELECT", "Denomination", "FROM", "school", "WHERE", "Founded", "<", "1890", "INTERSECT", "SELECT", "Denomination", "FROM", "school", "WHERE", "Founded", ">", "1900" ], "query_toks_no_value": [ "select", "denomination", "from", "school", "where", "founded", "<", "value", "intersect", "select", "denomination", "from", "school", "where", "founded", ">", "value" ], "question": "What are the denominations used by both schools founded before 1890 and schools founded after 1900?", "question_toks": [ "what", "are", "denomination", "used", "by", "both", "school", "founded", "before", "year", "and", "school", "founded", "after", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 1900.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 5, false ], null ], 1890.0, null ] ] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "What", "are", "the", "denominations", "used", "by", "both", "schools", "founded", "before", "1890", "and", "schools", "founded", "after", "1900", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "denomination" ], [ "used" ], [ "by" ], [ "both" ], [ "school" ], [ "founded" ], [ "before" ], [ "year" ], [ "and" ], [ "school" ], [ "founded" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "denomination", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "both", "DT" ], [ "school", "NN" ], [ "founded", "VBD" ], [ "before", "IN" ], [ "1890", "CD" ], [ "and", "CC" ], [ "school", "NN" ], [ "founded", "VBN" ], [ "after", "IN" ], [ "1900", "CD" ], [ "?", "." ] ], "values": [ "1890", "1900" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(4) A(0) C(5) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(5) A(0) C(5) T(0) V(1)" }, { "db_id": "school_player", "query": "SELECT Nickname FROM school_details WHERE Division != \"Division 1\"", "query_toks": [ "SELECT", "Nickname", "FROM", "school_details", "WHERE", "Division", "!", "=", "``", "Division", "1", "''" ], "query_toks_no_value": [ "select", "nickname", "from", "school_details", "where", "division", "!", "=", "value" ], "question": "Show the nicknames of schools that are not in division 1.", "question_toks": [ "show", "nickname", "of", "school", "that", "are", "not", "in", "division", "1", "." ], "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, 7, [ 0, [ 0, 16, false ], null ], "\"Division 1\"", null ] ] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "Show", "the", "nicknames", "of", "schools", "that", "are", "not", "in", "division", "1", "." ], "question_arg": [ [ "show" ], [ "nickname" ], [ "of" ], [ "school" ], [ "that" ], [ "are" ], [ "not" ], [ "in" ], [ "division" ], [ "1" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "nickname", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "in", "IN" ], [ "division", "NN" ], [ "1", "CD" ], [ ".", "." ] ], "values": [ "Division 3", "Division 1", "1", "Division 2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(3) A(0) C(15) T(1) V(1)" }, { "db_id": "school_player", "query": "SELECT Nickname FROM school_details WHERE Division != \"Division 1\"", "query_toks": [ "SELECT", "Nickname", "FROM", "school_details", "WHERE", "Division", "!", "=", "``", "Division", "1", "''" ], "query_toks_no_value": [ "select", "nickname", "from", "school_details", "where", "division", "!", "=", "value" ], "question": "What are the nicknames of schools whose division is not 1?", "question_toks": [ "what", "are", "nickname", "of", "school", "whose", "division", "is", "not", "1", "?" ], "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, 7, [ 0, [ 0, 16, false ], null ], "\"Division 1\"", null ] ] }, "names": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "What", "are", "the", "nicknames", "of", "schools", "whose", "division", "is", "not", "1", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "nickname" ], [ "of" ], [ "school" ], [ "whose" ], [ "division" ], [ "is" ], [ "not" ], [ "1" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "nickname", "JJ" ], [ "of", "IN" ], [ "school", "NN" ], [ "whose", "WP$" ], [ "division", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "1", "CD" ], [ "?", "." ] ], "values": [ "Division 3", "Division 1", "1", "Division 2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(3) A(0) C(15) T(1) V(1)" }, { "db_id": "school_player", "query": "SELECT Denomination FROM school GROUP BY Denomination HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "Denomination", "FROM", "school", "GROUP", "BY", "Denomination", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "denomination", "from", "school", "group", "by", "denomination", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show the denomination shared by more than one school.", "question_toks": [ "show", "denomination", "shared", "by", "more", "than", "one", "school", "." ], "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": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "Show", "the", "denomination", "shared", "by", "more", "than", "one", "school", "." ], "question_arg": [ [ "show" ], [ "denomination" ], [ "shared" ], [ "by" ], [ "more" ], [ "than" ], [ "one" ], [ "school" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "denomination", "NN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "school", "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": "school_player", "query": "SELECT Denomination FROM school GROUP BY Denomination HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "Denomination", "FROM", "school", "GROUP", "BY", "Denomination", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "denomination", "from", "school", "group", "by", "denomination", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the denomination more than one school have?", "question_toks": [ "what", "are", "denomination", "more", "than", "one", "school", "have", "?" ], "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": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "school id", "nickname", "colors", "league", "class", "division", "school id", "school year", "class a", "class aa", "player id", "player", "team", "age", "position", "school id" ], "table_names": [ "school", "school details", "school performance", "player" ], "col_set": [ "*", "school id", "school", "location", "enrollment", "founded", "denomination", "boys or girls", "day or boarding", "year entered competition", "school colors", "nickname", "colors", "league", "class", "division", "school year", "class a", "class aa", "player id", "player", "team", "age", "position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 11, "1": 1, "17": 17, "26": 1, "21": 21 }, "origin_question_toks": [ "What", "are", "the", "denomination", "more", "than", "one", "school", "have", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "denomination" ], [ "more" ], [ "than" ], [ "one" ], [ "school" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "denomination", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "school", "NN" ], [ "have", "VB" ], [ "?", "." ] ], "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": "store_product", "query": "SELECT DISTINCT District_name FROM district ORDER BY city_area DESC", "query_toks": [ "SELECT", "DISTINCT", "District_name", "FROM", "district", "ORDER", "BY", "city_area", "DESC" ], "query_toks_no_value": [ "select", "distinct", "district_name", "from", "district", "order", "by", "city_area", "desc" ], "question": "Find all the distinct district names ordered by city area in descending.", "question_toks": [ "find", "all", "distinct", "district", "name", "ordered", "by", "city", "area", "in", "descending", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Find", "all", "the", "distinct", "district", "names", "ordered", "by", "city", "area", "in", "descending", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "distinct" ], [ "district", "name" ], [ "ordered" ], [ "by" ], [ "city", "area" ], [ "in" ], [ "descending" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "district", "NN" ], [ "name", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "city", "NN" ], [ "area", "NN" ], [ "in", "IN" ], [ "descending", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(15) T(2) Order(0) A(0) C(18) T(2)" }, { "db_id": "store_product", "query": "SELECT DISTINCT District_name FROM district ORDER BY city_area DESC", "query_toks": [ "SELECT", "DISTINCT", "District_name", "FROM", "district", "ORDER", "BY", "city_area", "DESC" ], "query_toks_no_value": [ "select", "distinct", "district_name", "from", "district", "order", "by", "city_area", "desc" ], "question": "What are the different district names in order of descending city area?", "question_toks": [ "what", "are", "different", "district", "name", "in", "order", "of", "descending", "city", "area", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "different", "district", "names", "in", "order", "of", "descending", "city", "area", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "district", "name" ], [ "in" ], [ "order" ], [ "of" ], [ "descending" ], [ "city", "area" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "district", "NN" ], [ "name", "NN" ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "descending", "VBG" ], [ "city", "NN" ], [ "area", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(15) T(2) Order(0) A(0) C(18) T(2)" }, { "db_id": "store_product", "query": "SELECT max_page_size FROM product GROUP BY max_page_size HAVING count(*) > 3", "query_toks": [ "SELECT", "max_page_size", "FROM", "product", "GROUP", "BY", "max_page_size", "HAVING", "count", "(", "*", ")", ">", "3" ], "query_toks_no_value": [ "select", "max_page_size", "from", "product", "group", "by", "max_page_size", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the list of page size which have more than 3 product listed", "question_toks": [ "find", "list", "of", "page", "size", "which", "have", "more", "than", "3", "product", "listed" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Find", "the", "list", "of", "page", "size", "which", "have", "more", "than", "3", "product", "listed" ], "question_arg": [ [ "find" ], [ "list" ], [ "of" ], [ "max", "page", "size" ], [ "which" ], [ "have" ], [ "more" ], [ "than" ], [ "3" ], [ "product" ], [ "listed" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "list", "NN" ], [ "of", "IN" ], [ "page", "NN" ], [ "size", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "product", "NN" ], [ "listed", "VBN" ] ], "values": [ "3" ], "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": "store_product", "query": "SELECT max_page_size FROM product GROUP BY max_page_size HAVING count(*) > 3", "query_toks": [ "SELECT", "max_page_size", "FROM", "product", "GROUP", "BY", "max_page_size", "HAVING", "count", "(", "*", ")", ">", "3" ], "query_toks_no_value": [ "select", "max_page_size", "from", "product", "group", "by", "max_page_size", "having", "count", "(", "*", ")", ">", "value" ], "question": "What is the maximum page size for everything that has more than 3 products listed?", "question_toks": [ "what", "is", "maximum", "page", "size", "for", "everything", "that", "ha", "more", "than", "3", "product", "listed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "maximum", "page", "size", "for", "everything", "that", "has", "more", "than", "3", "products", "listed", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "max", "page", "size" ], [ "for" ], [ "everything" ], [ "that" ], [ "ha" ], [ "more" ], [ "than" ], [ "3" ], [ "product" ], [ "listed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "page", "NN" ], [ "size", "NN" ], [ "for", "IN" ], [ "everything", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "product", "NN" ], [ "listed", "VBN" ], [ "?", "." ] ], "values": [ "3" ], "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": "store_product", "query": "SELECT District_name , City_Population FROM district WHERE City_Population BETWEEN 200000 AND 2000000", "query_toks": [ "SELECT", "District_name", ",", "City_Population", "FROM", "district", "WHERE", "City_Population", "BETWEEN", "200000", "AND", "2000000" ], "query_toks_no_value": [ "select", "district_name", ",", "city_population", "from", "district", "where", "city_population", "between", "value", "and", "value" ], "question": "Find the name and population of district with population between 200000 and 2000000", "question_toks": [ "find", "name", "and", "population", "of", "district", "with", "population", "between", "200000", "and", "2000000" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 17, false ], null ], 200000.0, 2000000.0 ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "population", "of", "district", "with", "population", "between", "200000", "and", "2000000" ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "population" ], [ "of" ], [ "district" ], [ "with" ], [ "population" ], [ "between" ], [ "200000" ], [ "and" ], [ "2000000" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "population", "NN" ], [ "of", "IN" ], [ "district", "NN" ], [ "with", "IN" ], [ "population", "NN" ], [ "between", "IN" ], [ "200000", "CD" ], [ "and", "CC" ], [ "2000000", "CD" ] ], "values": [ "200000", "2000000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(15) T(2) A(0) C(17) T(2) Filter(8) A(0) C(17) T(2) V(0) V(1)" }, { "db_id": "store_product", "query": "SELECT District_name , City_Population FROM district WHERE City_Population BETWEEN 200000 AND 2000000", "query_toks": [ "SELECT", "District_name", ",", "City_Population", "FROM", "district", "WHERE", "City_Population", "BETWEEN", "200000", "AND", "2000000" ], "query_toks_no_value": [ "select", "district_name", ",", "city_population", "from", "district", "where", "city_population", "between", "value", "and", "value" ], "question": "What are the district names and city populations for all districts that between 200,000 and 2,000,000 residents?", "question_toks": [ "what", "are", "district", "name", "and", "city", "population", "for", "all", "district", "that", "between", "200,000", "and", "2,000,000", "resident", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 17, false ], null ], 200000.0, 2000000.0 ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "district", "names", "and", "city", "populations", "for", "all", "districts", "that", "between", "200,000", "and", "2,000,000", "residents", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "district", "name" ], [ "and" ], [ "city", "population" ], [ "for" ], [ "all" ], [ "district" ], [ "that" ], [ "between" ], [ "200,000" ], [ "and" ], [ "2,000,000" ], [ "resident" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "district", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "city", "NN" ], [ "population", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "district", "NN" ], [ "that", "WDT" ], [ "between", "IN" ], [ "200,000", "CD" ], [ "and", "CC" ], [ "2,000,000", "CD" ], [ "resident", "NN" ], [ "?", "." ] ], "values": [ "200000", "2000000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(15) T(2) A(0) C(17) T(2) Filter(8) A(0) C(17) T(2) V(0) V(1)" }, { "db_id": "store_product", "query": "SELECT district_name FROM district WHERE city_area > 10 OR City_Population > 100000", "query_toks": [ "SELECT", "district_name", "FROM", "district", "WHERE", "city_area", ">", "10", "OR", "City_Population", ">", "100000" ], "query_toks_no_value": [ "select", "district_name", "from", "district", "where", "city_area", ">", "value", "or", "city_population", ">", "value" ], "question": "Find the name all districts with city area greater than 10 or population larger than 100000", "question_toks": [ "find", "name", "all", "district", "with", "city", "area", "greater", "than", "10", "or", "population", "larger", "than", "100000" ], "sql": { "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": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 10.0, null ], "or", [ false, 3, [ 0, [ 0, 17, false ], null ], 100000.0, null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "all", "districts", "with", "city", "area", "greater", "than", "10", "or", "population", "larger", "than", "100000" ], "question_arg": [ [ "find" ], [ "name" ], [ "all" ], [ "district" ], [ "with" ], [ "city", "area" ], [ "greater" ], [ "than" ], [ "10" ], [ "or" ], [ "population" ], [ "larger" ], [ "than" ], [ "100000" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "all", "DT" ], [ "district", "NN" ], [ "with", "IN" ], [ "city", "NN" ], [ "area", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "or", "CC" ], [ "population", "NN" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "100000", "CD" ] ], "values": [ "100000", "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(2) Filter(1) Filter(5) A(0) C(18) T(2) V(1) Filter(5) A(0) C(17) T(2) V(0)" }, { "db_id": "store_product", "query": "SELECT district_name FROM district WHERE city_area > 10 OR City_Population > 100000", "query_toks": [ "SELECT", "district_name", "FROM", "district", "WHERE", "city_area", ">", "10", "OR", "City_Population", ">", "100000" ], "query_toks_no_value": [ "select", "district_name", "from", "district", "where", "city_area", ">", "value", "or", "city_population", ">", "value" ], "question": "What are the names of all districts with a city area greater than 10 or have more than 100000 people living there?", "question_toks": [ "what", "are", "name", "of", "all", "district", "with", "a", "city", "area", "greater", "than", "10", "or", "have", "more", "than", "100000", "people", "living", "there", "?" ], "sql": { "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": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 10.0, null ], "or", [ false, 3, [ 0, [ 0, 17, false ], null ], 100000.0, null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "districts", "with", "a", "city", "area", "greater", "than", "10", "or", "have", "more", "than", "100000", "people", "living", "there", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "district" ], [ "with" ], [ "a" ], [ "city", "area" ], [ "greater" ], [ "than" ], [ "10" ], [ "or" ], [ "have" ], [ "more" ], [ "than" ], [ "100000" ], [ "people" ], [ "living" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "district", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "city", "NN" ], [ "area", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "or", "CC" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "100000", "CD" ], [ "people", "NNS" ], [ "living", "VBG" ], [ "there", "RB" ], [ "?", "." ] ], "values": [ "100000", "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(2) Filter(1) Filter(5) A(0) C(18) T(2) V(1) Filter(5) A(0) C(17) T(2) V(0)" }, { "db_id": "store_product", "query": "SELECT district_name FROM district ORDER BY city_population DESC LIMIT 1", "query_toks": [ "SELECT", "district_name", "FROM", "district", "ORDER", "BY", "city_population", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "district_name", "from", "district", "order", "by", "city_population", "desc", "limit", "value" ], "question": "Which district has the largest population?", "question_toks": [ "which", "district", "ha", "largest", "population", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 17, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Which", "district", "has", "the", "largest", "population", "?" ], "question_arg": [ [ "which" ], [ "district" ], [ "ha" ], [ "largest" ], [ "population" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "district", "NN" ], [ "ha", "NN" ], [ "largest", "JJS" ], [ "population", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(15) T(2) Sup(0) A(0) C(17) T(2)" }, { "db_id": "store_product", "query": "SELECT district_name FROM district ORDER BY city_population DESC LIMIT 1", "query_toks": [ "SELECT", "district_name", "FROM", "district", "ORDER", "BY", "city_population", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "district_name", "from", "district", "order", "by", "city_population", "desc", "limit", "value" ], "question": "What is the name of the district with the most residents?", "question_toks": [ "what", "is", "name", "of", "district", "with", "most", "resident", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 17, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "district", "with", "the", "most", "residents", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "district" ], [ "with" ], [ "most" ], [ "resident" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "district", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "resident", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(15) T(2) Sup(0) A(0) C(17) T(2)" }, { "db_id": "store_product", "query": "SELECT district_name FROM district ORDER BY city_area ASC LIMIT 1", "query_toks": [ "SELECT", "district_name", "FROM", "district", "ORDER", "BY", "city_area", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "district_name", "from", "district", "order", "by", "city_area", "asc", "limit", "value" ], "question": "Which district has the least area?", "question_toks": [ "which", "district", "ha", "least", "area", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Which", "district", "has", "the", "least", "area", "?" ], "question_arg": [ [ "which" ], [ "district" ], [ "ha" ], [ "least" ], [ "area" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "district", "NN" ], [ "ha", "NN" ], [ "least", "JJS" ], [ "area", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(15) T(2) Sup(1) A(0) C(18) T(2)" }, { "db_id": "store_product", "query": "SELECT district_name FROM district ORDER BY city_area ASC LIMIT 1", "query_toks": [ "SELECT", "district_name", "FROM", "district", "ORDER", "BY", "city_area", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "district_name", "from", "district", "order", "by", "city_area", "asc", "limit", "value" ], "question": "What is the name of the district with the smallest area?", "question_toks": [ "what", "is", "name", "of", "district", "with", "smallest", "area", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "district", "with", "the", "smallest", "area", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "district" ], [ "with" ], [ "smallest" ], [ "area" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "district", "NN" ], [ "with", "IN" ], [ "smallest", "JJ" ], [ "area", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(15) T(2) Sup(1) A(0) C(18) T(2)" }, { "db_id": "store_product", "query": "SELECT sum(city_population) FROM district ORDER BY city_area DESC LIMIT 3", "query_toks": [ "SELECT", "sum", "(", "city_population", ")", "FROM", "district", "ORDER", "BY", "city_area", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "sum", "(", "city_population", ")", "from", "district", "order", "by", "city_area", "desc", "limit", "value" ], "question": "Find the total population of the top 3 districts with the largest area.", "question_toks": [ "find", "total", "population", "of", "top", "3", "district", "with", "largest", "area", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ false, [ [ 4, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Find", "the", "total", "population", "of", "the", "top", "3", "districts", "with", "the", "largest", "area", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "population" ], [ "of" ], [ "top" ], [ "3" ], [ "district" ], [ "with" ], [ "largest" ], [ "area" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "population", "NN" ], [ "of", "IN" ], [ "top", "JJ" ], [ "3", "CD" ], [ "district", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "area", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(4) C(17) T(2) Sup(0) A(0) C(18) T(2)" }, { "db_id": "store_product", "query": "SELECT sum(city_population) FROM district ORDER BY city_area DESC LIMIT 3", "query_toks": [ "SELECT", "sum", "(", "city_population", ")", "FROM", "district", "ORDER", "BY", "city_area", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "sum", "(", "city_population", ")", "from", "district", "order", "by", "city_area", "desc", "limit", "value" ], "question": "What is the total number of residents for the districts with the 3 largest areas?", "question_toks": [ "what", "is", "total", "number", "of", "resident", "for", "district", "with", "3", "largest", "area", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ false, [ [ 4, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "residents", "for", "the", "districts", "with", "the", "3", "largest", "areas", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "resident" ], [ "for" ], [ "district" ], [ "with" ], [ "3" ], [ "largest" ], [ "area" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "resident", "NN" ], [ "for", "IN" ], [ "district", "NN" ], [ "with", "IN" ], [ "3", "CD" ], [ "largest", "JJS" ], [ "area", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(4) C(17) T(2) Sup(0) A(0) C(18) T(2)" }, { "db_id": "store_product", "query": "SELECT TYPE , count(*) FROM store GROUP BY TYPE", "query_toks": [ "SELECT", "TYPE", ",", "count", "(", "*", ")", "FROM", "store", "GROUP", "BY", "TYPE" ], "query_toks_no_value": [ "select", "type", ",", "count", "(", "*", ")", "from", "store", "group", "by", "type" ], "question": "Find all types of store and number of them.", "question_toks": [ "find", "all", "type", "of", "store", "and", "number", "of", "them", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Find", "all", "types", "of", "store", "and", "number", "of", "them", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "type" ], [ "of" ], [ "store" ], [ "and" ], [ "number" ], [ "of" ], [ "them" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "type", "NN" ], [ "of", "IN" ], [ "store", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "them", "PRP" ], [ ".", "." ] ], "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": "store_product", "query": "SELECT TYPE , count(*) FROM store GROUP BY TYPE", "query_toks": [ "SELECT", "TYPE", ",", "count", "(", "*", ")", "FROM", "store", "GROUP", "BY", "TYPE" ], "query_toks_no_value": [ "select", "type", ",", "count", "(", "*", ")", "from", "store", "group", "by", "type" ], "question": "For each type of store, how many of them are there?", "question_toks": [ "for", "each", "type", "of", "store", ",", "how", "many", "of", "them", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "For", "each", "type", "of", "store", ",", "how", "many", "of", "them", "are", "there", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "type" ], [ "of" ], [ "store" ], [ "," ], [ "how" ], [ "many" ], [ "of" ], [ "them" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ "of", "IN" ], [ "store", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "of", "IN" ], [ "them", "PRP" ], [ "are", "VBP" ], [ "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": "store_product", "query": "SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t3.district_name = \"Khanewal District\"", "query_toks": [ "SELECT", "t1.store_name", "FROM", "store", "AS", "t1", "JOIN", "store_district", "AS", "t2", "ON", "t1.store_id", "=", "t2.store_id", "JOIN", "district", "AS", "t3", "ON", "t2.district_id", "=", "t3.district_id", "WHERE", "t3.district_name", "=", "``", "Khanewal", "District", "''" ], "query_toks_no_value": [ "select", "t1", ".", "store_name", "from", "store", "as", "t1", "join", "store_district", "as", "t2", "on", "t1", ".", "store_id", "=", "t2", ".", "store_id", "join", "district", "as", "t3", "on", "t2", ".", "district_id", "=", "t3", ".", "district_id", "where", "t3", ".", "district_name", "=", "value" ], "question": "Find the names of all stores in Khanewal District.", "question_toks": [ "find", "name", "of", "all", "store", "in", "khanewal", "district", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Khanewal District\"", null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "stores", "in", "Khanewal", "District", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "store" ], [ "in" ], [ "khanewal" ], [ "district" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "store", "NN" ], [ "in", "IN" ], [ "khanewal", "NN" ], [ "district", "NN" ], [ ".", "." ] ], "values": [ "Khanewal District", "Chakwal District" ], "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(4) Filter(2) A(0) C(15) T(2) V(0)" }, { "db_id": "store_product", "query": "SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t3.district_name = \"Khanewal District\"", "query_toks": [ "SELECT", "t1.store_name", "FROM", "store", "AS", "t1", "JOIN", "store_district", "AS", "t2", "ON", "t1.store_id", "=", "t2.store_id", "JOIN", "district", "AS", "t3", "ON", "t2.district_id", "=", "t3.district_id", "WHERE", "t3.district_name", "=", "``", "Khanewal", "District", "''" ], "query_toks_no_value": [ "select", "t1", ".", "store_name", "from", "store", "as", "t1", "join", "store_district", "as", "t2", "on", "t1", ".", "store_id", "=", "t2", ".", "store_id", "join", "district", "as", "t3", "on", "t2", ".", "district_id", "=", "t3", ".", "district_id", "where", "t3", ".", "district_name", "=", "value" ], "question": "What are the names of all the stores located in Khanewal District?", "question_toks": [ "what", "are", "name", "of", "all", "store", "located", "in", "khanewal", "district", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Khanewal District\"", null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "stores", "located", "in", "Khanewal", "District", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "store" ], [ "located" ], [ "in" ], [ "khanewal" ], [ "district" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "store", "NN" ], [ "located", "VBN" ], [ "in", "IN" ], [ "khanewal", "NN" ], [ "district", "NN" ], [ "?", "." ] ], "values": [ "Khanewal District", "Chakwal District" ], "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(4) Filter(2) A(0) C(15) T(2) V(0)" }, { "db_id": "store_product", "query": "SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id WHERE district_id = (SELECT district_id FROM district ORDER BY city_population DESC LIMIT 1)", "query_toks": [ "SELECT", "t1.store_name", "FROM", "store", "AS", "t1", "JOIN", "store_district", "AS", "t2", "ON", "t1.store_id", "=", "t2.store_id", "WHERE", "district_id", "=", "(", "SELECT", "district_id", "FROM", "district", "ORDER", "BY", "city_population", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "t1", ".", "store_name", "from", "store", "as", "t1", "join", "store_district", "as", "t2", "on", "t1", ".", "store_id", "=", "t2", ".", "store_id", "where", "district_id", "=", "(", "select", "district_id", "from", "district", "order", "by", "city_population", "desc", "limit", "value", ")" ], "question": "Find all the stores in the district with the most population.", "question_toks": [ "find", "all", "store", "in", "district", "with", "most", "population", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 17, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Find", "all", "the", "stores", "in", "the", "district", "with", "the", "most", "population", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "store" ], [ "in" ], [ "district" ], [ "with" ], [ "most" ], [ "population" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "store", "NN" ], [ "in", "IN" ], [ "district", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "population", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(11) A(0) C(14) T(4) Root(2) Sel(0) N(0) A(0) C(14) T(2) Sup(0) A(0) C(17) T(2)" }, { "db_id": "store_product", "query": "SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id WHERE district_id = (SELECT district_id FROM district ORDER BY city_population DESC LIMIT 1)", "query_toks": [ "SELECT", "t1.store_name", "FROM", "store", "AS", "t1", "JOIN", "store_district", "AS", "t2", "ON", "t1.store_id", "=", "t2.store_id", "WHERE", "district_id", "=", "(", "SELECT", "district_id", "FROM", "district", "ORDER", "BY", "city_population", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "t1", ".", "store_name", "from", "store", "as", "t1", "join", "store_district", "as", "t2", "on", "t1", ".", "store_id", "=", "t2", ".", "store_id", "where", "district_id", "=", "(", "select", "district_id", "from", "district", "order", "by", "city_population", "desc", "limit", "value", ")" ], "question": "What are the names of all the stores in the largest district by population?", "question_toks": [ "what", "are", "name", "of", "all", "store", "in", "largest", "district", "by", "population", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 17, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "stores", "in", "the", "largest", "district", "by", "population", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "store" ], [ "in" ], [ "largest" ], [ "district" ], [ "by" ], [ "population" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "store", "NN" ], [ "in", "IN" ], [ "largest", "JJS" ], [ "district", "NN" ], [ "by", "IN" ], [ "population", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(11) A(0) C(14) T(4) Root(2) Sel(0) N(0) A(0) C(14) T(2) Sup(0) A(0) C(17) T(2)" }, { "db_id": "store_product", "query": "SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = \"Blackville\"", "query_toks": [ "SELECT", "t3.headquartered_city", "FROM", "store", "AS", "t1", "JOIN", "store_district", "AS", "t2", "ON", "t1.store_id", "=", "t2.store_id", "JOIN", "district", "AS", "t3", "ON", "t2.district_id", "=", "t3.district_id", "WHERE", "t1.store_name", "=", "``", "Blackville", "''" ], "query_toks_no_value": [ "select", "t3", ".", "headquartered_city", "from", "store", "as", "t1", "join", "store_district", "as", "t2", "on", "t1", ".", "store_id", "=", "t2", ".", "store_id", "join", "district", "as", "t3", "on", "t2", ".", "district_id", "=", "t3", ".", "district_id", "where", "t1", ".", "store_name", "=", "value" ], "question": "Which city is the headquarter of the store named \"Blackville\" in?", "question_toks": [ "which", "city", "is", "headquarter", "of", "store", "named", "'", "blackville", "'", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Blackville\"", null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Which", "city", "is", "the", "headquarter", "of", "the", "store", "named", "``", "Blackville", "''", "in", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "is" ], [ "headquarter" ], [ "of" ], [ "store" ], [ "named" ], [ "'" ], [ "blackville" ], [ "'" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "is", "VBZ" ], [ "headquarter", "JJR" ], [ "of", "IN" ], [ "store", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "blackville", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "Blackville" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(0) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(4) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "store_product", "query": "SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = \"Blackville\"", "query_toks": [ "SELECT", "t3.headquartered_city", "FROM", "store", "AS", "t1", "JOIN", "store_district", "AS", "t2", "ON", "t1.store_id", "=", "t2.store_id", "JOIN", "district", "AS", "t3", "ON", "t2.district_id", "=", "t3.district_id", "WHERE", "t1.store_name", "=", "``", "Blackville", "''" ], "query_toks_no_value": [ "select", "t3", ".", "headquartered_city", "from", "store", "as", "t1", "join", "store_district", "as", "t2", "on", "t1", ".", "store_id", "=", "t2", ".", "store_id", "join", "district", "as", "t3", "on", "t2", ".", "district_id", "=", "t3", ".", "district_id", "where", "t1", ".", "store_name", "=", "value" ], "question": "What city is the headquarter of the store Blackville?", "question_toks": [ "what", "city", "is", "headquarter", "of", "store", "blackville", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Blackville\"", null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "city", "is", "the", "headquarter", "of", "the", "store", "Blackville", "?" ], "question_arg": [ [ "what" ], [ "city" ], [ "is" ], [ "headquarter" ], [ "of" ], [ "store" ], [ "blackville" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "city", "NN" ], [ "is", "VBZ" ], [ "headquarter", "JJR" ], [ "of", "IN" ], [ "store", "NN" ], [ "blackville", "NN" ], [ "?", "." ] ], "values": [ "Blackville" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(0) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(4) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "store_product", "query": "SELECT t3.headquartered_city , count(*) FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city", "query_toks": [ "SELECT", "t3.headquartered_city", ",", "count", "(", "*", ")", "FROM", "store", "AS", "t1", "JOIN", "store_district", "AS", "t2", "ON", "t1.store_id", "=", "t2.store_id", "JOIN", "district", "AS", "t3", "ON", "t2.district_id", "=", "t3.district_id", "GROUP", "BY", "t3.headquartered_city" ], "query_toks_no_value": [ "select", "t3", ".", "headquartered_city", ",", "count", "(", "*", ")", "from", "store", "as", "t1", "join", "store_district", "as", "t2", "on", "t1", ".", "store_id", "=", "t2", ".", "store_id", "join", "district", "as", "t3", "on", "t2", ".", "district_id", "=", "t3", ".", "district_id", "group", "by", "t3", ".", "headquartered_city" ], "question": "Find the number of stores in each city.", "question_toks": [ "find", "number", "of", "store", "in", "each", "city", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "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": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "stores", "in", "each", "city", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "store" ], [ "in" ], [ "each" ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "store", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(2) A(3) C(0) T(4) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(4)" }, { "db_id": "store_product", "query": "SELECT t3.headquartered_city , count(*) FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city", "query_toks": [ "SELECT", "t3.headquartered_city", ",", "count", "(", "*", ")", "FROM", "store", "AS", "t1", "JOIN", "store_district", "AS", "t2", "ON", "t1.store_id", "=", "t2.store_id", "JOIN", "district", "AS", "t3", "ON", "t2.district_id", "=", "t3.district_id", "GROUP", "BY", "t3.headquartered_city" ], "query_toks_no_value": [ "select", "t3", ".", "headquartered_city", ",", "count", "(", "*", ")", "from", "store", "as", "t1", "join", "store_district", "as", "t2", "on", "t1", ".", "store_id", "=", "t2", ".", "store_id", "join", "district", "as", "t3", "on", "t2", ".", "district_id", "=", "t3", ".", "district_id", "group", "by", "t3", ".", "headquartered_city" ], "question": "How many stores are headquarted in each city?", "question_toks": [ "how", "many", "store", "are", "headquarted", "in", "each", "city", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "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": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "How", "many", "stores", "are", "headquarted", "in", "each", "city", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "store" ], [ "are" ], [ "headquarted" ], [ "in" ], [ "each" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "store", "NN" ], [ "are", "VBP" ], [ "headquarted", "VBN" ], [ "in", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(2) A(3) C(0) T(4) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(4)" }, { "db_id": "store_product", "query": "SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t3.headquartered_city", "FROM", "store", "AS", "t1", "JOIN", "store_district", "AS", "t2", "ON", "t1.store_id", "=", "t2.store_id", "JOIN", "district", "AS", "t3", "ON", "t2.district_id", "=", "t3.district_id", "GROUP", "BY", "t3.headquartered_city", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t3", ".", "headquartered_city", "from", "store", "as", "t1", "join", "store_district", "as", "t2", "on", "t1", ".", "store_id", "=", "t2", ".", "store_id", "join", "district", "as", "t3", "on", "t2", ".", "district_id", "=", "t3", ".", "district_id", "group", "by", "t3", ".", "headquartered_city", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the city with the most number of stores.", "question_toks": [ "find", "city", "with", "most", "number", "of", "store", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 21, 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": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Find", "the", "city", "with", "the", "most", "number", "of", "stores", "." ], "question_arg": [ [ "find" ], [ "city" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "store" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "city", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "store", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(16) T(2) Sup(0) A(3) C(0) T(2) Filter(0) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(4) Filter(18) A(0) C(8) T(4) Root(5) Sel(0) N(0) A(0) C(8) T(1)" }, { "db_id": "store_product", "query": "SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t3.headquartered_city", "FROM", "store", "AS", "t1", "JOIN", "store_district", "AS", "t2", "ON", "t1.store_id", "=", "t2.store_id", "JOIN", "district", "AS", "t3", "ON", "t2.district_id", "=", "t3.district_id", "GROUP", "BY", "t3.headquartered_city", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t3", ".", "headquartered_city", "from", "store", "as", "t1", "join", "store_district", "as", "t2", "on", "t1", ".", "store_id", "=", "t2", ".", "store_id", "join", "district", "as", "t3", "on", "t2", ".", "district_id", "=", "t3", ".", "district_id", "group", "by", "t3", ".", "headquartered_city", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the city with the most number of flagship stores?", "question_toks": [ "what", "is", "city", "with", "most", "number", "of", "flagship", "store", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 21, 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": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "city", "with", "the", "most", "number", "of", "flagship", "stores", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "city" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "flagship" ], [ "store" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "city", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "flagship", "NN" ], [ "store", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(16) T(2) Sup(0) A(3) C(0) T(2) Filter(0) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(4) Filter(18) A(0) C(8) T(4) Root(5) Sel(0) N(0) A(0) C(8) T(1)" }, { "db_id": "store_product", "query": "SELECT avg(pages_per_minute_color) FROM product", "query_toks": [ "SELECT", "avg", "(", "pages_per_minute_color", ")", "FROM", "product" ], "query_toks_no_value": [ "select", "avg", "(", "pages_per_minute_color", ")", "from", "product" ], "question": "What is the average pages per minute color?", "question_toks": [ "what", "is", "average", "page", "per", "minute", "color", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "pages", "per", "minute", "color", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "page", "per", "minute", "color" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "page", "NN" ], [ "per", "IN" ], [ "minute", "NN" ], [ "color", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(5) T(0)" }, { "db_id": "store_product", "query": "SELECT avg(pages_per_minute_color) FROM product", "query_toks": [ "SELECT", "avg", "(", "pages_per_minute_color", ")", "FROM", "product" ], "query_toks_no_value": [ "select", "avg", "(", "pages_per_minute_color", ")", "from", "product" ], "question": "What is the average number of pages per minute color?", "question_toks": [ "what", "is", "average", "number", "of", "page", "per", "minute", "color", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "pages", "per", "minute", "color", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "page", "per", "minute", "color" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "page", "NN" ], [ "per", "IN" ], [ "minute", "NN" ], [ "color", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(5) T(0)" }, { "db_id": "store_product", "query": "SELECT t1.product FROM product AS t1 JOIN store_product AS t2 ON t1.product_id = t2.product_id JOIN store AS t3 ON t2.store_id = t3.store_id WHERE t3.store_name = \"Miramichi\"", "query_toks": [ "SELECT", "t1.product", "FROM", "product", "AS", "t1", "JOIN", "store_product", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "store", "AS", "t3", "ON", "t2.store_id", "=", "t3.store_id", "WHERE", "t3.store_name", "=", "``", "Miramichi", "''" ], "query_toks_no_value": [ "select", "t1", ".", "product", "from", "product", "as", "t1", "join", "store_product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "store", "as", "t3", "on", "t2", ".", "store_id", "=", "t3", ".", "store_id", "where", "t3", ".", "store_name", "=", "value" ], "question": "What products are available at store named \"Miramichi\"?", "question_toks": [ "what", "product", "are", "available", "at", "store", "named", "'", "miramichi", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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, 20, 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, 9, false ], null ], "\"Miramichi\"", null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "products", "are", "available", "at", "store", "named", "``", "Miramichi", "''", "?" ], "question_arg": [ [ "what" ], [ "product" ], [ "are" ], [ "available" ], [ "at" ], [ "store" ], [ "named" ], [ "'" ], [ "miramichi" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "product", "NN" ], [ "are", "VBP" ], [ "available", "JJ" ], [ "at", "IN" ], [ "store", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "miramichi", "NNS" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Miramichi" ], "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(3) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "store_product", "query": "SELECT t1.product FROM product AS t1 JOIN store_product AS t2 ON t1.product_id = t2.product_id JOIN store AS t3 ON t2.store_id = t3.store_id WHERE t3.store_name = \"Miramichi\"", "query_toks": [ "SELECT", "t1.product", "FROM", "product", "AS", "t1", "JOIN", "store_product", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "store", "AS", "t3", "ON", "t2.store_id", "=", "t3.store_id", "WHERE", "t3.store_name", "=", "``", "Miramichi", "''" ], "query_toks_no_value": [ "select", "t1", ".", "product", "from", "product", "as", "t1", "join", "store_product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "store", "as", "t3", "on", "t2", ".", "store_id", "=", "t3", ".", "store_id", "where", "t3", ".", "store_name", "=", "value" ], "question": "What products are sold at the store named Miramichi?", "question_toks": [ "what", "product", "are", "sold", "at", "store", "named", "miramichi", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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, 20, 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, 9, false ], null ], "\"Miramichi\"", null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "products", "are", "sold", "at", "the", "store", "named", "Miramichi", "?" ], "question_arg": [ [ "what" ], [ "product" ], [ "are" ], [ "sold" ], [ "at" ], [ "store" ], [ "named" ], [ "miramichi" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "product", "NN" ], [ "are", "VBP" ], [ "sold", "VBN" ], [ "at", "IN" ], [ "store", "NN" ], [ "named", "VBN" ], [ "miramichi", "NNS" ], [ "?", "." ] ], "values": [ "Miramichi" ], "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(3) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "store_product", "query": "SELECT product FROM product WHERE max_page_size = \"A4\" AND pages_per_minute_color < 5", "query_toks": [ "SELECT", "product", "FROM", "product", "WHERE", "max_page_size", "=", "``", "A4", "''", "AND", "pages_per_minute_color", "<", "5" ], "query_toks_no_value": [ "select", "product", "from", "product", "where", "max_page_size", "=", "value", "and", "pages_per_minute_color", "<", "value" ], "question": "Find products with max page size as \"A4\" and pages per minute color smaller than 5.", "question_toks": [ "find", "product", "with", "max", "page", "size", "a", "'", "a4", "'", "and", "page", "per", "minute", "color", "smaller", "than", "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, 2, [ 0, [ 0, 6, false ], null ], "\"A4\"", null ], "and", [ false, 4, [ 0, [ 0, 5, false ], null ], 5.0, null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Find", "products", "with", "max", "page", "size", "as", "``", "A4", "''", "and", "pages", "per", "minute", "color", "smaller", "than", "5", "." ], "question_arg": [ [ "find" ], [ "product" ], [ "with" ], [ "max", "page", "size" ], [ "a" ], [ "'" ], [ "a4" ], [ "'" ], [ "and" ], [ "page", "per", "minute", "color" ], [ "smaller" ], [ "than" ], [ "5" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "product", "NN" ], [ "with", "IN" ], [ "max", "JJ" ], [ "page", "NN" ], [ "size", "NN" ], [ "a", "DT" ], [ "'", "''" ], [ "a4", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "page", "NN" ], [ "per", "IN" ], [ "minute", "NN" ], [ "color", "NN" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "5", "CD" ], [ ".", "." ] ], "values": [ "5", "A4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(6) T(0) V(1) Filter(4) A(0) C(5) T(0) V(0)" }, { "db_id": "store_product", "query": "SELECT product FROM product WHERE max_page_size = \"A4\" AND pages_per_minute_color < 5", "query_toks": [ "SELECT", "product", "FROM", "product", "WHERE", "max_page_size", "=", "``", "A4", "''", "AND", "pages_per_minute_color", "<", "5" ], "query_toks_no_value": [ "select", "product", "from", "product", "where", "max_page_size", "=", "value", "and", "pages_per_minute_color", "<", "value" ], "question": "What are the products with the maximum page size A4 that also have a pages per minute color smaller than 5?", "question_toks": [ "what", "are", "product", "with", "maximum", "page", "size", "a4", "that", "also", "have", "a", "page", "per", "minute", "color", "smaller", "than", "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, 2, [ 0, [ 0, 6, false ], null ], "\"A4\"", null ], "and", [ false, 4, [ 0, [ 0, 5, false ], null ], 5.0, null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "products", "with", "the", "maximum", "page", "size", "A4", "that", "also", "have", "a", "pages", "per", "minute", "color", "smaller", "than", "5", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "product" ], [ "with" ], [ "maximum" ], [ "max", "page", "size" ], [ "a4" ], [ "that" ], [ "also" ], [ "have" ], [ "a" ], [ "page", "per", "minute", "color" ], [ "smaller" ], [ "than" ], [ "5" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "product", "NN" ], [ "with", "IN" ], [ "maximum", "JJ" ], [ "page", "NN" ], [ "size", "NN" ], [ "a4", "NN" ], [ "that", "WDT" ], [ "also", "RB" ], [ "have", "VBP" ], [ "a", "DT" ], [ "page", "NN" ], [ "per", "IN" ], [ "minute", "NN" ], [ "color", "NN" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "5", "CD" ], [ "?", "." ] ], "values": [ "5", "A4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(6) T(0) V(1) Filter(4) A(0) C(5) T(0) V(0)" }, { "db_id": "store_product", "query": "SELECT product FROM product WHERE max_page_size = \"A4\" OR pages_per_minute_color < 5", "query_toks": [ "SELECT", "product", "FROM", "product", "WHERE", "max_page_size", "=", "``", "A4", "''", "OR", "pages_per_minute_color", "<", "5" ], "query_toks_no_value": [ "select", "product", "from", "product", "where", "max_page_size", "=", "value", "or", "pages_per_minute_color", "<", "value" ], "question": "Find products with max page size as \"A4\" or pages per minute color smaller than 5.", "question_toks": [ "find", "product", "with", "max", "page", "size", "a", "'", "a4", "'", "or", "page", "per", "minute", "color", "smaller", "than", "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, 2, [ 0, [ 0, 6, false ], null ], "\"A4\"", null ], "or", [ false, 4, [ 0, [ 0, 5, false ], null ], 5.0, null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Find", "products", "with", "max", "page", "size", "as", "``", "A4", "''", "or", "pages", "per", "minute", "color", "smaller", "than", "5", "." ], "question_arg": [ [ "find" ], [ "product" ], [ "with" ], [ "max", "page", "size" ], [ "a" ], [ "'" ], [ "a4" ], [ "'" ], [ "or" ], [ "page", "per", "minute", "color" ], [ "smaller" ], [ "than" ], [ "5" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "product", "NN" ], [ "with", "IN" ], [ "max", "JJ" ], [ "page", "NN" ], [ "size", "NN" ], [ "a", "DT" ], [ "'", "''" ], [ "a4", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "page", "VB" ], [ "per", "IN" ], [ "minute", "NN" ], [ "color", "NN" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "5", "CD" ], [ ".", "." ] ], "values": [ "5", "A4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(1) Filter(2) A(0) C(6) T(0) V(1) Filter(4) A(0) C(5) T(0) V(0)" }, { "db_id": "store_product", "query": "SELECT product FROM product WHERE max_page_size = \"A4\" OR pages_per_minute_color < 5", "query_toks": [ "SELECT", "product", "FROM", "product", "WHERE", "max_page_size", "=", "``", "A4", "''", "OR", "pages_per_minute_color", "<", "5" ], "query_toks_no_value": [ "select", "product", "from", "product", "where", "max_page_size", "=", "value", "or", "pages_per_minute_color", "<", "value" ], "question": "What are the products with the maximum page size eqal to A4 or a pages per minute color less than 5?", "question_toks": [ "what", "are", "product", "with", "maximum", "page", "size", "eqal", "to", "a4", "or", "a", "page", "per", "minute", "color", "le", "than", "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, 2, [ 0, [ 0, 6, false ], null ], "\"A4\"", null ], "or", [ false, 4, [ 0, [ 0, 5, false ], null ], 5.0, null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "products", "with", "the", "maximum", "page", "size", "eqal", "to", "A4", "or", "a", "pages", "per", "minute", "color", "less", "than", "5", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "product" ], [ "with" ], [ "maximum" ], [ "max", "page", "size" ], [ "eqal" ], [ "to" ], [ "a4" ], [ "or" ], [ "a" ], [ "page", "per", "minute", "color" ], [ "le" ], [ "than" ], [ "5" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "product", "NN" ], [ "with", "IN" ], [ "maximum", "JJ" ], [ "page", "NN" ], [ "size", "NN" ], [ "eqal", "NN" ], [ "to", "TO" ], [ "a4", "VB" ], [ "or", "CC" ], [ "a", "DT" ], [ "page", "NN" ], [ "per", "IN" ], [ "minute", "NN" ], [ "color", "NN" ], [ "le", "NN" ], [ "than", "IN" ], [ "5", "CD" ], [ "?", "." ] ], "values": [ "5", "A4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(1) Filter(2) A(0) C(6) T(0) V(1) Filter(4) A(0) C(5) T(0) V(0)" }, { "db_id": "store_product", "query": "SELECT product FROM product WHERE product LIKE \"%Scanner%\"", "query_toks": [ "SELECT", "product", "FROM", "product", "WHERE", "product", "LIKE", "``", "%", "Scanner", "%", "''" ], "query_toks_no_value": [ "select", "product", "from", "product", "where", "product", "like", "value" ], "question": "Find all the product whose name contains the word \"Scanner\".", "question_toks": [ "find", "all", "product", "whose", "name", "contains", "word", "'", "scanner", "'", "." ], "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 ], "\"%Scanner%\"", null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Find", "all", "the", "product", "whose", "name", "contains", "the", "word", "``", "Scanner", "''", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "product" ], [ "whose" ], [ "name" ], [ "contains" ], [ "word" ], [ "'" ], [ "scanner" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "product", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "word", "NN" ], [ "'", "''" ], [ "scanner", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Scanner" ], "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": "store_product", "query": "SELECT product FROM product WHERE product LIKE \"%Scanner%\"", "query_toks": [ "SELECT", "product", "FROM", "product", "WHERE", "product", "LIKE", "``", "%", "Scanner", "%", "''" ], "query_toks_no_value": [ "select", "product", "from", "product", "where", "product", "like", "value" ], "question": "What are all of the products whose name includes the substring \"Scanner\"?", "question_toks": [ "what", "are", "all", "of", "product", "whose", "name", "includes", "substring", "'", "scanner", "'", "?" ], "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 ], "\"%Scanner%\"", null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "are", "all", "of", "the", "products", "whose", "name", "includes", "the", "substring", "``", "Scanner", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "of" ], [ "product" ], [ "whose" ], [ "name" ], [ "includes" ], [ "substring" ], [ "'" ], [ "scanner" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "of", "IN" ], [ "product", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "includes", "VBZ" ], [ "substring", "VBG" ], [ "'", "''" ], [ "scanner", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Scanner" ], "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": "store_product", "query": "SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "max_page_size", "FROM", "product", "GROUP", "BY", "max_page_size", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "max_page_size", "from", "product", "group", "by", "max_page_size", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the most prominent max page size among all the products.", "question_toks": [ "find", "most", "prominent", "max", "page", "size", "among", "all", "product", "." ], "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": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Find", "the", "most", "prominent", "max", "page", "size", "among", "all", "the", "products", "." ], "question_arg": [ [ "find" ], [ "most" ], [ "prominent" ], [ "max", "page", "size" ], [ "among" ], [ "all" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "most", "RBS" ], [ "prominent", "JJ" ], [ "max", "NN" ], [ "page", "NN" ], [ "size", "NN" ], [ "among", "IN" ], [ "all", "DT" ], [ "product", "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": "store_product", "query": "SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "max_page_size", "FROM", "product", "GROUP", "BY", "max_page_size", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "max_page_size", "from", "product", "group", "by", "max_page_size", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most common maximum page size?", "question_toks": [ "what", "is", "most", "common", "maximum", "page", "size", "?" ], "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": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "most", "common", "maximum", "page", "size", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "common" ], [ "maximum" ], [ "max", "page", "size" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "maximum", "JJ" ], [ "page", "NN" ], [ "size", "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": "store_product", "query": "SELECT product FROM product WHERE product != (SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "product", "FROM", "product", "WHERE", "product", "!", "=", "(", "SELECT", "max_page_size", "FROM", "product", "GROUP", "BY", "max_page_size", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "product", "from", "product", "where", "product", "!", "=", "(", "select", "max_page_size", "from", "product", "group", "by", "max_page_size", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "Find the name of the products that are not using the most frequently-used max page size.", "question_toks": [ "find", "name", "of", "product", "that", "are", "not", "using", "most", "frequently-used", "max", "page", "size", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 2, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "products", "that", "are", "not", "using", "the", "most", "frequently-used", "max", "page", "size", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "product" ], [ "that" ], [ "are" ], [ "not" ], [ "using" ], [ "most" ], [ "frequently-used" ], [ "max", "page", "size" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "using", "VBG" ], [ "most", "JJS" ], [ "frequently-used", "JJ" ], [ "max", "NN" ], [ "page", "NN" ], [ "size", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(14) A(0) C(2) T(0) Root(2) Sel(0) N(0) A(0) C(6) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "store_product", "query": "SELECT product FROM product WHERE product != (SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "product", "FROM", "product", "WHERE", "product", "!", "=", "(", "SELECT", "max_page_size", "FROM", "product", "GROUP", "BY", "max_page_size", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "product", "from", "product", "where", "product", "!", "=", "(", "select", "max_page_size", "from", "product", "group", "by", "max_page_size", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "What are the names of all products that are not the most frequently-used maximum page size?", "question_toks": [ "what", "are", "name", "of", "all", "product", "that", "are", "not", "most", "frequently-used", "maximum", "page", "size", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 2, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "products", "that", "are", "not", "the", "most", "frequently-used", "maximum", "page", "size", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "product" ], [ "that" ], [ "are" ], [ "not" ], [ "most" ], [ "frequently-used" ], [ "maximum" ], [ "max", "page", "size" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "most", "RBS" ], [ "frequently-used", "JJ" ], [ "maximum", "JJ" ], [ "page", "NN" ], [ "size", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(14) A(0) C(2) T(0) Root(2) Sel(0) N(0) A(0) C(6) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "store_product", "query": "SELECT sum(city_population) FROM district WHERE city_area > (SELECT avg(city_area) FROM district)", "query_toks": [ "SELECT", "sum", "(", "city_population", ")", "FROM", "district", "WHERE", "city_area", ">", "(", "SELECT", "avg", "(", "city_area", ")", "FROM", "district", ")" ], "query_toks_no_value": [ "select", "sum", "(", "city_population", ")", "from", "district", "where", "city_area", ">", "(", "select", "avg", "(", "city_area", ")", "from", "district", ")" ], "question": "Find the total population of the districts where the area is bigger than the average city area.", "question_toks": [ "find", "total", "population", "of", "district", "where", "area", "is", "bigger", "than", "average", "city", "area", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Find", "the", "total", "population", "of", "the", "districts", "where", "the", "area", "is", "bigger", "than", "the", "average", "city", "area", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "population" ], [ "of" ], [ "district" ], [ "where" ], [ "area" ], [ "is" ], [ "bigger" ], [ "than" ], [ "average" ], [ "city", "area" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "population", "NN" ], [ "of", "IN" ], [ "district", "NN" ], [ "where", "WRB" ], [ "area", "NN" ], [ "is", "VBZ" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "city", "NN" ], [ "area", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(17) T(2) Filter(13) A(0) C(18) T(2) Root(5) Sel(0) N(0) A(5) C(18) T(2)" }, { "db_id": "store_product", "query": "SELECT sum(city_population) FROM district WHERE city_area > (SELECT avg(city_area) FROM district)", "query_toks": [ "SELECT", "sum", "(", "city_population", ")", "FROM", "district", "WHERE", "city_area", ">", "(", "SELECT", "avg", "(", "city_area", ")", "FROM", "district", ")" ], "query_toks_no_value": [ "select", "sum", "(", "city_population", ")", "from", "district", "where", "city_area", ">", "(", "select", "avg", "(", "city_area", ")", "from", "district", ")" ], "question": "What is the total population for all the districts that have an area larger tahn the average city area?", "question_toks": [ "what", "is", "total", "population", "for", "all", "district", "that", "have", "an", "area", "larger", "tahn", "average", "city", "area", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "population", "for", "all", "the", "districts", "that", "have", "an", "area", "larger", "tahn", "the", "average", "city", "area", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "population" ], [ "for" ], [ "all" ], [ "district" ], [ "that" ], [ "have" ], [ "an" ], [ "area" ], [ "larger" ], [ "tahn" ], [ "average" ], [ "city", "area" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "population", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "district", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "an", "DT" ], [ "area", "NN" ], [ "larger", "JJR" ], [ "tahn", "JJ" ], [ "average", "JJ" ], [ "city", "NN" ], [ "area", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(17) T(2) Filter(13) A(0) C(18) T(2) Root(5) Sel(0) N(0) A(5) C(18) T(2)" }, { "db_id": "store_product", "query": "SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = \"City Mall\" INTERSECT SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = \"Village Store\"", "query_toks": [ "SELECT", "t3.District_name", "FROM", "store", "AS", "t1", "JOIN", "store_district", "AS", "t2", "ON", "t1.store_id", "=", "t2.store_id", "JOIN", "district", "AS", "t3", "ON", "t2.district_id", "=", "t3.district_id", "WHERE", "t1.Type", "=", "``", "City", "Mall", "''", "INTERSECT", "SELECT", "t3.District_name", "FROM", "store", "AS", "t1", "JOIN", "store_district", "AS", "t2", "ON", "t1.store_id", "=", "t2.store_id", "JOIN", "district", "AS", "t3", "ON", "t2.district_id", "=", "t3.district_id", "WHERE", "t1.Type", "=", "``", "Village", "Store", "''" ], "query_toks_no_value": [ "select", "t3", ".", "district_name", "from", "store", "as", "t1", "join", "store_district", "as", "t2", "on", "t1", ".", "store_id", "=", "t2", ".", "store_id", "join", "district", "as", "t3", "on", "t2", ".", "district_id", "=", "t3", ".", "district_id", "where", "t1", ".", "type", "=", "value", "intersect", "select", "t3", ".", "district_name", "from", "store", "as", "t1", "join", "store_district", "as", "t2", "on", "t1", ".", "store_id", "=", "t2", ".", "store_id", "join", "district", "as", "t3", "on", "t2", ".", "district_id", "=", "t3", ".", "district_id", "where", "t1", ".", "type", "=", "value" ], "question": "Find the names of districts where have both city mall and village store type stores.", "question_toks": [ "find", "name", "of", "district", "where", "have", "both", "city", "mall", "and", "village", "store", "type", "store", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "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", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Village Store\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"City Mall\"", null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "districts", "where", "have", "both", "city", "mall", "and", "village", "store", "type", "stores", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "district" ], [ "where" ], [ "have" ], [ "both" ], [ "city" ], [ "mall" ], [ "and" ], [ "village" ], [ "store" ], [ "type" ], [ "store" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "district", "NN" ], [ "where", "WRB" ], [ "have", "VB" ], [ "both", "DT" ], [ "city", "NN" ], [ "mall", "NN" ], [ "and", "CC" ], [ "village", "NN" ], [ "store", "NN" ], [ "type", "NN" ], [ "store", "NN" ], [ ".", "." ] ], "values": [ "Village Store", "City Mall" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(15) T(2) Filter(0) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(4) Filter(2) A(0) C(10) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(15) T(2) Filter(0) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(4) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "store_product", "query": "SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = \"City Mall\" INTERSECT SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = \"Village Store\"", "query_toks": [ "SELECT", "t3.District_name", "FROM", "store", "AS", "t1", "JOIN", "store_district", "AS", "t2", "ON", "t1.store_id", "=", "t2.store_id", "JOIN", "district", "AS", "t3", "ON", "t2.district_id", "=", "t3.district_id", "WHERE", "t1.Type", "=", "``", "City", "Mall", "''", "INTERSECT", "SELECT", "t3.District_name", "FROM", "store", "AS", "t1", "JOIN", "store_district", "AS", "t2", "ON", "t1.store_id", "=", "t2.store_id", "JOIN", "district", "AS", "t3", "ON", "t2.district_id", "=", "t3.district_id", "WHERE", "t1.Type", "=", "``", "Village", "Store", "''" ], "query_toks_no_value": [ "select", "t3", ".", "district_name", "from", "store", "as", "t1", "join", "store_district", "as", "t2", "on", "t1", ".", "store_id", "=", "t2", ".", "store_id", "join", "district", "as", "t3", "on", "t2", ".", "district_id", "=", "t3", ".", "district_id", "where", "t1", ".", "type", "=", "value", "intersect", "select", "t3", ".", "district_name", "from", "store", "as", "t1", "join", "store_district", "as", "t2", "on", "t1", ".", "store_id", "=", "t2", ".", "store_id", "join", "district", "as", "t3", "on", "t2", ".", "district_id", "=", "t3", ".", "district_id", "where", "t1", ".", "type", "=", "value" ], "question": "What are the names of the districts that have both mall and village store style shops?", "question_toks": [ "what", "are", "name", "of", "district", "that", "have", "both", "mall", "and", "village", "store", "style", "shop", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "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", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Village Store\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"City Mall\"", null ] ] }, "names": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area", "store id", "product id", "store id", "district id" ], "table_names": [ "product", "store", "district", "store product", "store district" ], "col_set": [ "*", "product id", "product", "dimensions", "dpi", "pages per minute color", "max page size", "interface", "store id", "store name", "type", "area size", "number of product category", "ranking", "district id", "district name", "headquartered city", "city population", "city area" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4 ], "keys": { "19": 19, "8": 8, "22": 14, "14": 14, "21": 21, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "districts", "that", "have", "both", "mall", "and", "village", "store", "style", "shops", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "district" ], [ "that" ], [ "have" ], [ "both" ], [ "mall" ], [ "and" ], [ "village" ], [ "store" ], [ "style" ], [ "shop" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "district", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "mall", "NN" ], [ "and", "CC" ], [ "village", "NN" ], [ "store", "NN" ], [ "style", "NN" ], [ "shop", "NN" ], [ "?", "." ] ], "values": [ "City Mall", "Village Store" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(15) T(2) Filter(0) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(4) Filter(2) A(0) C(10) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(15) T(2) Filter(0) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(4) Filter(2) A(0) C(10) T(1) V(1)" }, { "db_id": "soccer_2", "query": "SELECT sum(enr) FROM College", "query_toks": [ "SELECT", "sum", "(", "enr", ")", "FROM", "College" ], "query_toks_no_value": [ "select", "sum", "(", "enr", ")", "from", "college" ], "question": "What is the total enrollment number of all colleges?", "question_toks": [ "what", "is", "total", "enrollment", "number", "of", "all", "college", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "total", "enrollment", "number", "of", "all", "colleges", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "enrollment" ], [ "number" ], [ "of" ], [ "all" ], [ "college" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "enrollment", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "college", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(3) T(0)" }, { "db_id": "soccer_2", "query": "SELECT sum(enr) FROM College", "query_toks": [ "SELECT", "sum", "(", "enr", ")", "FROM", "College" ], "query_toks_no_value": [ "select", "sum", "(", "enr", ")", "from", "college" ], "question": "How many students are enrolled in college?", "question_toks": [ "how", "many", "student", "are", "enrolled", "in", "college", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "students", "are", "enrolled", "in", "college", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "enrolled" ], [ "in" ], [ "college" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "college", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(3) T(0)" }, { "db_id": "soccer_2", "query": "SELECT avg(enr) FROM College", "query_toks": [ "SELECT", "avg", "(", "enr", ")", "FROM", "College" ], "query_toks_no_value": [ "select", "avg", "(", "enr", ")", "from", "college" ], "question": "What is the average enrollment number?", "question_toks": [ "what", "is", "average", "enrollment", "number", "?" ], "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": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "average", "enrollment", "number", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "enrollment" ], [ "number" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "enrollment", "JJ" ], [ "number", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(3) T(0)" }, { "db_id": "soccer_2", "query": "SELECT avg(enr) FROM College", "query_toks": [ "SELECT", "avg", "(", "enr", ")", "FROM", "College" ], "query_toks_no_value": [ "select", "avg", "(", "enr", ")", "from", "college" ], "question": "How many students, on average, does each college have enrolled?", "question_toks": [ "how", "many", "student", ",", "on", "average", ",", "doe", "each", "college", "have", "enrolled", "?" ], "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": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "students", ",", "on", "average", ",", "does", "each", "college", "have", "enrolled", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "," ], [ "on" ], [ "average" ], [ "," ], [ "doe" ], [ "each" ], [ "college" ], [ "have" ], [ "enrolled" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ ",", "," ], [ "on", "IN" ], [ "average", "NN" ], [ ",", "," ], [ "doe", "JJ" ], [ "each", "DT" ], [ "college", "NN" ], [ "have", "VBP" ], [ "enrolled", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(3) T(0)" }, { "db_id": "soccer_2", "query": "SELECT count(*) FROM College", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "College" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "college" ], "question": "How many colleges in total?", "question_toks": [ "how", "many", "college", "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": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "colleges", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "college" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "college", "NN" ], [ "in", "IN" ], [ "total", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "soccer_2", "query": "SELECT count(*) FROM College", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "College" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "college" ], "question": "How many different colleges are there?", "question_toks": [ "how", "many", "different", "college", "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": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "different", "colleges", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "college" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "college", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "soccer_2", "query": "SELECT count(*) FROM Player WHERE HS > 1000", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Player", "WHERE", "HS", ">", "1000" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "player", "where", "hs", ">", "value" ], "question": "How many players have more than 1000 hours of training?", "question_toks": [ "how", "many", "player", "have", "more", "than", "1000", "hour", "of", "training", "?" ], "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, 7, false ], null ], 1000.0, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "players", "have", "more", "than", "1000", "hours", "of", "training", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "player" ], [ "have" ], [ "more" ], [ "than" ], [ "1000" ], [ "hour" ], [ "of" ], [ "training" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "player", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ "hour", "NN" ], [ "of", "IN" ], [ "training", "NN" ], [ "?", "." ] ], "values": [ "1000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(5) A(0) C(7) T(1) V(0)" }, { "db_id": "soccer_2", "query": "SELECT count(*) FROM Player WHERE HS > 1000", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Player", "WHERE", "HS", ">", "1000" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "player", "where", "hs", ">", "value" ], "question": "How many different players trained for more than 1000 hours?", "question_toks": [ "how", "many", "different", "player", "trained", "for", "more", "than", "1000", "hour", "?" ], "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, 7, false ], null ], 1000.0, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "different", "players", "trained", "for", "more", "than", "1000", "hours", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "player" ], [ "trained" ], [ "for" ], [ "more" ], [ "than" ], [ "1000" ], [ "hour" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "player", "NN" ], [ "trained", "VBD" ], [ "for", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ "hour", "NN" ], [ "?", "." ] ], "values": [ "1000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(5) A(0) C(7) T(1) V(0)" }, { "db_id": "soccer_2", "query": "SELECT count(*) FROM College WHERE enr > 15000", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "College", "WHERE", "enr", ">", "15000" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "college", "where", "enr", ">", "value" ], "question": "How many colleges has more than 15000 students?", "question_toks": [ "how", "many", "college", "ha", "more", "than", "15000", "student", "?" ], "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, 3, false ], null ], 15000.0, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "colleges", "has", "more", "than", "15000", "students", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "college" ], [ "ha" ], [ "more" ], [ "than" ], [ "15000" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "college", "NN" ], [ "ha", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "15000", "CD" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "15000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(5) A(0) C(3) T(0) V(0)" }, { "db_id": "soccer_2", "query": "SELECT count(*) FROM College WHERE enr > 15000", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "College", "WHERE", "enr", ">", "15000" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "college", "where", "enr", ">", "value" ], "question": "What is the number of colleges with a student population greater than 15000?", "question_toks": [ "what", "is", "number", "of", "college", "with", "a", "student", "population", "greater", "than", "15000", "?" ], "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, 3, false ], null ], 15000.0, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "colleges", "with", "a", "student", "population", "greater", "than", "15000", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "college" ], [ "with" ], [ "a" ], [ "student" ], [ "population" ], [ "greater" ], [ "than" ], [ "15000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "student", "NN" ], [ "population", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "15000", "CD" ], [ "?", "." ] ], "values": [ "15000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(5) A(0) C(3) T(0) V(0)" }, { "db_id": "soccer_2", "query": "SELECT avg(HS) FROM Player", "query_toks": [ "SELECT", "avg", "(", "HS", ")", "FROM", "Player" ], "query_toks_no_value": [ "select", "avg", "(", "hs", ")", "from", "player" ], "question": "What is the average training hours of all players?", "question_toks": [ "what", "is", "average", "training", "hour", "of", "all", "player", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "average", "training", "hours", "of", "all", "players", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "training", "hour" ], [ "of" ], [ "all" ], [ "player" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "training", "VBG" ], [ "hour", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "player", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(7) T(1)" }, { "db_id": "soccer_2", "query": "SELECT avg(HS) FROM Player", "query_toks": [ "SELECT", "avg", "(", "HS", ")", "FROM", "Player" ], "query_toks_no_value": [ "select", "avg", "(", "hs", ")", "from", "player" ], "question": "How many hours do the players train on average?", "question_toks": [ "how", "many", "hour", "do", "player", "train", "on", "average", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "hours", "do", "the", "players", "train", "on", "average", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "hour" ], [ "do" ], [ "player" ], [ "train" ], [ "on" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "hour", "NN" ], [ "do", "VBP" ], [ "player", "NN" ], [ "train", "NN" ], [ "on", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(7) T(1)" }, { "db_id": "soccer_2", "query": "SELECT pName , HS FROM Player WHERE HS < 1500", "query_toks": [ "SELECT", "pName", ",", "HS", "FROM", "Player", "WHERE", "HS", "<", "1500" ], "query_toks_no_value": [ "select", "pname", ",", "hs", "from", "player", "where", "hs", "<", "value" ], "question": "Find the name and training hours of players whose hours are below 1500.", "question_toks": [ "find", "name", "and", "training", "hour", "of", "player", "whose", "hour", "are", "below", "1500", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 7, false ], null ], 1500.0, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "name", "and", "training", "hours", "of", "players", "whose", "hours", "are", "below", "1500", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "training", "hour" ], [ "of" ], [ "player" ], [ "whose" ], [ "hour" ], [ "are" ], [ "below" ], [ "1500" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "training", "VBG" ], [ "hour", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "whose", "WP$" ], [ "hour", "NN" ], [ "are", "VBP" ], [ "below", "IN" ], [ "1500", "CD" ], [ ".", "." ] ], "values": [ "1500" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(7) T(1) Filter(4) A(0) C(7) T(1) V(0)" }, { "db_id": "soccer_2", "query": "SELECT pName , HS FROM Player WHERE HS < 1500", "query_toks": [ "SELECT", "pName", ",", "HS", "FROM", "Player", "WHERE", "HS", "<", "1500" ], "query_toks_no_value": [ "select", "pname", ",", "hs", "from", "player", "where", "hs", "<", "value" ], "question": "What are the names and number of hours spent training for each player who trains for less than 1500 hours?", "question_toks": [ "what", "are", "name", "and", "number", "of", "hour", "spent", "training", "for", "each", "player", "who", "train", "for", "le", "than", "1500", "hour", "?" ], "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, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 7, false ], null ], 1500.0, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "number", "of", "hours", "spent", "training", "for", "each", "player", "who", "trains", "for", "less", "than", "1500", "hours", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "hour" ], [ "spent" ], [ "training" ], [ "for" ], [ "each" ], [ "player" ], [ "who" ], [ "train" ], [ "for" ], [ "le" ], [ "than" ], [ "1500" ], [ "hour" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "hour", "NN" ], [ "spent", "NN" ], [ "training", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "player", "NN" ], [ "who", "WP" ], [ "train", "VBP" ], [ "for", "IN" ], [ "le", "JJR" ], [ "than", "IN" ], [ "1500", "CD" ], [ "hour", "NN" ], [ "?", "." ] ], "values": [ "1500" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(7) T(1) Filter(4) A(0) C(7) T(1) V(0)" }, { "db_id": "soccer_2", "query": "SELECT count(DISTINCT cName) FROM tryout", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "cName", ")", "FROM", "tryout" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "cname", ")", "from", "tryout" ], "question": "How many different colleges do attend the tryout test?", "question_toks": [ "how", "many", "different", "college", "do", "attend", "tryout", "test", "?" ], "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": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "different", "colleges", "do", "attend", "the", "tryout", "test", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "college" ], [ "do" ], [ "attend" ], [ "tryout" ], [ "test" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "college", "NN" ], [ "do", "VBP" ], [ "attend", "VB" ], [ "tryout", "IN" ], [ "test", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(1) T(2)" }, { "db_id": "soccer_2", "query": "SELECT count(DISTINCT cName) FROM tryout", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "cName", ")", "FROM", "tryout" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "cname", ")", "from", "tryout" ], "question": "How many different colleges were represented at tryouts?", "question_toks": [ "how", "many", "different", "college", "were", "represented", "at", "tryout", "?" ], "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": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "different", "colleges", "were", "represented", "at", "tryouts", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "college" ], [ "were" ], [ "represented" ], [ "at" ], [ "tryout" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "college", "NN" ], [ "were", "VBD" ], [ "represented", "VBN" ], [ "at", "IN" ], [ "tryout", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(1) T(2)" }, { "db_id": "soccer_2", "query": "SELECT count(DISTINCT pPos) FROM tryout", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "pPos", ")", "FROM", "tryout" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "ppos", ")", "from", "tryout" ], "question": "What are the unique types of player positions in the tryout?", "question_toks": [ "what", "are", "unique", "type", "of", "player", "position", "in", "tryout", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "unique", "types", "of", "player", "positions", "in", "the", "tryout", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "unique" ], [ "type" ], [ "of" ], [ "player", "position" ], [ "in" ], [ "tryout" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "unique", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "position", "NN" ], [ "in", "IN" ], [ "tryout", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(8) T(2)" }, { "db_id": "soccer_2", "query": "SELECT count(DISTINCT pPos) FROM tryout", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "pPos", ")", "FROM", "tryout" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "ppos", ")", "from", "tryout" ], "question": "What are the different types of player positions?", "question_toks": [ "what", "are", "different", "type", "of", "player", "position", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "different", "types", "of", "player", "positions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "type" ], [ "of" ], [ "player", "position" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "position", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(8) T(2)" }, { "db_id": "soccer_2", "query": "SELECT count(*) FROM tryout WHERE decision = 'yes'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "tryout", "WHERE", "decision", "=", "'yes", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "tryout", "where", "decision", "=", "value" ], "question": "How many students got accepted after the tryout?", "question_toks": [ "how", "many", "student", "got", "accepted", "after", "tryout", "?" ], "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, 11, false ], null ], "\"yes\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "students", "got", "accepted", "after", "the", "tryout", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "got" ], [ "accepted" ], [ "after" ], [ "tryout" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "got", "VBD" ], [ "accepted", "VBN" ], [ "after", "IN" ], [ "tryout", "NN" ], [ "?", "." ] ], "values": [ "yes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT count(*) FROM tryout WHERE decision = 'yes'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "tryout", "WHERE", "decision", "=", "'yes", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "tryout", "where", "decision", "=", "value" ], "question": "How many students received a yes from tryouts?", "question_toks": [ "how", "many", "student", "received", "a", "yes", "from", "tryout", "?" ], "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, 11, false ], null ], "\"yes\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "students", "received", "a", "yes", "from", "tryouts", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "received" ], [ "a" ], [ "yes" ], [ "from" ], [ "tryout" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "received", "VBD" ], [ "a", "DT" ], [ "yes", "NN" ], [ "from", "IN" ], [ "tryout", "NN" ], [ "?", "." ] ], "values": [ "yes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT count(*) FROM tryout WHERE pPos = 'goalie'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "tryout", "WHERE", "pPos", "=", "'goalie", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "tryout", "where", "ppos", "=", "value" ], "question": "How many students whose are playing the role of goalie?", "question_toks": [ "how", "many", "student", "whose", "are", "playing", "role", "of", "goalie", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"goalie\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "students", "whose", "are", "playing", "the", "role", "of", "goalie", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "whose" ], [ "are" ], [ "playing" ], [ "role" ], [ "of" ], [ "goalie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "are", "VBP" ], [ "playing", "VBG" ], [ "role", "NN" ], [ "of", "IN" ], [ "goalie", "NN" ], [ "?", "." ] ], "values": [ "goalie" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT count(*) FROM tryout WHERE pPos = 'goalie'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "tryout", "WHERE", "pPos", "=", "'goalie", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "tryout", "where", "ppos", "=", "value" ], "question": "What is the number of students playing as a goalie?", "question_toks": [ "what", "is", "number", "of", "student", "playing", "a", "a", "goalie", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"goalie\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "students", "playing", "as", "a", "goalie", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "student" ], [ "playing" ], [ "a" ], [ "a" ], [ "goalie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "playing", "VBG" ], [ "a", "DT" ], [ "a", "DT" ], [ "goalie", "NN" ], [ "?", "." ] ], "values": [ "goalie" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT avg(HS) , max(HS) , min(HS) FROM Player", "query_toks": [ "SELECT", "avg", "(", "HS", ")", ",", "max", "(", "HS", ")", ",", "min", "(", "HS", ")", "FROM", "Player" ], "query_toks_no_value": [ "select", "avg", "(", "hs", ")", ",", "max", "(", "hs", ")", ",", "min", "(", "hs", ")", "from", "player" ], "question": "Find the max, average and min training hours of all players.", "question_toks": [ "find", "max", ",", "average", "and", "min", "training", "hour", "of", "all", "player", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 7, false ], null ] ], [ 1, [ 0, [ 0, 7, false ], null ] ], [ 2, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "max", ",", "average", "and", "min", "training", "hours", "of", "all", "players", "." ], "question_arg": [ [ "find" ], [ "max" ], [ "," ], [ "average" ], [ "and" ], [ "min" ], [ "training", "hour" ], [ "of" ], [ "all" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "max", "NN" ], [ ",", "," ], [ "average", "JJ" ], [ "and", "CC" ], [ "min", "JJ" ], [ "training", "VBG" ], [ "hour", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "player", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(5) C(7) T(1) A(1) C(7) T(1) A(2) C(7) T(1)" }, { "db_id": "soccer_2", "query": "SELECT avg(HS) , max(HS) , min(HS) FROM Player", "query_toks": [ "SELECT", "avg", "(", "HS", ")", ",", "max", "(", "HS", ")", ",", "min", "(", "HS", ")", "FROM", "Player" ], "query_toks_no_value": [ "select", "avg", "(", "hs", ")", ",", "max", "(", "hs", ")", ",", "min", "(", "hs", ")", "from", "player" ], "question": "What is the average, maximum, and minimum for the number of hours spent training?", "question_toks": [ "what", "is", "average", ",", "maximum", ",", "and", "minimum", "for", "number", "of", "hour", "spent", "training", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 7, false ], null ] ], [ 1, [ 0, [ 0, 7, false ], null ] ], [ 2, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "average", ",", "maximum", ",", "and", "minimum", "for", "the", "number", "of", "hours", "spent", "training", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "," ], [ "maximum" ], [ "," ], [ "and" ], [ "minimum" ], [ "for" ], [ "number" ], [ "of" ], [ "hour" ], [ "spent" ], [ "training" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ ",", "," ], [ "maximum", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "minimum", "NN" ], [ "for", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "hour", "NN" ], [ "spent", "VBN" ], [ "training", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(5) C(7) T(1) A(1) C(7) T(1) A(2) C(7) T(1)" }, { "db_id": "soccer_2", "query": "SELECT avg(enr) FROM College WHERE state = 'FL'", "query_toks": [ "SELECT", "avg", "(", "enr", ")", "FROM", "College", "WHERE", "state", "=", "'FL", "'" ], "query_toks_no_value": [ "select", "avg", "(", "enr", ")", "from", "college", "where", "state", "=", "value" ], "question": "What is average enrollment of colleges in the state FL?", "question_toks": [ "what", "is", "average", "enrollment", "of", "college", "in", "state", "fl", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"FL\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "average", "enrollment", "of", "colleges", "in", "the", "state", "FL", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "enrollment" ], [ "of" ], [ "college" ], [ "in" ], [ "state" ], [ "fl" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "enrollment", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "in", "IN" ], [ "state", "NN" ], [ "fl", "NN" ], [ "?", "." ] ], "values": [ "FL" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(3) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "soccer_2", "query": "SELECT avg(enr) FROM College WHERE state = 'FL'", "query_toks": [ "SELECT", "avg", "(", "enr", ")", "FROM", "College", "WHERE", "state", "=", "'FL", "'" ], "query_toks_no_value": [ "select", "avg", "(", "enr", ")", "from", "college", "where", "state", "=", "value" ], "question": "What is average number of students enrolled in Florida colleges?", "question_toks": [ "what", "is", "average", "number", "of", "student", "enrolled", "in", "florida", "college", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"FL\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "average", "number", "of", "students", "enrolled", "in", "Florida", "colleges", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "student" ], [ "enrolled" ], [ "in" ], [ "florida" ], [ "college" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "state" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "florida", "NN" ], [ "college", "NN" ], [ "?", "." ] ], "values": [ "FL" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(3) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "soccer_2", "query": "SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500", "query_toks": [ "SELECT", "pName", "FROM", "Player", "WHERE", "HS", "BETWEEN", "500", "AND", "1500" ], "query_toks_no_value": [ "select", "pname", "from", "player", "where", "hs", "between", "value", "and", "value" ], "question": "What are the names of players whose training hours is between 500 and 1500?", "question_toks": [ "what", "are", "name", "of", "player", "whose", "training", "hour", "is", "between", "500", "and", "1500", "?" ], "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, 1, [ 0, [ 0, 7, false ], null ], 500.0, 1500.0 ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "players", "whose", "training", "hours", "is", "between", "500", "and", "1500", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "player" ], [ "whose" ], [ "training", "hour" ], [ "is" ], [ "between" ], [ "500" ], [ "and" ], [ "1500" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "whose", "WP$" ], [ "training", "NN" ], [ "hour", "NN" ], [ "is", "VBZ" ], [ "between", "IN" ], [ "500", "CD" ], [ "and", "CC" ], [ "1500", "CD" ], [ "?", "." ] ], "values": [ "1500", "500" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(8) A(0) C(7) T(1) V(1) V(0)" }, { "db_id": "soccer_2", "query": "SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500", "query_toks": [ "SELECT", "pName", "FROM", "Player", "WHERE", "HS", "BETWEEN", "500", "AND", "1500" ], "query_toks_no_value": [ "select", "pname", "from", "player", "where", "hs", "between", "value", "and", "value" ], "question": "What are the names of players who train between 500 and 1500 hours?", "question_toks": [ "what", "are", "name", "of", "player", "who", "train", "between", "500", "and", "1500", "hour", "?" ], "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, 1, [ 0, [ 0, 7, false ], null ], 500.0, 1500.0 ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "players", "who", "train", "between", "500", "and", "1500", "hours", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "player" ], [ "who" ], [ "train" ], [ "between" ], [ "500" ], [ "and" ], [ "1500" ], [ "hour" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "who", "WP" ], [ "train", "VBP" ], [ "between", "IN" ], [ "500", "CD" ], [ "and", "CC" ], [ "1500", "CD" ], [ "hour", "NN" ], [ "?", "." ] ], "values": [ "1500", "500" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(8) A(0) C(7) T(1) V(1) V(0)" }, { "db_id": "soccer_2", "query": "SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%'", "query_toks": [ "SELECT", "DISTINCT", "pName", "FROM", "Player", "WHERE", "pName", "LIKE", "'", "%", "a", "%", "'" ], "query_toks_no_value": [ "select", "distinct", "pname", "from", "player", "where", "pname", "like", "value" ], "question": "Find the players whose names contain letter 'a'.", "question_toks": [ "find", "player", "whose", "name", "contain", "letter", "'a", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 5, false ], null ], "\"%a%\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "players", "whose", "names", "contain", "letter", "'a", "'", "." ], "question_arg": [ [ "find" ], [ "player" ], [ "whose" ], [ "name" ], [ "contain" ], [ "letter" ], [ "'a" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "player", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contain", "VBP" ], [ "letter", "NN" ], [ "'a", "NNP" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "a" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(5) T(1) Filter(9) A(0) C(5) T(1) V(0)" }, { "db_id": "soccer_2", "query": "SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%'", "query_toks": [ "SELECT", "DISTINCT", "pName", "FROM", "Player", "WHERE", "pName", "LIKE", "'", "%", "a", "%", "'" ], "query_toks_no_value": [ "select", "distinct", "pname", "from", "player", "where", "pname", "like", "value" ], "question": "Who are the players that have names containing the letter a?", "question_toks": [ "who", "are", "player", "that", "have", "name", "containing", "letter", "a", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 5, false ], null ], "\"%a%\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Who", "are", "the", "players", "that", "have", "names", "containing", "the", "letter", "a", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "player" ], [ "that" ], [ "have" ], [ "name" ], [ "containing" ], [ "letter" ], [ "a" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "player", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "name", "VBN" ], [ "containing", "JJ" ], [ "letter", "NN" ], [ "a", "DT" ], [ "?", "." ] ], "values": [ "a" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(5) T(1) Filter(9) A(0) C(5) T(1) V(0)" }, { "db_id": "soccer_2", "query": "SELECT cName , enr FROM College WHERE enr > 10000 AND state = \"LA\"", "query_toks": [ "SELECT", "cName", ",", "enr", "FROM", "College", "WHERE", "enr", ">", "10000", "AND", "state", "=", "``", "LA", "''" ], "query_toks_no_value": [ "select", "cname", ",", "enr", "from", "college", "where", "enr", ">", "value", "and", "state", "=", "value" ], "question": "Find the name, enrollment of the colleges whose size is bigger than 10000 and location is in state LA.", "question_toks": [ "find", "name", ",", "enrollment", "of", "college", "whose", "size", "is", "bigger", "than", "10000", "and", "location", "is", "in", "state", "la", "." ], "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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 10000.0, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"LA\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "name", ",", "enrollment", "of", "the", "colleges", "whose", "size", "is", "bigger", "than", "10000", "and", "location", "is", "in", "state", "LA", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "," ], [ "enrollment" ], [ "of" ], [ "college" ], [ "whose" ], [ "size" ], [ "is" ], [ "bigger" ], [ "than" ], [ "10000" ], [ "and" ], [ "location" ], [ "is" ], [ "in" ], [ "state" ], [ "la" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "enrollment", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "whose", "WP$" ], [ "size", "NN" ], [ "is", "VBZ" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "10000", "CD" ], [ "and", "CC" ], [ "location", "NN" ], [ "is", "VBZ" ], [ "in", "IN" ], [ "state", "NN" ], [ "la", "NN" ], [ ".", "." ] ], "values": [ "LA", "10000" ], "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(5) A(0) C(3) T(0) V(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "soccer_2", "query": "SELECT cName , enr FROM College WHERE enr > 10000 AND state = \"LA\"", "query_toks": [ "SELECT", "cName", ",", "enr", "FROM", "College", "WHERE", "enr", ">", "10000", "AND", "state", "=", "``", "LA", "''" ], "query_toks_no_value": [ "select", "cname", ",", "enr", "from", "college", "where", "enr", ">", "value", "and", "state", "=", "value" ], "question": "What are the names and enrollment numbers for colleges that have more than 10000 enrolled and are located in Louisiana?", "question_toks": [ "what", "are", "name", "and", "enrollment", "number", "for", "college", "that", "have", "more", "than", "10000", "enrolled", "and", "are", "located", "in", "louisiana", "?" ], "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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 10000.0, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"LA\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "enrollment", "numbers", "for", "colleges", "that", "have", "more", "than", "10000", "enrolled", "and", "are", "located", "in", "Louisiana", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "enrollment" ], [ "number" ], [ "for" ], [ "college" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "10000" ], [ "enrolled" ], [ "and" ], [ "are" ], [ "located" ], [ "in" ], [ "louisiana" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "state" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "enrollment", "JJ" ], [ "number", "NN" ], [ "for", "IN" ], [ "college", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "10000", "CD" ], [ "enrolled", "JJ" ], [ "and", "CC" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "in", "IN" ], [ "louisiana", "NN" ], [ "?", "." ] ], "values": [ "LA", "10000" ], "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(5) A(0) C(3) T(0) V(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "soccer_2", "query": "SELECT * FROM College ORDER BY enr", "query_toks": [ "SELECT", "*", "FROM", "College", "ORDER", "BY", "enr" ], "query_toks_no_value": [ "select", "*", "from", "college", "order", "by", "enr" ], "question": "List all information about college sorted by enrollment number in the ascending order.", "question_toks": [ "list", "all", "information", "about", "college", "sorted", "by", "enrollment", "number", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "List", "all", "information", "about", "college", "sorted", "by", "enrollment", "number", "in", "the", "ascending", "order", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "information" ], [ "about" ], [ "college" ], [ "sorted" ], [ "by" ], [ "enrollment" ], [ "number" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "college", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "enrollment", "JJ" ], [ "number", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(0) T(0) Order(1) A(0) C(3) T(0)" }, { "db_id": "soccer_2", "query": "SELECT * FROM College ORDER BY enr", "query_toks": [ "SELECT", "*", "FROM", "College", "ORDER", "BY", "enr" ], "query_toks_no_value": [ "select", "*", "from", "college", "order", "by", "enr" ], "question": "What information do you have on colleges sorted by increasing enrollment numbers?", "question_toks": [ "what", "information", "do", "you", "have", "on", "college", "sorted", "by", "increasing", "enrollment", "number", "?" ], "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, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "information", "do", "you", "have", "on", "colleges", "sorted", "by", "increasing", "enrollment", "numbers", "?" ], "question_arg": [ [ "what" ], [ "information" ], [ "do" ], [ "you" ], [ "have" ], [ "on" ], [ "college" ], [ "sorted" ], [ "by" ], [ "increasing" ], [ "enrollment" ], [ "number" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "information", "NN" ], [ "do", "VBP" ], [ "you", "PRP" ], [ "have", "VB" ], [ "on", "IN" ], [ "college", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "increasing", "VBG" ], [ "enrollment", "NN" ], [ "number", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(0) T(0) Order(1) A(0) C(3) T(0)" }, { "db_id": "soccer_2", "query": "SELECT cName FROM College WHERE enr > 18000 ORDER BY cName", "query_toks": [ "SELECT", "cName", "FROM", "College", "WHERE", "enr", ">", "18000", "ORDER", "BY", "cName" ], "query_toks_no_value": [ "select", "cname", "from", "college", "where", "enr", ">", "value", "order", "by", "cname" ], "question": "List the name of the colleges whose enrollment is greater 18000 sorted by the college's name.", "question_toks": [ "list", "name", "of", "college", "whose", "enrollment", "is", "greater", "18000", "sorted", "by", "college", "'s", "name", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 18000.0, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "List", "the", "name", "of", "the", "colleges", "whose", "enrollment", "is", "greater", "18000", "sorted", "by", "the", "college", "'s", "name", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "college" ], [ "whose" ], [ "enrollment" ], [ "is" ], [ "greater" ], [ "18000" ], [ "sorted" ], [ "by" ], [ "college" ], [ "'s" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "whose", "WP$" ], [ "enrollment", "NN" ], [ "is", "VBZ" ], [ "greater", "JJR" ], [ "18000", "CD" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "college", "NN" ], [ "'s", "POS" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "18000" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(1) T(0) Filter(5) A(0) C(3) T(0) V(0) Order(1) A(0) C(1) T(0)" }, { "db_id": "soccer_2", "query": "SELECT cName FROM College WHERE enr > 18000 ORDER BY cName", "query_toks": [ "SELECT", "cName", "FROM", "College", "WHERE", "enr", ">", "18000", "ORDER", "BY", "cName" ], "query_toks_no_value": [ "select", "cname", "from", "college", "where", "enr", ">", "value", "order", "by", "cname" ], "question": "What is the name of every college in alphabetical order that has more than 18000 students enrolled?", "question_toks": [ "what", "is", "name", "of", "every", "college", "in", "alphabetical", "order", "that", "ha", "more", "than", "18000", "student", "enrolled", "?" ], "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 18000.0, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "every", "college", "in", "alphabetical", "order", "that", "has", "more", "than", "18000", "students", "enrolled", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "every" ], [ "college" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "that" ], [ "ha" ], [ "more" ], [ "than" ], [ "18000" ], [ "student" ], [ "enrolled" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "college", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "18000", "CD" ], [ "student", "NN" ], [ "enrolled", "VBN" ], [ "?", "." ] ], "values": [ "18000" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(1) T(0) Filter(5) A(0) C(3) T(0) V(0) Order(1) A(0) C(1) T(0)" }, { "db_id": "soccer_2", "query": "SELECT pName FROM Player WHERE yCard = 'yes' ORDER BY HS DESC", "query_toks": [ "SELECT", "pName", "FROM", "Player", "WHERE", "yCard", "=", "'yes", "'", "ORDER", "BY", "HS", "DESC" ], "query_toks_no_value": [ "select", "pname", "from", "player", "where", "ycard", "=", "value", "order", "by", "hs", "desc" ], "question": "Find the name of players whose card is yes in the descending order of training hours.", "question_toks": [ "find", "name", "of", "player", "whose", "card", "is", "yes", "in", "descending", "order", "of", "training", "hour", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 7, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"yes\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "name", "of", "players", "whose", "card", "is", "yes", "in", "the", "descending", "order", "of", "training", "hours", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "player" ], [ "whose" ], [ "card" ], [ "is" ], [ "yes" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "training", "hour" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "whose", "WP$" ], [ "card", "NN" ], [ "is", "VBZ" ], [ "yes", "RB" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "training", "VBG" ], [ "hour", "NN" ], [ ".", "." ] ], "values": [ "yes" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(5) T(1) Filter(2) A(0) C(6) T(1) V(0) Order(0) A(0) C(7) T(1)" }, { "db_id": "soccer_2", "query": "SELECT pName FROM Player WHERE yCard = 'yes' ORDER BY HS DESC", "query_toks": [ "SELECT", "pName", "FROM", "Player", "WHERE", "yCard", "=", "'yes", "'", "ORDER", "BY", "HS", "DESC" ], "query_toks_no_value": [ "select", "pname", "from", "player", "where", "ycard", "=", "value", "order", "by", "hs", "desc" ], "question": "What are the name of the players who received a card in descending order of the hours of training?", "question_toks": [ "what", "are", "name", "of", "player", "who", "received", "a", "card", "in", "descending", "order", "of", "hour", "of", "training", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 7, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"yes\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "name", "of", "the", "players", "who", "received", "a", "card", "in", "descending", "order", "of", "the", "hours", "of", "training", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "player" ], [ "who" ], [ "received" ], [ "a" ], [ "card" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "hour" ], [ "of" ], [ "training" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "who", "WP" ], [ "received", "VBD" ], [ "a", "DT" ], [ "card", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "hour", "NN" ], [ "of", "IN" ], [ "training", "NN" ], [ "?", "." ] ], "values": [ "yes" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(5) T(1) Filter(2) A(0) C(6) T(1) V(0) Order(0) A(0) C(7) T(1)" }, { "db_id": "soccer_2", "query": "SELECT DISTINCT cName FROM tryout ORDER BY cName", "query_toks": [ "SELECT", "DISTINCT", "cName", "FROM", "tryout", "ORDER", "BY", "cName" ], "query_toks_no_value": [ "select", "distinct", "cname", "from", "tryout", "order", "by", "cname" ], "question": "Find the name of different colleges involved in the tryout in alphabetical order.", "question_toks": [ "find", "name", "of", "different", "college", "involved", "in", "tryout", "in", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "name", "of", "different", "colleges", "involved", "in", "the", "tryout", "in", "alphabetical", "order", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "different" ], [ "college" ], [ "involved" ], [ "in" ], [ "tryout" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "college", "NN" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "tryout", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(1) T(2) Order(1) A(0) C(1) T(2)" }, { "db_id": "soccer_2", "query": "SELECT DISTINCT cName FROM tryout ORDER BY cName", "query_toks": [ "SELECT", "DISTINCT", "cName", "FROM", "tryout", "ORDER", "BY", "cName" ], "query_toks_no_value": [ "select", "distinct", "cname", "from", "tryout", "order", "by", "cname" ], "question": "What are the different names of the colleges involved in the tryout in alphabetical order?", "question_toks": [ "what", "are", "different", "name", "of", "college", "involved", "in", "tryout", "in", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "different", "names", "of", "the", "colleges", "involved", "in", "the", "tryout", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "name" ], [ "of" ], [ "college" ], [ "involved" ], [ "in" ], [ "tryout" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "tryout", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(1) T(2) Order(1) A(0) C(1) T(2)" }, { "db_id": "soccer_2", "query": "SELECT pPos FROM tryout GROUP BY pPos ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "pPos", "FROM", "tryout", "GROUP", "BY", "pPos", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "ppos", "from", "tryout", "group", "by", "ppos", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which position is most popular among players in the tryout?", "question_toks": [ "which", "position", "is", "most", "popular", "among", "player", "in", "tryout", "?" ], "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": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Which", "position", "is", "most", "popular", "among", "players", "in", "the", "tryout", "?" ], "question_arg": [ [ "which" ], [ "position" ], [ "is" ], [ "most" ], [ "popular" ], [ "among" ], [ "player" ], [ "in" ], [ "tryout" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "position", "NN" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "popular", "JJ" ], [ "among", "IN" ], [ "player", "NN" ], [ "in", "IN" ], [ "tryout", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "soccer_2", "query": "SELECT pPos FROM tryout GROUP BY pPos ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "pPos", "FROM", "tryout", "GROUP", "BY", "pPos", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "ppos", "from", "tryout", "group", "by", "ppos", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What was the most popular position at tryouts?", "question_toks": [ "what", "wa", "most", "popular", "position", "at", "tryout", "?" ], "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": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "was", "the", "most", "popular", "position", "at", "tryouts", "?" ], "question_arg": [ [ "what" ], [ "wa" ], [ "most" ], [ "popular" ], [ "position" ], [ "at" ], [ "tryout" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "wa", "VBZ" ], [ "most", "RBS" ], [ "popular", "JJ" ], [ "position", "NN" ], [ "at", "IN" ], [ "tryout", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "soccer_2", "query": "SELECT count(*) , cName FROM tryout GROUP BY cName ORDER BY count(*) DESC", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "cName", "FROM", "tryout", "GROUP", "BY", "cName", "ORDER", "BY", "count", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "cname", "from", "tryout", "group", "by", "cname", "order", "by", "count", "(", "*", ")", "desc" ], "question": "Find the number of students who participate in the tryout for each college ordered by descending count.", "question_toks": [ "find", "number", "of", "student", "who", "participate", "in", "tryout", "for", "each", "college", "ordered", "by", "descending", "count", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "number", "of", "students", "who", "participate", "in", "the", "tryout", "for", "each", "college", "ordered", "by", "descending", "count", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "student" ], [ "who" ], [ "participate" ], [ "in" ], [ "tryout" ], [ "for" ], [ "each" ], [ "college" ], [ "ordered" ], [ "by" ], [ "descending" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "participate", "VBP" ], [ "in", "IN" ], [ "tryout", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "college", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "descending", "VBG" ], [ "count", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(3) C(0) T(2) A(0) C(1) T(2) Order(0) A(3) C(0) T(2)" }, { "db_id": "soccer_2", "query": "SELECT count(*) , cName FROM tryout GROUP BY cName ORDER BY count(*) DESC", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "cName", "FROM", "tryout", "GROUP", "BY", "cName", "ORDER", "BY", "count", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "cname", "from", "tryout", "group", "by", "cname", "order", "by", "count", "(", "*", ")", "desc" ], "question": "How many students participated in tryouts for each college by descennding count?", "question_toks": [ "how", "many", "student", "participated", "in", "tryout", "for", "each", "college", "by", "descennding", "count", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "students", "participated", "in", "tryouts", "for", "each", "college", "by", "descennding", "count", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "participated" ], [ "in" ], [ "tryout" ], [ "for" ], [ "each" ], [ "college" ], [ "by" ], [ "descennding" ], [ "count" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "participated", "VBD" ], [ "in", "IN" ], [ "tryout", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "college", "NN" ], [ "by", "IN" ], [ "descennding", "VBG" ], [ "count", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(3) C(0) T(2) A(0) C(1) T(2) Order(0) A(3) C(0) T(2)" }, { "db_id": "soccer_2", "query": "SELECT min(T2.HS) , T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos", "query_toks": [ "SELECT", "min", "(", "T2.HS", ")", ",", "T1.pPos", "FROM", "tryout", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "GROUP", "BY", "T1.pPos" ], "query_toks_no_value": [ "select", "min", "(", "t2", ".", "hs", ")", ",", "t1", ".", "ppos", "from", "tryout", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "group", "by", "t1", ".", "ppos" ], "question": "What is minimum hours of the students playing in different position?", "question_toks": [ "what", "is", "minimum", "hour", "of", "student", "playing", "in", "different", "position", "?" ], "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, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "minimum", "hours", "of", "the", "students", "playing", "in", "different", "position", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "minimum" ], [ "hour" ], [ "of" ], [ "student" ], [ "playing" ], [ "in" ], [ "different" ], [ "position" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "minimum", "JJ" ], [ "hour", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "playing", "NN" ], [ "in", "IN" ], [ "different", "JJ" ], [ "position", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(2) C(7) T(1) A(0) C(8) T(2)" }, { "db_id": "soccer_2", "query": "SELECT min(T2.HS) , T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos", "query_toks": [ "SELECT", "min", "(", "T2.HS", ")", ",", "T1.pPos", "FROM", "tryout", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "GROUP", "BY", "T1.pPos" ], "query_toks_no_value": [ "select", "min", "(", "t2", ".", "hs", ")", ",", "t1", ".", "ppos", "from", "tryout", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "group", "by", "t1", ".", "ppos" ], "question": "For each position, what is the minimum time students spent practicing?", "question_toks": [ "for", "each", "position", ",", "what", "is", "minimum", "time", "student", "spent", "practicing", "?" ], "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, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "For", "each", "position", ",", "what", "is", "the", "minimum", "time", "students", "spent", "practicing", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "position" ], [ "," ], [ "what" ], [ "is" ], [ "minimum" ], [ "time" ], [ "student" ], [ "spent" ], [ "practicing" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "position", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "minimum", "JJ" ], [ "time", "NN" ], [ "student", "NN" ], [ "spent", "VBN" ], [ "practicing", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(2) C(7) T(1) A(0) C(8) T(2)" }, { "db_id": "soccer_2", "query": "SELECT cName FROM college ORDER BY enr DESC LIMIT 3", "query_toks": [ "SELECT", "cName", "FROM", "college", "ORDER", "BY", "enr", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "cname", "from", "college", "order", "by", "enr", "desc", "limit", "value" ], "question": "What are the names of schools with the top 3 largest size?", "question_toks": [ "what", "are", "name", "of", "school", "with", "top", "3", "largest", "size", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "schools", "with", "the", "top", "3", "largest", "size", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "school" ], [ "with" ], [ "top" ], [ "3" ], [ "largest" ], [ "size" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "with", "IN" ], [ "top", "JJ" ], [ "3", "CD" ], [ "largest", "JJS" ], [ "size", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(1) T(0) Sup(0) A(0) C(3) T(0)" }, { "db_id": "soccer_2", "query": "SELECT cName FROM college ORDER BY enr DESC LIMIT 3", "query_toks": [ "SELECT", "cName", "FROM", "college", "ORDER", "BY", "enr", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "cname", "from", "college", "order", "by", "enr", "desc", "limit", "value" ], "question": "What are the names of the schools with the top 3 largest class sizes?", "question_toks": [ "what", "are", "name", "of", "school", "with", "top", "3", "largest", "class", "size", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "schools", "with", "the", "top", "3", "largest", "class", "sizes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "school" ], [ "with" ], [ "top" ], [ "3" ], [ "largest" ], [ "class" ], [ "size" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "with", "IN" ], [ "top", "JJ" ], [ "3", "CD" ], [ "largest", "JJS" ], [ "class", "NN" ], [ "size", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(1) T(0) Sup(0) A(0) C(3) T(0)" }, { "db_id": "soccer_2", "query": "SELECT cName , state , min(enr) FROM college GROUP BY state", "query_toks": [ "SELECT", "cName", ",", "state", ",", "min", "(", "enr", ")", "FROM", "college", "GROUP", "BY", "state" ], "query_toks_no_value": [ "select", "cname", ",", "state", ",", "min", "(", "enr", ")", "from", "college", "group", "by", "state" ], "question": "What is the name of school that has the smallest enrollment in each state?", "question_toks": [ "what", "is", "name", "of", "school", "that", "ha", "smallest", "enrollment", "in", "each", "state", "?" ], "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, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 2, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "school", "that", "has", "the", "smallest", "enrollment", "in", "each", "state", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "school" ], [ "that" ], [ "ha" ], [ "smallest" ], [ "enrollment" ], [ "in" ], [ "each" ], [ "state" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "smallest", "JJS" ], [ "enrollment", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "state", "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(2) C(3) T(0)" }, { "db_id": "soccer_2", "query": "SELECT cName , state , min(enr) FROM college GROUP BY state", "query_toks": [ "SELECT", "cName", ",", "state", ",", "min", "(", "enr", ")", "FROM", "college", "GROUP", "BY", "state" ], "query_toks_no_value": [ "select", "cname", ",", "state", ",", "min", "(", "enr", ")", "from", "college", "group", "by", "state" ], "question": "What is the name of the school with smallest enrollment size per state?", "question_toks": [ "what", "is", "name", "of", "school", "with", "smallest", "enrollment", "size", "per", "state", "?" ], "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, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 2, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "school", "with", "smallest", "enrollment", "size", "per", "state", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "school" ], [ "with" ], [ "smallest" ], [ "enrollment" ], [ "size" ], [ "per" ], [ "state" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "with", "IN" ], [ "smallest", "JJ" ], [ "enrollment", "NN" ], [ "size", "NN" ], [ "per", "IN" ], [ "state", "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(2) C(3) T(0)" }, { "db_id": "soccer_2", "query": "SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName", "query_toks": [ "SELECT", "DISTINCT", "state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName" ], "query_toks_no_value": [ "select", "distinct", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname" ], "question": "Find the states where have some college students in tryout.", "question_toks": [ "find", "state", "where", "have", "some", "college", "student", "in", "tryout", "." ], "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": [ 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 ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "states", "where", "have", "some", "college", "students", "in", "tryout", "." ], "question_arg": [ [ "find" ], [ "state" ], [ "where" ], [ "have" ], [ "some" ], [ "college" ], [ "student" ], [ "in" ], [ "tryout" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "state", "NN" ], [ "where", "WRB" ], [ "have", "VBP" ], [ "some", "DT" ], [ "college", "NN" ], [ "student", "NN" ], [ "in", "IN" ], [ "tryout", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "soccer_2", "query": "SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName", "query_toks": [ "SELECT", "DISTINCT", "state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName" ], "query_toks_no_value": [ "select", "distinct", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname" ], "question": "What are the different states that have students trying out?", "question_toks": [ "what", "are", "different", "state", "that", "have", "student", "trying", "out", "?" ], "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": [ 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 ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "different", "states", "that", "have", "students", "trying", "out", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "state" ], [ "that" ], [ "have" ], [ "student" ], [ "trying" ], [ "out" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "state", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "student", "VBN" ], [ "trying", "VBG" ], [ "out", "RP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "soccer_2", "query": "SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'", "query_toks": [ "SELECT", "DISTINCT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.decision", "=", "'yes", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "decision", "=", "value" ], "question": "Find the states where have some college students in tryout and their decisions are yes.", "question_toks": [ "find", "state", "where", "have", "some", "college", "student", "in", "tryout", "and", "their", "decision", "are", "yes", "." ], "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": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"yes\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "states", "where", "have", "some", "college", "students", "in", "tryout", "and", "their", "decisions", "are", "yes", "." ], "question_arg": [ [ "find" ], [ "state" ], [ "where" ], [ "have" ], [ "some" ], [ "college" ], [ "student" ], [ "in" ], [ "tryout" ], [ "and" ], [ "their" ], [ "decision" ], [ "are" ], [ "yes" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "state", "NN" ], [ "where", "WRB" ], [ "have", "VBP" ], [ "some", "DT" ], [ "college", "NN" ], [ "student", "NN" ], [ "in", "IN" ], [ "tryout", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "decision", "NN" ], [ "are", "VBP" ], [ "yes", "UH" ], [ ".", "." ] ], "values": [ "yes" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'", "query_toks": [ "SELECT", "DISTINCT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.decision", "=", "'yes", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "decision", "=", "value" ], "question": "What are the different states that had students successfully try out?", "question_toks": [ "what", "are", "different", "state", "that", "had", "student", "successfully", "try", "out", "?" ], "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": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"yes\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "different", "states", "that", "had", "students", "successfully", "try", "out", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "state" ], [ "that" ], [ "had" ], [ "student" ], [ "successfully" ], [ "try" ], [ "out" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "state", "NN" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "student", "NN" ], [ "successfully", "RB" ], [ "try", "VB" ], [ "out", "RP" ], [ "?", "." ] ], "values": [ "yes" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT T1.pName , T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'", "query_toks": [ "SELECT", "T1.pName", ",", "T2.cName", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.decision", "=", "'yes", "'" ], "query_toks_no_value": [ "select", "t1", ".", "pname", ",", "t2", ".", "cname", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value" ], "question": "Find the name and college of students whose decisions are yes in the tryout.", "question_toks": [ "find", "name", "and", "college", "of", "student", "whose", "decision", "are", "yes", "in", "tryout", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"yes\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "name", "and", "college", "of", "students", "whose", "decisions", "are", "yes", "in", "the", "tryout", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "college" ], [ "of" ], [ "student" ], [ "whose" ], [ "decision" ], [ "are" ], [ "yes" ], [ "in" ], [ "tryout" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "college", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "decision", "NN" ], [ "are", "VBP" ], [ "yes", "VBN" ], [ "in", "IN" ], [ "tryout", "NN" ], [ ".", "." ] ], "values": [ "yes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(1) T(2) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT T1.pName , T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'", "query_toks": [ "SELECT", "T1.pName", ",", "T2.cName", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.decision", "=", "'yes", "'" ], "query_toks_no_value": [ "select", "t1", ".", "pname", ",", "t2", ".", "cname", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value" ], "question": "What are the names of all the players who received a yes during tryouts, and also what are the names of their colleges?", "question_toks": [ "what", "are", "name", "of", "all", "player", "who", "received", "a", "yes", "during", "tryout", ",", "and", "also", "what", "are", "name", "of", "their", "college", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"yes\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "players", "who", "received", "a", "yes", "during", "tryouts", ",", "and", "also", "what", "are", "the", "names", "of", "their", "colleges", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "player" ], [ "who" ], [ "received" ], [ "a" ], [ "yes" ], [ "during" ], [ "tryout" ], [ "," ], [ "and" ], [ "also" ], [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "their" ], [ "college" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "player", "NN" ], [ "who", "WP" ], [ "received", "VBD" ], [ "a", "DT" ], [ "yes", "NN" ], [ "during", "IN" ], [ "tryout", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "also", "RB" ], [ "what", "WP" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "college", "NN" ], [ "?", "." ] ], "values": [ "yes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(1) T(2) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID ORDER BY T1.pName", "query_toks": [ "SELECT", "T1.pName", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "ORDER", "BY", "T1.pName" ], "query_toks_no_value": [ "select", "t1", ".", "pname", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "order", "by", "t1", ".", "pname" ], "question": "Find the name of all students who were in the tryout sorted in alphabetic order.", "question_toks": [ "find", "name", "of", "all", "student", "who", "were", "in", "tryout", "sorted", "in", "alphabetic", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 5, 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, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "name", "of", "all", "students", "who", "were", "in", "the", "tryout", "sorted", "in", "alphabetic", "order", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "were" ], [ "in" ], [ "tryout" ], [ "sorted" ], [ "in" ], [ "alphabetic" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "were", "VBD" ], [ "in", "IN" ], [ "tryout", "NN" ], [ "sorted", "VBN" ], [ "in", "IN" ], [ "alphabetic", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(5) T(1) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(2) Order(1) A(0) C(5) T(1)" }, { "db_id": "soccer_2", "query": "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID ORDER BY T1.pName", "query_toks": [ "SELECT", "T1.pName", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "ORDER", "BY", "T1.pName" ], "query_toks_no_value": [ "select", "t1", ".", "pname", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "order", "by", "t1", ".", "pname" ], "question": "What are the names of all students who tried out in alphabetical order?", "question_toks": [ "what", "are", "name", "of", "all", "student", "who", "tried", "out", "in", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 5, 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, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "students", "who", "tried", "out", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "tried" ], [ "out" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "tried", "VBD" ], [ "out", "RP" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(5) T(1) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(2) Order(1) A(0) C(5) T(1)" }, { "db_id": "soccer_2", "query": "SELECT T1.pName , T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'", "query_toks": [ "SELECT", "T1.pName", ",", "T1.HS", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.decision", "=", "'yes", "'" ], "query_toks_no_value": [ "select", "t1", ".", "pname", ",", "t1", ".", "hs", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value" ], "question": "Find the name and hours of the students whose tryout decision is yes.", "question_toks": [ "find", "name", "and", "hour", "of", "student", "whose", "tryout", "decision", "is", "yes", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"yes\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "name", "and", "hours", "of", "the", "students", "whose", "tryout", "decision", "is", "yes", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "hour" ], [ "of" ], [ "student" ], [ "whose" ], [ "tryout" ], [ "decision" ], [ "is" ], [ "yes" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "hour", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "tryout", "NN" ], [ "decision", "NN" ], [ "is", "VBZ" ], [ "yes", "UH" ], [ ".", "." ] ], "values": [ "yes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(7) T(1) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT T1.pName , T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'", "query_toks": [ "SELECT", "T1.pName", ",", "T1.HS", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.decision", "=", "'yes", "'" ], "query_toks_no_value": [ "select", "t1", ".", "pname", ",", "t1", ".", "hs", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value" ], "question": "What are the names and hours spent practicing of every student who received a yes at tryouts?", "question_toks": [ "what", "are", "name", "and", "hour", "spent", "practicing", "of", "every", "student", "who", "received", "a", "yes", "at", "tryout", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"yes\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "hours", "spent", "practicing", "of", "every", "student", "who", "received", "a", "yes", "at", "tryouts", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "hour" ], [ "spent" ], [ "practicing" ], [ "of" ], [ "every" ], [ "student" ], [ "who" ], [ "received" ], [ "a" ], [ "yes" ], [ "at" ], [ "tryout" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "hour", "NN" ], [ "spent", "NN" ], [ "practicing", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "received", "VBD" ], [ "a", "DT" ], [ "yes", "NN" ], [ "at", "IN" ], [ "tryout", "NN" ], [ "?", "." ] ], "values": [ "yes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(7) T(1) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'striker'", "query_toks": [ "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'striker", "'" ], "query_toks_no_value": [ "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value" ], "question": "Find the states of the colleges that have students in the tryout who played in striker position.", "question_toks": [ "find", "state", "of", "college", "that", "have", "student", "in", "tryout", "who", "played", "in", "striker", "position", "." ], "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, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"striker\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "states", "of", "the", "colleges", "that", "have", "students", "in", "the", "tryout", "who", "played", "in", "striker", "position", "." ], "question_arg": [ [ "find" ], [ "state" ], [ "of" ], [ "college" ], [ "that" ], [ "have" ], [ "student" ], [ "in" ], [ "tryout" ], [ "who" ], [ "played" ], [ "in" ], [ "striker" ], [ "position" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "state", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "student", "VBN" ], [ "in", "IN" ], [ "tryout", "NN" ], [ "who", "WP" ], [ "played", "VBD" ], [ "in", "IN" ], [ "striker", "NN" ], [ "position", "NN" ], [ ".", "." ] ], "values": [ "striker" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'striker'", "query_toks": [ "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'striker", "'" ], "query_toks_no_value": [ "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value" ], "question": "What are the states of the colleges where students who tried out for the striker position attend?", "question_toks": [ "what", "are", "state", "of", "college", "where", "student", "who", "tried", "out", "for", "striker", "position", "attend", "?" ], "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, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"striker\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "states", "of", "the", "colleges", "where", "students", "who", "tried", "out", "for", "the", "striker", "position", "attend", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "state" ], [ "of" ], [ "college" ], [ "where" ], [ "student" ], [ "who" ], [ "tried" ], [ "out" ], [ "for" ], [ "striker" ], [ "position" ], [ "attend" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "state", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "where", "WRB" ], [ "student", "NN" ], [ "who", "WP" ], [ "tried", "VBD" ], [ "out", "RP" ], [ "for", "IN" ], [ "striker", "JJR" ], [ "position", "NN" ], [ "attend", "NN" ], [ "?", "." ] ], "values": [ "striker" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' AND T2.pPos = 'striker'", "query_toks": [ "SELECT", "T1.pName", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.decision", "=", "'yes", "'", "AND", "T2.pPos", "=", "'striker", "'" ], "query_toks_no_value": [ "select", "t1", ".", "pname", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value", "and", "t2", ".", "ppos", "=", "value" ], "question": "Find the names of the students who are in the position of striker and got a yes tryout decision.", "question_toks": [ "find", "name", "of", "student", "who", "are", "in", "position", "of", "striker", "and", "got", "a", "yes", "tryout", "decision", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"yes\"", null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"striker\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "students", "who", "are", "in", "the", "position", "of", "striker", "and", "got", "a", "yes", "tryout", "decision", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "in" ], [ "position" ], [ "of" ], [ "striker" ], [ "and" ], [ "got" ], [ "a" ], [ "yes" ], [ "tryout" ], [ "decision" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "in", "IN" ], [ "position", "NN" ], [ "of", "IN" ], [ "striker", "NN" ], [ "and", "CC" ], [ "got", "VBD" ], [ "a", "DT" ], [ "yes", "NN" ], [ "tryout", "IN" ], [ "decision", "NN" ], [ ".", "." ] ], "values": [ "striker", "yes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(2) A(0) C(9) T(2) V(1) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' AND T2.pPos = 'striker'", "query_toks": [ "SELECT", "T1.pName", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.decision", "=", "'yes", "'", "AND", "T2.pPos", "=", "'striker", "'" ], "query_toks_no_value": [ "select", "t1", ".", "pname", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value", "and", "t2", ".", "ppos", "=", "value" ], "question": "What are the names of all students who successfully tried out for the position of striker?", "question_toks": [ "what", "are", "name", "of", "all", "student", "who", "successfully", "tried", "out", "for", "position", "of", "striker", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"yes\"", null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"striker\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "students", "who", "successfully", "tried", "out", "for", "the", "position", "of", "striker", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "successfully" ], [ "tried" ], [ "out" ], [ "for" ], [ "position" ], [ "of" ], [ "striker" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "successfully", "RB" ], [ "tried", "VBD" ], [ "out", "RP" ], [ "for", "IN" ], [ "position", "NN" ], [ "of", "IN" ], [ "striker", "NN" ], [ "?", "." ] ], "values": [ "striker", "yes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(2) A(0) C(9) T(2) V(1) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName JOIN player AS T3 ON T2.pID = T3.pID WHERE T3.pName = 'Charles'", "query_toks": [ "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "JOIN", "player", "AS", "T3", "ON", "T2.pID", "=", "T3.pID", "WHERE", "T3.pName", "=", "'Charles", "'" ], "query_toks_no_value": [ "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "join", "player", "as", "t3", "on", "t2", ".", "pid", "=", "t3", ".", "pid", "where", "t3", ".", "pname", "=", "value" ], "question": "Find the state of the college which player Charles is attending.", "question_toks": [ "find", "state", "of", "college", "which", "player", "charles", "is", "attending", "." ], "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, [ [ 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, 2, [ 0, [ 0, 5, false ], null ], "\"Charles\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "state", "of", "the", "college", "which", "player", "Charles", "is", "attending", "." ], "question_arg": [ [ "find" ], [ "state" ], [ "of" ], [ "college" ], [ "which" ], [ "player" ], [ "charles" ], [ "is" ], [ "attending" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "state", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "which", "WDT" ], [ "player", "NN" ], [ "charles", "NNS" ], [ "is", "VBZ" ], [ "attending", "VBG" ], [ ".", "." ] ], "values": [ "Charles" ], "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(2) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "soccer_2", "query": "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName JOIN player AS T3 ON T2.pID = T3.pID WHERE T3.pName = 'Charles'", "query_toks": [ "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "JOIN", "player", "AS", "T3", "ON", "T2.pID", "=", "T3.pID", "WHERE", "T3.pName", "=", "'Charles", "'" ], "query_toks_no_value": [ "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "join", "player", "as", "t3", "on", "t2", ".", "pid", "=", "t3", ".", "pid", "where", "t3", ".", "pname", "=", "value" ], "question": "In which state is the college that Charles attends?", "question_toks": [ "in", "which", "state", "is", "college", "that", "charles", "attends", "?" ], "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, [ [ 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, 2, [ 0, [ 0, 5, false ], null ], "\"Charles\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "In", "which", "state", "is", "the", "college", "that", "Charles", "attends", "?" ], "question_arg": [ [ "in" ], [ "which" ], [ "state" ], [ "is" ], [ "college" ], [ "that" ], [ "charles" ], [ "attends" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "which", "WDT" ], [ "state", "NN" ], [ "is", "VBZ" ], [ "college", "NN" ], [ "that", "IN" ], [ "charles", "VBZ" ], [ "attends", "NNS" ], [ "?", "." ] ], "values": [ "Charles" ], "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(2) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "soccer_2", "query": "SELECT avg(T1.HS) , max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'", "query_toks": [ "SELECT", "avg", "(", "T1.HS", ")", ",", "max", "(", "T1.HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.decision", "=", "'yes", "'" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "hs", ")", ",", "max", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value" ], "question": "Find the average and maximum hours for the students whose tryout decision is yes.", "question_toks": [ "find", "average", "and", "maximum", "hour", "for", "student", "whose", "tryout", "decision", "is", "yes", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 7, false ], null ] ], [ 1, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"yes\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "average", "and", "maximum", "hours", "for", "the", "students", "whose", "tryout", "decision", "is", "yes", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "and" ], [ "maximum" ], [ "hour" ], [ "for" ], [ "student" ], [ "whose" ], [ "tryout" ], [ "decision" ], [ "is" ], [ "yes" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "hour", "NN" ], [ "for", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "tryout", "NN" ], [ "decision", "NN" ], [ "is", "VBZ" ], [ "yes", "UH" ], [ ".", "." ] ], "values": [ "yes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(7) T(1) A(1) C(7) T(1) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT avg(T1.HS) , max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'", "query_toks": [ "SELECT", "avg", "(", "T1.HS", ")", ",", "max", "(", "T1.HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.decision", "=", "'yes", "'" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "hs", ")", ",", "max", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value" ], "question": "What is the average and maximum number of hours students who made the team practiced?", "question_toks": [ "what", "is", "average", "and", "maximum", "number", "of", "hour", "student", "who", "made", "team", "practiced", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 7, false ], null ] ], [ 1, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"yes\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "average", "and", "maximum", "number", "of", "hours", "students", "who", "made", "the", "team", "practiced", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "and" ], [ "maximum" ], [ "number" ], [ "of" ], [ "hour" ], [ "student" ], [ "who" ], [ "made" ], [ "team" ], [ "practiced" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "hour", "NN" ], [ "student", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "team", "NN" ], [ "practiced", "VBN" ], [ "?", "." ] ], "values": [ "yes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(7) T(1) A(1) C(7) T(1) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT avg(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'no'", "query_toks": [ "SELECT", "avg", "(", "T1.HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.decision", "=", "'no", "'" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value" ], "question": "Find the average hours for the students whose tryout decision is no.", "question_toks": [ "find", "average", "hour", "for", "student", "whose", "tryout", "decision", "is", "no", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"no\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "average", "hours", "for", "the", "students", "whose", "tryout", "decision", "is", "no", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "hour" ], [ "for" ], [ "student" ], [ "whose" ], [ "tryout" ], [ "decision" ], [ "is" ], [ "no" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "hour", "NN" ], [ "for", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "tryout", "NN" ], [ "decision", "NN" ], [ "is", "VBZ" ], [ "no", "DT" ], [ ".", "." ] ], "values": [ "no" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(7) T(1) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT avg(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'no'", "query_toks": [ "SELECT", "avg", "(", "T1.HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.decision", "=", "'no", "'" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value" ], "question": "What is the average number of hours spent practicing for students who got rejected?", "question_toks": [ "what", "is", "average", "number", "of", "hour", "spent", "practicing", "for", "student", "who", "got", "rejected", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"no\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "hours", "spent", "practicing", "for", "students", "who", "got", "rejected", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "hour" ], [ "spent" ], [ "practicing" ], [ "for" ], [ "student" ], [ "who" ], [ "got" ], [ "rejected" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "hour", "NN" ], [ "spent", "NN" ], [ "practicing", "VBG" ], [ "for", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "got", "VBD" ], [ "rejected", "VBN" ], [ "?", "." ] ], "values": [ "no" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(7) T(1) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT max(T1.HS) , pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T1.HS > 1000 GROUP BY T2.pPos", "query_toks": [ "SELECT", "max", "(", "T1.HS", ")", ",", "pPos", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T1.HS", ">", "1000", "GROUP", "BY", "T2.pPos" ], "query_toks_no_value": [ "select", "max", "(", "t1", ".", "hs", ")", ",", "ppos", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t1", ".", "hs", ">", "value", "group", "by", "t2", ".", "ppos" ], "question": "What is the maximum training hours for the students whose training hours is greater than 1000 in different positions?", "question_toks": [ "what", "is", "maximum", "training", "hour", "for", "student", "whose", "training", "hour", "is", "greater", "than", "1000", "in", "different", "position", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 7, false ], null ], 1000.0, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "maximum", "training", "hours", "for", "the", "students", "whose", "training", "hours", "is", "greater", "than", "1000", "in", "different", "positions", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "training", "hour" ], [ "for" ], [ "student" ], [ "whose" ], [ "training", "hour" ], [ "is" ], [ "greater" ], [ "than" ], [ "1000" ], [ "in" ], [ "different" ], [ "position" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "training", "VBG" ], [ "hour", "NN" ], [ "for", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "training", "VBG" ], [ "hour", "NN" ], [ "is", "VBZ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ "in", "IN" ], [ "different", "JJ" ], [ "position", "NN" ], [ "?", "." ] ], "values": [ "1000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(7) T(1) A(0) C(8) T(2) Filter(5) A(0) C(7) T(1) V(0)" }, { "db_id": "soccer_2", "query": "SELECT max(T1.HS) , pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T1.HS > 1000 GROUP BY T2.pPos", "query_toks": [ "SELECT", "max", "(", "T1.HS", ")", ",", "pPos", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T1.HS", ">", "1000", "GROUP", "BY", "T2.pPos" ], "query_toks_no_value": [ "select", "max", "(", "t1", ".", "hs", ")", ",", "ppos", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t1", ".", "hs", ">", "value", "group", "by", "t2", ".", "ppos" ], "question": "For each position, what is the maximum number of hours for students who spent more than 1000 hours training?", "question_toks": [ "for", "each", "position", ",", "what", "is", "maximum", "number", "of", "hour", "for", "student", "who", "spent", "more", "than", "1000", "hour", "training", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 7, false ], null ], 1000.0, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "For", "each", "position", ",", "what", "is", "the", "maximum", "number", "of", "hours", "for", "students", "who", "spent", "more", "than", "1000", "hours", "training", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "position" ], [ "," ], [ "what" ], [ "is" ], [ "maximum" ], [ "number" ], [ "of" ], [ "hour" ], [ "for" ], [ "student" ], [ "who" ], [ "spent" ], [ "more" ], [ "than" ], [ "1000" ], [ "training", "hour" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "position", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "hour", "NN" ], [ "for", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "spent", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ "hour", "NN" ], [ "training", "NN" ], [ "?", "." ] ], "values": [ "1000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(7) T(1) A(0) C(8) T(2) Filter(5) A(0) C(7) T(1) V(0)" }, { "db_id": "soccer_2", "query": "SELECT T1.cName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T2.pName LIKE 'D%'", "query_toks": [ "SELECT", "T1.cName", "FROM", "tryout", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.pName", "LIKE", "'D", "%", "'" ], "query_toks_no_value": [ "select", "t1", ".", "cname", "from", "tryout", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "pname", "like", "value" ], "question": "Which colleges do the tryout players whose name starts with letter D go to?", "question_toks": [ "which", "college", "do", "tryout", "player", "whose", "name", "start", "with", "letter", "d", "go", "to", "?" ], "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": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 5, false ], null ], "\"D%\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Which", "colleges", "do", "the", "tryout", "players", "whose", "name", "starts", "with", "letter", "D", "go", "to", "?" ], "question_arg": [ [ "which" ], [ "college" ], [ "do" ], [ "tryout" ], [ "player" ], [ "whose" ], [ "name" ], [ "start" ], [ "with" ], [ "letter" ], [ "d" ], [ "go" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "college", "NN" ], [ "do", "VBP" ], [ "tryout", "IN" ], [ "player", "NN" ], [ "whose", "WP$" ], [ "name", "JJ" ], [ "start", "NN" ], [ "with", "IN" ], [ "letter", "NN" ], [ "d", "NN" ], [ "go", "VBP" ], [ "to", "TO" ], [ "?", "." ] ], "values": [ "D" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(9) A(0) C(5) T(1) V(0)" }, { "db_id": "soccer_2", "query": "SELECT T1.cName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T2.pName LIKE 'D%'", "query_toks": [ "SELECT", "T1.cName", "FROM", "tryout", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.pName", "LIKE", "'D", "%", "'" ], "query_toks_no_value": [ "select", "t1", ".", "cname", "from", "tryout", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "pname", "like", "value" ], "question": "Which colleges does each player with a name that starts with the letter D who tried out go to?", "question_toks": [ "which", "college", "doe", "each", "player", "with", "a", "name", "that", "start", "with", "letter", "d", "who", "tried", "out", "go", "to", "?" ], "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": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 5, false ], null ], "\"D%\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Which", "colleges", "does", "each", "player", "with", "a", "name", "that", "starts", "with", "the", "letter", "D", "who", "tried", "out", "go", "to", "?" ], "question_arg": [ [ "which" ], [ "college" ], [ "doe" ], [ "each" ], [ "player" ], [ "with" ], [ "a" ], [ "name" ], [ "that" ], [ "start" ], [ "with" ], [ "letter" ], [ "d" ], [ "who" ], [ "tried" ], [ "out" ], [ "go" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "college", "NN" ], [ "doe", "NN" ], [ "each", "DT" ], [ "player", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "name", "NN" ], [ "that", "WDT" ], [ "start", "VBP" ], [ "with", "IN" ], [ "letter", "NN" ], [ "d", "NN" ], [ "who", "WP" ], [ "tried", "VBD" ], [ "out", "RP" ], [ "go", "VB" ], [ "to", "TO" ], [ "?", "." ] ], "values": [ "D", "a" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(9) A(0) C(5) T(1) V(0)" }, { "db_id": "soccer_2", "query": "SELECT cName FROM tryout WHERE decision = 'yes' AND pPos = 'goalie'", "query_toks": [ "SELECT", "cName", "FROM", "tryout", "WHERE", "decision", "=", "'yes", "'", "AND", "pPos", "=", "'goalie", "'" ], "query_toks_no_value": [ "select", "cname", "from", "tryout", "where", "decision", "=", "value", "and", "ppos", "=", "value" ], "question": "Which college has any student who is a goalie and succeeded in the tryout.", "question_toks": [ "which", "college", "ha", "any", "student", "who", "is", "a", "goalie", "and", "succeeded", "in", "tryout", "." ], "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, 11, false ], null ], "\"yes\"", null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"goalie\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Which", "college", "has", "any", "student", "who", "is", "a", "goalie", "and", "succeeded", "in", "the", "tryout", "." ], "question_arg": [ [ "which" ], [ "college" ], [ "ha" ], [ "any" ], [ "student" ], [ "who" ], [ "is" ], [ "a" ], [ "goalie" ], [ "and" ], [ "succeeded" ], [ "in" ], [ "tryout" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "college", "NN" ], [ "ha", "NN" ], [ "any", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "a", "DT" ], [ "goalie", "NN" ], [ "and", "CC" ], [ "succeeded", "VBN" ], [ "in", "IN" ], [ "tryout", "NN" ], [ ".", "." ] ], "values": [ "yes", "goalie" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(0) Filter(2) A(0) C(9) T(2) V(0) Filter(2) A(0) C(8) T(2) V(1)" }, { "db_id": "soccer_2", "query": "SELECT cName FROM tryout WHERE decision = 'yes' AND pPos = 'goalie'", "query_toks": [ "SELECT", "cName", "FROM", "tryout", "WHERE", "decision", "=", "'yes", "'", "AND", "pPos", "=", "'goalie", "'" ], "query_toks_no_value": [ "select", "cname", "from", "tryout", "where", "decision", "=", "value", "and", "ppos", "=", "value" ], "question": "What college has a student who successfully made the team in the role of a goalie?", "question_toks": [ "what", "college", "ha", "a", "student", "who", "successfully", "made", "team", "in", "role", "of", "a", "goalie", "?" ], "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, 11, false ], null ], "\"yes\"", null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"goalie\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "college", "has", "a", "student", "who", "successfully", "made", "the", "team", "in", "the", "role", "of", "a", "goalie", "?" ], "question_arg": [ [ "what" ], [ "college" ], [ "ha" ], [ "a" ], [ "student" ], [ "who" ], [ "successfully" ], [ "made" ], [ "team" ], [ "in" ], [ "role" ], [ "of" ], [ "a" ], [ "goalie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "college", "NN" ], [ "ha", "VBD" ], [ "a", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "successfully", "RB" ], [ "made", "VBD" ], [ "team", "NN" ], [ "in", "IN" ], [ "role", "NN" ], [ "of", "IN" ], [ "a", "DT" ], [ "goalie", "NN" ], [ "?", "." ] ], "values": [ "goalie", "yes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(0) Filter(2) A(0) C(9) T(2) V(1) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT T2.pName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T1.cName = (SELECT cName FROM college ORDER BY enr DESC LIMIT 1)", "query_toks": [ "SELECT", "T2.pName", "FROM", "tryout", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T1.cName", "=", "(", "SELECT", "cName", "FROM", "college", "ORDER", "BY", "enr", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "t2", ".", "pname", "from", "tryout", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t1", ".", "cname", "=", "(", "select", "cname", "from", "college", "order", "by", "enr", "desc", "limit", "value", ")" ], "question": "Find the name of the tryout players who are from the college with largest size.", "question_toks": [ "find", "name", "of", "tryout", "player", "who", "are", "from", "college", "with", "largest", "size", "." ], "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": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "tryout", "players", "who", "are", "from", "the", "college", "with", "largest", "size", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "tryout" ], [ "player" ], [ "who" ], [ "are" ], [ "from" ], [ "college" ], [ "with" ], [ "largest" ], [ "size" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "tryout", "NN" ], [ "player", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "from", "IN" ], [ "college", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "size", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(11) A(0) C(1) T(2) Root(2) Sel(0) N(0) A(0) C(1) T(0) Sup(0) A(0) C(3) T(0)" }, { "db_id": "soccer_2", "query": "SELECT T2.pName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T1.cName = (SELECT cName FROM college ORDER BY enr DESC LIMIT 1)", "query_toks": [ "SELECT", "T2.pName", "FROM", "tryout", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T1.cName", "=", "(", "SELECT", "cName", "FROM", "college", "ORDER", "BY", "enr", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "t2", ".", "pname", "from", "tryout", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t1", ".", "cname", "=", "(", "select", "cname", "from", "college", "order", "by", "enr", "desc", "limit", "value", ")" ], "question": "What are the names of all tryout participants who are from the largest college?", "question_toks": [ "what", "are", "name", "of", "all", "tryout", "participant", "who", "are", "from", "largest", "college", "?" ], "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": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "tryout", "participants", "who", "are", "from", "the", "largest", "college", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "tryout" ], [ "participant" ], [ "who" ], [ "are" ], [ "from" ], [ "largest" ], [ "college" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "tryout", "NN" ], [ "participant", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "from", "IN" ], [ "largest", "JJS" ], [ "college", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(11) A(0) C(1) T(2) Root(2) Sel(0) N(0) A(0) C(1) T(0) Sup(0) A(0) C(3) T(0)" }, { "db_id": "soccer_2", "query": "SELECT DISTINCT T1.state , T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'", "query_toks": [ "SELECT", "DISTINCT", "T1.state", ",", "T1.enr", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.decision", "=", "'yes", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "state", ",", "t1", ".", "enr", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "decision", "=", "value" ], "question": "What is the state and enrollment of the colleges where have any students who got accepted in the tryout decision.", "question_toks": [ "what", "is", "state", "and", "enrollment", "of", "college", "where", "have", "any", "student", "who", "got", "accepted", "in", "tryout", "decision", "." ], "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": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"yes\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "state", "and", "enrollment", "of", "the", "colleges", "where", "have", "any", "students", "who", "got", "accepted", "in", "the", "tryout", "decision", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "state" ], [ "and" ], [ "enrollment" ], [ "of" ], [ "college" ], [ "where" ], [ "have" ], [ "any" ], [ "student" ], [ "who" ], [ "got" ], [ "accepted" ], [ "in" ], [ "tryout" ], [ "decision" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "state", "NN" ], [ "and", "CC" ], [ "enrollment", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "where", "WRB" ], [ "have", "VBP" ], [ "any", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "got", "VBD" ], [ "accepted", "VBN" ], [ "in", "IN" ], [ "tryout", "NN" ], [ "decision", "NN" ], [ ".", "." ] ], "values": [ "yes" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT DISTINCT T1.state , T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'", "query_toks": [ "SELECT", "DISTINCT", "T1.state", ",", "T1.enr", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.decision", "=", "'yes", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "state", ",", "t1", ".", "enr", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "decision", "=", "value" ], "question": "How many students are enrolled in colleges that have student accepted during tryouts, and in which states are those colleges?", "question_toks": [ "how", "many", "student", "are", "enrolled", "in", "college", "that", "have", "student", "accepted", "during", "tryout", ",", "and", "in", "which", "state", "are", "those", "college", "?" ], "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": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"yes\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "students", "are", "enrolled", "in", "colleges", "that", "have", "student", "accepted", "during", "tryouts", ",", "and", "in", "which", "states", "are", "those", "colleges", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "enrolled" ], [ "in" ], [ "college" ], [ "that" ], [ "have" ], [ "student" ], [ "accepted" ], [ "during" ], [ "tryout" ], [ "," ], [ "and" ], [ "in" ], [ "which" ], [ "state" ], [ "are" ], [ "those" ], [ "college" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "college", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "student", "NN" ], [ "accepted", "VBN" ], [ "during", "IN" ], [ "tryout", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "in", "IN" ], [ "which", "WDT" ], [ "state", "NN" ], [ "are", "VBP" ], [ "those", "DT" ], [ "college", "NN" ], [ "?", "." ] ], "values": [ "yes" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT cName FROM College WHERE enr < 13000 AND state = \"AZ\" UNION SELECT cName FROM College WHERE enr > 15000 AND state = \"LA\"", "query_toks": [ "SELECT", "cName", "FROM", "College", "WHERE", "enr", "<", "13000", "AND", "state", "=", "``", "AZ", "''", "UNION", "SELECT", "cName", "FROM", "College", "WHERE", "enr", ">", "15000", "AND", "state", "=", "``", "LA", "''" ], "query_toks_no_value": [ "select", "cname", "from", "college", "where", "enr", "<", "value", "and", "state", "=", "value", "union", "select", "cname", "from", "college", "where", "enr", ">", "value", "and", "state", "=", "value" ], "question": "Find the names of either colleges in LA with greater than 15000 size or in state AZ with less than 13000 enrollment.", "question_toks": [ "find", "name", "of", "either", "college", "in", "la", "with", "greater", "than", "15000", "size", "or", "in", "state", "az", "with", "le", "than", "13000", "enrollment", "." ], "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": { "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, 3, false ], null ], 15000.0, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"LA\"", null ] ] }, "where": [ [ false, 4, [ 0, [ 0, 3, false ], null ], 13000.0, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"AZ\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "names", "of", "either", "colleges", "in", "LA", "with", "greater", "than", "15000", "size", "or", "in", "state", "AZ", "with", "less", "than", "13000", "enrollment", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "either" ], [ "college" ], [ "in" ], [ "la" ], [ "with" ], [ "greater" ], [ "than" ], [ "15000" ], [ "size" ], [ "or" ], [ "in" ], [ "state" ], [ "az" ], [ "with" ], [ "le" ], [ "than" ], [ "13000" ], [ "enrollment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "either", "DT" ], [ "college", "NN" ], [ "in", "IN" ], [ "la", "NN" ], [ "with", "IN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "15000", "CD" ], [ "size", "NN" ], [ "or", "CC" ], [ "in", "IN" ], [ "state", "NN" ], [ "az", "NN" ], [ "with", "IN" ], [ "le", "JJR" ], [ "than", "IN" ], [ "13000", "CD" ], [ "enrollment", "NN" ], [ ".", "." ] ], "values": [ "15000", "13000", "AZ", "LA" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(4) A(0) C(3) T(0) V(1) Filter(2) A(0) C(2) T(0) V(2) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(5) A(0) C(3) T(0) V(0) Filter(2) A(0) C(2) T(0) V(3)" }, { "db_id": "soccer_2", "query": "SELECT cName FROM College WHERE enr < 13000 AND state = \"AZ\" UNION SELECT cName FROM College WHERE enr > 15000 AND state = \"LA\"", "query_toks": [ "SELECT", "cName", "FROM", "College", "WHERE", "enr", "<", "13000", "AND", "state", "=", "``", "AZ", "''", "UNION", "SELECT", "cName", "FROM", "College", "WHERE", "enr", ">", "15000", "AND", "state", "=", "``", "LA", "''" ], "query_toks_no_value": [ "select", "cname", "from", "college", "where", "enr", "<", "value", "and", "state", "=", "value", "union", "select", "cname", "from", "college", "where", "enr", ">", "value", "and", "state", "=", "value" ], "question": "What are the names of colleges in LA that have more than 15,000 students and of colleges in AZ with less than 13,000 students?", "question_toks": [ "what", "are", "name", "of", "college", "in", "la", "that", "have", "more", "than", "15,000", "student", "and", "of", "college", "in", "az", "with", "le", "than", "13,000", "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 ] ] ] ], "union": { "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, 3, false ], null ], 15000.0, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"LA\"", null ] ] }, "where": [ [ false, 4, [ 0, [ 0, 3, false ], null ], 13000.0, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"AZ\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "colleges", "in", "LA", "that", "have", "more", "than", "15,000", "students", "and", "of", "colleges", "in", "AZ", "with", "less", "than", "13,000", "students", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "college" ], [ "in" ], [ "la" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "15,000" ], [ "student" ], [ "and" ], [ "of" ], [ "college" ], [ "in" ], [ "az" ], [ "with" ], [ "le" ], [ "than" ], [ "13,000" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "in", "IN" ], [ "la", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "15,000", "CD" ], [ "student", "NN" ], [ "and", "CC" ], [ "of", "IN" ], [ "college", "NN" ], [ "in", "IN" ], [ "az", "NN" ], [ "with", "IN" ], [ "le", "JJR" ], [ "than", "IN" ], [ "13,000", "CD" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "15000", "13000", "AZ", "LA" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(4) A(0) C(3) T(0) V(1) Filter(2) A(0) C(2) T(0) V(2) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(5) A(0) C(3) T(0) V(0) Filter(2) A(0) C(2) T(0) V(3)" }, { "db_id": "soccer_2", "query": "SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid'", "query_toks": [ "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'goalie", "'", "INTERSECT", "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'mid", "'" ], "query_toks_no_value": [ "select", "cname", "from", "tryout", "where", "ppos", "=", "value", "intersect", "select", "cname", "from", "tryout", "where", "ppos", "=", "value" ], "question": "Find the names of schools that have some students playing in goalie and mid positions.", "question_toks": [ "find", "name", "of", "school", "that", "have", "some", "student", "playing", "in", "goalie", "and", "mid", "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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"mid\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"goalie\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "names", "of", "schools", "that", "have", "some", "students", "playing", "in", "goalie", "and", "mid", "positions", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "school" ], [ "that" ], [ "have" ], [ "some" ], [ "student" ], [ "playing" ], [ "in" ], [ "goalie" ], [ "and" ], [ "mid" ], [ "position" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "some", "DT" ], [ "student", "NN" ], [ "playing", "VBG" ], [ "in", "IN" ], [ "goalie", "NN" ], [ "and", "CC" ], [ "mid", "JJ" ], [ "position", "NN" ], [ ".", "." ] ], "values": [ "goalie", "mid" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(8) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(8) T(2) V(1)" }, { "db_id": "soccer_2", "query": "SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid'", "query_toks": [ "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'goalie", "'", "INTERSECT", "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'mid", "'" ], "query_toks_no_value": [ "select", "cname", "from", "tryout", "where", "ppos", "=", "value", "intersect", "select", "cname", "from", "tryout", "where", "ppos", "=", "value" ], "question": "What are the names of all schools that have students trying out for the position of goal and 'mid'-field.", "question_toks": [ "what", "are", "name", "of", "all", "school", "that", "have", "student", "trying", "out", "for", "position", "of", "goal", "and", "'", "mid'-field", "." ], "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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"mid\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"goalie\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "schools", "that", "have", "students", "trying", "out", "for", "the", "position", "of", "goal", "and", "'mid'-field", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "school" ], [ "that" ], [ "have" ], [ "student" ], [ "trying" ], [ "out" ], [ "for" ], [ "position" ], [ "of" ], [ "goal" ], [ "and" ], [ "'" ], [ "mid'-field" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "school", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "student", "VBN" ], [ "trying", "VBG" ], [ "out", "RP" ], [ "for", "IN" ], [ "position", "NN" ], [ "of", "IN" ], [ "goal", "NN" ], [ "and", "CC" ], [ "'", "POS" ], [ "mid'-field", "NN" ], [ ".", "." ] ], "values": [ "mid", "goalie" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(8) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid'", "query_toks": [ "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'goalie", "'", "INTERSECT", "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'mid", "'" ], "query_toks_no_value": [ "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value", "intersect", "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value" ], "question": "Find the names of states that have some college students playing in goalie and mid positions.", "question_toks": [ "find", "name", "of", "state", "that", "have", "some", "college", "student", "playing", "in", "goalie", "and", "mid", "position", "." ], "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": { "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"mid\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"goalie\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "names", "of", "states", "that", "have", "some", "college", "students", "playing", "in", "goalie", "and", "mid", "positions", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "state" ], [ "that" ], [ "have" ], [ "some" ], [ "college" ], [ "student" ], [ "playing" ], [ "in" ], [ "goalie" ], [ "and" ], [ "mid" ], [ "position" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "state", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "some", "DT" ], [ "college", "NN" ], [ "student", "NN" ], [ "playing", "VBG" ], [ "in", "IN" ], [ "goalie", "NN" ], [ "and", "CC" ], [ "mid", "JJ" ], [ "position", "NN" ], [ ".", "." ] ], "values": [ "goalie", "mid" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(8) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(8) T(2) V(1)" }, { "db_id": "soccer_2", "query": "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid'", "query_toks": [ "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'goalie", "'", "INTERSECT", "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'mid", "'" ], "query_toks_no_value": [ "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value", "intersect", "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value" ], "question": "What are the names of the states that have some college students playing in the positions of goalie and mid-field?", "question_toks": [ "what", "are", "name", "of", "state", "that", "have", "some", "college", "student", "playing", "in", "position", "of", "goalie", "and", "mid-field", "?" ], "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": { "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"mid\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"goalie\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "states", "that", "have", "some", "college", "students", "playing", "in", "the", "positions", "of", "goalie", "and", "mid-field", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "state" ], [ "that" ], [ "have" ], [ "some" ], [ "college" ], [ "student" ], [ "playing" ], [ "in" ], [ "position" ], [ "of" ], [ "goalie" ], [ "and" ], [ "mid-field" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "state", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "some", "DT" ], [ "college", "NN" ], [ "student", "NN" ], [ "playing", "VBG" ], [ "in", "IN" ], [ "position", "NN" ], [ "of", "IN" ], [ "goalie", "NN" ], [ "and", "CC" ], [ "mid-field", "NN" ], [ "?", "." ] ], "values": [ "goalie", "mid" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(8) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(8) T(2) V(1)" }, { "db_id": "soccer_2", "query": "SELECT COUNT(*) FROM (SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid')", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "(", "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'goalie", "'", "INTERSECT", "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'mid", "'", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "(", "select", "cname", "from", "tryout", "where", "ppos", "=", "value", "intersect", "select", "cname", "from", "tryout", "where", "ppos", "=", "value", ")" ], "question": "How many schools have some students playing in goalie and mid positions.", "question_toks": [ "how", "many", "school", "have", "some", "student", "playing", "in", "goalie", "and", "mid", "position", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"mid\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"goalie\"", null ] ] } ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "schools", "have", "some", "students", "playing", "in", "goalie", "and", "mid", "positions", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "school" ], [ "have" ], [ "some" ], [ "student" ], [ "playing" ], [ "in" ], [ "goalie" ], [ "and" ], [ "mid" ], [ "position" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "school", "NN" ], [ "have", "VBP" ], [ "some", "DT" ], [ "student", "NN" ], [ "playing", "VBG" ], [ "in", "IN" ], [ "goalie", "NN" ], [ "and", "CC" ], [ "mid", "JJ" ], [ "position", "NN" ], [ ".", "." ] ], "values": [ "goalie" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "soccer_2", "query": "SELECT COUNT(*) FROM (SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid')", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "(", "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'goalie", "'", "INTERSECT", "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'mid", "'", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "(", "select", "cname", "from", "tryout", "where", "ppos", "=", "value", "intersect", "select", "cname", "from", "tryout", "where", "ppos", "=", "value", ")" ], "question": "How many schools have students playing in goalie and mid-field positions?", "question_toks": [ "how", "many", "school", "have", "student", "playing", "in", "goalie", "and", "mid-field", "position", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"mid\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"goalie\"", null ] ] } ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "schools", "have", "students", "playing", "in", "goalie", "and", "mid-field", "positions", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "school" ], [ "have" ], [ "student" ], [ "playing" ], [ "in" ], [ "goalie" ], [ "and" ], [ "mid-field" ], [ "position" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "school", "NN" ], [ "have", "VBP" ], [ "student", "NN" ], [ "playing", "NN" ], [ "in", "IN" ], [ "goalie", "NN" ], [ "and", "CC" ], [ "mid-field", "JJ" ], [ "position", "NN" ], [ "?", "." ] ], "values": [ "goalie" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "soccer_2", "query": "SELECT cName FROM tryout WHERE pPos = 'mid' EXCEPT SELECT cName FROM tryout WHERE pPos = 'goalie'", "query_toks": [ "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'mid", "'", "EXCEPT", "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'goalie", "'" ], "query_toks_no_value": [ "select", "cname", "from", "tryout", "where", "ppos", "=", "value", "except", "select", "cname", "from", "tryout", "where", "ppos", "=", "value" ], "question": "Find the names of schools that have some players in the mid position but not in the goalie position.", "question_toks": [ "find", "name", "of", "school", "that", "have", "some", "player", "in", "mid", "position", "but", "not", "in", "goalie", "position", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"goalie\"", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"mid\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "names", "of", "schools", "that", "have", "some", "players", "in", "the", "mid", "position", "but", "not", "in", "the", "goalie", "position", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "school" ], [ "that" ], [ "have" ], [ "some" ], [ "player" ], [ "in" ], [ "mid" ], [ "position" ], [ "but" ], [ "not" ], [ "in" ], [ "goalie" ], [ "position" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "some", "DT" ], [ "player", "NN" ], [ "in", "IN" ], [ "mid", "JJ" ], [ "position", "NN" ], [ "but", "CC" ], [ "not", "RB" ], [ "in", "IN" ], [ "goalie", "JJ" ], [ "position", "NN" ], [ ".", "." ] ], "values": [ "goalie", "mid" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(8) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT cName FROM tryout WHERE pPos = 'mid' EXCEPT SELECT cName FROM tryout WHERE pPos = 'goalie'", "query_toks": [ "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'mid", "'", "EXCEPT", "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'goalie", "'" ], "query_toks_no_value": [ "select", "cname", "from", "tryout", "where", "ppos", "=", "value", "except", "select", "cname", "from", "tryout", "where", "ppos", "=", "value" ], "question": "What are the names of the schools with some players in the mid position but no goalies?", "question_toks": [ "what", "are", "name", "of", "school", "with", "some", "player", "in", "mid", "position", "but", "no", "goalie", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"goalie\"", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"mid\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "schools", "with", "some", "players", "in", "the", "mid", "position", "but", "no", "goalies", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "school" ], [ "with" ], [ "some" ], [ "player" ], [ "in" ], [ "mid" ], [ "position" ], [ "but" ], [ "no" ], [ "goalie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "with", "IN" ], [ "some", "DT" ], [ "player", "NN" ], [ "in", "IN" ], [ "mid", "JJ" ], [ "position", "NN" ], [ "but", "CC" ], [ "no", "DT" ], [ "goalie", "NN" ], [ "?", "." ] ], "values": [ "goalie", "no", "mid" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(8) T(2) V(2) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie'", "query_toks": [ "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'mid", "'", "EXCEPT", "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'goalie", "'" ], "query_toks_no_value": [ "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value", "except", "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value" ], "question": "Find the names of states that have some college students playing in the mid position but not in the goalie position.", "question_toks": [ "find", "name", "of", "state", "that", "have", "some", "college", "student", "playing", "in", "mid", "position", "but", "not", "in", "goalie", "position", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"goalie\"", 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"mid\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "names", "of", "states", "that", "have", "some", "college", "students", "playing", "in", "the", "mid", "position", "but", "not", "in", "the", "goalie", "position", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "state" ], [ "that" ], [ "have" ], [ "some" ], [ "college" ], [ "student" ], [ "playing" ], [ "in" ], [ "mid" ], [ "position" ], [ "but" ], [ "not" ], [ "in" ], [ "goalie" ], [ "position" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "state", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "some", "DT" ], [ "college", "NN" ], [ "student", "NN" ], [ "playing", "VBG" ], [ "in", "IN" ], [ "mid", "JJ" ], [ "position", "NN" ], [ "but", "CC" ], [ "not", "RB" ], [ "in", "IN" ], [ "goalie", "JJ" ], [ "position", "NN" ], [ ".", "." ] ], "values": [ "goalie", "mid" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(8) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie'", "query_toks": [ "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'mid", "'", "EXCEPT", "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'goalie", "'" ], "query_toks_no_value": [ "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value", "except", "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value" ], "question": "What are the names of all the states with college students playing in the mid position but no goalies?", "question_toks": [ "what", "are", "name", "of", "all", "state", "with", "college", "student", "playing", "in", "mid", "position", "but", "no", "goalie", "?" ], "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"goalie\"", 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"mid\"", null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "states", "with", "college", "students", "playing", "in", "the", "mid", "position", "but", "no", "goalies", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "state" ], [ "with" ], [ "college" ], [ "student" ], [ "playing" ], [ "in" ], [ "mid" ], [ "position" ], [ "but" ], [ "no" ], [ "goalie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "state", "NN" ], [ "with", "IN" ], [ "college", "NN" ], [ "student", "NN" ], [ "playing", "VBG" ], [ "in", "IN" ], [ "mid", "JJ" ], [ "position", "NN" ], [ "but", "CC" ], [ "no", "DT" ], [ "goalie", "NN" ], [ "?", "." ] ], "values": [ "goalie", "no", "mid" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(8) T(2) V(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie')", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "(", "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'mid", "'", "EXCEPT", "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'goalie", "'", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "(", "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value", "except", "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value", ")" ], "question": "How many states that have some college students playing in the mid position but not in the goalie position.", "question_toks": [ "how", "many", "state", "that", "have", "some", "college", "student", "playing", "in", "mid", "position", "but", "not", "in", "goalie", "position", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"goalie\"", 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"mid\"", null ] ] } ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "states", "that", "have", "some", "college", "students", "playing", "in", "the", "mid", "position", "but", "not", "in", "the", "goalie", "position", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "state" ], [ "that" ], [ "have" ], [ "some" ], [ "college" ], [ "student" ], [ "playing" ], [ "in" ], [ "mid" ], [ "position" ], [ "but" ], [ "not" ], [ "in" ], [ "goalie" ], [ "position" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "state", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "some", "DT" ], [ "college", "NN" ], [ "student", "NN" ], [ "playing", "VBG" ], [ "in", "IN" ], [ "mid", "JJ" ], [ "position", "NN" ], [ "but", "CC" ], [ "not", "RB" ], [ "in", "IN" ], [ "goalie", "JJ" ], [ "position", "NN" ], [ ".", "." ] ], "values": [ "goalie" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "soccer_2", "query": "SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie')", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "(", "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'mid", "'", "EXCEPT", "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'goalie", "'", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "(", "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value", "except", "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value", ")" ], "question": "What is the count of states with college students playing in the mid position but not as goalies?", "question_toks": [ "what", "is", "count", "of", "state", "with", "college", "student", "playing", "in", "mid", "position", "but", "not", "a", "goalie", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"goalie\"", 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"mid\"", null ] ] } ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "count", "of", "states", "with", "college", "students", "playing", "in", "the", "mid", "position", "but", "not", "as", "goalies", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "count" ], [ "of" ], [ "state" ], [ "with" ], [ "college" ], [ "student" ], [ "playing" ], [ "in" ], [ "mid" ], [ "position" ], [ "but" ], [ "not" ], [ "a" ], [ "goalie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "count", "NN" ], [ "of", "IN" ], [ "state", "NN" ], [ "with", "IN" ], [ "college", "NN" ], [ "student", "NN" ], [ "playing", "VBG" ], [ "in", "IN" ], [ "mid", "JJ" ], [ "position", "NN" ], [ "but", "CC" ], [ "not", "RB" ], [ "a", "DT" ], [ "goalie", "NN" ], [ "?", "." ] ], "values": [ "goalie" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "soccer_2", "query": "SELECT DISTINCT state FROM college WHERE enr < (SELECT max(enr) FROM college)", "query_toks": [ "SELECT", "DISTINCT", "state", "FROM", "college", "WHERE", "enr", "<", "(", "SELECT", "max", "(", "enr", ")", "FROM", "college", ")" ], "query_toks_no_value": [ "select", "distinct", "state", "from", "college", "where", "enr", "<", "(", "select", "max", "(", "enr", ")", "from", "college", ")" ], "question": "Find the states where have the colleges whose enrollments are less than the largest size.", "question_toks": [ "find", "state", "where", "have", "college", "whose", "enrollment", "are", "le", "than", "largest", "size", "." ], "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": [ [ false, 4, [ 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": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "the", "states", "where", "have", "the", "colleges", "whose", "enrollments", "are", "less", "than", "the", "largest", "size", "." ], "question_arg": [ [ "find" ], [ "state" ], [ "where" ], [ "have" ], [ "college" ], [ "whose" ], [ "enrollment" ], [ "are" ], [ "le" ], [ "than" ], [ "largest" ], [ "size" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "state", "NN" ], [ "where", "WRB" ], [ "have", "VBP" ], [ "college", "NN" ], [ "whose", "WP$" ], [ "enrollment", "NN" ], [ "are", "VBP" ], [ "le", "VBN" ], [ "than", "IN" ], [ "largest", "JJS" ], [ "size", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(12) A(0) C(3) T(0) Root(5) Sel(0) N(0) A(1) C(3) T(0)" }, { "db_id": "soccer_2", "query": "SELECT DISTINCT state FROM college WHERE enr < (SELECT max(enr) FROM college)", "query_toks": [ "SELECT", "DISTINCT", "state", "FROM", "college", "WHERE", "enr", "<", "(", "SELECT", "max", "(", "enr", ")", "FROM", "college", ")" ], "query_toks_no_value": [ "select", "distinct", "state", "from", "college", "where", "enr", "<", "(", "select", "max", "(", "enr", ")", "from", "college", ")" ], "question": "What are the states with colleges that have enrollments less than the some other college?", "question_toks": [ "what", "are", "state", "with", "college", "that", "have", "enrollment", "le", "than", "some", "other", "college", "?" ], "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": [ [ false, 4, [ 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": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "states", "with", "colleges", "that", "have", "enrollments", "less", "than", "the", "some", "other", "college", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "state" ], [ "with" ], [ "college" ], [ "that" ], [ "have" ], [ "enrollment" ], [ "le" ], [ "than" ], [ "some" ], [ "other" ], [ "college" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "state", "NN" ], [ "with", "IN" ], [ "college", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "enrollment", "NN" ], [ "le", "NN" ], [ "than", "IN" ], [ "some", "DT" ], [ "other", "JJ" ], [ "college", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(12) A(0) C(3) T(0) Root(5) Sel(0) N(0) A(1) C(3) T(0)" }, { "db_id": "soccer_2", "query": "SELECT DISTINCT cName FROM college WHERE enr > (SELECT min(enr) FROM college WHERE state = 'FL')", "query_toks": [ "SELECT", "DISTINCT", "cName", "FROM", "college", "WHERE", "enr", ">", "(", "SELECT", "min", "(", "enr", ")", "FROM", "college", "WHERE", "state", "=", "'FL", "'", ")" ], "query_toks_no_value": [ "select", "distinct", "cname", "from", "college", "where", "enr", ">", "(", "select", "min", "(", "enr", ")", "from", "college", "where", "state", "=", "value", ")" ], "question": "Find names of colleges with enrollment greater than that of some (at least one) college in the FL state.", "question_toks": [ "find", "name", "of", "college", "with", "enrollment", "greater", "than", "that", "of", "some", "(", "at", "least", "one", ")", "college", "in", "fl", "state", "." ], "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 ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"FL\"", null ] ] }, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "names", "of", "colleges", "with", "enrollment", "greater", "than", "that", "of", "some", "(", "at", "least", "one", ")", "college", "in", "the", "FL", "state", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "college" ], [ "with" ], [ "enrollment" ], [ "greater" ], [ "than" ], [ "that" ], [ "of" ], [ "some" ], [ "(" ], [ "at" ], [ "least" ], [ "one" ], [ ")" ], [ "college" ], [ "in" ], [ "fl" ], [ "state" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "with", "IN" ], [ "enrollment", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "that", "DT" ], [ "of", "IN" ], [ "some", "DT" ], [ "(", "(" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ ")", ")" ], [ "college", "NN" ], [ "in", "IN" ], [ "fl", "JJ" ], [ "state", "NN" ], [ ".", "." ] ], "values": [ "FL", "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(1) T(0) Filter(13) A(0) C(3) T(0) Root(3) Sel(0) N(0) A(2) C(3) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "soccer_2", "query": "SELECT DISTINCT cName FROM college WHERE enr > (SELECT min(enr) FROM college WHERE state = 'FL')", "query_toks": [ "SELECT", "DISTINCT", "cName", "FROM", "college", "WHERE", "enr", ">", "(", "SELECT", "min", "(", "enr", ")", "FROM", "college", "WHERE", "state", "=", "'FL", "'", ")" ], "query_toks_no_value": [ "select", "distinct", "cname", "from", "college", "where", "enr", ">", "(", "select", "min", "(", "enr", ")", "from", "college", "where", "state", "=", "value", ")" ], "question": "What are the names of the colleges that are larger than at least one college in Florida?", "question_toks": [ "what", "are", "name", "of", "college", "that", "are", "larger", "than", "at", "least", "one", "college", "in", "florida", "?" ], "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 ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"FL\"", null ] ] }, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "colleges", "that", "are", "larger", "than", "at", "least", "one", "college", "in", "Florida", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "college" ], [ "that" ], [ "are" ], [ "larger" ], [ "than" ], [ "at" ], [ "least" ], [ "one" ], [ "college" ], [ "in" ], [ "florida" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "state" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "college", "NN" ], [ "in", "IN" ], [ "florida", "NN" ], [ "?", "." ] ], "values": [ "FL", "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(1) T(0) Filter(13) A(0) C(3) T(0) Root(3) Sel(0) N(0) A(2) C(3) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "soccer_2", "query": "SELECT cName FROM college WHERE enr > (SELECT max(enr) FROM college WHERE state = 'FL')", "query_toks": [ "SELECT", "cName", "FROM", "college", "WHERE", "enr", ">", "(", "SELECT", "max", "(", "enr", ")", "FROM", "college", "WHERE", "state", "=", "'FL", "'", ")" ], "query_toks_no_value": [ "select", "cname", "from", "college", "where", "enr", ">", "(", "select", "max", "(", "enr", ")", "from", "college", "where", "state", "=", "value", ")" ], "question": "Find names of all colleges whose enrollment is greater than that of all colleges in the FL state.", "question_toks": [ "find", "name", "of", "all", "college", "whose", "enrollment", "is", "greater", "than", "that", "of", "all", "college", "in", "fl", "state", "." ], "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, 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": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"FL\"", null ] ] }, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "Find", "names", "of", "all", "colleges", "whose", "enrollment", "is", "greater", "than", "that", "of", "all", "colleges", "in", "the", "FL", "state", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "college" ], [ "whose" ], [ "enrollment" ], [ "is" ], [ "greater" ], [ "than" ], [ "that" ], [ "of" ], [ "all" ], [ "college" ], [ "in" ], [ "fl" ], [ "state" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "college", "NN" ], [ "whose", "WP$" ], [ "enrollment", "NN" ], [ "is", "VBZ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "that", "DT" ], [ "of", "IN" ], [ "all", "DT" ], [ "college", "NN" ], [ "in", "IN" ], [ "fl", "JJ" ], [ "state", "NN" ], [ ".", "." ] ], "values": [ "FL" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(13) A(0) C(3) T(0) Root(3) Sel(0) N(0) A(1) C(3) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "soccer_2", "query": "SELECT cName FROM college WHERE enr > (SELECT max(enr) FROM college WHERE state = 'FL')", "query_toks": [ "SELECT", "cName", "FROM", "college", "WHERE", "enr", ">", "(", "SELECT", "max", "(", "enr", ")", "FROM", "college", "WHERE", "state", "=", "'FL", "'", ")" ], "query_toks_no_value": [ "select", "cname", "from", "college", "where", "enr", ">", "(", "select", "max", "(", "enr", ")", "from", "college", "where", "state", "=", "value", ")" ], "question": "What are the names of all colleges with a larger enrollment than the largest college in Florida?", "question_toks": [ "what", "are", "name", "of", "all", "college", "with", "a", "larger", "enrollment", "than", "largest", "college", "in", "florida", "?" ], "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, 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": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"FL\"", null ] ] }, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "colleges", "with", "a", "larger", "enrollment", "than", "the", "largest", "college", "in", "Florida", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "college" ], [ "with" ], [ "a" ], [ "larger" ], [ "enrollment" ], [ "than" ], [ "largest" ], [ "college" ], [ "in" ], [ "florida" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "state" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "college", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "larger", "JJR" ], [ "enrollment", "NN" ], [ "than", "IN" ], [ "largest", "JJS" ], [ "college", "NN" ], [ "in", "IN" ], [ "florida", "NN" ], [ "?", "." ] ], "values": [ "FL" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(13) A(0) C(3) T(0) Root(3) Sel(0) N(0) A(1) C(3) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "soccer_2", "query": "SELECT sum(enr) FROM college WHERE cName NOT IN (SELECT cName FROM tryout WHERE pPos = \"goalie\")", "query_toks": [ "SELECT", "sum", "(", "enr", ")", "FROM", "college", "WHERE", "cName", "NOT", "IN", "(", "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "``", "goalie", "''", ")" ], "query_toks_no_value": [ "select", "sum", "(", "enr", ")", "from", "college", "where", "cname", "not", "in", "(", "select", "cname", "from", "tryout", "where", "ppos", "=", "value", ")" ], "question": "What is the total number of enrollment of schools that do not have any goalie player?", "question_toks": [ "what", "is", "total", "number", "of", "enrollment", "of", "school", "that", "do", "not", "have", "any", "goalie", "player", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"goalie\"", null ] ] }, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "enrollment", "of", "schools", "that", "do", "not", "have", "any", "goalie", "player", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "enrollment" ], [ "of" ], [ "school" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "goalie" ], [ "player" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "enrollment", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "goalie", "NN" ], [ "player", "NN" ], [ "?", "." ] ], "values": [ "goalie" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(3) T(0) Filter(19) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT sum(enr) FROM college WHERE cName NOT IN (SELECT cName FROM tryout WHERE pPos = \"goalie\")", "query_toks": [ "SELECT", "sum", "(", "enr", ")", "FROM", "college", "WHERE", "cName", "NOT", "IN", "(", "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "``", "goalie", "''", ")" ], "query_toks_no_value": [ "select", "sum", "(", "enr", ")", "from", "college", "where", "cname", "not", "in", "(", "select", "cname", "from", "tryout", "where", "ppos", "=", "value", ")" ], "question": "What is the total number of students enrolled in schools without any goalies?", "question_toks": [ "what", "is", "total", "number", "of", "student", "enrolled", "in", "school", "without", "any", "goalie", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"goalie\"", null ] ] }, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "students", "enrolled", "in", "schools", "without", "any", "goalies", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "student" ], [ "enrolled" ], [ "in" ], [ "school" ], [ "without" ], [ "any" ], [ "goalie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "school", "NN" ], [ "without", "IN" ], [ "any", "DT" ], [ "goalie", "NN" ], [ "?", "." ] ], "values": [ "goalie" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(3) T(0) Filter(19) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "soccer_2", "query": "SELECT count(DISTINCT state) FROM college WHERE enr > (SELECT avg(enr) FROM college)", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "state", ")", "FROM", "college", "WHERE", "enr", ">", "(", "SELECT", "avg", "(", "enr", ")", "FROM", "college", ")" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "state", ")", "from", "college", "where", "enr", ">", "(", "select", "avg", "(", "enr", ")", "from", "college", ")" ], "question": "What is the number of states that has some college whose enrollment is larger than the average enrollment?", "question_toks": [ "what", "is", "number", "of", "state", "that", "ha", "some", "college", "whose", "enrollment", "is", "larger", "than", "average", "enrollment", "?" ], "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": [ [ false, 3, [ 0, [ 0, 3, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "states", "that", "has", "some", "college", "whose", "enrollment", "is", "larger", "than", "the", "average", "enrollment", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "state" ], [ "that" ], [ "ha" ], [ "some" ], [ "college" ], [ "whose" ], [ "enrollment" ], [ "is" ], [ "larger" ], [ "than" ], [ "average" ], [ "enrollment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "state", "NN" ], [ "that", "WDT" ], [ "ha", "VBD" ], [ "some", "DT" ], [ "college", "NN" ], [ "whose", "WP$" ], [ "enrollment", "NN" ], [ "is", "VBZ" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "enrollment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(2) T(0) Filter(13) A(0) C(3) T(0) Root(5) Sel(0) N(0) A(5) C(3) T(0)" }, { "db_id": "soccer_2", "query": "SELECT count(DISTINCT state) FROM college WHERE enr > (SELECT avg(enr) FROM college)", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "state", ")", "FROM", "college", "WHERE", "enr", ">", "(", "SELECT", "avg", "(", "enr", ")", "FROM", "college", ")" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "state", ")", "from", "college", "where", "enr", ">", "(", "select", "avg", "(", "enr", ")", "from", "college", ")" ], "question": "How many states have a college with more students than average?", "question_toks": [ "how", "many", "state", "have", "a", "college", "with", "more", "student", "than", "average", "?" ], "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": [ [ false, 3, [ 0, [ 0, 3, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "states", "have", "a", "college", "with", "more", "students", "than", "average", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "state" ], [ "have" ], [ "a" ], [ "college" ], [ "with" ], [ "more" ], [ "student" ], [ "than" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "state", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "college", "NN" ], [ "with", "IN" ], [ "more", "RBR" ], [ "student", "NN" ], [ "than", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(2) T(0) Filter(13) A(0) C(3) T(0) Root(5) Sel(0) N(0) A(5) C(3) T(0)" }, { "db_id": "soccer_2", "query": "SELECT count(DISTINCT state) FROM college WHERE enr < (SELECT avg(enr) FROM college)", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "state", ")", "FROM", "college", "WHERE", "enr", "<", "(", "SELECT", "avg", "(", "enr", ")", "FROM", "college", ")" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "state", ")", "from", "college", "where", "enr", "<", "(", "select", "avg", "(", "enr", ")", "from", "college", ")" ], "question": "What is the number of states that has some colleges whose enrollment is smaller than the average enrollment?", "question_toks": [ "what", "is", "number", "of", "state", "that", "ha", "some", "college", "whose", "enrollment", "is", "smaller", "than", "average", "enrollment", "?" ], "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": [ [ false, 4, [ 0, [ 0, 3, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "states", "that", "has", "some", "colleges", "whose", "enrollment", "is", "smaller", "than", "the", "average", "enrollment", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "state" ], [ "that" ], [ "ha" ], [ "some" ], [ "college" ], [ "whose" ], [ "enrollment" ], [ "is" ], [ "smaller" ], [ "than" ], [ "average" ], [ "enrollment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "state", "NN" ], [ "that", "WDT" ], [ "ha", "VBD" ], [ "some", "DT" ], [ "college", "NN" ], [ "whose", "WP$" ], [ "enrollment", "NN" ], [ "is", "VBZ" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "enrollment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(2) T(0) Filter(12) A(0) C(3) T(0) Root(5) Sel(0) N(0) A(5) C(3) T(0)" }, { "db_id": "soccer_2", "query": "SELECT count(DISTINCT state) FROM college WHERE enr < (SELECT avg(enr) FROM college)", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "state", ")", "FROM", "college", "WHERE", "enr", "<", "(", "SELECT", "avg", "(", "enr", ")", "FROM", "college", ")" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "state", ")", "from", "college", "where", "enr", "<", "(", "select", "avg", "(", "enr", ")", "from", "college", ")" ], "question": "How many states have smaller colleges than average?", "question_toks": [ "how", "many", "state", "have", "smaller", "college", "than", "average", "?" ], "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": [ [ false, 4, [ 0, [ 0, 3, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player id", "college name", "player position", "decision" ], "table_names": [ "college", "player", "tryout" ], "col_set": [ "*", "college name", "state", "enrollment", "player id", "player name", "yes card", "training hours", "player position", "decision" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "4": 4 }, "origin_question_toks": [ "How", "many", "states", "have", "smaller", "colleges", "than", "average", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "state" ], [ "have" ], [ "smaller" ], [ "college" ], [ "than" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "state", "NN" ], [ "have", "VBP" ], [ "smaller", "JJR" ], [ "college", "NN" ], [ "than", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(2) T(0) Filter(12) A(0) C(3) T(0) Root(5) Sel(0) N(0) A(5) C(3) T(0)" }, { "db_id": "device", "query": "SELECT count(*) FROM device", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "device" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "device" ], "question": "How many devices are there?", "question_toks": [ "how", "many", "device", "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": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "How", "many", "devices", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "device" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "device", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "device", "query": "SELECT count(*) FROM device", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "device" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "device" ], "question": "Count the number of devices.", "question_toks": [ "count", "number", "of", "device", "." ], "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": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "Count", "the", "number", "of", "devices", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "device" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "device", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "device", "query": "SELECT Carrier FROM device ORDER BY Carrier ASC", "query_toks": [ "SELECT", "Carrier", "FROM", "device", "ORDER", "BY", "Carrier", "ASC" ], "query_toks_no_value": [ "select", "carrier", "from", "device", "order", "by", "carrier", "asc" ], "question": "List the carriers of devices in ascending alphabetical order.", "question_toks": [ "list", "carrier", "of", "device", "in", "ascending", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "List", "the", "carriers", "of", "devices", "in", "ascending", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "carrier" ], [ "of" ], [ "device" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "carrier", "NN" ], [ "of", "IN" ], [ "device", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(1) A(0) C(3) T(0)" }, { "db_id": "device", "query": "SELECT Carrier FROM device ORDER BY Carrier ASC", "query_toks": [ "SELECT", "Carrier", "FROM", "device", "ORDER", "BY", "Carrier", "ASC" ], "query_toks_no_value": [ "select", "carrier", "from", "device", "order", "by", "carrier", "asc" ], "question": "What are the different carriers for devices, listed in alphabetical order?", "question_toks": [ "what", "are", "different", "carrier", "for", "device", ",", "listed", "in", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "different", "carriers", "for", "devices", ",", "listed", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "carrier" ], [ "for" ], [ "device" ], [ "," ], [ "listed" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "carrier", "NN" ], [ "for", "IN" ], [ "device", "NN" ], [ ",", "," ], [ "listed", "VBN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(1) A(0) C(3) T(0)" }, { "db_id": "device", "query": "SELECT Carrier FROM device WHERE Software_Platform != 'Android'", "query_toks": [ "SELECT", "Carrier", "FROM", "device", "WHERE", "Software_Platform", "!", "=", "'Android", "'" ], "query_toks_no_value": [ "select", "carrier", "from", "device", "where", "software_platform", "!", "=", "value" ], "question": "What are the carriers of devices whose software platforms are not \"Android\"?", "question_toks": [ "what", "are", "carrier", "of", "device", "whose", "software", "platform", "are", "not", "'", "android", "'", "?" ], "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, 7, [ 0, [ 0, 6, false ], null ], "\"Android\"", null ] ] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "carriers", "of", "devices", "whose", "software", "platforms", "are", "not", "``", "Android", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "carrier" ], [ "of" ], [ "device" ], [ "whose" ], [ "software", "platform" ], [ "are" ], [ "not" ], [ "'" ], [ "android" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "carrier", "NN" ], [ "of", "IN" ], [ "device", "NN" ], [ "whose", "WP$" ], [ "software", "NN" ], [ "platform", "NN" ], [ "are", "VBP" ], [ "not", "RB" ], [ "'", "''" ], [ "android", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Android" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(3) A(0) C(6) T(0) V(0)" }, { "db_id": "device", "query": "SELECT Carrier FROM device WHERE Software_Platform != 'Android'", "query_toks": [ "SELECT", "Carrier", "FROM", "device", "WHERE", "Software_Platform", "!", "=", "'Android", "'" ], "query_toks_no_value": [ "select", "carrier", "from", "device", "where", "software_platform", "!", "=", "value" ], "question": "Return the device carriers that do not have Android as their software platform.", "question_toks": [ "return", "device", "carrier", "that", "do", "not", "have", "android", "a", "their", "software", "platform", "." ], "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, 7, [ 0, [ 0, 6, false ], null ], "\"Android\"", null ] ] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "Return", "the", "device", "carriers", "that", "do", "not", "have", "Android", "as", "their", "software", "platform", "." ], "question_arg": [ [ "return" ], [ "device" ], [ "carrier" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "android" ], [ "a" ], [ "their" ], [ "software", "platform" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "device", "NN" ], [ "carrier", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "android", "VBN" ], [ "a", "DT" ], [ "their", "PRP$" ], [ "software", "NN" ], [ "platform", "NN" ], [ ".", "." ] ], "values": [ "Android" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(3) A(0) C(6) T(0) V(0)" }, { "db_id": "device", "query": "SELECT Shop_Name FROM shop ORDER BY Open_Year ASC", "query_toks": [ "SELECT", "Shop_Name", "FROM", "shop", "ORDER", "BY", "Open_Year", "ASC" ], "query_toks_no_value": [ "select", "shop_name", "from", "shop", "order", "by", "open_year", "asc" ], "question": "What are the names of shops in ascending order of open year?", "question_toks": [ "what", "are", "name", "of", "shop", "in", "ascending", "order", "of", "open", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "shops", "in", "ascending", "order", "of", "open", "year", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "shop" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "open", "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "open", "JJ" ], [ "year", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(1) Order(1) A(0) C(11) T(1)" }, { "db_id": "device", "query": "SELECT Shop_Name FROM shop ORDER BY Open_Year ASC", "query_toks": [ "SELECT", "Shop_Name", "FROM", "shop", "ORDER", "BY", "Open_Year", "ASC" ], "query_toks_no_value": [ "select", "shop_name", "from", "shop", "order", "by", "open_year", "asc" ], "question": "Return the names of shops, ordered by year of opening ascending.", "question_toks": [ "return", "name", "of", "shop", ",", "ordered", "by", "year", "of", "opening", "ascending", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "Return", "the", "names", "of", "shops", ",", "ordered", "by", "year", "of", "opening", "ascending", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "shop" ], [ "," ], [ "ordered" ], [ "by" ], [ "year" ], [ "of" ], [ "opening" ], [ "ascending" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "opening", "VBG" ], [ "ascending", "VBG" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(1) Order(1) A(0) C(11) T(1)" }, { "db_id": "device", "query": "SELECT avg(Quantity) FROM stock", "query_toks": [ "SELECT", "avg", "(", "Quantity", ")", "FROM", "stock" ], "query_toks_no_value": [ "select", "avg", "(", "quantity", ")", "from", "stock" ], "question": "What is the average quantity of stocks?", "question_toks": [ "what", "is", "average", "quantity", "of", "stock", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "What", "is", "the", "average", "quantity", "of", "stocks", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "quantity" ], [ "of" ], [ "stock" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "quantity", "NN" ], [ "of", "IN" ], [ "stock", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(12) T(2)" }, { "db_id": "device", "query": "SELECT avg(Quantity) FROM stock", "query_toks": [ "SELECT", "avg", "(", "Quantity", ")", "FROM", "stock" ], "query_toks_no_value": [ "select", "avg", "(", "quantity", ")", "from", "stock" ], "question": "Give the average quantity of stocks.", "question_toks": [ "give", "average", "quantity", "of", "stock", "." ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "Give", "the", "average", "quantity", "of", "stocks", "." ], "question_arg": [ [ "give" ], [ "average" ], [ "quantity" ], [ "of" ], [ "stock" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "average", "JJ" ], [ "quantity", "NN" ], [ "of", "IN" ], [ "stock", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(12) T(2)" }, { "db_id": "device", "query": "SELECT Shop_Name , LOCATION FROM shop ORDER BY Shop_Name ASC", "query_toks": [ "SELECT", "Shop_Name", ",", "LOCATION", "FROM", "shop", "ORDER", "BY", "Shop_Name", "ASC" ], "query_toks_no_value": [ "select", "shop_name", ",", "location", "from", "shop", "order", "by", "shop_name", "asc" ], "question": "What are the names and location of the shops in ascending alphabetical order of name.", "question_toks": [ "what", "are", "name", "and", "location", "of", "shop", "in", "ascending", "alphabetical", "order", "of", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "location", "of", "the", "shops", "in", "ascending", "alphabetical", "order", "of", "name", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "location" ], [ "of" ], [ "shop" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(8) T(1) A(0) C(9) T(1) Order(1) A(0) C(8) T(1)" }, { "db_id": "device", "query": "SELECT Shop_Name , LOCATION FROM shop ORDER BY Shop_Name ASC", "query_toks": [ "SELECT", "Shop_Name", ",", "LOCATION", "FROM", "shop", "ORDER", "BY", "Shop_Name", "ASC" ], "query_toks_no_value": [ "select", "shop_name", ",", "location", "from", "shop", "order", "by", "shop_name", "asc" ], "question": "Return the names and locations of shops, ordered by name in alphabetical order.", "question_toks": [ "return", "name", "and", "location", "of", "shop", ",", "ordered", "by", "name", "in", "alphabetical", "order", "." ], "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, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "Return", "the", "names", "and", "locations", "of", "shops", ",", "ordered", "by", "name", "in", "alphabetical", "order", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "and" ], [ "location" ], [ "of" ], [ "shop" ], [ "," ], [ "ordered" ], [ "by" ], [ "name" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "name", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(8) T(1) A(0) C(9) T(1) Order(1) A(0) C(8) T(1)" }, { "db_id": "device", "query": "SELECT count(DISTINCT Software_Platform) FROM device", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Software_Platform", ")", "FROM", "device" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "software_platform", ")", "from", "device" ], "question": "How many different software platforms are there for devices?", "question_toks": [ "how", "many", "different", "software", "platform", "are", "there", "for", "device", "?" ], "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": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "How", "many", "different", "software", "platforms", "are", "there", "for", "devices", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "software", "platform" ], [ "are" ], [ "there" ], [ "for" ], [ "device" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "software", "NN" ], [ "platform", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "for", "IN" ], [ "device", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(6) T(0)" }, { "db_id": "device", "query": "SELECT count(DISTINCT Software_Platform) FROM device", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Software_Platform", ")", "FROM", "device" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "software_platform", ")", "from", "device" ], "question": "Count the number of different software platforms.", "question_toks": [ "count", "number", "of", "different", "software", "platform", "." ], "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": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "software", "platforms", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "software", "platform" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "software", "NN" ], [ "platform", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(6) T(0)" }, { "db_id": "device", "query": "SELECT Open_Date , Open_Year FROM shop WHERE Shop_Name = \"Apple\"", "query_toks": [ "SELECT", "Open_Date", ",", "Open_Year", "FROM", "shop", "WHERE", "Shop_Name", "=", "``", "Apple", "''" ], "query_toks_no_value": [ "select", "open_date", ",", "open_year", "from", "shop", "where", "shop_name", "=", "value" ], "question": "List the open date of open year of the shop named \"Apple\".", "question_toks": [ "list", "open", "date", "of", "open", "year", "of", "shop", "named", "'", "apple", "'", "." ], "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, 8, false ], null ], "\"Apple\"", null ] ] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "List", "the", "open", "date", "of", "open", "year", "of", "the", "shop", "named", "``", "Apple", "''", "." ], "question_arg": [ [ "list" ], [ "open", "date" ], [ "of" ], [ "open", "year" ], [ "of" ], [ "shop" ], [ "named" ], [ "'" ], [ "apple" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "open", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "open", "JJ" ], [ "year", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "apple", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Apple" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(1) A(0) C(11) T(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "device", "query": "SELECT Open_Date , Open_Year FROM shop WHERE Shop_Name = \"Apple\"", "query_toks": [ "SELECT", "Open_Date", ",", "Open_Year", "FROM", "shop", "WHERE", "Shop_Name", "=", "``", "Apple", "''" ], "query_toks_no_value": [ "select", "open_date", ",", "open_year", "from", "shop", "where", "shop_name", "=", "value" ], "question": "What are the open dates and years for the shop named Apple?", "question_toks": [ "what", "are", "open", "date", "and", "year", "for", "shop", "named", "apple", "?" ], "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, 8, false ], null ], "\"Apple\"", null ] ] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "open", "dates", "and", "years", "for", "the", "shop", "named", "Apple", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "open", "date" ], [ "and" ], [ "year" ], [ "for" ], [ "shop" ], [ "named" ], [ "apple" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "open", "JJ" ], [ "date", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "for", "IN" ], [ "shop", "NN" ], [ "named", "VBN" ], [ "apple", "NN" ], [ "?", "." ] ], "values": [ "Apple" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(1) A(0) C(11) T(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "device", "query": "SELECT Shop_Name FROM shop ORDER BY Open_Year DESC LIMIT 1", "query_toks": [ "SELECT", "Shop_Name", "FROM", "shop", "ORDER", "BY", "Open_Year", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "shop_name", "from", "shop", "order", "by", "open_year", "desc", "limit", "value" ], "question": "List the name of the shop with the latest open year.", "question_toks": [ "list", "name", "of", "shop", "with", "latest", "open", "year", "." ], "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, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "List", "the", "name", "of", "the", "shop", "with", "the", "latest", "open", "year", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "shop" ], [ "with" ], [ "latest" ], [ "open", "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "with", "IN" ], [ "latest", "JJS" ], [ "open", "JJ" ], [ "year", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(1) Sup(0) A(0) C(11) T(1)" }, { "db_id": "device", "query": "SELECT Shop_Name FROM shop ORDER BY Open_Year DESC LIMIT 1", "query_toks": [ "SELECT", "Shop_Name", "FROM", "shop", "ORDER", "BY", "Open_Year", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "shop_name", "from", "shop", "order", "by", "open_year", "desc", "limit", "value" ], "question": "What is the shop name corresponding to the shop that opened in the most recent year?", "question_toks": [ "what", "is", "shop", "name", "corresponding", "to", "shop", "that", "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, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "What", "is", "the", "shop", "name", "corresponding", "to", "the", "shop", "that", "opened", "in", "the", "most", "recent", "year", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "shop", "name" ], [ "corresponding" ], [ "to" ], [ "shop" ], [ "that" ], [ "opened" ], [ "in" ], [ "most" ], [ "recent" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "shop", "JJ" ], [ "name", "NN" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "shop", "VB" ], [ "that", "DT" ], [ "opened", "VBN" ], [ "in", "IN" ], [ "most", "JJS" ], [ "recent", "JJ" ], [ "year", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(1) Sup(0) A(0) C(11) T(1)" }, { "db_id": "device", "query": "SELECT T3.Shop_Name , T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID = T3.Shop_ID", "query_toks": [ "SELECT", "T3.Shop_Name", ",", "T2.Carrier", "FROM", "stock", "AS", "T1", "JOIN", "device", "AS", "T2", "ON", "T1.Device_ID", "=", "T2.Device_ID", "JOIN", "shop", "AS", "T3", "ON", "T1.Shop_ID", "=", "T3.Shop_ID" ], "query_toks_no_value": [ "select", "t3", ".", "shop_name", ",", "t2", ".", "carrier", "from", "stock", "as", "t1", "join", "device", "as", "t2", "on", "t1", ".", "device_id", "=", "t2", ".", "device_id", "join", "shop", "as", "t3", "on", "t1", ".", "shop_id", "=", "t3", ".", "shop_id" ], "question": "Show names of shops and the carriers of devices they have in stock.", "question_toks": [ "show", "name", "of", "shop", "and", "carrier", "of", "device", "they", "have", "in", "stock", "." ], "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, 8, 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": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "Show", "names", "of", "shops", "and", "the", "carriers", "of", "devices", "they", "have", "in", "stock", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "shop" ], [ "and" ], [ "carrier" ], [ "of" ], [ "device" ], [ "they" ], [ "have" ], [ "in" ], [ "stock" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "and", "CC" ], [ "carrier", "NN" ], [ "of", "IN" ], [ "device", "NN" ], [ "they", "PRP" ], [ "have", "VBP" ], [ "in", "IN" ], [ "stock", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(1) A(0) C(3) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "device", "query": "SELECT T3.Shop_Name , T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID = T3.Shop_ID", "query_toks": [ "SELECT", "T3.Shop_Name", ",", "T2.Carrier", "FROM", "stock", "AS", "T1", "JOIN", "device", "AS", "T2", "ON", "T1.Device_ID", "=", "T2.Device_ID", "JOIN", "shop", "AS", "T3", "ON", "T1.Shop_ID", "=", "T3.Shop_ID" ], "query_toks_no_value": [ "select", "t3", ".", "shop_name", ",", "t2", ".", "carrier", "from", "stock", "as", "t1", "join", "device", "as", "t2", "on", "t1", ".", "device_id", "=", "t2", ".", "device_id", "join", "shop", "as", "t3", "on", "t1", ".", "shop_id", "=", "t3", ".", "shop_id" ], "question": "What are the names of device shops, and what are the carriers that they carry devices in stock for?", "question_toks": [ "what", "are", "name", "of", "device", "shop", ",", "and", "what", "are", "carrier", "that", "they", "carry", "device", "in", "stock", "for", "?" ], "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, 8, 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": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "device", "shops", ",", "and", "what", "are", "the", "carriers", "that", "they", "carry", "devices", "in", "stock", "for", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "device" ], [ "shop" ], [ "," ], [ "and" ], [ "what" ], [ "are" ], [ "carrier" ], [ "that" ], [ "they" ], [ "carry" ], [ "device" ], [ "in" ], [ "stock" ], [ "for" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "device", "NN" ], [ "shop", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "what", "WDT" ], [ "are", "VBP" ], [ "carrier", "NN" ], [ "that", "IN" ], [ "they", "PRP" ], [ "carry", "VBP" ], [ "device", "NN" ], [ "in", "IN" ], [ "stock", "NN" ], [ "for", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(1) A(0) C(3) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "device", "query": "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T2.Shop_Name", "FROM", "stock", "AS", "T1", "JOIN", "shop", "AS", "T2", "ON", "T1.Shop_ID", "=", "T2.Shop_ID", "GROUP", "BY", "T1.Shop_ID", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t2", ".", "shop_name", "from", "stock", "as", "t1", "join", "shop", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "shop_id", "group", "by", "t1", ".", "shop_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show names of shops that have more than one kind of device in stock.", "question_toks": [ "show", "name", "of", "shop", "that", "have", "more", "than", "one", "kind", "of", "device", "in", "stock", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, 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, 12, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "Show", "names", "of", "shops", "that", "have", "more", "than", "one", "kind", "of", "device", "in", "stock", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "shop" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "kind" ], [ "of" ], [ "device" ], [ "in" ], [ "stock" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "kind", "NN" ], [ "of", "IN" ], [ "device", "NN" ], [ "in", "IN" ], [ "stock", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "device", "query": "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T2.Shop_Name", "FROM", "stock", "AS", "T1", "JOIN", "shop", "AS", "T2", "ON", "T1.Shop_ID", "=", "T2.Shop_ID", "GROUP", "BY", "T1.Shop_ID", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t2", ".", "shop_name", "from", "stock", "as", "t1", "join", "shop", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "shop_id", "group", "by", "t1", ".", "shop_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the names of shops that have more than a single kind of device in stock?", "question_toks": [ "what", "are", "name", "of", "shop", "that", "have", "more", "than", "a", "single", "kind", "of", "device", "in", "stock", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, 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, 12, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "shops", "that", "have", "more", "than", "a", "single", "kind", "of", "device", "in", "stock", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "shop" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "a" ], [ "single" ], [ "kind" ], [ "of" ], [ "device" ], [ "in" ], [ "stock" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "a", "DT" ], [ "single", "JJ" ], [ "kind", "NN" ], [ "of", "IN" ], [ "device", "NN" ], [ "in", "IN" ], [ "stock", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "device", "query": "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Shop_Name", "FROM", "stock", "AS", "T1", "JOIN", "shop", "AS", "T2", "ON", "T1.Shop_ID", "=", "T2.Shop_ID", "GROUP", "BY", "T1.Shop_ID", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "shop_name", "from", "stock", "as", "t1", "join", "shop", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "shop_id", "group", "by", "t1", ".", "shop_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the name of the shop that has the most kind of devices in stock.", "question_toks": [ "show", "name", "of", "shop", "that", "ha", "most", "kind", "of", "device", "in", "stock", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "Show", "the", "name", "of", "the", "shop", "that", "has", "the", "most", "kind", "of", "devices", "in", "stock", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "shop" ], [ "that" ], [ "ha" ], [ "most" ], [ "kind" ], [ "of" ], [ "device" ], [ "in" ], [ "stock" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "kind", "NN" ], [ "of", "IN" ], [ "device", "NN" ], [ "in", "IN" ], [ "stock", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(8) T(1) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "device", "query": "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Shop_Name", "FROM", "stock", "AS", "T1", "JOIN", "shop", "AS", "T2", "ON", "T1.Shop_ID", "=", "T2.Shop_ID", "GROUP", "BY", "T1.Shop_ID", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "shop_name", "from", "stock", "as", "t1", "join", "shop", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "shop_id", "group", "by", "t1", ".", "shop_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the shop that has the most different kinds of devices in stock?", "question_toks": [ "what", "is", "name", "of", "shop", "that", "ha", "most", "different", "kind", "of", "device", "in", "stock", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "shop", "that", "has", "the", "most", "different", "kinds", "of", "devices", "in", "stock", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "shop" ], [ "that" ], [ "ha" ], [ "most" ], [ "different" ], [ "kind" ], [ "of" ], [ "device" ], [ "in" ], [ "stock" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "different", "JJ" ], [ "kind", "NN" ], [ "of", "IN" ], [ "device", "NN" ], [ "in", "IN" ], [ "stock", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(8) T(1) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "device", "query": "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Shop_Name", "FROM", "stock", "AS", "T1", "JOIN", "shop", "AS", "T2", "ON", "T1.Shop_ID", "=", "T2.Shop_ID", "GROUP", "BY", "T1.Shop_ID", "ORDER", "BY", "SUM", "(", "T1.quantity", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "shop_name", "from", "stock", "as", "t1", "join", "shop", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "shop_id", "group", "by", "t1", ".", "shop_id", "order", "by", "sum", "(", "t1", ".", "quantity", ")", "desc", "limit", "value" ], "question": "Show the name of the shop that have the largest quantity of devices in stock.", "question_toks": [ "show", "name", "of", "shop", "that", "have", "largest", "quantity", "of", "device", "in", "stock", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "Show", "the", "name", "of", "the", "shop", "that", "have", "the", "largest", "quantity", "of", "devices", "in", "stock", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "shop" ], [ "that" ], [ "have" ], [ "largest" ], [ "quantity" ], [ "of" ], [ "device" ], [ "in" ], [ "stock" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "largest", "JJS" ], [ "quantity", "NN" ], [ "of", "IN" ], [ "device", "NN" ], [ "in", "IN" ], [ "stock", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(1) Sup(0) A(4) C(12) T(2)" }, { "db_id": "device", "query": "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Shop_Name", "FROM", "stock", "AS", "T1", "JOIN", "shop", "AS", "T2", "ON", "T1.Shop_ID", "=", "T2.Shop_ID", "GROUP", "BY", "T1.Shop_ID", "ORDER", "BY", "SUM", "(", "T1.quantity", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "shop_name", "from", "stock", "as", "t1", "join", "shop", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "shop_id", "group", "by", "t1", ".", "shop_id", "order", "by", "sum", "(", "t1", ".", "quantity", ")", "desc", "limit", "value" ], "question": "What is the name of the shop that has the greatest quantity of devices in stock?", "question_toks": [ "what", "is", "name", "of", "shop", "that", "ha", "greatest", "quantity", "of", "device", "in", "stock", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "shop", "that", "has", "the", "greatest", "quantity", "of", "devices", "in", "stock", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "shop" ], [ "that" ], [ "ha" ], [ "greatest" ], [ "quantity" ], [ "of" ], [ "device" ], [ "in" ], [ "stock" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "greatest", "JJS" ], [ "quantity", "NN" ], [ "of", "IN" ], [ "device", "NN" ], [ "in", "IN" ], [ "stock", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(1) Sup(0) A(4) C(12) T(2)" }, { "db_id": "device", "query": "SELECT Software_Platform , COUNT(*) FROM device GROUP BY Software_Platform", "query_toks": [ "SELECT", "Software_Platform", ",", "COUNT", "(", "*", ")", "FROM", "device", "GROUP", "BY", "Software_Platform" ], "query_toks_no_value": [ "select", "software_platform", ",", "count", "(", "*", ")", "from", "device", "group", "by", "software_platform" ], "question": "Please show different software platforms and the corresponding number of devices using each.", "question_toks": [ "please", "show", "different", "software", "platform", "and", "corresponding", "number", "of", "device", "using", "each", "." ], "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": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "Please", "show", "different", "software", "platforms", "and", "the", "corresponding", "number", "of", "devices", "using", "each", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "different" ], [ "software", "platform" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "device" ], [ "using" ], [ "each" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "VB" ], [ "different", "JJ" ], [ "software", "NN" ], [ "platform", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "device", "NN" ], [ "using", "VBG" ], [ "each", "DT" ], [ ".", "." ] ], "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": "device", "query": "SELECT Software_Platform , COUNT(*) FROM device GROUP BY Software_Platform", "query_toks": [ "SELECT", "Software_Platform", ",", "COUNT", "(", "*", ")", "FROM", "device", "GROUP", "BY", "Software_Platform" ], "query_toks_no_value": [ "select", "software_platform", ",", "count", "(", "*", ")", "from", "device", "group", "by", "software_platform" ], "question": "What are the different software platforms for devices, and how many devices have each?", "question_toks": [ "what", "are", "different", "software", "platform", "for", "device", ",", "and", "how", "many", "device", "have", "each", "?" ], "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": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "different", "software", "platforms", "for", "devices", ",", "and", "how", "many", "devices", "have", "each", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "software", "platform" ], [ "for" ], [ "device" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "device" ], [ "have" ], [ "each" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "software", "NN" ], [ "platform", "NN" ], [ "for", "IN" ], [ "device", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "device", "NN" ], [ "have", "VBP" ], [ "each", "DT" ], [ "?", "." ] ], "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": "device", "query": "SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC", "query_toks": [ "SELECT", "Software_Platform", "FROM", "device", "GROUP", "BY", "Software_Platform", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "software_platform", "from", "device", "group", "by", "software_platform", "order", "by", "count", "(", "*", ")", "desc" ], "question": "Please show the software platforms of devices in descending order of the count.", "question_toks": [ "please", "show", "software", "platform", "of", "device", "in", "descending", "order", "of", "count", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "Please", "show", "the", "software", "platforms", "of", "devices", "in", "descending", "order", "of", "the", "count", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "software", "platform" ], [ "of" ], [ "device" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "software", "NN" ], [ "platform", "NN" ], [ "of", "IN" ], [ "device", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "count", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(6) T(0) Order(0) A(3) C(0) T(0)" }, { "db_id": "device", "query": "SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC", "query_toks": [ "SELECT", "Software_Platform", "FROM", "device", "GROUP", "BY", "Software_Platform", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "software_platform", "from", "device", "group", "by", "software_platform", "order", "by", "count", "(", "*", ")", "desc" ], "question": "What are the different software platforms for devices, ordered by frequency descending?", "question_toks": [ "what", "are", "different", "software", "platform", "for", "device", ",", "ordered", "by", "frequency", "descending", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "different", "software", "platforms", "for", "devices", ",", "ordered", "by", "frequency", "descending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "software", "platform" ], [ "for" ], [ "device" ], [ "," ], [ "ordered" ], [ "by" ], [ "frequency" ], [ "descending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "software", "NN" ], [ "platform", "NN" ], [ "for", "IN" ], [ "device", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "frequency", "NN" ], [ "descending", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(6) T(0) Order(0) A(3) C(0) T(0)" }, { "db_id": "device", "query": "SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Software_Platform", "FROM", "device", "GROUP", "BY", "Software_Platform", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "software_platform", "from", "device", "group", "by", "software_platform", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "List the software platform shared by the greatest number of devices.", "question_toks": [ "list", "software", "platform", "shared", "by", "greatest", "number", "of", "device", "." ], "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": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "List", "the", "software", "platform", "shared", "by", "the", "greatest", "number", "of", "devices", "." ], "question_arg": [ [ "list" ], [ "software", "platform" ], [ "shared" ], [ "by" ], [ "greatest" ], [ "number" ], [ "of" ], [ "device" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "software", "NN" ], [ "platform", "NN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "device", "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": "device", "query": "SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Software_Platform", "FROM", "device", "GROUP", "BY", "Software_Platform", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "software_platform", "from", "device", "group", "by", "software_platform", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the software platform that is most common amongst all devices?", "question_toks": [ "what", "is", "software", "platform", "that", "is", "most", "common", "amongst", "all", "device", "?" ], "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": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "What", "is", "the", "software", "platform", "that", "is", "most", "common", "amongst", "all", "devices", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "software", "platform" ], [ "that" ], [ "is" ], [ "most" ], [ "common" ], [ "amongst" ], [ "all" ], [ "device" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "software", "NN" ], [ "platform", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "amongst", "IN" ], [ "all", "DT" ], [ "device", "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": "device", "query": "SELECT Shop_Name FROM shop WHERE Shop_ID NOT IN (SELECT Shop_ID FROM stock)", "query_toks": [ "SELECT", "Shop_Name", "FROM", "shop", "WHERE", "Shop_ID", "NOT", "IN", "(", "SELECT", "Shop_ID", "FROM", "stock", ")" ], "query_toks_no_value": [ "select", "shop_name", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "stock", ")" ], "question": "List the names of shops that have no devices in stock.", "question_toks": [ "list", "name", "of", "shop", "that", "have", "no", "device", "in", "stock", "." ], "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": [ [ true, 8, [ 0, [ 0, 7, 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": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "List", "the", "names", "of", "shops", "that", "have", "no", "devices", "in", "stock", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "shop" ], [ "that" ], [ "have" ], [ "no" ], [ "device" ], [ "in" ], [ "stock" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "no", "DT" ], [ "device", "NN" ], [ "in", "IN" ], [ "stock", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(19) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "device", "query": "SELECT Shop_Name FROM shop WHERE Shop_ID NOT IN (SELECT Shop_ID FROM stock)", "query_toks": [ "SELECT", "Shop_Name", "FROM", "shop", "WHERE", "Shop_ID", "NOT", "IN", "(", "SELECT", "Shop_ID", "FROM", "stock", ")" ], "query_toks_no_value": [ "select", "shop_name", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "stock", ")" ], "question": "What are the names of shops that do not have any devices in stock?", "question_toks": [ "what", "are", "name", "of", "shop", "that", "do", "not", "have", "any", "device", "in", "stock", "?" ], "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": [ [ true, 8, [ 0, [ 0, 7, 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": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "shops", "that", "do", "not", "have", "any", "devices", "in", "stock", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "shop" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "device" ], [ "in" ], [ "stock" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "device", "NN" ], [ "in", "IN" ], [ "stock", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(19) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "device", "query": "SELECT LOCATION FROM shop WHERE Open_Year > 2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year < 2008", "query_toks": [ "SELECT", "LOCATION", "FROM", "shop", "WHERE", "Open_Year", ">", "2012", "INTERSECT", "SELECT", "LOCATION", "FROM", "shop", "WHERE", "Open_Year", "<", "2008" ], "query_toks_no_value": [ "select", "location", "from", "shop", "where", "open_year", ">", "value", "intersect", "select", "location", "from", "shop", "where", "open_year", "<", "value" ], "question": "Show the locations shared by shops with open year later than 2012 and shops with open year before 2008.", "question_toks": [ "show", "location", "shared", "by", "shop", "with", "open", "year", "later", "than", "year", "and", "shop", "with", "open", "year", "before", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 11, false ], null ], 2008.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 2012.0, null ] ] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "Show", "the", "locations", "shared", "by", "shops", "with", "open", "year", "later", "than", "2012", "and", "shops", "with", "open", "year", "before", "2008", "." ], "question_arg": [ [ "show" ], [ "location" ], [ "shared" ], [ "by" ], [ "shop" ], [ "with" ], [ "open", "year" ], [ "later" ], [ "than" ], [ "year" ], [ "and" ], [ "shop" ], [ "with" ], [ "open", "year" ], [ "before" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "location", "NN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "shop", "NN" ], [ "with", "IN" ], [ "open", "JJ" ], [ "year", "NN" ], [ "later", "RB" ], [ "than", "IN" ], [ "2012", "CD" ], [ "and", "CC" ], [ "shop", "NN" ], [ "with", "IN" ], [ "open", "JJ" ], [ "year", "NN" ], [ "before", "IN" ], [ "2008", "CD" ], [ ".", "." ] ], "values": [ "2008", "2012" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(5) A(0) C(11) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(4) A(0) C(11) T(1) V(0)" }, { "db_id": "device", "query": "SELECT LOCATION FROM shop WHERE Open_Year > 2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year < 2008", "query_toks": [ "SELECT", "LOCATION", "FROM", "shop", "WHERE", "Open_Year", ">", "2012", "INTERSECT", "SELECT", "LOCATION", "FROM", "shop", "WHERE", "Open_Year", "<", "2008" ], "query_toks_no_value": [ "select", "location", "from", "shop", "where", "open_year", ">", "value", "intersect", "select", "location", "from", "shop", "where", "open_year", "<", "value" ], "question": "Which locations contains both shops that opened after the year 2012 and shops that opened before 2008?", "question_toks": [ "which", "location", "contains", "both", "shop", "that", "opened", "after", "year", "year", "and", "shop", "that", "opened", "before", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 11, false ], null ], 2008.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 2012.0, null ] ] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "Which", "locations", "contains", "both", "shops", "that", "opened", "after", "the", "year", "2012", "and", "shops", "that", "opened", "before", "2008", "?" ], "question_arg": [ [ "which" ], [ "location" ], [ "contains" ], [ "both" ], [ "shop" ], [ "that" ], [ "opened" ], [ "after" ], [ "year" ], [ "year" ], [ "and" ], [ "shop" ], [ "that" ], [ "opened" ], [ "before" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "location", "NN" ], [ "contains", "VBZ" ], [ "both", "DT" ], [ "shop", "NN" ], [ "that", "WDT" ], [ "opened", "VBD" ], [ "after", "IN" ], [ "year", "NN" ], [ "2012", "CD" ], [ "and", "CC" ], [ "shop", "VB" ], [ "that", "DT" ], [ "opened", "VBD" ], [ "before", "IN" ], [ "2008", "CD" ], [ "?", "." ] ], "values": [ "2008", "2012" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(5) A(0) C(11) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(4) A(0) C(11) T(1) V(0)" }, { "db_id": "device", "query": "SELECT Carrier FROM device WHERE Device_ID NOT IN (SELECT Device_ID FROM stock)", "query_toks": [ "SELECT", "Carrier", "FROM", "device", "WHERE", "Device_ID", "NOT", "IN", "(", "SELECT", "Device_ID", "FROM", "stock", ")" ], "query_toks_no_value": [ "select", "carrier", "from", "device", "where", "device_id", "not", "in", "(", "select", "device_id", "from", "stock", ")" ], "question": "List the carriers of devices that have no devices in stock.", "question_toks": [ "list", "carrier", "of", "device", "that", "have", "no", "device", "in", "stock", "." ], "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, 13, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "List", "the", "carriers", "of", "devices", "that", "have", "no", "devices", "in", "stock", "." ], "question_arg": [ [ "list" ], [ "carrier" ], [ "of" ], [ "device" ], [ "that" ], [ "have" ], [ "no" ], [ "device" ], [ "in" ], [ "stock" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "carrier", "NN" ], [ "of", "IN" ], [ "device", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "no", "DT" ], [ "device", "NN" ], [ "in", "IN" ], [ "stock", "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(2)" }, { "db_id": "device", "query": "SELECT Carrier FROM device WHERE Device_ID NOT IN (SELECT Device_ID FROM stock)", "query_toks": [ "SELECT", "Carrier", "FROM", "device", "WHERE", "Device_ID", "NOT", "IN", "(", "SELECT", "Device_ID", "FROM", "stock", ")" ], "query_toks_no_value": [ "select", "carrier", "from", "device", "where", "device_id", "not", "in", "(", "select", "device_id", "from", "stock", ")" ], "question": "What are the carriers of devices that are not in stock anywhere?", "question_toks": [ "what", "are", "carrier", "of", "device", "that", "are", "not", "in", "stock", "anywhere", "?" ], "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, 13, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "carriers", "of", "devices", "that", "are", "not", "in", "stock", "anywhere", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "carrier" ], [ "of" ], [ "device" ], [ "that" ], [ "are" ], [ "not" ], [ "in" ], [ "stock" ], [ "anywhere" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "carrier", "NN" ], [ "of", "IN" ], [ "device", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "in", "IN" ], [ "stock", "NN" ], [ "anywhere", "RB" ], [ "?", "." ] ], "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(2)" }, { "db_id": "device", "query": "SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T2.Carrier", "FROM", "stock", "AS", "T1", "JOIN", "device", "AS", "T2", "ON", "T1.Device_ID", "=", "T2.Device_ID", "GROUP", "BY", "T1.Device_ID", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t2", ".", "carrier", "from", "stock", "as", "t1", "join", "device", "as", "t2", "on", "t1", ".", "device_id", "=", "t2", ".", "device_id", "group", "by", "t1", ".", "device_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show the carriers of devices in stock at more than one shop.", "question_toks": [ "show", "carrier", "of", "device", "in", "stock", "at", "more", "than", "one", "shop", "." ], "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": [ [ 0, 13, 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": [ [ 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": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "Show", "the", "carriers", "of", "devices", "in", "stock", "at", "more", "than", "one", "shop", "." ], "question_arg": [ [ "show" ], [ "carrier" ], [ "of" ], [ "device" ], [ "in" ], [ "stock" ], [ "at" ], [ "more" ], [ "than" ], [ "one" ], [ "shop" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "carrier", "NN" ], [ "of", "IN" ], [ "device", "NN" ], [ "in", "IN" ], [ "stock", "NN" ], [ "at", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "shop", "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(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "device", "query": "SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T2.Carrier", "FROM", "stock", "AS", "T1", "JOIN", "device", "AS", "T2", "ON", "T1.Device_ID", "=", "T2.Device_ID", "GROUP", "BY", "T1.Device_ID", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t2", ".", "carrier", "from", "stock", "as", "t1", "join", "device", "as", "t2", "on", "t1", ".", "device_id", "=", "t2", ".", "device_id", "group", "by", "t1", ".", "device_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the carriers of devices that are in stock in more than a single shop?", "question_toks": [ "what", "are", "carrier", "of", "device", "that", "are", "in", "stock", "in", "more", "than", "a", "single", "shop", "?" ], "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": [ [ 0, 13, 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": [ [ 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": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "shop id", "device id", "quantity" ], "table_names": [ "device", "shop", "stock" ], "col_set": [ "*", "device id", "device", "carrier", "package version", "applications", "software platform", "shop id", "shop name", "location", "open date", "open year", "quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "carriers", "of", "devices", "that", "are", "in", "stock", "in", "more", "than", "a", "single", "shop", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "carrier" ], [ "of" ], [ "device" ], [ "that" ], [ "are" ], [ "in" ], [ "stock" ], [ "in" ], [ "more" ], [ "than" ], [ "a" ], [ "single" ], [ "shop" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "carrier", "NN" ], [ "of", "IN" ], [ "device", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "stock", "NN" ], [ "in", "IN" ], [ "more", "RBR" ], [ "than", "IN" ], [ "a", "DT" ], [ "single", "JJ" ], [ "shop", "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(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT count(*) FROM BOOKINGS", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "BOOKINGS" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "bookings" ], "question": "How many bookings do we have?", "question_toks": [ "how", "many", "booking", "do", "we", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "How", "many", "bookings", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "booking" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "booking", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(10)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT count(*) FROM BOOKINGS", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "BOOKINGS" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "bookings" ], "question": "Count the total number of bookings made.", "question_toks": [ "count", "total", "number", "of", "booking", "made", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Count", "the", "total", "number", "of", "bookings", "made", "." ], "question_arg": [ [ "count" ], [ "total" ], [ "number" ], [ "of" ], [ "booking" ], [ "made" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "booking", "VBG" ], [ "made", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(10)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Order_Date FROM BOOKINGS", "query_toks": [ "SELECT", "Order_Date", "FROM", "BOOKINGS" ], "query_toks_no_value": [ "select", "order_date", "from", "bookings" ], "question": "List the order dates of all the bookings.", "question_toks": [ "list", "order", "date", "of", "all", "booking", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 59, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "List", "the", "order", "dates", "of", "all", "the", "bookings", "." ], "question_arg": [ [ "list" ], [ "order", "date" ], [ "of" ], [ "all" ], [ "booking" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "order", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "booking", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(34) T(10)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Order_Date FROM BOOKINGS", "query_toks": [ "SELECT", "Order_Date", "FROM", "BOOKINGS" ], "query_toks_no_value": [ "select", "order_date", "from", "bookings" ], "question": "What is the order date of each booking?", "question_toks": [ "what", "is", "order", "date", "of", "each", "booking", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 59, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "is", "the", "order", "date", "of", "each", "booking", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "order", "date" ], [ "of" ], [ "each" ], [ "booking" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "order", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "booking", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(34) T(10)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Planned_Delivery_Date , Actual_Delivery_Date FROM BOOKINGS", "query_toks": [ "SELECT", "Planned_Delivery_Date", ",", "Actual_Delivery_Date", "FROM", "BOOKINGS" ], "query_toks_no_value": [ "select", "planned_delivery_date", ",", "actual_delivery_date", "from", "bookings" ], "question": "Show all the planned delivery dates and actual delivery dates of bookings.", "question_toks": [ "show", "all", "planned", "delivery", "date", "and", "actual", "delivery", "date", "of", "booking", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 60, false ], null ] ], [ 0, [ 0, [ 0, 61, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Show", "all", "the", "planned", "delivery", "dates", "and", "actual", "delivery", "dates", "of", "bookings", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "planned", "delivery", "date" ], [ "and" ], [ "actual", "delivery", "date" ], [ "of" ], [ "booking" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "planned", "VBN" ], [ "delivery", "NN" ], [ "date", "NN" ], [ "and", "CC" ], [ "actual", "JJ" ], [ "delivery", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "booking", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(35) T(10) A(0) C(36) T(10)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Planned_Delivery_Date , Actual_Delivery_Date FROM BOOKINGS", "query_toks": [ "SELECT", "Planned_Delivery_Date", ",", "Actual_Delivery_Date", "FROM", "BOOKINGS" ], "query_toks_no_value": [ "select", "planned_delivery_date", ",", "actual_delivery_date", "from", "bookings" ], "question": "What are the planned delivery date and actual delivery date for each booking?", "question_toks": [ "what", "are", "planned", "delivery", "date", "and", "actual", "delivery", "date", "for", "each", "booking", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 60, false ], null ] ], [ 0, [ 0, [ 0, 61, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "planned", "delivery", "date", "and", "actual", "delivery", "date", "for", "each", "booking", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "planned", "delivery", "date" ], [ "and" ], [ "actual", "delivery", "date" ], [ "for" ], [ "each" ], [ "booking" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "planned", "VBN" ], [ "delivery", "NN" ], [ "date", "NN" ], [ "and", "CC" ], [ "actual", "JJ" ], [ "delivery", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "booking", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(35) T(10) A(0) C(36) T(10)" }, { "db_id": "cre_Drama_Workshop_Groups", "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", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "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(8)" }, { "db_id": "cre_Drama_Workshop_Groups", "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 recorded.", "question_toks": [ "count", "number", "of", "customer", "recorded", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Count", "the", "number", "of", "customers", "recorded", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "customer" ], [ "recorded" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "recorded", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(8)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Customer_Phone , Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name = \"Harold\"", "query_toks": [ "SELECT", "Customer_Phone", ",", "Customer_Email_Address", "FROM", "CUSTOMERS", "WHERE", "Customer_Name", "=", "``", "Harold", "''" ], "query_toks_no_value": [ "select", "customer_phone", ",", "customer_email_address", "from", "customers", "where", "customer_name", "=", "value" ], "question": "What are the phone and email for customer Harold?", "question_toks": [ "what", "are", "phone", "and", "email", "for", "customer", "harold", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ], [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 43, false ], null ], "\"Harold\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "phone", "and", "email", "for", "customer", "Harold", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "phone" ], [ "and" ], [ "email" ], [ "for" ], [ "customer" ], [ "harold" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "phone", "NN" ], [ "and", "CC" ], [ "email", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "harold", "NN" ], [ "?", "." ] ], "values": [ "Harold" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(23) T(8) A(0) C(21) T(8) Filter(2) A(0) C(22) T(8) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Customer_Phone , Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name = \"Harold\"", "query_toks": [ "SELECT", "Customer_Phone", ",", "Customer_Email_Address", "FROM", "CUSTOMERS", "WHERE", "Customer_Name", "=", "``", "Harold", "''" ], "query_toks_no_value": [ "select", "customer_phone", ",", "customer_email_address", "from", "customers", "where", "customer_name", "=", "value" ], "question": "Find the phone number and email address of customer \"Harold\".", "question_toks": [ "find", "phone", "number", "and", "email", "address", "of", "customer", "'", "harold", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ], [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 43, false ], null ], "\"Harold\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Find", "the", "phone", "number", "and", "email", "address", "of", "customer", "``", "Harold", "''", "." ], "question_arg": [ [ "find" ], [ "phone" ], [ "number" ], [ "and" ], [ "email" ], [ "address" ], [ "of" ], [ "customer" ], [ "'" ], [ "harold" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "phone", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "email", "JJ" ], [ "address", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "'", "''" ], [ "harold", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Harold" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(23) T(8) A(0) C(21) T(8) Filter(2) A(0) C(22) T(8) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Store_Name FROM Drama_Workshop_Groups", "query_toks": [ "SELECT", "Store_Name", "FROM", "Drama_Workshop_Groups" ], "query_toks_no_value": [ "select", "store_name", "from", "drama_workshop_groups" ], "question": "Show all the Store_Name of drama workshop groups.", "question_toks": [ "show", "all", "store_name", "of", "drama", "workshop", "group", "." ], "sql": { "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": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Show", "all", "the", "Store_Name", "of", "drama", "workshop", "groups", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "store_name" ], [ "of" ], [ "drama", "workshop", "group" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "store_name", "NN" ], [ "of", "IN" ], [ "drama", "NN" ], [ "workshop", "NN" ], [ "group", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(26) T(6)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Store_Name FROM Drama_Workshop_Groups", "query_toks": [ "SELECT", "Store_Name", "FROM", "Drama_Workshop_Groups" ], "query_toks_no_value": [ "select", "store_name", "from", "drama_workshop_groups" ], "question": "What are the store names of drama workshop groups?", "question_toks": [ "what", "are", "store", "name", "of", "drama", "workshop", "group", "?" ], "sql": { "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": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "store", "names", "of", "drama", "workshop", "groups", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "store", "name" ], [ "of" ], [ "drama", "workshop", "group" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "store", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "drama", "NN" ], [ "workshop", "NN" ], [ "group", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(26) T(6)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT min(Order_Quantity) , avg(Order_Quantity) , max(Order_Quantity) FROM INVOICES", "query_toks": [ "SELECT", "min", "(", "Order_Quantity", ")", ",", "avg", "(", "Order_Quantity", ")", ",", "max", "(", "Order_Quantity", ")", "FROM", "INVOICES" ], "query_toks_no_value": [ "select", "min", "(", "order_quantity", ")", ",", "avg", "(", "order_quantity", ")", ",", "max", "(", "order_quantity", ")", "from", "invoices" ], "question": "Show the minimum, average, maximum order quantity of all invoices.", "question_toks": [ "show", "minimum", ",", "average", ",", "maximum", "order", "quantity", "of", "all", "invoice", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 14 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 81, false ], null ] ], [ 5, [ 0, [ 0, 81, false ], null ] ], [ 1, [ 0, [ 0, 81, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Show", "the", "minimum", ",", "average", ",", "maximum", "order", "quantity", "of", "all", "invoices", "." ], "question_arg": [ [ "show" ], [ "minimum" ], [ "," ], [ "average" ], [ "," ], [ "maximum" ], [ "order", "quantity" ], [ "of" ], [ "all" ], [ "invoice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "minimum", "NN" ], [ ",", "," ], [ "average", "JJ" ], [ ",", "," ], [ "maximum", "JJ" ], [ "order", "NN" ], [ "quantity", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "invoice", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(2) C(40) T(14) A(5) C(40) T(14) A(1) C(40) T(14)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT min(Order_Quantity) , avg(Order_Quantity) , max(Order_Quantity) FROM INVOICES", "query_toks": [ "SELECT", "min", "(", "Order_Quantity", ")", ",", "avg", "(", "Order_Quantity", ")", ",", "max", "(", "Order_Quantity", ")", "FROM", "INVOICES" ], "query_toks_no_value": [ "select", "min", "(", "order_quantity", ")", ",", "avg", "(", "order_quantity", ")", ",", "max", "(", "order_quantity", ")", "from", "invoices" ], "question": "What are the minimum, average, and maximum quantities ordered? Check all the invoices.", "question_toks": [ "what", "are", "minimum", ",", "average", ",", "and", "maximum", "quantity", "ordered", "?", "check", "all", "invoice", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 14 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 81, false ], null ] ], [ 5, [ 0, [ 0, 81, false ], null ] ], [ 1, [ 0, [ 0, 81, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "minimum", ",", "average", ",", "and", "maximum", "quantities", "ordered", "?", "Check", "all", "the", "invoices", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "minimum" ], [ "," ], [ "average" ], [ "," ], [ "and" ], [ "maximum" ], [ "quantity" ], [ "ordered" ], [ "?" ], [ "check" ], [ "all" ], [ "invoice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "minimum", "JJ" ], [ ",", "," ], [ "average", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "quantity", "NN" ], [ "ordered", "VBN" ], [ "?", "." ], [ "check", "VB" ], [ "all", "DT" ], [ "invoice", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(2) C(40) T(14) A(5) C(40) T(14) A(1) C(40) T(14)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT DISTINCT payment_method_code FROM INVOICES", "query_toks": [ "SELECT", "DISTINCT", "payment_method_code", "FROM", "INVOICES" ], "query_toks_no_value": [ "select", "distinct", "payment_method_code", "from", "invoices" ], "question": "What are the distinct payment method codes in all the invoices?", "question_toks": [ "what", "are", "distinct", "payment", "method", "code", "in", "all", "invoice", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 14 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 79, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "distinct", "payment", "method", "codes", "in", "all", "the", "invoices", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "payment", "method", "code" ], [ "in" ], [ "all" ], [ "invoice" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "payment", "NN" ], [ "method", "NN" ], [ "code", "NN" ], [ "in", "IN" ], [ "all", "DT" ], [ "invoice", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(1) T(14)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT DISTINCT payment_method_code FROM INVOICES", "query_toks": [ "SELECT", "DISTINCT", "payment_method_code", "FROM", "INVOICES" ], "query_toks_no_value": [ "select", "distinct", "payment_method_code", "from", "invoices" ], "question": "Show me the distinct payment method codes from the invoice record.", "question_toks": [ "show", "me", "distinct", "payment", "method", "code", "from", "invoice", "record", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 14 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 79, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Show", "me", "the", "distinct", "payment", "method", "codes", "from", "the", "invoice", "record", "." ], "question_arg": [ [ "show" ], [ "me" ], [ "distinct" ], [ "payment", "method", "code" ], [ "from" ], [ "invoice" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "me", "PRP" ], [ "distinct", "JJ" ], [ "payment", "NN" ], [ "method", "NN" ], [ "code", "NN" ], [ "from", "IN" ], [ "invoice", "NN" ], [ "record", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(1) T(14)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name = \"China\"", "query_toks": [ "SELECT", "Marketing_Region_Descriptrion", "FROM", "Marketing_Regions", "WHERE", "Marketing_Region_Name", "=", "``", "China", "''" ], "query_toks_no_value": [ "select", "marketing_region_descriptrion", "from", "marketing_regions", "where", "marketing_region_name", "=", "value" ], "question": "What is the description of the marketing region China?", "question_toks": [ "what", "is", "description", "of", "marketing", "region", "china", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"China\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "is", "the", "description", "of", "the", "marketing", "region", "China", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "of" ], [ "marketing", "region" ], [ "china" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "of", "IN" ], [ "marketing", "VBG" ], [ "region", "NN" ], [ "china", "NN" ], [ "?", "." ] ], "values": [ "China" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(4) Filter(2) A(0) C(18) T(4) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name = \"China\"", "query_toks": [ "SELECT", "Marketing_Region_Descriptrion", "FROM", "Marketing_Regions", "WHERE", "Marketing_Region_Name", "=", "``", "China", "''" ], "query_toks_no_value": [ "select", "marketing_region_descriptrion", "from", "marketing_regions", "where", "marketing_region_name", "=", "value" ], "question": "Find the marketing region description of China?", "question_toks": [ "find", "marketing", "region", "description", "of", "china", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"China\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Find", "the", "marketing", "region", "description", "of", "China", "?" ], "question_arg": [ [ "find" ], [ "marketing", "region" ], [ "description" ], [ "of" ], [ "china" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "marketing", "NN" ], [ "region", "NN" ], [ "description", "NN" ], [ "of", "IN" ], [ "china", "NN" ], [ "?", "." ] ], "values": [ "China" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(4) Filter(2) A(0) C(18) T(4) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price > (SELECT avg(Product_Price) FROM PRODUCTS)", "query_toks": [ "SELECT", "DISTINCT", "Product_Name", "FROM", "PRODUCTS", "WHERE", "Product_Price", ">", "(", "SELECT", "avg", "(", "Product_Price", ")", "FROM", "PRODUCTS", ")" ], "query_toks_no_value": [ "select", "distinct", "product_name", "from", "products", "where", "product_price", ">", "(", "select", "avg", "(", "product_price", ")", "from", "products", ")" ], "question": "Show all the distinct product names with price higher than the average.", "question_toks": [ "show", "all", "distinct", "product", "name", "with", "price", "higher", "than", "average", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 13, 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, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Show", "all", "the", "distinct", "product", "names", "with", "price", "higher", "than", "the", "average", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "distinct" ], [ "product", "name" ], [ "with" ], [ "price" ], [ "higher" ], [ "than" ], [ "average" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "product", "NN" ], [ "name", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(13) T(3) Filter(13) A(0) C(14) T(3) Root(5) Sel(0) N(0) A(5) C(14) T(3)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price > (SELECT avg(Product_Price) FROM PRODUCTS)", "query_toks": [ "SELECT", "DISTINCT", "Product_Name", "FROM", "PRODUCTS", "WHERE", "Product_Price", ">", "(", "SELECT", "avg", "(", "Product_Price", ")", "FROM", "PRODUCTS", ")" ], "query_toks_no_value": [ "select", "distinct", "product_name", "from", "products", "where", "product_price", ">", "(", "select", "avg", "(", "product_price", ")", "from", "products", ")" ], "question": "What are the distinct names of the products that cost more than the average?", "question_toks": [ "what", "are", "distinct", "name", "of", "product", "that", "cost", "more", "than", "average", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 13, 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, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "distinct", "names", "of", "the", "products", "that", "cost", "more", "than", "the", "average", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "name" ], [ "of" ], [ "product" ], [ "that" ], [ "cost" ], [ "more" ], [ "than" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "cost", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(13) T(3) Filter(13) A(0) C(14) T(3) Root(5) Sel(0) N(0) A(5) C(14) T(3)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1", "query_toks": [ "SELECT", "Product_Name", "FROM", "PRODUCTS", "ORDER", "BY", "Product_Price", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "product_name", "from", "products", "order", "by", "product_price", "desc", "limit", "value" ], "question": "What is the name of the most expensive product?", "question_toks": [ "what", "is", "name", "of", "most", "expensive", "product", "?" ], "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, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "most", "expensive", "product", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "most" ], [ "expensive" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "expensive", "JJ" ], [ "product", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(13) T(3) Sup(0) A(0) C(14) T(3)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1", "query_toks": [ "SELECT", "Product_Name", "FROM", "PRODUCTS", "ORDER", "BY", "Product_Price", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "product_name", "from", "products", "order", "by", "product_price", "desc", "limit", "value" ], "question": "Tell me the name of the most pricy product.", "question_toks": [ "tell", "me", "name", "of", "most", "pricy", "product", "." ], "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, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Tell", "me", "the", "name", "of", "the", "most", "pricy", "product", "." ], "question_arg": [ [ "tell" ], [ "me" ], [ "name" ], [ "of" ], [ "most" ], [ "pricy" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "tell", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "pricy", "JJ" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(13) T(3) Sup(0) A(0) C(14) T(3)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Product_Name FROM Products ORDER BY Product_Price ASC", "query_toks": [ "SELECT", "Product_Name", "FROM", "Products", "ORDER", "BY", "Product_Price", "ASC" ], "query_toks_no_value": [ "select", "product_name", "from", "products", "order", "by", "product_price", "asc" ], "question": "List all product names in ascending order of price.", "question_toks": [ "list", "all", "product", "name", "in", "ascending", "order", "of", "price", "." ], "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, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "List", "all", "product", "names", "in", "ascending", "order", "of", "price", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "product", "name" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "product", "NN" ], [ "name", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "price", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(13) T(3) Order(1) A(0) C(14) T(3)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Product_Name FROM Products ORDER BY Product_Price ASC", "query_toks": [ "SELECT", "Product_Name", "FROM", "Products", "ORDER", "BY", "Product_Price", "ASC" ], "query_toks_no_value": [ "select", "product_name", "from", "products", "order", "by", "product_price", "asc" ], "question": "Sort the names of products in ascending order of their price.", "question_toks": [ "sort", "name", "of", "product", "in", "ascending", "order", "of", "their", "price", "." ], "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, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Sort", "the", "names", "of", "products", "in", "ascending", "order", "of", "their", "price", "." ], "question_arg": [ [ "sort" ], [ "name" ], [ "of" ], [ "product" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "their" ], [ "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "sort", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "price", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(13) T(3) Order(1) A(0) C(14) T(3)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name = \"Ashley\"", "query_toks": [ "SELECT", "Customer_Phone", "FROM", "PERFORMERS", "WHERE", "Customer_Name", "=", "``", "Ashley", "''" ], "query_toks_no_value": [ "select", "customer_phone", "from", "performers", "where", "customer_name", "=", "value" ], "question": "What is the phone number of the performer Ashley?", "question_toks": [ "what", "is", "phone", "number", "of", "performer", "ashley", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 37, false ], null ], "\"Ashley\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "is", "the", "phone", "number", "of", "the", "performer", "Ashley", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "phone" ], [ "number" ], [ "of" ], [ "performer" ], [ "ashley" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "performer", "JJ" ], [ "ashley", "NN" ], [ "?", "." ] ], "values": [ "Ashley" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(7) Filter(2) A(0) C(22) T(7) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name = \"Ashley\"", "query_toks": [ "SELECT", "Customer_Phone", "FROM", "PERFORMERS", "WHERE", "Customer_Name", "=", "``", "Ashley", "''" ], "query_toks_no_value": [ "select", "customer_phone", "from", "performers", "where", "customer_name", "=", "value" ], "question": "Find the phone number of performer \"Ashley\".", "question_toks": [ "find", "phone", "number", "of", "performer", "'", "ashley", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 37, false ], null ], "\"Ashley\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Find", "the", "phone", "number", "of", "performer", "``", "Ashley", "''", "." ], "question_arg": [ [ "find" ], [ "phone" ], [ "number" ], [ "of" ], [ "performer" ], [ "'" ], [ "ashley" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "performer", "NN" ], [ "'", "''" ], [ "ashley", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Ashley" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(7) Filter(2) A(0) C(22) T(7) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT payment_method_code , count(*) FROM INVOICES GROUP BY payment_method_code", "query_toks": [ "SELECT", "payment_method_code", ",", "count", "(", "*", ")", "FROM", "INVOICES", "GROUP", "BY", "payment_method_code" ], "query_toks_no_value": [ "select", "payment_method_code", ",", "count", "(", "*", ")", "from", "invoices", "group", "by", "payment_method_code" ], "question": "Show all payment method codes and the number of orders for each code.", "question_toks": [ "show", "all", "payment", "method", "code", "and", "number", "of", "order", "for", "each", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 14 ] ] }, "groupBy": [ [ 0, 79, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 79, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Show", "all", "payment", "method", "codes", "and", "the", "number", "of", "orders", "for", "each", "code", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "payment", "method", "code" ], [ "and" ], [ "number" ], [ "of" ], [ "order" ], [ "for" ], [ "each" ], [ "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "payment", "NN" ], [ "method", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(14) A(3) C(0) T(14)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT payment_method_code , count(*) FROM INVOICES GROUP BY payment_method_code", "query_toks": [ "SELECT", "payment_method_code", ",", "count", "(", "*", ")", "FROM", "INVOICES", "GROUP", "BY", "payment_method_code" ], "query_toks_no_value": [ "select", "payment_method_code", ",", "count", "(", "*", ")", "from", "invoices", "group", "by", "payment_method_code" ], "question": "List the distinct payment method codes with the number of orders made", "question_toks": [ "list", "distinct", "payment", "method", "code", "with", "number", "of", "order", "made" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 14 ] ] }, "groupBy": [ [ 0, 79, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 79, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "List", "the", "distinct", "payment", "method", "codes", "with", "the", "number", "of", "orders", "made" ], "question_arg": [ [ "list" ], [ "distinct" ], [ "payment", "method", "code" ], [ "with" ], [ "number" ], [ "of" ], [ "order" ], [ "made" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "distinct", "JJ" ], [ "payment", "NN" ], [ "method", "NN" ], [ "code", "NN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "made", "VBD" ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(14) A(3) C(0) T(14)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "payment_method_code", "FROM", "INVOICES", "GROUP", "BY", "payment_method_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "payment_method_code", "from", "invoices", "group", "by", "payment_method_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the payment method code used by the most orders?", "question_toks": [ "what", "is", "payment", "method", "code", "used", "by", "most", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 14 ] ] }, "groupBy": [ [ 0, 79, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 79, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "is", "the", "payment", "method", "code", "used", "by", "the", "most", "orders", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "payment", "method", "code" ], [ "used" ], [ "by" ], [ "most" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "payment", "NN" ], [ "method", "NN" ], [ "code", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "most", "JJS" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(1) T(14) Sup(0) A(3) C(0) T(14)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "payment_method_code", "FROM", "INVOICES", "GROUP", "BY", "payment_method_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "payment_method_code", "from", "invoices", "group", "by", "payment_method_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the payment method that is used the most often in all the invoices. Give me its code.", "question_toks": [ "find", "payment", "method", "that", "is", "used", "most", "often", "in", "all", "invoice", ".", "give", "me", "it", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 14 ] ] }, "groupBy": [ [ 0, 79, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 79, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Find", "the", "payment", "method", "that", "is", "used", "the", "most", "often", "in", "all", "the", "invoices", ".", "Give", "me", "its", "code", "." ], "question_arg": [ [ "find" ], [ "payment" ], [ "method" ], [ "that" ], [ "is" ], [ "used" ], [ "most" ], [ "often" ], [ "in" ], [ "all" ], [ "invoice" ], [ "." ], [ "give" ], [ "me" ], [ "it" ], [ "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "payment", "NN" ], [ "method", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "used", "VBN" ], [ "most", "RBS" ], [ "often", "RB" ], [ "in", "IN" ], [ "all", "DT" ], [ "invoice", "NN" ], [ ".", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "it", "PRP" ], [ "code", "VBZ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(1) T(14) Sup(0) A(3) C(0) T(14)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = \"FJA Filming\"", "query_toks": [ "SELECT", "T1.City_Town", "FROM", "Addresses", "AS", "T1", "JOIN", "Stores", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID", "WHERE", "T2.Store_Name", "=", "``", "FJA", "Filming", "''" ], "query_toks_no_value": [ "select", "t1", ".", "city_town", "from", "addresses", "as", "t1", "join", "stores", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "store_name", "=", "value" ], "question": "Which city is the address of the store named \"FJA Filming\" located in?", "question_toks": [ "which", "city", "is", "address", "of", "store", "named", "'", "fja", "filming", "'", "located", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 48, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 50, false ], null ], "\"FJA Filming\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Which", "city", "is", "the", "address", "of", "the", "store", "named", "``", "FJA", "Filming", "''", "located", "in", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "is" ], [ "address" ], [ "of" ], [ "store" ], [ "named" ], [ "'" ], [ "fja" ], [ "filming" ], [ "'" ], [ "located" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "is", "VBZ" ], [ "address", "JJ" ], [ "of", "IN" ], [ "store", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "fja", "JJ" ], [ "filming", "VBG" ], [ "'", "''" ], [ "located", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "FJA Filming" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(26) T(9) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = \"FJA Filming\"", "query_toks": [ "SELECT", "T1.City_Town", "FROM", "Addresses", "AS", "T1", "JOIN", "Stores", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID", "WHERE", "T2.Store_Name", "=", "``", "FJA", "Filming", "''" ], "query_toks_no_value": [ "select", "t1", ".", "city_town", "from", "addresses", "as", "t1", "join", "stores", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "store_name", "=", "value" ], "question": "Find the city the store named \"FJA Filming\" is in.", "question_toks": [ "find", "city", "store", "named", "'", "fja", "filming", "'", "is", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 48, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 50, false ], null ], "\"FJA Filming\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Find", "the", "city", "the", "store", "named", "``", "FJA", "Filming", "''", "is", "in", "." ], "question_arg": [ [ "find" ], [ "city" ], [ "store" ], [ "named" ], [ "'" ], [ "fja" ], [ "filming" ], [ "'" ], [ "is" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "city", "NN" ], [ "store", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "fja", "JJ" ], [ "filming", "VBG" ], [ "'", "''" ], [ "is", "VBZ" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "FJA Filming" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(26) T(9) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Marketing_Region_Code = \"CA\"", "query_toks": [ "SELECT", "T1.State_County", "FROM", "Addresses", "AS", "T1", "JOIN", "Stores", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID", "WHERE", "T2.Marketing_Region_Code", "=", "``", "CA", "''" ], "query_toks_no_value": [ "select", "t1", ".", "state_county", "from", "addresses", "as", "t1", "join", "stores", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "marketing_region_code", "=", "value" ], "question": "What are the states or counties of the address of the stores with marketing region code \"CA\"?", "question_toks": [ "what", "are", "state", "or", "county", "of", "address", "of", "store", "with", "marketing", "region", "code", "'", "ca", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 48, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 49, false ], null ], "\"CA\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "states", "or", "counties", "of", "the", "address", "of", "the", "stores", "with", "marketing", "region", "code", "``", "CA", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "state" ], [ "or" ], [ "county" ], [ "of" ], [ "address" ], [ "of" ], [ "store" ], [ "with" ], [ "marketing", "region", "code" ], [ "'" ], [ "ca" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "state", "NN" ], [ "or", "CC" ], [ "county", "NN" ], [ "of", "IN" ], [ "address", "NN" ], [ "of", "IN" ], [ "store", "NN" ], [ "with", "IN" ], [ "marketing", "VBG" ], [ "region", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "ca", "MD" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "CA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(2) A(0) C(17) T(9) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Marketing_Region_Code = \"CA\"", "query_toks": [ "SELECT", "T1.State_County", "FROM", "Addresses", "AS", "T1", "JOIN", "Stores", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID", "WHERE", "T2.Marketing_Region_Code", "=", "``", "CA", "''" ], "query_toks_no_value": [ "select", "t1", ".", "state_county", "from", "addresses", "as", "t1", "join", "stores", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "marketing_region_code", "=", "value" ], "question": "Find the states or counties where the stores with marketing region code \"CA\" are located.", "question_toks": [ "find", "state", "or", "county", "where", "store", "with", "marketing", "region", "code", "'", "ca", "'", "are", "located", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 48, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 49, false ], null ], "\"CA\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Find", "the", "states", "or", "counties", "where", "the", "stores", "with", "marketing", "region", "code", "``", "CA", "''", "are", "located", "." ], "question_arg": [ [ "find" ], [ "state" ], [ "or" ], [ "county" ], [ "where" ], [ "store" ], [ "with" ], [ "marketing", "region", "code" ], [ "'" ], [ "ca" ], [ "'" ], [ "are" ], [ "located" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "state", "NN" ], [ "or", "CC" ], [ "county", "NN" ], [ "where", "WRB" ], [ "store", "NN" ], [ "with", "IN" ], [ "marketing", "VBG" ], [ "region", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "ca", "MD" ], [ "'", "''" ], [ "are", "VBP" ], [ "located", "VBN" ], [ ".", "." ] ], "values": [ "CA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(2) A(0) C(17) T(9) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code = T2.Marketing_Region_Code WHERE T2.Store_Name = \"Rob Dinning\"", "query_toks": [ "SELECT", "T1.Marketing_Region_Name", "FROM", "Marketing_Regions", "AS", "T1", "JOIN", "Stores", "AS", "T2", "ON", "T1.Marketing_Region_Code", "=", "T2.Marketing_Region_Code", "WHERE", "T2.Store_Name", "=", "``", "Rob", "Dinning", "''" ], "query_toks_no_value": [ "select", "t1", ".", "marketing_region_name", "from", "marketing_regions", "as", "t1", "join", "stores", "as", "t2", "on", "t1", ".", "marketing_region_code", "=", "t2", ".", "marketing_region_code", "where", "t2", ".", "store_name", "=", "value" ], "question": "What is the name of the marketing region that the store Rob Dinning belongs to?", "question_toks": [ "what", "is", "name", "of", "marketing", "region", "that", "store", "rob", "dinning", "belongs", "to", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 49, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 50, false ], null ], "\"Rob Dinning\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "marketing", "region", "that", "the", "store", "Rob", "Dinning", "belongs", "to", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "marketing", "region" ], [ "that" ], [ "store" ], [ "rob" ], [ "dinning" ], [ "belongs" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "marketing", "VBG" ], [ "region", "NN" ], [ "that", "IN" ], [ "store", "NN" ], [ "rob", "NN" ], [ "dinning", "VBG" ], [ "belongs", "NNS" ], [ "to", "TO" ], [ "?", "." ] ], "values": [ "dinning", "Rob Dinning" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(4) Filter(2) A(0) C(26) T(9) V(1)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code = T2.Marketing_Region_Code WHERE T2.Store_Name = \"Rob Dinning\"", "query_toks": [ "SELECT", "T1.Marketing_Region_Name", "FROM", "Marketing_Regions", "AS", "T1", "JOIN", "Stores", "AS", "T2", "ON", "T1.Marketing_Region_Code", "=", "T2.Marketing_Region_Code", "WHERE", "T2.Store_Name", "=", "``", "Rob", "Dinning", "''" ], "query_toks_no_value": [ "select", "t1", ".", "marketing_region_name", "from", "marketing_regions", "as", "t1", "join", "stores", "as", "t2", "on", "t1", ".", "marketing_region_code", "=", "t2", ".", "marketing_region_code", "where", "t2", ".", "store_name", "=", "value" ], "question": "Return the name of the marketing region the store Rob Dinning is located in.", "question_toks": [ "return", "name", "of", "marketing", "region", "store", "rob", "dinning", "is", "located", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 49, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 50, false ], null ], "\"Rob Dinning\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Return", "the", "name", "of", "the", "marketing", "region", "the", "store", "Rob", "Dinning", "is", "located", "in", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "marketing", "region" ], [ "store" ], [ "rob" ], [ "dinning" ], [ "is" ], [ "located" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "marketing", "VBG" ], [ "region", "NN" ], [ "store", "NN" ], [ "rob", "NN" ], [ "dinning", "NN" ], [ "is", "VBZ" ], [ "located", "VBN" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "dinning", "Rob Dinning" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(4) Filter(2) A(0) C(26) T(9) V(1)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Price > 100", "query_toks": [ "SELECT", "T1.Service_Type_Description", "FROM", "Ref_Service_Types", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Service_Type_Code", "=", "T2.Service_Type_Code", "WHERE", "T2.Product_Price", ">", "100" ], "query_toks_no_value": [ "select", "t1", ".", "service_type_description", "from", "ref_service_types", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_type_code", "=", "t2", ".", "service_type_code", "where", "t2", ".", "product_price", ">", "value" ], "question": "What are the descriptions of the service types with product price above 100?", "question_toks": [ "what", "are", "description", "of", "service", "type", "with", "product", "price", "above", "100", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 85, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 15 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 89, false ], null ], 100.0, null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "descriptions", "of", "the", "service", "types", "with", "product", "price", "above", "100", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "description" ], [ "of" ], [ "service" ], [ "type" ], [ "with" ], [ "product", "price" ], [ "above" ], [ "100" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "description", "NN" ], [ "of", "IN" ], [ "service", "NN" ], [ "type", "NN" ], [ "with", "IN" ], [ "product", "NN" ], [ "price", "NN" ], [ "above", "IN" ], [ "100", "CD" ], [ "?", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(5) A(0) C(14) T(15) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Price > 100", "query_toks": [ "SELECT", "T1.Service_Type_Description", "FROM", "Ref_Service_Types", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Service_Type_Code", "=", "T2.Service_Type_Code", "WHERE", "T2.Product_Price", ">", "100" ], "query_toks_no_value": [ "select", "t1", ".", "service_type_description", "from", "ref_service_types", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_type_code", "=", "t2", ".", "service_type_code", "where", "t2", ".", "product_price", ">", "value" ], "question": "Give me the descriptions of the service types that cost more than 100.", "question_toks": [ "give", "me", "description", "of", "service", "type", "that", "cost", "more", "than", "100", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 85, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 15 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 89, false ], null ], 100.0, null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Give", "me", "the", "descriptions", "of", "the", "service", "types", "that", "cost", "more", "than", "100", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "description" ], [ "of" ], [ "service" ], [ "type" ], [ "that" ], [ "cost" ], [ "more" ], [ "than" ], [ "100" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "description", "NN" ], [ "of", "IN" ], [ "service", "NN" ], [ "type", "NN" ], [ "that", "WDT" ], [ "cost", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ ".", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(5) A(0) C(14) T(15) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Service_Type_Description , T2.Service_Type_Code , COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T2.Service_Type_Code", "query_toks": [ "SELECT", "T1.Service_Type_Description", ",", "T2.Service_Type_Code", ",", "COUNT", "(", "*", ")", "FROM", "Ref_Service_Types", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Service_Type_Code", "=", "T2.Service_Type_Code", "GROUP", "BY", "T2.Service_Type_Code" ], "query_toks_no_value": [ "select", "t1", ".", "service_type_description", ",", "t2", ".", "service_type_code", ",", "count", "(", "*", ")", "from", "ref_service_types", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_type_code", "=", "t2", ".", "service_type_code", "group", "by", "t2", ".", "service_type_code" ], "question": "What is the description, code and the corresponding count of each service type?", "question_toks": [ "what", "is", "description", ",", "code", "and", "corresponding", "count", "of", "each", "service", "type", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 85, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 15 ] ] }, "groupBy": [ [ 0, 85, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 85, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "is", "the", "description", ",", "code", "and", "the", "corresponding", "count", "of", "each", "service", "type", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "," ], [ "code" ], [ "and" ], [ "corresponding" ], [ "count" ], [ "of" ], [ "each" ], [ "service" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ ",", "," ], [ "code", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "count", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "service", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(5) T(1) A(0) C(3) T(15) A(3) C(0) T(15)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Service_Type_Description , T2.Service_Type_Code , COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T2.Service_Type_Code", "query_toks": [ "SELECT", "T1.Service_Type_Description", ",", "T2.Service_Type_Code", ",", "COUNT", "(", "*", ")", "FROM", "Ref_Service_Types", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Service_Type_Code", "=", "T2.Service_Type_Code", "GROUP", "BY", "T2.Service_Type_Code" ], "query_toks_no_value": [ "select", "t1", ".", "service_type_description", ",", "t2", ".", "service_type_code", ",", "count", "(", "*", ")", "from", "ref_service_types", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_type_code", "=", "t2", ".", "service_type_code", "group", "by", "t2", ".", "service_type_code" ], "question": "List the description, code and the number of services for each service type.", "question_toks": [ "list", "description", ",", "code", "and", "number", "of", "service", "for", "each", "service", "type", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 85, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 15 ] ] }, "groupBy": [ [ 0, 85, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 85, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "List", "the", "description", ",", "code", "and", "the", "number", "of", "services", "for", "each", "service", "type", "." ], "question_arg": [ [ "list" ], [ "description" ], [ "," ], [ "code" ], [ "and" ], [ "number" ], [ "of" ], [ "service" ], [ "for" ], [ "each" ], [ "service" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "description", "NN" ], [ ",", "," ], [ "code", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "service", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "service", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(5) T(1) A(0) C(3) T(15) A(3) C(0) T(15)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Service_Type_Description , T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Service_Type_Description", ",", "T1.Service_Type_Code", "FROM", "Ref_Service_Types", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Service_Type_Code", "=", "T2.Service_Type_Code", "GROUP", "BY", "T1.Service_Type_Code", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "service_type_description", ",", "t1", ".", "service_type_code", "from", "ref_service_types", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_type_code", "=", "t2", ".", "service_type_code", "group", "by", "t1", ".", "service_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the description and code of the type of service that is performed the most often?", "question_toks": [ "what", "is", "description", "and", "code", "of", "type", "of", "service", "that", "is", "performed", "most", "often", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 85, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 15 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 85, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 15 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "is", "the", "description", "and", "code", "of", "the", "type", "of", "service", "that", "is", "performed", "the", "most", "often", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "and" ], [ "code" ], [ "of" ], [ "type" ], [ "of" ], [ "service" ], [ "that" ], [ "is" ], [ "performed" ], [ "most" ], [ "often" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "and", "CC" ], [ "code", "NN" ], [ "of", "IN" ], [ "type", "NN" ], [ "of", "IN" ], [ "service", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "performed", "VBN" ], [ "most", "RBS" ], [ "often", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(5) T(1) A(0) C(3) T(1) Sup(0) A(3) C(0) T(15) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(15)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Service_Type_Description , T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Service_Type_Description", ",", "T1.Service_Type_Code", "FROM", "Ref_Service_Types", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Service_Type_Code", "=", "T2.Service_Type_Code", "GROUP", "BY", "T1.Service_Type_Code", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "service_type_description", ",", "t1", ".", "service_type_code", "from", "ref_service_types", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_type_code", "=", "t2", ".", "service_type_code", "group", "by", "t1", ".", "service_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the description and code of the service type that is performed the most times.", "question_toks": [ "find", "description", "and", "code", "of", "service", "type", "that", "is", "performed", "most", "time", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 85, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 15 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 85, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 15 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Find", "the", "description", "and", "code", "of", "the", "service", "type", "that", "is", "performed", "the", "most", "times", "." ], "question_arg": [ [ "find" ], [ "description" ], [ "and" ], [ "code" ], [ "of" ], [ "service" ], [ "type" ], [ "that" ], [ "is" ], [ "performed" ], [ "most" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "description", "NN" ], [ "and", "CC" ], [ "code", "NN" ], [ "of", "IN" ], [ "service", "NN" ], [ "type", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "performed", "VBN" ], [ "most", "RBS" ], [ "time", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(5) T(1) A(0) C(3) T(1) Sup(0) A(3) C(0) T(15) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(15)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Store_Phone , T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID", "query_toks": [ "SELECT", "T1.Store_Phone", ",", "T1.Store_Email_Address", "FROM", "Drama_Workshop_Groups", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Workshop_Group_ID", "=", "T2.Workshop_Group_ID" ], "query_toks_no_value": [ "select", "t1", ".", "store_phone", ",", "t1", ".", "store_email_address", "from", "drama_workshop_groups", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "workshop_group_id", "=", "t2", ".", "workshop_group_id" ], "question": "What are the phones and emails of workshop groups in which services are performed?", "question_toks": [ "what", "are", "phone", "and", "email", "of", "workshop", "group", "in", "which", "service", "are", "performed", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 86, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 15 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 27, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 86, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 15 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "phones", "and", "emails", "of", "workshop", "groups", "in", "which", "services", "are", "performed", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "phone" ], [ "and" ], [ "email" ], [ "of" ], [ "workshop", "group", "id" ], [ "in" ], [ "which" ], [ "service" ], [ "are" ], [ "performed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "phone", "NN" ], [ "and", "CC" ], [ "email", "NN" ], [ "of", "IN" ], [ "workshop", "NN" ], [ "group", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "service", "NN" ], [ "are", "VBP" ], [ "performed", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(27) T(6) A(0) C(28) T(6) Filter(18) A(0) C(24) T(6) Root(5) Sel(0) N(0) A(0) C(24) T(15)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Store_Phone , T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID", "query_toks": [ "SELECT", "T1.Store_Phone", ",", "T1.Store_Email_Address", "FROM", "Drama_Workshop_Groups", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Workshop_Group_ID", "=", "T2.Workshop_Group_ID" ], "query_toks_no_value": [ "select", "t1", ".", "store_phone", ",", "t1", ".", "store_email_address", "from", "drama_workshop_groups", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "workshop_group_id", "=", "t2", ".", "workshop_group_id" ], "question": "Give me all the phone numbers and email addresses of the workshop groups where services are performed.", "question_toks": [ "give", "me", "all", "phone", "number", "and", "email", "address", "of", "workshop", "group", "where", "service", "are", "performed", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 86, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 15 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 27, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 86, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 15 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Give", "me", "all", "the", "phone", "numbers", "and", "email", "addresses", "of", "the", "workshop", "groups", "where", "services", "are", "performed", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "all" ], [ "phone" ], [ "number" ], [ "and" ], [ "email" ], [ "address" ], [ "of" ], [ "workshop", "group", "id" ], [ "where" ], [ "service" ], [ "are" ], [ "performed" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "all", "DT" ], [ "phone", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "email", "JJ" ], [ "address", "NN" ], [ "of", "IN" ], [ "workshop", "NN" ], [ "group", "NN" ], [ "where", "WRB" ], [ "service", "NN" ], [ "are", "VBP" ], [ "performed", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(27) T(6) A(0) C(28) T(6) Filter(18) A(0) C(24) T(6) Root(5) Sel(0) N(0) A(0) C(24) T(15)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Store_Phone , T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Product_Name = \"film\"", "query_toks": [ "SELECT", "T1.Store_Phone", ",", "T1.Store_Email_Address", "FROM", "Drama_Workshop_Groups", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Workshop_Group_ID", "=", "T2.Workshop_Group_ID", "WHERE", "T2.Product_Name", "=", "``", "film", "''" ], "query_toks_no_value": [ "select", "t1", ".", "store_phone", ",", "t1", ".", "store_email_address", "from", "drama_workshop_groups", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "workshop_group_id", "=", "t2", ".", "workshop_group_id", "where", "t2", ".", "product_name", "=", "value" ], "question": "What are the names of workshop groups in which services with product name \"film\" are performed?", "question_toks": [ "what", "are", "name", "of", "workshop", "group", "in", "which", "service", "with", "product", "name", "'", "film", "'", "are", "performed", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 86, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 15 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 88, false ], null ], "\"film\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "workshop", "groups", "in", "which", "services", "with", "product", "name", "``", "film", "''", "are", "performed", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "workshop", "group", "id" ], [ "in" ], [ "which" ], [ "service" ], [ "with" ], [ "product", "name" ], [ "'" ], [ "film" ], [ "'" ], [ "are" ], [ "performed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "workshop", "NN" ], [ "group", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "service", "NN" ], [ "with", "IN" ], [ "product", "NN" ], [ "name", "NN" ], [ "'", "''" ], [ "film", "NN" ], [ "'", "''" ], [ "are", "VBP" ], [ "performed", "VBN" ], [ "?", "." ] ], "values": [ "film" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(27) T(6) A(0) C(28) T(6) Filter(2) A(0) C(13) T(15) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Store_Phone , T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Product_Name = \"film\"", "query_toks": [ "SELECT", "T1.Store_Phone", ",", "T1.Store_Email_Address", "FROM", "Drama_Workshop_Groups", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Workshop_Group_ID", "=", "T2.Workshop_Group_ID", "WHERE", "T2.Product_Name", "=", "``", "film", "''" ], "query_toks_no_value": [ "select", "t1", ".", "store_phone", ",", "t1", ".", "store_email_address", "from", "drama_workshop_groups", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "workshop_group_id", "=", "t2", ".", "workshop_group_id", "where", "t2", ".", "product_name", "=", "value" ], "question": "Find the names of the workshop groups where services with product name \"film\" are performed.", "question_toks": [ "find", "name", "of", "workshop", "group", "where", "service", "with", "product", "name", "'", "film", "'", "are", "performed", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 86, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 15 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 88, false ], null ], "\"film\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "workshop", "groups", "where", "services", "with", "product", "name", "``", "film", "''", "are", "performed", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "workshop", "group", "id" ], [ "where" ], [ "service" ], [ "with" ], [ "product", "name" ], [ "'" ], [ "film" ], [ "'" ], [ "are" ], [ "performed" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "workshop", "NN" ], [ "group", "NN" ], [ "where", "WRB" ], [ "service", "NN" ], [ "with", "IN" ], [ "product", "NN" ], [ "name", "NN" ], [ "'", "''" ], [ "film", "NN" ], [ "'", "''" ], [ "are", "VBP" ], [ "performed", "VBN" ], [ ".", "." ] ], "values": [ "film" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(27) T(6) A(0) C(28) T(6) Filter(2) A(0) C(13) T(15) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Product_Name , avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name", "query_toks": [ "SELECT", "Product_Name", ",", "avg", "(", "Product_Price", ")", "FROM", "PRODUCTS", "GROUP", "BY", "Product_Name" ], "query_toks_no_value": [ "select", "product_name", ",", "avg", "(", "product_price", ")", "from", "products", "group", "by", "product_name" ], "question": "What are the different product names? What is the average product price for each of them?", "question_toks": [ "what", "are", "different", "product", "name", "?", "what", "is", "average", "product", "price", "for", "each", "of", "them", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "different", "product", "names", "?", "What", "is", "the", "average", "product", "price", "for", "each", "of", "them", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "product", "name" ], [ "?" ], [ "what" ], [ "is" ], [ "average" ], [ "product", "price" ], [ "for" ], [ "each" ], [ "of" ], [ "them" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "product", "NN" ], [ "name", "NN" ], [ "?", "." ], [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "product", "NN" ], [ "price", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "of", "IN" ], [ "them", "PRP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(3) A(5) C(14) T(3)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Product_Name , avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name", "query_toks": [ "SELECT", "Product_Name", ",", "avg", "(", "Product_Price", ")", "FROM", "PRODUCTS", "GROUP", "BY", "Product_Name" ], "query_toks_no_value": [ "select", "product_name", ",", "avg", "(", "product_price", ")", "from", "products", "group", "by", "product_name" ], "question": "For each distinct product name, show its average product price.", "question_toks": [ "for", "each", "distinct", "product", "name", ",", "show", "it", "average", "product", "price", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "For", "each", "distinct", "product", "name", ",", "show", "its", "average", "product", "price", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "distinct" ], [ "product", "name" ], [ "," ], [ "show" ], [ "it" ], [ "average" ], [ "product", "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "distinct", "JJ" ], [ "product", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "show", "VBP" ], [ "it", "PRP" ], [ "average", "JJ" ], [ "product", "NN" ], [ "price", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(3) A(5) C(14) T(3)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price) < 1000000", "query_toks": [ "SELECT", "Product_Name", "FROM", "PRODUCTS", "GROUP", "BY", "Product_Name", "HAVING", "avg", "(", "Product_Price", ")", "<", "1000000" ], "query_toks_no_value": [ "select", "product_name", "from", "products", "group", "by", "product_name", "having", "avg", "(", "product_price", ")", "<", "value" ], "question": "What are the product names with average product price smaller than 1000000?", "question_toks": [ "what", "are", "product", "name", "with", "average", "product", "price", "smaller", "than", "1000000", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 4, [ 0, [ 5, 14, false ], null ], 1000000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "product", "names", "with", "average", "product", "price", "smaller", "than", "1000000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "product", "name" ], [ "with" ], [ "average" ], [ "product", "price" ], [ "smaller" ], [ "than" ], [ "1000000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "product", "NN" ], [ "name", "NN" ], [ "with", "IN" ], [ "average", "JJ" ], [ "product", "NN" ], [ "price", "NN" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "1000000", "CD" ], [ "?", "." ] ], "values": [ "1000000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(3) Filter(4) A(5) C(14) T(3) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price) < 1000000", "query_toks": [ "SELECT", "Product_Name", "FROM", "PRODUCTS", "GROUP", "BY", "Product_Name", "HAVING", "avg", "(", "Product_Price", ")", "<", "1000000" ], "query_toks_no_value": [ "select", "product_name", "from", "products", "group", "by", "product_name", "having", "avg", "(", "product_price", ")", "<", "value" ], "question": "Find the product names whose average product price is below 1000000.", "question_toks": [ "find", "product", "name", "whose", "average", "product", "price", "is", "below", "1000000", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 4, [ 0, [ 5, 14, false ], null ], 1000000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Find", "the", "product", "names", "whose", "average", "product", "price", "is", "below", "1000000", "." ], "question_arg": [ [ "find" ], [ "product", "name" ], [ "whose" ], [ "average" ], [ "product", "price" ], [ "is" ], [ "below" ], [ "1000000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "product", "NN" ], [ "name", "NN" ], [ "whose", "WP$" ], [ "average", "JJ" ], [ "product", "NN" ], [ "price", "NN" ], [ "is", "VBZ" ], [ "below", "IN" ], [ "1000000", "CD" ], [ ".", "." ] ], "values": [ "1000000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(3) Filter(4) A(5) C(14) T(3) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT sum(T1.Order_Quantity) FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_Name = \"photo\"", "query_toks": [ "SELECT", "sum", "(", "T1.Order_Quantity", ")", "FROM", "ORDER_ITEMS", "AS", "T1", "JOIN", "Products", "AS", "T2", "ON", "T1.Product_ID", "=", "T2.Product_ID", "WHERE", "T2.Product_Name", "=", "``", "photo", "''" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "order_quantity", ")", "from", "order_items", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t2", ".", "product_name", "=", "value" ], "question": "What are the total order quantities of photo products?", "question_toks": [ "what", "are", "total", "order", "quantity", "of", "photo", "product", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 74, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 75, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"photo\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "total", "order", "quantities", "of", "photo", "products", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "total" ], [ "order", "quantity" ], [ "of" ], [ "photo" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "order", "NN" ], [ "quantity", "NN" ], [ "of", "IN" ], [ "photo", "NN" ], [ "product", "NN" ], [ "?", "." ] ], "values": [ "photo" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(40) T(13) Filter(2) A(0) C(13) T(3) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT sum(T1.Order_Quantity) FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_Name = \"photo\"", "query_toks": [ "SELECT", "sum", "(", "T1.Order_Quantity", ")", "FROM", "ORDER_ITEMS", "AS", "T1", "JOIN", "Products", "AS", "T2", "ON", "T1.Product_ID", "=", "T2.Product_ID", "WHERE", "T2.Product_Name", "=", "``", "photo", "''" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "order_quantity", ")", "from", "order_items", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t2", ".", "product_name", "=", "value" ], "question": "Compute the total order quantities of the product \"photo\".", "question_toks": [ "compute", "total", "order", "quantity", "of", "product", "'", "photo", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 74, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 75, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"photo\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Compute", "the", "total", "order", "quantities", "of", "the", "product", "``", "photo", "''", "." ], "question_arg": [ [ "compute" ], [ "total" ], [ "order", "quantity" ], [ "of" ], [ "product" ], [ "'" ], [ "photo" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "compute", "NN" ], [ "total", "JJ" ], [ "order", "NN" ], [ "quantity", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "'", "''" ], [ "photo", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "photo" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(40) T(13) Filter(2) A(0) C(13) T(3) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Other_Item_Details FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_price > 2000", "query_toks": [ "SELECT", "T1.Other_Item_Details", "FROM", "ORDER_ITEMS", "AS", "T1", "JOIN", "Products", "AS", "T2", "ON", "T1.Product_ID", "=", "T2.Product_ID", "WHERE", "T2.Product_price", ">", "2000" ], "query_toks_no_value": [ "select", "t1", ".", "other_item_details", "from", "order_items", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t2", ".", "product_price", ">", "value" ], "question": "What are the order details of the products with price higher than 2000?", "question_toks": [ "what", "are", "order", "detail", "of", "product", "with", "price", "higher", "than", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 74, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 76, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], 2000.0, null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "order", "details", "of", "the", "products", "with", "price", "higher", "than", "2000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "other", "order", "detail" ], [ "of" ], [ "product" ], [ "with" ], [ "price" ], [ "higher" ], [ "than" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "order", "NN" ], [ "detail", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "2000", "CD" ], [ "?", "." ] ], "values": [ "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(41) T(13) Filter(5) A(0) C(14) T(3) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Other_Item_Details FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_price > 2000", "query_toks": [ "SELECT", "T1.Other_Item_Details", "FROM", "ORDER_ITEMS", "AS", "T1", "JOIN", "Products", "AS", "T2", "ON", "T1.Product_ID", "=", "T2.Product_ID", "WHERE", "T2.Product_price", ">", "2000" ], "query_toks_no_value": [ "select", "t1", ".", "other_item_details", "from", "order_items", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t2", ".", "product_price", ">", "value" ], "question": "Find the order detail for the products with price above 2000.", "question_toks": [ "find", "order", "detail", "for", "product", "with", "price", "above", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 74, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 76, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], 2000.0, null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Find", "the", "order", "detail", "for", "the", "products", "with", "price", "above", "2000", "." ], "question_arg": [ [ "find" ], [ "other", "order", "detail" ], [ "for" ], [ "product" ], [ "with" ], [ "price" ], [ "above" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "order", "NN" ], [ "detail", "NN" ], [ "for", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "above", "IN" ], [ "2000", "CD" ], [ ".", "." ] ], "values": [ "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(41) T(13) Filter(5) A(0) C(14) T(3) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID WHERE T2.Order_Quantity = 1", "query_toks": [ "SELECT", "T1.Actual_Delivery_Date", "FROM", "Customer_Orders", "AS", "T1", "JOIN", "ORDER_ITEMS", "AS", "T2", "ON", "T1.Order_ID", "=", "T2.Order_ID", "WHERE", "T2.Order_Quantity", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "actual_delivery_date", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t2", ".", "order_quantity", "=", "value" ], "question": "What are the actual delivery dates of orders with quantity 1?", "question_toks": [ "what", "are", "actual", "delivery", "date", "of", "order", "with", "quantity", "1", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 65, false ], null ], [ 0, 73, false ], null ] ], "table_units": [ [ "table_unit", 12 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 70, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 75, false ], null ], 1.0, null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "actual", "delivery", "dates", "of", "orders", "with", "quantity", "1", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "actual", "delivery", "date" ], [ "of" ], [ "order" ], [ "with" ], [ "quantity" ], [ "1" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "actual", "JJ" ], [ "delivery", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "with", "IN" ], [ "quantity", "NN" ], [ "1", "CD" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(36) T(12) Filter(2) A(0) C(40) T(13) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID WHERE T2.Order_Quantity = 1", "query_toks": [ "SELECT", "T1.Actual_Delivery_Date", "FROM", "Customer_Orders", "AS", "T1", "JOIN", "ORDER_ITEMS", "AS", "T2", "ON", "T1.Order_ID", "=", "T2.Order_ID", "WHERE", "T2.Order_Quantity", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "actual_delivery_date", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t2", ".", "order_quantity", "=", "value" ], "question": "List the actual delivery date for all the orders with quantity 1", "question_toks": [ "list", "actual", "delivery", "date", "for", "all", "order", "with", "quantity", "1" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 65, false ], null ], [ 0, 73, false ], null ] ], "table_units": [ [ "table_unit", 12 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 70, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 75, false ], null ], 1.0, null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "List", "the", "actual", "delivery", "date", "for", "all", "the", "orders", "with", "quantity", "1" ], "question_arg": [ [ "list" ], [ "actual", "delivery", "date" ], [ "for" ], [ "all" ], [ "order" ], [ "with" ], [ "quantity" ], [ "1" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ] ], "nltk_pos": [ [ "list", "NN" ], [ "actual", "JJ" ], [ "delivery", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "order", "NN" ], [ "with", "IN" ], [ "quantity", "NN" ], [ "1", "CD" ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(36) T(12) Filter(2) A(0) C(40) T(13) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Order_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_price > 1000", "query_toks": [ "SELECT", "T1.Order_Date", "FROM", "Customer_Orders", "AS", "T1", "JOIN", "ORDER_ITEMS", "AS", "T2", "ON", "T1.Order_ID", "=", "T2.Order_ID", "JOIN", "Products", "AS", "T3", "ON", "T2.Product_ID", "=", "T3.Product_ID", "WHERE", "T3.Product_price", ">", "1000" ], "query_toks_no_value": [ "select", "t1", ".", "order_date", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "join", "products", "as", "t3", "on", "t2", ".", "product_id", "=", "t3", ".", "product_id", "where", "t3", ".", "product_price", ">", "value" ], "question": "What are the order dates of orders with price higher than 1000?", "question_toks": [ "what", "are", "order", "date", "of", "order", "with", "price", "higher", "than", "1000", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 65, false ], null ], [ 0, 73, false ], null ] ], "table_units": [ [ "table_unit", 12 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 68, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 65, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 73, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 13 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 3, [ 0, [ 0, 14, false ], null ], 1000.0, null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "order", "dates", "of", "orders", "with", "price", "higher", "than", "1000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "order", "date" ], [ "of" ], [ "order" ], [ "with" ], [ "price" ], [ "higher" ], [ "than" ], [ "1000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "order", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ "?", "." ] ], "values": [ "1000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(34) T(12) Filter(0) Filter(18) A(0) C(38) T(12) Root(5) Sel(0) N(0) A(0) C(38) T(13) Filter(5) A(0) C(14) T(3) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Order_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_price > 1000", "query_toks": [ "SELECT", "T1.Order_Date", "FROM", "Customer_Orders", "AS", "T1", "JOIN", "ORDER_ITEMS", "AS", "T2", "ON", "T1.Order_ID", "=", "T2.Order_ID", "JOIN", "Products", "AS", "T3", "ON", "T2.Product_ID", "=", "T3.Product_ID", "WHERE", "T3.Product_price", ">", "1000" ], "query_toks_no_value": [ "select", "t1", ".", "order_date", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "join", "products", "as", "t3", "on", "t2", ".", "product_id", "=", "t3", ".", "product_id", "where", "t3", ".", "product_price", ">", "value" ], "question": "Find the order dates of the orders with price above 1000.", "question_toks": [ "find", "order", "date", "of", "order", "with", "price", "above", "1000", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 65, false ], null ], [ 0, 73, false ], null ] ], "table_units": [ [ "table_unit", 12 ], [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 68, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 65, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 73, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 13 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 3, [ 0, [ 0, 14, false ], null ], 1000.0, null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Find", "the", "order", "dates", "of", "the", "orders", "with", "price", "above", "1000", "." ], "question_arg": [ [ "find" ], [ "order", "date" ], [ "of" ], [ "order" ], [ "with" ], [ "price" ], [ "above" ], [ "1000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "order", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "above", "IN" ], [ "1000", "CD" ], [ ".", "." ] ], "values": [ "1000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(34) T(12) Filter(0) Filter(18) A(0) C(38) T(12) Root(5) Sel(0) N(0) A(0) C(38) T(13) Filter(5) A(0) C(14) T(3) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Currency_Code", ")", "FROM", "Drama_Workshop_Groups" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "currency_code", ")", "from", "drama_workshop_groups" ], "question": "How many distinct currency codes are there for all drama workshop groups?", "question_toks": [ "how", "many", "distinct", "currency", "code", "are", "there", "for", "all", "drama", "workshop", "group", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 29, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "How", "many", "distinct", "currency", "codes", "are", "there", "for", "all", "drama", "workshop", "groups", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "currency", "code" ], [ "are" ], [ "there" ], [ "for" ], [ "all" ], [ "drama", "workshop", "group" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "currency", "NN" ], [ "code", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "for", "IN" ], [ "all", "DT" ], [ "drama", "NN" ], [ "workshop", "NN" ], [ "group", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(25) T(6)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Currency_Code", ")", "FROM", "Drama_Workshop_Groups" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "currency_code", ")", "from", "drama_workshop_groups" ], "question": "Find the number of distinct currency codes used in drama workshop groups.", "question_toks": [ "find", "number", "of", "distinct", "currency", "code", "used", "in", "drama", "workshop", "group", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 29, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Find", "the", "number", "of", "distinct", "currency", "codes", "used", "in", "drama", "workshop", "groups", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "distinct" ], [ "currency", "code" ], [ "used" ], [ "in" ], [ "drama", "workshop", "group" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "currency", "NN" ], [ "code", "NN" ], [ "used", "VBN" ], [ "in", "IN" ], [ "drama", "NN" ], [ "workshop", "NN" ], [ "group", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(25) T(6)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.City_Town = \"Feliciaberg\"", "query_toks": [ "SELECT", "T2.Store_Name", "FROM", "Addresses", "AS", "T1", "JOIN", "Drama_Workshop_Groups", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID", "WHERE", "T1.City_Town", "=", "``", "Feliciaberg", "''" ], "query_toks_no_value": [ "select", "t2", ".", "store_name", "from", "addresses", "as", "t1", "join", "drama_workshop_groups", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "city_town", "=", "value" ], "question": "What are the names of the drama workshop groups with address in Feliciaberg city?", "question_toks": [ "what", "are", "name", "of", "drama", "workshop", "group", "with", "address", "in", "feliciaberg", "city", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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, 9, false ], null ], "\"Feliciaberg\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "drama", "workshop", "groups", "with", "address", "in", "Feliciaberg", "city", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "drama", "workshop", "group" ], [ "with" ], [ "address" ], [ "in" ], [ "feliciaberg" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "drama", "NN" ], [ "workshop", "NN" ], [ "group", "NN" ], [ "with", "IN" ], [ "address", "NN" ], [ "in", "IN" ], [ "feliciaberg", "JJ" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "Feliciaberg" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(26) T(6) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.City_Town = \"Feliciaberg\"", "query_toks": [ "SELECT", "T2.Store_Name", "FROM", "Addresses", "AS", "T1", "JOIN", "Drama_Workshop_Groups", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID", "WHERE", "T1.City_Town", "=", "``", "Feliciaberg", "''" ], "query_toks_no_value": [ "select", "t2", ".", "store_name", "from", "addresses", "as", "t1", "join", "drama_workshop_groups", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "city_town", "=", "value" ], "question": "Return the the names of the drama workshop groups that are located in Feliciaberg city.", "question_toks": [ "return", "name", "of", "drama", "workshop", "group", "that", "are", "located", "in", "feliciaberg", "city", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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, 9, false ], null ], "\"Feliciaberg\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Return", "the", "the", "names", "of", "the", "drama", "workshop", "groups", "that", "are", "located", "in", "Feliciaberg", "city", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "drama", "workshop", "group" ], [ "that" ], [ "are" ], [ "located" ], [ "in" ], [ "feliciaberg" ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "drama", "NN" ], [ "workshop", "NN" ], [ "group", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "in", "IN" ], [ "feliciaberg", "JJ" ], [ "city", "NN" ], [ ".", "." ] ], "values": [ "Feliciaberg" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(26) T(6) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T2.Store_Email_Address FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.State_County = \"Alaska\"", "query_toks": [ "SELECT", "T2.Store_Email_Address", "FROM", "Addresses", "AS", "T1", "JOIN", "Drama_Workshop_Groups", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID", "WHERE", "T1.State_County", "=", "``", "Alaska", "''" ], "query_toks_no_value": [ "select", "t2", ".", "store_email_address", "from", "addresses", "as", "t1", "join", "drama_workshop_groups", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "state_county", "=", "value" ], "question": "What are the email addresses of the drama workshop groups with address in Alaska state?", "question_toks": [ "what", "are", "email", "address", "of", "drama", "workshop", "group", "with", "address", "in", "alaska", "state", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Alaska\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "email", "addresses", "of", "the", "drama", "workshop", "groups", "with", "address", "in", "Alaska", "state", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "email" ], [ "address" ], [ "of" ], [ "drama", "workshop", "group" ], [ "with" ], [ "address" ], [ "in" ], [ "alaska" ], [ "state" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "email", "JJ" ], [ "address", "NN" ], [ "of", "IN" ], [ "drama", "NN" ], [ "workshop", "NN" ], [ "group", "NN" ], [ "with", "IN" ], [ "address", "NN" ], [ "in", "IN" ], [ "alaska", "JJ" ], [ "state", "NN" ], [ "?", "." ] ], "values": [ "Alaska" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(28) T(6) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T2.Store_Email_Address FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.State_County = \"Alaska\"", "query_toks": [ "SELECT", "T2.Store_Email_Address", "FROM", "Addresses", "AS", "T1", "JOIN", "Drama_Workshop_Groups", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID", "WHERE", "T1.State_County", "=", "``", "Alaska", "''" ], "query_toks_no_value": [ "select", "t2", ".", "store_email_address", "from", "addresses", "as", "t1", "join", "drama_workshop_groups", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "state_county", "=", "value" ], "question": "List the email addresses of the drama workshop groups located in Alaska state.", "question_toks": [ "list", "email", "address", "of", "drama", "workshop", "group", "located", "in", "alaska", "state", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Alaska\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "List", "the", "email", "addresses", "of", "the", "drama", "workshop", "groups", "located", "in", "Alaska", "state", "." ], "question_arg": [ [ "list" ], [ "email" ], [ "address" ], [ "of" ], [ "drama", "workshop", "group" ], [ "located" ], [ "in" ], [ "alaska" ], [ "state" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "email", "NN" ], [ "address", "NN" ], [ "of", "IN" ], [ "drama", "NN" ], [ "workshop", "NN" ], [ "group", "NN" ], [ "located", "VBN" ], [ "in", "IN" ], [ "alaska", "JJ" ], [ "state", "NN" ], [ ".", "." ] ], "values": [ "Alaska" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(28) T(6) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.City_Town , count(*) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID GROUP BY T1.City_Town", "query_toks": [ "SELECT", "T1.City_Town", ",", "count", "(", "*", ")", "FROM", "Addresses", "AS", "T1", "JOIN", "Drama_Workshop_Groups", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID", "GROUP", "BY", "T1.City_Town" ], "query_toks_no_value": [ "select", "t1", ".", "city_town", ",", "count", "(", "*", ")", "from", "addresses", "as", "t1", "join", "drama_workshop_groups", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "group", "by", "t1", ".", "city_town" ], "question": "Show all cities along with the number of drama workshop groups in each city.", "question_toks": [ "show", "all", "city", "along", "with", "number", "of", "drama", "workshop", "group", "in", "each", "city", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 6 ] ] }, "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": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Show", "all", "cities", "along", "with", "the", "number", "of", "drama", "workshop", "groups", "in", "each", "city", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "city" ], [ "along" ], [ "with" ], [ "number" ], [ "of" ], [ "drama", "workshop", "group" ], [ "in" ], [ "each" ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "city", "NN" ], [ "along", "IN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "drama", "NN" ], [ "workshop", "NN" ], [ "group", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(2) A(3) C(0) T(6)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.City_Town , count(*) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID GROUP BY T1.City_Town", "query_toks": [ "SELECT", "T1.City_Town", ",", "count", "(", "*", ")", "FROM", "Addresses", "AS", "T1", "JOIN", "Drama_Workshop_Groups", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID", "GROUP", "BY", "T1.City_Town" ], "query_toks_no_value": [ "select", "t1", ".", "city_town", ",", "count", "(", "*", ")", "from", "addresses", "as", "t1", "join", "drama_workshop_groups", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "group", "by", "t1", ".", "city_town" ], "question": "How many drama workshop groups are there in each city? Return both the city and the count.", "question_toks": [ "how", "many", "drama", "workshop", "group", "are", "there", "in", "each", "city", "?", "return", "both", "city", "and", "count", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 6 ] ] }, "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": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "How", "many", "drama", "workshop", "groups", "are", "there", "in", "each", "city", "?", "Return", "both", "the", "city", "and", "the", "count", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "drama", "workshop", "group" ], [ "are" ], [ "there" ], [ "in" ], [ "each" ], [ "city" ], [ "?" ], [ "return" ], [ "both" ], [ "city" ], [ "and" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "drama", "NN" ], [ "workshop", "NN" ], [ "group", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ "?", "." ], [ "return", "VB" ], [ "both", "DT" ], [ "city", "NN" ], [ "and", "CC" ], [ "count", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(2) A(3) C(0) T(6)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Marketing_Region_Code", "FROM", "Drama_Workshop_Groups", "GROUP", "BY", "Marketing_Region_Code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "marketing_region_code", "from", "drama_workshop_groups", "group", "by", "marketing_region_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the marketing region code that has the most drama workshop groups?", "question_toks": [ "what", "is", "marketing", "region", "code", "that", "ha", "most", "drama", "workshop", "group", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 30, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "is", "the", "marketing", "region", "code", "that", "has", "the", "most", "drama", "workshop", "groups", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "marketing", "region", "code" ], [ "that" ], [ "ha" ], [ "most" ], [ "drama", "workshop", "group" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "marketing", "VBG" ], [ "region", "NN" ], [ "code", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "drama", "JJ" ], [ "workshop", "NN" ], [ "group", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(17) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Marketing_Region_Code", "FROM", "Drama_Workshop_Groups", "GROUP", "BY", "Marketing_Region_Code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "marketing_region_code", "from", "drama_workshop_groups", "group", "by", "marketing_region_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which marketing region has the most drama workshop groups? Give me the region code.", "question_toks": [ "which", "marketing", "region", "ha", "most", "drama", "workshop", "group", "?", "give", "me", "region", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 30, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Which", "marketing", "region", "has", "the", "most", "drama", "workshop", "groups", "?", "Give", "me", "the", "region", "code", "." ], "question_arg": [ [ "which" ], [ "marketing", "region" ], [ "ha" ], [ "most" ], [ "drama", "workshop", "group" ], [ "?" ], [ "give" ], [ "me" ], [ "marketing", "region", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "marketing", "VBG" ], [ "region", "NN" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "drama", "JJ" ], [ "workshop", "NN" ], [ "group", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "region", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(17) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID = T2.Address_ID", "query_toks": [ "SELECT", "T1.City_Town", "FROM", "Addresses", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID", "EXCEPT", "SELECT", "T1.City_Town", "FROM", "Addresses", "AS", "T1", "JOIN", "Performers", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID" ], "query_toks_no_value": [ "select", "t1", ".", "city_town", "from", "addresses", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "except", "select", "t1", ".", "city_town", "from", "addresses", "as", "t1", "join", "performers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id" ], "question": "Show all cities where at least one customer lives in but no performer lives in.", "question_toks": [ "show", "all", "city", "where", "at", "least", "one", "customer", "life", "in", "but", "no", "performer", "life", "in", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 36, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 36, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Show", "all", "cities", "where", "at", "least", "one", "customer", "lives", "in", "but", "no", "performer", "lives", "in", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "city" ], [ "where" ], [ "at" ], [ "least" ], [ "one" ], [ "customer" ], [ "life" ], [ "in" ], [ "but" ], [ "no" ], [ "performer" ], [ "life" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "city", "NN" ], [ "where", "WRB" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "customer", "NN" ], [ "life", "NN" ], [ "in", "IN" ], [ "but", "CC" ], [ "no", "DT" ], [ "performer", "JJ" ], [ "life", "NN" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "1" ], "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(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(7)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID = T2.Address_ID", "query_toks": [ "SELECT", "T1.City_Town", "FROM", "Addresses", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID", "EXCEPT", "SELECT", "T1.City_Town", "FROM", "Addresses", "AS", "T1", "JOIN", "Performers", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID" ], "query_toks_no_value": [ "select", "t1", ".", "city_town", "from", "addresses", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "except", "select", "t1", ".", "city_town", "from", "addresses", "as", "t1", "join", "performers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id" ], "question": "Which cities have at least one customer but no performer?", "question_toks": [ "which", "city", "have", "at", "least", "one", "customer", "but", "no", "performer", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 36, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 36, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Which", "cities", "have", "at", "least", "one", "customer", "but", "no", "performer", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "have" ], [ "at" ], [ "least" ], [ "one" ], [ "customer" ], [ "but" ], [ "no" ], [ "performer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "customer", "NN" ], [ "but", "CC" ], [ "no", "DT" ], [ "performer", "NN" ], [ "?", "." ] ], "values": [ "1" ], "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(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(7)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Status_Code", "FROM", "BOOKINGS", "GROUP", "BY", "Status_Code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "status_code", "from", "bookings", "group", "by", "status_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most frequent status of bookings?", "question_toks": [ "what", "is", "most", "frequent", "status", "of", "booking", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 57, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 57, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "is", "the", "most", "frequent", "status", "of", "bookings", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "frequent" ], [ "status" ], [ "of" ], [ "booking" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "frequent", "JJ" ], [ "status", "NN" ], [ "of", "IN" ], [ "booking", "VBG" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(33) T(10) Sup(0) A(3) C(0) T(10)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Status_Code", "FROM", "BOOKINGS", "GROUP", "BY", "Status_Code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "status_code", "from", "bookings", "group", "by", "status_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which status code is the most common of all the bookings?", "question_toks": [ "which", "status", "code", "is", "most", "common", "of", "all", "booking", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 57, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 57, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Which", "status", "code", "is", "the", "most", "common", "of", "all", "the", "bookings", "?" ], "question_arg": [ [ "which" ], [ "status", "code" ], [ "is" ], [ "most" ], [ "common" ], [ "of" ], [ "all" ], [ "booking" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "status", "NN" ], [ "code", "NN" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "booking", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(33) T(10) Sup(0) A(3) C(0) T(10)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = \"stop\"", "query_toks": [ "SELECT", "T2.Store_Name", "FROM", "Bookings", "AS", "T1", "JOIN", "Drama_Workshop_Groups", "AS", "T2", "ON", "T1.Workshop_Group_ID", "=", "T2.Workshop_Group_ID", "WHERE", "T1.Status_Code", "=", "``", "stop", "''" ], "query_toks_no_value": [ "select", "t2", ".", "store_name", "from", "bookings", "as", "t1", "join", "drama_workshop_groups", "as", "t2", "on", "t1", ".", "workshop_group_id", "=", "t2", ".", "workshop_group_id", "where", "t1", ".", "status_code", "=", "value" ], "question": "What are the names of the workshop groups that have bookings with status code \"stop\"?", "question_toks": [ "what", "are", "name", "of", "workshop", "group", "that", "have", "booking", "with", "status", "code", "'", "stop", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 56, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "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, 57, false ], null ], "\"stop\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "workshop", "groups", "that", "have", "bookings", "with", "status", "code", "``", "stop", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "workshop", "group", "id" ], [ "that" ], [ "have" ], [ "booking" ], [ "with" ], [ "status", "code" ], [ "'" ], [ "stop" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "workshop", "NN" ], [ "group", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "booking", "VBG" ], [ "with", "IN" ], [ "status", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "stop", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "stop" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(26) T(6) Filter(2) A(0) C(33) T(10) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = \"stop\"", "query_toks": [ "SELECT", "T2.Store_Name", "FROM", "Bookings", "AS", "T1", "JOIN", "Drama_Workshop_Groups", "AS", "T2", "ON", "T1.Workshop_Group_ID", "=", "T2.Workshop_Group_ID", "WHERE", "T1.Status_Code", "=", "``", "stop", "''" ], "query_toks_no_value": [ "select", "t2", ".", "store_name", "from", "bookings", "as", "t1", "join", "drama_workshop_groups", "as", "t2", "on", "t1", ".", "workshop_group_id", "=", "t2", ".", "workshop_group_id", "where", "t1", ".", "status_code", "=", "value" ], "question": "Which workshop groups have bookings with status code \"stop\"? Give me the names.", "question_toks": [ "which", "workshop", "group", "have", "booking", "with", "status", "code", "'", "stop", "'", "?", "give", "me", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 56, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "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, 57, false ], null ], "\"stop\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Which", "workshop", "groups", "have", "bookings", "with", "status", "code", "``", "stop", "''", "?", "Give", "me", "the", "names", "." ], "question_arg": [ [ "which" ], [ "workshop", "group", "id" ], [ "have" ], [ "booking" ], [ "with" ], [ "status", "code" ], [ "'" ], [ "stop" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "workshop", "NN" ], [ "group", "NN" ], [ "have", "VBP" ], [ "booking", "VBG" ], [ "with", "IN" ], [ "status", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "stop", "NN" ], [ "'", "''" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "stop" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(26) T(6) Filter(2) A(0) C(33) T(10) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID = T2.Client_ID", "query_toks": [ "SELECT", "Customer_Name", "FROM", "Clients", "EXCEPT", "SELECT", "T2.Customer_Name", "FROM", "Bookings", "AS", "T1", "JOIN", "Clients", "AS", "T2", "ON", "T1.Customer_ID", "=", "T2.Client_ID" ], "query_toks_no_value": [ "select", "customer_name", "from", "clients", "except", "select", "t2", ".", "customer_name", "from", "bookings", "as", "t1", "join", "clients", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "client_id" ], "question": "Show the names of all the clients with no booking.", "question_toks": [ "show", "name", "of", "all", "client", "with", "no", "booking", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 55, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 21, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 55, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "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, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Show", "the", "names", "of", "all", "the", "clients", "with", "no", "booking", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "all" ], [ "client" ], [ "with" ], [ "no" ], [ "booking" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "client", "NN" ], [ "with", "IN" ], [ "no", "DT" ], [ "booking", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(22) T(5) Root(3) Sel(0) N(0) A(0) C(22) T(5) Filter(18) A(0) C(20) T(5) Root(5) Sel(0) N(0) A(0) C(30) T(10)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID = T2.Client_ID", "query_toks": [ "SELECT", "Customer_Name", "FROM", "Clients", "EXCEPT", "SELECT", "T2.Customer_Name", "FROM", "Bookings", "AS", "T1", "JOIN", "Clients", "AS", "T2", "ON", "T1.Customer_ID", "=", "T2.Client_ID" ], "query_toks_no_value": [ "select", "customer_name", "from", "clients", "except", "select", "t2", ".", "customer_name", "from", "bookings", "as", "t1", "join", "clients", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "client_id" ], "question": "What are the names of the clients who do not have any booking?", "question_toks": [ "what", "are", "name", "of", "client", "who", "do", "not", "have", "any", "booking", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 55, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 21, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 55, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "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, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "clients", "who", "do", "not", "have", "any", "booking", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "client" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "booking" ], [ "?" ] ], "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" ], [ "client", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "booking", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(22) T(5) Root(3) Sel(0) N(0) A(0) C(22) T(5) Filter(18) A(0) C(20) T(5) Root(5) Sel(0) N(0) A(0) C(30) T(10)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code = \"MasterCard\"", "query_toks": [ "SELECT", "avg", "(", "Order_Quantity", ")", "FROM", "Invoices", "WHERE", "payment_method_code", "=", "``", "MasterCard", "''" ], "query_toks_no_value": [ "select", "avg", "(", "order_quantity", ")", "from", "invoices", "where", "payment_method_code", "=", "value" ], "question": "What is the average quantities ordered with payment method code \"MasterCard\" on invoices?", "question_toks": [ "what", "is", "average", "quantity", "ordered", "with", "payment", "method", "code", "'", "mastercard", "'", "on", "invoice", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 14 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 81, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 79, false ], null ], "\"MasterCard\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "is", "the", "average", "quantities", "ordered", "with", "payment", "method", "code", "``", "MasterCard", "''", "on", "invoices", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "quantity" ], [ "ordered" ], [ "with" ], [ "payment", "method", "code" ], [ "'" ], [ "mastercard" ], [ "'" ], [ "on" ], [ "invoice" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "quantity", "NN" ], [ "ordered", "VBD" ], [ "with", "IN" ], [ "payment", "NN" ], [ "method", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "mastercard", "NN" ], [ "'", "POS" ], [ "on", "IN" ], [ "invoice", "NN" ], [ "?", "." ] ], "values": [ "MasterCard" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(40) T(14) Filter(2) A(0) C(1) T(14) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code = \"MasterCard\"", "query_toks": [ "SELECT", "avg", "(", "Order_Quantity", ")", "FROM", "Invoices", "WHERE", "payment_method_code", "=", "``", "MasterCard", "''" ], "query_toks_no_value": [ "select", "avg", "(", "order_quantity", ")", "from", "invoices", "where", "payment_method_code", "=", "value" ], "question": "Check the invoices record and compute the average quantities ordered with the payment method \"MasterCard\".", "question_toks": [ "check", "invoice", "record", "and", "compute", "average", "quantity", "ordered", "with", "payment", "method", "'", "mastercard", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 14 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 81, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 79, false ], null ], "\"MasterCard\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Check", "the", "invoices", "record", "and", "compute", "the", "average", "quantities", "ordered", "with", "the", "payment", "method", "``", "MasterCard", "''", "." ], "question_arg": [ [ "check" ], [ "invoice" ], [ "record" ], [ "and" ], [ "compute" ], [ "average" ], [ "quantity" ], [ "ordered" ], [ "with" ], [ "payment" ], [ "method" ], [ "'" ], [ "mastercard" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "check", "NN" ], [ "invoice", "NN" ], [ "record", "NN" ], [ "and", "CC" ], [ "compute", "JJ" ], [ "average", "JJ" ], [ "quantity", "NN" ], [ "ordered", "VBD" ], [ "with", "IN" ], [ "payment", "NN" ], [ "method", "NN" ], [ "'", "''" ], [ "mastercard", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "MasterCard" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(40) T(14) Filter(2) A(0) C(1) T(14) V(0)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Product_ID", "FROM", "INVOICES", "GROUP", "BY", "Product_ID", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "product_id", "from", "invoices", "group", "by", "product_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the product ID of the most frequently ordered item on invoices?", "question_toks": [ "what", "is", "product", "id", "of", "most", "frequently", "ordered", "item", "on", "invoice", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 14 ] ] }, "groupBy": [ [ 0, 80, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 80, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "is", "the", "product", "ID", "of", "the", "most", "frequently", "ordered", "item", "on", "invoices", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "product", "id" ], [ "of" ], [ "most" ], [ "frequently" ], [ "ordered" ], [ "item" ], [ "on" ], [ "invoice" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "product", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "frequently", "RB" ], [ "ordered", "VBN" ], [ "item", "NN" ], [ "on", "IN" ], [ "invoice", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(12) T(14) Sup(0) A(3) C(0) T(14)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Product_ID", "FROM", "INVOICES", "GROUP", "BY", "Product_ID", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "product_id", "from", "invoices", "group", "by", "product_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the id of the product ordered the most often on invoices.", "question_toks": [ "find", "id", "of", "product", "ordered", "most", "often", "on", "invoice", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 14 ] ] }, "groupBy": [ [ 0, 80, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 80, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Find", "the", "id", "of", "the", "product", "ordered", "the", "most", "often", "on", "invoices", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "product" ], [ "ordered" ], [ "most" ], [ "often" ], [ "on" ], [ "invoice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "ordered", "VBN" ], [ "most", "RBS" ], [ "often", "RB" ], [ "on", "IN" ], [ "invoice", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(12) T(14) Sup(0) A(3) C(0) T(14)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'photo' INTERSECT SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'film'", "query_toks": [ "SELECT", "T1.Service_Type_Description", "FROM", "Ref_Service_Types", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Service_Type_Code", "=", "T2.Service_Type_Code", "WHERE", "T2.Product_Name", "=", "'photo", "'", "INTERSECT", "SELECT", "T1.Service_Type_Description", "FROM", "Ref_Service_Types", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Service_Type_Code", "=", "T2.Service_Type_Code", "WHERE", "T2.Product_Name", "=", "'film", "'" ], "query_toks_no_value": [ "select", "t1", ".", "service_type_description", "from", "ref_service_types", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_type_code", "=", "t2", ".", "service_type_code", "where", "t2", ".", "product_name", "=", "value", "intersect", "select", "t1", ".", "service_type_description", "from", "ref_service_types", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_type_code", "=", "t2", ".", "service_type_code", "where", "t2", ".", "product_name", "=", "value" ], "question": "What is the description of the service type which offers both the photo product and the film product?", "question_toks": [ "what", "is", "description", "of", "service", "type", "which", "offer", "both", "photo", "product", "and", "film", "product", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 85, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 15 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 85, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 15 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 88, false ], null ], "\"film\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 88, false ], null ], "\"photo\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "What", "is", "the", "description", "of", "the", "service", "type", "which", "offers", "both", "the", "photo", "product", "and", "the", "film", "product", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "of" ], [ "service" ], [ "type" ], [ "which" ], [ "offer" ], [ "both" ], [ "photo" ], [ "product" ], [ "and" ], [ "film" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "of", "IN" ], [ "service", "NN" ], [ "type", "NN" ], [ "which", "WDT" ], [ "offer", "VBP" ], [ "both", "DT" ], [ "photo", "JJ" ], [ "product", "NN" ], [ "and", "CC" ], [ "film", "NN" ], [ "product", "NN" ], [ "?", "." ] ], "values": [ "photo", "film" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(2) A(0) C(13) T(15) V(0) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(2) A(0) C(13) T(15) V(1)" }, { "db_id": "cre_Drama_Workshop_Groups", "query": "SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'photo' INTERSECT SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'film'", "query_toks": [ "SELECT", "T1.Service_Type_Description", "FROM", "Ref_Service_Types", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Service_Type_Code", "=", "T2.Service_Type_Code", "WHERE", "T2.Product_Name", "=", "'photo", "'", "INTERSECT", "SELECT", "T1.Service_Type_Description", "FROM", "Ref_Service_Types", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Service_Type_Code", "=", "T2.Service_Type_Code", "WHERE", "T2.Product_Name", "=", "'film", "'" ], "query_toks_no_value": [ "select", "t1", ".", "service_type_description", "from", "ref_service_types", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_type_code", "=", "t2", ".", "service_type_code", "where", "t2", ".", "product_name", "=", "value", "intersect", "select", "t1", ".", "service_type_description", "from", "ref_service_types", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_type_code", "=", "t2", ".", "service_type_code", "where", "t2", ".", "product_name", "=", "value" ], "question": "Give me the description of the service type that offers not only the photo product but also the film product.", "question_toks": [ "give", "me", "description", "of", "service", "type", "that", "offer", "not", "only", "photo", "product", "but", "also", "film", "product", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 85, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 15 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 85, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 15 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 88, false ], null ], "\"film\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 88, false ], null ], "\"photo\"", null ] ] }, "names": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "other details", "client id", "address id", "customer email address", "customer name", "customer phone", "other details", "workshop group id", "address id", "currency code", "marketing region code", "store name", "store phone", "store email address", "other details", "performer id", "address id", "customer name", "customer phone", "customer email address", "other details", "customer id", "address id", "customer name", "customer phone", "customer email address", "other details", "store id", "address id", "marketing region code", "store name", "store phone", "store email address", "other details", "booking id", "customer id", "workshop group id", "status code", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "performer id", "order id", "customer id", "store id", "order date", "planned delivery date", "actual delivery date", "other order details", "order item id", "order id", "product id", "order quantity", "other item details", "invoice id", "order id", "payment method code", "product id", "order quantity", "other item details", "order item id", "service id", "service type code", "workshop group id", "product description", "product name", "product price", "other product service details", "order id", "product id", "invoice item id", "invoice id", "order id", "order item id", "product id", "order quantity", "other item details" ], "table_names": [ "reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items" ], "col_set": [ "*", "payment method code", "payment method description", "service type code", "parent service type code", "service type description", "address id", "line 1", "line 2", "city town", "state county", "other details", "product id", "product name", "product price", "product description", "other product service details", "marketing region code", "marketing region name", "marketing region descriptrion", "client id", "customer email address", "customer name", "customer phone", "workshop group id", "currency code", "store name", "store phone", "store email address", "performer id", "customer id", "store id", "booking id", "status code", "order date", "planned delivery date", "actual delivery date", "other order details", "order id", "order item id", "order quantity", "other item details", "invoice id", "service id", "invoice item id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17 ], "keys": { "22": 6, "6": 6, "28": 6, "36": 6, "42": 6, "49": 17, "17": 17, "48": 6, "56": 27, "27": 27, "55": 21, "21": 21, "63": 63, "54": 54, "64": 35, "35": 35, "67": 47, "47": 47, "66": 41, "41": 41, "74": 12, "12": 12, "73": 65, "65": 65, "79": 1, "1": 1, "78": 65, "85": 3, "3": 3, "86": 27, "92": 97, "84": 84, "91": 91, "95": 91, "97": 92, "94": 77, "77": 77, "96": 72, "72": 72, "93": 93 }, "origin_question_toks": [ "Give", "me", "the", "description", "of", "the", "service", "type", "that", "offers", "not", "only", "the", "photo", "product", "but", "also", "the", "film", "product", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "description" ], [ "of" ], [ "service" ], [ "type" ], [ "that" ], [ "offer" ], [ "not" ], [ "only" ], [ "photo" ], [ "product" ], [ "but" ], [ "also" ], [ "film" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "description", "NN" ], [ "of", "IN" ], [ "service", "NN" ], [ "type", "NN" ], [ "that", "WDT" ], [ "offer", "NN" ], [ "not", "RB" ], [ "only", "RB" ], [ "photo", "JJ" ], [ "product", "NN" ], [ "but", "CC" ], [ "also", "RB" ], [ "film", "NN" ], [ "product", "NN" ], [ ".", "." ] ], "values": [ "photo", "film" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(2) A(0) C(13) T(15) V(0) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(2) A(0) C(13) T(15) V(1)" }, { "db_id": "music_2", "query": "SELECT count(*) FROM Band", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Band" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "band" ], "question": "How many bands are there?", "question_toks": [ "how", "many", "band", "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": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "How", "many", "bands", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "band" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "band", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "music_2", "query": "SELECT count(*) FROM Band", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Band" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "band" ], "question": "Find the number of bands.", "question_toks": [ "find", "number", "of", "band", "." ], "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": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Find", "the", "number", "of", "bands", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "band" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "band", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "music_2", "query": "SELECT DISTINCT label FROM Albums", "query_toks": [ "SELECT", "DISTINCT", "label", "FROM", "Albums" ], "query_toks_no_value": [ "select", "distinct", "label", "from", "albums" ], "question": "What are all the labels?", "question_toks": [ "what", "are", "all", "label", "?" ], "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": [] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "all", "the", "labels", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "label" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "label", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(5) T(1)" }, { "db_id": "music_2", "query": "SELECT DISTINCT label FROM Albums", "query_toks": [ "SELECT", "DISTINCT", "label", "FROM", "Albums" ], "query_toks_no_value": [ "select", "distinct", "label", "from", "albums" ], "question": "What are the different album labels listed?", "question_toks": [ "what", "are", "different", "album", "label", "listed", "?" ], "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": [] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "different", "album", "labels", "listed", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "album" ], [ "label" ], [ "listed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "album", "IN" ], [ "label", "NN" ], [ "listed", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(5) T(1)" }, { "db_id": "music_2", "query": "SELECT * FROM Albums WHERE YEAR = 2012", "query_toks": [ "SELECT", "*", "FROM", "Albums", "WHERE", "YEAR", "=", "2012" ], "query_toks_no_value": [ "select", "*", "from", "albums", "where", "year", "=", "value" ], "question": "Find all the albums in 2012.", "question_toks": [ "find", "all", "album", "in", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], 2012.0, null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Find", "all", "the", "albums", "in", "2012", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "album" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "album", "NN" ], [ "in", "IN" ], [ "2012", "CD" ], [ ".", "." ] ], "values": [ "2012" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "music_2", "query": "SELECT * FROM Albums WHERE YEAR = 2012", "query_toks": [ "SELECT", "*", "FROM", "Albums", "WHERE", "YEAR", "=", "2012" ], "query_toks_no_value": [ "select", "*", "from", "albums", "where", "year", "=", "value" ], "question": "return all columns of the albums created in the year of 2012.", "question_toks": [ "return", "all", "column", "of", "album", "created", "in", "year", "of", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], 2012.0, null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "return", "all", "columns", "of", "the", "albums", "created", "in", "the", "year", "of", "2012", "." ], "question_arg": [ [ "return" ], [ "all" ], [ "column" ], [ "of" ], [ "album" ], [ "created" ], [ "in" ], [ "year" ], [ "of" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "all", "DT" ], [ "column", "NN" ], [ "of", "IN" ], [ "album", "NN" ], [ "created", "VBN" ], [ "in", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "2012", "CD" ], [ ".", "." ] ], "values": [ "2012" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "music_2", "query": "SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE Firstname = \"Solveig\"", "query_toks": [ "SELECT", "DISTINCT", "T1.stageposition", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "WHERE", "Firstname", "=", "``", "Solveig", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "stageposition", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "where", "firstname", "=", "value" ], "question": "Find all the stage positions of the musicians with first name \"Solveig\"", "question_toks": [ "find", "all", "stage", "position", "of", "musician", "with", "first", "name", "'", "solveig", "'" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 9, false ], null ], "\"Solveig\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Find", "all", "the", "stage", "positions", "of", "the", "musicians", "with", "first", "name", "``", "Solveig", "''" ], "question_arg": [ [ "find" ], [ "all" ], [ "stage", "position" ], [ "of" ], [ "musician" ], [ "with" ], [ "first", "name" ], [ "'" ], [ "solveig" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "stage", "NN" ], [ "position", "NN" ], [ "of", "IN" ], [ "musician", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "solveig", "NN" ], [ "'", "''" ] ], "values": [ "Solveig", "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(13) T(4) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "music_2", "query": "SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE Firstname = \"Solveig\"", "query_toks": [ "SELECT", "DISTINCT", "T1.stageposition", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "WHERE", "Firstname", "=", "``", "Solveig", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "stageposition", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "where", "firstname", "=", "value" ], "question": "What are the different stage positions for all musicians whose first name is \"Solveig\"?", "question_toks": [ "what", "are", "different", "stage", "position", "for", "all", "musician", "whose", "first", "name", "is", "'", "solveig", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 9, false ], null ], "\"Solveig\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "different", "stage", "positions", "for", "all", "musicians", "whose", "first", "name", "is", "``", "Solveig", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "stage", "position" ], [ "for" ], [ "all" ], [ "musician" ], [ "whose" ], [ "first", "name" ], [ "is" ], [ "'" ], [ "solveig" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "stage", "NN" ], [ "position", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "musician", "JJ" ], [ "whose", "WP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "solveig", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Solveig", "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(13) T(4) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "music_2", "query": "SELECT count(*) FROM Songs", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Songs" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "songs" ], "question": "How many songs are there?", "question_toks": [ "how", "many", "song", "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": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "How", "many", "songs", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "song" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "song", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "music_2", "query": "SELECT count(*) FROM Songs", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Songs" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "songs" ], "question": "Count the number of songs.", "question_toks": [ "count", "number", "of", "song", "." ], "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": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Count", "the", "number", "of", "songs", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "song" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "music_2", "query": "SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Lastname = \"Heilo\"", "query_toks": [ "SELECT", "T3.Title", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "WHERE", "T2.Lastname", "=", "``", "Heilo", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "where", "t2", ".", "lastname", "=", "value" ], "question": "Find all the songs performed by artist with last name \"Heilo\"", "question_toks": [ "find", "all", "song", "performed", "by", "artist", "with", "last", "name", "'", "heilo", "'" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 8, 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 ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Heilo\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Find", "all", "the", "songs", "performed", "by", "artist", "with", "last", "name", "``", "Heilo", "''" ], "question_arg": [ [ "find" ], [ "all" ], [ "song" ], [ "performed" ], [ "by" ], [ "artist" ], [ "with" ], [ "last", "name" ], [ "'" ], [ "heilo" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "song", "NN" ], [ "performed", "VBN" ], [ "by", "IN" ], [ "artist", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "heilo", "NN" ], [ "'", "''" ] ], "values": [ "Heilo" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(4) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "music_2", "query": "SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Lastname = \"Heilo\"", "query_toks": [ "SELECT", "T3.Title", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "WHERE", "T2.Lastname", "=", "``", "Heilo", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "where", "t2", ".", "lastname", "=", "value" ], "question": "What are the names of the songs by the artist whose last name is \"Heilo\"?", "question_toks": [ "what", "are", "name", "of", "song", "by", "artist", "whose", "last", "name", "is", "'", "heilo", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 8, 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 ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Heilo\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "songs", "by", "the", "artist", "whose", "last", "name", "is", "``", "Heilo", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "song" ], [ "by" ], [ "artist" ], [ "whose" ], [ "last", "name" ], [ "is" ], [ "'" ], [ "heilo" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "by", "IN" ], [ "artist", "NN" ], [ "whose", "WP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "heilo", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Heilo" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(4) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "music_2", "query": "SELECT count(*) FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songid = T1.songid WHERE T3.Title = \"Flash\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "performance", "AS", "T1", "JOIN", "band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "songs", "AS", "T3", "ON", "T3.songid", "=", "T1.songid", "WHERE", "T3.Title", "=", "``", "Flash", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "where", "t3", ".", "title", "=", "value" ], "question": "Hom many musicians performed in the song \"Flash\"?", "question_toks": [ "hom", "many", "musician", "performed", "in", "song", "'", "flash", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Flash\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Hom", "many", "musicians", "performed", "in", "the", "song", "``", "Flash", "''", "?" ], "question_arg": [ [ "hom" ], [ "many" ], [ "musician" ], [ "performed" ], [ "in" ], [ "song" ], [ "'" ], [ "flash" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "hom", "RB" ], [ "many", "JJ" ], [ "musician", "NN" ], [ "performed", "VBN" ], [ "in", "IN" ], [ "song", "NN" ], [ "'", "''" ], [ "flash", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Flash" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT count(*) FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songid = T1.songid WHERE T3.Title = \"Flash\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "performance", "AS", "T1", "JOIN", "band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "songs", "AS", "T3", "ON", "T3.songid", "=", "T1.songid", "WHERE", "T3.Title", "=", "``", "Flash", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "where", "t3", ".", "title", "=", "value" ], "question": "How many musicians play in the song \"Flash\"?", "question_toks": [ "how", "many", "musician", "play", "in", "song", "'", "flash", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Flash\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "How", "many", "musicians", "play", "in", "the", "song", "``", "Flash", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "musician" ], [ "play" ], [ "in" ], [ "song" ], [ "'" ], [ "flash" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "musician", "JJ" ], [ "play", "NN" ], [ "in", "IN" ], [ "song", "NN" ], [ "'", "''" ], [ "flash", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Flash" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.firstname = \"Marianne\"", "query_toks": [ "SELECT", "T3.Title", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "WHERE", "T2.firstname", "=", "``", "Marianne", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "where", "t2", ".", "firstname", "=", "value" ], "question": "Find all the songs produced by artists with first name \"Marianne\".", "question_toks": [ "find", "all", "song", "produced", "by", "artist", "with", "first", "name", "'", "marianne", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 8, 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 ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Marianne\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Find", "all", "the", "songs", "produced", "by", "artists", "with", "first", "name", "``", "Marianne", "''", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "song" ], [ "produced" ], [ "by" ], [ "artist" ], [ "with" ], [ "first", "name" ], [ "'" ], [ "marianne" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "song", "NN" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "artist", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "marianne", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "1", "Marianne" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(4) Filter(2) A(0) C(8) T(2) V(1)" }, { "db_id": "music_2", "query": "SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.firstname = \"Marianne\"", "query_toks": [ "SELECT", "T3.Title", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "WHERE", "T2.firstname", "=", "``", "Marianne", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "where", "t2", ".", "firstname", "=", "value" ], "question": "What are the names of all songs produced by the artist with the first name \"Marianne\"?", "question_toks": [ "what", "are", "name", "of", "all", "song", "produced", "by", "artist", "with", "first", "name", "'", "marianne", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 8, 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 ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Marianne\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "songs", "produced", "by", "the", "artist", "with", "the", "first", "name", "``", "Marianne", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "song" ], [ "produced" ], [ "by" ], [ "artist" ], [ "with" ], [ "first", "name" ], [ "'" ], [ "marianne" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "artist", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "marianne", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "1", "Marianne" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(4) Filter(2) A(0) C(8) T(2) V(1)" }, { "db_id": "music_2", "query": "SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = \"Badlands\"", "query_toks": [ "SELECT", "T2.firstname", ",", "T2.lastname", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "WHERE", "T3.Title", "=", "``", "Badlands", "''" ], "query_toks_no_value": [ "select", "t2", ".", "firstname", ",", "t2", ".", "lastname", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "where", "t3", ".", "title", "=", "value" ], "question": "Who performed the song named \"Badlands\"? Show the first name and the last name.", "question_toks": [ "who", "performed", "song", "named", "'", "badlands", "'", "?", "show", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "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, 8, [ 0, [ 0, 8, 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 ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Badlands\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Who", "performed", "the", "song", "named", "``", "Badlands", "''", "?", "Show", "the", "first", "name", "and", "the", "last", "name", "." ], "question_arg": [ [ "who" ], [ "performed" ], [ "song" ], [ "named" ], [ "'" ], [ "badlands" ], [ "'" ], [ "?" ], [ "show" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "performed", "VBD" ], [ "song", "RB" ], [ "named", "VBN" ], [ "'", "''" ], [ "badlands", "NNS" ], [ "'", "POS" ], [ "?", "." ], [ "show", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Badlands", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(2) A(0) C(9) T(2) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(4) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = \"Badlands\"", "query_toks": [ "SELECT", "T2.firstname", ",", "T2.lastname", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "WHERE", "T3.Title", "=", "``", "Badlands", "''" ], "query_toks_no_value": [ "select", "t2", ".", "firstname", ",", "t2", ".", "lastname", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "where", "t3", ".", "title", "=", "value" ], "question": "What are the first and last names of the artist who perfomed the song \"Badlands\"?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "artist", "who", "perfomed", "song", "'", "badlands", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "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, 8, [ 0, [ 0, 8, 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 ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Badlands\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "of", "the", "artist", "who", "perfomed", "the", "song", "``", "Badlands", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "perfomed" ], [ "song" ], [ "'" ], [ "badlands" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "perfomed", "VBD" ], [ "song", "NN" ], [ "'", "''" ], [ "badlands", "NNS" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Badlands", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(2) A(0) C(9) T(2) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(4) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = \"Badlands\" AND T1.StagePosition = \"back\"", "query_toks": [ "SELECT", "T2.firstname", ",", "T2.lastname", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "WHERE", "T3.Title", "=", "``", "Badlands", "''", "AND", "T1.StagePosition", "=", "``", "back", "''" ], "query_toks_no_value": [ "select", "t2", ".", "firstname", ",", "t2", ".", "lastname", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "where", "t3", ".", "title", "=", "value", "and", "t1", ".", "stageposition", "=", "value" ], "question": "Who is performing in the back stage position for the song \"Badlands\"? Show the first name and the last name.", "question_toks": [ "who", "is", "performing", "in", "back", "stage", "position", "for", "song", "'", "badlands", "'", "?", "show", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "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, 2, false ], null ], "\"Badlands\"", null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"back\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Who", "is", "performing", "in", "the", "back", "stage", "position", "for", "the", "song", "``", "Badlands", "''", "?", "Show", "the", "first", "name", "and", "the", "last", "name", "." ], "question_arg": [ [ "who" ], [ "is" ], [ "performing" ], [ "in" ], [ "back" ], [ "stage", "position" ], [ "for" ], [ "song" ], [ "'" ], [ "badlands" ], [ "'" ], [ "?" ], [ "show" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "performing", "VBG" ], [ "in", "IN" ], [ "back", "JJ" ], [ "stage", "NN" ], [ "position", "NN" ], [ "for", "IN" ], [ "song", "NN" ], [ "'", "''" ], [ "badlands", "NNS" ], [ "'", "POS" ], [ "?", "." ], [ "show", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Badlands", "1", "back" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(2) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(13) T(4) V(2)" }, { "db_id": "music_2", "query": "SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = \"Badlands\" AND T1.StagePosition = \"back\"", "query_toks": [ "SELECT", "T2.firstname", ",", "T2.lastname", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "WHERE", "T3.Title", "=", "``", "Badlands", "''", "AND", "T1.StagePosition", "=", "``", "back", "''" ], "query_toks_no_value": [ "select", "t2", ".", "firstname", ",", "t2", ".", "lastname", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "where", "t3", ".", "title", "=", "value", "and", "t1", ".", "stageposition", "=", "value" ], "question": "What are the first and last names of the performer who was in the back stage position for the song \"Badlands\"?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "performer", "who", "wa", "in", "back", "stage", "position", "for", "song", "'", "badlands", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "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, 2, false ], null ], "\"Badlands\"", null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"back\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "of", "the", "performer", "who", "was", "in", "the", "back", "stage", "position", "for", "the", "song", "``", "Badlands", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "performer" ], [ "who" ], [ "wa" ], [ "in" ], [ "back" ], [ "stage", "position" ], [ "for" ], [ "song" ], [ "'" ], [ "badlands" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "performer", "NN" ], [ "who", "WP" ], [ "wa", "VBZ" ], [ "in", "IN" ], [ "back", "JJ" ], [ "stage", "NN" ], [ "position", "NN" ], [ "for", "IN" ], [ "song", "NN" ], [ "'", "''" ], [ "badlands", "NNS" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Badlands", "1", "back" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(2) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(13) T(4) V(2)" }, { "db_id": "music_2", "query": "SELECT count(DISTINCT label) FROM albums", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "label", ")", "FROM", "albums" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "label", ")", "from", "albums" ], "question": "How many unique labels are there for albums?", "question_toks": [ "how", "many", "unique", "label", "are", "there", "for", "album", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 6, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "How", "many", "unique", "labels", "are", "there", "for", "albums", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "unique" ], [ "label" ], [ "are" ], [ "there" ], [ "for" ], [ "album" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "unique", "JJ" ], [ "label", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "for", "IN" ], [ "album", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(5) T(1)" }, { "db_id": "music_2", "query": "SELECT count(DISTINCT label) FROM albums", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "label", ")", "FROM", "albums" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "label", ")", "from", "albums" ], "question": "What are the unique labels for the albums?", "question_toks": [ "what", "are", "unique", "label", "for", "album", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 6, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "unique", "labels", "for", "the", "albums", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "unique" ], [ "label" ], [ "for" ], [ "album" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "unique", "JJ" ], [ "label", "NN" ], [ "for", "IN" ], [ "album", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(5) T(1)" }, { "db_id": "music_2", "query": "SELECT label FROM albums GROUP BY label ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "label", "FROM", "albums", "GROUP", "BY", "label", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "label", "from", "albums", "group", "by", "label", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the label that has the most albums?", "question_toks": [ "what", "is", "label", "that", "ha", "most", "album", "?" ], "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": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "label", "that", "has", "the", "most", "albums", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "label" ], [ "that" ], [ "ha" ], [ "most" ], [ "album" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "label", "JJ" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "album", "NNS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "music_2", "query": "SELECT label FROM albums GROUP BY label ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "label", "FROM", "albums", "GROUP", "BY", "label", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "label", "from", "albums", "group", "by", "label", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the label with the most albums?", "question_toks": [ "what", "is", "label", "with", "most", "album", "?" ], "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": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "label", "with", "the", "most", "albums", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "label" ], [ "with" ], [ "most" ], [ "album" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "label", "VBN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "album", "NNS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "music_2", "query": "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.lastname", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "GROUP", "BY", "lastname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "lastname", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "group", "by", "lastname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the last name of the musician that have produced the most number of songs?", "question_toks": [ "what", "is", "last", "name", "of", "musician", "that", "have", "produced", "most", "number", "of", "song", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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": [ [ false, 8, [ 0, [ 0, 8, 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": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "last", "name", "of", "the", "musician", "that", "have", "produced", "the", "most", "number", "of", "songs", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last", "name" ], [ "of" ], [ "musician" ], [ "that" ], [ "have" ], [ "produced" ], [ "most" ], [ "number" ], [ "of" ], [ "song" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "musician", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "produced", "VBN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(9) T(2) Sup(0) A(3) C(0) T(4) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(4)" }, { "db_id": "music_2", "query": "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.lastname", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "GROUP", "BY", "lastname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "lastname", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "group", "by", "lastname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the last name of the musician who was in the most songs?", "question_toks": [ "what", "is", "last", "name", "of", "musician", "who", "wa", "in", "most", "song", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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": [ [ false, 8, [ 0, [ 0, 8, 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": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "last", "name", "of", "the", "musician", "who", "was", "in", "the", "most", "songs", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last", "name" ], [ "of" ], [ "musician" ], [ "who" ], [ "wa" ], [ "in" ], [ "most" ], [ "song" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "musician", "NN" ], [ "who", "WP" ], [ "wa", "VBP" ], [ "in", "IN" ], [ "most", "JJS" ], [ "song", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(9) T(2) Sup(0) A(3) C(0) T(4) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(4)" }, { "db_id": "music_2", "query": "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = \"back\" GROUP BY lastname ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.lastname", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "WHERE", "stageposition", "=", "``", "back", "''", "GROUP", "BY", "lastname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "lastname", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "where", "stageposition", "=", "value", "group", "by", "lastname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the last name of the musician that has been at the back position the most?", "question_toks": [ "what", "is", "last", "name", "of", "musician", "that", "ha", "been", "at", "back", "position", "most", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"back\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "last", "name", "of", "the", "musician", "that", "has", "been", "at", "the", "back", "position", "the", "most", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last", "name" ], [ "of" ], [ "musician" ], [ "that" ], [ "ha" ], [ "been" ], [ "at" ], [ "back" ], [ "position" ], [ "most" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "musician", "NN" ], [ "that", "WDT" ], [ "ha", "VBD" ], [ "been", "VBN" ], [ "at", "IN" ], [ "back", "JJ" ], [ "position", "NN" ], [ "most", "JJS" ], [ "?", "." ] ], "values": [ "back" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(9) T(2) Sup(0) A(3) C(0) T(2) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "music_2", "query": "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = \"back\" GROUP BY lastname ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.lastname", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "WHERE", "stageposition", "=", "``", "back", "''", "GROUP", "BY", "lastname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "lastname", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "where", "stageposition", "=", "value", "group", "by", "lastname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the last name of the musicians who has played back position the most?", "question_toks": [ "what", "is", "last", "name", "of", "musician", "who", "ha", "played", "back", "position", "most", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"back\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "last", "name", "of", "the", "musicians", "who", "has", "played", "back", "position", "the", "most", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last", "name" ], [ "of" ], [ "musician" ], [ "who" ], [ "ha" ], [ "played" ], [ "back" ], [ "position" ], [ "most" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "musician", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "played", "VBN" ], [ "back", "RP" ], [ "position", "NN" ], [ "most", "RBS" ], [ "?", "." ] ], "values": [ "back" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(9) T(2) Sup(0) A(3) C(0) T(2) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "music_2", "query": "SELECT title FROM songs WHERE title LIKE '% the %'", "query_toks": [ "SELECT", "title", "FROM", "songs", "WHERE", "title", "LIKE", "'", "%", "the", "%", "'" ], "query_toks_no_value": [ "select", "title", "from", "songs", "where", "title", "like", "value" ], "question": "Find all the songs whose name contains the word \"the\".", "question_toks": [ "find", "all", "song", "whose", "name", "contains", "word", "'", "'", "." ], "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 ], "\"% the %\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Find", "all", "the", "songs", "whose", "name", "contains", "the", "word", "``", "the", "''", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "song" ], [ "whose" ], [ "name" ], [ "contains" ], [ "word" ], [ "'" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "song", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "word", "NN" ], [ "'", "''" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "the", " the " ], "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(1)" }, { "db_id": "music_2", "query": "SELECT title FROM songs WHERE title LIKE '% the %'", "query_toks": [ "SELECT", "title", "FROM", "songs", "WHERE", "title", "LIKE", "'", "%", "the", "%", "'" ], "query_toks_no_value": [ "select", "title", "from", "songs", "where", "title", "like", "value" ], "question": "What are the names of the songs whose title has the word \"the\"?", "question_toks": [ "what", "are", "name", "of", "song", "whose", "title", "ha", "word", "'", "'", "?" ], "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 ], "\"% the %\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "songs", "whose", "title", "has", "the", "word", "``", "the", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "song" ], [ "whose" ], [ "title" ], [ "ha" ], [ "word" ], [ "'" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "whose", "WP$" ], [ "title", "NN" ], [ "ha", "NN" ], [ "word", "NN" ], [ "'", "''" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "the", " the " ], "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(1)" }, { "db_id": "music_2", "query": "SELECT DISTINCT instrument FROM Instruments", "query_toks": [ "SELECT", "DISTINCT", "instrument", "FROM", "Instruments" ], "query_toks_no_value": [ "select", "distinct", "instrument", "from", "instruments" ], "question": "What are all the instruments used?", "question_toks": [ "what", "are", "all", "instrument", "used", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "all", "the", "instruments", "used", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "instrument" ], [ "used" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "instrument", "NN" ], [ "used", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(11) T(3)" }, { "db_id": "music_2", "query": "SELECT DISTINCT instrument FROM Instruments", "query_toks": [ "SELECT", "DISTINCT", "instrument", "FROM", "Instruments" ], "query_toks_no_value": [ "select", "distinct", "instrument", "from", "instruments" ], "question": "What are the different instruments listed in the database?", "question_toks": [ "what", "are", "different", "instrument", "listed", "in", "database", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "different", "instruments", "listed", "in", "the", "database", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "instrument" ], [ "listed" ], [ "in" ], [ "database" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "instrument", "NN" ], [ "listed", "VBN" ], [ "in", "IN" ], [ "database", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(11) T(3)" }, { "db_id": "music_2", "query": "SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = \"Heilo\" AND T3.title = \"Le Pop\"", "query_toks": [ "SELECT", "T4.instrument", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "JOIN", "Instruments", "AS", "T4", "ON", "T4.songid", "=", "T3.songid", "AND", "T4.bandmateid", "=", "T2.id", "WHERE", "T2.lastname", "=", "``", "Heilo", "''", "AND", "T3.title", "=", "``", "Le", "Pop", "''" ], "query_toks_no_value": [ "select", "t4", ".", "instrument", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "join", "instruments", "as", "t4", "on", "t4", ".", "songid", "=", "t3", ".", "songid", "and", "t4", ".", "bandmateid", "=", "t2", ".", "id", "where", "t2", ".", "lastname", "=", "value", "and", "t3", ".", "title", "=", "value" ], "question": "What instrument did the musician with last name \"Heilo\" use in the song \"Le Pop\"?", "question_toks": [ "what", "instrument", "did", "musician", "with", "last", "name", "'", "heilo", "'", "use", "in", "song", "'", "le", "pop", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, 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", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Heilo\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Le Pop\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "instrument", "did", "the", "musician", "with", "last", "name", "``", "Heilo", "''", "use", "in", "the", "song", "``", "Le", "Pop", "''", "?" ], "question_arg": [ [ "what" ], [ "instrument" ], [ "did" ], [ "musician" ], [ "with" ], [ "last", "name" ], [ "'" ], [ "heilo" ], [ "'" ], [ "use" ], [ "in" ], [ "song" ], [ "'" ], [ "le" ], [ "pop" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "instrument", "NN" ], [ "did", "VBD" ], [ "musician", "JJ" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "heilo", "NN" ], [ "'", "''" ], [ "use", "NN" ], [ "in", "IN" ], [ "song", "NN" ], [ "'", "''" ], [ "le", "JJ" ], [ "pop", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Heilo", "Le Pop" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(3) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(4) Filter(0) Filter(2) A(0) C(9) T(2) V(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "music_2", "query": "SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = \"Heilo\" AND T3.title = \"Le Pop\"", "query_toks": [ "SELECT", "T4.instrument", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "JOIN", "Instruments", "AS", "T4", "ON", "T4.songid", "=", "T3.songid", "AND", "T4.bandmateid", "=", "T2.id", "WHERE", "T2.lastname", "=", "``", "Heilo", "''", "AND", "T3.title", "=", "``", "Le", "Pop", "''" ], "query_toks_no_value": [ "select", "t4", ".", "instrument", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "join", "instruments", "as", "t4", "on", "t4", ".", "songid", "=", "t3", ".", "songid", "and", "t4", ".", "bandmateid", "=", "t2", ".", "id", "where", "t2", ".", "lastname", "=", "value", "and", "t3", ".", "title", "=", "value" ], "question": "What instruments did the musician with the last name \"Heilo\" play in the song \"Le Pop\"?", "question_toks": [ "what", "instrument", "did", "musician", "with", "last", "name", "'", "heilo", "'", "play", "in", "song", "'", "le", "pop", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, 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", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Heilo\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Le Pop\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "instruments", "did", "the", "musician", "with", "the", "last", "name", "``", "Heilo", "''", "play", "in", "the", "song", "``", "Le", "Pop", "''", "?" ], "question_arg": [ [ "what" ], [ "instrument" ], [ "did" ], [ "musician" ], [ "with" ], [ "last", "name" ], [ "'" ], [ "heilo" ], [ "'" ], [ "play" ], [ "in" ], [ "song" ], [ "'" ], [ "le" ], [ "pop" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "instrument", "NN" ], [ "did", "VBD" ], [ "musician", "JJ" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "heilo", "NN" ], [ "'", "''" ], [ "play", "NN" ], [ "in", "IN" ], [ "song", "NN" ], [ "'", "''" ], [ "le", "JJ" ], [ "pop", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Heilo", "Le Pop" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(3) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(4) Filter(0) Filter(2) A(0) C(9) T(2) V(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "music_2", "query": "SELECT instrument FROM instruments GROUP BY instrument ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "instrument", "FROM", "instruments", "GROUP", "BY", "instrument", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "instrument", "from", "instruments", "group", "by", "instrument", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most used instrument?", "question_toks": [ "what", "is", "most", "used", "instrument", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "most", "used", "instrument", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "used" ], [ "instrument" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "used", "JJ" ], [ "instrument", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(11) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "music_2", "query": "SELECT instrument FROM instruments GROUP BY instrument ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "instrument", "FROM", "instruments", "GROUP", "BY", "instrument", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "instrument", "from", "instruments", "group", "by", "instrument", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What instrument is used the most?", "question_toks": [ "what", "instrument", "is", "used", "most", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "instrument", "is", "used", "the", "most", "?" ], "question_arg": [ [ "what" ], [ "instrument" ], [ "is" ], [ "used" ], [ "most" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "instrument", "NN" ], [ "is", "VBZ" ], [ "used", "VBN" ], [ "most", "RBS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(11) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "music_2", "query": "SELECT count(*) FROM instruments WHERE instrument = \"drums\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "instruments", "WHERE", "instrument", "=", "``", "drums", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "instruments", "where", "instrument", "=", "value" ], "question": "How many songs have used the instrument \"drums\"?", "question_toks": [ "how", "many", "song", "have", "used", "instrument", "'", "drum", "'", "?" ], "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, 13, false ], null ], "\"drums\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "How", "many", "songs", "have", "used", "the", "instrument", "``", "drums", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "song" ], [ "have" ], [ "used" ], [ "instrument" ], [ "'" ], [ "drum" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "instrument" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "song", "NN" ], [ "have", "VBP" ], [ "used", "VBN" ], [ "instrument", "NN" ], [ "'", "''" ], [ "drum", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "drums" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(2) A(0) C(11) T(3) V(0)" }, { "db_id": "music_2", "query": "SELECT count(*) FROM instruments WHERE instrument = \"drums\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "instruments", "WHERE", "instrument", "=", "``", "drums", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "instruments", "where", "instrument", "=", "value" ], "question": "How many songs use drums as an instrument?", "question_toks": [ "how", "many", "song", "use", "drum", "a", "an", "instrument", "?" ], "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, 13, false ], null ], "\"drums\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "How", "many", "songs", "use", "drums", "as", "an", "instrument", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "song" ], [ "use" ], [ "drum" ], [ "a" ], [ "an" ], [ "instrument" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "song", "NN" ], [ "use", "NN" ], [ "drum", "NN" ], [ "a", "DT" ], [ "an", "DT" ], [ "instrument", "NN" ], [ "?", "." ] ], "values": [ "drums" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(2) A(0) C(11) T(3) V(0)" }, { "db_id": "music_2", "query": "SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Le Pop\"", "query_toks": [ "SELECT", "instrument", "FROM", "instruments", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "WHERE", "title", "=", "``", "Le", "Pop", "''" ], "query_toks_no_value": [ "select", "instrument", "from", "instruments", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "title", "=", "value" ], "question": "What instruments does the the song \"Le Pop\" use?", "question_toks": [ "what", "instrument", "doe", "song", "'", "le", "pop", "'", "use", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Le Pop\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "instruments", "does", "the", "the", "song", "``", "Le", "Pop", "''", "use", "?" ], "question_arg": [ [ "what" ], [ "instrument" ], [ "doe" ], [ "song" ], [ "'" ], [ "le" ], [ "pop" ], [ "'" ], [ "use" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "instrument", "NN" ], [ "doe", "NN" ], [ "song", "NN" ], [ "'", "''" ], [ "le", "JJ" ], [ "pop", "NN" ], [ "'", "''" ], [ "use", "NN" ], [ "?", "." ] ], "values": [ "Le Pop" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Le Pop\"", "query_toks": [ "SELECT", "instrument", "FROM", "instruments", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "WHERE", "title", "=", "``", "Le", "Pop", "''" ], "query_toks_no_value": [ "select", "instrument", "from", "instruments", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "title", "=", "value" ], "question": "What are the instruments are used in the song \"Le Pop\"?", "question_toks": [ "what", "are", "instrument", "are", "used", "in", "song", "'", "le", "pop", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Le Pop\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "instruments", "are", "used", "in", "the", "song", "``", "Le", "Pop", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "instrument" ], [ "are" ], [ "used" ], [ "in" ], [ "song" ], [ "'" ], [ "le" ], [ "pop" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "instrument", "JJ" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "in", "IN" ], [ "song", "NN" ], [ "'", "''" ], [ "le", "JJ" ], [ "pop", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Le Pop" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Le Pop\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "instrument", ")", "FROM", "instruments", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "WHERE", "title", "=", "``", "Le", "Pop", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "instrument", ")", "from", "instruments", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "title", "=", "value" ], "question": "How many instruments does the song \"Le Pop\" use?", "question_toks": [ "how", "many", "instrument", "doe", "song", "'", "le", "pop", "'", "use", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 13, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Le Pop\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "How", "many", "instruments", "does", "the", "song", "``", "Le", "Pop", "''", "use", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "instrument" ], [ "doe" ], [ "song" ], [ "'" ], [ "le" ], [ "pop" ], [ "'" ], [ "use" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "instrument", "NN" ], [ "doe", "NN" ], [ "song", "NN" ], [ "'", "''" ], [ "le", "JJ" ], [ "pop", "NN" ], [ "'", "''" ], [ "use", "NN" ], [ "?", "." ] ], "values": [ "Le Pop" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(11) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Le Pop\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "instrument", ")", "FROM", "instruments", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "WHERE", "title", "=", "``", "Le", "Pop", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "instrument", ")", "from", "instruments", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "title", "=", "value" ], "question": "How many different instruments are used in the song \"Le Pop\"?", "question_toks": [ "how", "many", "different", "instrument", "are", "used", "in", "song", "'", "le", "pop", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 13, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Le Pop\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "How", "many", "different", "instruments", "are", "used", "in", "the", "song", "``", "Le", "Pop", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "instrument" ], [ "are" ], [ "used" ], [ "in" ], [ "song" ], [ "'" ], [ "le" ], [ "pop" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "instrument", "NN" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "in", "IN" ], [ "song", "NN" ], [ "'", "''" ], [ "le", "JJ" ], [ "pop", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Le Pop" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(11) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = \"Heilo\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "instrument", ")", "FROM", "instruments", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmateid", "=", "T2.id", "WHERE", "T2.lastname", "=", "``", "Heilo", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "instrument", ")", "from", "instruments", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmateid", "=", "t2", ".", "id", "where", "t2", ".", "lastname", "=", "value" ], "question": "How many instrument does the musician with last name \"Heilo\" use?", "question_toks": [ "how", "many", "instrument", "doe", "musician", "with", "last", "name", "'", "heilo", "'", "use", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 13, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Heilo\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "How", "many", "instrument", "does", "the", "musician", "with", "last", "name", "``", "Heilo", "''", "use", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "instrument" ], [ "doe" ], [ "musician" ], [ "with" ], [ "last", "name" ], [ "'" ], [ "heilo" ], [ "'" ], [ "use" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "instrument", "NN" ], [ "doe", "NNS" ], [ "musician", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "heilo", "NN" ], [ "'", "''" ], [ "use", "NN" ], [ "?", "." ] ], "values": [ "Heilo" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(11) T(3) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "music_2", "query": "SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = \"Heilo\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "instrument", ")", "FROM", "instruments", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmateid", "=", "T2.id", "WHERE", "T2.lastname", "=", "``", "Heilo", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "instrument", ")", "from", "instruments", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmateid", "=", "t2", ".", "id", "where", "t2", ".", "lastname", "=", "value" ], "question": "How many different instruments does the musician with the last name \"Heilo\" use?", "question_toks": [ "how", "many", "different", "instrument", "doe", "musician", "with", "last", "name", "'", "heilo", "'", "use", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 13, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Heilo\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "How", "many", "different", "instruments", "does", "the", "musician", "with", "the", "last", "name", "``", "Heilo", "''", "use", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "instrument" ], [ "doe" ], [ "musician" ], [ "with" ], [ "last", "name" ], [ "'" ], [ "heilo" ], [ "'" ], [ "use" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "instrument", "NN" ], [ "doe", "NN" ], [ "musician", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "heilo", "NN" ], [ "'", "''" ], [ "use", "NN" ], [ "?", "." ] ], "values": [ "Heilo" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(11) T(3) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "music_2", "query": "SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = \"Heilo\"", "query_toks": [ "SELECT", "instrument", "FROM", "instruments", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmateid", "=", "T2.id", "WHERE", "T2.lastname", "=", "``", "Heilo", "''" ], "query_toks_no_value": [ "select", "instrument", "from", "instruments", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmateid", "=", "t2", ".", "id", "where", "t2", ".", "lastname", "=", "value" ], "question": "Find all the instruments ever used by the musician with last name \"Heilo\"?", "question_toks": [ "find", "all", "instrument", "ever", "used", "by", "musician", "with", "last", "name", "'", "heilo", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Heilo\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Find", "all", "the", "instruments", "ever", "used", "by", "the", "musician", "with", "last", "name", "``", "Heilo", "''", "?" ], "question_arg": [ [ "find" ], [ "all" ], [ "instrument" ], [ "ever" ], [ "used" ], [ "by" ], [ "musician" ], [ "with" ], [ "last", "name" ], [ "'" ], [ "heilo" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "instrument", "NN" ], [ "ever", "RB" ], [ "used", "VBN" ], [ "by", "IN" ], [ "musician", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "heilo", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Heilo" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(3) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "music_2", "query": "SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = \"Heilo\"", "query_toks": [ "SELECT", "instrument", "FROM", "instruments", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmateid", "=", "T2.id", "WHERE", "T2.lastname", "=", "``", "Heilo", "''" ], "query_toks_no_value": [ "select", "instrument", "from", "instruments", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmateid", "=", "t2", ".", "id", "where", "t2", ".", "lastname", "=", "value" ], "question": "What are all the instruments used by the musician with the last name \"Heilo\"?", "question_toks": [ "what", "are", "all", "instrument", "used", "by", "musician", "with", "last", "name", "'", "heilo", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Heilo\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "all", "the", "instruments", "used", "by", "the", "musician", "with", "the", "last", "name", "``", "Heilo", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "instrument" ], [ "used" ], [ "by" ], [ "musician" ], [ "with" ], [ "last", "name" ], [ "'" ], [ "heilo" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "instrument", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "musician", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "heilo", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Heilo" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(3) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "music_2", "query": "SELECT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid GROUP BY T1.songid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "title", "FROM", "vocals", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "GROUP", "BY", "T1.songid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "group", "by", "t1", ".", "songid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which song has the most vocals?", "question_toks": [ "which", "song", "ha", "most", "vocal", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 20, 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, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Which", "song", "has", "the", "most", "vocals", "?" ], "question_arg": [ [ "which" ], [ "song" ], [ "ha" ], [ "most" ], [ "vocal" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "song", "RB" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "vocal", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(3) C(0) T(6) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(6)" }, { "db_id": "music_2", "query": "SELECT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid GROUP BY T1.songid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "title", "FROM", "vocals", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "GROUP", "BY", "T1.songid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "group", "by", "t1", ".", "songid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the song with the most vocals?", "question_toks": [ "what", "is", "song", "with", "most", "vocal", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 20, 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, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "song", "with", "the", "most", "vocals", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "song" ], [ "with" ], [ "most" ], [ "vocal" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "song", "JJ" ], [ "with", "IN" ], [ "most", "JJS" ], [ "vocal", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(3) C(0) T(6) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(6)" }, { "db_id": "music_2", "query": "SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "TYPE", "FROM", "vocals", "GROUP", "BY", "TYPE", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "type", "from", "vocals", "group", "by", "type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which vocal type is the most frequently appearring type?", "question_toks": [ "which", "vocal", "type", "is", "most", "frequently", "appearring", "type", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 22, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Which", "vocal", "type", "is", "the", "most", "frequently", "appearring", "type", "?" ], "question_arg": [ [ "which" ], [ "vocal" ], [ "type" ], [ "is" ], [ "most" ], [ "frequently" ], [ "appearring" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "vocal", "JJ" ], [ "type", "NN" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "frequently", "RB" ], [ "appearring", "VBG" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "music_2", "query": "SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "TYPE", "FROM", "vocals", "GROUP", "BY", "TYPE", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "type", "from", "vocals", "group", "by", "type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the type of vocables that appears most frequently?", "question_toks": [ "what", "is", "type", "of", "vocable", "that", "appears", "most", "frequently", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 22, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "type", "of", "vocables", "that", "appears", "most", "frequently", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "type" ], [ "of" ], [ "vocable" ], [ "that" ], [ "appears" ], [ "most" ], [ "frequently" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "type", "NN" ], [ "of", "IN" ], [ "vocable", "JJ" ], [ "that", "IN" ], [ "appears", "VBZ" ], [ "most", "RBS" ], [ "frequently", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "music_2", "query": "SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE lastname = \"Heilo\" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "TYPE", "FROM", "vocals", "AS", "T1", "JOIN", "band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "WHERE", "lastname", "=", "``", "Heilo", "''", "GROUP", "BY", "TYPE", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "type", "from", "vocals", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "where", "lastname", "=", "value", "group", "by", "type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which vocal type has the band mate with last name \"Heilo\" played the most?", "question_toks": [ "which", "vocal", "type", "ha", "band", "mate", "with", "last", "name", "'", "heilo", "'", "played", "most", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Heilo\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Which", "vocal", "type", "has", "the", "band", "mate", "with", "last", "name", "``", "Heilo", "''", "played", "the", "most", "?" ], "question_arg": [ [ "which" ], [ "vocal" ], [ "type" ], [ "ha" ], [ "band" ], [ "mate" ], [ "with" ], [ "last", "name" ], [ "'" ], [ "heilo" ], [ "'" ], [ "played" ], [ "most" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "vocal", "JJ" ], [ "type", "NN" ], [ "ha", "NN" ], [ "band", "NN" ], [ "mate", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "heilo", "NN" ], [ "'", "''" ], [ "played", "VBN" ], [ "most", "JJS" ], [ "?", "." ] ], "values": [ "Heilo" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(6) T(6) Sup(0) A(3) C(0) T(6) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "music_2", "query": "SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE lastname = \"Heilo\" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "TYPE", "FROM", "vocals", "AS", "T1", "JOIN", "band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "WHERE", "lastname", "=", "``", "Heilo", "''", "GROUP", "BY", "TYPE", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "type", "from", "vocals", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "where", "lastname", "=", "value", "group", "by", "type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the type of vocals that the band member with the last name \"Heilo\" played the most?", "question_toks": [ "what", "is", "type", "of", "vocal", "that", "band", "member", "with", "last", "name", "'", "heilo", "'", "played", "most", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Heilo\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "type", "of", "vocals", "that", "the", "band", "member", "with", "the", "last", "name", "``", "Heilo", "''", "played", "the", "most", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "type" ], [ "of" ], [ "vocal" ], [ "that" ], [ "band" ], [ "member" ], [ "with" ], [ "last", "name" ], [ "'" ], [ "heilo" ], [ "'" ], [ "played" ], [ "most" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "type", "NN" ], [ "of", "IN" ], [ "vocal", "NN" ], [ "that", "IN" ], [ "band", "VBZ" ], [ "member", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "heilo", "NN" ], [ "'", "''" ], [ "played", "VBN" ], [ "most", "JJS" ], [ "?", "." ] ], "values": [ "Heilo" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(6) T(6) Sup(0) A(3) C(0) T(6) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "music_2", "query": "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Le Pop\"", "query_toks": [ "SELECT", "TYPE", "FROM", "vocals", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "WHERE", "title", "=", "``", "Le", "Pop", "''" ], "query_toks_no_value": [ "select", "type", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "title", "=", "value" ], "question": "What are the vocal types used in song \"Le Pop\"?", "question_toks": [ "what", "are", "vocal", "type", "used", "in", "song", "'", "le", "pop", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Le Pop\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "vocal", "types", "used", "in", "song", "``", "Le", "Pop", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "vocal" ], [ "type" ], [ "used" ], [ "in" ], [ "song" ], [ "'" ], [ "le" ], [ "pop" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "vocal", "JJ" ], [ "type", "NN" ], [ "used", "VBN" ], [ "in", "IN" ], [ "song", "NN" ], [ "'", "''" ], [ "le", "JJ" ], [ "pop", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Le Pop" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(6) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Le Pop\"", "query_toks": [ "SELECT", "TYPE", "FROM", "vocals", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "WHERE", "title", "=", "``", "Le", "Pop", "''" ], "query_toks_no_value": [ "select", "type", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "title", "=", "value" ], "question": "What are the types of vocals used in the song \"Le Pop\"?", "question_toks": [ "what", "are", "type", "of", "vocal", "used", "in", "song", "'", "le", "pop", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Le Pop\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "types", "of", "vocals", "used", "in", "the", "song", "``", "Le", "Pop", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "type" ], [ "of" ], [ "vocal" ], [ "used" ], [ "in" ], [ "song" ], [ "'" ], [ "le" ], [ "pop" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "type", "JJ" ], [ "of", "IN" ], [ "vocal", "NN" ], [ "used", "VBN" ], [ "in", "IN" ], [ "song", "NN" ], [ "'", "''" ], [ "le", "JJ" ], [ "pop", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Le Pop" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(6) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Demon Kitty Rag\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "vocals", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "WHERE", "title", "=", "``", "Demon", "Kitty", "Rag", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "title", "=", "value" ], "question": "Find the number of vocal types used in song \"Demon Kitty Rag\"?", "question_toks": [ "find", "number", "of", "vocal", "type", "used", "in", "song", "'", "demon", "kitty", "rag", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "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 ], "\"Demon Kitty Rag\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Find", "the", "number", "of", "vocal", "types", "used", "in", "song", "``", "Demon", "Kitty", "Rag", "''", "?" ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "vocal" ], [ "type" ], [ "used" ], [ "in" ], [ "song" ], [ "'" ], [ "demon" ], [ "kitty" ], [ "rag" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "vocal", "JJ" ], [ "type", "NN" ], [ "used", "VBN" ], [ "in", "IN" ], [ "song", "NN" ], [ "'", "''" ], [ "demon", "NN" ], [ "kitty", "VBD" ], [ "rag", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Demon Kitty Rag" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(6) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Demon Kitty Rag\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "vocals", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "WHERE", "title", "=", "``", "Demon", "Kitty", "Rag", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "title", "=", "value" ], "question": "What are the types of vocals used in the song \"Demon Kitty Rag\"?", "question_toks": [ "what", "are", "type", "of", "vocal", "used", "in", "song", "'", "demon", "kitty", "rag", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "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 ], "\"Demon Kitty Rag\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "types", "of", "vocals", "used", "in", "the", "song", "``", "Demon", "Kitty", "Rag", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "type" ], [ "of" ], [ "vocal" ], [ "used" ], [ "in" ], [ "song" ], [ "'" ], [ "demon" ], [ "kitty" ], [ "rag" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "type", "JJ" ], [ "of", "IN" ], [ "vocal", "NN" ], [ "used", "VBN" ], [ "in", "IN" ], [ "song", "NN" ], [ "'", "''" ], [ "demon", "NN" ], [ "kitty", "VBD" ], [ "rag", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Demon Kitty Rag" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(6) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = \"lead\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "title", ")", "FROM", "vocals", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "WHERE", "TYPE", "=", "``", "lead", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "title", ")", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "type", "=", "value" ], "question": "How many songs have a lead vocal?", "question_toks": [ "how", "many", "song", "have", "a", "lead", "vocal", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 2, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"lead\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "How", "many", "songs", "have", "a", "lead", "vocal", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "song" ], [ "have" ], [ "a" ], [ "lead" ], [ "vocal" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "song", "RB" ], [ "have", "VBP" ], [ "a", "DT" ], [ "lead", "JJ" ], [ "vocal", "NN" ], [ "?", "." ] ], "values": [ "lead" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(2) T(0) Filter(2) A(0) C(6) T(6) V(0)" }, { "db_id": "music_2", "query": "SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = \"lead\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "title", ")", "FROM", "vocals", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "WHERE", "TYPE", "=", "``", "lead", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "title", ")", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "type", "=", "value" ], "question": "How many songs have vocals of type lead?", "question_toks": [ "how", "many", "song", "have", "vocal", "of", "type", "lead", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 2, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"lead\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "How", "many", "songs", "have", "vocals", "of", "type", "lead", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "song" ], [ "have" ], [ "vocal" ], [ "of" ], [ "type" ], [ "lead" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "song", "NN" ], [ "have", "VBP" ], [ "vocal", "NN" ], [ "of", "IN" ], [ "type", "JJ" ], [ "lead", "NN" ], [ "?", "." ] ], "values": [ "lead" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(2) T(0) Filter(2) A(0) C(6) T(6) V(0)" }, { "db_id": "music_2", "query": "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.firstname = \"Solveig\" AND T2.title = \"A Bar In Amsterdam\"", "query_toks": [ "SELECT", "TYPE", "FROM", "vocals", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "JOIN", "band", "AS", "T3", "ON", "T1.bandmate", "=", "T3.id", "WHERE", "T3.firstname", "=", "``", "Solveig", "''", "AND", "T2.title", "=", "``", "A", "Bar", "In", "Amsterdam", "''" ], "query_toks_no_value": [ "select", "type", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "join", "band", "as", "t3", "on", "t1", ".", "bandmate", "=", "t3", ".", "id", "where", "t3", ".", "firstname", "=", "value", "and", "t2", ".", "title", "=", "value" ], "question": "Which vocal type did the musician with first name \"Solveig\" played in the song with title \"A Bar in Amsterdam\"?", "question_toks": [ "which", "vocal", "type", "did", "musician", "with", "first", "name", "'", "solveig", "'", "played", "in", "song", "with", "title", "'", "a", "bar", "in", "amsterdam", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Solveig\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"A Bar In Amsterdam\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Which", "vocal", "type", "did", "the", "musician", "with", "first", "name", "``", "Solveig", "''", "played", "in", "the", "song", "with", "title", "``", "A", "Bar", "in", "Amsterdam", "''", "?" ], "question_arg": [ [ "which" ], [ "vocal" ], [ "type" ], [ "did" ], [ "musician" ], [ "with" ], [ "first", "name" ], [ "'" ], [ "solveig" ], [ "'" ], [ "played" ], [ "in" ], [ "song" ], [ "with" ], [ "title" ], [ "'" ], [ "a" ], [ "bar" ], [ "in" ], [ "amsterdam" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "vocal", "JJ" ], [ "type", "NN" ], [ "did", "VBD" ], [ "musician", "JJ" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "solveig", "NN" ], [ "'", "''" ], [ "played", "VBN" ], [ "in", "IN" ], [ "song", "NN" ], [ "with", "IN" ], [ "title", "NN" ], [ "'", "''" ], [ "a", "DT" ], [ "bar", "NN" ], [ "in", "IN" ], [ "amsterdam", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "A Bar in Amsterdam", "Solveig", "1", "A Bar In Amsterdam" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(6) Filter(0) Filter(2) A(0) C(8) T(2) V(1) Filter(2) A(0) C(2) T(0) V(3)" }, { "db_id": "music_2", "query": "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.firstname = \"Solveig\" AND T2.title = \"A Bar In Amsterdam\"", "query_toks": [ "SELECT", "TYPE", "FROM", "vocals", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "JOIN", "band", "AS", "T3", "ON", "T1.bandmate", "=", "T3.id", "WHERE", "T3.firstname", "=", "``", "Solveig", "''", "AND", "T2.title", "=", "``", "A", "Bar", "In", "Amsterdam", "''" ], "query_toks_no_value": [ "select", "type", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "join", "band", "as", "t3", "on", "t1", ".", "bandmate", "=", "t3", ".", "id", "where", "t3", ".", "firstname", "=", "value", "and", "t2", ".", "title", "=", "value" ], "question": "What are the types of vocals that the musician with the first name \"Solveig\" played in the song \"A Bar in Amsterdam\"?", "question_toks": [ "what", "are", "type", "of", "vocal", "that", "musician", "with", "first", "name", "'", "solveig", "'", "played", "in", "song", "'", "a", "bar", "in", "amsterdam", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Solveig\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"A Bar In Amsterdam\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "types", "of", "vocals", "that", "the", "musician", "with", "the", "first", "name", "``", "Solveig", "''", "played", "in", "the", "song", "``", "A", "Bar", "in", "Amsterdam", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "type" ], [ "of" ], [ "vocal" ], [ "that" ], [ "musician" ], [ "with" ], [ "first", "name" ], [ "'" ], [ "solveig" ], [ "'" ], [ "played" ], [ "in" ], [ "song" ], [ "'" ], [ "a" ], [ "bar" ], [ "in" ], [ "amsterdam" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "type", "JJ" ], [ "of", "IN" ], [ "vocal", "NN" ], [ "that", "WDT" ], [ "musician", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "solveig", "NN" ], [ "'", "''" ], [ "played", "VBN" ], [ "in", "IN" ], [ "song", "NN" ], [ "'", "''" ], [ "a", "DT" ], [ "bar", "NN" ], [ "in", "IN" ], [ "amsterdam", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "A Bar in Amsterdam", "Solveig", "1", "A Bar In Amsterdam" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(6) Filter(0) Filter(2) A(0) C(8) T(2) V(1) Filter(2) A(0) C(2) T(0) V(3)" }, { "db_id": "music_2", "query": "SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = \"lead\"", "query_toks": [ "SELECT", "DISTINCT", "title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "EXCEPT", "SELECT", "t2.title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "WHERE", "TYPE", "=", "``", "lead", "''" ], "query_toks_no_value": [ "select", "distinct", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "except", "select", "t2", ".", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "type", "=", "value" ], "question": "Find all the songs that do not have a lead vocal.", "question_toks": [ "find", "all", "song", "that", "do", "not", "have", "a", "lead", "vocal", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"lead\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "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, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Find", "all", "the", "songs", "that", "do", "not", "have", "a", "lead", "vocal", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "song" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "a" ], [ "lead" ], [ "vocal" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "song", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "lead", "JJ" ], [ "vocal", "NN" ], [ ".", "." ] ], "values": [ "lead" ], "rule_label": "Root1(2) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(6) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(6) V(0)" }, { "db_id": "music_2", "query": "SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = \"lead\"", "query_toks": [ "SELECT", "DISTINCT", "title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "EXCEPT", "SELECT", "t2.title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "WHERE", "TYPE", "=", "``", "lead", "''" ], "query_toks_no_value": [ "select", "distinct", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "except", "select", "t2", ".", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "type", "=", "value" ], "question": "What are the names of the songs without a lead vocal?", "question_toks": [ "what", "are", "name", "of", "song", "without", "a", "lead", "vocal", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"lead\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "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, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "songs", "without", "a", "lead", "vocal", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "song" ], [ "without" ], [ "a" ], [ "lead" ], [ "vocal" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "without", "IN" ], [ "a", "DT" ], [ "lead", "JJ" ], [ "vocal", "NN" ], [ "?", "." ] ], "values": [ "lead" ], "rule_label": "Root1(2) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(6) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(6) V(0)" }, { "db_id": "music_2", "query": "SELECT DISTINCT TYPE FROM vocals", "query_toks": [ "SELECT", "DISTINCT", "TYPE", "FROM", "vocals" ], "query_toks_no_value": [ "select", "distinct", "type", "from", "vocals" ], "question": "Find all the vocal types.", "question_toks": [ "find", "all", "vocal", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Find", "all", "the", "vocal", "types", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "vocal" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "vocal", "JJ" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(6) T(6)" }, { "db_id": "music_2", "query": "SELECT DISTINCT TYPE FROM vocals", "query_toks": [ "SELECT", "DISTINCT", "TYPE", "FROM", "vocals" ], "query_toks_no_value": [ "select", "distinct", "type", "from", "vocals" ], "question": "What are the different types of vocals?", "question_toks": [ "what", "are", "different", "type", "of", "vocal", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "different", "types", "of", "vocals", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "type" ], [ "of" ], [ "vocal" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "vocal", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(6) T(6)" }, { "db_id": "music_2", "query": "SELECT * FROM Albums WHERE YEAR = 2010", "query_toks": [ "SELECT", "*", "FROM", "Albums", "WHERE", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "*", "from", "albums", "where", "year", "=", "value" ], "question": "What are the albums produced in year 2010?", "question_toks": [ "what", "are", "album", "produced", "in", "year", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], 2010.0, null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "albums", "produced", "in", "year", "2010", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "album" ], [ "produced" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "album", "JJ" ], [ "produced", "VBN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "2010" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "music_2", "query": "SELECT * FROM Albums WHERE YEAR = 2010", "query_toks": [ "SELECT", "*", "FROM", "Albums", "WHERE", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "*", "from", "albums", "where", "year", "=", "value" ], "question": "What information is there on albums from 2010?", "question_toks": [ "what", "information", "is", "there", "on", "album", "from", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], 2010.0, null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "information", "is", "there", "on", "albums", "from", "2010", "?" ], "question_arg": [ [ "what" ], [ "information" ], [ "is" ], [ "there" ], [ "on" ], [ "album" ], [ "from" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "information", "NN" ], [ "is", "VBZ" ], [ "there", "RB" ], [ "on", "IN" ], [ "album", "NN" ], [ "from", "IN" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "2010" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "music_2", "query": "SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = \"Le Pop\"", "query_toks": [ "SELECT", "T2.firstname", ",", "T2.lastname", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "WHERE", "T3.Title", "=", "``", "Le", "Pop", "''" ], "query_toks_no_value": [ "select", "t2", ".", "firstname", ",", "t2", ".", "lastname", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "where", "t3", ".", "title", "=", "value" ], "question": "Who performed the song named \"Le Pop\"?", "question_toks": [ "who", "performed", "song", "named", "'", "le", "pop", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "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, 8, [ 0, [ 0, 8, 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 ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Le Pop\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Who", "performed", "the", "song", "named", "``", "Le", "Pop", "''", "?" ], "question_arg": [ [ "who" ], [ "performed" ], [ "song" ], [ "named" ], [ "'" ], [ "le" ], [ "pop" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "performed", "VBD" ], [ "song", "RB" ], [ "named", "VBN" ], [ "'", "''" ], [ "le", "JJ" ], [ "pop", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Le Pop" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(2) A(0) C(9) T(2) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(4) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = \"Le Pop\"", "query_toks": [ "SELECT", "T2.firstname", ",", "T2.lastname", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "WHERE", "T3.Title", "=", "``", "Le", "Pop", "''" ], "query_toks_no_value": [ "select", "t2", ".", "firstname", ",", "t2", ".", "lastname", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "where", "t3", ".", "title", "=", "value" ], "question": "What is the first and last name of artist who performed \"Le Pop\"?", "question_toks": [ "what", "is", "first", "and", "last", "name", "of", "artist", "who", "performed", "'", "le", "pop", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "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, 8, [ 0, [ 0, 8, 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 ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Le Pop\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "first", "and", "last", "name", "of", "artist", "who", "performed", "``", "Le", "Pop", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "performed" ], [ "'" ], [ "le" ], [ "pop" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "performed", "VBD" ], [ "'", "POS" ], [ "le", "JJ" ], [ "pop", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Le Pop", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(2) A(0) C(9) T(2) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(4) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.lastname", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "GROUP", "BY", "lastname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "lastname", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "group", "by", "lastname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the last name of the musician that have produced the most songs?", "question_toks": [ "what", "is", "last", "name", "of", "musician", "that", "have", "produced", "most", "song", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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": [ [ false, 8, [ 0, [ 0, 8, 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": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "last", "name", "of", "the", "musician", "that", "have", "produced", "the", "most", "songs", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last", "name" ], [ "of" ], [ "musician" ], [ "that" ], [ "have" ], [ "produced" ], [ "most" ], [ "song" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "musician", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "produced", "VBN" ], [ "most", "JJS" ], [ "song", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(9) T(2) Sup(0) A(3) C(0) T(4) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(4)" }, { "db_id": "music_2", "query": "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.lastname", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "GROUP", "BY", "lastname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "lastname", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "group", "by", "lastname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the last name of the artist who sang the most songs?", "question_toks": [ "what", "is", "last", "name", "of", "artist", "who", "sang", "most", "song", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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": [ [ false, 8, [ 0, [ 0, 8, 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": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "last", "name", "of", "the", "artist", "who", "sang", "the", "most", "songs", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last", "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "sang" ], [ "most" ], [ "song" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "sang", "VBD" ], [ "most", "JJS" ], [ "song", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(9) T(2) Sup(0) A(3) C(0) T(4) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(4)" }, { "db_id": "music_2", "query": "SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = \"Heilo\" AND T3.title = \"Badlands\"", "query_toks": [ "SELECT", "T4.instrument", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "JOIN", "Instruments", "AS", "T4", "ON", "T4.songid", "=", "T3.songid", "AND", "T4.bandmateid", "=", "T2.id", "WHERE", "T2.lastname", "=", "``", "Heilo", "''", "AND", "T3.title", "=", "``", "Badlands", "''" ], "query_toks_no_value": [ "select", "t4", ".", "instrument", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "join", "instruments", "as", "t4", "on", "t4", ".", "songid", "=", "t3", ".", "songid", "and", "t4", ".", "bandmateid", "=", "t2", ".", "id", "where", "t2", ".", "lastname", "=", "value", "and", "t3", ".", "title", "=", "value" ], "question": "What instrument did the musician with last name \"Heilo\" use in the song \"Badlands\"?", "question_toks": [ "what", "instrument", "did", "musician", "with", "last", "name", "'", "heilo", "'", "use", "in", "song", "'", "badlands", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, 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", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Heilo\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Badlands\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "instrument", "did", "the", "musician", "with", "last", "name", "``", "Heilo", "''", "use", "in", "the", "song", "``", "Badlands", "''", "?" ], "question_arg": [ [ "what" ], [ "instrument" ], [ "did" ], [ "musician" ], [ "with" ], [ "last", "name" ], [ "'" ], [ "heilo" ], [ "'" ], [ "use" ], [ "in" ], [ "song" ], [ "'" ], [ "badlands" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "instrument", "NN" ], [ "did", "VBD" ], [ "musician", "JJ" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "heilo", "NN" ], [ "'", "''" ], [ "use", "NN" ], [ "in", "IN" ], [ "song", "NN" ], [ "'", "POS" ], [ "badlands", "NNS" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Heilo", "Badlands" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(3) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(4) Filter(0) Filter(2) A(0) C(9) T(2) V(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "music_2", "query": "SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = \"Heilo\" AND T3.title = \"Badlands\"", "query_toks": [ "SELECT", "T4.instrument", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "JOIN", "Instruments", "AS", "T4", "ON", "T4.songid", "=", "T3.songid", "AND", "T4.bandmateid", "=", "T2.id", "WHERE", "T2.lastname", "=", "``", "Heilo", "''", "AND", "T3.title", "=", "``", "Badlands", "''" ], "query_toks_no_value": [ "select", "t4", ".", "instrument", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "join", "instruments", "as", "t4", "on", "t4", ".", "songid", "=", "t3", ".", "songid", "and", "t4", ".", "bandmateid", "=", "t2", ".", "id", "where", "t2", ".", "lastname", "=", "value", "and", "t3", ".", "title", "=", "value" ], "question": "What instruments did the musician with the last name \"Heilo\" play in \"Badlands\"?", "question_toks": [ "what", "instrument", "did", "musician", "with", "last", "name", "'", "heilo", "'", "play", "in", "'", "badlands", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, 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", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Heilo\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Badlands\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "instruments", "did", "the", "musician", "with", "the", "last", "name", "``", "Heilo", "''", "play", "in", "``", "Badlands", "''", "?" ], "question_arg": [ [ "what" ], [ "instrument" ], [ "did" ], [ "musician" ], [ "with" ], [ "last", "name" ], [ "'" ], [ "heilo" ], [ "'" ], [ "play" ], [ "in" ], [ "'" ], [ "badlands" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "instrument", "NN" ], [ "did", "VBD" ], [ "musician", "JJ" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "heilo", "NN" ], [ "'", "''" ], [ "play", "NN" ], [ "in", "IN" ], [ "'", "''" ], [ "badlands", "NNS" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Heilo", "Badlands" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(3) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(4) Filter(0) Filter(2) A(0) C(9) T(2) V(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "music_2", "query": "SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Badlands\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "instrument", ")", "FROM", "instruments", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "WHERE", "title", "=", "``", "Badlands", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "instrument", ")", "from", "instruments", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "title", "=", "value" ], "question": "How many instruments does the song \"Badlands\" use?", "question_toks": [ "how", "many", "instrument", "doe", "song", "'", "badlands", "'", "use", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 13, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Badlands\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "How", "many", "instruments", "does", "the", "song", "``", "Badlands", "''", "use", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "instrument" ], [ "doe" ], [ "song" ], [ "'" ], [ "badlands" ], [ "'" ], [ "use" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "instrument", "NN" ], [ "doe", "NN" ], [ "song", "NN" ], [ "'", "POS" ], [ "badlands", "NNS" ], [ "'", "POS" ], [ "use", "NN" ], [ "?", "." ] ], "values": [ "Badlands" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(11) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Badlands\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "instrument", ")", "FROM", "instruments", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "WHERE", "title", "=", "``", "Badlands", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "instrument", ")", "from", "instruments", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "title", "=", "value" ], "question": "How many different instruments are used in the song \"Badlands\"?", "question_toks": [ "how", "many", "different", "instrument", "are", "used", "in", "song", "'", "badlands", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 13, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Badlands\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "How", "many", "different", "instruments", "are", "used", "in", "the", "song", "``", "Badlands", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "instrument" ], [ "are" ], [ "used" ], [ "in" ], [ "song" ], [ "'" ], [ "badlands" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "instrument", "NN" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "in", "IN" ], [ "song", "NN" ], [ "'", "POS" ], [ "badlands", "NNS" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Badlands" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(11) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Badlands\"", "query_toks": [ "SELECT", "TYPE", "FROM", "vocals", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "WHERE", "title", "=", "``", "Badlands", "''" ], "query_toks_no_value": [ "select", "type", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "title", "=", "value" ], "question": "What are the vocal types used in song \"Badlands\"?", "question_toks": [ "what", "are", "vocal", "type", "used", "in", "song", "'", "badlands", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Badlands\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "vocal", "types", "used", "in", "song", "``", "Badlands", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "vocal" ], [ "type" ], [ "used" ], [ "in" ], [ "song" ], [ "'" ], [ "badlands" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "vocal", "JJ" ], [ "type", "NN" ], [ "used", "VBN" ], [ "in", "IN" ], [ "song", "NN" ], [ "'", "POS" ], [ "badlands", "NNS" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Badlands" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(6) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Badlands\"", "query_toks": [ "SELECT", "TYPE", "FROM", "vocals", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "WHERE", "title", "=", "``", "Badlands", "''" ], "query_toks_no_value": [ "select", "type", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "title", "=", "value" ], "question": "What types of vocals are used in the song \"Badlands\"?", "question_toks": [ "what", "type", "of", "vocal", "are", "used", "in", "song", "'", "badlands", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Badlands\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "types", "of", "vocals", "are", "used", "in", "the", "song", "``", "Badlands", "''", "?" ], "question_arg": [ [ "what" ], [ "type" ], [ "of" ], [ "vocal" ], [ "are" ], [ "used" ], [ "in" ], [ "song" ], [ "'" ], [ "badlands" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "type", "NN" ], [ "of", "IN" ], [ "vocal", "NN" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "in", "IN" ], [ "song", "NN" ], [ "'", "POS" ], [ "badlands", "NNS" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Badlands" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(6) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Le Pop\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "vocals", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "WHERE", "title", "=", "``", "Le", "Pop", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "title", "=", "value" ], "question": "Find the number of vocal types used in song \"Le Pop\"", "question_toks": [ "find", "number", "of", "vocal", "type", "used", "in", "song", "'", "le", "pop", "'" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "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 ], "\"Le Pop\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Find", "the", "number", "of", "vocal", "types", "used", "in", "song", "``", "Le", "Pop", "''" ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "vocal" ], [ "type" ], [ "used" ], [ "in" ], [ "song" ], [ "'" ], [ "le" ], [ "pop" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "vocal", "JJ" ], [ "type", "NN" ], [ "used", "VBN" ], [ "in", "IN" ], [ "song", "NN" ], [ "'", "''" ], [ "le", "JJ" ], [ "pop", "NN" ], [ "'", "''" ] ], "values": [ "Le Pop" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(6) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Le Pop\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "vocals", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "WHERE", "title", "=", "``", "Le", "Pop", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "title", "=", "value" ], "question": "How many vocal types are used in the song \"Le Pop\"?", "question_toks": [ "how", "many", "vocal", "type", "are", "used", "in", "song", "'", "le", "pop", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "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 ], "\"Le Pop\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "How", "many", "vocal", "types", "are", "used", "in", "the", "song", "``", "Le", "Pop", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "vocal" ], [ "type" ], [ "are" ], [ "used" ], [ "in" ], [ "song" ], [ "'" ], [ "le" ], [ "pop" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "vocal", "JJ" ], [ "type", "NN" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "in", "IN" ], [ "song", "NN" ], [ "'", "''" ], [ "le", "JJ" ], [ "pop", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Le Pop" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(6) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_2", "query": "SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = \"shared\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "title", ")", "FROM", "vocals", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "WHERE", "TYPE", "=", "``", "shared", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "title", ")", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "type", "=", "value" ], "question": "How many songs have a shared vocal?", "question_toks": [ "how", "many", "song", "have", "a", "shared", "vocal", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 2, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"shared\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "How", "many", "songs", "have", "a", "shared", "vocal", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "song" ], [ "have" ], [ "a" ], [ "shared" ], [ "vocal" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "song", "RB" ], [ "have", "VBP" ], [ "a", "DT" ], [ "shared", "VBN" ], [ "vocal", "NN" ], [ "?", "." ] ], "values": [ "shared" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(2) T(0) Filter(2) A(0) C(6) T(6) V(0)" }, { "db_id": "music_2", "query": "SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = \"shared\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "title", ")", "FROM", "vocals", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "WHERE", "TYPE", "=", "``", "shared", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "title", ")", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "type", "=", "value" ], "question": "How many different songs have shared vocals?", "question_toks": [ "how", "many", "different", "song", "have", "shared", "vocal", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 2, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"shared\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "How", "many", "different", "songs", "have", "shared", "vocals", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "song" ], [ "have" ], [ "shared" ], [ "vocal" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "song", "NN" ], [ "have", "VBP" ], [ "shared", "VBN" ], [ "vocal", "JJ" ], [ "?", "." ] ], "values": [ "shared" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(2) T(0) Filter(2) A(0) C(6) T(6) V(0)" }, { "db_id": "music_2", "query": "SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = \"back\"", "query_toks": [ "SELECT", "DISTINCT", "title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "EXCEPT", "SELECT", "t2.title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "WHERE", "TYPE", "=", "``", "back", "''" ], "query_toks_no_value": [ "select", "distinct", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "except", "select", "t2", ".", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "type", "=", "value" ], "question": "Find all the songs that do not have a back vocal.", "question_toks": [ "find", "all", "song", "that", "do", "not", "have", "a", "back", "vocal", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"back\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "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, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Find", "all", "the", "songs", "that", "do", "not", "have", "a", "back", "vocal", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "song" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "a" ], [ "back" ], [ "vocal" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "song", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "back", "JJ" ], [ "vocal", "NN" ], [ ".", "." ] ], "values": [ "back" ], "rule_label": "Root1(2) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(6) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(6) V(0)" }, { "db_id": "music_2", "query": "SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = \"back\"", "query_toks": [ "SELECT", "DISTINCT", "title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "EXCEPT", "SELECT", "t2.title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "WHERE", "TYPE", "=", "``", "back", "''" ], "query_toks_no_value": [ "select", "distinct", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "except", "select", "t2", ".", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "type", "=", "value" ], "question": "What are the different names of all songs without back vocals?", "question_toks": [ "what", "are", "different", "name", "of", "all", "song", "without", "back", "vocal", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"back\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "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, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "different", "names", "of", "all", "songs", "without", "back", "vocals", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "name" ], [ "of" ], [ "all" ], [ "song" ], [ "without" ], [ "back" ], [ "vocal" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ "without", "IN" ], [ "back", "RB" ], [ "vocal", "JJ" ], [ "?", "." ] ], "values": [ "back" ], "rule_label": "Root1(2) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(6) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(6) V(0)" }, { "db_id": "music_2", "query": "SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = \"Solveig\" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "TYPE", "FROM", "vocals", "AS", "T1", "JOIN", "band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "WHERE", "firstname", "=", "``", "Solveig", "''", "GROUP", "BY", "TYPE", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "type", "from", "vocals", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "where", "firstname", "=", "value", "group", "by", "type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which vocal type has the band mate with first name \"Solveig\" played the most?", "question_toks": [ "which", "vocal", "type", "ha", "band", "mate", "with", "first", "name", "'", "solveig", "'", "played", "most", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Solveig\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Which", "vocal", "type", "has", "the", "band", "mate", "with", "first", "name", "``", "Solveig", "''", "played", "the", "most", "?" ], "question_arg": [ [ "which" ], [ "vocal" ], [ "type" ], [ "ha" ], [ "band" ], [ "mate" ], [ "with" ], [ "first", "name" ], [ "'" ], [ "solveig" ], [ "'" ], [ "played" ], [ "most" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "vocal", "JJ" ], [ "type", "NN" ], [ "ha", "NN" ], [ "band", "NN" ], [ "mate", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "solveig", "NN" ], [ "'", "''" ], [ "played", "VBN" ], [ "most", "JJS" ], [ "?", "." ] ], "values": [ "Solveig", "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(6) T(6) Sup(0) A(3) C(0) T(6) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "music_2", "query": "SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = \"Solveig\" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "TYPE", "FROM", "vocals", "AS", "T1", "JOIN", "band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "WHERE", "firstname", "=", "``", "Solveig", "''", "GROUP", "BY", "TYPE", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "type", "from", "vocals", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "where", "firstname", "=", "value", "group", "by", "type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the types of vocals that the band member with the first name \"Solveig\" played the most?", "question_toks": [ "what", "are", "type", "of", "vocal", "that", "band", "member", "with", "first", "name", "'", "solveig", "'", "played", "most", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Solveig\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "types", "of", "vocals", "that", "the", "band", "member", "with", "the", "first", "name", "``", "Solveig", "''", "played", "the", "most", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "type" ], [ "of" ], [ "vocal" ], [ "that" ], [ "band" ], [ "member" ], [ "with" ], [ "first", "name" ], [ "'" ], [ "solveig" ], [ "'" ], [ "played" ], [ "most" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "type", "JJ" ], [ "of", "IN" ], [ "vocal", "JJ" ], [ "that", "IN" ], [ "band", "NN" ], [ "member", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "solveig", "NN" ], [ "'", "''" ], [ "played", "VBN" ], [ "most", "JJS" ], [ "?", "." ] ], "values": [ "Solveig", "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(6) T(6) Sup(0) A(3) C(0) T(6) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "music_2", "query": "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.lastname = \"Heilo\" AND T2.title = \"Der Kapitan\"", "query_toks": [ "SELECT", "TYPE", "FROM", "vocals", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "JOIN", "band", "AS", "T3", "ON", "T1.bandmate", "=", "T3.id", "WHERE", "T3.lastname", "=", "``", "Heilo", "''", "AND", "T2.title", "=", "``", "Der", "Kapitan", "''" ], "query_toks_no_value": [ "select", "type", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "join", "band", "as", "t3", "on", "t1", ".", "bandmate", "=", "t3", ".", "id", "where", "t3", ".", "lastname", "=", "value", "and", "t2", ".", "title", "=", "value" ], "question": "Which vocal type did the musician with last name \"Heilo\" played in the song with title \"Der Kapitan\"?", "question_toks": [ "which", "vocal", "type", "did", "musician", "with", "last", "name", "'", "heilo", "'", "played", "in", "song", "with", "title", "'", "der", "kapitan", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Heilo\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Der Kapitan\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Which", "vocal", "type", "did", "the", "musician", "with", "last", "name", "``", "Heilo", "''", "played", "in", "the", "song", "with", "title", "``", "Der", "Kapitan", "''", "?" ], "question_arg": [ [ "which" ], [ "vocal" ], [ "type" ], [ "did" ], [ "musician" ], [ "with" ], [ "last", "name" ], [ "'" ], [ "heilo" ], [ "'" ], [ "played" ], [ "in" ], [ "song" ], [ "with" ], [ "title" ], [ "'" ], [ "der" ], [ "kapitan" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "vocal", "JJ" ], [ "type", "NN" ], [ "did", "VBD" ], [ "musician", "JJ" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "heilo", "NN" ], [ "'", "''" ], [ "played", "VBN" ], [ "in", "IN" ], [ "song", "NN" ], [ "with", "IN" ], [ "title", "NN" ], [ "'", "''" ], [ "der", "NN" ], [ "kapitan", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Heilo", "Der Kapitan" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(6) Filter(0) Filter(2) A(0) C(9) T(2) V(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "music_2", "query": "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.lastname = \"Heilo\" AND T2.title = \"Der Kapitan\"", "query_toks": [ "SELECT", "TYPE", "FROM", "vocals", "AS", "T1", "JOIN", "songs", "AS", "T2", "ON", "T1.songid", "=", "T2.songid", "JOIN", "band", "AS", "T3", "ON", "T1.bandmate", "=", "T3.id", "WHERE", "T3.lastname", "=", "``", "Heilo", "''", "AND", "T2.title", "=", "``", "Der", "Kapitan", "''" ], "query_toks_no_value": [ "select", "type", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "join", "band", "as", "t3", "on", "t1", ".", "bandmate", "=", "t3", ".", "id", "where", "t3", ".", "lastname", "=", "value", "and", "t2", ".", "title", "=", "value" ], "question": "What are the types of vocals that the musician with the last name \"Heilo\" played in \"Der Kapitan\"?", "question_toks": [ "what", "are", "type", "of", "vocal", "that", "musician", "with", "last", "name", "'", "heilo", "'", "played", "in", "'", "der", "kapitan", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Heilo\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Der Kapitan\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "types", "of", "vocals", "that", "the", "musician", "with", "the", "last", "name", "``", "Heilo", "''", "played", "in", "``", "Der", "Kapitan", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "type" ], [ "of" ], [ "vocal" ], [ "that" ], [ "musician" ], [ "with" ], [ "last", "name" ], [ "'" ], [ "heilo" ], [ "'" ], [ "played" ], [ "in" ], [ "'" ], [ "der" ], [ "kapitan" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "type", "JJ" ], [ "of", "IN" ], [ "vocal", "NN" ], [ "that", "WDT" ], [ "musician", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "heilo", "NN" ], [ "'", "''" ], [ "played", "VBN" ], [ "in", "IN" ], [ "'", "''" ], [ "der", "NN" ], [ "kapitan", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Heilo", "Der Kapitan" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(6) Filter(0) Filter(2) A(0) C(9) T(2) V(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "music_2", "query": "SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate = t2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY firstname ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.firstname", "FROM", "Performance", "AS", "t1", "JOIN", "Band", "AS", "t2", "ON", "t1.bandmate", "=", "t2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "GROUP", "BY", "firstname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "firstname", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "group", "by", "firstname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the first name of the band mate that has performed in most songs.", "question_toks": [ "find", "first", "name", "of", "band", "mate", "that", "ha", "performed", "in", "most", "song", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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": [ [ false, 8, [ 0, [ 0, 8, 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": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Find", "the", "first", "name", "of", "the", "band", "mate", "that", "has", "performed", "in", "most", "songs", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "band" ], [ "mate" ], [ "that" ], [ "ha" ], [ "performed" ], [ "in" ], [ "most" ], [ "song" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "band", "NN" ], [ "mate", "NN" ], [ "that", "WDT" ], [ "ha", "NN" ], [ "performed", "VBN" ], [ "in", "IN" ], [ "most", "JJS" ], [ "song", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(8) T(2) Sup(0) A(3) C(0) T(4) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(4)" }, { "db_id": "music_2", "query": "SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate = t2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY firstname ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.firstname", "FROM", "Performance", "AS", "t1", "JOIN", "Band", "AS", "t2", "ON", "t1.bandmate", "=", "t2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "GROUP", "BY", "firstname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "firstname", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "group", "by", "firstname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the first name of the band mate who perfomed in the most songs?", "question_toks": [ "what", "is", "first", "name", "of", "band", "mate", "who", "perfomed", "in", "most", "song", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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": [ [ false, 8, [ 0, [ 0, 8, 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": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "first", "name", "of", "the", "band", "mate", "who", "perfomed", "in", "the", "most", "songs", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first", "name" ], [ "of" ], [ "band" ], [ "mate" ], [ "who" ], [ "perfomed" ], [ "in" ], [ "most" ], [ "song" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "band", "NN" ], [ "mate", "NN" ], [ "who", "WP" ], [ "perfomed", "VBD" ], [ "in", "IN" ], [ "most", "JJS" ], [ "song", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(8) T(2) Sup(0) A(3) C(0) T(4) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(12) T(4)" }, { "db_id": "music_2", "query": "SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = \"Marianne\" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "TYPE", "FROM", "vocals", "AS", "T1", "JOIN", "band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "WHERE", "firstname", "=", "``", "Marianne", "''", "GROUP", "BY", "TYPE", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "type", "from", "vocals", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "where", "firstname", "=", "value", "group", "by", "type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which vocal type has the band mate with first name \"Marianne\" played the most?", "question_toks": [ "which", "vocal", "type", "ha", "band", "mate", "with", "first", "name", "'", "marianne", "'", "played", "most", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Marianne\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Which", "vocal", "type", "has", "the", "band", "mate", "with", "first", "name", "``", "Marianne", "''", "played", "the", "most", "?" ], "question_arg": [ [ "which" ], [ "vocal" ], [ "type" ], [ "ha" ], [ "band" ], [ "mate" ], [ "with" ], [ "first", "name" ], [ "'" ], [ "marianne" ], [ "'" ], [ "played" ], [ "most" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "vocal", "JJ" ], [ "type", "NN" ], [ "ha", "NN" ], [ "band", "NN" ], [ "mate", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "marianne", "NN" ], [ "'", "''" ], [ "played", "VBN" ], [ "most", "JJS" ], [ "?", "." ] ], "values": [ "1", "Marianne" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(6) T(6) Sup(0) A(3) C(0) T(6) Filter(2) A(0) C(8) T(2) V(1)" }, { "db_id": "music_2", "query": "SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = \"Marianne\" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "TYPE", "FROM", "vocals", "AS", "T1", "JOIN", "band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "WHERE", "firstname", "=", "``", "Marianne", "''", "GROUP", "BY", "TYPE", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "type", "from", "vocals", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "where", "firstname", "=", "value", "group", "by", "type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the vocal type of the band mate whose first name is \"Marianne\" played the most?", "question_toks": [ "what", "is", "vocal", "type", "of", "band", "mate", "whose", "first", "name", "is", "'", "marianne", "'", "played", "most", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Marianne\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "vocal", "type", "of", "the", "band", "mate", "whose", "first", "name", "is", "``", "Marianne", "''", "played", "the", "most", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "vocal" ], [ "type" ], [ "of" ], [ "band" ], [ "mate" ], [ "whose" ], [ "first", "name" ], [ "is" ], [ "'" ], [ "marianne" ], [ "'" ], [ "played" ], [ "most" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "vocal", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "band", "NN" ], [ "mate", "NN" ], [ "whose", "WP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "marianne", "NN" ], [ "'", "''" ], [ "played", "VBN" ], [ "most", "JJS" ], [ "?", "." ] ], "values": [ "1", "Marianne" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(6) T(6) Sup(0) A(3) C(0) T(6) Filter(2) A(0) C(8) T(2) V(1)" }, { "db_id": "music_2", "query": "SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = \"Der Kapitan\" AND T1.StagePosition = \"back\"", "query_toks": [ "SELECT", "T2.firstname", ",", "T2.lastname", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "WHERE", "T3.Title", "=", "``", "Der", "Kapitan", "''", "AND", "T1.StagePosition", "=", "``", "back", "''" ], "query_toks_no_value": [ "select", "t2", ".", "firstname", ",", "t2", ".", "lastname", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "where", "t3", ".", "title", "=", "value", "and", "t1", ".", "stageposition", "=", "value" ], "question": "Who is performing in the back stage position for the song \"Der Kapitan\"? Show the first name and last name.", "question_toks": [ "who", "is", "performing", "in", "back", "stage", "position", "for", "song", "'", "der", "kapitan", "'", "?", "show", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "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, 2, false ], null ], "\"Der Kapitan\"", null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"back\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Who", "is", "performing", "in", "the", "back", "stage", "position", "for", "the", "song", "``", "Der", "Kapitan", "''", "?", "Show", "the", "first", "name", "and", "last", "name", "." ], "question_arg": [ [ "who" ], [ "is" ], [ "performing" ], [ "in" ], [ "back" ], [ "stage", "position" ], [ "for" ], [ "song" ], [ "'" ], [ "der" ], [ "kapitan" ], [ "'" ], [ "?" ], [ "show" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "performing", "VBG" ], [ "in", "IN" ], [ "back", "JJ" ], [ "stage", "NN" ], [ "position", "NN" ], [ "for", "IN" ], [ "song", "NN" ], [ "'", "''" ], [ "der", "NN" ], [ "kapitan", "NN" ], [ "'", "''" ], [ "?", "." ], [ "show", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Der Kapitan", "1", "back" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(2) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(13) T(4) V(2)" }, { "db_id": "music_2", "query": "SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = \"Der Kapitan\" AND T1.StagePosition = \"back\"", "query_toks": [ "SELECT", "T2.firstname", ",", "T2.lastname", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "WHERE", "T3.Title", "=", "``", "Der", "Kapitan", "''", "AND", "T1.StagePosition", "=", "``", "back", "''" ], "query_toks_no_value": [ "select", "t2", ".", "firstname", ",", "t2", ".", "lastname", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "where", "t3", ".", "title", "=", "value", "and", "t1", ".", "stageposition", "=", "value" ], "question": "What is the first and last name of the artist who performed back stage for the song \"Der Kapitan\"?", "question_toks": [ "what", "is", "first", "and", "last", "name", "of", "artist", "who", "performed", "back", "stage", "for", "song", "'", "der", "kapitan", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "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, 2, false ], null ], "\"Der Kapitan\"", null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"back\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "first", "and", "last", "name", "of", "the", "artist", "who", "performed", "back", "stage", "for", "the", "song", "``", "Der", "Kapitan", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "performed" ], [ "back" ], [ "stage" ], [ "for" ], [ "song" ], [ "'" ], [ "der" ], [ "kapitan" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "performed", "VBD" ], [ "back", "RB" ], [ "stage", "NN" ], [ "for", "IN" ], [ "song", "NN" ], [ "'", "''" ], [ "der", "NN" ], [ "kapitan", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Der Kapitan", "1", "back" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(2) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(13) T(4) V(2)" }, { "db_id": "music_2", "query": "SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = \"back\"", "query_toks": [ "SELECT", "DISTINCT", "title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "EXCEPT", "SELECT", "t2.title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "WHERE", "TYPE", "=", "``", "back", "''" ], "query_toks_no_value": [ "select", "distinct", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "except", "select", "t2", ".", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "type", "=", "value" ], "question": "Find the name of songs that does not have a back vocal.", "question_toks": [ "find", "name", "of", "song", "that", "doe", "not", "have", "a", "back", "vocal", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"back\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "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, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Find", "the", "name", "of", "songs", "that", "does", "not", "have", "a", "back", "vocal", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "song" ], [ "that" ], [ "doe" ], [ "not" ], [ "have" ], [ "a" ], [ "back" ], [ "vocal" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "that", "WDT" ], [ "doe", "VBZ" ], [ "not", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "back", "JJ" ], [ "vocal", "NN" ], [ ".", "." ] ], "values": [ "back" ], "rule_label": "Root1(2) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(6) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(6) V(0)" }, { "db_id": "music_2", "query": "SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = \"back\"", "query_toks": [ "SELECT", "DISTINCT", "title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "EXCEPT", "SELECT", "t2.title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "WHERE", "TYPE", "=", "``", "back", "''" ], "query_toks_no_value": [ "select", "distinct", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "except", "select", "t2", ".", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "type", "=", "value" ], "question": "What are the names of the songs that do not have back vocals?", "question_toks": [ "what", "are", "name", "of", "song", "that", "do", "not", "have", "back", "vocal", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"back\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "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, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "songs", "that", "do", "not", "have", "back", "vocals", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "song" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "back" ], [ "vocal" ], [ "?" ] ], "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" ], [ "song", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "back", "RB" ], [ "vocal", "JJ" ], [ "?", "." ] ], "values": [ "back" ], "rule_label": "Root1(2) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(6) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(6) V(0)" }, { "db_id": "music_2", "query": "SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE T1.title = \"A Kiss Before You Go: Live in Hamburg\"", "query_toks": [ "SELECT", "T3.title", "FROM", "albums", "AS", "T1", "JOIN", "tracklists", "AS", "T2", "ON", "T1.aid", "=", "T2.albumid", "JOIN", "songs", "AS", "T3", "ON", "T2.songid", "=", "T3.songid", "WHERE", "T1.title", "=", "``", "A", "Kiss", "Before", "You", "Go", ":", "Live", "in", "Hamburg", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "albums", "as", "t1", "join", "tracklists", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "albumid", "join", "songs", "as", "t3", "on", "t2", ".", "songid", "=", "t3", ".", "songid", "where", "t1", ".", "title", "=", "value" ], "question": "What are the songs in album \"A Kiss Before You Go: Live in Hamburg\"?", "question_toks": [ "what", "are", "song", "in", "album", "'", "a", "kiss", "before", "you", "go", ":", "live", "in", "hamburg", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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, 4, false ], null ], "\"A Kiss Before You Go: Live in Hamburg\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "songs", "in", "album", "``", "A", "Kiss", "Before", "You", "Go", ":", "Live", "in", "Hamburg", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "song" ], [ "in" ], [ "album" ], [ "'" ], [ "a" ], [ "kiss" ], [ "before" ], [ "you" ], [ "go" ], [ ":" ], [ "live" ], [ "in" ], [ "hamburg" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "song", "JJ" ], [ "in", "IN" ], [ "album", "NN" ], [ "'", "''" ], [ "a", "DT" ], [ "kiss", "NN" ], [ "before", "IN" ], [ "you", "PRP" ], [ "go", "VBP" ], [ ":", ":" ], [ "live", "NN" ], [ "in", "IN" ], [ "hamburg", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "A Kiss Before You Go: Live in Hamburg" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(14) T(5) Filter(2) A(0) C(2) T(1) V(0)" }, { "db_id": "music_2", "query": "SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE T1.title = \"A Kiss Before You Go: Live in Hamburg\"", "query_toks": [ "SELECT", "T3.title", "FROM", "albums", "AS", "T1", "JOIN", "tracklists", "AS", "T2", "ON", "T1.aid", "=", "T2.albumid", "JOIN", "songs", "AS", "T3", "ON", "T2.songid", "=", "T3.songid", "WHERE", "T1.title", "=", "``", "A", "Kiss", "Before", "You", "Go", ":", "Live", "in", "Hamburg", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "albums", "as", "t1", "join", "tracklists", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "albumid", "join", "songs", "as", "t3", "on", "t2", ".", "songid", "=", "t3", ".", "songid", "where", "t1", ".", "title", "=", "value" ], "question": "What are the song titles on the album \"A Kiss Before You Go: Live in Hamburg\"?", "question_toks": [ "what", "are", "song", "title", "on", "album", "'", "a", "kiss", "before", "you", "go", ":", "live", "in", "hamburg", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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, 4, false ], null ], "\"A Kiss Before You Go: Live in Hamburg\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "song", "titles", "on", "the", "album", "``", "A", "Kiss", "Before", "You", "Go", ":", "Live", "in", "Hamburg", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "song" ], [ "title" ], [ "on" ], [ "album" ], [ "'" ], [ "a" ], [ "kiss" ], [ "before" ], [ "you" ], [ "go" ], [ ":" ], [ "live" ], [ "in" ], [ "hamburg" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "song", "JJ" ], [ "title", "NN" ], [ "on", "IN" ], [ "album", "NN" ], [ "'", "''" ], [ "a", "DT" ], [ "kiss", "NN" ], [ "before", "IN" ], [ "you", "PRP" ], [ "go", "VBP" ], [ ":", ":" ], [ "live", "NN" ], [ "in", "IN" ], [ "hamburg", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "A Kiss Before You Go: Live in Hamburg" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(14) T(5) Filter(2) A(0) C(2) T(1) V(0)" }, { "db_id": "music_2", "query": "SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.label = \"Universal Music Group\"", "query_toks": [ "SELECT", "T3.title", "FROM", "albums", "AS", "T1", "JOIN", "tracklists", "AS", "T2", "ON", "T1.aid", "=", "T2.albumid", "JOIN", "songs", "AS", "T3", "ON", "T2.songid", "=", "T3.songid", "WHERE", "t1.label", "=", "``", "Universal", "Music", "Group", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "albums", "as", "t1", "join", "tracklists", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "albumid", "join", "songs", "as", "t3", "on", "t2", ".", "songid", "=", "t3", ".", "songid", "where", "t1", ".", "label", "=", "value" ], "question": "What are all the songs in albums under label \"Universal Music Group\"?", "question_toks": [ "what", "are", "all", "song", "in", "album", "under", "label", "'", "universal", "music", "group", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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, 6, false ], null ], "\"Universal Music Group\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "all", "the", "songs", "in", "albums", "under", "label", "``", "Universal", "Music", "Group", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "song" ], [ "in" ], [ "album" ], [ "under" ], [ "label" ], [ "'" ], [ "universal" ], [ "music" ], [ "group" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "song", "NN" ], [ "in", "IN" ], [ "album", "NN" ], [ "under", "IN" ], [ "label", "NN" ], [ "'", "''" ], [ "universal", "JJ" ], [ "music", "NN" ], [ "group", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Universal Music Group" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(14) T(5) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "music_2", "query": "SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.label = \"Universal Music Group\"", "query_toks": [ "SELECT", "T3.title", "FROM", "albums", "AS", "T1", "JOIN", "tracklists", "AS", "T2", "ON", "T1.aid", "=", "T2.albumid", "JOIN", "songs", "AS", "T3", "ON", "T2.songid", "=", "T3.songid", "WHERE", "t1.label", "=", "``", "Universal", "Music", "Group", "''" ], "query_toks_no_value": [ "select", "t3", ".", "title", "from", "albums", "as", "t1", "join", "tracklists", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "albumid", "join", "songs", "as", "t3", "on", "t2", ".", "songid", "=", "t3", ".", "songid", "where", "t1", ".", "label", "=", "value" ], "question": "What are the names of all the songs whose album is under the label of \"Universal Music Group\"?", "question_toks": [ "what", "are", "name", "of", "all", "song", "whose", "album", "is", "under", "label", "of", "'", "universal", "music", "group", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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, 6, false ], null ], "\"Universal Music Group\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "songs", "whose", "album", "is", "under", "the", "label", "of", "``", "Universal", "Music", "Group", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "song" ], [ "whose" ], [ "album" ], [ "is" ], [ "under" ], [ "label" ], [ "of" ], [ "'" ], [ "universal" ], [ "music" ], [ "group" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "song", "NN" ], [ "whose", "WP$" ], [ "album", "NN" ], [ "is", "VBZ" ], [ "under", "IN" ], [ "label", "NN" ], [ "of", "IN" ], [ "'", "POS" ], [ "universal", "JJ" ], [ "music", "NN" ], [ "group", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Universal Music Group" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(14) T(5) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "music_2", "query": "SELECT count(DISTINCT T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.type = \"Studio\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T3.title", ")", "FROM", "albums", "AS", "T1", "JOIN", "tracklists", "AS", "T2", "ON", "T1.aid", "=", "T2.albumid", "JOIN", "songs", "AS", "T3", "ON", "T2.songid", "=", "T3.songid", "WHERE", "t1.type", "=", "``", "Studio", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t3", ".", "title", ")", "from", "albums", "as", "t1", "join", "tracklists", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "albumid", "join", "songs", "as", "t3", "on", "t2", ".", "songid", "=", "t3", ".", "songid", "where", "t1", ".", "type", "=", "value" ], "question": "Find the number of songs in all the studio albums.", "question_toks": [ "find", "number", "of", "song", "in", "all", "studio", "album", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 2, true ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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, 7, false ], null ], "\"Studio\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "Find", "the", "number", "of", "songs", "in", "all", "the", "studio", "albums", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "song" ], [ "in" ], [ "all" ], [ "studio" ], [ "album" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "in", "IN" ], [ "all", "DT" ], [ "studio", "NN" ], [ "album", "NN" ], [ ".", "." ] ], "values": [ "Studio" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(2) T(0) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(14) T(5) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "music_2", "query": "SELECT count(DISTINCT T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.type = \"Studio\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T3.title", ")", "FROM", "albums", "AS", "T1", "JOIN", "tracklists", "AS", "T2", "ON", "T1.aid", "=", "T2.albumid", "JOIN", "songs", "AS", "T3", "ON", "T2.songid", "=", "T3.songid", "WHERE", "t1.type", "=", "``", "Studio", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t3", ".", "title", ")", "from", "albums", "as", "t1", "join", "tracklists", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "albumid", "join", "songs", "as", "t3", "on", "t2", ".", "songid", "=", "t3", ".", "songid", "where", "t1", ".", "type", "=", "value" ], "question": "How many songs appear in studio albums?", "question_toks": [ "how", "many", "song", "appear", "in", "studio", "album", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 2, true ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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, 7, false ], null ], "\"Studio\"", null ] ] }, "names": [ "*", "song id", "title", "aid", "title", "year", "label", "type", "id", "first name", "last name", "song id", "bandmate id", "instrument", "song id", "bandmate", "stage position", "album id", "position", "song id", "song id", "bandmate", "type" ], "table_names": [ "songs", "albums", "band", "instruments", "performance", "track lists", "vocals" ], "col_set": [ "*", "song id", "title", "aid", "year", "label", "type", "id", "first name", "last name", "bandmate id", "instrument", "bandmate", "stage position", "album id", "position" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "12": 8, "8": 8, "11": 11, "1": 1, "15": 8, "14": 14, "17": 17, "3": 3, "19": 1, "21": 8, "20": 20 }, "origin_question_toks": [ "How", "many", "songs", "appear", "in", "studio", "albums", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "song" ], [ "appear" ], [ "in" ], [ "studio" ], [ "album" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "song", "NN" ], [ "appear", "VBP" ], [ "in", "IN" ], [ "studio", "NN" ], [ "album", "NN" ], [ "?", "." ] ], "values": [ "Studio" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(2) T(0) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(14) T(5) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT founder FROM manufacturers WHERE name = 'Sony'", "query_toks": [ "SELECT", "founder", "FROM", "manufacturers", "WHERE", "name", "=", "'Sony", "'" ], "query_toks_no_value": [ "select", "founder", "from", "manufacturers", "where", "name", "=", "value" ], "question": "Who is the founder of Sony?", "question_toks": [ "who", "is", "founder", "of", "sony", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Sony\"", null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Who", "is", "the", "founder", "of", "Sony", "?" ], "question_arg": [ [ "who" ], [ "is" ], [ "founder" ], [ "of" ], [ "sony" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "founder", "NN" ], [ "of", "IN" ], [ "sony", "NN" ], [ "?", "." ] ], "values": [ "Sony" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT founder FROM manufacturers WHERE name = 'Sony'", "query_toks": [ "SELECT", "founder", "FROM", "manufacturers", "WHERE", "name", "=", "'Sony", "'" ], "query_toks_no_value": [ "select", "founder", "from", "manufacturers", "where", "name", "=", "value" ], "question": "Return the founder of Sony.", "question_toks": [ "return", "founder", "of", "sony", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Sony\"", null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Return", "the", "founder", "of", "Sony", "." ], "question_arg": [ [ "return" ], [ "founder" ], [ "of" ], [ "sony" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "founder", "NN" ], [ "of", "IN" ], [ "sony", "NN" ], [ ".", "." ] ], "values": [ "Sony" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT headquarter FROM manufacturers WHERE founder = 'James'", "query_toks": [ "SELECT", "headquarter", "FROM", "manufacturers", "WHERE", "founder", "=", "'James", "'" ], "query_toks_no_value": [ "select", "headquarter", "from", "manufacturers", "where", "founder", "=", "value" ], "question": "Where is the headquarter of the company founded by James?", "question_toks": [ "where", "is", "headquarter", "of", "company", "founded", "by", "james", "?" ], "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, 4, false ], null ], "\"James\"", null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Where", "is", "the", "headquarter", "of", "the", "company", "founded", "by", "James", "?" ], "question_arg": [ [ "where" ], [ "is" ], [ "headquarter" ], [ "of" ], [ "company" ], [ "founded" ], [ "by" ], [ "james" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "where", "WRB" ], [ "is", "VBZ" ], [ "headquarter", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "founded", "VBN" ], [ "by", "IN" ], [ "james", "NNS" ], [ "?", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT headquarter FROM manufacturers WHERE founder = 'James'", "query_toks": [ "SELECT", "headquarter", "FROM", "manufacturers", "WHERE", "founder", "=", "'James", "'" ], "query_toks_no_value": [ "select", "headquarter", "from", "manufacturers", "where", "founder", "=", "value" ], "question": "What is the headquarter of the company whose founder is James?", "question_toks": [ "what", "is", "headquarter", "of", "company", "whose", "founder", "is", "james", "?" ], "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, 4, false ], null ], "\"James\"", null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "headquarter", "of", "the", "company", "whose", "founder", "is", "James", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "headquarter" ], [ "of" ], [ "company" ], [ "whose" ], [ "founder" ], [ "is" ], [ "james" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "headquarter", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "whose", "WP$" ], [ "founder", "NN" ], [ "is", "VBZ" ], [ "james", "NNS" ], [ "?", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT name , headquarter FROM manufacturers ORDER BY revenue DESC", "query_toks": [ "SELECT", "name", ",", "headquarter", "FROM", "manufacturers", "ORDER", "BY", "revenue", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "headquarter", "from", "manufacturers", "order", "by", "revenue", "desc" ], "question": "Find all manufacturers' names and their headquarters, sorted by the ones with highest revenue first.", "question_toks": [ "find", "all", "manufacturer", "'", "name", "and", "their", "headquarters", ",", "sorted", "by", "one", "with", "highest", "revenue", "first", "." ], "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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "all", "manufacturers", "'", "names", "and", "their", "headquarters", ",", "sorted", "by", "the", "ones", "with", "highest", "revenue", "first", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "manufacturer" ], [ "'" ], [ "name" ], [ "and" ], [ "their" ], [ "headquarters" ], [ "," ], [ "sorted" ], [ "by" ], [ "one" ], [ "with" ], [ "highest" ], [ "revenue" ], [ "first" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "manufacturer", "NN" ], [ "'", "POS" ], [ "name", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "headquarters", "NNS" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "one", "CD" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "revenue", "NN" ], [ "first", "RB" ], [ ".", "." ] ], "values": [ "1", "James" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Order(0) A(0) C(5) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT name , headquarter FROM manufacturers ORDER BY revenue DESC", "query_toks": [ "SELECT", "name", ",", "headquarter", "FROM", "manufacturers", "ORDER", "BY", "revenue", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "headquarter", "from", "manufacturers", "order", "by", "revenue", "desc" ], "question": "What are the names and headquarters of all manufacturers, ordered by revenue descending?", "question_toks": [ "what", "are", "name", "and", "headquarters", "of", "all", "manufacturer", ",", "ordered", "by", "revenue", "descending", "?" ], "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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "headquarters", "of", "all", "manufacturers", ",", "ordered", "by", "revenue", "descending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "headquarters" ], [ "of" ], [ "all" ], [ "manufacturer" ], [ "," ], [ "ordered" ], [ "by" ], [ "revenue" ], [ "descending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "headquarters", "NNS" ], [ "of", "IN" ], [ "all", "DT" ], [ "manufacturer", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "revenue", "NN" ], [ "descending", "VBG" ], [ "?", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Order(0) A(0) C(5) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT avg(revenue) , max(revenue) , sum(revenue) FROM manufacturers", "query_toks": [ "SELECT", "avg", "(", "revenue", ")", ",", "max", "(", "revenue", ")", ",", "sum", "(", "revenue", ")", "FROM", "manufacturers" ], "query_toks_no_value": [ "select", "avg", "(", "revenue", ")", ",", "max", "(", "revenue", ")", ",", "sum", "(", "revenue", ")", "from", "manufacturers" ], "question": "What are the average, maximum and total revenues of all companies?", "question_toks": [ "what", "are", "average", ",", "maximum", "and", "total", "revenue", "of", "all", "company", "?" ], "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 ] ], [ 1, [ 0, [ 0, 5, false ], null ] ], [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "average", ",", "maximum", "and", "total", "revenues", "of", "all", "companies", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "," ], [ "maximum" ], [ "and" ], [ "total" ], [ "revenue" ], [ "of" ], [ "all" ], [ "company" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ ",", "," ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "total", "JJ" ], [ "revenue", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "company", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(5) C(5) T(0) A(1) C(5) T(0) A(4) C(5) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT avg(revenue) , max(revenue) , sum(revenue) FROM manufacturers", "query_toks": [ "SELECT", "avg", "(", "revenue", ")", ",", "max", "(", "revenue", ")", ",", "sum", "(", "revenue", ")", "FROM", "manufacturers" ], "query_toks_no_value": [ "select", "avg", "(", "revenue", ")", ",", "max", "(", "revenue", ")", ",", "sum", "(", "revenue", ")", "from", "manufacturers" ], "question": "Return the average, maximum, and total revenues across all manufacturers.", "question_toks": [ "return", "average", ",", "maximum", ",", "and", "total", "revenue", "across", "all", "manufacturer", "." ], "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 ] ], [ 1, [ 0, [ 0, 5, false ], null ] ], [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Return", "the", "average", ",", "maximum", ",", "and", "total", "revenues", "across", "all", "manufacturers", "." ], "question_arg": [ [ "return" ], [ "average" ], [ "," ], [ "maximum" ], [ "," ], [ "and" ], [ "total" ], [ "revenue" ], [ "across" ], [ "all" ], [ "manufacturer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "average", "NN" ], [ ",", "," ], [ "maximum", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "total", "JJ" ], [ "revenue", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "manufacturer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(5) C(5) T(0) A(1) C(5) T(0) A(4) C(5) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT count(*) FROM manufacturers WHERE founder = 'Andy'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "manufacturers", "WHERE", "founder", "=", "'Andy", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "manufacturers", "where", "founder", "=", "value" ], "question": "How many companies were created by Andy?", "question_toks": [ "how", "many", "company", "were", "created", "by", "andy", "?" ], "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 ], "\"Andy\"", null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "How", "many", "companies", "were", "created", "by", "Andy", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "company" ], [ "were" ], [ "created" ], [ "by" ], [ "andy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "company", "NN" ], [ "were", "VBD" ], [ "created", "VBN" ], [ "by", "IN" ], [ "andy", "NN" ], [ "?", "." ] ], "values": [ "Andy" ], "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": "manufactory_1", "query": "SELECT count(*) FROM manufacturers WHERE founder = 'Andy'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "manufacturers", "WHERE", "founder", "=", "'Andy", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "manufacturers", "where", "founder", "=", "value" ], "question": "Return the number of companies created by Andy.", "question_toks": [ "return", "number", "of", "company", "created", "by", "andy", "." ], "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 ], "\"Andy\"", null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Return", "the", "number", "of", "companies", "created", "by", "Andy", "." ], "question_arg": [ [ "return" ], [ "number" ], [ "of" ], [ "company" ], [ "created" ], [ "by" ], [ "andy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "created", "VBN" ], [ "by", "IN" ], [ "andy", "NN" ], [ ".", "." ] ], "values": [ "Andy" ], "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": "manufactory_1", "query": "SELECT sum(revenue) FROM manufacturers WHERE headquarter = 'Austin'", "query_toks": [ "SELECT", "sum", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "'Austin", "'" ], "query_toks_no_value": [ "select", "sum", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value" ], "question": "Find the total revenue created by the companies whose headquarter is located at Austin.", "question_toks": [ "find", "total", "revenue", "created", "by", "company", "whose", "headquarter", "is", "located", "at", "austin", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Austin\"", null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "the", "total", "revenue", "created", "by", "the", "companies", "whose", "headquarter", "is", "located", "at", "Austin", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "revenue" ], [ "created" ], [ "by" ], [ "company" ], [ "whose" ], [ "headquarter" ], [ "is" ], [ "located" ], [ "at" ], [ "austin" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "revenue", "NN" ], [ "created", "VBN" ], [ "by", "IN" ], [ "company", "NN" ], [ "whose", "WP$" ], [ "headquarter", "NN" ], [ "is", "VBZ" ], [ "located", "VBN" ], [ "at", "IN" ], [ "austin", "NN" ], [ ".", "." ] ], "values": [ "Austin" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(5) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT sum(revenue) FROM manufacturers WHERE headquarter = 'Austin'", "query_toks": [ "SELECT", "sum", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "'Austin", "'" ], "query_toks_no_value": [ "select", "sum", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value" ], "question": "What is the sum of revenue from companies with headquarters in Austin?", "question_toks": [ "what", "is", "sum", "of", "revenue", "from", "company", "with", "headquarters", "in", "austin", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Austin\"", null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "sum", "of", "revenue", "from", "companies", "with", "headquarters", "in", "Austin", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "sum" ], [ "of" ], [ "revenue" ], [ "from" ], [ "company" ], [ "with" ], [ "headquarters" ], [ "in" ], [ "austin" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "sum", "NN" ], [ "of", "IN" ], [ "revenue", "NN" ], [ "from", "IN" ], [ "company", "NN" ], [ "with", "IN" ], [ "headquarters", "NNS" ], [ "in", "IN" ], [ "austin", "NN" ], [ "?", "." ] ], "values": [ "Austin" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(5) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT DISTINCT headquarter FROM manufacturers", "query_toks": [ "SELECT", "DISTINCT", "headquarter", "FROM", "manufacturers" ], "query_toks_no_value": [ "select", "distinct", "headquarter", "from", "manufacturers" ], "question": "What are the different cities listed?", "question_toks": [ "what", "are", "different", "city", "listed", "?" ], "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": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "different", "cities", "listed", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "city" ], [ "listed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "city", "NN" ], [ "listed", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(3) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT DISTINCT headquarter FROM manufacturers", "query_toks": [ "SELECT", "DISTINCT", "headquarter", "FROM", "manufacturers" ], "query_toks_no_value": [ "select", "distinct", "headquarter", "from", "manufacturers" ], "question": "Give the distinct headquarters of manufacturers.", "question_toks": [ "give", "distinct", "headquarters", "of", "manufacturer", "." ], "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": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Give", "the", "distinct", "headquarters", "of", "manufacturers", "." ], "question_arg": [ [ "give" ], [ "distinct" ], [ "headquarters" ], [ "of" ], [ "manufacturer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "distinct", "JJ" ], [ "headquarters", "NN" ], [ "of", "IN" ], [ "manufacturer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(3) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT count(*) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "'Tokyo", "'", "OR", "headquarter", "=", "'Beijing", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "manufacturers", "where", "headquarter", "=", "value", "or", "headquarter", "=", "value" ], "question": "Find the number of manufactures that are based in Tokyo or Beijing.", "question_toks": [ "find", "number", "of", "manufacture", "that", "are", "based", "in", "tokyo", "or", "beijing", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Tokyo\"", null ], "or", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Beijing\"", null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "the", "number", "of", "manufactures", "that", "are", "based", "in", "Tokyo", "or", "Beijing", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "manufacture" ], [ "that" ], [ "are" ], [ "based" ], [ "in" ], [ "tokyo" ], [ "or" ], [ "beijing" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "manufacture", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "based", "VBN" ], [ "in", "IN" ], [ "tokyo", "NN" ], [ "or", "CC" ], [ "beijing", "NN" ], [ ".", "." ] ], "values": [ "Tokyo", "Beijing" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(1) Filter(2) A(0) C(3) T(0) V(0) Filter(2) A(0) C(3) T(0) V(1)" }, { "db_id": "manufactory_1", "query": "SELECT count(*) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "'Tokyo", "'", "OR", "headquarter", "=", "'Beijing", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "manufacturers", "where", "headquarter", "=", "value", "or", "headquarter", "=", "value" ], "question": "How many manufacturers have headquarters in either Tokyo or Beijing?", "question_toks": [ "how", "many", "manufacturer", "have", "headquarters", "in", "either", "tokyo", "or", "beijing", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Tokyo\"", null ], "or", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Beijing\"", null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "How", "many", "manufacturers", "have", "headquarters", "in", "either", "Tokyo", "or", "Beijing", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "manufacturer" ], [ "have" ], [ "headquarters" ], [ "in" ], [ "either" ], [ "tokyo" ], [ "or" ], [ "beijing" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "manufacturer", "NN" ], [ "have", "VBP" ], [ "headquarters", "VBN" ], [ "in", "IN" ], [ "either", "DT" ], [ "tokyo", "NN" ], [ "or", "CC" ], [ "beijing", "NN" ], [ "?", "." ] ], "values": [ "Tokyo", "Beijing" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(1) Filter(2) A(0) C(3) T(0) V(0) Filter(2) A(0) C(3) T(0) V(1)" }, { "db_id": "manufactory_1", "query": "SELECT founder FROM manufacturers WHERE name LIKE 'S%'", "query_toks": [ "SELECT", "founder", "FROM", "manufacturers", "WHERE", "name", "LIKE", "'S", "%", "'" ], "query_toks_no_value": [ "select", "founder", "from", "manufacturers", "where", "name", "like", "value" ], "question": "Find the founder of the company whose name begins with the letter 'S'.", "question_toks": [ "find", "founder", "of", "company", "whose", "name", "begin", "with", "letter", "'s", "'", "." ], "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, 2, false ], null ], "\"S%\"", null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "the", "founder", "of", "the", "company", "whose", "name", "begins", "with", "the", "letter", "'S", "'", "." ], "question_arg": [ [ "find" ], [ "founder" ], [ "of" ], [ "company" ], [ "whose" ], [ "name" ], [ "begin" ], [ "with" ], [ "letter" ], [ "'s" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "founder", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "begin", "NN" ], [ "with", "IN" ], [ "letter", "NN" ], [ "'s", "POS" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "S" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(9) A(0) C(2) T(0) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT founder FROM manufacturers WHERE name LIKE 'S%'", "query_toks": [ "SELECT", "founder", "FROM", "manufacturers", "WHERE", "name", "LIKE", "'S", "%", "'" ], "query_toks_no_value": [ "select", "founder", "from", "manufacturers", "where", "name", "like", "value" ], "question": "Who is the founders of companies whose first letter is S?", "question_toks": [ "who", "is", "founder", "of", "company", "whose", "first", "letter", "is", "s", "?" ], "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, 2, false ], null ], "\"S%\"", null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Who", "is", "the", "founders", "of", "companies", "whose", "first", "letter", "is", "S", "?" ], "question_arg": [ [ "who" ], [ "is" ], [ "founder" ], [ "of" ], [ "company" ], [ "whose" ], [ "first" ], [ "letter" ], [ "is" ], [ "s" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "founder", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "whose", "WP$" ], [ "first", "JJ" ], [ "letter", "NN" ], [ "is", "VBZ" ], [ "s", "VBN" ], [ "?", "." ] ], "values": [ "1", "S" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(9) A(0) C(2) T(0) V(1)" }, { "db_id": "manufactory_1", "query": "SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150", "query_toks": [ "SELECT", "name", "FROM", "manufacturers", "WHERE", "revenue", "BETWEEN", "100", "AND", "150" ], "query_toks_no_value": [ "select", "name", "from", "manufacturers", "where", "revenue", "between", "value", "and", "value" ], "question": "Find the name of companies whose revenue is between 100 and 150.", "question_toks": [ "find", "name", "of", "company", "whose", "revenue", "is", "between", "100", "and", "150", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 5, false ], null ], 100.0, 150.0 ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "the", "name", "of", "companies", "whose", "revenue", "is", "between", "100", "and", "150", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "company" ], [ "whose" ], [ "revenue" ], [ "is" ], [ "between" ], [ "100" ], [ "and" ], [ "150" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "whose", "WP$" ], [ "revenue", "NN" ], [ "is", "VBZ" ], [ "between", "IN" ], [ "100", "CD" ], [ "and", "CC" ], [ "150", "CD" ], [ ".", "." ] ], "values": [ "100", "150" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(8) A(0) C(5) T(0) V(0) V(1)" }, { "db_id": "manufactory_1", "query": "SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150", "query_toks": [ "SELECT", "name", "FROM", "manufacturers", "WHERE", "revenue", "BETWEEN", "100", "AND", "150" ], "query_toks_no_value": [ "select", "name", "from", "manufacturers", "where", "revenue", "between", "value", "and", "value" ], "question": "What are the names of companies with revenue between 100 and 150?", "question_toks": [ "what", "are", "name", "of", "company", "with", "revenue", "between", "100", "and", "150", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 5, false ], null ], 100.0, 150.0 ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "companies", "with", "revenue", "between", "100", "and", "150", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "company" ], [ "with" ], [ "revenue" ], [ "between" ], [ "100" ], [ "and" ], [ "150" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "with", "IN" ], [ "revenue", "NN" ], [ "between", "IN" ], [ "100", "CD" ], [ "and", "CC" ], [ "150", "CD" ], [ "?", "." ] ], "values": [ "100", "150", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(8) A(0) C(5) T(0) V(0) V(1)" }, { "db_id": "manufactory_1", "query": "SELECT sum(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan'", "query_toks": [ "SELECT", "sum", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "Headquarter", "=", "'Tokyo", "'", "OR", "Headquarter", "=", "'Taiwan", "'" ], "query_toks_no_value": [ "select", "sum", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value", "or", "headquarter", "=", "value" ], "question": "What is the total revenue of all companies whose main office is at Tokyo or Taiwan?", "question_toks": [ "what", "is", "total", "revenue", "of", "all", "company", "whose", "main", "office", "is", "at", "tokyo", "or", "taiwan", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Tokyo\"", null ], "or", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Taiwan\"", null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "total", "revenue", "of", "all", "companies", "whose", "main", "office", "is", "at", "Tokyo", "or", "Taiwan", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "revenue" ], [ "of" ], [ "all" ], [ "company" ], [ "whose" ], [ "main" ], [ "office" ], [ "is" ], [ "at" ], [ "tokyo" ], [ "or" ], [ "taiwan" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "revenue", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "company", "NN" ], [ "whose", "WP$" ], [ "main", "JJ" ], [ "office", "NN" ], [ "is", "VBZ" ], [ "at", "IN" ], [ "tokyo", "NN" ], [ "or", "CC" ], [ "taiwan", "NN" ], [ "?", "." ] ], "values": [ "Taiwan", "Tokyo" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(5) T(0) Filter(1) Filter(2) A(0) C(3) T(0) V(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT sum(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan'", "query_toks": [ "SELECT", "sum", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "Headquarter", "=", "'Tokyo", "'", "OR", "Headquarter", "=", "'Taiwan", "'" ], "query_toks_no_value": [ "select", "sum", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value", "or", "headquarter", "=", "value" ], "question": "Return the total revenue of companies with headquarters in Tokyo or Taiwan.", "question_toks": [ "return", "total", "revenue", "of", "company", "with", "headquarters", "in", "tokyo", "or", "taiwan", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Tokyo\"", null ], "or", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Taiwan\"", null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Return", "the", "total", "revenue", "of", "companies", "with", "headquarters", "in", "Tokyo", "or", "Taiwan", "." ], "question_arg": [ [ "return" ], [ "total" ], [ "revenue" ], [ "of" ], [ "company" ], [ "with" ], [ "headquarters" ], [ "in" ], [ "tokyo" ], [ "or" ], [ "taiwan" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "total", "JJ" ], [ "revenue", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "with", "IN" ], [ "headquarters", "NNS" ], [ "in", "IN" ], [ "tokyo", "NN" ], [ "or", "CC" ], [ "taiwan", "NN" ], [ ".", "." ] ], "values": [ "Taiwan", "Tokyo" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(5) T(0) Filter(1) Filter(2) A(0) C(3) T(0) V(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Creative Labs' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony'", "query_toks": [ "SELECT", "T1.name", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "WHERE", "T2.name", "=", "'Creative", "Labs", "'", "INTERSECT", "SELECT", "T1.name", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "WHERE", "T2.name", "=", "'Sony", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "where", "t2", ".", "name", "=", "value", "intersect", "select", "t1", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "where", "t2", ".", "name", "=", "value" ], "question": "Find the name of product that is produced by both companies Creative Labs and Sony.", "question_toks": [ "find", "name", "of", "product", "that", "is", "produced", "by", "both", "company", "creative", "lab", "and", "sony", "." ], "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": { "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, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Sony\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Creative Labs\"", null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "the", "name", "of", "product", "that", "is", "produced", "by", "both", "companies", "Creative", "Labs", "and", "Sony", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "product" ], [ "that" ], [ "is" ], [ "produced" ], [ "by" ], [ "both" ], [ "company" ], [ "creative" ], [ "lab" ], [ "and" ], [ "sony" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "both", "DT" ], [ "company", "NN" ], [ "creative", "JJ" ], [ "lab", "NN" ], [ "and", "CC" ], [ "sony", "NN" ], [ ".", "." ] ], "values": [ "Sony", "Creative Labs" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(2) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Creative Labs' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony'", "query_toks": [ "SELECT", "T1.name", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "WHERE", "T2.name", "=", "'Creative", "Labs", "'", "INTERSECT", "SELECT", "T1.name", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "WHERE", "T2.name", "=", "'Sony", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "where", "t2", ".", "name", "=", "value", "intersect", "select", "t1", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "where", "t2", ".", "name", "=", "value" ], "question": "What are the names of products produced by both Creative Labs and Sony?", "question_toks": [ "what", "are", "name", "of", "product", "produced", "by", "both", "creative", "lab", "and", "sony", "?" ], "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": { "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, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Sony\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Creative Labs\"", null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "products", "produced", "by", "both", "Creative", "Labs", "and", "Sony", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "product" ], [ "produced" ], [ "by" ], [ "both" ], [ "creative" ], [ "lab" ], [ "and" ], [ "sony" ], [ "?" ] ], "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" ], [ "product", "NN" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "both", "DT" ], [ "creative", "JJ" ], [ "lab", "NN" ], [ "and", "CC" ], [ "sony", "NN" ], [ "?", "." ] ], "values": [ "Sony", "Creative Labs", "James" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(2) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT name , headquarter , founder FROM manufacturers ORDER BY revenue DESC LIMIT 1", "query_toks": [ "SELECT", "name", ",", "headquarter", ",", "founder", "FROM", "manufacturers", "ORDER", "BY", "revenue", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "headquarter", ",", "founder", "from", "manufacturers", "order", "by", "revenue", "desc", "limit", "value" ], "question": "Find the name, headquarter and founder of the manufacturer that has the highest revenue.", "question_toks": [ "find", "name", ",", "headquarter", "and", "founder", "of", "manufacturer", "that", "ha", "highest", "revenue", "." ], "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 ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "the", "name", ",", "headquarter", "and", "founder", "of", "the", "manufacturer", "that", "has", "the", "highest", "revenue", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "," ], [ "headquarter" ], [ "and" ], [ "founder" ], [ "of" ], [ "manufacturer" ], [ "that" ], [ "ha" ], [ "highest" ], [ "revenue" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "headquarter", "NN" ], [ "and", "CC" ], [ "founder", "NN" ], [ "of", "IN" ], [ "manufacturer", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "highest", "JJS" ], [ "revenue", "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(4) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT name , headquarter , founder FROM manufacturers ORDER BY revenue DESC LIMIT 1", "query_toks": [ "SELECT", "name", ",", "headquarter", ",", "founder", "FROM", "manufacturers", "ORDER", "BY", "revenue", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "headquarter", ",", "founder", "from", "manufacturers", "order", "by", "revenue", "desc", "limit", "value" ], "question": "What are the names, headquarters and founders of the company with the highest revenue?", "question_toks": [ "what", "are", "name", ",", "headquarters", "and", "founder", "of", "company", "with", "highest", "revenue", "?" ], "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 ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", ",", "headquarters", "and", "founders", "of", "the", "company", "with", "the", "highest", "revenue", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "headquarters" ], [ "and" ], [ "founder" ], [ "of" ], [ "company" ], [ "with" ], [ "highest" ], [ "revenue" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "headquarters", "NNS" ], [ "and", "CC" ], [ "founder", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "revenue", "NN" ], [ "?", "." ] ], "values": [ "James" ], "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(4) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT name , headquarter , revenue FROM manufacturers ORDER BY revenue DESC", "query_toks": [ "SELECT", "name", ",", "headquarter", ",", "revenue", "FROM", "manufacturers", "ORDER", "BY", "revenue", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "headquarter", ",", "revenue", "from", "manufacturers", "order", "by", "revenue", "desc" ], "question": "Find the name, headquarter and revenue of all manufacturers sorted by their revenue in the descending order.", "question_toks": [ "find", "name", ",", "headquarter", "and", "revenue", "of", "all", "manufacturer", "sorted", "by", "their", "revenue", "in", "descending", "order", "." ], "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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "the", "name", ",", "headquarter", "and", "revenue", "of", "all", "manufacturers", "sorted", "by", "their", "revenue", "in", "the", "descending", "order", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "," ], [ "headquarter" ], [ "and" ], [ "revenue" ], [ "of" ], [ "all" ], [ "manufacturer" ], [ "sorted" ], [ "by" ], [ "their" ], [ "revenue" ], [ "in" ], [ "descending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "headquarter", "NN" ], [ "and", "CC" ], [ "revenue", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "manufacturer", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "revenue", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(0) C(5) T(0) Order(0) A(0) C(5) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT name , headquarter , revenue FROM manufacturers ORDER BY revenue DESC", "query_toks": [ "SELECT", "name", ",", "headquarter", ",", "revenue", "FROM", "manufacturers", "ORDER", "BY", "revenue", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "headquarter", ",", "revenue", "from", "manufacturers", "order", "by", "revenue", "desc" ], "question": "What are the names, headquarters and revenues for manufacturers, sorted by revenue descending?", "question_toks": [ "what", "are", "name", ",", "headquarters", "and", "revenue", "for", "manufacturer", ",", "sorted", "by", "revenue", "descending", "?" ], "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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", ",", "headquarters", "and", "revenues", "for", "manufacturers", ",", "sorted", "by", "revenue", "descending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "headquarters" ], [ "and" ], [ "revenue" ], [ "for" ], [ "manufacturer" ], [ "," ], [ "sorted" ], [ "by" ], [ "revenue" ], [ "descending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "headquarters", "NNS" ], [ "and", "CC" ], [ "revenue", "NN" ], [ "for", "IN" ], [ "manufacturer", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "revenue", "NN" ], [ "descending", "VBG" ], [ "?", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(0) C(5) T(0) Order(0) A(0) C(5) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT name FROM manufacturers WHERE revenue > (SELECT avg(revenue) FROM manufacturers)", "query_toks": [ "SELECT", "name", "FROM", "manufacturers", "WHERE", "revenue", ">", "(", "SELECT", "avg", "(", "revenue", ")", "FROM", "manufacturers", ")" ], "query_toks_no_value": [ "select", "name", "from", "manufacturers", "where", "revenue", ">", "(", "select", "avg", "(", "revenue", ")", "from", "manufacturers", ")" ], "question": "Find the name of companies whose revenue is greater than the average revenue of all companies.", "question_toks": [ "find", "name", "of", "company", "whose", "revenue", "is", "greater", "than", "average", "revenue", "of", "all", "company", "." ], "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 ], { "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": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "the", "name", "of", "companies", "whose", "revenue", "is", "greater", "than", "the", "average", "revenue", "of", "all", "companies", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "company" ], [ "whose" ], [ "revenue" ], [ "is" ], [ "greater" ], [ "than" ], [ "average" ], [ "revenue" ], [ "of" ], [ "all" ], [ "company" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "whose", "WP$" ], [ "revenue", "NN" ], [ "is", "VBZ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "revenue", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "company", "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(0) Root(5) Sel(0) N(0) A(5) C(5) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT name FROM manufacturers WHERE revenue > (SELECT avg(revenue) FROM manufacturers)", "query_toks": [ "SELECT", "name", "FROM", "manufacturers", "WHERE", "revenue", ">", "(", "SELECT", "avg", "(", "revenue", ")", "FROM", "manufacturers", ")" ], "query_toks_no_value": [ "select", "name", "from", "manufacturers", "where", "revenue", ">", "(", "select", "avg", "(", "revenue", ")", "from", "manufacturers", ")" ], "question": "What are the names of manufacturers with revenue greater than the average of all revenues?", "question_toks": [ "what", "are", "name", "of", "manufacturer", "with", "revenue", "greater", "than", "average", "of", "all", "revenue", "?" ], "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 ], { "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": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "manufacturers", "with", "revenue", "greater", "than", "the", "average", "of", "all", "revenues", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "manufacturer" ], [ "with" ], [ "revenue" ], [ "greater" ], [ "than" ], [ "average" ], [ "of" ], [ "all" ], [ "revenue" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "manufacturer", "NN" ], [ "with", "IN" ], [ "revenue", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "revenue", "NN" ], [ "?", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(13) A(0) C(5) T(0) Root(5) Sel(0) N(0) A(5) C(5) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT name FROM manufacturers WHERE revenue < (SELECT min(revenue) FROM manufacturers WHERE headquarter = 'Austin')", "query_toks": [ "SELECT", "name", "FROM", "manufacturers", "WHERE", "revenue", "<", "(", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "'Austin", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "manufacturers", "where", "revenue", "<", "(", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value", ")" ], "question": "Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin.", "question_toks": [ "find", "name", "of", "company", "whose", "revenue", "is", "smaller", "than", "revenue", "of", "all", "company", "based", "in", "austin", "." ], "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, 5, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Austin\"", null ] ] }, null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "the", "name", "of", "companies", "whose", "revenue", "is", "smaller", "than", "the", "revenue", "of", "all", "companies", "based", "in", "Austin", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "company" ], [ "whose" ], [ "revenue" ], [ "is" ], [ "smaller" ], [ "than" ], [ "revenue" ], [ "of" ], [ "all" ], [ "company" ], [ "based" ], [ "in" ], [ "austin" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "whose", "WP$" ], [ "revenue", "NN" ], [ "is", "VBZ" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "revenue", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "company", "NN" ], [ "based", "VBN" ], [ "in", "IN" ], [ "austin", "NN" ], [ ".", "." ] ], "values": [ "Austin" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(12) A(0) C(5) T(0) Root(3) Sel(0) N(0) A(2) C(5) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT name FROM manufacturers WHERE revenue < (SELECT min(revenue) FROM manufacturers WHERE headquarter = 'Austin')", "query_toks": [ "SELECT", "name", "FROM", "manufacturers", "WHERE", "revenue", "<", "(", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "'Austin", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "manufacturers", "where", "revenue", "<", "(", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value", ")" ], "question": "What are the names of companies with revenue less than the lowest revenue of any manufacturer in Austin?", "question_toks": [ "what", "are", "name", "of", "company", "with", "revenue", "le", "than", "lowest", "revenue", "of", "any", "manufacturer", "in", "austin", "?" ], "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, 5, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Austin\"", null ] ] }, null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "companies", "with", "revenue", "less", "than", "the", "lowest", "revenue", "of", "any", "manufacturer", "in", "Austin", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "company" ], [ "with" ], [ "revenue" ], [ "le" ], [ "than" ], [ "lowest" ], [ "revenue" ], [ "of" ], [ "any" ], [ "manufacturer" ], [ "in" ], [ "austin" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "with", "IN" ], [ "revenue", "NN" ], [ "le", "NN" ], [ "than", "IN" ], [ "lowest", "JJS" ], [ "revenue", "NN" ], [ "of", "IN" ], [ "any", "DT" ], [ "manufacturer", "NN" ], [ "in", "IN" ], [ "austin", "NN" ], [ "?", "." ] ], "values": [ "Austin", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(12) A(0) C(5) T(0) Root(3) Sel(0) N(0) A(2) C(5) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT sum(revenue) FROM manufacturers WHERE revenue > (SELECT min(revenue) FROM manufacturers WHERE headquarter = 'Austin')", "query_toks": [ "SELECT", "sum", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "revenue", ">", "(", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "'Austin", "'", ")" ], "query_toks_no_value": [ "select", "sum", "(", "revenue", ")", "from", "manufacturers", "where", "revenue", ">", "(", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value", ")" ], "question": "Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin.", "question_toks": [ "find", "total", "revenue", "of", "company", "whose", "revenue", "is", "larger", "than", "revenue", "of", "some", "company", "based", "in", "austin", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Austin\"", null ] ] }, null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "the", "total", "revenue", "of", "companies", "whose", "revenue", "is", "larger", "than", "the", "revenue", "of", "some", "companies", "based", "in", "Austin", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "revenue" ], [ "of" ], [ "company" ], [ "whose" ], [ "revenue" ], [ "is" ], [ "larger" ], [ "than" ], [ "revenue" ], [ "of" ], [ "some" ], [ "company" ], [ "based" ], [ "in" ], [ "austin" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "revenue", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "whose", "WP$" ], [ "revenue", "NN" ], [ "is", "VBZ" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "revenue", "NN" ], [ "of", "IN" ], [ "some", "DT" ], [ "company", "NN" ], [ "based", "VBN" ], [ "in", "IN" ], [ "austin", "NN" ], [ ".", "." ] ], "values": [ "Austin" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(5) T(0) Filter(13) A(0) C(5) T(0) Root(3) Sel(0) N(0) A(2) C(5) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT sum(revenue) FROM manufacturers WHERE revenue > (SELECT min(revenue) FROM manufacturers WHERE headquarter = 'Austin')", "query_toks": [ "SELECT", "sum", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "revenue", ">", "(", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "'Austin", "'", ")" ], "query_toks_no_value": [ "select", "sum", "(", "revenue", ")", "from", "manufacturers", "where", "revenue", ">", "(", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value", ")" ], "question": "What is the total revenue of companies with revenue greater than the lowest revenue of any manufacturer in Austin?", "question_toks": [ "what", "is", "total", "revenue", "of", "company", "with", "revenue", "greater", "than", "lowest", "revenue", "of", "any", "manufacturer", "in", "austin", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Austin\"", null ] ] }, null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "total", "revenue", "of", "companies", "with", "revenue", "greater", "than", "the", "lowest", "revenue", "of", "any", "manufacturer", "in", "Austin", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "revenue" ], [ "of" ], [ "company" ], [ "with" ], [ "revenue" ], [ "greater" ], [ "than" ], [ "lowest" ], [ "revenue" ], [ "of" ], [ "any" ], [ "manufacturer" ], [ "in" ], [ "austin" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "revenue", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "with", "IN" ], [ "revenue", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "lowest", "JJS" ], [ "revenue", "NN" ], [ "of", "IN" ], [ "any", "DT" ], [ "manufacturer", "NN" ], [ "in", "IN" ], [ "austin", "NN" ], [ "?", "." ] ], "values": [ "Austin" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(5) T(0) Filter(13) A(0) C(5) T(0) Root(3) Sel(0) N(0) A(2) C(5) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT sum(revenue) , founder FROM manufacturers GROUP BY founder", "query_toks": [ "SELECT", "sum", "(", "revenue", ")", ",", "founder", "FROM", "manufacturers", "GROUP", "BY", "founder" ], "query_toks_no_value": [ "select", "sum", "(", "revenue", ")", ",", "founder", "from", "manufacturers", "group", "by", "founder" ], "question": "Find the total revenue of companies of each founder.", "question_toks": [ "find", "total", "revenue", "of", "company", "of", "each", "founder", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "the", "total", "revenue", "of", "companies", "of", "each", "founder", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "revenue" ], [ "of" ], [ "company" ], [ "of" ], [ "each" ], [ "founder" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "revenue", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "founder", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(5) T(0) A(0) C(4) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT sum(revenue) , founder FROM manufacturers GROUP BY founder", "query_toks": [ "SELECT", "sum", "(", "revenue", ")", ",", "founder", "FROM", "manufacturers", "GROUP", "BY", "founder" ], "query_toks_no_value": [ "select", "sum", "(", "revenue", ")", ",", "founder", "from", "manufacturers", "group", "by", "founder" ], "question": "What is the total revenue of companies started by founder?", "question_toks": [ "what", "is", "total", "revenue", "of", "company", "started", "by", "founder", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "total", "revenue", "of", "companies", "started", "by", "founder", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "revenue" ], [ "of" ], [ "company" ], [ "started" ], [ "by" ], [ "founder" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "revenue", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "started", "VBN" ], [ "by", "IN" ], [ "founder", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(5) T(0) A(0) C(4) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT name , max(revenue) , Headquarter FROM manufacturers GROUP BY Headquarter", "query_toks": [ "SELECT", "name", ",", "max", "(", "revenue", ")", ",", "Headquarter", "FROM", "manufacturers", "GROUP", "BY", "Headquarter" ], "query_toks_no_value": [ "select", "name", ",", "max", "(", "revenue", ")", ",", "headquarter", "from", "manufacturers", "group", "by", "headquarter" ], "question": "Find the name and revenue of the company that earns the highest revenue in each city.", "question_toks": [ "find", "name", "and", "revenue", "of", "company", "that", "earns", "highest", "revenue", "in", "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, 2, false ], null ] ], [ 1, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "the", "name", "and", "revenue", "of", "the", "company", "that", "earns", "the", "highest", "revenue", "in", "each", "city", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "revenue" ], [ "of" ], [ "company" ], [ "that" ], [ "earns" ], [ "highest" ], [ "revenue" ], [ "in" ], [ "each" ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "revenue", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "that", "WDT" ], [ "earns", "VBZ" ], [ "highest", "JJS" ], [ "revenue", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(1) C(5) T(0) A(0) C(3) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT name , max(revenue) , Headquarter FROM manufacturers GROUP BY Headquarter", "query_toks": [ "SELECT", "name", ",", "max", "(", "revenue", ")", ",", "Headquarter", "FROM", "manufacturers", "GROUP", "BY", "Headquarter" ], "query_toks_no_value": [ "select", "name", ",", "max", "(", "revenue", ")", ",", "headquarter", "from", "manufacturers", "group", "by", "headquarter" ], "question": "What are the names and revenues of the companies with the highest revenues in each headquarter city?", "question_toks": [ "what", "are", "name", "and", "revenue", "of", "company", "with", "highest", "revenue", "in", "each", "headquarter", "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, 2, false ], null ] ], [ 1, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "revenues", "of", "the", "companies", "with", "the", "highest", "revenues", "in", "each", "headquarter", "city", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "revenue" ], [ "of" ], [ "company" ], [ "with" ], [ "highest" ], [ "revenue" ], [ "in" ], [ "each" ], [ "headquarter" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "revenue", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "revenue", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "headquarter", "NN" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(1) C(5) T(0) A(0) C(3) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT sum(revenue) , name FROM manufacturers GROUP BY name", "query_toks": [ "SELECT", "sum", "(", "revenue", ")", ",", "name", "FROM", "manufacturers", "GROUP", "BY", "name" ], "query_toks_no_value": [ "select", "sum", "(", "revenue", ")", ",", "name", "from", "manufacturers", "group", "by", "name" ], "question": "Find the total revenue for each manufacturer.", "question_toks": [ "find", "total", "revenue", "for", "each", "manufacturer", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "the", "total", "revenue", "for", "each", "manufacturer", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "revenue" ], [ "for" ], [ "each" ], [ "manufacturer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "revenue", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "manufacturer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(5) T(0) A(0) C(2) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT sum(revenue) , name FROM manufacturers GROUP BY name", "query_toks": [ "SELECT", "sum", "(", "revenue", ")", ",", "name", "FROM", "manufacturers", "GROUP", "BY", "name" ], "query_toks_no_value": [ "select", "sum", "(", "revenue", ")", ",", "name", "from", "manufacturers", "group", "by", "name" ], "question": "What is the total revenue of each manufacturer?", "question_toks": [ "what", "is", "total", "revenue", "of", "each", "manufacturer", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "total", "revenue", "of", "each", "manufacturer", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "revenue" ], [ "of" ], [ "each" ], [ "manufacturer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "revenue", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "manufacturer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(5) T(0) A(0) C(2) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT avg(T1.price) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name", "query_toks": [ "SELECT", "avg", "(", "T1.price", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name" ], "question": "Find the average prices of all products from each manufacture, and list each company's name.", "question_toks": [ "find", "average", "price", "of", "all", "product", "from", "each", "manufacture", ",", "and", "list", "each", "company", "'s", "name", "." ], "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, 2, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "the", "average", "prices", "of", "all", "products", "from", "each", "manufacture", ",", "and", "list", "each", "company", "'s", "name", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "price" ], [ "of" ], [ "all" ], [ "product" ], [ "from" ], [ "each" ], [ "manufacture" ], [ "," ], [ "and" ], [ "list" ], [ "each" ], [ "company" ], [ "'s" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "from", "IN" ], [ "each", "DT" ], [ "manufacture", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "list", "NN" ], [ "each", "DT" ], [ "company", "NN" ], [ "'s", "POS" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(6) T(1) A(0) C(2) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT avg(T1.price) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name", "query_toks": [ "SELECT", "avg", "(", "T1.price", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name" ], "question": "What are the average prices of products for each manufacturer?", "question_toks": [ "what", "are", "average", "price", "of", "product", "for", "each", "manufacturer", "?" ], "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, 2, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "average", "prices", "of", "products", "for", "each", "manufacturer", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "price" ], [ "of" ], [ "product" ], [ "for" ], [ "each" ], [ "manufacturer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "manufacturer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(6) T(1) A(0) C(2) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT count(DISTINCT T1.name) , T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.Headquarter", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T1.name", ")", ",", "T2.Headquarter", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "GROUP", "BY", "T2.Headquarter" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t1", ".", "name", ")", ",", "t2", ".", "headquarter", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "headquarter" ], "question": "Find the number of different products that are produced by companies at different headquarter cities.", "question_toks": [ "find", "number", "of", "different", "product", "that", "are", "produced", "by", "company", "at", "different", "headquarter", "city", "." ], "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, 3, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 7, true ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "the", "number", "of", "different", "products", "that", "are", "produced", "by", "companies", "at", "different", "headquarter", "cities", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "different" ], [ "product" ], [ "that" ], [ "are" ], [ "produced" ], [ "by" ], [ "company" ], [ "at" ], [ "different" ], [ "headquarter" ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "product", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "company", "NN" ], [ "at", "IN" ], [ "different", "JJ" ], [ "headquarter", "NN" ], [ "city", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(3) C(2) T(1) A(0) C(3) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT count(DISTINCT T1.name) , T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.Headquarter", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T1.name", ")", ",", "T2.Headquarter", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "GROUP", "BY", "T2.Headquarter" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t1", ".", "name", ")", ",", "t2", ".", "headquarter", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "headquarter" ], "question": "How many different products are produced in each headquarter city?", "question_toks": [ "how", "many", "different", "product", "are", "produced", "in", "each", "headquarter", "city", "?" ], "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, 3, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 7, true ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "How", "many", "different", "products", "are", "produced", "in", "each", "headquarter", "city", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "product" ], [ "are" ], [ "produced" ], [ "in" ], [ "each" ], [ "headquarter" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "product", "NN" ], [ "are", "VBP" ], [ "produced", "VBN" ], [ "in", "IN" ], [ "each", "DT" ], [ "headquarter", "NN" ], [ "city", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(3) C(2) T(1) A(0) C(3) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT count(DISTINCT name) FROM products WHERE name NOT IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony')", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "name", ")", "FROM", "products", "WHERE", "name", "NOT", "IN", "(", "SELECT", "T1.name", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "WHERE", "T2.name", "=", "'Sony", "'", ")" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "name", ")", "from", "products", "where", "name", "not", "in", "(", "select", "t1", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "where", "t2", ".", "name", "=", "value", ")" ], "question": "Find number of products which Sony does not make.", "question_toks": [ "find", "number", "of", "product", "which", "sony", "doe", "not", "make", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 7, true ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "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, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Sony\"", null ] ] }, null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "number", "of", "products", "which", "Sony", "does", "not", "make", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "product" ], [ "which" ], [ "sony" ], [ "doe" ], [ "not" ], [ "make" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "which", "WDT" ], [ "sony", "NN" ], [ "doe", "NN" ], [ "not", "RB" ], [ "make", "VB" ], [ ".", "." ] ], "values": [ "Sony" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(2) T(1) Filter(19) A(0) C(2) T(1) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT count(DISTINCT name) FROM products WHERE name NOT IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony')", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "name", ")", "FROM", "products", "WHERE", "name", "NOT", "IN", "(", "SELECT", "T1.name", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "WHERE", "T2.name", "=", "'Sony", "'", ")" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "name", ")", "from", "products", "where", "name", "not", "in", "(", "select", "t1", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "where", "t2", ".", "name", "=", "value", ")" ], "question": "How many products are not made by Sony?", "question_toks": [ "how", "many", "product", "are", "not", "made", "by", "sony", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 7, true ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "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, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Sony\"", null ] ] }, null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "How", "many", "products", "are", "not", "made", "by", "Sony", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "product" ], [ "are" ], [ "not" ], [ "made" ], [ "by" ], [ "sony" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "product", "NN" ], [ "are", "VBP" ], [ "not", "RB" ], [ "made", "VBN" ], [ "by", "IN" ], [ "sony", "NN" ], [ "?", "." ] ], "values": [ "Sony" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(2) T(1) Filter(19) A(0) C(2) T(1) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T1.name = 'DVD drive'", "query_toks": [ "SELECT", "name", "FROM", "manufacturers", "EXCEPT", "SELECT", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "WHERE", "T1.name", "=", "'DVD", "drive", "'" ], "query_toks_no_value": [ "select", "name", "from", "manufacturers", "except", "select", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "where", "t1", ".", "name", "=", "value" ], "question": "Find the name of companies that do not make DVD drive.", "question_toks": [ "find", "name", "of", "company", "that", "do", "not", "make", "dvd", "drive", "." ], "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 ], "\"DVD drive\"", 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": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "the", "name", "of", "companies", "that", "do", "not", "make", "DVD", "drive", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "company" ], [ "that" ], [ "do" ], [ "not" ], [ "make" ], [ "dvd" ], [ "drive" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "make", "VB" ], [ "dvd", "JJ" ], [ "drive", "NN" ], [ ".", "." ] ], "values": [ "CD drive", "DVD drive" ], "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(2) T(1) V(1)" }, { "db_id": "manufactory_1", "query": "SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T1.name = 'DVD drive'", "query_toks": [ "SELECT", "name", "FROM", "manufacturers", "EXCEPT", "SELECT", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "WHERE", "T1.name", "=", "'DVD", "drive", "'" ], "query_toks_no_value": [ "select", "name", "from", "manufacturers", "except", "select", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "where", "t1", ".", "name", "=", "value" ], "question": "What are the names of companies that do not make DVD drives?", "question_toks": [ "what", "are", "name", "of", "company", "that", "do", "not", "make", "dvd", "drive", "?" ], "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 ], "\"DVD drive\"", 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": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "companies", "that", "do", "not", "make", "DVD", "drives", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "company" ], [ "that" ], [ "do" ], [ "not" ], [ "make" ], [ "dvd" ], [ "drive" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "make", "VB" ], [ "dvd", "NN" ], [ "drive", "NN" ], [ "?", "." ] ], "values": [ "DVD drive", "James" ], "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(2) T(1) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT count(*) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name" ], "question": "Find the number of products for each manufacturer, showing the name of each company.", "question_toks": [ "find", "number", "of", "product", "for", "each", "manufacturer", ",", "showing", "name", "of", "each", "company", "." ], "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, 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": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "the", "number", "of", "products", "for", "each", "manufacturer", ",", "showing", "the", "name", "of", "each", "company", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "product" ], [ "for" ], [ "each" ], [ "manufacturer" ], [ "," ], [ "showing" ], [ "name" ], [ "of" ], [ "each" ], [ "company" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "manufacturer", "NN" ], [ ",", "," ], [ "showing", "VBG" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "company", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(1) A(0) C(2) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT count(*) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name" ], "question": "How many products are there for each manufacturer?", "question_toks": [ "how", "many", "product", "are", "there", "for", "each", "manufacturer", "?" ], "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, 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": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "How", "many", "products", "are", "there", "for", "each", "manufacturer", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "product" ], [ "are" ], [ "there" ], [ "for" ], [ "each" ], [ "manufacturer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "product", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "for", "IN" ], [ "each", "DT" ], [ "manufacturer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(1) A(0) C(2) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT Name FROM Products", "query_toks": [ "SELECT", "Name", "FROM", "Products" ], "query_toks_no_value": [ "select", "name", "from", "products" ], "question": "Select the names of all the products in the store.", "question_toks": [ "select", "name", "of", "all", "product", "in", "store", "." ], "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": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Select", "the", "names", "of", "all", "the", "products", "in", "the", "store", "." ], "question_arg": [ [ "select" ], [ "name" ], [ "of" ], [ "all" ], [ "product" ], [ "in" ], [ "store" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "select", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "in", "IN" ], [ "store", "NN" ], [ ".", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(2) T(1)" }, { "db_id": "manufactory_1", "query": "SELECT Name FROM Products", "query_toks": [ "SELECT", "Name", "FROM", "Products" ], "query_toks_no_value": [ "select", "name", "from", "products" ], "question": "What are the names of all products?", "question_toks": [ "what", "are", "name", "of", "all", "product", "?" ], "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": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "products", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "?", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(2) T(1)" }, { "db_id": "manufactory_1", "query": "SELECT name , price FROM products", "query_toks": [ "SELECT", "name", ",", "price", "FROM", "products" ], "query_toks_no_value": [ "select", "name", ",", "price", "from", "products" ], "question": "Select the names and the prices of all the products in the store.", "question_toks": [ "select", "name", "and", "price", "of", "all", "product", "in", "store", "." ], "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": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Select", "the", "names", "and", "the", "prices", "of", "all", "the", "products", "in", "the", "store", "." ], "question_arg": [ [ "select" ], [ "name" ], [ "and" ], [ "price" ], [ "of" ], [ "all" ], [ "product" ], [ "in" ], [ "store" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "select", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "price", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "in", "IN" ], [ "store", "NN" ], [ ".", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(1) A(0) C(6) T(1)" }, { "db_id": "manufactory_1", "query": "SELECT name , price FROM products", "query_toks": [ "SELECT", "name", ",", "price", "FROM", "products" ], "query_toks_no_value": [ "select", "name", ",", "price", "from", "products" ], "question": "What are the names and prices of all products in the store?", "question_toks": [ "what", "are", "name", "and", "price", "of", "all", "product", "in", "store", "?" ], "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": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "prices", "of", "all", "products", "in", "the", "store", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "price" ], [ "of" ], [ "all" ], [ "product" ], [ "in" ], [ "store" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "price", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "in", "IN" ], [ "store", "NN" ], [ "?", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(1) A(0) C(6) T(1)" }, { "db_id": "manufactory_1", "query": "SELECT name FROM products WHERE price <= 200", "query_toks": [ "SELECT", "name", "FROM", "products", "WHERE", "price", "<", "=", "200" ], "query_toks_no_value": [ "select", "name", "from", "products", "where", "price", "<", "=", "value" ], "question": "Select the name of the products with a price less than or equal to $200.", "question_toks": [ "select", "name", "of", "product", "with", "a", "price", "le", "than", "or", "equal", "to", "$", "200", "." ], "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, 6, [ 0, [ 0, 8, false ], null ], 200.0, null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Select", "the", "name", "of", "the", "products", "with", "a", "price", "less", "than", "or", "equal", "to", "$", "200", "." ], "question_arg": [ [ "select" ], [ "name" ], [ "of" ], [ "product" ], [ "with" ], [ "a" ], [ "price" ], [ "le" ], [ "than" ], [ "or" ], [ "equal" ], [ "to" ], [ "$" ], [ "200" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "select", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "price", "NN" ], [ "le", "NN" ], [ "than", "IN" ], [ "or", "CC" ], [ "equal", "JJ" ], [ "to", "TO" ], [ "$", "$" ], [ "200", "CD" ], [ ".", "." ] ], "values": [ "200.000000", "200" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(6) A(0) C(6) T(1) V(1)" }, { "db_id": "manufactory_1", "query": "SELECT name FROM products WHERE price <= 200", "query_toks": [ "SELECT", "name", "FROM", "products", "WHERE", "price", "<", "=", "200" ], "query_toks_no_value": [ "select", "name", "from", "products", "where", "price", "<", "=", "value" ], "question": "What are the names of products with price at most 200?", "question_toks": [ "what", "are", "name", "of", "product", "with", "price", "at", "most", "200", "?" ], "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, 6, [ 0, [ 0, 8, false ], null ], 200.0, null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "products", "with", "price", "at", "most", "200", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "product" ], [ "with" ], [ "price" ], [ "at" ], [ "most" ], [ "200" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "at", "IN" ], [ "most", "JJS" ], [ "200", "CD" ], [ "?", "." ] ], "values": [ "James", "200" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(6) A(0) C(6) T(1) V(1)" }, { "db_id": "manufactory_1", "query": "SELECT * FROM products WHERE price BETWEEN 60 AND 120", "query_toks": [ "SELECT", "*", "FROM", "products", "WHERE", "price", "BETWEEN", "60", "AND", "120" ], "query_toks_no_value": [ "select", "*", "from", "products", "where", "price", "between", "value", "and", "value" ], "question": "Find all information of all the products with a price between $60 and $120.", "question_toks": [ "find", "all", "information", "of", "all", "product", "with", "a", "price", "between", "$", "60", "and", "$", "120", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 8, false ], null ], 60.0, 120.0 ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Find", "all", "information", "of", "all", "the", "products", "with", "a", "price", "between", "$", "60", "and", "$", "120", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "information" ], [ "of" ], [ "all" ], [ "product" ], [ "with" ], [ "a" ], [ "price" ], [ "between" ], [ "$" ], [ "60" ], [ "and" ], [ "$" ], [ "120" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "information", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "price", "NN" ], [ "between", "IN" ], [ "$", "$" ], [ "60", "CD" ], [ "and", "CC" ], [ "$", "$" ], [ "120", "CD" ], [ ".", "." ] ], "values": [ "120.000000", "60", "120", "60.000000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(1) Filter(8) A(0) C(6) T(1) V(1) V(2)" }, { "db_id": "manufactory_1", "query": "SELECT * FROM products WHERE price BETWEEN 60 AND 120", "query_toks": [ "SELECT", "*", "FROM", "products", "WHERE", "price", "BETWEEN", "60", "AND", "120" ], "query_toks_no_value": [ "select", "*", "from", "products", "where", "price", "between", "value", "and", "value" ], "question": "What is all the information of all the products that have a price between 60 and 120?", "question_toks": [ "what", "is", "all", "information", "of", "all", "product", "that", "have", "a", "price", "between", "60", "and", "120", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 8, false ], null ], 60.0, 120.0 ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "is", "all", "the", "information", "of", "all", "the", "products", "that", "have", "a", "price", "between", "60", "and", "120", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "all" ], [ "information" ], [ "of" ], [ "all" ], [ "product" ], [ "that" ], [ "have" ], [ "a" ], [ "price" ], [ "between" ], [ "60" ], [ "and" ], [ "120" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "all", "DT" ], [ "information", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "price", "NN" ], [ "between", "IN" ], [ "60", "CD" ], [ "and", "CC" ], [ "120", "CD" ], [ "?", "." ] ], "values": [ "60", "120" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(1) Filter(8) A(0) C(6) T(1) V(0) V(1)" }, { "db_id": "manufactory_1", "query": "SELECT avg(price) FROM products", "query_toks": [ "SELECT", "avg", "(", "price", ")", "FROM", "products" ], "query_toks_no_value": [ "select", "avg", "(", "price", ")", "from", "products" ], "question": "Compute the average price of all the products.", "question_toks": [ "compute", "average", "price", "of", "all", "product", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Compute", "the", "average", "price", "of", "all", "the", "products", "." ], "question_arg": [ [ "compute" ], [ "average" ], [ "price" ], [ "of" ], [ "all" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "compute", "JJ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(6) T(1)" }, { "db_id": "manufactory_1", "query": "SELECT avg(price) FROM products", "query_toks": [ "SELECT", "avg", "(", "price", ")", "FROM", "products" ], "query_toks_no_value": [ "select", "avg", "(", "price", ")", "from", "products" ], "question": "What is the average price across all products?", "question_toks": [ "what", "is", "average", "price", "across", "all", "product", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "average", "price", "across", "all", "products", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "price" ], [ "across" ], [ "all" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(6) T(1)" }, { "db_id": "manufactory_1", "query": "SELECT avg(price) FROM products WHERE Manufacturer = 2", "query_toks": [ "SELECT", "avg", "(", "price", ")", "FROM", "products", "WHERE", "Manufacturer", "=", "2" ], "query_toks_no_value": [ "select", "avg", "(", "price", ")", "from", "products", "where", "manufacturer", "=", "value" ], "question": "Compute the average price of all products with manufacturer code equal to 2.", "question_toks": [ "compute", "average", "price", "of", "all", "product", "with", "manufacturer", "code", "equal", "to", "2", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], 2.0, null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Compute", "the", "average", "price", "of", "all", "products", "with", "manufacturer", "code", "equal", "to", "2", "." ], "question_arg": [ [ "compute" ], [ "average" ], [ "price" ], [ "of" ], [ "all" ], [ "product" ], [ "with" ], [ "manufacturer" ], [ "code" ], [ "equal" ], [ "to" ], [ "2" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "compute", "JJ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "with", "IN" ], [ "manufacturer", "NN" ], [ "code", "NN" ], [ "equal", "JJ" ], [ "to", "TO" ], [ "2", "CD" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(6) T(1) Filter(2) A(0) C(7) T(1) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT avg(price) FROM products WHERE Manufacturer = 2", "query_toks": [ "SELECT", "avg", "(", "price", ")", "FROM", "products", "WHERE", "Manufacturer", "=", "2" ], "query_toks_no_value": [ "select", "avg", "(", "price", ")", "from", "products", "where", "manufacturer", "=", "value" ], "question": "What is the average price of products with manufacturer codes equal to 2?", "question_toks": [ "what", "is", "average", "price", "of", "product", "with", "manufacturer", "code", "equal", "to", "2", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], 2.0, null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "average", "price", "of", "products", "with", "manufacturer", "codes", "equal", "to", "2", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "price" ], [ "of" ], [ "product" ], [ "with" ], [ "manufacturer" ], [ "code" ], [ "equal" ], [ "to" ], [ "2" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "manufacturer", "NN" ], [ "code", "NN" ], [ "equal", "JJ" ], [ "to", "TO" ], [ "2", "CD" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(6) T(1) Filter(2) A(0) C(7) T(1) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT count(*) FROM products WHERE price >= 180", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "WHERE", "price", ">", "=", "180" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "where", "price", ">", "=", "value" ], "question": "Compute the number of products with a price larger than or equal to $180.", "question_toks": [ "compute", "number", "of", "product", "with", "a", "price", "larger", "than", "or", "equal", "to", "$", "180", "." ], "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 ], 180.0, null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Compute", "the", "number", "of", "products", "with", "a", "price", "larger", "than", "or", "equal", "to", "$", "180", "." ], "question_arg": [ [ "compute" ], [ "number" ], [ "of" ], [ "product" ], [ "with" ], [ "a" ], [ "price" ], [ "larger" ], [ "than" ], [ "or" ], [ "equal" ], [ "to" ], [ "$" ], [ "180" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "compute", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "price", "NN" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "or", "CC" ], [ "equal", "JJ" ], [ "to", "TO" ], [ "$", "$" ], [ "180", "CD" ], [ ".", "." ] ], "values": [ "180.000000", "180" ], "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(1)" }, { "db_id": "manufactory_1", "query": "SELECT count(*) FROM products WHERE price >= 180", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "WHERE", "price", ">", "=", "180" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "where", "price", ">", "=", "value" ], "question": "How many products have prices of at least 180?", "question_toks": [ "how", "many", "product", "have", "price", "of", "at", "least", "180", "?" ], "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 ], 180.0, null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "How", "many", "products", "have", "prices", "of", "at", "least", "180", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "product" ], [ "have" ], [ "price" ], [ "of" ], [ "at" ], [ "least" ], [ "180" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "product", "NN" ], [ "have", "VBP" ], [ "price", "NN" ], [ "of", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "180", "CD" ], [ "?", "." ] ], "values": [ "180" ], "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": "manufactory_1", "query": "SELECT name , price FROM products WHERE price >= 180 ORDER BY price DESC , name ASC", "query_toks": [ "SELECT", "name", ",", "price", "FROM", "products", "WHERE", "price", ">", "=", "180", "ORDER", "BY", "price", "DESC", ",", "name", "ASC" ], "query_toks_no_value": [ "select", "name", ",", "price", "from", "products", "where", "price", ">", "=", "value", "order", "by", "price", "desc", ",", "name", "asc" ], "question": "Select the name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name (in ascending order).", "question_toks": [ "select", "name", "and", "price", "of", "all", "product", "with", "a", "price", "larger", "than", "or", "equal", "to", "$", "180", ",", "and", "sort", "first", "by", "price", "(", "in", "descending", "order", ")", ",", "and", "then", "by", "name", "(", "in", "ascending", "order", ")", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ], [ 0, [ 0, 7, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 8, false ], null ], 180.0, null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Select", "the", "name", "and", "price", "of", "all", "products", "with", "a", "price", "larger", "than", "or", "equal", "to", "$", "180", ",", "and", "sort", "first", "by", "price", "(", "in", "descending", "order", ")", ",", "and", "then", "by", "name", "(", "in", "ascending", "order", ")", "." ], "question_arg": [ [ "select" ], [ "name" ], [ "and" ], [ "price" ], [ "of" ], [ "all" ], [ "product" ], [ "with" ], [ "a" ], [ "price" ], [ "larger" ], [ "than" ], [ "or" ], [ "equal" ], [ "to" ], [ "$" ], [ "180" ], [ "," ], [ "and" ], [ "sort" ], [ "first" ], [ "by" ], [ "price" ], [ "(" ], [ "in" ], [ "descending" ], [ "order" ], [ ")" ], [ "," ], [ "and" ], [ "then" ], [ "by" ], [ "name" ], [ "(" ], [ "in" ], [ "ascending" ], [ "order" ], [ ")" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "select", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "price", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "price", "NN" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "or", "CC" ], [ "equal", "JJ" ], [ "to", "TO" ], [ "$", "$" ], [ "180", "CD" ], [ ",", "," ], [ "and", "CC" ], [ "sort", "NN" ], [ "first", "RB" ], [ "by", "IN" ], [ "price", "NN" ], [ "(", "(" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ ")", ")" ], [ ",", "," ], [ "and", "CC" ], [ "then", "RB" ], [ "by", "IN" ], [ "name", "NN" ], [ "(", "(" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ")", ")" ], [ ".", "." ] ], "values": [ "1", "180.000000", "180" ], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(2) T(1) A(0) C(6) T(1) Filter(7) A(0) C(6) T(1) V(2) Order(1) A(0) C(6) T(1)" }, { "db_id": "manufactory_1", "query": "SELECT name , price FROM products WHERE price >= 180 ORDER BY price DESC , name ASC", "query_toks": [ "SELECT", "name", ",", "price", "FROM", "products", "WHERE", "price", ">", "=", "180", "ORDER", "BY", "price", "DESC", ",", "name", "ASC" ], "query_toks_no_value": [ "select", "name", ",", "price", "from", "products", "where", "price", ">", "=", "value", "order", "by", "price", "desc", ",", "name", "asc" ], "question": "What are the names and prices of products that cost at least 180, sorted by price decreasing and name ascending?", "question_toks": [ "what", "are", "name", "and", "price", "of", "product", "that", "cost", "at", "least", "180", ",", "sorted", "by", "price", "decreasing", "and", "name", "ascending", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ], [ 0, [ 0, 7, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 8, false ], null ], 180.0, null ] ] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "prices", "of", "products", "that", "cost", "at", "least", "180", ",", "sorted", "by", "price", "decreasing", "and", "name", "ascending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "price" ], [ "of" ], [ "product" ], [ "that" ], [ "cost" ], [ "at" ], [ "least" ], [ "180" ], [ "," ], [ "sorted" ], [ "by" ], [ "price" ], [ "decreasing" ], [ "and" ], [ "name" ], [ "ascending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "price", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "cost", "NN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "180", "CD" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "price", "NN" ], [ "decreasing", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "ascending", "NN" ], [ "?", "." ] ], "values": [ "180", "James" ], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(2) T(1) A(0) C(6) T(1) Filter(7) A(0) C(6) T(1) V(0) Order(1) A(0) C(6) T(1)" }, { "db_id": "manufactory_1", "query": "SELECT * FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code", "query_toks": [ "SELECT", "*", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1.manufacturer", "=", "T2.code" ], "query_toks_no_value": [ "select", "*", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code" ], "question": "Select all the data from the products and each product's manufacturer.", "question_toks": [ "select", "all", "data", "from", "product", "and", "each", "product", "'s", "manufacturer", "." ], "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, 0, 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": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Select", "all", "the", "data", "from", "the", "products", "and", "each", "product", "'s", "manufacturer", "." ], "question_arg": [ [ "select" ], [ "all" ], [ "data" ], [ "from" ], [ "product" ], [ "and" ], [ "each" ], [ "product" ], [ "'s" ], [ "manufacturer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "select", "VB" ], [ "all", "DT" ], [ "data", "NNS" ], [ "from", "IN" ], [ "product", "NN" ], [ "and", "CC" ], [ "each", "DT" ], [ "product", "NN" ], [ "'s", "POS" ], [ "manufacturer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT * FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code", "query_toks": [ "SELECT", "*", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1.manufacturer", "=", "T2.code" ], "query_toks_no_value": [ "select", "*", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code" ], "question": "What is all the product data, as well as each product's manufacturer?", "question_toks": [ "what", "is", "all", "product", "data", ",", "a", "well", "a", "each", "product", "'s", "manufacturer", "?" ], "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, 0, 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": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "is", "all", "the", "product", "data", ",", "as", "well", "as", "each", "product", "'s", "manufacturer", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "all" ], [ "product" ], [ "data" ], [ "," ], [ "a" ], [ "well" ], [ "a" ], [ "each" ], [ "product" ], [ "'s" ], [ "manufacturer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "all", "DT" ], [ "product", "NN" ], [ "data", "NNS" ], [ ",", "," ], [ "a", "DT" ], [ "well", "RB" ], [ "a", "DT" ], [ "each", "DT" ], [ "product", "NN" ], [ "'s", "POS" ], [ "manufacturer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(0) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT AVG(Price) , Manufacturer FROM Products GROUP BY Manufacturer", "query_toks": [ "SELECT", "AVG", "(", "Price", ")", ",", "Manufacturer", "FROM", "Products", "GROUP", "BY", "Manufacturer" ], "query_toks_no_value": [ "select", "avg", "(", "price", ")", ",", "manufacturer", "from", "products", "group", "by", "manufacturer" ], "question": "Select the average price of each manufacturer's products, showing only the manufacturer's code.", "question_toks": [ "select", "average", "price", "of", "each", "manufacturer", "'s", "product", ",", "showing", "only", "manufacturer", "'s", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Select", "the", "average", "price", "of", "each", "manufacturer", "'s", "products", ",", "showing", "only", "the", "manufacturer", "'s", "code", "." ], "question_arg": [ [ "select" ], [ "average" ], [ "price" ], [ "of" ], [ "each" ], [ "manufacturer" ], [ "'s" ], [ "product" ], [ "," ], [ "showing" ], [ "only" ], [ "manufacturer" ], [ "'s" ], [ "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "select", "JJ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "manufacturer", "NN" ], [ "'s", "POS" ], [ "product", "NN" ], [ ",", "," ], [ "showing", "VBG" ], [ "only", "RB" ], [ "manufacturer", "NN" ], [ "'s", "POS" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(6) T(1) A(0) C(7) T(1)" }, { "db_id": "manufactory_1", "query": "SELECT AVG(Price) , Manufacturer FROM Products GROUP BY Manufacturer", "query_toks": [ "SELECT", "AVG", "(", "Price", ")", ",", "Manufacturer", "FROM", "Products", "GROUP", "BY", "Manufacturer" ], "query_toks_no_value": [ "select", "avg", "(", "price", ")", ",", "manufacturer", "from", "products", "group", "by", "manufacturer" ], "question": "What are the average prices of products, grouped by manufacturer code?", "question_toks": [ "what", "are", "average", "price", "of", "product", ",", "grouped", "by", "manufacturer", "code", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "average", "prices", "of", "products", ",", "grouped", "by", "manufacturer", "code", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "price" ], [ "of" ], [ "product" ], [ "," ], [ "grouped" ], [ "by" ], [ "manufacturer" ], [ "code" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ ",", "," ], [ "grouped", "VBN" ], [ "by", "IN" ], [ "manufacturer", "NN" ], [ "code", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(6) T(1) A(0) C(7) T(1)" }, { "db_id": "manufactory_1", "query": "SELECT avg(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name", "query_toks": [ "SELECT", "avg", "(", "T1.Price", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1.manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name" ], "question": "Select the average price of each manufacturer's products, showing the manufacturer's name.", "question_toks": [ "select", "average", "price", "of", "each", "manufacturer", "'s", "product", ",", "showing", "manufacturer", "'s", "name", "." ], "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, 2, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Select", "the", "average", "price", "of", "each", "manufacturer", "'s", "products", ",", "showing", "the", "manufacturer", "'s", "name", "." ], "question_arg": [ [ "select" ], [ "average" ], [ "price" ], [ "of" ], [ "each" ], [ "manufacturer" ], [ "'s" ], [ "product" ], [ "," ], [ "showing" ], [ "manufacturer" ], [ "'s" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "select", "JJ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "manufacturer", "NN" ], [ "'s", "POS" ], [ "product", "NN" ], [ ",", "," ], [ "showing", "VBG" ], [ "manufacturer", "NN" ], [ "'s", "POS" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(6) T(1) A(0) C(2) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT avg(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name", "query_toks": [ "SELECT", "avg", "(", "T1.Price", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1.manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name" ], "question": "What are the average prices of products, grouped by manufacturer name?", "question_toks": [ "what", "are", "average", "price", "of", "product", ",", "grouped", "by", "manufacturer", "name", "?" ], "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, 2, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "average", "prices", "of", "products", ",", "grouped", "by", "manufacturer", "name", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "price" ], [ "of" ], [ "product" ], [ "," ], [ "grouped" ], [ "by" ], [ "manufacturer" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ ",", "," ], [ "grouped", "VBN" ], [ "by", "IN" ], [ "manufacturer", "NN" ], [ "name", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(6) T(1) A(0) C(2) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT avg(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name HAVING avg(T1.price) >= 150", "query_toks": [ "SELECT", "avg", "(", "T1.Price", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1.manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name", "HAVING", "avg", "(", "T1.price", ")", ">", "=", "150" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name", "having", "avg", "(", "t1", ".", "price", ")", ">", "=", "value" ], "question": "Select the names of manufacturer whose products have an average price higher than or equal to $150.", "question_toks": [ "select", "name", "of", "manufacturer", "whose", "product", "have", "an", "average", "price", "higher", "than", "or", "equal", "to", "$", "150", "." ], "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, 2, false ] ], "having": [ [ false, 5, [ 0, [ 5, 8, false ], null ], 150.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Select", "the", "names", "of", "manufacturer", "whose", "products", "have", "an", "average", "price", "higher", "than", "or", "equal", "to", "$", "150", "." ], "question_arg": [ [ "select" ], [ "name" ], [ "of" ], [ "manufacturer" ], [ "whose" ], [ "product" ], [ "have" ], [ "an" ], [ "average" ], [ "price" ], [ "higher" ], [ "than" ], [ "or" ], [ "equal" ], [ "to" ], [ "$" ], [ "150" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "select", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "manufacturer", "NN" ], [ "whose", "WP$" ], [ "product", "NN" ], [ "have", "VBP" ], [ "an", "DT" ], [ "average", "JJ" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "or", "CC" ], [ "equal", "JJ" ], [ "to", "TO" ], [ "$", "$" ], [ "150", "CD" ], [ ".", "." ] ], "values": [ "150.000000", "150", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(6) T(1) A(0) C(2) T(0) Filter(7) A(5) C(6) T(1) V(1)" }, { "db_id": "manufactory_1", "query": "SELECT avg(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name HAVING avg(T1.price) >= 150", "query_toks": [ "SELECT", "avg", "(", "T1.Price", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1.manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name", "HAVING", "avg", "(", "T1.price", ")", ">", "=", "150" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name", "having", "avg", "(", "t1", ".", "price", ")", ">", "=", "value" ], "question": "What are the names and average prices of products for manufacturers whose products cost on average 150 or more?", "question_toks": [ "what", "are", "name", "and", "average", "price", "of", "product", "for", "manufacturer", "whose", "product", "cost", "on", "average", "150", "or", "more", "?" ], "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, 2, false ] ], "having": [ [ false, 5, [ 0, [ 5, 8, false ], null ], 150.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "average", "prices", "of", "products", "for", "manufacturers", "whose", "products", "cost", "on", "average", "150", "or", "more", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "average" ], [ "price" ], [ "of" ], [ "product" ], [ "for" ], [ "manufacturer" ], [ "whose" ], [ "product" ], [ "cost" ], [ "on" ], [ "average" ], [ "150" ], [ "or" ], [ "more" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "for", "IN" ], [ "manufacturer", "NN" ], [ "whose", "WP$" ], [ "product", "NN" ], [ "cost", "NN" ], [ "on", "IN" ], [ "average", "JJ" ], [ "150", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "?", "." ] ], "values": [ "150", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(6) T(1) A(0) C(2) T(0) Filter(7) A(5) C(6) T(1) V(0)" }, { "db_id": "manufactory_1", "query": "SELECT name , price FROM Products ORDER BY price ASC LIMIT 1", "query_toks": [ "SELECT", "name", ",", "price", "FROM", "Products", "ORDER", "BY", "price", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "price", "from", "products", "order", "by", "price", "asc", "limit", "value" ], "question": "Select the name and price of the cheapest product.", "question_toks": [ "select", "name", "and", "price", "of", "cheapest", "product", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Select", "the", "name", "and", "price", "of", "the", "cheapest", "product", "." ], "question_arg": [ [ "select" ], [ "name" ], [ "and" ], [ "price" ], [ "of" ], [ "cheapest" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "select", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "price", "NN" ], [ "of", "IN" ], [ "cheapest", "JJ" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(1) A(0) C(6) T(1) Sup(1) A(0) C(6) T(1)" }, { "db_id": "manufactory_1", "query": "SELECT name , price FROM Products ORDER BY price ASC LIMIT 1", "query_toks": [ "SELECT", "name", ",", "price", "FROM", "Products", "ORDER", "BY", "price", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "price", "from", "products", "order", "by", "price", "asc", "limit", "value" ], "question": "What is the name and price of the cheapest product?", "question_toks": [ "what", "is", "name", "and", "price", "of", "cheapest", "product", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "price", "of", "the", "cheapest", "product", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "price" ], [ "of" ], [ "cheapest" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "price", "NN" ], [ "of", "IN" ], [ "cheapest", "JJS" ], [ "product", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(1) A(0) C(6) T(1) Sup(1) A(0) C(6) T(1)" }, { "db_id": "manufactory_1", "query": "SELECT T1.Name , max(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name", "query_toks": [ "SELECT", "T1.Name", ",", "max", "(", "T1.Price", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1.manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "max", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name" ], "question": "Select the name of each manufacturer along with the name and price of its most expensive product.", "question_toks": [ "select", "name", "of", "each", "manufacturer", "along", "with", "name", "and", "price", "of", "it", "most", "expensive", "product", "." ], "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, 2, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 1, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Select", "the", "name", "of", "each", "manufacturer", "along", "with", "the", "name", "and", "price", "of", "its", "most", "expensive", "product", "." ], "question_arg": [ [ "select" ], [ "name" ], [ "of" ], [ "each" ], [ "manufacturer" ], [ "along" ], [ "with" ], [ "name" ], [ "and" ], [ "price" ], [ "of" ], [ "it" ], [ "most" ], [ "expensive" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "select", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "manufacturer", "NN" ], [ "along", "IN" ], [ "with", "IN" ], [ "name", "NN" ], [ "and", "CC" ], [ "price", "NN" ], [ "of", "IN" ], [ "it", "PRP" ], [ "most", "RBS" ], [ "expensive", "JJ" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(1) A(1) C(6) T(1) A(0) C(2) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT T1.Name , max(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name", "query_toks": [ "SELECT", "T1.Name", ",", "max", "(", "T1.Price", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1.manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "max", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name" ], "question": "For each manufacturer name, what are the names and prices of their most expensive product?", "question_toks": [ "for", "each", "manufacturer", "name", ",", "what", "are", "name", "and", "price", "of", "their", "most", "expensive", "product", "?" ], "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, 2, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 1, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "For", "each", "manufacturer", "name", ",", "what", "are", "the", "names", "and", "prices", "of", "their", "most", "expensive", "product", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "manufacturer" ], [ "name" ], [ "," ], [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "price" ], [ "of" ], [ "their" ], [ "most" ], [ "expensive" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "manufacturer", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "price", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "most", "RBS" ], [ "expensive", "JJ" ], [ "product", "NN" ], [ "?", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(1) A(1) C(6) T(1) A(0) C(2) T(0)" }, { "db_id": "manufactory_1", "query": "SELECT code , name , min(price) FROM products GROUP BY name", "query_toks": [ "SELECT", "code", ",", "name", ",", "min", "(", "price", ")", "FROM", "products", "GROUP", "BY", "name" ], "query_toks_no_value": [ "select", "code", ",", "name", ",", "min", "(", "price", ")", "from", "products", "group", "by", "name" ], "question": "Select the code of the product that is cheapest in each product category.", "question_toks": [ "select", "code", "of", "product", "that", "is", "cheapest", "in", "each", "product", "category", "." ], "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, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 2, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Select", "the", "code", "of", "the", "product", "that", "is", "cheapest", "in", "each", "product", "category", "." ], "question_arg": [ [ "select" ], [ "code" ], [ "of" ], [ "product" ], [ "that" ], [ "is" ], [ "cheapest" ], [ "in" ], [ "each" ], [ "product" ], [ "category" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "select", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "cheapest", "VBN" ], [ "in", "IN" ], [ "each", "DT" ], [ "product", "NN" ], [ "category", "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(2) C(6) T(1)" }, { "db_id": "manufactory_1", "query": "SELECT code , name , min(price) FROM products GROUP BY name", "query_toks": [ "SELECT", "code", ",", "name", ",", "min", "(", "price", ")", "FROM", "products", "GROUP", "BY", "name" ], "query_toks_no_value": [ "select", "code", ",", "name", ",", "min", "(", "price", ")", "from", "products", "group", "by", "name" ], "question": "What are the codes and names of the cheapest products in each category?", "question_toks": [ "what", "are", "code", "and", "name", "of", "cheapest", "product", "in", "each", "category", "?" ], "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, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 2, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "code", "name", "headquarter", "founder", "revenue", "code", "name", "price", "manufacturer" ], "table_names": [ "manufacturers", "products" ], "col_set": [ "*", "code", "name", "headquarter", "founder", "revenue", "price", "manufacturer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "9": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "codes", "and", "names", "of", "the", "cheapest", "products", "in", "each", "category", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "code" ], [ "and" ], [ "name" ], [ "of" ], [ "cheapest" ], [ "product" ], [ "in" ], [ "each" ], [ "category" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "code", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "cheapest", "JJS" ], [ "product", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "category", "NN" ], [ "?", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(1) T(1) A(0) C(2) T(1) A(2) C(6) T(1)" }, { "db_id": "tracking_software_problems", "query": "SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1", "query_toks": [ "SELECT", "problem_log_id", "FROM", "problem_log", "ORDER", "BY", "log_entry_date", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "problem_log_id", "from", "problem_log", "order", "by", "log_entry_date", "desc", "limit", "value" ], "question": "What is the id of the problem log that is created most recently?", "question_toks": [ "what", "is", "id", "of", "problem", "log", "that", "is", "created", "most", "recently", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "problem", "log", "that", "is", "created", "most", "recently", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "problem", "log" ], [ "that" ], [ "is" ], [ "created" ], [ "most" ], [ "recently" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "problem", "NN" ], [ "log", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "created", "VBN" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "?", "." ] ], "values": [ "blog" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(3) T(1) Sup(0) A(0) C(7) T(1)" }, { "db_id": "tracking_software_problems", "query": "SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1", "query_toks": [ "SELECT", "problem_log_id", "FROM", "problem_log", "ORDER", "BY", "log_entry_date", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "problem_log_id", "from", "problem_log", "order", "by", "log_entry_date", "desc", "limit", "value" ], "question": "Which problem log was created most recently? Give me the log id.", "question_toks": [ "which", "problem", "log", "wa", "created", "most", "recently", "?", "give", "me", "log", "id", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Which", "problem", "log", "was", "created", "most", "recently", "?", "Give", "me", "the", "log", "id", "." ], "question_arg": [ [ "which" ], [ "problem", "log" ], [ "wa" ], [ "created" ], [ "most" ], [ "recently" ], [ "?" ], [ "give" ], [ "me" ], [ "problem", "log", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "problem", "NN" ], [ "log", "NN" ], [ "wa", "NN" ], [ "created", "VBD" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "log", "JJ" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "blog" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(3) T(1) Sup(0) A(0) C(7) T(1)" }, { "db_id": "tracking_software_problems", "query": "SELECT problem_log_id , problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1", "query_toks": [ "SELECT", "problem_log_id", ",", "problem_id", "FROM", "problem_log", "ORDER", "BY", "log_entry_date", "LIMIT", "1" ], "query_toks_no_value": [ "select", "problem_log_id", ",", "problem_id", "from", "problem_log", "order", "by", "log_entry_date", "limit", "value" ], "question": "What is the oldest log id and its corresponding problem id?", "question_toks": [ "what", "is", "oldest", "log", "id", "and", "it", "corresponding", "problem", "id", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "What", "is", "the", "oldest", "log", "id", "and", "its", "corresponding", "problem", "id", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "oldest" ], [ "problem", "log", "id" ], [ "and" ], [ "it" ], [ "corresponding" ], [ "problem", "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "oldest", "JJS" ], [ "log", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "it", "PRP" ], [ "corresponding", "VBG" ], [ "problem", "NN" ], [ "id", "NN" ], [ "?", "." ] ], "values": [ "blog" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(3) T(1) A(0) C(5) T(1) Sup(1) A(0) C(7) T(1)" }, { "db_id": "tracking_software_problems", "query": "SELECT problem_log_id , problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1", "query_toks": [ "SELECT", "problem_log_id", ",", "problem_id", "FROM", "problem_log", "ORDER", "BY", "log_entry_date", "LIMIT", "1" ], "query_toks_no_value": [ "select", "problem_log_id", ",", "problem_id", "from", "problem_log", "order", "by", "log_entry_date", "limit", "value" ], "question": "Find the oldest log id and its corresponding problem id.", "question_toks": [ "find", "oldest", "log", "id", "and", "it", "corresponding", "problem", "id", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Find", "the", "oldest", "log", "id", "and", "its", "corresponding", "problem", "id", "." ], "question_arg": [ [ "find" ], [ "oldest" ], [ "problem", "log", "id" ], [ "and" ], [ "it" ], [ "corresponding" ], [ "problem", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "oldest", "JJS" ], [ "log", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "it", "PRP" ], [ "corresponding", "VBG" ], [ "problem", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "blog" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(3) T(1) A(0) C(5) T(1) Sup(1) A(0) C(7) T(1)" }, { "db_id": "tracking_software_problems", "query": "SELECT problem_log_id , log_entry_date FROM problem_log WHERE problem_id = 10", "query_toks": [ "SELECT", "problem_log_id", ",", "log_entry_date", "FROM", "problem_log", "WHERE", "problem_id", "=", "10" ], "query_toks_no_value": [ "select", "problem_log_id", ",", "log_entry_date", "from", "problem_log", "where", "problem_id", "=", "value" ], "question": "Find all the ids and dates of the logs for the problem whose id is 10.", "question_toks": [ "find", "all", "id", "and", "date", "of", "log", "for", "problem", "whose", "id", "is", "10", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], 10.0, null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Find", "all", "the", "ids", "and", "dates", "of", "the", "logs", "for", "the", "problem", "whose", "id", "is", "10", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "id" ], [ "and" ], [ "date" ], [ "of" ], [ "log" ], [ "for" ], [ "problem" ], [ "whose" ], [ "id" ], [ "is" ], [ "10" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "id", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "log", "NN" ], [ "for", "IN" ], [ "problem", "NN" ], [ "whose", "WP$" ], [ "id", "NN" ], [ "is", "VBZ" ], [ "10", "CD" ], [ ".", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(0) C(7) T(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "tracking_software_problems", "query": "SELECT problem_log_id , log_entry_date FROM problem_log WHERE problem_id = 10", "query_toks": [ "SELECT", "problem_log_id", ",", "log_entry_date", "FROM", "problem_log", "WHERE", "problem_id", "=", "10" ], "query_toks_no_value": [ "select", "problem_log_id", ",", "log_entry_date", "from", "problem_log", "where", "problem_id", "=", "value" ], "question": "For the problem with id 10, return the ids and dates of its problem logs.", "question_toks": [ "for", "problem", "with", "id", "10", ",", "return", "id", "and", "date", "of", "it", "problem", "log", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], 10.0, null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "For", "the", "problem", "with", "id", "10", ",", "return", "the", "ids", "and", "dates", "of", "its", "problem", "logs", "." ], "question_arg": [ [ "for" ], [ "problem" ], [ "with" ], [ "id" ], [ "10" ], [ "," ], [ "return" ], [ "id" ], [ "and" ], [ "date" ], [ "of" ], [ "it" ], [ "problem", "log" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "problem", "NN" ], [ "with", "IN" ], [ "id", "JJ" ], [ "10", "CD" ], [ ",", "," ], [ "return", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "it", "PRP" ], [ "problem", "NN" ], [ "log", "NN" ], [ ".", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(0) C(7) T(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "tracking_software_problems", "query": "SELECT problem_log_id , log_entry_description FROM problem_log", "query_toks": [ "SELECT", "problem_log_id", ",", "log_entry_description", "FROM", "problem_log" ], "query_toks_no_value": [ "select", "problem_log_id", ",", "log_entry_description", "from", "problem_log" ], "question": "List all the log ids and their descriptions from the problem logs.", "question_toks": [ "list", "all", "log", "id", "and", "their", "description", "from", "problem", "log", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "List", "all", "the", "log", "ids", "and", "their", "descriptions", "from", "the", "problem", "logs", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "problem", "log", "id" ], [ "and" ], [ "their" ], [ "description" ], [ "from" ], [ "problem", "log" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "log", "VBP" ], [ "id", "NNS" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "description", "NN" ], [ "from", "IN" ], [ "problem", "NN" ], [ "log", "NN" ], [ ".", "." ] ], "values": [ "blog" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(1) A(0) C(8) T(1)" }, { "db_id": "tracking_software_problems", "query": "SELECT problem_log_id , log_entry_description FROM problem_log", "query_toks": [ "SELECT", "problem_log_id", ",", "log_entry_description", "FROM", "problem_log" ], "query_toks_no_value": [ "select", "problem_log_id", ",", "log_entry_description", "from", "problem_log" ], "question": "What are the log id and entry description of each problem?", "question_toks": [ "what", "are", "log", "id", "and", "entry", "description", "of", "each", "problem", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "log", "id", "and", "entry", "description", "of", "each", "problem", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "problem", "log", "id" ], [ "and" ], [ "log", "entry", "description" ], [ "of" ], [ "each" ], [ "problem" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "log", "JJ" ], [ "id", "NN" ], [ "and", "CC" ], [ "entry", "NN" ], [ "description", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "problem", "NN" ], [ "?", "." ] ], "values": [ "blog" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(1) A(0) C(8) T(1)" }, { "db_id": "tracking_software_problems", "query": "SELECT DISTINCT staff_first_name , staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1", "query_toks": [ "SELECT", "DISTINCT", "staff_first_name", ",", "staff_last_name", "FROM", "staff", "AS", "T1", "JOIN", "problem_log", "AS", "T2", "ON", "T1.staff_id", "=", "T2.assigned_to_staff_id", "WHERE", "T2.problem_id", "=", "1" ], "query_toks_no_value": [ "select", "distinct", "staff_first_name", ",", "staff_last_name", "from", "staff", "as", "t1", "join", "problem_log", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "assigned_to_staff_id", "where", "t2", ".", "problem_id", "=", "value" ], "question": "List the first and last names of all distinct staff members who are assigned to the problem whose id is 1.", "question_toks": [ "list", "first", "and", "last", "name", "of", "all", "distinct", "staff", "member", "who", "are", "assigned", "to", "problem", "whose", "id", "is", "1", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], 1.0, null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "List", "the", "first", "and", "last", "names", "of", "all", "distinct", "staff", "members", "who", "are", "assigned", "to", "the", "problem", "whose", "id", "is", "1", "." ], "question_arg": [ [ "list" ], [ "first" ], [ "and" ], [ "staff", "last", "name" ], [ "of" ], [ "all" ], [ "distinct" ], [ "staff" ], [ "member" ], [ "who" ], [ "are" ], [ "assigned" ], [ "to" ], [ "problem" ], [ "whose" ], [ "id" ], [ "is" ], [ "1" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "staff", "NN" ], [ "member", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "problem", "NN" ], [ "whose", "WP$" ], [ "id", "NN" ], [ "is", "VBZ" ], [ "1", "CD" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(16) T(4) A(0) C(17) T(4) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "tracking_software_problems", "query": "SELECT DISTINCT staff_first_name , staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1", "query_toks": [ "SELECT", "DISTINCT", "staff_first_name", ",", "staff_last_name", "FROM", "staff", "AS", "T1", "JOIN", "problem_log", "AS", "T2", "ON", "T1.staff_id", "=", "T2.assigned_to_staff_id", "WHERE", "T2.problem_id", "=", "1" ], "query_toks_no_value": [ "select", "distinct", "staff_first_name", ",", "staff_last_name", "from", "staff", "as", "t1", "join", "problem_log", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "assigned_to_staff_id", "where", "t2", ".", "problem_id", "=", "value" ], "question": "Which staff members are assigned to the problem with id 1? Give me their first and last names.", "question_toks": [ "which", "staff", "member", "are", "assigned", "to", "problem", "with", "id", "1", "?", "give", "me", "their", "first", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], 1.0, null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Which", "staff", "members", "are", "assigned", "to", "the", "problem", "with", "id", "1", "?", "Give", "me", "their", "first", "and", "last", "names", "." ], "question_arg": [ [ "which" ], [ "staff" ], [ "member" ], [ "are" ], [ "assigned" ], [ "to" ], [ "problem" ], [ "with" ], [ "id" ], [ "1" ], [ "?" ], [ "give" ], [ "me" ], [ "their" ], [ "first" ], [ "and" ], [ "staff", "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "staff", "NN" ], [ "member", "NN" ], [ "are", "VBP" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "problem", "NN" ], [ "with", "IN" ], [ "id", "NN" ], [ "1", "CD" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(16) T(4) A(0) C(17) T(4) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "tracking_software_problems", "query": "SELECT DISTINCT T2.problem_id , T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = \"Rylan\" AND T1.staff_last_name = \"Homenick\"", "query_toks": [ "SELECT", "DISTINCT", "T2.problem_id", ",", "T2.problem_log_id", "FROM", "staff", "AS", "T1", "JOIN", "problem_log", "AS", "T2", "ON", "T1.staff_id", "=", "T2.assigned_to_staff_id", "WHERE", "T1.staff_first_name", "=", "``", "Rylan", "''", "AND", "T1.staff_last_name", "=", "``", "Homenick", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "problem_id", ",", "t2", ".", "problem_log_id", "from", "staff", "as", "t1", "join", "problem_log", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "assigned_to_staff_id", "where", "t1", ".", "staff_first_name", "=", "value", "and", "t1", ".", "staff_last_name", "=", "value" ], "question": "List the problem id and log id which are assigned to the staff named Rylan Homenick.", "question_toks": [ "list", "problem", "id", "and", "log", "id", "which", "are", "assigned", "to", "staff", "named", "rylan", "homenick", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Rylan\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Homenick\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "List", "the", "problem", "id", "and", "log", "id", "which", "are", "assigned", "to", "the", "staff", "named", "Rylan", "Homenick", "." ], "question_arg": [ [ "list" ], [ "problem", "id" ], [ "and" ], [ "problem", "log", "id" ], [ "which" ], [ "are" ], [ "assigned" ], [ "to" ], [ "staff" ], [ "named" ], [ "rylan" ], [ "homenick" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "problem", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "log", "NN" ], [ "id", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "staff", "NN" ], [ "named", "VBN" ], [ "rylan", "NN" ], [ "homenick", "NN" ], [ ".", "." ] ], "values": [ "Homenick", "blog", "Rylan" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(5) T(1) A(0) C(3) T(1) Filter(0) Filter(2) A(0) C(16) T(4) V(2) Filter(2) A(0) C(17) T(4) V(0)" }, { "db_id": "tracking_software_problems", "query": "SELECT DISTINCT T2.problem_id , T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = \"Rylan\" AND T1.staff_last_name = \"Homenick\"", "query_toks": [ "SELECT", "DISTINCT", "T2.problem_id", ",", "T2.problem_log_id", "FROM", "staff", "AS", "T1", "JOIN", "problem_log", "AS", "T2", "ON", "T1.staff_id", "=", "T2.assigned_to_staff_id", "WHERE", "T1.staff_first_name", "=", "``", "Rylan", "''", "AND", "T1.staff_last_name", "=", "``", "Homenick", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "problem_id", ",", "t2", ".", "problem_log_id", "from", "staff", "as", "t1", "join", "problem_log", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "assigned_to_staff_id", "where", "t1", ".", "staff_first_name", "=", "value", "and", "t1", ".", "staff_last_name", "=", "value" ], "question": "Which problem id and log id are assigned to the staff named Rylan Homenick?", "question_toks": [ "which", "problem", "id", "and", "log", "id", "are", "assigned", "to", "staff", "named", "rylan", "homenick", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Rylan\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Homenick\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Which", "problem", "id", "and", "log", "id", "are", "assigned", "to", "the", "staff", "named", "Rylan", "Homenick", "?" ], "question_arg": [ [ "which" ], [ "problem", "id" ], [ "and" ], [ "problem", "log", "id" ], [ "are" ], [ "assigned" ], [ "to" ], [ "staff" ], [ "named" ], [ "rylan" ], [ "homenick" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "problem", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "log", "NN" ], [ "id", "NNS" ], [ "are", "VBP" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "staff", "NN" ], [ "named", "VBN" ], [ "rylan", "NN" ], [ "homenick", "NN" ], [ "?", "." ] ], "values": [ "Homenick", "blog", "Rylan" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(5) T(1) A(0) C(3) T(1) Filter(0) Filter(2) A(0) C(16) T(4) V(2) Filter(2) A(0) C(17) T(4) V(0)" }, { "db_id": "tracking_software_problems", "query": "SELECT count(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = \"voluptatem\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "product", "AS", "T1", "JOIN", "problems", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T1.product_name", "=", "``", "voluptatem", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "product", "as", "t1", "join", "problems", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t1", ".", "product_name", "=", "value" ], "question": "How many problems are there for product voluptatem?", "question_toks": [ "how", "many", "problem", "are", "there", "for", "product", "voluptatem", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"voluptatem\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "How", "many", "problems", "are", "there", "for", "product", "voluptatem", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "problem" ], [ "are" ], [ "there" ], [ "for" ], [ "product" ], [ "voluptatem" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "problem", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "for", "IN" ], [ "product", "NN" ], [ "voluptatem", "NN" ], [ "?", "." ] ], "values": [ "voluptatem" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(13) T(3) V(0)" }, { "db_id": "tracking_software_problems", "query": "SELECT count(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = \"voluptatem\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "product", "AS", "T1", "JOIN", "problems", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T1.product_name", "=", "``", "voluptatem", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "product", "as", "t1", "join", "problems", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t1", ".", "product_name", "=", "value" ], "question": "How many problems did the product called \"voluptatem\" have in record?", "question_toks": [ "how", "many", "problem", "did", "product", "called", "'", "voluptatem", "'", "have", "in", "record", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"voluptatem\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "How", "many", "problems", "did", "the", "product", "called", "``", "voluptatem", "''", "have", "in", "record", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "problem" ], [ "did" ], [ "product" ], [ "called" ], [ "'" ], [ "voluptatem" ], [ "'" ], [ "have" ], [ "in" ], [ "record" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "problem", "NN" ], [ "did", "VBD" ], [ "product", "NN" ], [ "called", "VBN" ], [ "'", "''" ], [ "voluptatem", "NN" ], [ "'", "''" ], [ "have", "VBP" ], [ "in", "IN" ], [ "record", "NN" ], [ "?", "." ] ], "values": [ "voluptatem" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(13) T(3) V(0)" }, { "db_id": "tracking_software_problems", "query": "SELECT count(*) , T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.product_name", "FROM", "product", "AS", "T1", "JOIN", "problems", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "GROUP", "BY", "T1.product_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "product_name", "from", "product", "as", "t1", "join", "problems", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t1", ".", "product_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "How many problems does the product with the most problems have? List the number of the problems and product name.", "question_toks": [ "how", "many", "problem", "doe", "product", "with", "most", "problem", "have", "?", "list", "number", "of", "problem", "and", "product", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "How", "many", "problems", "does", "the", "product", "with", "the", "most", "problems", "have", "?", "List", "the", "number", "of", "the", "problems", "and", "product", "name", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "problem" ], [ "doe" ], [ "product" ], [ "with" ], [ "most" ], [ "problem" ], [ "have" ], [ "?" ], [ "list" ], [ "number" ], [ "of" ], [ "problem" ], [ "and" ], [ "product", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "problem", "NN" ], [ "doe", "NNS" ], [ "product", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "problem", "NN" ], [ "have", "VBP" ], [ "?", "." ], [ "list", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "problem", "NN" ], [ "and", "CC" ], [ "product", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "game" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(3) C(0) T(5) A(0) C(13) T(3) Sup(0) A(3) C(0) T(5)" }, { "db_id": "tracking_software_problems", "query": "SELECT count(*) , T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.product_name", "FROM", "product", "AS", "T1", "JOIN", "problems", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "GROUP", "BY", "T1.product_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "product_name", "from", "product", "as", "t1", "join", "problems", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t1", ".", "product_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which product has the most problems? Give me the number of problems and the product name.", "question_toks": [ "which", "product", "ha", "most", "problem", "?", "give", "me", "number", "of", "problem", "and", "product", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Which", "product", "has", "the", "most", "problems", "?", "Give", "me", "the", "number", "of", "problems", "and", "the", "product", "name", "." ], "question_arg": [ [ "which" ], [ "product" ], [ "ha" ], [ "most" ], [ "problem" ], [ "?" ], [ "give" ], [ "me" ], [ "number" ], [ "of" ], [ "problem" ], [ "and" ], [ "product", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "product", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "problem", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "number", "NN" ], [ "of", "IN" ], [ "problem", "NN" ], [ "and", "CC" ], [ "product", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "game" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(3) C(0) T(5) A(0) C(13) T(3) Sup(0) A(3) C(0) T(5)" }, { "db_id": "tracking_software_problems", "query": "SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Christop\"", "query_toks": [ "SELECT", "T1.problem_description", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.reported_by_staff_id", "=", "T2.staff_id", "WHERE", "T2.staff_first_name", "=", "``", "Christop", "''" ], "query_toks_no_value": [ "select", "t1", ".", "problem_description", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "staff_first_name", "=", "value" ], "question": "Give me a list of descriptions of the problems that are reported by the staff whose first name is Christop.", "question_toks": [ "give", "me", "a", "list", "of", "description", "of", "problem", "that", "are", "reported", "by", "staff", "whose", "first", "name", "is", "christop", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Christop\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Give", "me", "a", "list", "of", "descriptions", "of", "the", "problems", "that", "are", "reported", "by", "the", "staff", "whose", "first", "name", "is", "Christop", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "a" ], [ "list" ], [ "of" ], [ "description" ], [ "of" ], [ "problem" ], [ "that" ], [ "are" ], [ "reported" ], [ "by" ], [ "staff" ], [ "whose" ], [ "staff", "first", "name" ], [ "is" ], [ "christop" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "a", "DT" ], [ "list", "NN" ], [ "of", "IN" ], [ "description", "NN" ], [ "of", "IN" ], [ "problem", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "reported", "VBN" ], [ "by", "IN" ], [ "staff", "NN" ], [ "whose", "WP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "christop", "JJ" ], [ ".", "." ] ], "values": [ "game", "1", "Christop" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(5) Filter(2) A(0) C(16) T(4) V(2)" }, { "db_id": "tracking_software_problems", "query": "SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Christop\"", "query_toks": [ "SELECT", "T1.problem_description", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.reported_by_staff_id", "=", "T2.staff_id", "WHERE", "T2.staff_first_name", "=", "``", "Christop", "''" ], "query_toks_no_value": [ "select", "t1", ".", "problem_description", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "staff_first_name", "=", "value" ], "question": "Which problems are reported by the staff with first name \"Christop\"? Show the descriptions of the problems.", "question_toks": [ "which", "problem", "are", "reported", "by", "staff", "with", "first", "name", "'", "christop", "'", "?", "show", "description", "of", "problem", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Christop\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Which", "problems", "are", "reported", "by", "the", "staff", "with", "first", "name", "``", "Christop", "''", "?", "Show", "the", "descriptions", "of", "the", "problems", "." ], "question_arg": [ [ "which" ], [ "problem" ], [ "are" ], [ "reported" ], [ "by" ], [ "staff" ], [ "with" ], [ "staff", "first", "name" ], [ "'" ], [ "christop" ], [ "'" ], [ "?" ], [ "show" ], [ "description" ], [ "of" ], [ "problem" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "problem", "NN" ], [ "are", "VBP" ], [ "reported", "VBN" ], [ "by", "IN" ], [ "staff", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "'", "POS" ], [ "christop", "NN" ], [ "'", "''" ], [ "?", "." ], [ "show", "VBP" ], [ "description", "NN" ], [ "of", "IN" ], [ "problem", "NN" ], [ ".", "." ] ], "values": [ "game", "1", "Christop" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(5) Filter(2) A(0) C(16) T(4) V(2)" }, { "db_id": "tracking_software_problems", "query": "SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = \"Bosco\"", "query_toks": [ "SELECT", "T1.problem_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.reported_by_staff_id", "=", "T2.staff_id", "WHERE", "T2.staff_last_name", "=", "``", "Bosco", "''" ], "query_toks_no_value": [ "select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "staff_last_name", "=", "value" ], "question": "Find the ids of the problems that are reported by the staff whose last name is Bosco.", "question_toks": [ "find", "id", "of", "problem", "that", "are", "reported", "by", "staff", "whose", "last", "name", "is", "bosco", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Bosco\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Find", "the", "ids", "of", "the", "problems", "that", "are", "reported", "by", "the", "staff", "whose", "last", "name", "is", "Bosco", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "problem" ], [ "that" ], [ "are" ], [ "reported" ], [ "by" ], [ "staff" ], [ "whose" ], [ "staff", "last", "name" ], [ "is" ], [ "bosco" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "problem", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "reported", "VBN" ], [ "by", "IN" ], [ "staff", "NN" ], [ "whose", "WP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "bosco", "VBN" ], [ ".", "." ] ], "values": [ "game", "Bosco" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(5) Filter(2) A(0) C(17) T(4) V(1)" }, { "db_id": "tracking_software_problems", "query": "SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = \"Bosco\"", "query_toks": [ "SELECT", "T1.problem_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.reported_by_staff_id", "=", "T2.staff_id", "WHERE", "T2.staff_last_name", "=", "``", "Bosco", "''" ], "query_toks_no_value": [ "select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "staff_last_name", "=", "value" ], "question": "Which problems are reported by the staff with last name \"Bosco\"? Show the ids of the problems.", "question_toks": [ "which", "problem", "are", "reported", "by", "staff", "with", "last", "name", "'", "bosco", "'", "?", "show", "id", "of", "problem", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Bosco\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Which", "problems", "are", "reported", "by", "the", "staff", "with", "last", "name", "``", "Bosco", "''", "?", "Show", "the", "ids", "of", "the", "problems", "." ], "question_arg": [ [ "which" ], [ "problem" ], [ "are" ], [ "reported" ], [ "by" ], [ "staff" ], [ "with" ], [ "staff", "last", "name" ], [ "'" ], [ "bosco" ], [ "'" ], [ "?" ], [ "show" ], [ "id" ], [ "of" ], [ "problem" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "problem", "NN" ], [ "are", "VBP" ], [ "reported", "VBN" ], [ "by", "IN" ], [ "staff", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "bosco", "NN" ], [ "'", "''" ], [ "?", "." ], [ "show", "VBP" ], [ "id", "NN" ], [ "of", "IN" ], [ "problem", "NN" ], [ ".", "." ] ], "values": [ "game", "Bosco" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(5) Filter(2) A(0) C(17) T(4) V(1)" }, { "db_id": "tracking_software_problems", "query": "SELECT problem_id FROM problems WHERE date_problem_reported > \"1978-06-26\"", "query_toks": [ "SELECT", "problem_id", "FROM", "problems", "WHERE", "date_problem_reported", ">", "``", "1978-06-26", "''" ], "query_toks_no_value": [ "select", "problem_id", "from", "problems", "where", "date_problem_reported", ">", "value" ], "question": "What are the ids of the problems which are reported after 1978-06-26?", "question_toks": [ "what", "are", "id", "of", "problem", "which", "are", "reported", "after", "1978-06-26", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 25, false ], null ], "\"1978-06-26\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "problems", "which", "are", "reported", "after", "1978-06-26", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "problem" ], [ "which" ], [ "are" ], [ "reported" ], [ "after" ], [ "1978-06-26" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "problem", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "reported", "VBN" ], [ "after", "IN" ], [ "1978-06-26", "CD" ], [ "?", "." ] ], "values": [ "26", "1978", "1978-06-26", "6" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(5) Filter(5) A(0) C(21) T(5) V(2)" }, { "db_id": "tracking_software_problems", "query": "SELECT problem_id FROM problems WHERE date_problem_reported > \"1978-06-26\"", "query_toks": [ "SELECT", "problem_id", "FROM", "problems", "WHERE", "date_problem_reported", ">", "``", "1978-06-26", "''" ], "query_toks_no_value": [ "select", "problem_id", "from", "problems", "where", "date_problem_reported", ">", "value" ], "question": "Find the ids of the problems reported after 1978-06-26.", "question_toks": [ "find", "id", "of", "problem", "reported", "after", "1978-06-26", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 25, false ], null ], "\"1978-06-26\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Find", "the", "ids", "of", "the", "problems", "reported", "after", "1978-06-26", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "problem" ], [ "reported" ], [ "after" ], [ "1978-06-26" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "problem", "NN" ], [ "reported", "VBN" ], [ "after", "IN" ], [ "1978-06-26", "JJ" ], [ ".", "." ] ], "values": [ "26", "1978", "1978-06-26", "6" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(5) Filter(5) A(0) C(21) T(5) V(2)" }, { "db_id": "tracking_software_problems", "query": "SELECT problem_id FROM problems WHERE date_problem_reported < \"1978-06-26\"", "query_toks": [ "SELECT", "problem_id", "FROM", "problems", "WHERE", "date_problem_reported", "<", "``", "1978-06-26", "''" ], "query_toks_no_value": [ "select", "problem_id", "from", "problems", "where", "date_problem_reported", "<", "value" ], "question": "What are the ids of the problems which are reported before 1978-06-26?", "question_toks": [ "what", "are", "id", "of", "problem", "which", "are", "reported", "before", "1978-06-26", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 25, false ], null ], "\"1978-06-26\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "problems", "which", "are", "reported", "before", "1978-06-26", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "problem" ], [ "which" ], [ "are" ], [ "reported" ], [ "before" ], [ "1978-06-26" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "problem", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "reported", "VBN" ], [ "before", "IN" ], [ "1978-06-26", "NNS" ], [ "?", "." ] ], "values": [ "26", "1978", "1978-06-26", "6" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(5) Filter(4) A(0) C(21) T(5) V(2)" }, { "db_id": "tracking_software_problems", "query": "SELECT problem_id FROM problems WHERE date_problem_reported < \"1978-06-26\"", "query_toks": [ "SELECT", "problem_id", "FROM", "problems", "WHERE", "date_problem_reported", "<", "``", "1978-06-26", "''" ], "query_toks_no_value": [ "select", "problem_id", "from", "problems", "where", "date_problem_reported", "<", "value" ], "question": "Which problems are reported before 1978-06-26? Give me the ids of the problems.", "question_toks": [ "which", "problem", "are", "reported", "before", "1978-06-26", "?", "give", "me", "id", "of", "problem", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 25, false ], null ], "\"1978-06-26\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Which", "problems", "are", "reported", "before", "1978-06-26", "?", "Give", "me", "the", "ids", "of", "the", "problems", "." ], "question_arg": [ [ "which" ], [ "problem" ], [ "are" ], [ "reported" ], [ "before" ], [ "1978-06-26" ], [ "?" ], [ "give" ], [ "me" ], [ "id" ], [ "of" ], [ "problem" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "problem", "NN" ], [ "are", "VBP" ], [ "reported", "VBN" ], [ "before", "IN" ], [ "1978-06-26", "JJ" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "id", "NN" ], [ "of", "IN" ], [ "problem", "NN" ], [ ".", "." ] ], "values": [ "26", "1978", "1978-06-26", "6" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(5) Filter(4) A(0) C(21) T(5) V(2)" }, { "db_id": "tracking_software_problems", "query": "SELECT count(*) , T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T2.product_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "GROUP", "BY", "T2.product_id" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t2", ".", "product_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t2", ".", "product_id" ], "question": "For each product which has problems, what are the number of problems and the product id?", "question_toks": [ "for", "each", "product", "which", "ha", "problem", ",", "what", "are", "number", "of", "problem", "and", "product", "id", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "For", "each", "product", "which", "has", "problems", ",", "what", "are", "the", "number", "of", "problems", "and", "the", "product", "id", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "product" ], [ "which" ], [ "ha" ], [ "problem" ], [ "," ], [ "what" ], [ "are" ], [ "number" ], [ "of" ], [ "problem" ], [ "and" ], [ "product", "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "product", "NN" ], [ "which", "WDT" ], [ "ha", "NN" ], [ "problem", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "are", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "problem", "NN" ], [ "and", "CC" ], [ "product", "NN" ], [ "id", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(5) A(0) C(12) T(3)" }, { "db_id": "tracking_software_problems", "query": "SELECT count(*) , T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T2.product_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "GROUP", "BY", "T2.product_id" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t2", ".", "product_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t2", ".", "product_id" ], "question": "For each product with some problems, list the count of problems and the product id.", "question_toks": [ "for", "each", "product", "with", "some", "problem", ",", "list", "count", "of", "problem", "and", "product", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "For", "each", "product", "with", "some", "problems", ",", "list", "the", "count", "of", "problems", "and", "the", "product", "id", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "product" ], [ "with" ], [ "some" ], [ "problem" ], [ "," ], [ "list" ], [ "count" ], [ "of" ], [ "problem" ], [ "and" ], [ "product", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "product", "NN" ], [ "with", "IN" ], [ "some", "DT" ], [ "problem", "NN" ], [ ",", "," ], [ "list", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "problem", "NN" ], [ "and", "CC" ], [ "product", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(5) A(0) C(12) T(3)" }, { "db_id": "tracking_software_problems", "query": "SELECT count(*) , T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > \"1986-11-13\" GROUP BY T2.product_id", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T2.product_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T1.date_problem_reported", ">", "``", "1986-11-13", "''", "GROUP", "BY", "T2.product_id" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t2", ".", "product_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t1", ".", "date_problem_reported", ">", "value", "group", "by", "t2", ".", "product_id" ], "question": "For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?", "question_toks": [ "for", "each", "product", "that", "ha", "problem", ",", "find", "number", "of", "problem", "reported", "after", "1986-11-13", "and", "product", "id", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 25, false ], null ], "\"1986-11-13\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "For", "each", "product", "that", "has", "problems", ",", "find", "the", "number", "of", "problems", "reported", "after", "1986-11-13", "and", "the", "product", "id", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "product" ], [ "that" ], [ "ha" ], [ "problem" ], [ "," ], [ "find" ], [ "number" ], [ "of" ], [ "problem" ], [ "reported" ], [ "after" ], [ "1986-11-13" ], [ "and" ], [ "product", "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "product", "NN" ], [ "that", "WDT" ], [ "ha", "NN" ], [ "problem", "NN" ], [ ",", "," ], [ "find", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "problem", "NN" ], [ "reported", "VBN" ], [ "after", "IN" ], [ "1986-11-13", "JJ" ], [ "and", "CC" ], [ "product", "NN" ], [ "id", "NN" ], [ "?", "." ] ], "values": [ "11", "1986-11-13", "1986", "13" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(3) A(0) C(12) T(3) Filter(5) A(0) C(21) T(5) V(1)" }, { "db_id": "tracking_software_problems", "query": "SELECT count(*) , T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > \"1986-11-13\" GROUP BY T2.product_id", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T2.product_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T1.date_problem_reported", ">", "``", "1986-11-13", "''", "GROUP", "BY", "T2.product_id" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t2", ".", "product_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t1", ".", "date_problem_reported", ">", "value", "group", "by", "t2", ".", "product_id" ], "question": "What are the products that have problems reported after 1986-11-13? Give me the product id and the count of problems reported after 1986-11-13.", "question_toks": [ "what", "are", "product", "that", "have", "problem", "reported", "after", "1986-11-13", "?", "give", "me", "product", "id", "and", "count", "of", "problem", "reported", "after", "1986-11-13", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 25, false ], null ], "\"1986-11-13\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "products", "that", "have", "problems", "reported", "after", "1986-11-13", "?", "Give", "me", "the", "product", "id", "and", "the", "count", "of", "problems", "reported", "after", "1986-11-13", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "product" ], [ "that" ], [ "have" ], [ "problem" ], [ "reported" ], [ "after" ], [ "1986-11-13" ], [ "?" ], [ "give" ], [ "me" ], [ "product", "id" ], [ "and" ], [ "count" ], [ "of" ], [ "problem" ], [ "reported" ], [ "after" ], [ "1986-11-13" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "product", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "problem", "NN" ], [ "reported", "VBN" ], [ "after", "IN" ], [ "1986-11-13", "JJ" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "product", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "count", "NN" ], [ "of", "IN" ], [ "problem", "NN" ], [ "reported", "VBN" ], [ "after", "IN" ], [ "1986-11-13", "JJ" ], [ ".", "." ] ], "values": [ "11", "1986-11-13", "1986", "13" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(3) A(0) C(12) T(3) Filter(5) A(0) C(21) T(5) V(1)" }, { "db_id": "tracking_software_problems", "query": "SELECT DISTINCT product_name FROM product ORDER BY product_name", "query_toks": [ "SELECT", "DISTINCT", "product_name", "FROM", "product", "ORDER", "BY", "product_name" ], "query_toks_no_value": [ "select", "distinct", "product_name", "from", "product", "order", "by", "product_name" ], "question": "List the names of all the distinct product names in alphabetical order?", "question_toks": [ "list", "name", "of", "all", "distinct", "product", "name", "in", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "the", "distinct", "product", "names", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "distinct" ], [ "product", "name" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "product", "NN" ], [ "name", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(13) T(3) Order(1) A(0) C(13) T(3)" }, { "db_id": "tracking_software_problems", "query": "SELECT DISTINCT product_name FROM product ORDER BY product_name", "query_toks": [ "SELECT", "DISTINCT", "product_name", "FROM", "product", "ORDER", "BY", "product_name" ], "query_toks_no_value": [ "select", "distinct", "product_name", "from", "product", "order", "by", "product_name" ], "question": "Sort all the distinct product names in alphabetical order.", "question_toks": [ "sort", "all", "distinct", "product", "name", "in", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Sort", "all", "the", "distinct", "product", "names", "in", "alphabetical", "order", "." ], "question_arg": [ [ "sort" ], [ "all" ], [ "distinct" ], [ "product", "name" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "sort", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "product", "NN" ], [ "name", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(13) T(3) Order(1) A(0) C(13) T(3)" }, { "db_id": "tracking_software_problems", "query": "SELECT DISTINCT product_name FROM product ORDER BY product_id", "query_toks": [ "SELECT", "DISTINCT", "product_name", "FROM", "product", "ORDER", "BY", "product_id" ], "query_toks_no_value": [ "select", "distinct", "product_name", "from", "product", "order", "by", "product_id" ], "question": "List all the distinct product names ordered by product id?", "question_toks": [ "list", "all", "distinct", "product", "name", "ordered", "by", "product", "id", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "List", "all", "the", "distinct", "product", "names", "ordered", "by", "product", "id", "?" ], "question_arg": [ [ "list" ], [ "all" ], [ "distinct" ], [ "product", "name" ], [ "ordered" ], [ "by" ], [ "product", "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "product", "NN" ], [ "name", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "product", "NN" ], [ "id", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(13) T(3) Order(1) A(0) C(12) T(3)" }, { "db_id": "tracking_software_problems", "query": "SELECT DISTINCT product_name FROM product ORDER BY product_id", "query_toks": [ "SELECT", "DISTINCT", "product_name", "FROM", "product", "ORDER", "BY", "product_id" ], "query_toks_no_value": [ "select", "distinct", "product_name", "from", "product", "order", "by", "product_id" ], "question": "What is the list of distinct product names sorted by product id?", "question_toks": [ "what", "is", "list", "of", "distinct", "product", "name", "sorted", "by", "product", "id", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "What", "is", "the", "list", "of", "distinct", "product", "names", "sorted", "by", "product", "id", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "list" ], [ "of" ], [ "distinct" ], [ "product", "name" ], [ "sorted" ], [ "by" ], [ "product", "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "list", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "product", "NN" ], [ "name", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "product", "NN" ], [ "id", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(13) T(3) Order(1) A(0) C(12) T(3)" }, { "db_id": "tracking_software_problems", "query": "SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Dameon\" AND T2.staff_last_name = \"Frami\" UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Jolie\" AND T2.staff_last_name = \"Weber\"", "query_toks": [ "SELECT", "product_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.reported_by_staff_id", "=", "T2.staff_id", "WHERE", "T2.staff_first_name", "=", "``", "Dameon", "''", "AND", "T2.staff_last_name", "=", "``", "Frami", "''", "UNION", "SELECT", "product_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.reported_by_staff_id", "=", "T2.staff_id", "WHERE", "T2.staff_first_name", "=", "``", "Jolie", "''", "AND", "T2.staff_last_name", "=", "``", "Weber", "''" ], "query_toks_no_value": [ "select", "product_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "staff_first_name", "=", "value", "and", "t2", ".", "staff_last_name", "=", "value", "union", "select", "product_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "staff_first_name", "=", "value", "and", "t2", ".", "staff_last_name", "=", "value" ], "question": "What are the id of problems reported by the staff named Dameon Frami or Jolie Weber?", "question_toks": [ "what", "are", "id", "of", "problem", "reported", "by", "staff", "named", "dameon", "frami", "or", "jolie", "weber", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Jolie\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Weber\"", null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Dameon\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Frami\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "id", "of", "problems", "reported", "by", "the", "staff", "named", "Dameon", "Frami", "or", "Jolie", "Weber", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "problem" ], [ "reported" ], [ "by" ], [ "staff" ], [ "named" ], [ "dameon" ], [ "frami" ], [ "or" ], [ "jolie" ], [ "weber" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "problem", "NN" ], [ "reported", "VBN" ], [ "by", "IN" ], [ "staff", "NN" ], [ "named", "VBN" ], [ "dameon", "NN" ], [ "frami", "NN" ], [ "or", "CC" ], [ "jolie", "NN" ], [ "weber", "NN" ], [ "?", "." ] ], "values": [ "Weber", "Jolie", "Dameon", "Frami" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(12) T(5) Filter(0) Filter(2) A(0) C(16) T(4) V(2) Filter(2) A(0) C(17) T(4) V(3) Root(3) Sel(0) N(0) A(0) C(12) T(5) Filter(0) Filter(2) A(0) C(16) T(4) V(1) Filter(2) A(0) C(17) T(4) V(0)" }, { "db_id": "tracking_software_problems", "query": "SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Dameon\" AND T2.staff_last_name = \"Frami\" UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Jolie\" AND T2.staff_last_name = \"Weber\"", "query_toks": [ "SELECT", "product_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.reported_by_staff_id", "=", "T2.staff_id", "WHERE", "T2.staff_first_name", "=", "``", "Dameon", "''", "AND", "T2.staff_last_name", "=", "``", "Frami", "''", "UNION", "SELECT", "product_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.reported_by_staff_id", "=", "T2.staff_id", "WHERE", "T2.staff_first_name", "=", "``", "Jolie", "''", "AND", "T2.staff_last_name", "=", "``", "Weber", "''" ], "query_toks_no_value": [ "select", "product_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "staff_first_name", "=", "value", "and", "t2", ".", "staff_last_name", "=", "value", "union", "select", "product_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "staff_first_name", "=", "value", "and", "t2", ".", "staff_last_name", "=", "value" ], "question": "Which problems were reported by the staff named Dameon Frami or Jolie Weber? Give me the ids of the problems.", "question_toks": [ "which", "problem", "were", "reported", "by", "staff", "named", "dameon", "frami", "or", "jolie", "weber", "?", "give", "me", "id", "of", "problem", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Jolie\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Weber\"", null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Dameon\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Frami\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Which", "problems", "were", "reported", "by", "the", "staff", "named", "Dameon", "Frami", "or", "Jolie", "Weber", "?", "Give", "me", "the", "ids", "of", "the", "problems", "." ], "question_arg": [ [ "which" ], [ "problem" ], [ "were" ], [ "reported" ], [ "by" ], [ "staff" ], [ "named" ], [ "dameon" ], [ "frami" ], [ "or" ], [ "jolie" ], [ "weber" ], [ "?" ], [ "give" ], [ "me" ], [ "id" ], [ "of" ], [ "problem" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "problem", "NN" ], [ "were", "VBD" ], [ "reported", "VBN" ], [ "by", "IN" ], [ "staff", "NN" ], [ "named", "VBN" ], [ "dameon", "NN" ], [ "frami", "NN" ], [ "or", "CC" ], [ "jolie", "NN" ], [ "weber", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "id", "NN" ], [ "of", "IN" ], [ "problem", "NN" ], [ ".", "." ] ], "values": [ "Weber", "Jolie", "Dameon", "Frami" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(12) T(5) Filter(0) Filter(2) A(0) C(16) T(4) V(2) Filter(2) A(0) C(17) T(4) V(3) Root(3) Sel(0) N(0) A(0) C(12) T(5) Filter(0) Filter(2) A(0) C(16) T(4) V(1) Filter(2) A(0) C(17) T(4) V(0)" }, { "db_id": "tracking_software_problems", "query": "SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Christop\" AND T2.staff_last_name = \"Berge\" INTERSECT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Ashley\" AND T2.staff_last_name = \"Medhurst\"", "query_toks": [ "SELECT", "product_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.reported_by_staff_id", "=", "T2.staff_id", "WHERE", "T2.staff_first_name", "=", "``", "Christop", "''", "AND", "T2.staff_last_name", "=", "``", "Berge", "''", "INTERSECT", "SELECT", "product_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.closure_authorised_by_staff_id", "=", "T2.staff_id", "WHERE", "T2.staff_first_name", "=", "``", "Ashley", "''", "AND", "T2.staff_last_name", "=", "``", "Medhurst", "''" ], "query_toks_no_value": [ "select", "product_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "staff_first_name", "=", "value", "and", "t2", ".", "staff_last_name", "=", "value", "intersect", "select", "product_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "closure_authorised_by_staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "staff_first_name", "=", "value", "and", "t2", ".", "staff_last_name", "=", "value" ], "question": "What are the product ids for the problems reported by Christop Berge with closure authorised by Ashley Medhurst?", "question_toks": [ "what", "are", "product", "id", "for", "problem", "reported", "by", "christop", "berge", "with", "closure", "authorised", "by", "ashley", "medhurst", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Ashley\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Medhurst\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Christop\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Berge\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "product", "ids", "for", "the", "problems", "reported", "by", "Christop", "Berge", "with", "closure", "authorised", "by", "Ashley", "Medhurst", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "product", "id" ], [ "for" ], [ "problem" ], [ "reported" ], [ "by" ], [ "christop" ], [ "berge" ], [ "with" ], [ "closure" ], [ "authorised" ], [ "by" ], [ "ashley" ], [ "medhurst" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "product", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "problem", "NN" ], [ "reported", "VBN" ], [ "by", "IN" ], [ "christop", "JJ" ], [ "berge", "NN" ], [ "with", "IN" ], [ "closure", "NN" ], [ "authorised", "VBN" ], [ "by", "IN" ], [ "ashley", "NN" ], [ "medhurst", "NNS" ], [ "?", "." ] ], "values": [ "Berge", "Christop", "Medhurst", "Ashley" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(12) T(5) Filter(0) Filter(2) A(0) C(16) T(4) V(1) Filter(2) A(0) C(17) T(4) V(0) Root(3) Sel(0) N(0) A(0) C(12) T(5) Filter(0) Filter(2) A(0) C(16) T(4) V(3) Filter(2) A(0) C(17) T(4) V(2)" }, { "db_id": "tracking_software_problems", "query": "SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Christop\" AND T2.staff_last_name = \"Berge\" INTERSECT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Ashley\" AND T2.staff_last_name = \"Medhurst\"", "query_toks": [ "SELECT", "product_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.reported_by_staff_id", "=", "T2.staff_id", "WHERE", "T2.staff_first_name", "=", "``", "Christop", "''", "AND", "T2.staff_last_name", "=", "``", "Berge", "''", "INTERSECT", "SELECT", "product_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.closure_authorised_by_staff_id", "=", "T2.staff_id", "WHERE", "T2.staff_first_name", "=", "``", "Ashley", "''", "AND", "T2.staff_last_name", "=", "``", "Medhurst", "''" ], "query_toks_no_value": [ "select", "product_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "staff_first_name", "=", "value", "and", "t2", ".", "staff_last_name", "=", "value", "intersect", "select", "product_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "closure_authorised_by_staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "staff_first_name", "=", "value", "and", "t2", ".", "staff_last_name", "=", "value" ], "question": "For which product was there a problem reported by Christop Berge, with closure authorised by Ashley Medhurst? Return the product ids.", "question_toks": [ "for", "which", "product", "wa", "there", "a", "problem", "reported", "by", "christop", "berge", ",", "with", "closure", "authorised", "by", "ashley", "medhurst", "?", "return", "product", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Ashley\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Medhurst\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Christop\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Berge\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "For", "which", "product", "was", "there", "a", "problem", "reported", "by", "Christop", "Berge", ",", "with", "closure", "authorised", "by", "Ashley", "Medhurst", "?", "Return", "the", "product", "ids", "." ], "question_arg": [ [ "for" ], [ "which" ], [ "product" ], [ "wa" ], [ "there" ], [ "a" ], [ "problem" ], [ "reported" ], [ "by" ], [ "christop" ], [ "berge" ], [ "," ], [ "with" ], [ "closure" ], [ "authorised" ], [ "by" ], [ "ashley" ], [ "medhurst" ], [ "?" ], [ "return" ], [ "product", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "which", "WDT" ], [ "product", "NN" ], [ "wa", "NN" ], [ "there", "RB" ], [ "a", "DT" ], [ "problem", "NN" ], [ "reported", "VBN" ], [ "by", "IN" ], [ "christop", "NN" ], [ "berge", "NN" ], [ ",", "," ], [ "with", "IN" ], [ "closure", "NN" ], [ "authorised", "VBN" ], [ "by", "IN" ], [ "ashley", "NN" ], [ "medhurst", "NN" ], [ "?", "." ], [ "return", "VB" ], [ "product", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "Berge", "Christop", "Medhurst", "Ashley" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(12) T(5) Filter(0) Filter(2) A(0) C(16) T(4) V(1) Filter(2) A(0) C(17) T(4) V(0) Root(3) Sel(0) N(0) A(0) C(12) T(5) Filter(0) Filter(2) A(0) C(16) T(4) V(3) Filter(2) A(0) C(17) T(4) V(2)" }, { "db_id": "tracking_software_problems", "query": "SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < ( SELECT min(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = \"Lysanne\" AND T4.staff_last_name = \"Turcotte\" )", "query_toks": [ "SELECT", "T1.problem_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.reported_by_staff_id", "=", "T2.staff_id", "WHERE", "date_problem_reported", "<", "(", "SELECT", "min", "(", "date_problem_reported", ")", "FROM", "problems", "AS", "T3", "JOIN", "staff", "AS", "T4", "ON", "T3.reported_by_staff_id", "=", "T4.staff_id", "WHERE", "T4.staff_first_name", "=", "``", "Lysanne", "''", "AND", "T4.staff_last_name", "=", "``", "Turcotte", "''", ")" ], "query_toks_no_value": [ "select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "date_problem_reported", "<", "(", "select", "min", "(", "date_problem_reported", ")", "from", "problems", "as", "t3", "join", "staff", "as", "t4", "on", "t3", ".", "reported_by_staff_id", "=", "t4", ".", "staff_id", "where", "t4", ".", "staff_first_name", "=", "value", "and", "t4", ".", "staff_last_name", "=", "value", ")" ], "question": "What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte?", "question_toks": [ "what", "are", "id", "of", "problem", "reported", "before", "date", "of", "any", "problem", "reported", "by", "lysanne", "turcotte", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 4, [ 0, [ 0, 25, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Lysanne\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Turcotte\"", null ] ] }, null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "problems", "reported", "before", "the", "date", "of", "any", "problem", "reported", "by", "Lysanne", "Turcotte", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "problem" ], [ "reported" ], [ "before" ], [ "date" ], [ "of" ], [ "any" ], [ "problem" ], [ "reported" ], [ "by" ], [ "lysanne" ], [ "turcotte" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "problem", "NN" ], [ "reported", "VBN" ], [ "before", "IN" ], [ "date", "NN" ], [ "of", "IN" ], [ "any", "DT" ], [ "problem", "NN" ], [ "reported", "VBN" ], [ "by", "IN" ], [ "lysanne", "NN" ], [ "turcotte", "NN" ], [ "?", "." ] ], "values": [ "Lysanne", "Turcotte" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(5) Filter(0) Filter(18) A(0) C(20) T(5) Root(5) Sel(0) N(0) A(0) C(15) T(4) Filter(12) A(0) C(21) T(5) Root(3) Sel(0) N(0) A(2) C(21) T(5) Filter(0) Filter(2) A(0) C(16) T(4) V(0) Filter(2) A(0) C(17) T(4) V(1)" }, { "db_id": "tracking_software_problems", "query": "SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < ( SELECT min(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = \"Lysanne\" AND T4.staff_last_name = \"Turcotte\" )", "query_toks": [ "SELECT", "T1.problem_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.reported_by_staff_id", "=", "T2.staff_id", "WHERE", "date_problem_reported", "<", "(", "SELECT", "min", "(", "date_problem_reported", ")", "FROM", "problems", "AS", "T3", "JOIN", "staff", "AS", "T4", "ON", "T3.reported_by_staff_id", "=", "T4.staff_id", "WHERE", "T4.staff_first_name", "=", "``", "Lysanne", "''", "AND", "T4.staff_last_name", "=", "``", "Turcotte", "''", ")" ], "query_toks_no_value": [ "select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "date_problem_reported", "<", "(", "select", "min", "(", "date_problem_reported", ")", "from", "problems", "as", "t3", "join", "staff", "as", "t4", "on", "t3", ".", "reported_by_staff_id", "=", "t4", ".", "staff_id", "where", "t4", ".", "staff_first_name", "=", "value", "and", "t4", ".", "staff_last_name", "=", "value", ")" ], "question": "Which problems were reported before the date of any problem reported by the staff Lysanne Turcotte? Give me the ids of the problems.", "question_toks": [ "which", "problem", "were", "reported", "before", "date", "of", "any", "problem", "reported", "by", "staff", "lysanne", "turcotte", "?", "give", "me", "id", "of", "problem", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 4, [ 0, [ 0, 25, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Lysanne\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Turcotte\"", null ] ] }, null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Which", "problems", "were", "reported", "before", "the", "date", "of", "any", "problem", "reported", "by", "the", "staff", "Lysanne", "Turcotte", "?", "Give", "me", "the", "ids", "of", "the", "problems", "." ], "question_arg": [ [ "which" ], [ "problem" ], [ "were" ], [ "reported" ], [ "before" ], [ "date" ], [ "of" ], [ "any" ], [ "problem" ], [ "reported" ], [ "by" ], [ "staff" ], [ "lysanne" ], [ "turcotte" ], [ "?" ], [ "give" ], [ "me" ], [ "id" ], [ "of" ], [ "problem" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "problem", "NN" ], [ "were", "VBD" ], [ "reported", "VBN" ], [ "before", "IN" ], [ "date", "NN" ], [ "of", "IN" ], [ "any", "DT" ], [ "problem", "NN" ], [ "reported", "VBN" ], [ "by", "IN" ], [ "staff", "NN" ], [ "lysanne", "NN" ], [ "turcotte", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "id", "NN" ], [ "of", "IN" ], [ "problem", "NN" ], [ ".", "." ] ], "values": [ "Lysanne", "Turcotte" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(5) Filter(0) Filter(18) A(0) C(20) T(5) Root(5) Sel(0) N(0) A(0) C(15) T(4) Filter(12) A(0) C(21) T(5) Root(3) Sel(0) N(0) A(2) C(21) T(5) Filter(0) Filter(2) A(0) C(16) T(4) V(0) Filter(2) A(0) C(17) T(4) V(1)" }, { "db_id": "tracking_software_problems", "query": "SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported > ( SELECT max(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = \"Rylan\" AND T4.staff_last_name = \"Homenick\" )", "query_toks": [ "SELECT", "T1.problem_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.reported_by_staff_id", "=", "T2.staff_id", "WHERE", "date_problem_reported", ">", "(", "SELECT", "max", "(", "date_problem_reported", ")", "FROM", "problems", "AS", "T3", "JOIN", "staff", "AS", "T4", "ON", "T3.reported_by_staff_id", "=", "T4.staff_id", "WHERE", "T4.staff_first_name", "=", "``", "Rylan", "''", "AND", "T4.staff_last_name", "=", "``", "Homenick", "''", ")" ], "query_toks_no_value": [ "select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "date_problem_reported", ">", "(", "select", "max", "(", "date_problem_reported", ")", "from", "problems", "as", "t3", "join", "staff", "as", "t4", "on", "t3", ".", "reported_by_staff_id", "=", "t4", ".", "staff_id", "where", "t4", ".", "staff_first_name", "=", "value", "and", "t4", ".", "staff_last_name", "=", "value", ")" ], "question": "What are the ids of the problems reported after the date of any problems reported by Rylan Homenick?", "question_toks": [ "what", "are", "id", "of", "problem", "reported", "after", "date", "of", "any", "problem", "reported", "by", "rylan", "homenick", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 3, [ 0, [ 0, 25, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Rylan\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Homenick\"", null ] ] }, null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "problems", "reported", "after", "the", "date", "of", "any", "problems", "reported", "by", "Rylan", "Homenick", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "problem" ], [ "reported" ], [ "after" ], [ "date" ], [ "of" ], [ "any" ], [ "problem" ], [ "reported" ], [ "by" ], [ "rylan" ], [ "homenick" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "problem", "NN" ], [ "reported", "VBN" ], [ "after", "IN" ], [ "date", "NN" ], [ "of", "IN" ], [ "any", "DT" ], [ "problem", "NN" ], [ "reported", "VBN" ], [ "by", "IN" ], [ "rylan", "NN" ], [ "homenick", "NN" ], [ "?", "." ] ], "values": [ "Homenick", "Rylan" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(5) Filter(0) Filter(18) A(0) C(20) T(5) Root(5) Sel(0) N(0) A(0) C(15) T(4) Filter(13) A(0) C(21) T(5) Root(3) Sel(0) N(0) A(1) C(21) T(5) Filter(0) Filter(2) A(0) C(16) T(4) V(1) Filter(2) A(0) C(17) T(4) V(0)" }, { "db_id": "tracking_software_problems", "query": "SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported > ( SELECT max(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = \"Rylan\" AND T4.staff_last_name = \"Homenick\" )", "query_toks": [ "SELECT", "T1.problem_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.reported_by_staff_id", "=", "T2.staff_id", "WHERE", "date_problem_reported", ">", "(", "SELECT", "max", "(", "date_problem_reported", ")", "FROM", "problems", "AS", "T3", "JOIN", "staff", "AS", "T4", "ON", "T3.reported_by_staff_id", "=", "T4.staff_id", "WHERE", "T4.staff_first_name", "=", "``", "Rylan", "''", "AND", "T4.staff_last_name", "=", "``", "Homenick", "''", ")" ], "query_toks_no_value": [ "select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "date_problem_reported", ">", "(", "select", "max", "(", "date_problem_reported", ")", "from", "problems", "as", "t3", "join", "staff", "as", "t4", "on", "t3", ".", "reported_by_staff_id", "=", "t4", ".", "staff_id", "where", "t4", ".", "staff_first_name", "=", "value", "and", "t4", ".", "staff_last_name", "=", "value", ")" ], "question": "Find the ids of the problems reported after the date of any problems reported by the staff Rylan Homenick.", "question_toks": [ "find", "id", "of", "problem", "reported", "after", "date", "of", "any", "problem", "reported", "by", "staff", "rylan", "homenick", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 3, [ 0, [ 0, 25, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Rylan\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Homenick\"", null ] ] }, null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Find", "the", "ids", "of", "the", "problems", "reported", "after", "the", "date", "of", "any", "problems", "reported", "by", "the", "staff", "Rylan", "Homenick", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "problem" ], [ "reported" ], [ "after" ], [ "date" ], [ "of" ], [ "any" ], [ "problem" ], [ "reported" ], [ "by" ], [ "staff" ], [ "rylan" ], [ "homenick" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "problem", "NN" ], [ "reported", "VBN" ], [ "after", "IN" ], [ "date", "NN" ], [ "of", "IN" ], [ "any", "DT" ], [ "problem", "NN" ], [ "reported", "VBN" ], [ "by", "IN" ], [ "staff", "NN" ], [ "rylan", "NN" ], [ "homenick", "NN" ], [ ".", "." ] ], "values": [ "Homenick", "Rylan" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(5) Filter(0) Filter(18) A(0) C(20) T(5) Root(5) Sel(0) N(0) A(0) C(15) T(4) Filter(13) A(0) C(21) T(5) Root(3) Sel(0) N(0) A(1) C(21) T(5) Filter(0) Filter(2) A(0) C(16) T(4) V(1) Filter(2) A(0) C(17) T(4) V(0)" }, { "db_id": "tracking_software_problems", "query": "SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "T2.product_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "GROUP", "BY", "T2.product_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t2", ".", "product_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t2", ".", "product_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the top 3 products which have the largest number of problems?", "question_toks": [ "find", "top", "3", "product", "which", "have", "largest", "number", "of", "problem", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 14, 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 ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Find", "the", "top", "3", "products", "which", "have", "the", "largest", "number", "of", "problems", "?" ], "question_arg": [ [ "find" ], [ "top" ], [ "3" ], [ "product" ], [ "which" ], [ "have" ], [ "largest" ], [ "number" ], [ "of" ], [ "problem" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "top", "JJ" ], [ "3", "CD" ], [ "product", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "problem", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(13) T(3) Sup(0) A(3) C(0) T(5) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(12) T(5)" }, { "db_id": "tracking_software_problems", "query": "SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "T2.product_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "GROUP", "BY", "T2.product_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t2", ".", "product_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t2", ".", "product_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the three products that have the most problems?s", "question_toks": [ "what", "are", "three", "product", "that", "have", "most", "problem", "?", "s" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 14, 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 ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "three", "products", "that", "have", "the", "most", "problems", "?", "s" ], "question_arg": [ [ "what" ], [ "are" ], [ "three" ], [ "product" ], [ "that" ], [ "have" ], [ "most" ], [ "problem" ], [ "?" ], [ "s" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "three", "CD" ], [ "product", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "most", "RBS" ], [ "problem", "NN" ], [ "?", "." ], [ "s", "NN" ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(13) T(3) Sup(0) A(3) C(0) T(5) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(12) T(5)" }, { "db_id": "tracking_software_problems", "query": "SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = \"voluptatem\" AND T1.date_problem_reported > \"1995\"", "query_toks": [ "SELECT", "T1.problem_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T2.product_name", "=", "``", "voluptatem", "''", "AND", "T1.date_problem_reported", ">", "``", "1995", "''" ], "query_toks_no_value": [ "select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t2", ".", "product_name", "=", "value", "and", "t1", ".", "date_problem_reported", ">", "value" ], "question": "List the ids of the problems from the product \"voluptatem\" that are reported after 1995?", "question_toks": [ "list", "id", "of", "problem", "from", "product", "'", "voluptatem", "'", "that", "are", "reported", "after", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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, 15, false ], null ], "\"voluptatem\"", null ], "and", [ false, 3, [ 0, [ 0, 25, false ], null ], "\"1995\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "List", "the", "ids", "of", "the", "problems", "from", "the", "product", "``", "voluptatem", "''", "that", "are", "reported", "after", "1995", "?" ], "question_arg": [ [ "list" ], [ "id" ], [ "of" ], [ "problem" ], [ "from" ], [ "product" ], [ "'" ], [ "voluptatem" ], [ "'" ], [ "that" ], [ "are" ], [ "reported" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "problem", "NN" ], [ "from", "IN" ], [ "product", "NN" ], [ "'", "''" ], [ "voluptatem", "NN" ], [ "'", "POS" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "reported", "VBN" ], [ "after", "IN" ], [ "1995", "CD" ], [ "?", "." ] ], "values": [ "voluptatem", "1995" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(5) Filter(0) Filter(2) A(0) C(13) T(3) V(0) Filter(5) A(0) C(21) T(5) V(1)" }, { "db_id": "tracking_software_problems", "query": "SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = \"voluptatem\" AND T1.date_problem_reported > \"1995\"", "query_toks": [ "SELECT", "T1.problem_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T2.product_name", "=", "``", "voluptatem", "''", "AND", "T1.date_problem_reported", ">", "``", "1995", "''" ], "query_toks_no_value": [ "select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t2", ".", "product_name", "=", "value", "and", "t1", ".", "date_problem_reported", ">", "value" ], "question": "What are the ids of the problems that are from the product \"voluptatem\" and are reported after 1995?", "question_toks": [ "what", "are", "id", "of", "problem", "that", "are", "from", "product", "'", "voluptatem", "'", "and", "are", "reported", "after", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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, 15, false ], null ], "\"voluptatem\"", null ], "and", [ false, 3, [ 0, [ 0, 25, false ], null ], "\"1995\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "problems", "that", "are", "from", "the", "product", "``", "voluptatem", "''", "and", "are", "reported", "after", "1995", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "problem" ], [ "that" ], [ "are" ], [ "from" ], [ "product" ], [ "'" ], [ "voluptatem" ], [ "'" ], [ "and" ], [ "are" ], [ "reported" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "problem", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "from", "IN" ], [ "product", "NN" ], [ "'", "''" ], [ "voluptatem", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "are", "VBP" ], [ "reported", "VBN" ], [ "after", "IN" ], [ "1995", "CD" ], [ "?", "." ] ], "values": [ "voluptatem", "1995" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(5) Filter(0) Filter(2) A(0) C(13) T(3) V(0) Filter(5) A(0) C(21) T(5) V(1)" }, { "db_id": "tracking_software_problems", "query": "SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = \"rem\" EXCEPT SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = \"aut\"", "query_toks": [ "SELECT", "T3.staff_first_name", ",", "T3.staff_last_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1.product_id", "=", "T2.product_id", "AND", "T1.reported_by_staff_id", "=", "T3.staff_id", "WHERE", "T2.product_name", "=", "``", "rem", "''", "EXCEPT", "SELECT", "T3.staff_first_name", ",", "T3.staff_last_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1.product_id", "=", "T2.product_id", "AND", "T1.reported_by_staff_id", "=", "T3.staff_id", "WHERE", "T2.product_name", "=", "``", "aut", "''" ], "query_toks_no_value": [ "select", "t3", ".", "staff_first_name", ",", "t3", ".", "staff_last_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t2", ".", "product_name", "=", "value", "except", "select", "t3", ".", "staff_first_name", ",", "t3", ".", "staff_last_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t2", ".", "product_name", "=", "value" ], "question": "Find the first and last name of the staff members who reported problems from the product \"rem\" but not \"aut\"?", "question_toks": [ "find", "first", "and", "last", "name", "of", "staff", "member", "who", "reported", "problem", "from", "product", "'", "rem", "'", "but", "not", "'", "aut", "'", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 14, false ], null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 14, 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, 15, false ], null ], "\"aut\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 14, false ], null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 14, 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, 15, false ], null ], "\"rem\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Find", "the", "first", "and", "last", "name", "of", "the", "staff", "members", "who", "reported", "problems", "from", "the", "product", "``", "rem", "''", "but", "not", "``", "aut", "''", "?" ], "question_arg": [ [ "find" ], [ "first" ], [ "and" ], [ "staff", "last", "name" ], [ "of" ], [ "staff" ], [ "member" ], [ "who" ], [ "date", "problem", "reported" ], [ "from" ], [ "product" ], [ "'" ], [ "rem" ], [ "'" ], [ "but" ], [ "not" ], [ "'" ], [ "aut" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "member", "NN" ], [ "who", "WP" ], [ "reported", "VBD" ], [ "problem", "NN" ], [ "from", "IN" ], [ "product", "NN" ], [ "'", "''" ], [ "rem", "NN" ], [ "'", "''" ], [ "but", "CC" ], [ "not", "RB" ], [ "'", "''" ], [ "aut", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "game", "1", "aut", "rem" ], "rule_label": "Root1(2) Root(3) Sel(0) N(1) A(0) C(16) T(4) A(0) C(17) T(4) Filter(0) Filter(18) A(0) C(15) T(4) Root(5) Sel(0) N(0) A(0) C(20) T(5) Filter(0) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(13) T(3) V(3) Root(3) Sel(0) N(1) A(0) C(16) T(4) A(0) C(17) T(4) Filter(0) Filter(18) A(0) C(15) T(4) Root(5) Sel(0) N(0) A(0) C(20) T(5) Filter(0) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(13) T(3) V(2)" }, { "db_id": "tracking_software_problems", "query": "SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = \"rem\" EXCEPT SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = \"aut\"", "query_toks": [ "SELECT", "T3.staff_first_name", ",", "T3.staff_last_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1.product_id", "=", "T2.product_id", "AND", "T1.reported_by_staff_id", "=", "T3.staff_id", "WHERE", "T2.product_name", "=", "``", "rem", "''", "EXCEPT", "SELECT", "T3.staff_first_name", ",", "T3.staff_last_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1.product_id", "=", "T2.product_id", "AND", "T1.reported_by_staff_id", "=", "T3.staff_id", "WHERE", "T2.product_name", "=", "``", "aut", "''" ], "query_toks_no_value": [ "select", "t3", ".", "staff_first_name", ",", "t3", ".", "staff_last_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t2", ".", "product_name", "=", "value", "except", "select", "t3", ".", "staff_first_name", ",", "t3", ".", "staff_last_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t2", ".", "product_name", "=", "value" ], "question": "Which staff members who reported problems from the product \"rem\" but not \"aut\"? Give me their first and last names.", "question_toks": [ "which", "staff", "member", "who", "reported", "problem", "from", "product", "'", "rem", "'", "but", "not", "'", "aut", "'", "?", "give", "me", "their", "first", "and", "last", "name", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 14, false ], null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 14, 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, 15, false ], null ], "\"aut\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 14, false ], null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 14, 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, 15, false ], null ], "\"rem\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Which", "staff", "members", "who", "reported", "problems", "from", "the", "product", "``", "rem", "''", "but", "not", "``", "aut", "''", "?", "Give", "me", "their", "first", "and", "last", "names", "." ], "question_arg": [ [ "which" ], [ "staff" ], [ "member" ], [ "who" ], [ "date", "problem", "reported" ], [ "from" ], [ "product" ], [ "'" ], [ "rem" ], [ "'" ], [ "but" ], [ "not" ], [ "'" ], [ "aut" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "their" ], [ "first" ], [ "and" ], [ "staff", "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "staff", "NN" ], [ "member", "NN" ], [ "who", "WP" ], [ "reported", "VBD" ], [ "problem", "NN" ], [ "from", "IN" ], [ "product", "NN" ], [ "'", "''" ], [ "rem", "NN" ], [ "'", "''" ], [ "but", "CC" ], [ "not", "RB" ], [ "'", "''" ], [ "aut", "NN" ], [ "'", "''" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1", "aut", "rem" ], "rule_label": "Root1(2) Root(3) Sel(0) N(1) A(0) C(16) T(4) A(0) C(17) T(4) Filter(0) Filter(18) A(0) C(15) T(4) Root(5) Sel(0) N(0) A(0) C(20) T(5) Filter(0) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(13) T(3) V(2) Root(3) Sel(0) N(1) A(0) C(16) T(4) A(0) C(17) T(4) Filter(0) Filter(18) A(0) C(15) T(4) Root(5) Sel(0) N(0) A(0) C(20) T(5) Filter(0) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(13) T(3) V(1)" }, { "db_id": "tracking_software_problems", "query": "SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = \"Lacey\" AND T3.staff_last_name = \"Bosco\" INTERSECT SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = \"Kenton\" AND T3.staff_last_name = \"Champlin\"", "query_toks": [ "SELECT", "T2.product_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1.product_id", "=", "T2.product_id", "AND", "T1.reported_by_staff_id", "=", "T3.staff_id", "WHERE", "T3.staff_first_name", "=", "``", "Lacey", "''", "AND", "T3.staff_last_name", "=", "``", "Bosco", "''", "INTERSECT", "SELECT", "T2.product_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1.product_id", "=", "T2.product_id", "AND", "T1.reported_by_staff_id", "=", "T3.staff_id", "WHERE", "T3.staff_first_name", "=", "``", "Kenton", "''", "AND", "T3.staff_last_name", "=", "``", "Champlin", "''" ], "query_toks_no_value": [ "select", "t2", ".", "product_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t3", ".", "staff_first_name", "=", "value", "and", "t3", ".", "staff_last_name", "=", "value", "intersect", "select", "t2", ".", "product_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t3", ".", "staff_first_name", "=", "value", "and", "t3", ".", "staff_last_name", "=", "value" ], "question": "Find the products which have problems reported by both Lacey Bosco and Kenton Champlin?", "question_toks": [ "find", "product", "which", "have", "problem", "reported", "by", "both", "lacey", "bosco", "and", "kenton", "champlin", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 14, false ], null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 14, false ], null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 14, 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, 18, false ], null ], "\"Kenton\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Champlin\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 14, 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, 18, false ], null ], "\"Lacey\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Bosco\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Find", "the", "products", "which", "have", "problems", "reported", "by", "both", "Lacey", "Bosco", "and", "Kenton", "Champlin", "?" ], "question_arg": [ [ "find" ], [ "product" ], [ "which" ], [ "have" ], [ "problem" ], [ "reported" ], [ "by" ], [ "both" ], [ "lacey" ], [ "bosco" ], [ "and" ], [ "kenton" ], [ "champlin" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "product", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "problem", "NN" ], [ "reported", "VBN" ], [ "by", "IN" ], [ "both", "DT" ], [ "lacey", "JJ" ], [ "bosco", "NN" ], [ "and", "CC" ], [ "kenton", "NN" ], [ "champlin", "NN" ], [ "?", "." ] ], "values": [ "Kenton", "Champlin", "Lacey", "Bosco" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(13) T(3) Filter(0) Filter(18) A(0) C(15) T(4) Root(5) Sel(0) N(0) A(0) C(20) T(5) Filter(0) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(16) T(4) V(2) Root(3) Sel(0) N(0) A(0) C(13) T(3) Filter(0) Filter(18) A(0) C(15) T(4) Root(5) Sel(0) N(0) A(0) C(20) T(5) Filter(0) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(16) T(4) V(0)" }, { "db_id": "tracking_software_problems", "query": "SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = \"Lacey\" AND T3.staff_last_name = \"Bosco\" INTERSECT SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = \"Kenton\" AND T3.staff_last_name = \"Champlin\"", "query_toks": [ "SELECT", "T2.product_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1.product_id", "=", "T2.product_id", "AND", "T1.reported_by_staff_id", "=", "T3.staff_id", "WHERE", "T3.staff_first_name", "=", "``", "Lacey", "''", "AND", "T3.staff_last_name", "=", "``", "Bosco", "''", "INTERSECT", "SELECT", "T2.product_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1.product_id", "=", "T2.product_id", "AND", "T1.reported_by_staff_id", "=", "T3.staff_id", "WHERE", "T3.staff_first_name", "=", "``", "Kenton", "''", "AND", "T3.staff_last_name", "=", "``", "Champlin", "''" ], "query_toks_no_value": [ "select", "t2", ".", "product_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t3", ".", "staff_first_name", "=", "value", "and", "t3", ".", "staff_last_name", "=", "value", "intersect", "select", "t2", ".", "product_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t3", ".", "staff_first_name", "=", "value", "and", "t3", ".", "staff_last_name", "=", "value" ], "question": "Which products have problems reported by both the staff named Lacey Bosco and the staff named Kenton Champlin?", "question_toks": [ "which", "product", "have", "problem", "reported", "by", "both", "staff", "named", "lacey", "bosco", "and", "staff", "named", "kenton", "champlin", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 14, false ], null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 14, false ], null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 14, 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, 18, false ], null ], "\"Kenton\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Champlin\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 14, 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, 18, false ], null ], "\"Lacey\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Bosco\"", null ] ] }, "names": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem category code", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status code", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "problem id", "product id", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "table_names": [ "problem category codes", "problem log", "problem status codes", "product", "staff", "problems" ], "col_set": [ "*", "problem category code", "problem category description", "problem log id", "assigned to staff id", "problem id", "problem status code", "log entry date", "log entry description", "log entry fix", "other log details", "problem status description", "product id", "product name", "product details", "staff id", "staff first name", "staff last name", "other staff details", "closure authorised by staff id", "reported by staff id", "date problem reported", "date problem closed", "problem description", "other problem details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "7": 12, "12": 12, "5": 21, "21": 21, "4": 17, "17": 17, "6": 1, "1": 1, "24": 17, "22": 14, "14": 14, "23": 17, "3": 3 }, "origin_question_toks": [ "Which", "products", "have", "problems", "reported", "by", "both", "the", "staff", "named", "Lacey", "Bosco", "and", "the", "staff", "named", "Kenton", "Champlin", "?" ], "question_arg": [ [ "which" ], [ "product" ], [ "have" ], [ "problem" ], [ "reported" ], [ "by" ], [ "both" ], [ "staff" ], [ "named" ], [ "lacey" ], [ "bosco" ], [ "and" ], [ "staff" ], [ "named" ], [ "kenton" ], [ "champlin" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "product", "NN" ], [ "have", "VBP" ], [ "problem", "NN" ], [ "reported", "VBN" ], [ "by", "IN" ], [ "both", "DT" ], [ "staff", "NN" ], [ "named", "VBN" ], [ "lacey", "NN" ], [ "bosco", "NN" ], [ "and", "CC" ], [ "staff", "NN" ], [ "named", "VBN" ], [ "kenton", "NN" ], [ "champlin", "NN" ], [ "?", "." ] ], "values": [ "Kenton", "Champlin", "Lacey", "Bosco" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(13) T(3) Filter(0) Filter(18) A(0) C(15) T(4) Root(5) Sel(0) N(0) A(0) C(20) T(5) Filter(0) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(16) T(4) V(2) Root(3) Sel(0) N(0) A(0) C(13) T(3) Filter(0) Filter(18) A(0) C(15) T(4) Root(5) Sel(0) N(0) A(0) C(20) T(5) Filter(0) Filter(18) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(16) T(4) V(0)" }, { "db_id": "shop_membership", "query": "SELECT count(*) FROM branch WHERE membership_amount > (SELECT avg(membership_amount) FROM branch)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "branch", "WHERE", "membership_amount", ">", "(", "SELECT", "avg", "(", "membership_amount", ")", "FROM", "branch", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "branch", "where", "membership_amount", ">", "(", "select", "avg", "(", "membership_amount", ")", "from", "branch", ")" ], "question": "How many branches where have more than average number of memberships are there?", "question_toks": [ "how", "many", "branch", "where", "have", "more", "than", "average", "number", "of", "membership", "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, 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": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "How", "many", "branches", "where", "have", "more", "than", "average", "number", "of", "memberships", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "branch" ], [ "where" ], [ "have" ], [ "more" ], [ "than" ], [ "average" ], [ "number" ], [ "of" ], [ "membership" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "branch", "NN" ], [ "where", "WRB" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "membership", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(13) A(0) C(10) T(1) Root(5) Sel(0) N(0) A(5) C(10) T(1)" }, { "db_id": "shop_membership", "query": "SELECT count(*) FROM branch WHERE membership_amount > (SELECT avg(membership_amount) FROM branch)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "branch", "WHERE", "membership_amount", ">", "(", "SELECT", "avg", "(", "membership_amount", ")", "FROM", "branch", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "branch", "where", "membership_amount", ">", "(", "select", "avg", "(", "membership_amount", ")", "from", "branch", ")" ], "question": "What is the number of branches that have more than the average number of memberships?", "question_toks": [ "what", "is", "number", "of", "branch", "that", "have", "more", "than", "average", "number", "of", "membership", "?" ], "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, 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": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "branches", "that", "have", "more", "than", "the", "average", "number", "of", "memberships", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "branch" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "average" ], [ "number" ], [ "of" ], [ "membership" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "branch", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "membership", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(13) A(0) C(10) T(1) Root(5) Sel(0) N(0) A(5) C(10) T(1)" }, { "db_id": "shop_membership", "query": "SELECT name , address_road , city FROM branch ORDER BY open_year", "query_toks": [ "SELECT", "name", ",", "address_road", ",", "city", "FROM", "branch", "ORDER", "BY", "open_year" ], "query_toks_no_value": [ "select", "name", ",", "address_road", ",", "city", "from", "branch", "order", "by", "open_year" ], "question": "Show name, address road, and city for all branches sorted by open year.", "question_toks": [ "show", "name", ",", "address", "road", ",", "and", "city", "for", "all", "branch", "sorted", "by", "open", "year", "." ], "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 ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "Show", "name", ",", "address", "road", ",", "and", "city", "for", "all", "branches", "sorted", "by", "open", "year", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "," ], [ "address", "road" ], [ "," ], [ "and" ], [ "city" ], [ "for" ], [ "all" ], [ "branch" ], [ "sorted" ], [ "by" ], [ "open", "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "address", "NN" ], [ "road", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "city", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "branch", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "open", "JJ" ], [ "year", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(3) T(1) A(0) C(8) T(1) A(0) C(9) T(1) Order(1) A(0) C(7) T(1)" }, { "db_id": "shop_membership", "query": "SELECT name , address_road , city FROM branch ORDER BY open_year", "query_toks": [ "SELECT", "name", ",", "address_road", ",", "city", "FROM", "branch", "ORDER", "BY", "open_year" ], "query_toks_no_value": [ "select", "name", ",", "address_road", ",", "city", "from", "branch", "order", "by", "open_year" ], "question": "What are the names, address roads, and cities of the branches ordered by opening year?", "question_toks": [ "what", "are", "name", ",", "address", "road", ",", "and", "city", "of", "branch", "ordered", "by", "opening", "year", "?" ], "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 ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "names", ",", "address", "roads", ",", "and", "cities", "of", "the", "branches", "ordered", "by", "opening", "year", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "address", "road" ], [ "," ], [ "and" ], [ "city" ], [ "of" ], [ "branch" ], [ "ordered" ], [ "by" ], [ "opening" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "address", "JJ" ], [ "road", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "city", "NN" ], [ "of", "IN" ], [ "branch", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "opening", "VBG" ], [ "year", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(3) T(1) A(0) C(8) T(1) A(0) C(9) T(1) Order(1) A(0) C(7) T(1)" }, { "db_id": "shop_membership", "query": "SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3", "query_toks": [ "SELECT", "name", "FROM", "branch", "ORDER", "BY", "membership_amount", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "name", "from", "branch", "order", "by", "membership_amount", "desc", "limit", "value" ], "question": "What are names for top three branches with most number of membership?", "question_toks": [ "what", "are", "name", "for", "top", "three", "branch", "with", "most", "number", "of", "membership", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "are", "names", "for", "top", "three", "branches", "with", "most", "number", "of", "membership", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "for" ], [ "top" ], [ "three" ], [ "branch" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "membership" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "for", "IN" ], [ "top", "JJ" ], [ "three", "CD" ], [ "branch", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "membership", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(3) T(1) Sup(0) A(0) C(10) T(1)" }, { "db_id": "shop_membership", "query": "SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3", "query_toks": [ "SELECT", "name", "FROM", "branch", "ORDER", "BY", "membership_amount", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "name", "from", "branch", "order", "by", "membership_amount", "desc", "limit", "value" ], "question": "What are the names for the 3 branches that have the most memberships?", "question_toks": [ "what", "are", "name", "for", "3", "branch", "that", "have", "most", "membership", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "names", "for", "the", "3", "branches", "that", "have", "the", "most", "memberships", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "for" ], [ "3" ], [ "branch" ], [ "that" ], [ "have" ], [ "most" ], [ "membership" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "for", "IN" ], [ "3", "CD" ], [ "branch", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "most", "RBS" ], [ "membership", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(3) T(1) Sup(0) A(0) C(10) T(1)" }, { "db_id": "shop_membership", "query": "SELECT DISTINCT city FROM branch WHERE membership_amount >= 100", "query_toks": [ "SELECT", "DISTINCT", "city", "FROM", "branch", "WHERE", "membership_amount", ">", "=", "100" ], "query_toks_no_value": [ "select", "distinct", "city", "from", "branch", "where", "membership_amount", ">", "=", "value" ], "question": "Show all distinct city where branches with at least 100 memberships are located.", "question_toks": [ "show", "all", "distinct", "city", "where", "branch", "with", "at", "least", "100", "membership", "are", "located", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 11, false ], null ], 100.0, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "Show", "all", "distinct", "city", "where", "branches", "with", "at", "least", "100", "memberships", "are", "located", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "distinct" ], [ "city" ], [ "where" ], [ "branch" ], [ "with" ], [ "at" ], [ "least" ], [ "100" ], [ "membership" ], [ "are" ], [ "located" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "city", "NN" ], [ "where", "WRB" ], [ "branch", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "100", "CD" ], [ "membership", "NN" ], [ "are", "VBP" ], [ "located", "VBN" ], [ ".", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(9) T(1) Filter(7) A(0) C(10) T(1) V(0)" }, { "db_id": "shop_membership", "query": "SELECT DISTINCT city FROM branch WHERE membership_amount >= 100", "query_toks": [ "SELECT", "DISTINCT", "city", "FROM", "branch", "WHERE", "membership_amount", ">", "=", "100" ], "query_toks_no_value": [ "select", "distinct", "city", "from", "branch", "where", "membership_amount", ">", "=", "value" ], "question": "What are the different cities that have more than 100 memberships?", "question_toks": [ "what", "are", "different", "city", "that", "have", "more", "than", "100", "membership", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 11, false ], null ], 100.0, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "different", "cities", "that", "have", "more", "than", "100", "memberships", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "city" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "100" ], [ "membership" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "city", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "membership", "NN" ], [ "?", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(9) T(1) Filter(7) A(0) C(10) T(1) V(0)" }, { "db_id": "shop_membership", "query": "SELECT open_year FROM branch GROUP BY open_year HAVING count(*) >= 2", "query_toks": [ "SELECT", "open_year", "FROM", "branch", "GROUP", "BY", "open_year", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "open_year", "from", "branch", "group", "by", "open_year", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "List all open years when at least two shops are opened.", "question_toks": [ "list", "all", "open", "year", "when", "at", "least", "two", "shop", "are", "opened", "." ], "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", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "List", "all", "open", "years", "when", "at", "least", "two", "shops", "are", "opened", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "open", "year" ], [ "when" ], [ "at" ], [ "least" ], [ "two" ], [ "shop" ], [ "are" ], [ "opened" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "open", "JJ" ], [ "year", "NN" ], [ "when", "WRB" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "shop", "NN" ], [ "are", "VBP" ], [ "opened", "VBN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(7) A(3) C(0) T(1) V(0)" }, { "db_id": "shop_membership", "query": "SELECT open_year FROM branch GROUP BY open_year HAVING count(*) >= 2", "query_toks": [ "SELECT", "open_year", "FROM", "branch", "GROUP", "BY", "open_year", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "open_year", "from", "branch", "group", "by", "open_year", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the opening years in which at least two shops opened?", "question_toks": [ "what", "are", "opening", "year", "in", "which", "at", "least", "two", "shop", "opened", "?" ], "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", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "opening", "years", "in", "which", "at", "least", "two", "shops", "opened", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "opening" ], [ "year" ], [ "in" ], [ "which" ], [ "at" ], [ "least" ], [ "two" ], [ "shop" ], [ "opened" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "opening", "VBG" ], [ "year", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "shop", "NN" ], [ "opened", "VBD" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(7) A(3) C(0) T(1) V(0)" }, { "db_id": "shop_membership", "query": "SELECT min(membership_amount) , max(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'", "query_toks": [ "SELECT", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "2011", "OR", "city", "=", "'London", "'" ], "query_toks_no_value": [ "select", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "value", "or", "city", "=", "value" ], "question": "Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.", "question_toks": [ "show", "minimum", "and", "maximum", "amount", "of", "membership", "for", "all", "branch", "opened", "in", "year", "or", "located", "at", "city", "london", "." ], "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 ] ], [ 1, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], 2011.0, null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"London\"", null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "Show", "minimum", "and", "maximum", "amount", "of", "memberships", "for", "all", "branches", "opened", "in", "2011", "or", "located", "at", "city", "London", "." ], "question_arg": [ [ "show" ], [ "minimum" ], [ "and" ], [ "maximum" ], [ "amount" ], [ "of" ], [ "membership" ], [ "for" ], [ "all" ], [ "branch" ], [ "opened" ], [ "in" ], [ "year" ], [ "or" ], [ "located" ], [ "at" ], [ "city" ], [ "london" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "city" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "minimum", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "membership", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "branch", "NN" ], [ "opened", "VBN" ], [ "in", "IN" ], [ "2011", "CD" ], [ "or", "CC" ], [ "located", "VBN" ], [ "at", "IN" ], [ "city", "NN" ], [ "london", "NN" ], [ ".", "." ] ], "values": [ "2011", "London" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(2) C(10) T(1) A(1) C(10) T(1) Filter(1) Filter(2) A(0) C(7) T(1) V(0) Filter(2) A(0) C(9) T(1) V(1)" }, { "db_id": "shop_membership", "query": "SELECT min(membership_amount) , max(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'", "query_toks": [ "SELECT", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "2011", "OR", "city", "=", "'London", "'" ], "query_toks_no_value": [ "select", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "value", "or", "city", "=", "value" ], "question": "What are the minimum and maximum membership amounts for all branches that either opened in 2011 or are located in London?", "question_toks": [ "what", "are", "minimum", "and", "maximum", "membership", "amount", "for", "all", "branch", "that", "either", "opened", "in", "year", "or", "are", "located", "in", "london", "?" ], "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 ] ], [ 1, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], 2011.0, null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"London\"", null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "minimum", "and", "maximum", "membership", "amounts", "for", "all", "branches", "that", "either", "opened", "in", "2011", "or", "are", "located", "in", "London", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "minimum" ], [ "and" ], [ "maximum" ], [ "membership", "amount" ], [ "for" ], [ "all" ], [ "branch" ], [ "that" ], [ "either" ], [ "opened" ], [ "in" ], [ "year" ], [ "or" ], [ "are" ], [ "located" ], [ "in" ], [ "london" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "minimum", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "membership", "NN" ], [ "amount", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "branch", "NN" ], [ "that", "IN" ], [ "either", "DT" ], [ "opened", "VBN" ], [ "in", "IN" ], [ "2011", "CD" ], [ "or", "CC" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "in", "IN" ], [ "london", "NN" ], [ "?", "." ] ], "values": [ "2011", "London" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(2) C(10) T(1) A(1) C(10) T(1) Filter(1) Filter(2) A(0) C(7) T(1) V(0) Filter(2) A(0) C(9) T(1) V(1)" }, { "db_id": "shop_membership", "query": "SELECT city , count(*) FROM branch WHERE open_year < 2010 GROUP BY city", "query_toks": [ "SELECT", "city", ",", "count", "(", "*", ")", "FROM", "branch", "WHERE", "open_year", "<", "2010", "GROUP", "BY", "city" ], "query_toks_no_value": [ "select", "city", ",", "count", "(", "*", ")", "from", "branch", "where", "open_year", "<", "value", "group", "by", "city" ], "question": "Show the city and the number of branches opened before 2010 for each city.", "question_toks": [ "show", "city", "and", "number", "of", "branch", "opened", "before", "year", "for", "each", "city", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 8, false ], null ], 2010.0, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "Show", "the", "city", "and", "the", "number", "of", "branches", "opened", "before", "2010", "for", "each", "city", "." ], "question_arg": [ [ "show" ], [ "city" ], [ "and" ], [ "number" ], [ "of" ], [ "branch" ], [ "opened" ], [ "before" ], [ "year" ], [ "for" ], [ "each" ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "city", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "branch", "NN" ], [ "opened", "VBN" ], [ "before", "IN" ], [ "2010", "CD" ], [ "for", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ ".", "." ] ], "values": [ "2010" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(1) A(3) C(0) T(1) Filter(4) A(0) C(7) T(1) V(0)" }, { "db_id": "shop_membership", "query": "SELECT city , count(*) FROM branch WHERE open_year < 2010 GROUP BY city", "query_toks": [ "SELECT", "city", ",", "count", "(", "*", ")", "FROM", "branch", "WHERE", "open_year", "<", "2010", "GROUP", "BY", "city" ], "query_toks_no_value": [ "select", "city", ",", "count", "(", "*", ")", "from", "branch", "where", "open_year", "<", "value", "group", "by", "city" ], "question": "For each city, how many branches opened before 2010?", "question_toks": [ "for", "each", "city", ",", "how", "many", "branch", "opened", "before", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 8, false ], null ], 2010.0, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "For", "each", "city", ",", "how", "many", "branches", "opened", "before", "2010", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "city" ], [ "," ], [ "how" ], [ "many" ], [ "branch" ], [ "opened" ], [ "before" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "branch", "NN" ], [ "opened", "VBD" ], [ "before", "IN" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "2010" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(1) A(3) C(0) T(1) Filter(4) A(0) C(7) T(1) V(0)" }, { "db_id": "shop_membership", "query": "SELECT count(DISTINCT LEVEL) FROM member", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "LEVEL", ")", "FROM", "member" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "level", ")", "from", "member" ], "question": "How many different levels do members have?", "question_toks": [ "how", "many", "different", "level", "do", "member", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 5, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "How", "many", "different", "levels", "do", "members", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "level" ], [ "do" ], [ "member" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "level", "NN" ], [ "do", "VBP" ], [ "member", "NN" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(5) T(0)" }, { "db_id": "shop_membership", "query": "SELECT count(DISTINCT LEVEL) FROM member", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "LEVEL", ")", "FROM", "member" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "level", ")", "from", "member" ], "question": "What are the different membership levels?", "question_toks": [ "what", "are", "different", "membership", "level", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 5, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "different", "membership", "levels", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "membership" ], [ "level" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "membership", "NN" ], [ "level", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(5) T(0)" }, { "db_id": "shop_membership", "query": "SELECT card_number , name , hometown FROM member ORDER BY LEVEL DESC", "query_toks": [ "SELECT", "card_number", ",", "name", ",", "hometown", "FROM", "member", "ORDER", "BY", "LEVEL", "DESC" ], "query_toks_no_value": [ "select", "card_number", ",", "name", ",", "hometown", "from", "member", "order", "by", "level", "desc" ], "question": "Show card number, name, and hometown for all members in a descending order of level.", "question_toks": [ "show", "card", "number", ",", "name", ",", "and", "hometown", "for", "all", "member", "in", "a", "descending", "order", "of", "level", "." ], "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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "Show", "card", "number", ",", "name", ",", "and", "hometown", "for", "all", "members", "in", "a", "descending", "order", "of", "level", "." ], "question_arg": [ [ "show" ], [ "card", "number" ], [ "," ], [ "name" ], [ "," ], [ "and" ], [ "hometown" ], [ "for" ], [ "all" ], [ "member" ], [ "in" ], [ "a" ], [ "descending" ], [ "order" ], [ "of" ], [ "level" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "card", "NN" ], [ "number", "NN" ], [ ",", "," ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "hometown", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "member", "NN" ], [ "in", "IN" ], [ "a", "DT" ], [ "descending", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "level", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(0) C(4) T(0) Order(0) A(0) C(5) T(0)" }, { "db_id": "shop_membership", "query": "SELECT card_number , name , hometown FROM member ORDER BY LEVEL DESC", "query_toks": [ "SELECT", "card_number", ",", "name", ",", "hometown", "FROM", "member", "ORDER", "BY", "LEVEL", "DESC" ], "query_toks_no_value": [ "select", "card_number", ",", "name", ",", "hometown", "from", "member", "order", "by", "level", "desc" ], "question": "What are the card numbers, names, and hometowns of every member ordered by descending level?", "question_toks": [ "what", "are", "card", "number", ",", "name", ",", "and", "hometown", "of", "every", "member", "ordered", "by", "descending", "level", "?" ], "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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "card", "numbers", ",", "names", ",", "and", "hometowns", "of", "every", "member", "ordered", "by", "descending", "level", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "card", "number" ], [ "," ], [ "name" ], [ "," ], [ "and" ], [ "hometown" ], [ "of" ], [ "every" ], [ "member" ], [ "ordered" ], [ "by" ], [ "descending" ], [ "level" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "card", "JJ" ], [ "number", "NN" ], [ ",", "," ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "hometown", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "member", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "descending", "VBG" ], [ "level", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(0) C(4) T(0) Order(0) A(0) C(5) T(0)" }, { "db_id": "shop_membership", "query": "SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "LEVEL", "FROM", "member", "GROUP", "BY", "LEVEL", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "level", "from", "member", "group", "by", "level", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the membership level with most number of members.", "question_toks": [ "show", "membership", "level", "with", "most", "number", "of", "member", "." ], "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": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "Show", "the", "membership", "level", "with", "most", "number", "of", "members", "." ], "question_arg": [ [ "show" ], [ "membership" ], [ "level" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "member" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "membership", "NN" ], [ "level", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "member", "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": "shop_membership", "query": "SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "LEVEL", "FROM", "member", "GROUP", "BY", "LEVEL", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "level", "from", "member", "group", "by", "level", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the membership level with the most people?", "question_toks": [ "what", "is", "membership", "level", "with", "most", "people", "?" ], "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": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "membership", "level", "with", "the", "most", "people", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "membership" ], [ "level" ], [ "with" ], [ "most" ], [ "people" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "membership", "NN" ], [ "level", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "people", "NNS" ], [ "?", "." ] ], "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": "shop_membership", "query": "SELECT T3.name , T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year", "query_toks": [ "SELECT", "T3.name", ",", "T2.name", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "JOIN", "member", "AS", "T3", "ON", "T1.member_id", "=", "T3.member_id", "ORDER", "BY", "T1.register_year" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "name", "from", "membership_register_branch", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "join", "member", "as", "t3", "on", "t1", ".", "member_id", "=", "t3", ".", "member_id", "order", "by", "t1", ".", "register_year" ], "question": "Show all member names and registered branch names sorted by register year.", "question_toks": [ "show", "all", "member", "name", "and", "registered", "branch", "name", "sorted", "by", "register", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "Show", "all", "member", "names", "and", "registered", "branch", "names", "sorted", "by", "register", "year", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "member" ], [ "name" ], [ "and" ], [ "registered" ], [ "branch" ], [ "name" ], [ "sorted" ], [ "by" ], [ "register", "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "member", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "registered", "VBD" ], [ "branch", "NN" ], [ "name", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "register", "NN" ], [ "year", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(3) T(0) A(0) C(3) T(1) Order(1) A(0) C(11) T(2)" }, { "db_id": "shop_membership", "query": "SELECT T3.name , T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year", "query_toks": [ "SELECT", "T3.name", ",", "T2.name", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "JOIN", "member", "AS", "T3", "ON", "T1.member_id", "=", "T3.member_id", "ORDER", "BY", "T1.register_year" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "name", "from", "membership_register_branch", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "join", "member", "as", "t3", "on", "t1", ".", "member_id", "=", "t3", ".", "member_id", "order", "by", "t1", ".", "register_year" ], "question": "What are the names of the members and branches at which they are registered sorted by year of registration?", "question_toks": [ "what", "are", "name", "of", "member", "and", "branch", "at", "which", "they", "are", "registered", "sorted", "by", "year", "of", "registration", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "members", "and", "branches", "at", "which", "they", "are", "registered", "sorted", "by", "year", "of", "registration", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "member" ], [ "and" ], [ "branch" ], [ "at" ], [ "which" ], [ "they" ], [ "are" ], [ "registered" ], [ "sorted" ], [ "by" ], [ "year" ], [ "of" ], [ "registration" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "and", "CC" ], [ "branch", "NN" ], [ "at", "IN" ], [ "which", "WDT" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "registered", "VBN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "registration", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(3) T(0) A(0) C(3) T(1) Order(1) A(0) C(11) T(2)" }, { "db_id": "shop_membership", "query": "SELECT T2.name , count(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "WHERE", "T1.register_year", ">", "2015", "GROUP", "BY", "T2.branch_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "membership_register_branch", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "where", "t1", ".", "register_year", ">", "value", "group", "by", "t2", ".", "branch_id" ], "question": "Show all branch names with the number of members in each branch registered after 2015.", "question_toks": [ "show", "all", "branch", "name", "with", "number", "of", "member", "in", "each", "branch", "registered", "after", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 6, 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, 14, false ], null ], 2015.0, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "Show", "all", "branch", "names", "with", "the", "number", "of", "members", "in", "each", "branch", "registered", "after", "2015", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "branch" ], [ "name" ], [ "with" ], [ "number" ], [ "of" ], [ "member" ], [ "in" ], [ "each" ], [ "branch" ], [ "registered" ], [ "after" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "branch", "NN" ], [ "name", "NN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "branch", "NN" ], [ "registered", "VBD" ], [ "after", "IN" ], [ "2015", "CD" ], [ ".", "." ] ], "values": [ "2015" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(3) C(0) T(1) Filter(5) A(0) C(11) T(2) V(0)" }, { "db_id": "shop_membership", "query": "SELECT T2.name , count(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "WHERE", "T1.register_year", ">", "2015", "GROUP", "BY", "T2.branch_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "membership_register_branch", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "where", "t1", ".", "register_year", ">", "value", "group", "by", "t2", ".", "branch_id" ], "question": "For each branch id, what are the names of the branches that were registered after 2015?", "question_toks": [ "for", "each", "branch", "id", ",", "what", "are", "name", "of", "branch", "that", "were", "registered", "after", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 6, 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, 14, false ], null ], 2015.0, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "For", "each", "branch", "id", ",", "what", "are", "the", "names", "of", "the", "branches", "that", "were", "registered", "after", "2015", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "branch", "id" ], [ "," ], [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "branch" ], [ "that" ], [ "were" ], [ "registered" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "branch", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "branch", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "registered", "VBN" ], [ "after", "IN" ], [ "2015", "CD" ], [ "?", "." ] ], "values": [ "2015" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(3) C(0) T(1) Filter(5) A(0) C(11) T(2) V(0)" }, { "db_id": "shop_membership", "query": "SELECT name FROM member WHERE member_id NOT IN (SELECT member_id FROM membership_register_branch)", "query_toks": [ "SELECT", "name", "FROM", "member", "WHERE", "member_id", "NOT", "IN", "(", "SELECT", "member_id", "FROM", "membership_register_branch", ")" ], "query_toks_no_value": [ "select", "name", "from", "member", "where", "member_id", "not", "in", "(", "select", "member_id", "from", "membership_register_branch", ")" ], "question": "Show member names without any registered branch.", "question_toks": [ "show", "member", "name", "without", "any", "registered", "branch", "." ], "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, 12, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "Show", "member", "names", "without", "any", "registered", "branch", "." ], "question_arg": [ [ "show" ], [ "member" ], [ "name" ], [ "without" ], [ "any" ], [ "registered" ], [ "branch" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "member", "NN" ], [ "name", "NN" ], [ "without", "IN" ], [ "any", "DT" ], [ "registered", "JJ" ], [ "branch", "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(2)" }, { "db_id": "shop_membership", "query": "SELECT name FROM member WHERE member_id NOT IN (SELECT member_id FROM membership_register_branch)", "query_toks": [ "SELECT", "name", "FROM", "member", "WHERE", "member_id", "NOT", "IN", "(", "SELECT", "member_id", "FROM", "membership_register_branch", ")" ], "query_toks_no_value": [ "select", "name", "from", "member", "where", "member_id", "not", "in", "(", "select", "member_id", "from", "membership_register_branch", ")" ], "question": "What are the names of the members that have never registered at any branch?", "question_toks": [ "what", "are", "name", "of", "member", "that", "have", "never", "registered", "at", "any", "branch", "?" ], "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, 12, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "members", "that", "have", "never", "registered", "at", "any", "branch", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "member" ], [ "that" ], [ "have" ], [ "never" ], [ "registered" ], [ "at" ], [ "any" ], [ "branch" ], [ "?" ] ], "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" ], [ "member", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "never", "RB" ], [ "registered", "VBN" ], [ "at", "IN" ], [ "any", "DT" ], [ "branch", "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(2)" }, { "db_id": "shop_membership", "query": "SELECT name , city FROM branch WHERE branch_id NOT IN (SELECT branch_id FROM membership_register_branch)", "query_toks": [ "SELECT", "name", ",", "city", "FROM", "branch", "WHERE", "branch_id", "NOT", "IN", "(", "SELECT", "branch_id", "FROM", "membership_register_branch", ")" ], "query_toks_no_value": [ "select", "name", ",", "city", "from", "branch", "where", "branch_id", "not", "in", "(", "select", "branch_id", "from", "membership_register_branch", ")" ], "question": "List the branch name and city without any registered members.", "question_toks": [ "list", "branch", "name", "and", "city", "without", "any", "registered", "member", "." ], "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, 10, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "List", "the", "branch", "name", "and", "city", "without", "any", "registered", "members", "." ], "question_arg": [ [ "list" ], [ "branch" ], [ "name" ], [ "and" ], [ "city" ], [ "without" ], [ "any" ], [ "registered" ], [ "member" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "branch", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "city", "NN" ], [ "without", "IN" ], [ "any", "DT" ], [ "registered", "JJ" ], [ "member", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(0) C(9) T(1) Filter(19) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "shop_membership", "query": "SELECT name , city FROM branch WHERE branch_id NOT IN (SELECT branch_id FROM membership_register_branch)", "query_toks": [ "SELECT", "name", ",", "city", "FROM", "branch", "WHERE", "branch_id", "NOT", "IN", "(", "SELECT", "branch_id", "FROM", "membership_register_branch", ")" ], "query_toks_no_value": [ "select", "name", ",", "city", "from", "branch", "where", "branch_id", "not", "in", "(", "select", "branch_id", "from", "membership_register_branch", ")" ], "question": "What are the names and cities of the branches that do not have any registered members?", "question_toks": [ "what", "are", "name", "and", "city", "of", "branch", "that", "do", "not", "have", "any", "registered", "member", "?" ], "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, 10, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "cities", "of", "the", "branches", "that", "do", "not", "have", "any", "registered", "members", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "city" ], [ "of" ], [ "branch" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "registered" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "city", "NN" ], [ "of", "IN" ], [ "branch", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "registered", "JJ" ], [ "member", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(0) C(9) T(1) Filter(19) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "shop_membership", "query": "SELECT T2.name , T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", ",", "T2.open_year", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "WHERE", "T1.register_year", "=", "2016", "GROUP", "BY", "T2.branch_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "open_year", "from", "membership_register_branch", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "where", "t1", ".", "register_year", "=", "value", "group", "by", "t2", ".", "branch_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name and open year for the branch with most number of memberships registered in 2016?", "question_toks": [ "what", "is", "name", "and", "open", "year", "for", "branch", "with", "most", "number", "of", "membership", "registered", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], 2016.0, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "open", "year", "for", "the", "branch", "with", "most", "number", "of", "memberships", "registered", "in", "2016", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "open", "year" ], [ "for" ], [ "branch" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "membership" ], [ "registered" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "open", "JJ" ], [ "year", "NN" ], [ "for", "IN" ], [ "branch", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "membership", "NN" ], [ "registered", "VBN" ], [ "in", "IN" ], [ "2016", "CD" ], [ "?", "." ] ], "values": [ "2016" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(3) T(1) A(0) C(7) T(1) Sup(0) A(3) C(0) T(1) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "shop_membership", "query": "SELECT T2.name , T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", ",", "T2.open_year", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "WHERE", "T1.register_year", "=", "2016", "GROUP", "BY", "T2.branch_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "open_year", "from", "membership_register_branch", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "where", "t1", ".", "register_year", "=", "value", "group", "by", "t2", ".", "branch_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name and opening year for the branch that registered the most members in 2016?", "question_toks": [ "what", "is", "name", "and", "opening", "year", "for", "branch", "that", "registered", "most", "member", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], 2016.0, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "opening", "year", "for", "the", "branch", "that", "registered", "the", "most", "members", "in", "2016", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "opening" ], [ "year" ], [ "for" ], [ "branch" ], [ "that" ], [ "registered" ], [ "most" ], [ "member" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "opening", "JJ" ], [ "year", "NN" ], [ "for", "IN" ], [ "branch", "NN" ], [ "that", "WDT" ], [ "registered", "VBD" ], [ "most", "RBS" ], [ "member", "NN" ], [ "in", "IN" ], [ "2016", "CD" ], [ "?", "." ] ], "values": [ "2016" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(3) T(1) A(0) C(7) T(1) Sup(0) A(3) C(0) T(1) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "shop_membership", "query": "SELECT T2.name , T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T1.register_year = 2016", "query_toks": [ "SELECT", "T2.name", ",", "T2.hometown", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "member", "AS", "T2", "ON", "T1.member_id", "=", "T2.member_id", "WHERE", "T1.register_year", "=", "2016" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "hometown", "from", "membership_register_branch", "as", "t1", "join", "member", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_id", "where", "t1", ".", "register_year", "=", "value" ], "question": "Show the member name and hometown who registered a branch in 2016.", "question_toks": [ "show", "member", "name", "and", "hometown", "who", "registered", "a", "branch", "in", "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, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], 2016.0, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "Show", "the", "member", "name", "and", "hometown", "who", "registered", "a", "branch", "in", "2016", "." ], "question_arg": [ [ "show" ], [ "member" ], [ "name" ], [ "and" ], [ "hometown" ], [ "who" ], [ "registered" ], [ "a" ], [ "branch" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "member", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "hometown", "NN" ], [ "who", "WP" ], [ "registered", "VBD" ], [ "a", "DT" ], [ "branch", "NN" ], [ "in", "IN" ], [ "2016", "CD" ], [ ".", "." ] ], "values": [ "2016" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "shop_membership", "query": "SELECT T2.name , T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T1.register_year = 2016", "query_toks": [ "SELECT", "T2.name", ",", "T2.hometown", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "member", "AS", "T2", "ON", "T1.member_id", "=", "T2.member_id", "WHERE", "T1.register_year", "=", "2016" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "hometown", "from", "membership_register_branch", "as", "t1", "join", "member", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_id", "where", "t1", ".", "register_year", "=", "value" ], "question": "What are the member names and hometowns of those who registered at a branch in 2016?", "question_toks": [ "what", "are", "member", "name", "and", "hometown", "of", "those", "who", "registered", "at", "a", "branch", "in", "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, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], 2016.0, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "member", "names", "and", "hometowns", "of", "those", "who", "registered", "at", "a", "branch", "in", "2016", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "member" ], [ "name" ], [ "and" ], [ "hometown" ], [ "of" ], [ "those" ], [ "who" ], [ "registered" ], [ "at" ], [ "a" ], [ "branch" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "member", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "hometown", "NN" ], [ "of", "IN" ], [ "those", "DT" ], [ "who", "WP" ], [ "registered", "VBD" ], [ "at", "IN" ], [ "a", "DT" ], [ "branch", "NN" ], [ "in", "IN" ], [ "2016", "CD" ], [ "?", "." ] ], "values": [ "2016" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "shop_membership", "query": "SELECT city FROM branch WHERE open_year = 2001 AND membership_amount > 100", "query_toks": [ "SELECT", "city", "FROM", "branch", "WHERE", "open_year", "=", "2001", "AND", "membership_amount", ">", "100" ], "query_toks_no_value": [ "select", "city", "from", "branch", "where", "open_year", "=", "value", "and", "membership_amount", ">", "value" ], "question": "Show all city with a branch opened in 2001 and a branch with more than 100 membership.", "question_toks": [ "show", "all", "city", "with", "a", "branch", "opened", "in", "year", "and", "a", "branch", "with", "more", "than", "100", "membership", "." ], "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, 2, [ 0, [ 0, 8, false ], null ], 2001.0, null ], "and", [ false, 3, [ 0, [ 0, 11, false ], null ], 100.0, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "Show", "all", "city", "with", "a", "branch", "opened", "in", "2001", "and", "a", "branch", "with", "more", "than", "100", "membership", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "city" ], [ "with" ], [ "a" ], [ "branch" ], [ "opened" ], [ "in" ], [ "year" ], [ "and" ], [ "a" ], [ "branch" ], [ "with" ], [ "more" ], [ "than" ], [ "100" ], [ "membership" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "city", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "branch", "NN" ], [ "opened", "VBN" ], [ "in", "IN" ], [ "2001", "CD" ], [ "and", "CC" ], [ "a", "DT" ], [ "branch", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "membership", "NN" ], [ ".", "." ] ], "values": [ "100", "2001" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(0) Filter(2) A(0) C(7) T(1) V(1) Filter(5) A(0) C(10) T(1) V(0)" }, { "db_id": "shop_membership", "query": "SELECT city FROM branch WHERE open_year = 2001 AND membership_amount > 100", "query_toks": [ "SELECT", "city", "FROM", "branch", "WHERE", "open_year", "=", "2001", "AND", "membership_amount", ">", "100" ], "query_toks_no_value": [ "select", "city", "from", "branch", "where", "open_year", "=", "value", "and", "membership_amount", ">", "value" ], "question": "What are the cities that have a branch that opened in 2001 and a branch with more than 100 members?", "question_toks": [ "what", "are", "city", "that", "have", "a", "branch", "that", "opened", "in", "year", "and", "a", "branch", "with", "more", "than", "100", "member", "?" ], "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, 2, [ 0, [ 0, 8, false ], null ], 2001.0, null ], "and", [ false, 3, [ 0, [ 0, 11, false ], null ], 100.0, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "cities", "that", "have", "a", "branch", "that", "opened", "in", "2001", "and", "a", "branch", "with", "more", "than", "100", "members", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "city" ], [ "that" ], [ "have" ], [ "a" ], [ "branch" ], [ "that" ], [ "opened" ], [ "in" ], [ "year" ], [ "and" ], [ "a" ], [ "branch" ], [ "with" ], [ "more" ], [ "than" ], [ "100" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "city", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "branch", "NN" ], [ "that", "WDT" ], [ "opened", "VBD" ], [ "in", "IN" ], [ "2001", "CD" ], [ "and", "CC" ], [ "a", "DT" ], [ "branch", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "member", "NN" ], [ "?", "." ] ], "values": [ "100", "2001" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(0) Filter(2) A(0) C(7) T(1) V(1) Filter(5) A(0) C(10) T(1) V(0)" }, { "db_id": "shop_membership", "query": "SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount > 100", "query_toks": [ "SELECT", "city", "FROM", "branch", "EXCEPT", "SELECT", "city", "FROM", "branch", "WHERE", "membership_amount", ">", "100" ], "query_toks_no_value": [ "select", "city", "from", "branch", "except", "select", "city", "from", "branch", "where", "membership_amount", ">", "value" ], "question": "Show all cities without a branch having more than 100 memberships.", "question_toks": [ "show", "all", "city", "without", "a", "branch", "having", "more", "than", "100", "membership", "." ], "sql": { "except": { "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 ], 100.0, 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": [] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "Show", "all", "cities", "without", "a", "branch", "having", "more", "than", "100", "memberships", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "city" ], [ "without" ], [ "a" ], [ "branch" ], [ "having" ], [ "more" ], [ "than" ], [ "100" ], [ "membership" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "city", "NN" ], [ "without", "IN" ], [ "a", "DT" ], [ "branch", "NN" ], [ "having", "VBG" ], [ "more", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "membership", "NN" ], [ ".", "." ] ], "values": [ "100" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(9) T(1) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(5) A(0) C(10) T(1) V(0)" }, { "db_id": "shop_membership", "query": "SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount > 100", "query_toks": [ "SELECT", "city", "FROM", "branch", "EXCEPT", "SELECT", "city", "FROM", "branch", "WHERE", "membership_amount", ">", "100" ], "query_toks_no_value": [ "select", "city", "from", "branch", "except", "select", "city", "from", "branch", "where", "membership_amount", ">", "value" ], "question": "What are the cities that do not have any branches with more than 100 members?", "question_toks": [ "what", "are", "city", "that", "do", "not", "have", "any", "branch", "with", "more", "than", "100", "member", "?" ], "sql": { "except": { "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 ], 100.0, 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": [] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "cities", "that", "do", "not", "have", "any", "branches", "with", "more", "than", "100", "members", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "city" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "branch" ], [ "with" ], [ "more" ], [ "than" ], [ "100" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "city", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "branch", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "member", "NN" ], [ "?", "." ] ], "values": [ "100" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(9) T(1) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(5) A(0) C(10) T(1) V(0)" }, { "db_id": "shop_membership", "query": "SELECT sum(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T2.city = 'London' AND T1.year = 2018", "query_toks": [ "SELECT", "sum", "(", "total_pounds", ")", "FROM", "purchase", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "WHERE", "T2.city", "=", "'London", "'", "AND", "T1.year", "=", "2018" ], "query_toks_no_value": [ "select", "sum", "(", "total_pounds", ")", "from", "purchase", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "where", "t2", ".", "city", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "What is the sum of total pounds of purchase in year 2018 for all branches in London?", "question_toks": [ "what", "is", "sum", "of", "total", "pound", "of", "purchase", "in", "year", "year", "for", "all", "branch", "in", "london", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"London\"", null ], "and", [ false, 2, [ 0, [ 0, 17, false ], null ], 2018.0, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "sum", "of", "total", "pounds", "of", "purchase", "in", "year", "2018", "for", "all", "branches", "in", "London", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "sum" ], [ "of" ], [ "total", "pound" ], [ "of" ], [ "purchase" ], [ "in" ], [ "year" ], [ "year" ], [ "for" ], [ "all" ], [ "branch" ], [ "in" ], [ "london" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "city" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "sum", "NN" ], [ "of", "IN" ], [ "total", "JJ" ], [ "pound", "NN" ], [ "of", "IN" ], [ "purchase", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2018", "CD" ], [ "for", "IN" ], [ "all", "DT" ], [ "branch", "NN" ], [ "in", "IN" ], [ "london", "NN" ], [ "?", "." ] ], "values": [ "London", "2018" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(13) T(3) Filter(0) Filter(2) A(0) C(9) T(1) V(0) Filter(2) A(0) C(12) T(3) V(1)" }, { "db_id": "shop_membership", "query": "SELECT sum(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T2.city = 'London' AND T1.year = 2018", "query_toks": [ "SELECT", "sum", "(", "total_pounds", ")", "FROM", "purchase", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "WHERE", "T2.city", "=", "'London", "'", "AND", "T1.year", "=", "2018" ], "query_toks_no_value": [ "select", "sum", "(", "total_pounds", ")", "from", "purchase", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "where", "t2", ".", "city", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "How many total pounds were purchased in the year 2018 at all London branches?", "question_toks": [ "how", "many", "total", "pound", "were", "purchased", "in", "year", "year", "at", "all", "london", "branch", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"London\"", null ], "and", [ false, 2, [ 0, [ 0, 17, false ], null ], 2018.0, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "How", "many", "total", "pounds", "were", "purchased", "in", "the", "year", "2018", "at", "all", "London", "branches", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "total", "pound" ], [ "were" ], [ "purchased" ], [ "in" ], [ "year" ], [ "year" ], [ "at" ], [ "all" ], [ "london" ], [ "branch" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "total", "JJ" ], [ "pound", "NN" ], [ "were", "VBD" ], [ "purchased", "VBN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2018", "CD" ], [ "at", "IN" ], [ "all", "DT" ], [ "london", "FW" ], [ "branch", "NN" ], [ "?", "." ] ], "values": [ "London", "2018" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(13) T(3) Filter(0) Filter(2) A(0) C(9) T(1) V(0) Filter(2) A(0) C(12) T(3) V(1)" }, { "db_id": "shop_membership", "query": "SELECT count(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "purchase", "AS", "T1", "JOIN", "member", "AS", "T2", "ON", "T1.member_id", "=", "T2.member_id", "WHERE", "T2.level", "=", "6" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "purchase", "as", "t1", "join", "member", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_id", "where", "t2", ".", "level", "=", "value" ], "question": "What is the total number of purchases for members with level 6?", "question_toks": [ "what", "is", "total", "number", "of", "purchase", "for", "member", "with", "level", "6", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "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, 5, false ], null ], 6.0, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "purchases", "for", "members", "with", "level", "6", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "purchase" ], [ "for" ], [ "member" ], [ "with" ], [ "level" ], [ "6" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "purchase", "NN" ], [ "for", "IN" ], [ "member", "NN" ], [ "with", "IN" ], [ "level", "NN" ], [ "6", "CD" ], [ "?", "." ] ], "values": [ "6" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "shop_membership", "query": "SELECT count(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "purchase", "AS", "T1", "JOIN", "member", "AS", "T2", "ON", "T1.member_id", "=", "T2.member_id", "WHERE", "T2.level", "=", "6" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "purchase", "as", "t1", "join", "member", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_id", "where", "t2", ".", "level", "=", "value" ], "question": "What are the total purchases for members rated at level 6?", "question_toks": [ "what", "are", "total", "purchase", "for", "member", "rated", "at", "level", "6", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "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, 5, false ], null ], 6.0, null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "total", "purchases", "for", "members", "rated", "at", "level", "6", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "total" ], [ "purchase" ], [ "for" ], [ "member" ], [ "rated" ], [ "at" ], [ "level" ], [ "6" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "purchase", "NN" ], [ "for", "IN" ], [ "member", "NN" ], [ "rated", "VBN" ], [ "at", "IN" ], [ "level", "NN" ], [ "6", "CD" ], [ "?", "." ] ], "values": [ "6" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "shop_membership", "query": "SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Louisville , Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Hiram , Georgia'", "query_toks": [ "SELECT", "T2.name", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "JOIN", "member", "AS", "T3", "ON", "T1.member_id", "=", "T3.member_id", "WHERE", "T3.Hometown", "=", "'Louisville", ",", "Kentucky", "'", "INTERSECT", "SELECT", "T2.name", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "JOIN", "member", "AS", "T3", "ON", "T1.member_id", "=", "T3.member_id", "WHERE", "T3.Hometown", "=", "'Hiram", ",", "Georgia", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "membership_register_branch", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "join", "member", "as", "t3", "on", "t1", ".", "member_id", "=", "t3", ".", "member_id", "where", "t3", ".", "hometown", "=", "value", "intersect", "select", "t2", ".", "name", "from", "membership_register_branch", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "join", "member", "as", "t3", "on", "t1", ".", "member_id", "=", "t3", ".", "member_id", "where", "t3", ".", "hometown", "=", "value" ], "question": "Find the name of branches where have some members whose hometown is in Louisville, Kentucky and some in Hiram, Georgia.", "question_toks": [ "find", "name", "of", "branch", "where", "have", "some", "member", "whose", "hometown", "is", "in", "louisville", ",", "kentucky", "and", "some", "in", "hiram", ",", "georgia", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Hiram , Georgia\"", 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, 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, 4, false ], null ], "\"Louisville , Kentucky\"", null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "Find", "the", "name", "of", "branches", "where", "have", "some", "members", "whose", "hometown", "is", "in", "Louisville", ",", "Kentucky", "and", "some", "in", "Hiram", ",", "Georgia", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "branch" ], [ "where" ], [ "have" ], [ "some" ], [ "member" ], [ "whose" ], [ "hometown" ], [ "is" ], [ "in" ], [ "louisville" ], [ "," ], [ "kentucky" ], [ "and" ], [ "some" ], [ "in" ], [ "hiram" ], [ "," ], [ "georgia" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "branch", "NN" ], [ "where", "WRB" ], [ "have", "VBP" ], [ "some", "DT" ], [ "member", "NN" ], [ "whose", "WP$" ], [ "hometown", "NN" ], [ "is", "VBZ" ], [ "in", "IN" ], [ "louisville", "NN" ], [ ",", "," ], [ "kentucky", "NN" ], [ "and", "CC" ], [ "some", "DT" ], [ "in", "IN" ], [ "hiram", "NN" ], [ ",", "," ], [ "georgia", "NN" ], [ ".", "." ] ], "values": [ "Louisville , Kentucky", "Hiram , Georgia" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(3) 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(2) A(0) C(4) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(3) 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(2) A(0) C(4) T(0) V(1)" }, { "db_id": "shop_membership", "query": "SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Louisville , Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Hiram , Georgia'", "query_toks": [ "SELECT", "T2.name", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "JOIN", "member", "AS", "T3", "ON", "T1.member_id", "=", "T3.member_id", "WHERE", "T3.Hometown", "=", "'Louisville", ",", "Kentucky", "'", "INTERSECT", "SELECT", "T2.name", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "JOIN", "member", "AS", "T3", "ON", "T1.member_id", "=", "T3.member_id", "WHERE", "T3.Hometown", "=", "'Hiram", ",", "Georgia", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "membership_register_branch", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "join", "member", "as", "t3", "on", "t1", ".", "member_id", "=", "t3", ".", "member_id", "where", "t3", ".", "hometown", "=", "value", "intersect", "select", "t2", ".", "name", "from", "membership_register_branch", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "join", "member", "as", "t3", "on", "t1", ".", "member_id", "=", "t3", ".", "member_id", "where", "t3", ".", "hometown", "=", "value" ], "question": "What are the names of the branches that have some members with a hometown in Louisville, Kentucky and also those from Hiram, Goergia?", "question_toks": [ "what", "are", "name", "of", "branch", "that", "have", "some", "member", "with", "a", "hometown", "in", "louisville", ",", "kentucky", "and", "also", "those", "from", "hiram", ",", "goergia", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Hiram , Georgia\"", 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, 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, 4, false ], null ], "\"Louisville , Kentucky\"", null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "branches", "that", "have", "some", "members", "with", "a", "hometown", "in", "Louisville", ",", "Kentucky", "and", "also", "those", "from", "Hiram", ",", "Goergia", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "branch" ], [ "that" ], [ "have" ], [ "some" ], [ "member" ], [ "with" ], [ "a" ], [ "hometown" ], [ "in" ], [ "louisville" ], [ "," ], [ "kentucky" ], [ "and" ], [ "also" ], [ "those" ], [ "from" ], [ "hiram" ], [ "," ], [ "goergia" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "branch", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "some", "DT" ], [ "member", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "hometown", "NN" ], [ "in", "IN" ], [ "louisville", "NN" ], [ ",", "," ], [ "kentucky", "NN" ], [ "and", "CC" ], [ "also", "RB" ], [ "those", "DT" ], [ "from", "IN" ], [ "hiram", "NN" ], [ ",", "," ], [ "goergia", "NN" ], [ "?", "." ] ], "values": [ "Louisville , Kentucky", "Hiram , Georgia" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(3) 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(2) A(0) C(4) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(3) 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(2) A(0) C(4) T(0) V(1)" }, { "db_id": "shop_membership", "query": "SELECT card_number FROM member WHERE Hometown LIKE \"%Kentucky%\"", "query_toks": [ "SELECT", "card_number", "FROM", "member", "WHERE", "Hometown", "LIKE", "``", "%", "Kentucky", "%", "''" ], "query_toks_no_value": [ "select", "card_number", "from", "member", "where", "hometown", "like", "value" ], "question": "list the card number of all members whose hometown address includes word \"Kentucky\".", "question_toks": [ "list", "card", "number", "of", "all", "member", "whose", "hometown", "address", "includes", "word", "'", "kentucky", "'", "." ], "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, 4, false ], null ], "\"%Kentucky%\"", null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "list", "the", "card", "number", "of", "all", "members", "whose", "hometown", "address", "includes", "word", "``", "Kentucky", "''", "." ], "question_arg": [ [ "list" ], [ "card", "number" ], [ "of" ], [ "all" ], [ "member" ], [ "whose" ], [ "hometown" ], [ "address" ], [ "includes" ], [ "word" ], [ "'" ], [ "kentucky" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "card", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "member", "NN" ], [ "whose", "WP$" ], [ "hometown", "JJ" ], [ "address", "NN" ], [ "includes", "VBZ" ], [ "word", "NN" ], [ "'", "''" ], [ "kentucky", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Kentucky" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(9) A(0) C(4) T(0) V(0)" }, { "db_id": "shop_membership", "query": "SELECT card_number FROM member WHERE Hometown LIKE \"%Kentucky%\"", "query_toks": [ "SELECT", "card_number", "FROM", "member", "WHERE", "Hometown", "LIKE", "``", "%", "Kentucky", "%", "''" ], "query_toks_no_value": [ "select", "card_number", "from", "member", "where", "hometown", "like", "value" ], "question": "What are the card numbers of members from Kentucky?", "question_toks": [ "what", "are", "card", "number", "of", "member", "from", "kentucky", "?" ], "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, 4, false ], null ], "\"%Kentucky%\"", null ] ] }, "names": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "name", "open year", "address road", "city", "membership amount", "member id", "branch id", "register year", "member id", "branch id", "year", "total pounds" ], "table_names": [ "member", "branch", "membership register branch", "purchase" ], "col_set": [ "*", "member id", "card number", "name", "hometown", "level", "branch id", "open year", "address road", "city", "membership amount", "register year", "year", "total pounds" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "13": 6, "6": 6, "12": 12, "1": 1, "16": 6, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "card", "numbers", "of", "members", "from", "Kentucky", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "card", "number" ], [ "of" ], [ "member" ], [ "from" ], [ "kentucky" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "card", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "from", "IN" ], [ "kentucky", "NN" ], [ "?", "." ] ], "values": [ "Kentucky" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(9) A(0) C(4) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT count(*) FROM STUDENT", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "STUDENT" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student" ], "question": "Find the number of students in total.", "question_toks": [ "find", "number", "of", "student", "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "students", "in", "total", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "student" ], [ "in" ], [ "total" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "in", "IN" ], [ "total", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "voter_2", "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 in total?", "question_toks": [ "how", "many", "student", "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "How", "many", "students", "are", "there", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "there" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "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": "voter_2", "query": "SELECT count(*) FROM VOTING_RECORD", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "VOTING_RECORD" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "voting_record" ], "question": "Find the number of voting records in total.", "question_toks": [ "find", "number", "of", "voting", "record", "in", "total", "." ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "voting", "records", "in", "total", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "voting", "record" ], [ "in" ], [ "total" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "voting", "NN" ], [ "record", "NN" ], [ "in", "IN" ], [ "total", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "voter_2", "query": "SELECT count(*) FROM VOTING_RECORD", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "VOTING_RECORD" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "voting_record" ], "question": "How many voting records do we have?", "question_toks": [ "how", "many", "voting", "record", "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "How", "many", "voting", "records", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "voting", "record" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "voting", "NN" ], [ "record", "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": "voter_2", "query": "SELECT count(DISTINCT President_Vote) FROM VOTING_RECORD", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "President_Vote", ")", "FROM", "VOTING_RECORD" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "president_vote", ")", "from", "voting_record" ], "question": "Find the distinct number of president votes.", "question_toks": [ "find", "distinct", "number", "of", "president", "vote", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "distinct", "number", "of", "president", "votes", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "number" ], [ "of" ], [ "president", "vote" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "president", "NN" ], [ "vote", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(11) T(1)" }, { "db_id": "voter_2", "query": "SELECT count(DISTINCT President_Vote) FROM VOTING_RECORD", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "President_Vote", ")", "FROM", "VOTING_RECORD" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "president_vote", ")", "from", "voting_record" ], "question": "How many distinct president votes are recorded?", "question_toks": [ "how", "many", "distinct", "president", "vote", "are", "recorded", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "How", "many", "distinct", "president", "votes", "are", "recorded", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "president", "vote" ], [ "are" ], [ "recorded" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "president", "NN" ], [ "vote", "NN" ], [ "are", "VBP" ], [ "recorded", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(11) T(1)" }, { "db_id": "voter_2", "query": "SELECT max(Age) FROM STUDENT", "query_toks": [ "SELECT", "max", "(", "Age", ")", "FROM", "STUDENT" ], "query_toks_no_value": [ "select", "max", "(", "age", ")", "from", "student" ], "question": "Find the maximum age of all the students.", "question_toks": [ "find", "maximum", "age", "of", "all", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "maximum", "age", "of", "all", "the", "students", "." ], "question_arg": [ [ "find" ], [ "maximum" ], [ "age" ], [ "of" ], [ "all" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "maximum", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(1) C(4) T(0)" }, { "db_id": "voter_2", "query": "SELECT max(Age) FROM STUDENT", "query_toks": [ "SELECT", "max", "(", "Age", ")", "FROM", "STUDENT" ], "query_toks_no_value": [ "select", "max", "(", "age", ")", "from", "student" ], "question": "What is the oldest age among the students?", "question_toks": [ "what", "is", "oldest", "age", "among", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "is", "the", "oldest", "age", "among", "the", "students", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "oldest" ], [ "age" ], [ "among" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "oldest", "JJ" ], [ "age", "NN" ], [ "among", "IN" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(1) C(4) T(0)" }, { "db_id": "voter_2", "query": "SELECT LName FROM STUDENT WHERE Major = 50", "query_toks": [ "SELECT", "LName", "FROM", "STUDENT", "WHERE", "Major", "=", "50" ], "query_toks_no_value": [ "select", "lname", "from", "student", "where", "major", "=", "value" ], "question": "Find the last names of students with major 50.", "question_toks": [ "find", "last", "name", "of", "student", "with", "major", "50", "." ], "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 ], 50.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "last", "names", "of", "students", "with", "major", "50", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "with" ], [ "major" ], [ "50" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "major", "JJ" ], [ "50", "CD" ], [ ".", "." ] ], "values": [ "50" ], "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": "voter_2", "query": "SELECT LName FROM STUDENT WHERE Major = 50", "query_toks": [ "SELECT", "LName", "FROM", "STUDENT", "WHERE", "Major", "=", "50" ], "query_toks_no_value": [ "select", "lname", "from", "student", "where", "major", "=", "value" ], "question": "What are the last names of students studying major 50?", "question_toks": [ "what", "are", "last", "name", "of", "student", "studying", "major", "50", "?" ], "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 ], 50.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "are", "the", "last", "names", "of", "students", "studying", "major", "50", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "studying" ], [ "major" ], [ "50" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "studying", "VBG" ], [ "major", "JJ" ], [ "50", "CD" ], [ "?", "." ] ], "values": [ "50" ], "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": "voter_2", "query": "SELECT Fname FROM STUDENT WHERE Age > 22", "query_toks": [ "SELECT", "Fname", "FROM", "STUDENT", "WHERE", "Age", ">", "22" ], "query_toks_no_value": [ "select", "fname", "from", "student", "where", "age", ">", "value" ], "question": "Find the first names of students with age above 22.", "question_toks": [ "find", "first", "name", "of", "student", "with", "age", "above", "22", "." ], "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, 3, [ 0, [ 0, 4, false ], null ], 22.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "first", "names", "of", "students", "with", "age", "above", "22", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "with" ], [ "age" ], [ "above" ], [ "22" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "age", "NN" ], [ "above", "IN" ], [ "22", "CD" ], [ ".", "." ] ], "values": [ "1", "22" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(5) A(0) C(4) T(0) V(1)" }, { "db_id": "voter_2", "query": "SELECT Fname FROM STUDENT WHERE Age > 22", "query_toks": [ "SELECT", "Fname", "FROM", "STUDENT", "WHERE", "Age", ">", "22" ], "query_toks_no_value": [ "select", "fname", "from", "student", "where", "age", ">", "value" ], "question": "What are the first names of all the students aged above 22?", "question_toks": [ "what", "are", "first", "name", "of", "all", "student", "aged", "above", "22", "?" ], "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, 3, [ 0, [ 0, 4, false ], null ], 22.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "all", "the", "students", "aged", "above", "22", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "of" ], [ "all" ], [ "student" ], [ "aged" ], [ "above" ], [ "22" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "aged", "VBN" ], [ "above", "IN" ], [ "22", "CD" ], [ "?", "." ] ], "values": [ "1", "22" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(5) A(0) C(4) T(0) V(1)" }, { "db_id": "voter_2", "query": "SELECT Major FROM STUDENT WHERE Sex = \"M\"", "query_toks": [ "SELECT", "Major", "FROM", "STUDENT", "WHERE", "Sex", "=", "``", "M", "''" ], "query_toks_no_value": [ "select", "major", "from", "student", "where", "sex", "=", "value" ], "question": "What are the majors of male (sex is M) students?", "question_toks": [ "what", "are", "major", "of", "male", "(", "sex", "is", "m", ")", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"M\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "are", "the", "majors", "of", "male", "(", "sex", "is", "M", ")", "students", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "major" ], [ "of" ], [ "male" ], [ "(" ], [ "sex" ], [ "is" ], [ "m" ], [ ")" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "major", "JJ" ], [ "of", "IN" ], [ "male", "NN" ], [ "(", "(" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "m", "VBN" ], [ ")", ")" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "M" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT Major FROM STUDENT WHERE Sex = \"M\"", "query_toks": [ "SELECT", "Major", "FROM", "STUDENT", "WHERE", "Sex", "=", "``", "M", "''" ], "query_toks_no_value": [ "select", "major", "from", "student", "where", "sex", "=", "value" ], "question": "List the major of each male student.", "question_toks": [ "list", "major", "of", "each", "male", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"M\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "List", "the", "major", "of", "each", "male", "student", "." ], "question_arg": [ [ "list" ], [ "major" ], [ "of" ], [ "each" ], [ "male" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "major", "JJ" ], [ "of", "IN" ], [ "each", "DT" ], [ "male", "JJ" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "M" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT avg(Age) FROM STUDENT WHERE Sex = \"F\"", "query_toks": [ "SELECT", "avg", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Sex", "=", "``", "F", "''" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "student", "where", "sex", "=", "value" ], "question": "What is the average age of female (sex is F) students?", "question_toks": [ "what", "is", "average", "age", "of", "female", "(", "sex", "is", "f", ")", "student", "?" ], "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": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "age", "of", "female", "(", "sex", "is", "F", ")", "students", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "of" ], [ "female" ], [ "(" ], [ "sex" ], [ "is" ], [ "f" ], [ ")" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "female", "NN" ], [ "(", "(" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "f", "VBN" ], [ ")", ")" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "F" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT avg(Age) FROM STUDENT WHERE Sex = \"F\"", "query_toks": [ "SELECT", "avg", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Sex", "=", "``", "F", "''" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "student", "where", "sex", "=", "value" ], "question": "Find the average age of female students.", "question_toks": [ "find", "average", "age", "of", "female", "student", "." ], "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": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "average", "age", "of", "female", "students", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "age" ], [ "of" ], [ "female" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "female", "JJ" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "F" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT max(Age) , min(Age) FROM STUDENT WHERE Major = 600", "query_toks": [ "SELECT", "max", "(", "Age", ")", ",", "min", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "600" ], "query_toks_no_value": [ "select", "max", "(", "age", ")", ",", "min", "(", "age", ")", "from", "student", "where", "major", "=", "value" ], "question": "What are the maximum and minimum age of students with major 600?", "question_toks": [ "what", "are", "maximum", "and", "minimum", "age", "of", "student", "with", "major", "600", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 4, false ], null ] ], [ 2, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], 600.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "are", "the", "maximum", "and", "minimum", "age", "of", "students", "with", "major", "600", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "age" ], [ "of" ], [ "student" ], [ "with" ], [ "major" ], [ "600" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "major", "JJ" ], [ "600", "CD" ], [ "?", "." ] ], "values": [ "600" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(4) T(0) A(2) C(4) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT max(Age) , min(Age) FROM STUDENT WHERE Major = 600", "query_toks": [ "SELECT", "max", "(", "Age", ")", ",", "min", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "600" ], "query_toks_no_value": [ "select", "max", "(", "age", ")", ",", "min", "(", "age", ")", "from", "student", "where", "major", "=", "value" ], "question": "Tell me the ages of the oldest and youngest students studying major 600.", "question_toks": [ "tell", "me", "age", "of", "oldest", "and", "youngest", "student", "studying", "major", "600", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 4, false ], null ] ], [ 2, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], 600.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Tell", "me", "the", "ages", "of", "the", "oldest", "and", "youngest", "students", "studying", "major", "600", "." ], "question_arg": [ [ "tell" ], [ "me" ], [ "age" ], [ "of" ], [ "oldest" ], [ "and" ], [ "youngest" ], [ "student" ], [ "studying" ], [ "major" ], [ "600" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "tell", "VB" ], [ "me", "PRP" ], [ "age", "NN" ], [ "of", "IN" ], [ "oldest", "JJS" ], [ "and", "CC" ], [ "youngest", "JJS" ], [ "student", "NN" ], [ "studying", "VBG" ], [ "major", "JJ" ], [ "600", "CD" ], [ ".", "." ] ], "values": [ "600" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(4) T(0) A(2) C(4) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT Advisor FROM STUDENT WHERE city_code = \"BAL\"", "query_toks": [ "SELECT", "Advisor", "FROM", "STUDENT", "WHERE", "city_code", "=", "``", "BAL", "''" ], "query_toks_no_value": [ "select", "advisor", "from", "student", "where", "city_code", "=", "value" ], "question": "Who are the advisors for students that live in a city with city code \"BAL\"?", "question_toks": [ "who", "are", "advisor", "for", "student", "that", "live", "in", "a", "city", "with", "city", "code", "'", "bal", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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, 8, false ], null ], "\"BAL\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Who", "are", "the", "advisors", "for", "students", "that", "live", "in", "a", "city", "with", "city", "code", "``", "BAL", "''", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "advisor" ], [ "for" ], [ "student" ], [ "that" ], [ "live" ], [ "in" ], [ "a" ], [ "city" ], [ "with" ], [ "city", "code" ], [ "'" ], [ "bal" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "advisor", "VBN" ], [ "for", "IN" ], [ "student", "NN" ], [ "that", "WDT" ], [ "live", "VBP" ], [ "in", "IN" ], [ "a", "DT" ], [ "city", "NN" ], [ "with", "IN" ], [ "city", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "bal", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "BAL" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(0) Filter(2) A(0) C(8) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT Advisor FROM STUDENT WHERE city_code = \"BAL\"", "query_toks": [ "SELECT", "Advisor", "FROM", "STUDENT", "WHERE", "city_code", "=", "``", "BAL", "''" ], "query_toks_no_value": [ "select", "advisor", "from", "student", "where", "city_code", "=", "value" ], "question": "Show the advisors of the students whose city of residence has city code \"BAL\".", "question_toks": [ "show", "advisor", "of", "student", "whose", "city", "of", "residence", "ha", "city", "code", "'", "bal", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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, 8, false ], null ], "\"BAL\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Show", "the", "advisors", "of", "the", "students", "whose", "city", "of", "residence", "has", "city", "code", "``", "BAL", "''", "." ], "question_arg": [ [ "show" ], [ "advisor" ], [ "of" ], [ "student" ], [ "whose" ], [ "city" ], [ "of" ], [ "residence" ], [ "ha" ], [ "city", "code" ], [ "'" ], [ "bal" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "advisor", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "city", "NN" ], [ "of", "IN" ], [ "residence", "NN" ], [ "ha", "NN" ], [ "city", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "bal", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "BAL" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(0) Filter(2) A(0) C(8) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT Secretary_Vote FROM VOTING_RECORD WHERE ELECTION_CYCLE = \"Fall\"", "query_toks": [ "SELECT", "DISTINCT", "Secretary_Vote", "FROM", "VOTING_RECORD", "WHERE", "ELECTION_CYCLE", "=", "``", "Fall", "''" ], "query_toks_no_value": [ "select", "distinct", "secretary_vote", "from", "voting_record", "where", "election_cycle", "=", "value" ], "question": "What are the distinct secretary votes in the fall election cycle?", "question_toks": [ "what", "are", "distinct", "secretary", "vote", "in", "fall", "election", "cycle", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Fall\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "are", "the", "distinct", "secretary", "votes", "in", "the", "fall", "election", "cycle", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "secretary", "vote" ], [ "in" ], [ "fall" ], [ "election", "cycle" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "secretary", "NN" ], [ "vote", "NN" ], [ "in", "IN" ], [ "fall", "NN" ], [ "election", "NN" ], [ "cycle", "NN" ], [ "?", "." ] ], "values": [ "Fall" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(13) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT Secretary_Vote FROM VOTING_RECORD WHERE ELECTION_CYCLE = \"Fall\"", "query_toks": [ "SELECT", "DISTINCT", "Secretary_Vote", "FROM", "VOTING_RECORD", "WHERE", "ELECTION_CYCLE", "=", "``", "Fall", "''" ], "query_toks_no_value": [ "select", "distinct", "secretary_vote", "from", "voting_record", "where", "election_cycle", "=", "value" ], "question": "Return all the distinct secretary votes made in the fall election cycle.", "question_toks": [ "return", "all", "distinct", "secretary", "vote", "made", "in", "fall", "election", "cycle", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Fall\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Return", "all", "the", "distinct", "secretary", "votes", "made", "in", "the", "fall", "election", "cycle", "." ], "question_arg": [ [ "return" ], [ "all" ], [ "distinct" ], [ "secretary", "vote" ], [ "made" ], [ "in" ], [ "fall" ], [ "election", "cycle" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "secretary", "NN" ], [ "vote", "NN" ], [ "made", "VBD" ], [ "in", "IN" ], [ "fall", "JJ" ], [ "election", "NN" ], [ "cycle", "NN" ], [ ".", "." ] ], "values": [ "Fall" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(13) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT PRESIDENT_Vote FROM VOTING_RECORD WHERE Registration_Date = \"08/30/2015\"", "query_toks": [ "SELECT", "DISTINCT", "PRESIDENT_Vote", "FROM", "VOTING_RECORD", "WHERE", "Registration_Date", "=", "``", "08/30/2015", "''" ], "query_toks_no_value": [ "select", "distinct", "president_vote", "from", "voting_record", "where", "registration_date", "=", "value" ], "question": "What are the distinct president votes on 08/30/2015?", "question_toks": [ "what", "are", "distinct", "president", "vote", "on", "08/30/2015", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"08/30/2015\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "are", "the", "distinct", "president", "votes", "on", "08/30/2015", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "president", "vote" ], [ "on" ], [ "08/30/2015" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "president", "NN" ], [ "vote", "NN" ], [ "on", "IN" ], [ "08/30/2015", "CD" ], [ "?", "." ] ], "values": [ "8", "30", "2015", "08/30/2015", "2015-08-30" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(11) T(1) Filter(2) A(0) C(9) T(1) V(3)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT PRESIDENT_Vote FROM VOTING_RECORD WHERE Registration_Date = \"08/30/2015\"", "query_toks": [ "SELECT", "DISTINCT", "PRESIDENT_Vote", "FROM", "VOTING_RECORD", "WHERE", "Registration_Date", "=", "``", "08/30/2015", "''" ], "query_toks_no_value": [ "select", "distinct", "president_vote", "from", "voting_record", "where", "registration_date", "=", "value" ], "question": "Show all the distinct president votes made on 08/30/2015.", "question_toks": [ "show", "all", "distinct", "president", "vote", "made", "on", "08/30/2015", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"08/30/2015\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Show", "all", "the", "distinct", "president", "votes", "made", "on", "08/30/2015", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "distinct" ], [ "president", "vote" ], [ "made" ], [ "on" ], [ "08/30/2015" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "president", "NN" ], [ "vote", "NN" ], [ "made", "VBD" ], [ "on", "IN" ], [ "08/30/2015", "CD" ], [ ".", "." ] ], "values": [ "8", "30", "2015", "08/30/2015", "2015-08-30" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(11) T(1) Filter(2) A(0) C(9) T(1) V(3)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT Registration_Date , Election_Cycle FROM VOTING_RECORD", "query_toks": [ "SELECT", "DISTINCT", "Registration_Date", ",", "Election_Cycle", "FROM", "VOTING_RECORD" ], "query_toks_no_value": [ "select", "distinct", "registration_date", ",", "election_cycle", "from", "voting_record" ], "question": "Report the distinct registration date and the election cycle.", "question_toks": [ "report", "distinct", "registration", "date", "and", "election", "cycle", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Report", "the", "distinct", "registration", "date", "and", "the", "election", "cycle", "." ], "question_arg": [ [ "report" ], [ "distinct" ], [ "registration", "date" ], [ "and" ], [ "election", "cycle" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "report", "NN" ], [ "distinct", "VBZ" ], [ "registration", "NN" ], [ "date", "NN" ], [ "and", "CC" ], [ "election", "NN" ], [ "cycle", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(9) T(1) A(0) C(10) T(1)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT Registration_Date , Election_Cycle FROM VOTING_RECORD", "query_toks": [ "SELECT", "DISTINCT", "Registration_Date", ",", "Election_Cycle", "FROM", "VOTING_RECORD" ], "query_toks_no_value": [ "select", "distinct", "registration_date", ",", "election_cycle", "from", "voting_record" ], "question": "What are the distinct registration dates and the election cycles?", "question_toks": [ "what", "are", "distinct", "registration", "date", "and", "election", "cycle", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "are", "the", "distinct", "registration", "dates", "and", "the", "election", "cycles", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "registration", "date" ], [ "and" ], [ "election", "cycle" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "registration", "NN" ], [ "date", "NN" ], [ "and", "CC" ], [ "election", "NN" ], [ "cycle", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(9) T(1) A(0) C(10) T(1)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT President_Vote , VICE_President_Vote FROM VOTING_RECORD", "query_toks": [ "SELECT", "DISTINCT", "President_Vote", ",", "VICE_President_Vote", "FROM", "VOTING_RECORD" ], "query_toks_no_value": [ "select", "distinct", "president_vote", ",", "vice_president_vote", "from", "voting_record" ], "question": "Report the distinct president vote and the vice president vote.", "question_toks": [ "report", "distinct", "president", "vote", "and", "vice", "president", "vote", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Report", "the", "distinct", "president", "vote", "and", "the", "vice", "president", "vote", "." ], "question_arg": [ [ "report" ], [ "distinct" ], [ "president", "vote" ], [ "and" ], [ "vice", "president", "vote" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "report", "NN" ], [ "distinct", "VBZ" ], [ "president", "NN" ], [ "vote", "NN" ], [ "and", "CC" ], [ "vice", "NN" ], [ "president", "NN" ], [ "vote", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(11) T(1) A(0) C(12) T(1)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT President_Vote , VICE_President_Vote FROM VOTING_RECORD", "query_toks": [ "SELECT", "DISTINCT", "President_Vote", ",", "VICE_President_Vote", "FROM", "VOTING_RECORD" ], "query_toks_no_value": [ "select", "distinct", "president_vote", ",", "vice_president_vote", "from", "voting_record" ], "question": "List all the distinct president votes and the vice president votes.", "question_toks": [ "list", "all", "distinct", "president", "vote", "and", "vice", "president", "vote", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "List", "all", "the", "distinct", "president", "votes", "and", "the", "vice", "president", "votes", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "distinct" ], [ "president", "vote" ], [ "and" ], [ "vice", "president", "vote" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "president", "NN" ], [ "vote", "NN" ], [ "and", "CC" ], [ "vice", "NN" ], [ "president", "NN" ], [ "vote", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(11) T(1) A(0) C(12) T(1)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_President_VOTE", "query_toks": [ "SELECT", "DISTINCT", "T1.LName", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.CLASS_President_VOTE" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "lname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "class_president_vote" ], "question": "Find the distinct last names of the students who have class president votes.", "question_toks": [ "find", "distinct", "last", "name", "of", "student", "who", "have", "class", "president", "vote", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "distinct", "last", "names", "of", "the", "students", "who", "have", "class", "president", "votes", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "class", "president", "vote" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "class", "NN" ], [ "president", "NN" ], [ "vote", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(15) T(1)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_President_VOTE", "query_toks": [ "SELECT", "DISTINCT", "T1.LName", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.CLASS_President_VOTE" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "lname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "class_president_vote" ], "question": "What are the distinct last names of the students who have class president votes?", "question_toks": [ "what", "are", "distinct", "last", "name", "of", "student", "who", "have", "class", "president", "vote", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "are", "the", "distinct", "last", "names", "of", "the", "students", "who", "have", "class", "president", "votes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "class", "president", "vote" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "class", "NN" ], [ "president", "NN" ], [ "vote", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(15) T(1)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_Senator_VOTE", "query_toks": [ "SELECT", "DISTINCT", "T1.Fname", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.CLASS_Senator_VOTE" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "class_senator_vote" ], "question": "Find the distinct first names of the students who have class senator votes.", "question_toks": [ "find", "distinct", "first", "name", "of", "student", "who", "have", "class", "senator", "vote", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "distinct", "first", "names", "of", "the", "students", "who", "have", "class", "senator", "votes", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "class", "senator", "vote" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "class", "NN" ], [ "senator", "NN" ], [ "vote", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(16) T(1)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_Senator_VOTE", "query_toks": [ "SELECT", "DISTINCT", "T1.Fname", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.CLASS_Senator_VOTE" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "class_senator_vote" ], "question": "What are the distinct first names of the students who have class president votes?", "question_toks": [ "what", "are", "distinct", "first", "name", "of", "student", "who", "have", "class", "president", "vote", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "are", "the", "distinct", "first", "names", "of", "the", "students", "who", "have", "class", "president", "votes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "class", "president", "vote" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "class", "NN" ], [ "president", "NN" ], [ "vote", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(16) T(1)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.Age FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Secretary_Vote WHERE T2.Election_Cycle = \"Fall\"", "query_toks": [ "SELECT", "DISTINCT", "T1.Age", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.Secretary_Vote", "WHERE", "T2.Election_Cycle", "=", "``", "Fall", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "age", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "secretary_vote", "where", "t2", ".", "election_cycle", "=", "value" ], "question": "Find the distinct ages of students who have secretary votes in the fall election cycle.", "question_toks": [ "find", "distinct", "age", "of", "student", "who", "have", "secretary", "vote", "in", "fall", "election", "cycle", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Fall\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "distinct", "ages", "of", "students", "who", "have", "secretary", "votes", "in", "the", "fall", "election", "cycle", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "age" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "secretary", "vote" ], [ "in" ], [ "fall" ], [ "election", "cycle" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "secretary", "NN" ], [ "vote", "NN" ], [ "in", "IN" ], [ "fall", "NN" ], [ "election", "NN" ], [ "cycle", "NN" ], [ ".", "." ] ], "values": [ "Fall" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(4) T(0) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.Age FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Secretary_Vote WHERE T2.Election_Cycle = \"Fall\"", "query_toks": [ "SELECT", "DISTINCT", "T1.Age", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.Secretary_Vote", "WHERE", "T2.Election_Cycle", "=", "``", "Fall", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "age", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "secretary_vote", "where", "t2", ".", "election_cycle", "=", "value" ], "question": "What are the distinct ages of students who have secretary votes in the fall election cycle?", "question_toks": [ "what", "are", "distinct", "age", "of", "student", "who", "have", "secretary", "vote", "in", "fall", "election", "cycle", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Fall\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "are", "the", "distinct", "ages", "of", "students", "who", "have", "secretary", "votes", "in", "the", "fall", "election", "cycle", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "age" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "secretary", "vote" ], [ "in" ], [ "fall" ], [ "election", "cycle" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "secretary", "NN" ], [ "vote", "NN" ], [ "in", "IN" ], [ "fall", "NN" ], [ "election", "NN" ], [ "cycle", "NN" ], [ "?", "." ] ], "values": [ "Fall" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(4) T(0) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote WHERE T2.Election_Cycle = \"Spring\"", "query_toks": [ "SELECT", "DISTINCT", "T1.Advisor", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.Treasurer_Vote", "WHERE", "T2.Election_Cycle", "=", "``", "Spring", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "advisor", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "treasurer_vote", "where", "t2", ".", "election_cycle", "=", "value" ], "question": "Find the distinct Advisor of students who have treasurer votes in the spring election cycle.", "question_toks": [ "find", "distinct", "advisor", "of", "student", "who", "have", "treasurer", "vote", "in", "spring", "election", "cycle", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Spring\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "distinct", "Advisor", "of", "students", "who", "have", "treasurer", "votes", "in", "the", "spring", "election", "cycle", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "advisor" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "treasurer", "vote" ], [ "in" ], [ "spring" ], [ "election", "cycle" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "advisor", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "treasurer", "VBN" ], [ "vote", "NN" ], [ "in", "IN" ], [ "spring", "NN" ], [ "election", "NN" ], [ "cycle", "NN" ], [ ".", "." ] ], "values": [ "Spring" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(7) T(0) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote WHERE T2.Election_Cycle = \"Spring\"", "query_toks": [ "SELECT", "DISTINCT", "T1.Advisor", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.Treasurer_Vote", "WHERE", "T2.Election_Cycle", "=", "``", "Spring", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "advisor", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "treasurer_vote", "where", "t2", ".", "election_cycle", "=", "value" ], "question": "Who served as an advisor for students who have treasurer votes in the spring election cycle?", "question_toks": [ "who", "served", "a", "an", "advisor", "for", "student", "who", "have", "treasurer", "vote", "in", "spring", "election", "cycle", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Spring\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Who", "served", "as", "an", "advisor", "for", "students", "who", "have", "treasurer", "votes", "in", "the", "spring", "election", "cycle", "?" ], "question_arg": [ [ "who" ], [ "served" ], [ "a" ], [ "an" ], [ "advisor" ], [ "for" ], [ "student" ], [ "who" ], [ "have" ], [ "treasurer", "vote" ], [ "in" ], [ "spring" ], [ "election", "cycle" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "served", "VBD" ], [ "a", "DT" ], [ "an", "DT" ], [ "advisor", "NN" ], [ "for", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "treasurer", "VBN" ], [ "vote", "NN" ], [ "in", "IN" ], [ "spring", "NN" ], [ "election", "NN" ], [ "cycle", "NN" ], [ "?", "." ] ], "values": [ "Spring" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(7) T(0) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote", "query_toks": [ "SELECT", "DISTINCT", "T1.Major", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.Treasurer_Vote" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "major", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "treasurer_vote" ], "question": "Find the distinct majors of students who have treasurer votes.", "question_toks": [ "find", "distinct", "major", "of", "student", "who", "have", "treasurer", "vote", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "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, 15, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "distinct", "majors", "of", "students", "who", "have", "treasurer", "votes", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "major" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "treasurer", "vote" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "major", "JJ" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "treasurer", "VBN" ], [ "vote", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(14) T(1)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote", "query_toks": [ "SELECT", "DISTINCT", "T1.Major", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.Treasurer_Vote" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "major", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "treasurer_vote" ], "question": "What are the distinct majors that students with treasurer votes are studying?", "question_toks": [ "what", "are", "distinct", "major", "that", "student", "with", "treasurer", "vote", "are", "studying", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "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, 15, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "are", "the", "distinct", "majors", "that", "students", "with", "treasurer", "votes", "are", "studying", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "major" ], [ "that" ], [ "student" ], [ "with" ], [ "treasurer", "vote" ], [ "are" ], [ "studying" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "major", "JJ" ], [ "that", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "treasurer", "NN" ], [ "vote", "NN" ], [ "are", "VBP" ], [ "studying", "VBG" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(14) T(1)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = \"F\"", "query_toks": [ "SELECT", "DISTINCT", "T1.Fname", ",", "T1.LName", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.President_VOTE", "WHERE", "T1.sex", "=", "``", "F", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "president_vote", "where", "t1", ".", "sex", "=", "value" ], "question": "Find the first and last names of all the female (sex is F) students who have president votes.", "question_toks": [ "find", "first", "and", "last", "name", "of", "all", "female", "(", "sex", "is", "f", ")", "student", "who", "have", "president", "vote", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, 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", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "first", "and", "last", "names", "of", "all", "the", "female", "(", "sex", "is", "F", ")", "students", "who", "have", "president", "votes", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "female" ], [ "(" ], [ "sex" ], [ "is" ], [ "f" ], [ ")" ], [ "student" ], [ "who" ], [ "have" ], [ "president", "vote" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "female", "NN" ], [ "(", "(" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "f", "VBN" ], [ ")", ")" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "president", "NN" ], [ "vote", "NN" ], [ ".", "." ] ], "values": [ "1", "F" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(3) 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(1) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = \"F\"", "query_toks": [ "SELECT", "DISTINCT", "T1.Fname", ",", "T1.LName", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.President_VOTE", "WHERE", "T1.sex", "=", "``", "F", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "president_vote", "where", "t1", ".", "sex", "=", "value" ], "question": "What are the first and last names of all the female students who have president votes?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "all", "female", "student", "who", "have", "president", "vote", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, 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", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "of", "all", "the", "female", "students", "who", "have", "president", "votes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "female" ], [ "student" ], [ "who" ], [ "have" ], [ "president", "vote" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "female", "JJ" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "president", "NN" ], [ "vote", "NN" ], [ "?", "." ] ], "values": [ "1", "F" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(3) 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(1) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18", "query_toks": [ "SELECT", "DISTINCT", "T1.Fname", ",", "T1.LName", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.VICE_President_VOTE", "WHERE", "T1.age", "=", "18" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "vice_president_vote", "where", "t1", ".", "age", "=", "value" ], "question": "Find the first and last name of all the students of age 18 who have vice president votes.", "question_toks": [ "find", "first", "and", "last", "name", "of", "all", "student", "of", "age", "18", "who", "have", "vice", "president", "vote", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 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", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], 18.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "first", "and", "last", "name", "of", "all", "the", "students", "of", "age", "18", "who", "have", "vice", "president", "votes", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "student" ], [ "of" ], [ "age" ], [ "18" ], [ "who" ], [ "have" ], [ "vice", "president", "vote" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "of", "IN" ], [ "age", "NN" ], [ "18", "CD" ], [ "who", "WP" ], [ "have", "VBP" ], [ "vice", "NN" ], [ "president", "NN" ], [ "vote", "NN" ], [ ".", "." ] ], "values": [ "18", "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(3) 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(12) T(1) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18", "query_toks": [ "SELECT", "DISTINCT", "T1.Fname", ",", "T1.LName", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.VICE_President_VOTE", "WHERE", "T1.age", "=", "18" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "vice_president_vote", "where", "t1", ".", "age", "=", "value" ], "question": "What are the first names and last names of the students who are 18 years old and have vice president votes.", "question_toks": [ "what", "are", "first", "name", "and", "last", "name", "of", "student", "who", "are", "18", "year", "old", "and", "have", "vice", "president", "vote", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 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", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], 18.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "and", "last", "names", "of", "the", "students", "who", "are", "18", "years", "old", "and", "have", "vice", "president", "votes", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "18" ], [ "year" ], [ "old" ], [ "and" ], [ "have" ], [ "vice", "president", "vote" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "18", "CD" ], [ "year", "NN" ], [ "old", "JJ" ], [ "and", "CC" ], [ "have", "JJ" ], [ "vice", "NN" ], [ "president", "NN" ], [ "vote", "NN" ], [ ".", "." ] ], "values": [ "18", "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(3) 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(12) T(1) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.Sex = \"M\" AND T2.Election_Cycle = \"Fall\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "Class_Senator_Vote", "WHERE", "T1.Sex", "=", "``", "M", "''", "AND", "T2.Election_Cycle", "=", "``", "Fall", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "class_senator_vote", "where", "t1", ".", "sex", "=", "value", "and", "t2", ".", "election_cycle", "=", "value" ], "question": "How many male (sex is M) students have class senator votes in the fall election cycle?", "question_toks": [ "how", "many", "male", "(", "sex", "is", "m", ")", "student", "have", "class", "senator", "vote", "in", "fall", "election", "cycle", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, 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 ], "\"M\"", null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Fall\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "How", "many", "male", "(", "sex", "is", "M", ")", "students", "have", "class", "senator", "votes", "in", "the", "fall", "election", "cycle", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "male" ], [ "(" ], [ "sex" ], [ "is" ], [ "m" ], [ ")" ], [ "student" ], [ "have" ], [ "class", "senator", "vote" ], [ "in" ], [ "fall" ], [ "election", "cycle" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "male", "NN" ], [ "(", "(" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "m", "VBN" ], [ ")", ")" ], [ "student", "NN" ], [ "have", "VBP" ], [ "class", "NN" ], [ "senator", "NN" ], [ "vote", "NN" ], [ "in", "IN" ], [ "fall", "NN" ], [ "election", "NN" ], [ "cycle", "NN" ], [ "?", "." ] ], "values": [ "M", "Fall" ], "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(0) V(0) Filter(2) A(0) C(10) T(1) V(1)" }, { "db_id": "voter_2", "query": "SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.Sex = \"M\" AND T2.Election_Cycle = \"Fall\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "Class_Senator_Vote", "WHERE", "T1.Sex", "=", "``", "M", "''", "AND", "T2.Election_Cycle", "=", "``", "Fall", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "class_senator_vote", "where", "t1", ".", "sex", "=", "value", "and", "t2", ".", "election_cycle", "=", "value" ], "question": "Count the number of male students who had class senator votes in the fall election cycle.", "question_toks": [ "count", "number", "of", "male", "student", "who", "had", "class", "senator", "vote", "in", "fall", "election", "cycle", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, 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 ], "\"M\"", null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Fall\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "male", "students", "who", "had", "class", "senator", "votes", "in", "the", "fall", "election", "cycle", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "male" ], [ "student" ], [ "who" ], [ "had" ], [ "class", "senator", "vote" ], [ "in" ], [ "fall" ], [ "election", "cycle" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "male", "JJ" ], [ "student", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "class", "NN" ], [ "senator", "NN" ], [ "vote", "NN" ], [ "in", "IN" ], [ "fall", "NN" ], [ "election", "NN" ], [ "cycle", "NN" ], [ ".", "." ] ], "values": [ "M", "Fall" ], "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(0) V(0) Filter(2) A(0) C(10) T(1) V(1)" }, { "db_id": "voter_2", "query": "SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = \"NYC\" AND T2.Election_Cycle = \"Spring\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "Class_Senator_Vote", "WHERE", "T1.city_code", "=", "``", "NYC", "''", "AND", "T2.Election_Cycle", "=", "``", "Spring", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "class_senator_vote", "where", "t1", ".", "city_code", "=", "value", "and", "t2", ".", "election_cycle", "=", "value" ], "question": "Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle.", "question_toks": [ "find", "number", "of", "student", "whose", "city", "code", "is", "nyc", "and", "who", "have", "class", "senator", "vote", "in", "spring", "election", "cycle", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, 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, 8, false ], null ], "\"NYC\"", null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Spring\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "students", "whose", "city", "code", "is", "NYC", "and", "who", "have", "class", "senator", "votes", "in", "the", "spring", "election", "cycle", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "student" ], [ "whose" ], [ "city", "code" ], [ "is" ], [ "nyc" ], [ "and" ], [ "who" ], [ "have" ], [ "class", "senator", "vote" ], [ "in" ], [ "spring" ], [ "election", "cycle" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "city", "NN" ], [ "code", "NN" ], [ "is", "VBZ" ], [ "nyc", "JJ" ], [ "and", "CC" ], [ "who", "WP" ], [ "have", "VBP" ], [ "class", "NN" ], [ "senator", "NN" ], [ "vote", "NN" ], [ "in", "IN" ], [ "spring", "NN" ], [ "election", "NN" ], [ "cycle", "NN" ], [ ".", "." ] ], "values": [ "Spring", "NYC" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(2) A(0) C(8) T(0) V(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "voter_2", "query": "SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = \"NYC\" AND T2.Election_Cycle = \"Spring\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "Class_Senator_Vote", "WHERE", "T1.city_code", "=", "``", "NYC", "''", "AND", "T2.Election_Cycle", "=", "``", "Spring", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "class_senator_vote", "where", "t1", ".", "city_code", "=", "value", "and", "t2", ".", "election_cycle", "=", "value" ], "question": "Which students live in the city with code \"NYC\" and have class senator votes in the spring election cycle? Count the numbers.", "question_toks": [ "which", "student", "live", "in", "city", "with", "code", "'", "nyc", "'", "and", "have", "class", "senator", "vote", "in", "spring", "election", "cycle", "?", "count", "number", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, 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, 8, false ], null ], "\"NYC\"", null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Spring\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Which", "students", "live", "in", "the", "city", "with", "code", "``", "NYC", "''", "and", "have", "class", "senator", "votes", "in", "the", "spring", "election", "cycle", "?", "Count", "the", "numbers", "." ], "question_arg": [ [ "which" ], [ "student" ], [ "live" ], [ "in" ], [ "city" ], [ "with" ], [ "code" ], [ "'" ], [ "nyc" ], [ "'" ], [ "and" ], [ "have" ], [ "class", "senator", "vote" ], [ "in" ], [ "spring" ], [ "election", "cycle" ], [ "?" ], [ "count" ], [ "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "student", "NN" ], [ "live", "VBP" ], [ "in", "IN" ], [ "city", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "'", "''" ], [ "nyc", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "have", "VBP" ], [ "class", "NN" ], [ "senator", "NN" ], [ "vote", "NN" ], [ "in", "IN" ], [ "spring", "NN" ], [ "election", "NN" ], [ "cycle", "NN" ], [ "?", "." ], [ "count", "NN" ], [ "number", "NN" ], [ ".", "." ] ], "values": [ "Spring", "NYC" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(2) A(0) C(8) T(0) V(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "voter_2", "query": "SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = \"NYC\" AND T2.Election_Cycle = \"Spring\"", "query_toks": [ "SELECT", "avg", "(", "T1.Age", ")", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "SECRETARY_Vote", "WHERE", "T1.city_code", "=", "``", "NYC", "''", "AND", "T2.Election_Cycle", "=", "``", "Spring", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "age", ")", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "secretary_vote", "where", "t1", ".", "city_code", "=", "value", "and", "t2", ".", "election_cycle", "=", "value" ], "question": "Find the average age of students who live in the city with code \"NYC\" and have secretary votes in the spring election cycle.", "question_toks": [ "find", "average", "age", "of", "student", "who", "live", "in", "city", "with", "code", "'", "nyc", "'", "and", "have", "secretary", "vote", "in", "spring", "election", "cycle", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, 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, 8, false ], null ], "\"NYC\"", null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Spring\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "average", "age", "of", "students", "who", "live", "in", "the", "city", "with", "code", "``", "NYC", "''", "and", "have", "secretary", "votes", "in", "the", "spring", "election", "cycle", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "age" ], [ "of" ], [ "student" ], [ "who" ], [ "live" ], [ "in" ], [ "city" ], [ "with" ], [ "code" ], [ "'" ], [ "nyc" ], [ "'" ], [ "and" ], [ "have" ], [ "secretary", "vote" ], [ "in" ], [ "spring" ], [ "election", "cycle" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "live", "VBP" ], [ "in", "IN" ], [ "city", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "'", "''" ], [ "nyc", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "have", "VBP" ], [ "secretary", "NN" ], [ "vote", "NN" ], [ "in", "IN" ], [ "spring", "NN" ], [ "election", "NN" ], [ "cycle", "NN" ], [ ".", "." ] ], "values": [ "Spring", "NYC" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(0) Filter(2) A(0) C(8) T(0) V(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "voter_2", "query": "SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = \"NYC\" AND T2.Election_Cycle = \"Spring\"", "query_toks": [ "SELECT", "avg", "(", "T1.Age", ")", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "SECRETARY_Vote", "WHERE", "T1.city_code", "=", "``", "NYC", "''", "AND", "T2.Election_Cycle", "=", "``", "Spring", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "age", ")", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "secretary_vote", "where", "t1", ".", "city_code", "=", "value", "and", "t2", ".", "election_cycle", "=", "value" ], "question": "What is the average age of students who have city code \"NYC\" and have secretary votes for the spring election cycle?", "question_toks": [ "what", "is", "average", "age", "of", "student", "who", "have", "city", "code", "'", "nyc", "'", "and", "have", "secretary", "vote", "for", "spring", "election", "cycle", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, 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, 8, false ], null ], "\"NYC\"", null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Spring\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "age", "of", "students", "who", "have", "city", "code", "``", "NYC", "''", "and", "have", "secretary", "votes", "for", "the", "spring", "election", "cycle", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "city", "code" ], [ "'" ], [ "nyc" ], [ "'" ], [ "and" ], [ "have" ], [ "secretary", "vote" ], [ "for" ], [ "spring" ], [ "election", "cycle" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "city", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "nyc", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "have", "VBP" ], [ "secretary", "NN" ], [ "vote", "NN" ], [ "for", "IN" ], [ "spring", "NN" ], [ "election", "NN" ], [ "cycle", "NN" ], [ "?", "." ] ], "values": [ "Spring", "NYC" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(0) Filter(2) A(0) C(8) T(0) V(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "voter_2", "query": "SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = \"F\" AND T2.Election_Cycle = \"Spring\"", "query_toks": [ "SELECT", "avg", "(", "T1.Age", ")", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "SECRETARY_Vote", "WHERE", "T1.Sex", "=", "``", "F", "''", "AND", "T2.Election_Cycle", "=", "``", "Spring", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "age", ")", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "secretary_vote", "where", "t1", ".", "sex", "=", "value", "and", "t2", ".", "election_cycle", "=", "value" ], "question": "Find the average age of female (sex is F) students who have secretary votes in the spring election cycle.", "question_toks": [ "find", "average", "age", "of", "female", "(", "sex", "is", "f", ")", "student", "who", "have", "secretary", "vote", "in", "spring", "election", "cycle", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, 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, 5, false ], null ], "\"F\"", null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Spring\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "average", "age", "of", "female", "(", "sex", "is", "F", ")", "students", "who", "have", "secretary", "votes", "in", "the", "spring", "election", "cycle", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "age" ], [ "of" ], [ "female" ], [ "(" ], [ "sex" ], [ "is" ], [ "f" ], [ ")" ], [ "student" ], [ "who" ], [ "have" ], [ "secretary", "vote" ], [ "in" ], [ "spring" ], [ "election", "cycle" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "female", "NN" ], [ "(", "(" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "f", "VBN" ], [ ")", ")" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "secretary", "NN" ], [ "vote", "NN" ], [ "in", "IN" ], [ "spring", "NN" ], [ "election", "NN" ], [ "cycle", "NN" ], [ ".", "." ] ], "values": [ "Spring", "F" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(0) Filter(2) A(0) C(5) T(0) V(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "voter_2", "query": "SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = \"F\" AND T2.Election_Cycle = \"Spring\"", "query_toks": [ "SELECT", "avg", "(", "T1.Age", ")", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "SECRETARY_Vote", "WHERE", "T1.Sex", "=", "``", "F", "''", "AND", "T2.Election_Cycle", "=", "``", "Spring", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "age", ")", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "secretary_vote", "where", "t1", ".", "sex", "=", "value", "and", "t2", ".", "election_cycle", "=", "value" ], "question": "What is the average age of the female students with secretary votes in the spring election cycle?", "question_toks": [ "what", "is", "average", "age", "of", "female", "student", "with", "secretary", "vote", "in", "spring", "election", "cycle", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, 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, 5, false ], null ], "\"F\"", null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Spring\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "age", "of", "the", "female", "students", "with", "secretary", "votes", "in", "the", "spring", "election", "cycle", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "of" ], [ "female" ], [ "student" ], [ "with" ], [ "secretary", "vote" ], [ "in" ], [ "spring" ], [ "election", "cycle" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "female", "JJ" ], [ "student", "NN" ], [ "with", "IN" ], [ "secretary", "NN" ], [ "vote", "NN" ], [ "in", "IN" ], [ "spring", "NN" ], [ "election", "NN" ], [ "cycle", "NN" ], [ "?", "." ] ], "values": [ "Spring", "F" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(0) Filter(2) A(0) C(5) T(0) V(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code = \"PIT\"", "query_toks": [ "SELECT", "DISTINCT", "T1.Fname", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.VICE_PRESIDENT_Vote", "EXCEPT", "SELECT", "DISTINCT", "Fname", "FROM", "STUDENT", "WHERE", "city_code", "=", "``", "PIT", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "vice_president_vote", "except", "select", "distinct", "fname", "from", "student", "where", "city_code", "=", "value" ], "question": "Find the distinct first names of all the students who have vice president votes and whose city code is not PIT.", "question_toks": [ "find", "distinct", "first", "name", "of", "all", "student", "who", "have", "vice", "president", "vote", "and", "whose", "city", "code", "is", "not", "pit", "." ], "sql": { "except": { "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, 2, [ 0, [ 0, 8, false ], null ], "\"PIT\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "distinct", "first", "names", "of", "all", "the", "students", "who", "have", "vice", "president", "votes", "and", "whose", "city", "code", "is", "not", "PIT", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "first", "name" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "have" ], [ "vice", "president", "vote" ], [ "and" ], [ "whose" ], [ "city", "code" ], [ "is" ], [ "not" ], [ "pit" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "vice", "NN" ], [ "president", "NN" ], [ "vote", "NN" ], [ "and", "CC" ], [ "whose", "WP$" ], [ "city", "NN" ], [ "code", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "pit", "JJ" ], [ ".", "." ] ], "values": [ "1", "PIT" ], "rule_label": "Root1(2) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(12) T(1) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(2) A(0) C(8) T(0) V(1)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code = \"PIT\"", "query_toks": [ "SELECT", "DISTINCT", "T1.Fname", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.VICE_PRESIDENT_Vote", "EXCEPT", "SELECT", "DISTINCT", "Fname", "FROM", "STUDENT", "WHERE", "city_code", "=", "``", "PIT", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "vice_president_vote", "except", "select", "distinct", "fname", "from", "student", "where", "city_code", "=", "value" ], "question": "What are the distinct first names of the students who have vice president votes and reside in a city whose city code is not PIT?", "question_toks": [ "what", "are", "distinct", "first", "name", "of", "student", "who", "have", "vice", "president", "vote", "and", "reside", "in", "a", "city", "whose", "city", "code", "is", "not", "pit", "?" ], "sql": { "except": { "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, 2, [ 0, [ 0, 8, false ], null ], "\"PIT\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "are", "the", "distinct", "first", "names", "of", "the", "students", "who", "have", "vice", "president", "votes", "and", "reside", "in", "a", "city", "whose", "city", "code", "is", "not", "PIT", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "vice", "president", "vote" ], [ "and" ], [ "reside" ], [ "in" ], [ "a" ], [ "city" ], [ "whose" ], [ "city", "code" ], [ "is" ], [ "not" ], [ "pit" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "vice", "NN" ], [ "president", "NN" ], [ "vote", "NN" ], [ "and", "CC" ], [ "reside", "VB" ], [ "in", "IN" ], [ "a", "DT" ], [ "city", "NN" ], [ "whose", "WP$" ], [ "city", "NN" ], [ "code", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "pit", "VBN" ], [ "?", "." ] ], "values": [ "1", "PIT" ], "rule_label": "Root1(2) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(12) T(1) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(2) A(0) C(8) T(0) V(1)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = \"2192\"", "query_toks": [ "SELECT", "DISTINCT", "T1.LName", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "PRESIDENT_Vote", "EXCEPT", "SELECT", "DISTINCT", "LName", "FROM", "STUDENT", "WHERE", "Advisor", "=", "``", "2192", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "lname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "president_vote", "except", "select", "distinct", "lname", "from", "student", "where", "advisor", "=", "value" ], "question": "Find the distinct last names of all the students who have president votes and whose advisor is not 2192.", "question_toks": [ "find", "distinct", "last", "name", "of", "all", "student", "who", "have", "president", "vote", "and", "whose", "advisor", "is", "not", "year", "." ], "sql": { "except": { "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": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"2192\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "distinct", "last", "names", "of", "all", "the", "students", "who", "have", "president", "votes", "and", "whose", "advisor", "is", "not", "2192", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "have" ], [ "president", "vote" ], [ "and" ], [ "whose" ], [ "advisor" ], [ "is" ], [ "not" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "president", "NN" ], [ "vote", "NN" ], [ "and", "CC" ], [ "whose", "WP$" ], [ "advisor", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "2192", "CD" ], [ ".", "." ] ], "values": [ "2192" ], "rule_label": "Root1(2) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(11) T(1) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(2) A(0) C(7) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = \"2192\"", "query_toks": [ "SELECT", "DISTINCT", "T1.LName", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "PRESIDENT_Vote", "EXCEPT", "SELECT", "DISTINCT", "LName", "FROM", "STUDENT", "WHERE", "Advisor", "=", "``", "2192", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "lname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "president_vote", "except", "select", "distinct", "lname", "from", "student", "where", "advisor", "=", "value" ], "question": "What are the distinct last names of the students who have president votes but do not have 2192 as the advisor?", "question_toks": [ "what", "are", "distinct", "last", "name", "of", "student", "who", "have", "president", "vote", "but", "do", "not", "have", "year", "a", "advisor", "?" ], "sql": { "except": { "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": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"2192\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "are", "the", "distinct", "last", "names", "of", "the", "students", "who", "have", "president", "votes", "but", "do", "not", "have", "2192", "as", "the", "advisor", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "president", "vote" ], [ "but" ], [ "do" ], [ "not" ], [ "have" ], [ "year" ], [ "a" ], [ "advisor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "president", "NN" ], [ "vote", "NN" ], [ "but", "CC" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "2192", "CD" ], [ "a", "DT" ], [ "advisor", "NN" ], [ "?", "." ] ], "values": [ "2192" ], "rule_label": "Root1(2) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(11) T(1) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(2) A(0) C(7) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = \"8741\"", "query_toks": [ "SELECT", "DISTINCT", "T1.LName", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "PRESIDENT_Vote", "INTERSECT", "SELECT", "DISTINCT", "LName", "FROM", "STUDENT", "WHERE", "Advisor", "=", "``", "8741", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "lname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "president_vote", "intersect", "select", "distinct", "lname", "from", "student", "where", "advisor", "=", "value" ], "question": "Find the distinct last names of all the students who have president votes and whose advisor is 8741.", "question_toks": [ "find", "distinct", "last", "name", "of", "all", "student", "who", "have", "president", "vote", "and", "whose", "advisor", "is", "8741", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "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": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"8741\"", 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, 12, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "distinct", "last", "names", "of", "all", "the", "students", "who", "have", "president", "votes", "and", "whose", "advisor", "is", "8741", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "have" ], [ "president", "vote" ], [ "and" ], [ "whose" ], [ "advisor" ], [ "is" ], [ "8741" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "president", "NN" ], [ "vote", "NN" ], [ "and", "CC" ], [ "whose", "WP$" ], [ "advisor", "NN" ], [ "is", "VBZ" ], [ "8741", "CD" ], [ ".", "." ] ], "values": [ "8741" ], "rule_label": "Root1(0) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(11) T(1) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(2) A(0) C(7) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = \"8741\"", "query_toks": [ "SELECT", "DISTINCT", "T1.LName", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "PRESIDENT_Vote", "INTERSECT", "SELECT", "DISTINCT", "LName", "FROM", "STUDENT", "WHERE", "Advisor", "=", "``", "8741", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "lname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "president_vote", "intersect", "select", "distinct", "lname", "from", "student", "where", "advisor", "=", "value" ], "question": "What are the distinct last names of the students who have president votes and have 8741 as the advisor?", "question_toks": [ "what", "are", "distinct", "last", "name", "of", "student", "who", "have", "president", "vote", "and", "have", "8741", "a", "advisor", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "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": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"8741\"", 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, 12, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "are", "the", "distinct", "last", "names", "of", "the", "students", "who", "have", "president", "votes", "and", "have", "8741", "as", "the", "advisor", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "president", "vote" ], [ "and" ], [ "have" ], [ "8741" ], [ "a" ], [ "advisor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "president", "NN" ], [ "vote", "NN" ], [ "and", "CC" ], [ "have", "VBP" ], [ "8741", "CD" ], [ "a", "DT" ], [ "advisor", "NN" ], [ "?", "." ] ], "values": [ "8741" ], "rule_label": "Root1(0) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(11) T(1) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(2) A(0) C(7) T(0) V(0)" }, { "db_id": "voter_2", "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": "For each advisor, report the total number of students advised by him or her.", "question_toks": [ "for", "each", "advisor", ",", "report", "total", "number", "of", "student", "advised", "by", "him", "or", "her", "." ], "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": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "For", "each", "advisor", ",", "report", "the", "total", "number", "of", "students", "advised", "by", "him", "or", "her", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "advisor" ], [ "," ], [ "report" ], [ "total" ], [ "number" ], [ "of" ], [ "student" ], [ "advised" ], [ "by" ], [ "him" ], [ "or" ], [ "her" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "advisor", "NN" ], [ ",", "," ], [ "report", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "advised", "VBN" ], [ "by", "IN" ], [ "him", "PRP" ], [ "or", "CC" ], [ "her", "PRP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(0) A(3) C(0) T(0)" }, { "db_id": "voter_2", "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", 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": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "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(7) T(0) A(3) C(0) T(0)" }, { "db_id": "voter_2", "query": "SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*) > 2", "query_toks": [ "SELECT", "Advisor", "FROM", "STUDENT", "GROUP", "BY", "Advisor", "HAVING", "COUNT", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "advisor", "from", "student", "group", "by", "advisor", "having", "count", "(", "*", ")", ">", "value" ], "question": "Report all advisors that advise more than 2 students.", "question_toks": [ "report", "all", "advisor", "that", "advise", "more", "than", "2", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Report", "all", "advisors", "that", "advise", "more", "than", "2", "students", "." ], "question_arg": [ [ "report" ], [ "all" ], [ "advisor" ], [ "that" ], [ "advise" ], [ "more" ], [ "than" ], [ "2" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "report", "NN" ], [ "all", "DT" ], [ "advisor", "VBP" ], [ "that", "IN" ], [ "advise", "RB" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*) > 2", "query_toks": [ "SELECT", "Advisor", "FROM", "STUDENT", "GROUP", "BY", "Advisor", "HAVING", "COUNT", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "advisor", "from", "student", "group", "by", "advisor", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which advisors have more than two students?", "question_toks": [ "which", "advisor", "have", "more", "than", "two", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Which", "advisors", "have", "more", "than", "two", "students", "?" ], "question_arg": [ [ "which" ], [ "advisor" ], [ "have" ], [ "more" ], [ "than" ], [ "two" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "advisor", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "two", "CD" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*) < 3", "query_toks": [ "SELECT", "Major", "FROM", "STUDENT", "GROUP", "BY", "Major", "HAVING", "COUNT", "(", "*", ")", "<", "3" ], "query_toks_no_value": [ "select", "major", "from", "student", "group", "by", "major", "having", "count", "(", "*", ")", "<", "value" ], "question": "Report all majors that have less than 3 students.", "question_toks": [ "report", "all", "major", "that", "have", "le", "than", "3", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 4, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Report", "all", "majors", "that", "have", "less", "than", "3", "students", "." ], "question_arg": [ [ "report" ], [ "all" ], [ "major" ], [ "that" ], [ "have" ], [ "le" ], [ "than" ], [ "3" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "report", "NN" ], [ "all", "DT" ], [ "major", "JJ" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "le", "VBN" ], [ "than", "IN" ], [ "3", "CD" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(4) A(3) C(0) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*) < 3", "query_toks": [ "SELECT", "Major", "FROM", "STUDENT", "GROUP", "BY", "Major", "HAVING", "COUNT", "(", "*", ")", "<", "3" ], "query_toks_no_value": [ "select", "major", "from", "student", "group", "by", "major", "having", "count", "(", "*", ")", "<", "value" ], "question": "What are the majors only less than three students are studying?", "question_toks": [ "what", "are", "major", "only", "le", "than", "three", "student", "are", "studying", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 4, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "are", "the", "majors", "only", "less", "than", "three", "students", "are", "studying", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "major" ], [ "only" ], [ "le" ], [ "than" ], [ "three" ], [ "student" ], [ "are" ], [ "studying" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "major", "JJ" ], [ "only", "RB" ], [ "le", "NN" ], [ "than", "IN" ], [ "three", "CD" ], [ "student", "NN" ], [ "are", "VBP" ], [ "studying", "VBG" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(4) A(3) C(0) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT Election_Cycle , count(*) FROM VOTING_RECORD GROUP BY Election_Cycle", "query_toks": [ "SELECT", "Election_Cycle", ",", "count", "(", "*", ")", "FROM", "VOTING_RECORD", "GROUP", "BY", "Election_Cycle" ], "query_toks_no_value": [ "select", "election_cycle", ",", "count", "(", "*", ")", "from", "voting_record", "group", "by", "election_cycle" ], "question": "For each election cycle, report the number of voting records.", "question_toks": [ "for", "each", "election", "cycle", ",", "report", "number", "of", "voting", "record", "." ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "For", "each", "election", "cycle", ",", "report", "the", "number", "of", "voting", "records", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "election", "cycle" ], [ "," ], [ "report" ], [ "number" ], [ "of" ], [ "voting", "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "election", "NN" ], [ "cycle", "NN" ], [ ",", "," ], [ "report", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "voting", "NN" ], [ "record", "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": "voter_2", "query": "SELECT Election_Cycle , count(*) FROM VOTING_RECORD GROUP BY Election_Cycle", "query_toks": [ "SELECT", "Election_Cycle", ",", "count", "(", "*", ")", "FROM", "VOTING_RECORD", "GROUP", "BY", "Election_Cycle" ], "query_toks_no_value": [ "select", "election_cycle", ",", "count", "(", "*", ")", "from", "voting_record", "group", "by", "election_cycle" ], "question": "Count the number of voting records for each election cycle.", "question_toks": [ "count", "number", "of", "voting", "record", "for", "each", "election", "cycle", "." ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "voting", "records", "for", "each", "election", "cycle", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "voting", "record" ], [ "for" ], [ "each" ], [ "election", "cycle" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "voting", "NN" ], [ "record", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "election", "NN" ], [ "cycle", "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": "voter_2", "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 the most students?", "question_toks": [ "which", "major", "ha", "most", "student", "?" ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Which", "major", "has", "the", "most", "students", "?" ], "question_arg": [ [ "which" ], [ "major" ], [ "ha" ], [ "most" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "major", "JJ" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "student", "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": "voter_2", "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": "Find the major that is studied by the largest number of students.", "question_toks": [ "find", "major", "that", "is", "studied", "by", "largest", "number", "of", "student", "." ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "major", "that", "is", "studied", "by", "the", "largest", "number", "of", "students", "." ], "question_arg": [ [ "find" ], [ "major" ], [ "that" ], [ "is" ], [ "studied" ], [ "by" ], [ "largest" ], [ "number" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "major", "JJ" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "studied", "VBN" ], [ "by", "IN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "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": "voter_2", "query": "SELECT Major FROM STUDENT WHERE Sex = \"F\" GROUP BY major ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Major", "FROM", "STUDENT", "WHERE", "Sex", "=", "``", "F", "''", "GROUP", "BY", "major", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "major", "from", "student", "where", "sex", "=", "value", "group", "by", "major", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most common major among female (sex is F) students?", "question_toks": [ "what", "is", "most", "common", "major", "among", "female", "(", "sex", "is", "f", ")", "student", "?" ], "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": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "is", "the", "most", "common", "major", "among", "female", "(", "sex", "is", "F", ")", "students", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "common" ], [ "major" ], [ "among" ], [ "female" ], [ "(" ], [ "sex" ], [ "is" ], [ "f" ], [ ")" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "major", "JJ" ], [ "among", "IN" ], [ "female", "JJ" ], [ "(", "(" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "f", "VBN" ], [ ")", ")" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "F" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(6) T(0) Sup(0) A(3) C(0) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT Major FROM STUDENT WHERE Sex = \"F\" GROUP BY major ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Major", "FROM", "STUDENT", "WHERE", "Sex", "=", "``", "F", "''", "GROUP", "BY", "major", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "major", "from", "student", "where", "sex", "=", "value", "group", "by", "major", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the major that is studied by the most female students.", "question_toks": [ "find", "major", "that", "is", "studied", "by", "most", "female", "student", "." ], "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": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Find", "the", "major", "that", "is", "studied", "by", "the", "most", "female", "students", "." ], "question_arg": [ [ "find" ], [ "major" ], [ "that" ], [ "is" ], [ "studied" ], [ "by" ], [ "most" ], [ "female" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "major", "JJ" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "studied", "VBN" ], [ "by", "IN" ], [ "most", "JJS" ], [ "female", "JJ" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "F" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(6) T(0) Sup(0) A(3) C(0) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "city_code", "FROM", "STUDENT", "GROUP", "BY", "city_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "city_code", "from", "student", "group", "by", "city_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the city_code of the city that the most students live in?", "question_toks": [ "what", "is", "city_code", "of", "city", "that", "most", "student", "live", "in", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "What", "is", "the", "city_code", "of", "the", "city", "that", "the", "most", "students", "live", "in", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "city_code" ], [ "of" ], [ "city" ], [ "that" ], [ "most" ], [ "student" ], [ "live" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "city_code", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "that", "IN" ], [ "most", "JJS" ], [ "student", "JJ" ], [ "live", "NN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "voter_2", "query": "SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "city_code", "FROM", "STUDENT", "GROUP", "BY", "city_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "city_code", "from", "student", "group", "by", "city_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the code of the city that has the most students.", "question_toks": [ "return", "code", "of", "city", "that", "ha", "most", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Return", "the", "code", "of", "the", "city", "that", "has", "the", "most", "students", "." ], "question_arg": [ [ "return" ], [ "code" ], [ "of" ], [ "city" ], [ "that" ], [ "ha" ], [ "most" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "voter_2", "query": "SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING count(*) > 2", "query_toks": [ "SELECT", "Advisor", "FROM", "STUDENT", "GROUP", "BY", "Advisor", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "advisor", "from", "student", "group", "by", "advisor", "having", "count", "(", "*", ")", ">", "value" ], "question": "Report the distinct advisors who have more than 2 students.", "question_toks": [ "report", "distinct", "advisor", "who", "have", "more", "than", "2", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Report", "the", "distinct", "advisors", "who", "have", "more", "than", "2", "students", "." ], "question_arg": [ [ "report" ], [ "distinct" ], [ "advisor" ], [ "who" ], [ "have" ], [ "more" ], [ "than" ], [ "2" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "report", "NN" ], [ "distinct", "VBZ" ], [ "advisor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "voter_2", "query": "SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING count(*) > 2", "query_toks": [ "SELECT", "Advisor", "FROM", "STUDENT", "GROUP", "BY", "Advisor", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "advisor", "from", "student", "group", "by", "advisor", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which advisors are advising more than 2 students?", "question_toks": [ "which", "advisor", "are", "advising", "more", "than", "2", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "table_names": [ "student", "voting record" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "registration date", "election cycle", "president vote", "vice president vote", "secretary vote", "treasurer vote", "class president vote", "class senator vote" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "17": 1, "1": 1, "16": 1, "15": 1, "14": 1, "13": 1, "12": 1, "9": 1 }, "origin_question_toks": [ "Which", "advisors", "are", "advising", "more", "than", "2", "students", "?" ], "question_arg": [ [ "which" ], [ "advisor" ], [ "are" ], [ "advising" ], [ "more" ], [ "than" ], [ "2" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "advisor", "NN" ], [ "are", "VBP" ], [ "advising", "VBG" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM products", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products" ], "question": "How many products are there?", "question_toks": [ "how", "many", "product", "are", "there", "?" ], "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": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "How", "many", "products", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "product" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "product", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(4)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM products", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products" ], "question": "Count the number of products.", "question_toks": [ "count", "number", "of", "product", "." ], "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": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Count", "the", "number", "of", "products", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(4)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM ref_colors", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ref_colors" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_colors" ], "question": "How many colors are there?", "question_toks": [ "how", "many", "color", "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": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "How", "many", "colors", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "color" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "color", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM ref_colors", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ref_colors" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_colors" ], "question": "Count the number of colors.", "question_toks": [ "count", "number", "of", "color", "." ], "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": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Count", "the", "number", "of", "colors", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "color" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "color", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM CHARACTERISTICS", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CHARACTERISTICS" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "characteristics" ], "question": "How many characteristics are there?", "question_toks": [ "how", "many", "characteristic", "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": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "How", "many", "characteristics", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "characteristic" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "characteristic", "JJ" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM CHARACTERISTICS", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CHARACTERISTICS" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "characteristics" ], "question": "Count the number of characteristics.", "question_toks": [ "count", "number", "of", "characteristic", "." ], "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": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Count", "the", "number", "of", "characteristics", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "characteristic" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "characteristic", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "products_gen_characteristics", "query": "SELECT product_name , typical_buying_price FROM products", "query_toks": [ "SELECT", "product_name", ",", "typical_buying_price", "FROM", "products" ], "query_toks_no_value": [ "select", "product_name", ",", "typical_buying_price", "from", "products" ], "question": "What are the names and buying prices of all the products?", "question_toks": [ "what", "are", "name", "and", "buying", "price", "of", "all", "product", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "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": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "buying", "prices", "of", "all", "the", "products", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "typical", "buying", "price" ], [ "of" ], [ "all" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "buying", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(4) A(0) C(14) T(4)" }, { "db_id": "products_gen_characteristics", "query": "SELECT product_name , typical_buying_price FROM products", "query_toks": [ "SELECT", "product_name", ",", "typical_buying_price", "FROM", "products" ], "query_toks_no_value": [ "select", "product_name", ",", "typical_buying_price", "from", "products" ], "question": "Return the names and typical buying prices for all products.", "question_toks": [ "return", "name", "and", "typical", "buying", "price", "for", "all", "product", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "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": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Return", "the", "names", "and", "typical", "buying", "prices", "for", "all", "products", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "and" ], [ "typical", "buying", "price" ], [ "for" ], [ "all" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "typical", "JJ" ], [ "buying", "NN" ], [ "price", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(4) A(0) C(14) T(4)" }, { "db_id": "products_gen_characteristics", "query": "SELECT color_description FROM ref_colors", "query_toks": [ "SELECT", "color_description", "FROM", "ref_colors" ], "query_toks_no_value": [ "select", "color_description", "from", "ref_colors" ], "question": "List the description of all the colors.", "question_toks": [ "list", "description", "of", "all", "color", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "List", "the", "description", "of", "all", "the", "colors", "." ], "question_arg": [ [ "list" ], [ "description" ], [ "of" ], [ "all" ], [ "color" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "description", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "color", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(4) T(1)" }, { "db_id": "products_gen_characteristics", "query": "SELECT color_description FROM ref_colors", "query_toks": [ "SELECT", "color_description", "FROM", "ref_colors" ], "query_toks_no_value": [ "select", "color_description", "from", "ref_colors" ], "question": "What are the descriptions for each color?", "question_toks": [ "what", "are", "description", "for", "each", "color", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "descriptions", "for", "each", "color", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "description" ], [ "for" ], [ "each" ], [ "color" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "description", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "color", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(4) T(1)" }, { "db_id": "products_gen_characteristics", "query": "SELECT DISTINCT characteristic_name FROM CHARACTERISTICS", "query_toks": [ "SELECT", "DISTINCT", "characteristic_name", "FROM", "CHARACTERISTICS" ], "query_toks_no_value": [ "select", "distinct", "characteristic_name", "from", "characteristics" ], "question": "Find the names of all the product characteristics.", "question_toks": [ "find", "name", "of", "all", "product", "characteristic", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "the", "product", "characteristics", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "product", "characteristic" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "characteristic", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(10) T(3)" }, { "db_id": "products_gen_characteristics", "query": "SELECT DISTINCT characteristic_name FROM CHARACTERISTICS", "query_toks": [ "SELECT", "DISTINCT", "characteristic_name", "FROM", "CHARACTERISTICS" ], "query_toks_no_value": [ "select", "distinct", "characteristic_name", "from", "characteristics" ], "question": "What are the different names of the product characteristics?", "question_toks": [ "what", "are", "different", "name", "of", "product", "characteristic", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "different", "names", "of", "the", "product", "characteristics", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "name" ], [ "of" ], [ "product", "characteristic" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "characteristic", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(10) T(3)" }, { "db_id": "products_gen_characteristics", "query": "SELECT product_name FROM products WHERE product_category_code = \"Spices\"", "query_toks": [ "SELECT", "product_name", "FROM", "products", "WHERE", "product_category_code", "=", "``", "Spices", "''" ], "query_toks_no_value": [ "select", "product_name", "from", "products", "where", "product_category_code", "=", "value" ], "question": "What are the names of products with category \"Spices\"?", "question_toks": [ "what", "are", "name", "of", "product", "with", "category", "'", "spice", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Spices\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "products", "with", "category", "``", "Spices", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "product" ], [ "with" ], [ "category" ], [ "'" ], [ "spice" ], [ "'" ], [ "?" ] ], "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" ], [ "with", "IN" ], [ "category", "NN" ], [ "'", "''" ], [ "spice", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Spices" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(4) Filter(2) A(0) C(5) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT product_name FROM products WHERE product_category_code = \"Spices\"", "query_toks": [ "SELECT", "product_name", "FROM", "products", "WHERE", "product_category_code", "=", "``", "Spices", "''" ], "query_toks_no_value": [ "select", "product_name", "from", "products", "where", "product_category_code", "=", "value" ], "question": "Return the names of products in the category 'Spices'.", "question_toks": [ "return", "name", "of", "product", "in", "category", "'", "spice", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Spices\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Return", "the", "names", "of", "products", "in", "the", "category", "'Spices", "'", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "product" ], [ "in" ], [ "category" ], [ "'" ], [ "spice" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "in", "IN" ], [ "category", "NN" ], [ "'", "''" ], [ "spice", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Spices" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(4) Filter(2) A(0) C(5) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT T1.product_name , T2.color_description , T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = \"Herbs\"", "query_toks": [ "SELECT", "T1.product_name", ",", "T2.color_description", ",", "T1.product_description", "FROM", "products", "AS", "T1", "JOIN", "Ref_colors", "AS", "T2", "ON", "T1.color_code", "=", "T2.color_code", "WHERE", "product_category_code", "=", "``", "Herbs", "''" ], "query_toks_no_value": [ "select", "t1", ".", "product_name", ",", "t2", ".", "color_description", ",", "t1", ".", "product_description", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "where", "product_category_code", "=", "value" ], "question": "List the names, color descriptions and product descriptions of products with category \"Herbs\".", "question_toks": [ "list", "name", ",", "color", "description", "and", "product", "description", "of", "product", "with", "category", "'", "herb", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Herbs\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "List", "the", "names", ",", "color", "descriptions", "and", "product", "descriptions", "of", "products", "with", "category", "``", "Herbs", "''", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "," ], [ "color", "description" ], [ "and" ], [ "product", "description" ], [ "of" ], [ "product" ], [ "with" ], [ "category" ], [ "'" ], [ "herb" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "color", "NN" ], [ "description", "NN" ], [ "and", "CC" ], [ "product", "NN" ], [ "description", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "category", "NN" ], [ "'", "''" ], [ "herb", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Herbs" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(13) T(4) A(0) C(4) T(1) A(0) C(16) T(4) Filter(2) A(0) C(5) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT T1.product_name , T2.color_description , T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = \"Herbs\"", "query_toks": [ "SELECT", "T1.product_name", ",", "T2.color_description", ",", "T1.product_description", "FROM", "products", "AS", "T1", "JOIN", "Ref_colors", "AS", "T2", "ON", "T1.color_code", "=", "T2.color_code", "WHERE", "product_category_code", "=", "``", "Herbs", "''" ], "query_toks_no_value": [ "select", "t1", ".", "product_name", ",", "t2", ".", "color_description", ",", "t1", ".", "product_description", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "where", "product_category_code", "=", "value" ], "question": "What are the names, color descriptions, and product descriptions for products in the 'Herbs' category?", "question_toks": [ "what", "are", "name", ",", "color", "description", ",", "and", "product", "description", "for", "product", "in", "'", "herb", "'", "category", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Herbs\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", ",", "color", "descriptions", ",", "and", "product", "descriptions", "for", "products", "in", "the", "'Herbs", "'", "category", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "color", "description" ], [ "," ], [ "and" ], [ "product", "description" ], [ "for" ], [ "product" ], [ "in" ], [ "'" ], [ "herb" ], [ "'" ], [ "category" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "color", "NN" ], [ "description", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "product", "NN" ], [ "description", "NN" ], [ "for", "IN" ], [ "product", "NN" ], [ "in", "IN" ], [ "'", "''" ], [ "herb", "NN" ], [ "'", "''" ], [ "category", "NN" ], [ "?", "." ] ], "values": [ "Herbs" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(13) T(4) A(0) C(4) T(1) A(0) C(16) T(4) Filter(2) A(0) C(5) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM products WHERE product_category_code = \"Seeds\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "WHERE", "product_category_code", "=", "``", "Seeds", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "where", "product_category_code", "=", "value" ], "question": "How many products are there under the category \"Seeds\"?", "question_toks": [ "how", "many", "product", "are", "there", "under", "category", "'", "seed", "'", "?" ], "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, 15, false ], null ], "\"Seeds\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "How", "many", "products", "are", "there", "under", "the", "category", "``", "Seeds", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "product" ], [ "are" ], [ "there" ], [ "under" ], [ "category" ], [ "'" ], [ "seed" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "product", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "under", "IN" ], [ "category", "NN" ], [ "'", "''" ], [ "seed", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Seeds" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(2) A(0) C(5) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM products WHERE product_category_code = \"Seeds\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "WHERE", "product_category_code", "=", "``", "Seeds", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "where", "product_category_code", "=", "value" ], "question": "Count the number of products in the category 'Seeds'.", "question_toks": [ "count", "number", "of", "product", "in", "category", "'", "seed", "'", "." ], "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, 15, false ], null ], "\"Seeds\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Count", "the", "number", "of", "products", "in", "the", "category", "'Seeds", "'", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "product" ], [ "in" ], [ "category" ], [ "'" ], [ "seed" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "in", "IN" ], [ "category", "NN" ], [ "'", "''" ], [ "seed", "NN" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "Seeds" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(2) A(0) C(5) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM products WHERE product_category_code = \"Spices\" AND typical_buying_price > 1000", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "WHERE", "product_category_code", "=", "``", "Spices", "''", "AND", "typical_buying_price", ">", "1000" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "where", "product_category_code", "=", "value", "and", "typical_buying_price", ">", "value" ], "question": "Find the number of products with category \"Spices\" and typically sold above 1000.", "question_toks": [ "find", "number", "of", "product", "with", "category", "'", "spice", "'", "and", "typically", "sold", "above", "1000", "." ], "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, 15, false ], null ], "\"Spices\"", null ], "and", [ false, 3, [ 0, [ 0, 17, false ], null ], 1000.0, null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "number", "of", "products", "with", "category", "``", "Spices", "''", "and", "typically", "sold", "above", "1000", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "product" ], [ "with" ], [ "category" ], [ "'" ], [ "spice" ], [ "'" ], [ "and" ], [ "typically" ], [ "sold" ], [ "above" ], [ "1000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "category", "NN" ], [ "'", "''" ], [ "spice", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "typically", "RB" ], [ "sold", "VBN" ], [ "above", "IN" ], [ "1000", "CD" ], [ ".", "." ] ], "values": [ "1000", "Spices" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(0) Filter(2) A(0) C(5) T(4) V(1) Filter(5) A(0) C(14) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM products WHERE product_category_code = \"Spices\" AND typical_buying_price > 1000", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "WHERE", "product_category_code", "=", "``", "Spices", "''", "AND", "typical_buying_price", ">", "1000" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "where", "product_category_code", "=", "value", "and", "typical_buying_price", ">", "value" ], "question": "How many products are in the 'Spices' category and have a typical price of over 1000?", "question_toks": [ "how", "many", "product", "are", "in", "'", "spice", "'", "category", "and", "have", "a", "typical", "price", "of", "over", "1000", "?" ], "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, 15, false ], null ], "\"Spices\"", null ], "and", [ false, 3, [ 0, [ 0, 17, false ], null ], 1000.0, null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "How", "many", "products", "are", "in", "the", "'Spices", "'", "category", "and", "have", "a", "typical", "price", "of", "over", "1000", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "product" ], [ "are" ], [ "in" ], [ "'" ], [ "spice" ], [ "'" ], [ "category" ], [ "and" ], [ "have" ], [ "a" ], [ "typical" ], [ "price" ], [ "of" ], [ "over" ], [ "1000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "product", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "'", "''" ], [ "spice", "NN" ], [ "'", "POS" ], [ "category", "NN" ], [ "and", "CC" ], [ "have", "VBP" ], [ "a", "DT" ], [ "typical", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "over", "IN" ], [ "1000", "CD" ], [ "?", "." ] ], "values": [ "1000", "Spices" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(0) Filter(2) A(0) C(5) T(4) V(1) Filter(5) A(0) C(14) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT product_category_code , typical_buying_price FROM products WHERE product_name = \"cumin\"", "query_toks": [ "SELECT", "product_category_code", ",", "typical_buying_price", "FROM", "products", "WHERE", "product_name", "=", "``", "cumin", "''" ], "query_toks_no_value": [ "select", "product_category_code", ",", "typical_buying_price", "from", "products", "where", "product_name", "=", "value" ], "question": "What is the category and typical buying price of the product with name \"cumin\"?", "question_toks": [ "what", "is", "category", "and", "typical", "buying", "price", "of", "product", "with", "name", "'", "cumin", "'", "?" ], "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 ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"cumin\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "category", "and", "typical", "buying", "price", "of", "the", "product", "with", "name", "``", "cumin", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "category" ], [ "and" ], [ "typical", "buying", "price" ], [ "of" ], [ "product" ], [ "with" ], [ "name" ], [ "'" ], [ "cumin" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "category", "JJ" ], [ "and", "CC" ], [ "typical", "JJ" ], [ "buying", "NN" ], [ "price", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "cumin", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "cumin" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(4) A(0) C(14) T(4) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT product_category_code , typical_buying_price FROM products WHERE product_name = \"cumin\"", "query_toks": [ "SELECT", "product_category_code", ",", "typical_buying_price", "FROM", "products", "WHERE", "product_name", "=", "``", "cumin", "''" ], "query_toks_no_value": [ "select", "product_category_code", ",", "typical_buying_price", "from", "products", "where", "product_name", "=", "value" ], "question": "Return the category code and typical price of 'cumin'.", "question_toks": [ "return", "category", "code", "and", "typical", "price", "of", "'", "cumin", "'", "." ], "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 ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"cumin\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Return", "the", "category", "code", "and", "typical", "price", "of", "'cumin", "'", "." ], "question_arg": [ [ "return" ], [ "product", "category", "code" ], [ "and" ], [ "typical" ], [ "price" ], [ "of" ], [ "'" ], [ "cumin" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "category", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "typical", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "cumin", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "cumin" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(4) A(0) C(14) T(4) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT product_category_code FROM products WHERE product_name = \"flax\"", "query_toks": [ "SELECT", "product_category_code", "FROM", "products", "WHERE", "product_name", "=", "``", "flax", "''" ], "query_toks_no_value": [ "select", "product_category_code", "from", "products", "where", "product_name", "=", "value" ], "question": "Which category does the product named \"flax\" belong to?", "question_toks": [ "which", "category", "doe", "product", "named", "'", "flax", "'", "belong", "to", "?" ], "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": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"flax\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Which", "category", "does", "the", "product", "named", "``", "flax", "''", "belong", "to", "?" ], "question_arg": [ [ "which" ], [ "category" ], [ "doe" ], [ "product" ], [ "named" ], [ "'" ], [ "flax" ], [ "'" ], [ "belong" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "category", "NN" ], [ "doe", "NN" ], [ "product", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "flax", "NN" ], [ "'", "''" ], [ "belong", "NN" ], [ "to", "TO" ], [ "?", "." ] ], "values": [ "flax" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(4) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT product_category_code FROM products WHERE product_name = \"flax\"", "query_toks": [ "SELECT", "product_category_code", "FROM", "products", "WHERE", "product_name", "=", "``", "flax", "''" ], "query_toks_no_value": [ "select", "product_category_code", "from", "products", "where", "product_name", "=", "value" ], "question": "What is the code of the category that the product with the name 'flax' belongs to?", "question_toks": [ "what", "is", "code", "of", "category", "that", "product", "with", "name", "'", "flax", "'", "belongs", "to", "?" ], "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": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"flax\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "code", "of", "the", "category", "that", "the", "product", "with", "the", "name", "'flax", "'", "belongs", "to", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "code" ], [ "of" ], [ "category" ], [ "that" ], [ "product" ], [ "with" ], [ "name" ], [ "'" ], [ "flax" ], [ "'" ], [ "belongs" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "code", "NN" ], [ "of", "IN" ], [ "category", "NN" ], [ "that", "WDT" ], [ "product", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "flax", "NN" ], [ "'", "''" ], [ "belongs", "NNS" ], [ "to", "TO" ], [ "?", "." ] ], "values": [ "flax" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(4) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT T1.product_name FROM products AS T1 JOIN ref_colors AS T2 ON T1.color_code = T2.color_code WHERE T2.color_description = 'yellow'", "query_toks": [ "SELECT", "T1.product_name", "FROM", "products", "AS", "T1", "JOIN", "ref_colors", "AS", "T2", "ON", "T1.color_code", "=", "T2.color_code", "WHERE", "T2.color_description", "=", "'yellow", "'" ], "query_toks_no_value": [ "select", "t1", ".", "product_name", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "where", "t2", ".", "color_description", "=", "value" ], "question": "What is the name of the product with the color description 'yellow'?", "question_toks": [ "what", "is", "name", "of", "product", "with", "color", "description", "'", "yellow", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"yellow\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "product", "with", "the", "color", "description", "'yellow", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "product" ], [ "with" ], [ "color", "description" ], [ "'" ], [ "yellow" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "color", "NN" ], [ "description", "NN" ], [ "'", "''" ], [ "yellow", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "yellow" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(4) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT T1.product_name FROM products AS T1 JOIN ref_colors AS T2 ON T1.color_code = T2.color_code WHERE T2.color_description = 'yellow'", "query_toks": [ "SELECT", "T1.product_name", "FROM", "products", "AS", "T1", "JOIN", "ref_colors", "AS", "T2", "ON", "T1.color_code", "=", "T2.color_code", "WHERE", "T2.color_description", "=", "'yellow", "'" ], "query_toks_no_value": [ "select", "t1", ".", "product_name", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "where", "t2", ".", "color_description", "=", "value" ], "question": "Give the name of the products that have a color description 'yellow'.", "question_toks": [ "give", "name", "of", "product", "that", "have", "a", "color", "description", "'", "yellow", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"yellow\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Give", "the", "name", "of", "the", "products", "that", "have", "a", "color", "description", "'yellow", "'", "." ], "question_arg": [ [ "give" ], [ "name" ], [ "of" ], [ "product" ], [ "that" ], [ "have" ], [ "a" ], [ "color", "description" ], [ "'" ], [ "yellow" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "color", "NN" ], [ "description", "NN" ], [ "'", "''" ], [ "yellow", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "yellow" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(4) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%'", "query_toks": [ "SELECT", "T1.product_category_description", "FROM", "ref_product_categories", "AS", "T1", "JOIN", "products", "AS", "T2", "ON", "T1.product_category_code", "=", "T2.product_category_code", "WHERE", "T2.product_description", "LIKE", "'", "%", "t", "%", "'" ], "query_toks_no_value": [ "select", "t1", ".", "product_category_description", "from", "ref_product_categories", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_category_code", "=", "t2", ".", "product_category_code", "where", "t2", ".", "product_description", "like", "value" ], "question": "Find the category descriptions of the products whose descriptions include letter 't'.", "question_toks": [ "find", "category", "description", "of", "product", "whose", "description", "include", "letter", "'t", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, 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, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 19, false ], null ], "\"%t%\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "category", "descriptions", "of", "the", "products", "whose", "descriptions", "include", "letter", "'t", "'", "." ], "question_arg": [ [ "find" ], [ "product", "category", "description" ], [ "of" ], [ "product" ], [ "whose" ], [ "description" ], [ "include" ], [ "letter" ], [ "'t" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "category", "JJ" ], [ "description", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "whose", "WP$" ], [ "description", "NN" ], [ "include", "VBP" ], [ "letter", "NN" ], [ "'t", "NNP" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "t" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(9) A(0) C(16) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%'", "query_toks": [ "SELECT", "T1.product_category_description", "FROM", "ref_product_categories", "AS", "T1", "JOIN", "products", "AS", "T2", "ON", "T1.product_category_code", "=", "T2.product_category_code", "WHERE", "T2.product_description", "LIKE", "'", "%", "t", "%", "'" ], "query_toks_no_value": [ "select", "t1", ".", "product_category_description", "from", "ref_product_categories", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_category_code", "=", "t2", ".", "product_category_code", "where", "t2", ".", "product_description", "like", "value" ], "question": "What are the descriptions of the categories that products with product descriptions that contain the letter t are in?", "question_toks": [ "what", "are", "description", "of", "category", "that", "product", "with", "product", "description", "that", "contain", "letter", "t", "are", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, 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, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 19, false ], null ], "\"%t%\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "descriptions", "of", "the", "categories", "that", "products", "with", "product", "descriptions", "that", "contain", "the", "letter", "t", "are", "in", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "description" ], [ "of" ], [ "category" ], [ "that" ], [ "product" ], [ "with" ], [ "product", "description" ], [ "that" ], [ "contain" ], [ "letter" ], [ "t" ], [ "are" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "description", "NN" ], [ "of", "IN" ], [ "category", "NN" ], [ "that", "WDT" ], [ "product", "NN" ], [ "with", "IN" ], [ "product", "NN" ], [ "description", "NN" ], [ "that", "WDT" ], [ "contain", "VBP" ], [ "letter", "NN" ], [ "t", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "t" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(9) A(0) C(16) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = \"catnip\"", "query_toks": [ "SELECT", "t2.color_description", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1.color_code", "=", "t2.color_code", "WHERE", "t1.product_name", "=", "``", "catnip", "''" ], "query_toks_no_value": [ "select", "t2", ".", "color_description", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "where", "t1", ".", "product_name", "=", "value" ], "question": "What is the color description of the product with name \"catnip\"?", "question_toks": [ "what", "is", "color", "description", "of", "product", "with", "name", "'", "catnip", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"catnip\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "color", "description", "of", "the", "product", "with", "name", "``", "catnip", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "color", "description" ], [ "of" ], [ "product" ], [ "with" ], [ "name" ], [ "'" ], [ "catnip" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "color", "JJ" ], [ "description", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "catnip", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "catnip" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = \"catnip\"", "query_toks": [ "SELECT", "t2.color_description", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1.color_code", "=", "t2.color_code", "WHERE", "t1.product_name", "=", "``", "catnip", "''" ], "query_toks_no_value": [ "select", "t2", ".", "color_description", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "where", "t1", ".", "product_name", "=", "value" ], "question": "Give the color description for the product 'catnip'.", "question_toks": [ "give", "color", "description", "for", "product", "'", "catnip", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"catnip\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Give", "the", "color", "description", "for", "the", "product", "'catnip", "'", "." ], "question_arg": [ [ "give" ], [ "color", "description" ], [ "for" ], [ "product" ], [ "'" ], [ "catnip" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "color", "NN" ], [ "description", "NN" ], [ "for", "IN" ], [ "product", "NN" ], [ "'", "''" ], [ "catnip", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "catnip" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t1.color_code , t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = \"chervil\"", "query_toks": [ "SELECT", "t1.color_code", ",", "t2.color_description", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1.color_code", "=", "t2.color_code", "WHERE", "t1.product_name", "=", "``", "chervil", "''" ], "query_toks_no_value": [ "select", "t1", ".", "color_code", ",", "t2", ".", "color_description", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "where", "t1", ".", "product_name", "=", "value" ], "question": "What is the color code and description of the product named \"chervil\"?", "question_toks": [ "what", "is", "color", "code", "and", "description", "of", "product", "named", "'", "chervil", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"chervil\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "color", "code", "and", "description", "of", "the", "product", "named", "``", "chervil", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "color", "code" ], [ "and" ], [ "description" ], [ "of" ], [ "product" ], [ "named" ], [ "'" ], [ "chervil" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "color", "JJ" ], [ "code", "NN" ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "chervil", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "chervil" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(4) A(0) C(4) T(1) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t1.color_code , t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = \"chervil\"", "query_toks": [ "SELECT", "t1.color_code", ",", "t2.color_description", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1.color_code", "=", "t2.color_code", "WHERE", "t1.product_name", "=", "``", "chervil", "''" ], "query_toks_no_value": [ "select", "t1", ".", "color_code", ",", "t2", ".", "color_description", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "where", "t1", ".", "product_name", "=", "value" ], "question": "Return the color code and description for the product with the name 'chervil'.", "question_toks": [ "return", "color", "code", "and", "description", "for", "product", "with", "name", "'", "chervil", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"chervil\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Return", "the", "color", "code", "and", "description", "for", "the", "product", "with", "the", "name", "'chervil", "'", "." ], "question_arg": [ [ "return" ], [ "color", "code" ], [ "and" ], [ "description" ], [ "for" ], [ "product" ], [ "with" ], [ "name" ], [ "'" ], [ "chervil" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "color", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "description", "NN" ], [ "for", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "chervil", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "chervil" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(4) A(0) C(4) T(1) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t1.product_id , t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code JOIN product_characteristics AS t3 ON t1.product_id = t3.product_id GROUP BY t1.product_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "t1.product_id", ",", "t2.color_description", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1.color_code", "=", "t2.color_code", "JOIN", "product_characteristics", "AS", "t3", "ON", "t1.product_id", "=", "t3.product_id", "GROUP", "BY", "t1.product_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "product_id", ",", "t2", ".", "color_description", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "join", "product_characteristics", "as", "t3", "on", "t1", ".", "product_id", "=", "t3", ".", "product_id", "group", "by", "t1", ".", "product_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Find the id and color description of the products with at least 2 characteristics.", "question_toks": [ "find", "id", "and", "color", "description", "of", "product", "with", "at", "least", "2", "characteristic", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "id", "and", "color", "description", "of", "the", "products", "with", "at", "least", "2", "characteristics", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "color", "description" ], [ "of" ], [ "product" ], [ "with" ], [ "at" ], [ "least" ], [ "2" ], [ "characteristic" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "color", "NN" ], [ "description", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "characteristic", "JJ" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(12) T(4) A(0) C(4) T(1) Filter(7) A(3) C(0) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t1.product_id , t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code JOIN product_characteristics AS t3 ON t1.product_id = t3.product_id GROUP BY t1.product_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "t1.product_id", ",", "t2.color_description", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1.color_code", "=", "t2.color_code", "JOIN", "product_characteristics", "AS", "t3", "ON", "t1.product_id", "=", "t3.product_id", "GROUP", "BY", "t1.product_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "product_id", ",", "t2", ".", "color_description", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "join", "product_characteristics", "as", "t3", "on", "t1", ".", "product_id", "=", "t3", ".", "product_id", "group", "by", "t1", ".", "product_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the product ids and color descriptions for products with two or more characteristics?", "question_toks": [ "what", "are", "product", "id", "and", "color", "description", "for", "product", "with", "two", "or", "more", "characteristic", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "product", "ids", "and", "color", "descriptions", "for", "products", "with", "two", "or", "more", "characteristics", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "product", "id" ], [ "and" ], [ "color", "description" ], [ "for" ], [ "product" ], [ "with" ], [ "two" ], [ "or" ], [ "more" ], [ "characteristic" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "product", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "color", "NN" ], [ "description", "NN" ], [ "for", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "characteristic", "JJ" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(12) T(4) A(0) C(4) T(1) Filter(7) A(3) C(0) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = \"white\"", "query_toks": [ "SELECT", "t1.product_name", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1.color_code", "=", "t2.color_code", "WHERE", "t2.color_description", "=", "``", "white", "''" ], "query_toks_no_value": [ "select", "t1", ".", "product_name", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "where", "t2", ".", "color_description", "=", "value" ], "question": "List all the product names with the color description \"white\".", "question_toks": [ "list", "all", "product", "name", "with", "color", "description", "'", "white", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"white\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "List", "all", "the", "product", "names", "with", "the", "color", "description", "``", "white", "''", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "product", "name" ], [ "with" ], [ "color", "description" ], [ "'" ], [ "white" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "product", "NN" ], [ "name", "NN" ], [ "with", "IN" ], [ "color", "NN" ], [ "description", "NN" ], [ "'", "''" ], [ "white", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "white" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(4) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = \"white\"", "query_toks": [ "SELECT", "t1.product_name", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1.color_code", "=", "t2.color_code", "WHERE", "t2.color_description", "=", "``", "white", "''" ], "query_toks_no_value": [ "select", "t1", ".", "product_name", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "where", "t2", ".", "color_description", "=", "value" ], "question": "What are the names of products with 'white' as their color description?", "question_toks": [ "what", "are", "name", "of", "product", "with", "'", "white", "'", "a", "their", "color", "description", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"white\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "products", "with", "'white", "'", "as", "their", "color", "description", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "product" ], [ "with" ], [ "'" ], [ "white" ], [ "'" ], [ "a" ], [ "their" ], [ "color", "description" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "'", "''" ], [ "white", "JJ" ], [ "'", "''" ], [ "a", "DT" ], [ "their", "PRP$" ], [ "color", "NN" ], [ "description", "NN" ], [ "?", "." ] ], "values": [ "white" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(4) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t1.product_name , t1.typical_buying_price , t1.typical_selling_price FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = \"yellow\"", "query_toks": [ "SELECT", "t1.product_name", ",", "t1.typical_buying_price", ",", "t1.typical_selling_price", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1.color_code", "=", "t2.color_code", "WHERE", "t2.color_description", "=", "``", "yellow", "''" ], "query_toks_no_value": [ "select", "t1", ".", "product_name", ",", "t1", ".", "typical_buying_price", ",", "t1", ".", "typical_selling_price", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "where", "t2", ".", "color_description", "=", "value" ], "question": "What are the name and typical buying and selling prices of the products that have color described as \"yellow\"?", "question_toks": [ "what", "are", "name", "and", "typical", "buying", "and", "selling", "price", "of", "product", "that", "have", "color", "described", "a", "'", "yellow", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"yellow\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "typical", "buying", "and", "selling", "prices", "of", "the", "products", "that", "have", "color", "described", "as", "``", "yellow", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "typical", "buying", "price" ], [ "and" ], [ "typical", "selling", "price" ], [ "of" ], [ "product" ], [ "that" ], [ "have" ], [ "color" ], [ "described" ], [ "a" ], [ "'" ], [ "yellow" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "typical", "JJ" ], [ "buying", "NN" ], [ "and", "CC" ], [ "selling", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "color", "VBN" ], [ "described", "VBN" ], [ "a", "DT" ], [ "'", "''" ], [ "yellow", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "yellow" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(13) T(4) A(0) C(14) T(4) A(0) C(15) T(4) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t1.product_name , t1.typical_buying_price , t1.typical_selling_price FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = \"yellow\"", "query_toks": [ "SELECT", "t1.product_name", ",", "t1.typical_buying_price", ",", "t1.typical_selling_price", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1.color_code", "=", "t2.color_code", "WHERE", "t2.color_description", "=", "``", "yellow", "''" ], "query_toks_no_value": [ "select", "t1", ".", "product_name", ",", "t1", ".", "typical_buying_price", ",", "t1", ".", "typical_selling_price", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "where", "t2", ".", "color_description", "=", "value" ], "question": "Return the names and typical buying and selling prices for products that have 'yellow' as their color description.", "question_toks": [ "return", "name", "and", "typical", "buying", "and", "selling", "price", "for", "product", "that", "have", "'", "yellow", "'", "a", "their", "color", "description", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"yellow\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Return", "the", "names", "and", "typical", "buying", "and", "selling", "prices", "for", "products", "that", "have", "'yellow", "'", "as", "their", "color", "description", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "and" ], [ "typical", "buying", "price" ], [ "and" ], [ "typical", "selling", "price" ], [ "for" ], [ "product" ], [ "that" ], [ "have" ], [ "'" ], [ "yellow" ], [ "'" ], [ "a" ], [ "their" ], [ "color", "description" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "typical", "JJ" ], [ "buying", "NN" ], [ "and", "CC" ], [ "selling", "NN" ], [ "price", "NN" ], [ "for", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "'", "''" ], [ "yellow", "JJ" ], [ "'", "''" ], [ "a", "DT" ], [ "their", "PRP$" ], [ "color", "NN" ], [ "description", "NN" ], [ ".", "." ] ], "values": [ "yellow" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(13) T(4) A(0) C(14) T(4) A(0) C(15) T(4) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = \"sesame\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "WHERE", "t1.product_name", "=", "``", "sesame", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t1", ".", "product_name", "=", "value" ], "question": "How many characteristics does the product named \"sesame\" have?", "question_toks": [ "how", "many", "characteristic", "doe", "product", "named", "'", "sesame", "'", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"sesame\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "How", "many", "characteristics", "does", "the", "product", "named", "``", "sesame", "''", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "characteristic" ], [ "doe" ], [ "product" ], [ "named" ], [ "'" ], [ "sesame" ], [ "'" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "characteristic", "JJ" ], [ "doe", "NNS" ], [ "product", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "sesame", "NN" ], [ "'", "''" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "sesame" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = \"sesame\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "WHERE", "t1.product_name", "=", "``", "sesame", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t1", ".", "product_name", "=", "value" ], "question": "Count the number of characteristics the product 'sesame' has.", "question_toks": [ "count", "number", "of", "characteristic", "product", "'", "sesame", "'", "ha", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"sesame\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Count", "the", "number", "of", "characteristics", "the", "product", "'sesame", "'", "has", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "characteristic" ], [ "product" ], [ "'" ], [ "sesame" ], [ "'" ], [ "ha" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "characteristic", "JJ" ], [ "product", "NN" ], [ "'", "''" ], [ "sesame", "NN" ], [ "'", "POS" ], [ "ha", "NN" ], [ ".", "." ] ], "values": [ "sesame" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(DISTINCT t3.characteristic_name) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"sesame\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "t3.characteristic_name", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t1.product_name", "=", "``", "sesame", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t3", ".", "characteristic_name", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "value" ], "question": "How many distinct characteristic names does the product \"cumin\" have?", "question_toks": [ "how", "many", "distinct", "characteristic", "name", "doe", "product", "'", "cumin", "'", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 11, true ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"sesame\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "How", "many", "distinct", "characteristic", "names", "does", "the", "product", "``", "cumin", "''", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "characteristic", "name" ], [ "doe" ], [ "product" ], [ "'" ], [ "cumin" ], [ "'" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "characteristic", "JJ" ], [ "name", "NN" ], [ "doe", "JJ" ], [ "product", "NN" ], [ "'", "''" ], [ "cumin", "NN" ], [ "'", "''" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "cumin", "sesame" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(10) T(3) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(13) T(4) V(1)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(DISTINCT t3.characteristic_name) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"sesame\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "t3.characteristic_name", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t1.product_name", "=", "``", "sesame", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t3", ".", "characteristic_name", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "value" ], "question": "Count the number of different characteristic names the product 'cumin' has.", "question_toks": [ "count", "number", "of", "different", "characteristic", "name", "product", "'", "cumin", "'", "ha", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 11, true ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"sesame\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "characteristic", "names", "the", "product", "'cumin", "'", "has", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "characteristic", "name" ], [ "product" ], [ "'" ], [ "cumin" ], [ "'" ], [ "ha" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "characteristic", "JJ" ], [ "name", "NN" ], [ "product", "NN" ], [ "'", "''" ], [ "cumin", "NN" ], [ "'", "POS" ], [ "ha", "NN" ], [ ".", "." ] ], "values": [ "cumin", "sesame" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(10) T(3) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(13) T(4) V(1)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"sesame\"", "query_toks": [ "SELECT", "t3.characteristic_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t1.product_name", "=", "``", "sesame", "''" ], "query_toks_no_value": [ "select", "t3", ".", "characteristic_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "value" ], "question": "What are all the characteristic names of product \"sesame\"?", "question_toks": [ "what", "are", "all", "characteristic", "name", "of", "product", "'", "sesame", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"sesame\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "all", "the", "characteristic", "names", "of", "product", "``", "sesame", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "characteristic", "name" ], [ "of" ], [ "product" ], [ "'" ], [ "sesame" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "characteristic", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "'", "''" ], [ "sesame", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "sesame" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"sesame\"", "query_toks": [ "SELECT", "t3.characteristic_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t1.product_name", "=", "``", "sesame", "''" ], "query_toks_no_value": [ "select", "t3", ".", "characteristic_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "value" ], "question": "Return the characteristic names of the 'sesame' product.", "question_toks": [ "return", "characteristic", "name", "of", "'", "sesame", "'", "product", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"sesame\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Return", "the", "characteristic", "names", "of", "the", "'sesame", "'", "product", "." ], "question_arg": [ [ "return" ], [ "characteristic", "name" ], [ "of" ], [ "'" ], [ "sesame" ], [ "'" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "characteristic", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "sesame", "NN" ], [ "'", "POS" ], [ "product", "NN" ], [ ".", "." ] ], "values": [ "sesame" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t3.characteristic_name , t3.characteristic_data_type FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"cumin\"", "query_toks": [ "SELECT", "t3.characteristic_name", ",", "t3.characteristic_data_type", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t1.product_name", "=", "``", "cumin", "''" ], "query_toks_no_value": [ "select", "t3", ".", "characteristic_name", ",", "t3", ".", "characteristic_data_type", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "value" ], "question": "List all the characteristic names and data types of product \"cumin\".", "question_toks": [ "list", "all", "characteristic", "name", "and", "data", "type", "of", "product", "'", "cumin", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"cumin\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "List", "all", "the", "characteristic", "names", "and", "data", "types", "of", "product", "``", "cumin", "''", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "characteristic", "name" ], [ "and" ], [ "characteristic", "data", "type" ], [ "of" ], [ "product" ], [ "'" ], [ "cumin" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "characteristic", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "data", "NNS" ], [ "type", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "'", "''" ], [ "cumin", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "cumin" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(9) T(3) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t3.characteristic_name , t3.characteristic_data_type FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"cumin\"", "query_toks": [ "SELECT", "t3.characteristic_name", ",", "t3.characteristic_data_type", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t1.product_name", "=", "``", "cumin", "''" ], "query_toks_no_value": [ "select", "t3", ".", "characteristic_name", ",", "t3", ".", "characteristic_data_type", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "value" ], "question": "What are the names and data types of the characteristics of the 'cumin' product?", "question_toks": [ "what", "are", "name", "and", "data", "type", "of", "characteristic", "of", "'", "cumin", "'", "product", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"cumin\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "data", "types", "of", "the", "characteristics", "of", "the", "'cumin", "'", "product", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "characteristic", "data", "type" ], [ "of" ], [ "characteristic" ], [ "of" ], [ "'" ], [ "cumin" ], [ "'" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "data", "NNS" ], [ "type", "NN" ], [ "of", "IN" ], [ "characteristic", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "cumin", "NN" ], [ "'", "POS" ], [ "product", "NN" ], [ "?", "." ] ], "values": [ "cumin" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(9) T(3) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"sesame\" AND t3.characteristic_type_code = \"Grade\"", "query_toks": [ "SELECT", "t3.characteristic_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t1.product_name", "=", "``", "sesame", "''", "AND", "t3.characteristic_type_code", "=", "``", "Grade", "''" ], "query_toks_no_value": [ "select", "t3", ".", "characteristic_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "value", "and", "t3", ".", "characteristic_type_code", "=", "value" ], "question": "List all characteristics of product named \"sesame\" with type code \"Grade\".", "question_toks": [ "list", "all", "characteristic", "of", "product", "named", "'", "sesame", "'", "with", "type", "code", "'", "grade", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"sesame\"", null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Grade\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "List", "all", "characteristics", "of", "product", "named", "``", "sesame", "''", "with", "type", "code", "``", "Grade", "''", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "characteristic" ], [ "of" ], [ "product" ], [ "named" ], [ "'" ], [ "sesame" ], [ "'" ], [ "with" ], [ "characteristic", "type", "code" ], [ "'" ], [ "grade" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "characteristic", "JJ" ], [ "of", "IN" ], [ "product", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "sesame", "NN" ], [ "'", "''" ], [ "with", "IN" ], [ "type", "JJ" ], [ "code", "NN" ], [ "'", "''" ], [ "grade", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "sesame", "Grade" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(0) Filter(2) A(0) C(13) T(4) V(0) Filter(2) A(0) C(1) T(3) V(1)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"sesame\" AND t3.characteristic_type_code = \"Grade\"", "query_toks": [ "SELECT", "t3.characteristic_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t1.product_name", "=", "``", "sesame", "''", "AND", "t3.characteristic_type_code", "=", "``", "Grade", "''" ], "query_toks_no_value": [ "select", "t3", ".", "characteristic_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "value", "and", "t3", ".", "characteristic_type_code", "=", "value" ], "question": "What are the names of the characteristics of the product 'sesame' that have the characteristic type code 'Grade'?", "question_toks": [ "what", "are", "name", "of", "characteristic", "of", "product", "'", "sesame", "'", "that", "have", "characteristic", "type", "code", "'", "grade", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"sesame\"", null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Grade\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "characteristics", "of", "the", "product", "'sesame", "'", "that", "have", "the", "characteristic", "type", "code", "'Grade", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "characteristic" ], [ "of" ], [ "product" ], [ "'" ], [ "sesame" ], [ "'" ], [ "that" ], [ "have" ], [ "characteristic", "type", "code" ], [ "'" ], [ "grade" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "characteristic", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "'", "''" ], [ "sesame", "NN" ], [ "'", "POS" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "characteristic", "JJ" ], [ "type", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "grade", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "sesame", "Grade" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(0) Filter(2) A(0) C(13) T(4) V(0) Filter(2) A(0) C(1) T(3) V(1)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"laurel\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t1.product_name", "=", "``", "laurel", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "value" ], "question": "How many characteristics does the product named \"laurel\" have?", "question_toks": [ "how", "many", "characteristic", "doe", "product", "named", "'", "laurel", "'", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"laurel\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "How", "many", "characteristics", "does", "the", "product", "named", "``", "laurel", "''", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "characteristic" ], [ "doe" ], [ "product" ], [ "named" ], [ "'" ], [ "laurel" ], [ "'" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "characteristic", "JJ" ], [ "doe", "NNS" ], [ "product", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "laurel", "NN" ], [ "'", "''" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "laurel" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"laurel\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t1.product_name", "=", "``", "laurel", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "value" ], "question": "Count the number of characteristics of the product named 'laurel'.", "question_toks": [ "count", "number", "of", "characteristic", "of", "product", "named", "'", "laurel", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"laurel\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Count", "the", "number", "of", "characteristics", "of", "the", "product", "named", "'laurel", "'", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "characteristic" ], [ "of" ], [ "product" ], [ "named" ], [ "'" ], [ "laurel" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "characteristic", "JJ" ], [ "of", "IN" ], [ "product", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "laurel", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "laurel" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"flax\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t1.product_name", "=", "``", "flax", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "value" ], "question": "Find the number of characteristics that the product \"flax\" has.", "question_toks": [ "find", "number", "of", "characteristic", "that", "product", "'", "flax", "'", "ha", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"flax\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "number", "of", "characteristics", "that", "the", "product", "``", "flax", "''", "has", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "characteristic" ], [ "that" ], [ "product" ], [ "'" ], [ "flax" ], [ "'" ], [ "ha" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "characteristic", "JJ" ], [ "that", "IN" ], [ "product", "NN" ], [ "'", "''" ], [ "flax", "JJ" ], [ "'", "POS" ], [ "ha", "NN" ], [ ".", "." ] ], "values": [ "flax" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"flax\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t1.product_name", "=", "``", "flax", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "value" ], "question": "Count the number of characteristics of the 'flax' product.", "question_toks": [ "count", "number", "of", "characteristic", "of", "'", "flax", "'", "product", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"flax\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Count", "the", "number", "of", "characteristics", "of", "the", "'flax", "'", "product", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "characteristic" ], [ "of" ], [ "'" ], [ "flax" ], [ "'" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "characteristic", "JJ" ], [ "of", "IN" ], [ "'", "POS" ], [ "flax", "NN" ], [ "'", "POS" ], [ "product", "NN" ], [ ".", "." ] ], "values": [ "flax" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = \"red\" AND t3.characteristic_name = \"fast\"", "query_toks": [ "SELECT", "product_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "JOIN", "ref_colors", "AS", "t4", "ON", "t1.color_code", "=", "t4.color_code", "WHERE", "t4.color_description", "=", "``", "red", "''", "AND", "t3.characteristic_name", "=", "``", "fast", "''" ], "query_toks_no_value": [ "select", "product_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "join", "ref_colors", "as", "t4", "on", "t1", ".", "color_code", "=", "t4", ".", "color_code", "where", "t4", ".", "color_description", "=", "value", "and", "t3", ".", "characteristic_name", "=", "value" ], "question": "Find the name of the products that have the color description \"red\" and have the characteristic name \"fast\".", "question_toks": [ "find", "name", "of", "product", "that", "have", "color", "description", "'", "red", "'", "and", "have", "characteristic", "name", "'", "fast", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"red\"", null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"fast\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "products", "that", "have", "the", "color", "description", "``", "red", "''", "and", "have", "the", "characteristic", "name", "``", "fast", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "product" ], [ "that" ], [ "have" ], [ "color", "description" ], [ "'" ], [ "red" ], [ "'" ], [ "and" ], [ "have" ], [ "characteristic", "name" ], [ "'" ], [ "fast" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "color", "VBN" ], [ "description", "NN" ], [ "'", "''" ], [ "red", "JJ" ], [ "'", "POS" ], [ "and", "CC" ], [ "have", "VBP" ], [ "characteristic", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "fast", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "fast", "red" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(4) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(0) Filter(2) A(0) C(4) T(1) V(1) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = \"red\" AND t3.characteristic_name = \"fast\"", "query_toks": [ "SELECT", "product_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "JOIN", "ref_colors", "AS", "t4", "ON", "t1.color_code", "=", "t4.color_code", "WHERE", "t4.color_description", "=", "``", "red", "''", "AND", "t3.characteristic_name", "=", "``", "fast", "''" ], "query_toks_no_value": [ "select", "product_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "join", "ref_colors", "as", "t4", "on", "t1", ".", "color_code", "=", "t4", ".", "color_code", "where", "t4", ".", "color_description", "=", "value", "and", "t3", ".", "characteristic_name", "=", "value" ], "question": "What are the names of the products that have a color description of 'red' and the 'fast' characteristic?", "question_toks": [ "what", "are", "name", "of", "product", "that", "have", "a", "color", "description", "of", "'", "red", "'", "and", "'", "fast", "'", "characteristic", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"red\"", null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"fast\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "products", "that", "have", "a", "color", "description", "of", "'red", "'", "and", "the", "'fast", "'", "characteristic", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "product" ], [ "that" ], [ "have" ], [ "a" ], [ "color", "description" ], [ "of" ], [ "'" ], [ "red" ], [ "'" ], [ "and" ], [ "'" ], [ "fast" ], [ "'" ], [ "characteristic" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "color", "NN" ], [ "description", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "red", "JJ" ], [ "'", "POS" ], [ "and", "CC" ], [ "'", "POS" ], [ "fast", "NN" ], [ "'", "''" ], [ "characteristic", "JJ" ], [ "?", "." ] ], "values": [ "fast", "red" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(4) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(0) Filter(2) A(0) C(4) T(1) V(1) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = \"hot\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t3.characteristic_name", "=", "``", "hot", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t3", ".", "characteristic_name", "=", "value" ], "question": "How many products have the characteristic named \"hot\"?", "question_toks": [ "how", "many", "product", "have", "characteristic", "named", "'", "hot", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"hot\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "How", "many", "products", "have", "the", "characteristic", "named", "``", "hot", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "product" ], [ "have" ], [ "characteristic" ], [ "named" ], [ "'" ], [ "hot" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "product", "NN" ], [ "have", "VBP" ], [ "characteristic", "VBN" ], [ "named", "VBN" ], [ "'", "''" ], [ "hot", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "hot" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = \"hot\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t3.characteristic_name", "=", "``", "hot", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t3", ".", "characteristic_name", "=", "value" ], "question": "Count the number of products with the 'hot' charactersitic.", "question_toks": [ "count", "number", "of", "product", "with", "'", "hot", "'", "charactersitic", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"hot\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Count", "the", "number", "of", "products", "with", "the", "'hot", "'", "charactersitic", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "product" ], [ "with" ], [ "'" ], [ "hot" ], [ "'" ], [ "charactersitic" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "'", "''" ], [ "hot", "JJ" ], [ "'", "POS" ], [ "charactersitic", "NN" ], [ ".", "." ] ], "values": [ "hot" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT DISTINCT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = \"warm\"", "query_toks": [ "SELECT", "DISTINCT", "t1.product_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t3.characteristic_name", "=", "``", "warm", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "product_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t3", ".", "characteristic_name", "=", "value" ], "question": "List the all the distinct names of the products with the characteristic name 'warm'.", "question_toks": [ "list", "all", "distinct", "name", "of", "product", "with", "characteristic", "name", "'", "warm", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"warm\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "List", "the", "all", "the", "distinct", "names", "of", "the", "products", "with", "the", "characteristic", "name", "'warm", "'", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "distinct" ], [ "name" ], [ "of" ], [ "product" ], [ "with" ], [ "characteristic", "name" ], [ "'" ], [ "warm" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "characteristic", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "warm", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "warm" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(13) T(4) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT DISTINCT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = \"warm\"", "query_toks": [ "SELECT", "DISTINCT", "t1.product_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t3.characteristic_name", "=", "``", "warm", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "product_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t3", ".", "characteristic_name", "=", "value" ], "question": "What are the different product names for products that have the 'warm' characteristic:?", "question_toks": [ "what", "are", "different", "product", "name", "for", "product", "that", "have", "'", "warm", "'", "characteristic", ":", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"warm\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "different", "product", "names", "for", "products", "that", "have", "the", "'warm", "'", "characteristic", ":", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "product", "name" ], [ "for" ], [ "product" ], [ "that" ], [ "have" ], [ "'" ], [ "warm" ], [ "'" ], [ "characteristic" ], [ ":" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "product", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "'", "''" ], [ "warm", "JJ" ], [ "'", "POS" ], [ "characteristic", "NN" ], [ ":", ":" ], [ "?", "." ] ], "values": [ "warm" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(13) T(4) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = \"red\" AND t3.characteristic_name = \"slow\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "JOIN", "ref_colors", "AS", "t4", "ON", "t1.color_code", "=", "t4.color_code", "WHERE", "t4.color_description", "=", "``", "red", "''", "AND", "t3.characteristic_name", "=", "``", "slow", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "join", "ref_colors", "as", "t4", "on", "t1", ".", "color_code", "=", "t4", ".", "color_code", "where", "t4", ".", "color_description", "=", "value", "and", "t3", ".", "characteristic_name", "=", "value" ], "question": "Find the number of the products that have their color described as \"red\" and have a characteristic named \"slow\".", "question_toks": [ "find", "number", "of", "product", "that", "have", "their", "color", "described", "a", "'", "red", "'", "and", "have", "a", "characteristic", "named", "'", "slow", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"red\"", null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"slow\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "number", "of", "the", "products", "that", "have", "their", "color", "described", "as", "``", "red", "''", "and", "have", "a", "characteristic", "named", "``", "slow", "''", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "product" ], [ "that" ], [ "have" ], [ "their" ], [ "color" ], [ "described" ], [ "a" ], [ "'" ], [ "red" ], [ "'" ], [ "and" ], [ "have" ], [ "a" ], [ "characteristic" ], [ "named" ], [ "'" ], [ "slow" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "their", "PRP$" ], [ "color", "NN" ], [ "described", "VBD" ], [ "a", "DT" ], [ "'", "''" ], [ "red", "JJ" ], [ "'", "POS" ], [ "and", "CC" ], [ "have", "VBP" ], [ "a", "DT" ], [ "characteristic", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "slow", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "red", "slow" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(0) Filter(2) A(0) C(4) T(1) V(0) Filter(2) A(0) C(10) T(3) V(1)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = \"red\" AND t3.characteristic_name = \"slow\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "JOIN", "ref_colors", "AS", "t4", "ON", "t1.color_code", "=", "t4.color_code", "WHERE", "t4.color_description", "=", "``", "red", "''", "AND", "t3.characteristic_name", "=", "``", "slow", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "join", "ref_colors", "as", "t4", "on", "t1", ".", "color_code", "=", "t4", ".", "color_code", "where", "t4", ".", "color_description", "=", "value", "and", "t3", ".", "characteristic_name", "=", "value" ], "question": "How many products have the color description 'red' and the characteristic name 'slow'?", "question_toks": [ "how", "many", "product", "have", "color", "description", "'", "red", "'", "and", "characteristic", "name", "'", "slow", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"red\"", null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"slow\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "How", "many", "products", "have", "the", "color", "description", "'red", "'", "and", "the", "characteristic", "name", "'slow", "'", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "product" ], [ "have" ], [ "color", "description" ], [ "'" ], [ "red" ], [ "'" ], [ "and" ], [ "characteristic", "name" ], [ "'" ], [ "slow" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "product", "NN" ], [ "have", "VBP" ], [ "color", "VBN" ], [ "description", "NN" ], [ "'", "''" ], [ "red", "JJ" ], [ "'", "POS" ], [ "and", "CC" ], [ "characteristic", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "slow", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "red", "slow" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(0) Filter(2) A(0) C(4) T(1) V(0) Filter(2) A(0) C(10) T(3) V(1)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = \"white\" OR t3.characteristic_name = \"hot\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "JOIN", "ref_colors", "AS", "t4", "ON", "t1.color_code", "=", "t4.color_code", "WHERE", "t4.color_description", "=", "``", "white", "''", "OR", "t3.characteristic_name", "=", "``", "hot", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "join", "ref_colors", "as", "t4", "on", "t1", ".", "color_code", "=", "t4", ".", "color_code", "where", "t4", ".", "color_description", "=", "value", "or", "t3", ".", "characteristic_name", "=", "value" ], "question": "Count the products that have the color description \"white\" or have the characteristic name \"hot\".", "question_toks": [ "count", "product", "that", "have", "color", "description", "'", "white", "'", "or", "have", "characteristic", "name", "'", "hot", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"white\"", null ], "or", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"hot\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Count", "the", "products", "that", "have", "the", "color", "description", "``", "white", "''", "or", "have", "the", "characteristic", "name", "``", "hot", "''", "." ], "question_arg": [ [ "count" ], [ "product" ], [ "that" ], [ "have" ], [ "color", "description" ], [ "'" ], [ "white" ], [ "'" ], [ "or" ], [ "have" ], [ "characteristic", "name" ], [ "'" ], [ "hot" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "color", "VBN" ], [ "description", "NN" ], [ "'", "''" ], [ "white", "JJ" ], [ "'", "POS" ], [ "or", "CC" ], [ "have", "VBP" ], [ "characteristic", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "hot", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "hot", "white" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(1) Filter(2) A(0) C(4) T(1) V(1) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = \"white\" OR t3.characteristic_name = \"hot\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "JOIN", "ref_colors", "AS", "t4", "ON", "t1.color_code", "=", "t4.color_code", "WHERE", "t4.color_description", "=", "``", "white", "''", "OR", "t3.characteristic_name", "=", "``", "hot", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "join", "ref_colors", "as", "t4", "on", "t1", ".", "color_code", "=", "t4", ".", "color_code", "where", "t4", ".", "color_description", "=", "value", "or", "t3", ".", "characteristic_name", "=", "value" ], "question": "How many products have their color described as 'white' or have a characteristic with the name 'hot'?", "question_toks": [ "how", "many", "product", "have", "their", "color", "described", "a", "'", "white", "'", "or", "have", "a", "characteristic", "with", "name", "'", "hot", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"white\"", null ], "or", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"hot\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "How", "many", "products", "have", "their", "color", "described", "as", "'white", "'", "or", "have", "a", "characteristic", "with", "the", "name", "'hot", "'", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "product" ], [ "have" ], [ "their" ], [ "color" ], [ "described" ], [ "a" ], [ "'" ], [ "white" ], [ "'" ], [ "or" ], [ "have" ], [ "a" ], [ "characteristic" ], [ "with" ], [ "name" ], [ "'" ], [ "hot" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "product", "NN" ], [ "have", "VBP" ], [ "their", "PRP$" ], [ "color", "NN" ], [ "described", "VBD" ], [ "a", "DT" ], [ "'", "''" ], [ "white", "JJ" ], [ "'", "POS" ], [ "or", "CC" ], [ "have", "VBP" ], [ "a", "DT" ], [ "characteristic", "JJ" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "hot", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "hot", "white" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(1) Filter(2) A(0) C(4) T(1) V(1) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT unit_of_measure FROM ref_product_categories WHERE product_category_code = \"Herbs\"", "query_toks": [ "SELECT", "unit_of_measure", "FROM", "ref_product_categories", "WHERE", "product_category_code", "=", "``", "Herbs", "''" ], "query_toks_no_value": [ "select", "unit_of_measure", "from", "ref_product_categories", "where", "product_category_code", "=", "value" ], "question": "What is the unit of measuerment of the product category code \"Herbs\"?", "question_toks": [ "what", "is", "unit", "of", "measuerment", "of", "product", "category", "code", "'", "herb", "'", "?" ], "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, 5, false ], null ], "\"Herbs\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "unit", "of", "measuerment", "of", "the", "product", "category", "code", "``", "Herbs", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "unit", "of", "measure" ], [ "measuerment" ], [ "of" ], [ "product", "category", "code" ], [ "'" ], [ "herb" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "unit", "NN" ], [ "of", "IN" ], [ "measuerment", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "category", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "herb", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Herbs" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(5) T(2) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT unit_of_measure FROM ref_product_categories WHERE product_category_code = \"Herbs\"", "query_toks": [ "SELECT", "unit_of_measure", "FROM", "ref_product_categories", "WHERE", "product_category_code", "=", "``", "Herbs", "''" ], "query_toks_no_value": [ "select", "unit_of_measure", "from", "ref_product_categories", "where", "product_category_code", "=", "value" ], "question": "Return the unit of measure for 'Herb' products.", "question_toks": [ "return", "unit", "of", "measure", "for", "'", "herb", "'", "product", "." ], "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, 5, false ], null ], "\"Herbs\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Return", "the", "unit", "of", "measure", "for", "'Herb", "'", "products", "." ], "question_arg": [ [ "return" ], [ "unit", "of", "measure" ], [ "for" ], [ "'" ], [ "herb" ], [ "'" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "unit", "NN" ], [ "of", "IN" ], [ "measure", "NN" ], [ "for", "IN" ], [ "'", "''" ], [ "herb", "NN" ], [ "'", "POS" ], [ "product", "NN" ], [ ".", "." ] ], "values": [ "Herb", "Herbs" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(5) T(2) V(1)" }, { "db_id": "products_gen_characteristics", "query": "SELECT product_category_description FROM ref_product_categories WHERE product_category_code = \"Spices\"", "query_toks": [ "SELECT", "product_category_description", "FROM", "ref_product_categories", "WHERE", "product_category_code", "=", "``", "Spices", "''" ], "query_toks_no_value": [ "select", "product_category_description", "from", "ref_product_categories", "where", "product_category_code", "=", "value" ], "question": "Find the product category description of the product category with code \"Spices\".", "question_toks": [ "find", "product", "category", "description", "of", "product", "category", "with", "code", "'", "spice", "'", "." ], "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, 5, false ], null ], "\"Spices\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "product", "category", "description", "of", "the", "product", "category", "with", "code", "``", "Spices", "''", "." ], "question_arg": [ [ "find" ], [ "product", "category", "description" ], [ "of" ], [ "product" ], [ "category" ], [ "with" ], [ "code" ], [ "'" ], [ "spice" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "product", "NN" ], [ "category", "JJ" ], [ "description", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "category", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "'", "''" ], [ "spice", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Spices" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(2) A(0) C(5) T(2) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT product_category_description FROM ref_product_categories WHERE product_category_code = \"Spices\"", "query_toks": [ "SELECT", "product_category_description", "FROM", "ref_product_categories", "WHERE", "product_category_code", "=", "``", "Spices", "''" ], "query_toks_no_value": [ "select", "product_category_description", "from", "ref_product_categories", "where", "product_category_code", "=", "value" ], "question": "What is the description of the product category with the code 'Spices'?", "question_toks": [ "what", "is", "description", "of", "product", "category", "with", "code", "'", "spice", "'", "?" ], "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, 5, false ], null ], "\"Spices\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "description", "of", "the", "product", "category", "with", "the", "code", "'Spices", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "of" ], [ "product" ], [ "category" ], [ "with" ], [ "code" ], [ "'" ], [ "spice" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "category", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "'", "''" ], [ "spice", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Spices" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(2) A(0) C(5) T(2) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT product_category_description , unit_of_measure FROM ref_product_categories WHERE product_category_code = \"Herbs\"", "query_toks": [ "SELECT", "product_category_description", ",", "unit_of_measure", "FROM", "ref_product_categories", "WHERE", "product_category_code", "=", "``", "Herbs", "''" ], "query_toks_no_value": [ "select", "product_category_description", ",", "unit_of_measure", "from", "ref_product_categories", "where", "product_category_code", "=", "value" ], "question": "What is the product category description and unit of measurement of category \"Herbs\"?", "question_toks": [ "what", "is", "product", "category", "description", "and", "unit", "of", "measurement", "of", "category", "'", "herb", "'", "?" ], "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, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Herbs\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "product", "category", "description", "and", "unit", "of", "measurement", "of", "category", "``", "Herbs", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "product", "category", "description" ], [ "and" ], [ "unit", "of", "measure" ], [ "measurement" ], [ "of" ], [ "category" ], [ "'" ], [ "herb" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "product", "NN" ], [ "category", "NN" ], [ "description", "NN" ], [ "and", "CC" ], [ "unit", "NN" ], [ "of", "IN" ], [ "measurement", "NN" ], [ "of", "IN" ], [ "category", "NN" ], [ "'", "''" ], [ "herb", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Herbs" ], "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(5) T(2) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT product_category_description , unit_of_measure FROM ref_product_categories WHERE product_category_code = \"Herbs\"", "query_toks": [ "SELECT", "product_category_description", ",", "unit_of_measure", "FROM", "ref_product_categories", "WHERE", "product_category_code", "=", "``", "Herbs", "''" ], "query_toks_no_value": [ "select", "product_category_description", ",", "unit_of_measure", "from", "ref_product_categories", "where", "product_category_code", "=", "value" ], "question": "Return the description and unit of measurement for products in the 'Herbs' category.", "question_toks": [ "return", "description", "and", "unit", "of", "measurement", "for", "product", "in", "'", "herb", "'", "category", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Herbs\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Return", "the", "description", "and", "unit", "of", "measurement", "for", "products", "in", "the", "'Herbs", "'", "category", "." ], "question_arg": [ [ "return" ], [ "description" ], [ "and" ], [ "unit", "of", "measure" ], [ "measurement" ], [ "for" ], [ "product" ], [ "in" ], [ "'" ], [ "herb" ], [ "'" ], [ "category" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "description", "NN" ], [ "and", "CC" ], [ "unit", "NN" ], [ "of", "IN" ], [ "measurement", "NN" ], [ "for", "IN" ], [ "product", "NN" ], [ "in", "IN" ], [ "'", "''" ], [ "herb", "NN" ], [ "'", "POS" ], [ "category", "NN" ], [ ".", "." ] ], "values": [ "Herbs" ], "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(5) T(2) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = \"cumin\"", "query_toks": [ "SELECT", "t2.unit_of_measure", "FROM", "products", "AS", "t1", "JOIN", "ref_product_categories", "AS", "t2", "ON", "t1.product_category_code", "=", "t2.product_category_code", "WHERE", "t1.product_name", "=", "``", "cumin", "''" ], "query_toks_no_value": [ "select", "t2", ".", "unit_of_measure", "from", "products", "as", "t1", "join", "ref_product_categories", "as", "t2", "on", "t1", ".", "product_category_code", "=", "t2", ".", "product_category_code", "where", "t1", ".", "product_name", "=", "value" ], "question": "What is the unit of measurement of product named \"cumin\"?", "question_toks": [ "what", "is", "unit", "of", "measurement", "of", "product", "named", "'", "cumin", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 16, false ], null ], "\"cumin\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "unit", "of", "measurement", "of", "product", "named", "``", "cumin", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "unit", "of", "measure" ], [ "measurement" ], [ "of" ], [ "product" ], [ "named" ], [ "'" ], [ "cumin" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "unit", "NN" ], [ "of", "IN" ], [ "measurement", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "cumin", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "cumin" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = \"cumin\"", "query_toks": [ "SELECT", "t2.unit_of_measure", "FROM", "products", "AS", "t1", "JOIN", "ref_product_categories", "AS", "t2", "ON", "t1.product_category_code", "=", "t2.product_category_code", "WHERE", "t1.product_name", "=", "``", "cumin", "''" ], "query_toks_no_value": [ "select", "t2", ".", "unit_of_measure", "from", "products", "as", "t1", "join", "ref_product_categories", "as", "t2", "on", "t1", ".", "product_category_code", "=", "t2", ".", "product_category_code", "where", "t1", ".", "product_name", "=", "value" ], "question": "Give the unit of measure for the product with the name 'cumin'.", "question_toks": [ "give", "unit", "of", "measure", "for", "product", "with", "name", "'", "cumin", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 16, false ], null ], "\"cumin\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Give", "the", "unit", "of", "measure", "for", "the", "product", "with", "the", "name", "'cumin", "'", "." ], "question_arg": [ [ "give" ], [ "unit", "of", "measure" ], [ "for" ], [ "product" ], [ "with" ], [ "name" ], [ "'" ], [ "cumin" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "unit", "NN" ], [ "of", "IN" ], [ "measure", "NN" ], [ "for", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "cumin", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "cumin" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t2.unit_of_measure , t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = \"chervil\"", "query_toks": [ "SELECT", "t2.unit_of_measure", ",", "t2.product_category_code", "FROM", "products", "AS", "t1", "JOIN", "ref_product_categories", "AS", "t2", "ON", "t1.product_category_code", "=", "t2.product_category_code", "WHERE", "t1.product_name", "=", "``", "chervil", "''" ], "query_toks_no_value": [ "select", "t2", ".", "unit_of_measure", ",", "t2", ".", "product_category_code", "from", "products", "as", "t1", "join", "ref_product_categories", "as", "t2", "on", "t1", ".", "product_category_code", "=", "t2", ".", "product_category_code", "where", "t1", ".", "product_name", "=", "value" ], "question": "Find the unit of measurement and product category code of product named \"chervil\".", "question_toks": [ "find", "unit", "of", "measurement", "and", "product", "category", "code", "of", "product", "named", "'", "chervil", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"chervil\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "unit", "of", "measurement", "and", "product", "category", "code", "of", "product", "named", "``", "chervil", "''", "." ], "question_arg": [ [ "find" ], [ "unit", "of", "measure" ], [ "measurement" ], [ "and" ], [ "product", "category", "code" ], [ "of" ], [ "product" ], [ "named" ], [ "'" ], [ "chervil" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "unit", "NN" ], [ "of", "IN" ], [ "measurement", "NN" ], [ "and", "CC" ], [ "product", "NN" ], [ "category", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "chervil", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "chervil" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(2) A(0) C(5) T(2) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t2.unit_of_measure , t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = \"chervil\"", "query_toks": [ "SELECT", "t2.unit_of_measure", ",", "t2.product_category_code", "FROM", "products", "AS", "t1", "JOIN", "ref_product_categories", "AS", "t2", "ON", "t1.product_category_code", "=", "t2.product_category_code", "WHERE", "t1.product_name", "=", "``", "chervil", "''" ], "query_toks_no_value": [ "select", "t2", ".", "unit_of_measure", ",", "t2", ".", "product_category_code", "from", "products", "as", "t1", "join", "ref_product_categories", "as", "t2", "on", "t1", ".", "product_category_code", "=", "t2", ".", "product_category_code", "where", "t1", ".", "product_name", "=", "value" ], "question": "What are the unit of measure and category code for the 'chervil' product?", "question_toks": [ "what", "are", "unit", "of", "measure", "and", "category", "code", "for", "'", "chervil", "'", "product", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"chervil\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "unit", "of", "measure", "and", "category", "code", "for", "the", "'chervil", "'", "product", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "unit", "of", "measure" ], [ "and" ], [ "product", "category", "code" ], [ "for" ], [ "'" ], [ "chervil" ], [ "'" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "unit", "NN" ], [ "of", "IN" ], [ "measure", "NN" ], [ "and", "CC" ], [ "category", "NN" ], [ "code", "NN" ], [ "for", "IN" ], [ "'", "''" ], [ "chervil", "NN" ], [ "'", "POS" ], [ "product", "NN" ], [ "?", "." ] ], "values": [ "chervil" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(2) A(0) C(5) T(2) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t1.product_name FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code JOIN ref_colors AS t3 ON t1.color_code = t3.color_code WHERE t3.color_description = \"white\" AND t2.unit_of_measure != \"Handful\"", "query_toks": [ "SELECT", "t1.product_name", "FROM", "products", "AS", "t1", "JOIN", "ref_product_categories", "AS", "t2", "ON", "t1.product_category_code", "=", "t2.product_category_code", "JOIN", "ref_colors", "AS", "t3", "ON", "t1.color_code", "=", "t3.color_code", "WHERE", "t3.color_description", "=", "``", "white", "''", "AND", "t2.unit_of_measure", "!", "=", "``", "Handful", "''" ], "query_toks_no_value": [ "select", "t1", ".", "product_name", "from", "products", "as", "t1", "join", "ref_product_categories", "as", "t2", "on", "t1", ".", "product_category_code", "=", "t2", ".", "product_category_code", "join", "ref_colors", "as", "t3", "on", "t1", ".", "color_code", "=", "t3", ".", "color_code", "where", "t3", ".", "color_description", "=", "value", "and", "t2", ".", "unit_of_measure", "!", "=", "value" ], "question": "Find the product names that are colored 'white' but do not have unit of measurement \"Handful\".", "question_toks": [ "find", "product", "name", "that", "are", "colored", "'", "white", "'", "but", "do", "not", "have", "unit", "of", "measurement", "'", "handful", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 4, false ], null ], "\"white\"", null ], "and", [ false, 7, [ 0, [ 0, 7, false ], null ], "\"Handful\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "product", "names", "that", "are", "colored", "'white", "'", "but", "do", "not", "have", "unit", "of", "measurement", "``", "Handful", "''", "." ], "question_arg": [ [ "find" ], [ "product", "name" ], [ "that" ], [ "are" ], [ "colored" ], [ "'" ], [ "white" ], [ "'" ], [ "but" ], [ "do" ], [ "not" ], [ "have" ], [ "unit", "of", "measure" ], [ "measurement" ], [ "'" ], [ "handful" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "product", "NN" ], [ "name", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "colored", "VBN" ], [ "'", "''" ], [ "white", "JJ" ], [ "'", "POS" ], [ "but", "CC" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "unit", "NN" ], [ "of", "IN" ], [ "measurement", "NN" ], [ "'", "''" ], [ "handful", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "white", "Handful" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(4) Filter(0) Filter(2) A(0) C(4) T(1) V(0) Filter(3) A(0) C(7) T(2) V(1)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t1.product_name FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code JOIN ref_colors AS t3 ON t1.color_code = t3.color_code WHERE t3.color_description = \"white\" AND t2.unit_of_measure != \"Handful\"", "query_toks": [ "SELECT", "t1.product_name", "FROM", "products", "AS", "t1", "JOIN", "ref_product_categories", "AS", "t2", "ON", "t1.product_category_code", "=", "t2.product_category_code", "JOIN", "ref_colors", "AS", "t3", "ON", "t1.color_code", "=", "t3.color_code", "WHERE", "t3.color_description", "=", "``", "white", "''", "AND", "t2.unit_of_measure", "!", "=", "``", "Handful", "''" ], "query_toks_no_value": [ "select", "t1", ".", "product_name", "from", "products", "as", "t1", "join", "ref_product_categories", "as", "t2", "on", "t1", ".", "product_category_code", "=", "t2", ".", "product_category_code", "join", "ref_colors", "as", "t3", "on", "t1", ".", "color_code", "=", "t3", ".", "color_code", "where", "t3", ".", "color_description", "=", "value", "and", "t2", ".", "unit_of_measure", "!", "=", "value" ], "question": "What are the names of products that are not 'white' in color and are not measured by the unit 'Handful'?", "question_toks": [ "what", "are", "name", "of", "product", "that", "are", "not", "'", "white", "'", "in", "color", "and", "are", "not", "measured", "by", "unit", "'", "handful", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 4, false ], null ], "\"white\"", null ], "and", [ false, 7, [ 0, [ 0, 7, false ], null ], "\"Handful\"", null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "products", "that", "are", "not", "'white", "'", "in", "color", "and", "are", "not", "measured", "by", "the", "unit", "'Handful", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "product" ], [ "that" ], [ "are" ], [ "not" ], [ "'" ], [ "white" ], [ "'" ], [ "in" ], [ "color" ], [ "and" ], [ "are" ], [ "not" ], [ "measured" ], [ "by" ], [ "unit" ], [ "'" ], [ "handful" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "'", "''" ], [ "white", "JJ" ], [ "'", "''" ], [ "in", "IN" ], [ "color", "NN" ], [ "and", "CC" ], [ "are", "VBP" ], [ "not", "RB" ], [ "measured", "VBN" ], [ "by", "IN" ], [ "unit", "NN" ], [ "'", "''" ], [ "handful", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "white", "Handful" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(4) Filter(0) Filter(2) A(0) C(4) T(1) V(0) Filter(3) A(0) C(7) T(2) V(1)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.color_description", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1.color_code", "=", "t2.color_code", "GROUP", "BY", "t2.color_description", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "color_description", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "group", "by", "t2", ".", "color_description", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the description of the color for most products?", "question_toks": [ "what", "is", "description", "of", "color", "for", "most", "product", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "description", "of", "the", "color", "for", "most", "products", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "of" ], [ "color" ], [ "for" ], [ "most" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "of", "IN" ], [ "color", "NN" ], [ "for", "IN" ], [ "most", "JJS" ], [ "product", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(4) T(1) Sup(0) A(3) C(0) T(4) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(4)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.color_description", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1.color_code", "=", "t2.color_code", "GROUP", "BY", "t2.color_description", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "color_description", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "group", "by", "t2", ".", "color_description", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the color description that is most common across all products.", "question_toks": [ "return", "color", "description", "that", "is", "most", "common", "across", "all", "product", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Return", "the", "color", "description", "that", "is", "most", "common", "across", "all", "products", "." ], "question_arg": [ [ "return" ], [ "color", "description" ], [ "that" ], [ "is" ], [ "most" ], [ "common" ], [ "across" ], [ "all" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "color", "NN" ], [ "description", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "across", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(4) T(1) Sup(0) A(3) C(0) T(4) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(4)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "t2.color_description", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1.color_code", "=", "t2.color_code", "GROUP", "BY", "t2.color_description", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "color_description", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "group", "by", "t2", ".", "color_description", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "What is the description of the color used by least products?", "question_toks": [ "what", "is", "description", "of", "color", "used", "by", "least", "product", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "description", "of", "the", "color", "used", "by", "least", "products", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "of" ], [ "color" ], [ "used" ], [ "by" ], [ "least" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "of", "IN" ], [ "color", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "least", "JJS" ], [ "product", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(4) T(1) Sup(1) A(3) C(0) T(4) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(4)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "t2.color_description", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1.color_code", "=", "t2.color_code", "GROUP", "BY", "t2.color_description", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "color_description", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "group", "by", "t2", ".", "color_description", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Give the color description that is least common across products.", "question_toks": [ "give", "color", "description", "that", "is", "least", "common", "across", "product", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Give", "the", "color", "description", "that", "is", "least", "common", "across", "products", "." ], "question_arg": [ [ "give" ], [ "color", "description" ], [ "that" ], [ "is" ], [ "least" ], [ "common" ], [ "across" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "color", "NN" ], [ "description", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "least", "JJ" ], [ "common", "JJ" ], [ "across", "IN" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(4) T(1) Sup(1) A(3) C(0) T(4) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(4)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id GROUP BY t3.characteristic_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t3.characteristic_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "GROUP", "BY", "t3.characteristic_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t3", ".", "characteristic_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "group", "by", "t3", ".", "characteristic_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the characteristic name used by most number of the products?", "question_toks": [ "what", "is", "characteristic", "name", "used", "by", "most", "number", "of", "product", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 21, 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 ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "characteristic", "name", "used", "by", "most", "number", "of", "the", "products", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "characteristic", "name" ], [ "used" ], [ "by" ], [ "most" ], [ "number" ], [ "of" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "characteristic", "JJ" ], [ "name", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(3) Sup(0) A(3) C(0) T(3) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(18) A(0) C(12) T(5) Root(5) Sel(0) N(0) A(0) C(12) T(4)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id GROUP BY t3.characteristic_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t3.characteristic_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "GROUP", "BY", "t3.characteristic_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t3", ".", "characteristic_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "group", "by", "t3", ".", "characteristic_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the name of the characteristic that is most common across all products.", "question_toks": [ "return", "name", "of", "characteristic", "that", "is", "most", "common", "across", "all", "product", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 21, 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 ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Return", "the", "name", "of", "the", "characteristic", "that", "is", "most", "common", "across", "all", "products", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "characteristic" ], [ "that" ], [ "is" ], [ "most" ], [ "common" ], [ "across" ], [ "all" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "characteristic", "JJ" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "across", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(3) Sup(0) A(3) C(0) T(3) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(18) A(0) C(12) T(5) Root(5) Sel(0) N(0) A(0) C(12) T(4)" }, { "db_id": "products_gen_characteristics", "query": "SELECT characteristic_name , other_characteristic_details , characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name , t1.other_characteristic_details , t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_id", "query_toks": [ "SELECT", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "FROM", "CHARACTERISTICS", "EXCEPT", "SELECT", "t1.characteristic_name", ",", "t1.other_characteristic_details", ",", "t1.characteristic_data_type", "FROM", "CHARACTERISTICS", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.characteristic_id", "=", "t2.characteristic_id" ], "query_toks_no_value": [ "select", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "from", "characteristics", "except", "select", "t1", ".", "characteristic_name", ",", "t1", ".", "other_characteristic_details", ",", "t1", ".", "characteristic_data_type", "from", "characteristics", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "characteristic_id", "=", "t2", ".", "characteristic_id" ], "question": "What are the names, details and data types of the characteristics which are never used by any product?", "question_toks": [ "what", "are", "name", ",", "detail", "and", "data", "type", "of", "characteristic", "which", "are", "never", "used", "by", "any", "product", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, 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, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, 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 ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", ",", "details", "and", "data", "types", "of", "the", "characteristics", "which", "are", "never", "used", "by", "any", "product", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "detail" ], [ "and" ], [ "characteristic", "data", "type" ], [ "of" ], [ "characteristic" ], [ "which" ], [ "are" ], [ "never" ], [ "used" ], [ "by" ], [ "any" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "detail", "NN" ], [ "and", "CC" ], [ "data", "NNS" ], [ "type", "NN" ], [ "of", "IN" ], [ "characteristic", "JJ" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "never", "RB" ], [ "used", "VBN" ], [ "by", "IN" ], [ "any", "DT" ], [ "product", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(2) A(0) C(10) T(3) A(0) C(11) T(3) A(0) C(9) T(3) Root(3) Sel(0) N(2) A(0) C(10) T(3) A(0) C(11) T(3) A(0) C(9) T(3) Filter(18) A(0) C(8) T(3) Root(5) Sel(0) N(0) A(0) C(8) T(5)" }, { "db_id": "products_gen_characteristics", "query": "SELECT characteristic_name , other_characteristic_details , characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name , t1.other_characteristic_details , t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_id", "query_toks": [ "SELECT", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "FROM", "CHARACTERISTICS", "EXCEPT", "SELECT", "t1.characteristic_name", ",", "t1.other_characteristic_details", ",", "t1.characteristic_data_type", "FROM", "CHARACTERISTICS", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.characteristic_id", "=", "t2.characteristic_id" ], "query_toks_no_value": [ "select", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "from", "characteristics", "except", "select", "t1", ".", "characteristic_name", ",", "t1", ".", "other_characteristic_details", ",", "t1", ".", "characteristic_data_type", "from", "characteristics", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "characteristic_id", "=", "t2", ".", "characteristic_id" ], "question": "Give the names, details, and data types of characteristics that are not found in any product.", "question_toks": [ "give", "name", ",", "detail", ",", "and", "data", "type", "of", "characteristic", "that", "are", "not", "found", "in", "any", "product", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, 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, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, 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 ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Give", "the", "names", ",", "details", ",", "and", "data", "types", "of", "characteristics", "that", "are", "not", "found", "in", "any", "product", "." ], "question_arg": [ [ "give" ], [ "name" ], [ "," ], [ "detail" ], [ "," ], [ "and" ], [ "characteristic", "data", "type" ], [ "of" ], [ "characteristic" ], [ "that" ], [ "are" ], [ "not" ], [ "found" ], [ "in" ], [ "any" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "name", "NN" ], [ ",", "," ], [ "detail", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "data", "NNS" ], [ "type", "NN" ], [ "of", "IN" ], [ "characteristic", "JJ" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "found", "VBN" ], [ "in", "IN" ], [ "any", "DT" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(2) A(0) C(10) T(3) A(0) C(11) T(3) A(0) C(9) T(3) Root(3) Sel(0) N(2) A(0) C(10) T(3) A(0) C(11) T(3) A(0) C(9) T(3) Filter(18) A(0) C(8) T(3) Root(5) Sel(0) N(0) A(0) C(8) T(5)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id GROUP BY t3.characteristic_name HAVING count(*) >= 2", "query_toks": [ "SELECT", "t3.characteristic_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "GROUP", "BY", "t3.characteristic_name", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t3", ".", "characteristic_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "group", "by", "t3", ".", "characteristic_name", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are characteristic names used at least twice across all products?", "question_toks": [ "what", "are", "characteristic", "name", "used", "at", "least", "twice", "across", "all", "product", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "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": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 21, 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 ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "characteristic", "names", "used", "at", "least", "twice", "across", "all", "products", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "characteristic", "name" ], [ "used" ], [ "at" ], [ "least" ], [ "twice" ], [ "across" ], [ "all" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "characteristic", "JJ" ], [ "name", "NN" ], [ "used", "VBN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "twice", "RB" ], [ "across", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(0) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(18) A(0) C(12) T(5) Root(5) Sel(0) N(0) A(0) C(12) T(4) Filter(7) A(3) C(0) T(3) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id GROUP BY t3.characteristic_name HAVING count(*) >= 2", "query_toks": [ "SELECT", "t3.characteristic_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "GROUP", "BY", "t3.characteristic_name", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t3", ".", "characteristic_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "group", "by", "t3", ".", "characteristic_name", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Give the names of characteristics that are in two or more products?", "question_toks": [ "give", "name", "of", "characteristic", "that", "are", "in", "two", "or", "more", "product", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "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": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 21, 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 ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Give", "the", "names", "of", "characteristics", "that", "are", "in", "two", "or", "more", "products", "?" ], "question_arg": [ [ "give" ], [ "name" ], [ "of" ], [ "characteristic" ], [ "that" ], [ "are" ], [ "in" ], [ "two" ], [ "or" ], [ "more" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "characteristic", "JJ" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "product", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(0) Filter(0) Filter(18) A(0) C(12) T(4) Root(5) Sel(0) N(0) A(0) C(12) T(5) Filter(18) A(0) C(12) T(5) Root(5) Sel(0) N(0) A(0) C(12) T(4) Filter(7) A(3) C(0) T(3) V(0)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM Ref_colors WHERE color_code NOT IN ( SELECT color_code FROM products )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Ref_colors", "WHERE", "color_code", "NOT", "IN", "(", "SELECT", "color_code", "FROM", "products", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_colors", "where", "color_code", "not", "in", "(", "select", "color_code", "from", "products", ")" ], "question": "How many colors are never used by any product?", "question_toks": [ "how", "many", "color", "are", "never", "used", "by", "any", "product", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 3, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "How", "many", "colors", "are", "never", "used", "by", "any", "product", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "color" ], [ "are" ], [ "never" ], [ "used" ], [ "by" ], [ "any" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "color", "NN" ], [ "are", "VBP" ], [ "never", "RB" ], [ "used", "VBN" ], [ "by", "IN" ], [ "any", "DT" ], [ "product", "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(4)" }, { "db_id": "products_gen_characteristics", "query": "SELECT count(*) FROM Ref_colors WHERE color_code NOT IN ( SELECT color_code FROM products )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Ref_colors", "WHERE", "color_code", "NOT", "IN", "(", "SELECT", "color_code", "FROM", "products", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_colors", "where", "color_code", "not", "in", "(", "select", "color_code", "from", "products", ")" ], "question": "Count the number of colors that are not used in any products.", "question_toks": [ "count", "number", "of", "color", "that", "are", "not", "used", "in", "any", "product", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 3, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic type code", "characteristic data type", "characteristic name", "other characteristic details", "product id", "color code", "product category code", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product id", "characteristic id", "product characteristic value" ], "table_names": [ "reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics" ], "col_set": [ "*", "characteristic type code", "characteristic type description", "color code", "color description", "product category code", "product category description", "unit of measure", "characteristic id", "characteristic data type", "characteristic name", "other characteristic details", "product id", "product name", "typical buying price", "typical selling price", "product description", "other product details", "product characteristic value" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "14": 3, "3": 3, "15": 5, "5": 5, "21": 13, "13": 13, "22": 8, "8": 8 }, "origin_question_toks": [ "Count", "the", "number", "of", "colors", "that", "are", "not", "used", "in", "any", "products", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "color" ], [ "that" ], [ "are" ], [ "not" ], [ "used" ], [ "in" ], [ "any" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "color", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "used", "VBN" ], [ "in", "IN" ], [ "any", "DT" ], [ "product", "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(4)" }, { "db_id": "swimming", "query": "SELECT count(*) FROM event", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "event" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "event" ], "question": "How many events are there?", "question_toks": [ "how", "many", "event", "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": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "How", "many", "events", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "event" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "event", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "swimming", "query": "SELECT name FROM event ORDER BY YEAR DESC", "query_toks": [ "SELECT", "name", "FROM", "event", "ORDER", "BY", "YEAR", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "event", "order", "by", "year", "desc" ], "question": "List all the event names by year from the most recent to the oldest.", "question_toks": [ "list", "all", "event", "name", "by", "year", "from", "most", "recent", "to", "oldest", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "List", "all", "the", "event", "names", "by", "year", "from", "the", "most", "recent", "to", "the", "oldest", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "event" ], [ "name" ], [ "by" ], [ "year" ], [ "from" ], [ "most" ], [ "recent" ], [ "to" ], [ "oldest" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "event", "NN" ], [ "name", "NN" ], [ "by", "IN" ], [ "year", "NN" ], [ "from", "IN" ], [ "most", "RBS" ], [ "recent", "JJ" ], [ "to", "TO" ], [ "oldest", "JJS" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(2) Order(0) A(0) C(17) T(2)" }, { "db_id": "swimming", "query": "SELECT name FROM event ORDER BY YEAR DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "event", "ORDER", "BY", "YEAR", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "event", "order", "by", "year", "desc", "limit", "value" ], "question": "What is the name of the event that happened in the most recent year?", "question_toks": [ "what", "is", "name", "of", "event", "that", "happened", "in", "most", "recent", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "event", "that", "happened", "in", "the", "most", "recent", "year", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "event" ], [ "that" ], [ "happened" ], [ "in" ], [ "most" ], [ "recent" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "event", "NN" ], [ "that", "WDT" ], [ "happened", "VBD" ], [ "in", "IN" ], [ "most", "JJS" ], [ "recent", "JJ" ], [ "year", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(2) Sup(0) A(0) C(17) T(2)" }, { "db_id": "swimming", "query": "SELECT count(*) FROM stadium", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "stadium" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "stadium" ], "question": "How many stadiums are there?", "question_toks": [ "how", "many", "stadium", "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", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "How", "many", "stadiums", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "stadium" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "stadium", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "swimming", "query": "SELECT name FROM stadium ORDER BY capacity DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "stadium", "ORDER", "BY", "capacity", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "stadium", "order", "by", "capacity", "desc", "limit", "value" ], "question": "Find the name of the stadium that has the maximum capacity.", "question_toks": [ "find", "name", "of", "stadium", "that", "ha", "maximum", "capacity", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "stadium", "that", "has", "the", "maximum", "capacity", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "stadium" ], [ "that" ], [ "ha" ], [ "maximum" ], [ "capacity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "stadium", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "maximum", "JJ" ], [ "capacity", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(1) Sup(0) A(0) C(12) T(1)" }, { "db_id": "swimming", "query": "SELECT name FROM stadium WHERE capacity < (SELECT avg(capacity) FROM stadium)", "query_toks": [ "SELECT", "name", "FROM", "stadium", "WHERE", "capacity", "<", "(", "SELECT", "avg", "(", "capacity", ")", "FROM", "stadium", ")" ], "query_toks_no_value": [ "select", "name", "from", "stadium", "where", "capacity", "<", "(", "select", "avg", "(", "capacity", ")", "from", "stadium", ")" ], "question": "Find the names of stadiums whose capacity is smaller than the average capacity.", "question_toks": [ "find", "name", "of", "stadium", "whose", "capacity", "is", "smaller", "than", "average", "capacity", "." ], "sql": { "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, 14, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Find", "the", "names", "of", "stadiums", "whose", "capacity", "is", "smaller", "than", "the", "average", "capacity", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "stadium" ], [ "whose" ], [ "capacity" ], [ "is" ], [ "smaller" ], [ "than" ], [ "average" ], [ "capacity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "stadium", "NN" ], [ "whose", "WP$" ], [ "capacity", "NN" ], [ "is", "VBZ" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "capacity", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(12) A(0) C(12) T(1) Root(5) Sel(0) N(0) A(5) C(12) T(1)" }, { "db_id": "swimming", "query": "SELECT country FROM stadium GROUP BY country ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "country", "FROM", "stadium", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "country", "from", "stadium", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the country that has the most stadiums.", "question_toks": [ "find", "country", "that", "ha", "most", "stadium", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Find", "the", "country", "that", "has", "the", "most", "stadiums", "." ], "question_arg": [ [ "find" ], [ "country" ], [ "that" ], [ "ha" ], [ "most" ], [ "stadium" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "country", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "stadium", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(14) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "swimming", "query": "SELECT country FROM stadium GROUP BY country HAVING count(*) <= 3", "query_toks": [ "SELECT", "country", "FROM", "stadium", "GROUP", "BY", "country", "HAVING", "count", "(", "*", ")", "<", "=", "3" ], "query_toks_no_value": [ "select", "country", "from", "stadium", "group", "by", "country", "having", "count", "(", "*", ")", "<", "=", "value" ], "question": "Which country has at most 3 stadiums listed?", "question_toks": [ "which", "country", "ha", "at", "most", "3", "stadium", "listed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [ [ false, 6, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Which", "country", "has", "at", "most", "3", "stadiums", "listed", "?" ], "question_arg": [ [ "which" ], [ "country" ], [ "ha" ], [ "at" ], [ "most" ], [ "3" ], [ "stadium" ], [ "listed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "ha", "NN" ], [ "at", "IN" ], [ "most", "JJS" ], [ "3", "CD" ], [ "stadium", "NN" ], [ "listed", "VBN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(1) Filter(6) A(3) C(0) T(1) V(0)" }, { "db_id": "swimming", "query": "SELECT country FROM stadium WHERE capacity > 60000 INTERSECT SELECT country FROM stadium WHERE capacity < 50000", "query_toks": [ "SELECT", "country", "FROM", "stadium", "WHERE", "capacity", ">", "60000", "INTERSECT", "SELECT", "country", "FROM", "stadium", "WHERE", "capacity", "<", "50000" ], "query_toks_no_value": [ "select", "country", "from", "stadium", "where", "capacity", ">", "value", "intersect", "select", "country", "from", "stadium", "where", "capacity", "<", "value" ], "question": "Which country has both stadiums with capacity greater than 60000 and stadiums with capacity less than 50000?", "question_toks": [ "which", "country", "ha", "both", "stadium", "with", "capacity", "greater", "than", "60000", "and", "stadium", "with", "capacity", "le", "than", "50000", "?" ], "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, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 14, false ], null ], 50000.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], 60000.0, null ] ] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Which", "country", "has", "both", "stadiums", "with", "capacity", "greater", "than", "60000", "and", "stadiums", "with", "capacity", "less", "than", "50000", "?" ], "question_arg": [ [ "which" ], [ "country" ], [ "ha" ], [ "both" ], [ "stadium" ], [ "with" ], [ "capacity" ], [ "greater" ], [ "than" ], [ "60000" ], [ "and" ], [ "stadium" ], [ "with" ], [ "capacity" ], [ "le" ], [ "than" ], [ "50000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "ha", "VBD" ], [ "both", "DT" ], [ "stadium", "NN" ], [ "with", "IN" ], [ "capacity", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "60000", "CD" ], [ "and", "CC" ], [ "stadium", "NN" ], [ "with", "IN" ], [ "capacity", "NN" ], [ "le", "NN" ], [ "than", "IN" ], [ "50000", "CD" ], [ "?", "." ] ], "values": [ "50000", "60000" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(14) T(1) Filter(5) A(0) C(12) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(14) T(1) Filter(4) A(0) C(12) T(1) V(0)" }, { "db_id": "swimming", "query": "SELECT count(DISTINCT city) FROM stadium WHERE opening_year < 2006", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "city", ")", "FROM", "stadium", "WHERE", "opening_year", "<", "2006" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "city", ")", "from", "stadium", "where", "opening_year", "<", "value" ], "question": "How many cities have a stadium that was opened before the year of 2006?", "question_toks": [ "how", "many", "city", "have", "a", "stadium", "that", "wa", "opened", "before", "year", "of", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 15, true ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 17, false ], null ], 2006.0, null ] ] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "How", "many", "cities", "have", "a", "stadium", "that", "was", "opened", "before", "the", "year", "of", "2006", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "city" ], [ "have" ], [ "a" ], [ "stadium" ], [ "that" ], [ "wa" ], [ "opened" ], [ "before" ], [ "year" ], [ "of" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "city", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "stadium", "NN" ], [ "that", "WDT" ], [ "wa", "VBP" ], [ "opened", "VBN" ], [ "before", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "2006", "CD" ], [ "?", "." ] ], "values": [ "2006" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(13) T(1) Filter(4) A(0) C(15) T(1) V(0)" }, { "db_id": "swimming", "query": "SELECT country , count(*) FROM stadium GROUP BY country", "query_toks": [ "SELECT", "country", ",", "count", "(", "*", ")", "FROM", "stadium", "GROUP", "BY", "country" ], "query_toks_no_value": [ "select", "country", ",", "count", "(", "*", ")", "from", "stadium", "group", "by", "country" ], "question": "How many stadiums does each country have?", "question_toks": [ "how", "many", "stadium", "doe", "each", "country", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "How", "many", "stadiums", "does", "each", "country", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "stadium" ], [ "doe" ], [ "each" ], [ "country" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "stadium", "NN" ], [ "doe", "NNS" ], [ "each", "DT" ], [ "country", "NN" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(14) T(1) A(3) C(0) T(1)" }, { "db_id": "swimming", "query": "SELECT country FROM stadium EXCEPT SELECT country FROM stadium WHERE opening_year > 2006", "query_toks": [ "SELECT", "country", "FROM", "stadium", "EXCEPT", "SELECT", "country", "FROM", "stadium", "WHERE", "opening_year", ">", "2006" ], "query_toks_no_value": [ "select", "country", "from", "stadium", "except", "select", "country", "from", "stadium", "where", "opening_year", ">", "value" ], "question": "Which countries do not have a stadium that was opened after 2006?", "question_toks": [ "which", "country", "do", "not", "have", "a", "stadium", "that", "wa", "opened", "after", "year", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "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, 17, false ], null ], 2006.0, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Which", "countries", "do", "not", "have", "a", "stadium", "that", "was", "opened", "after", "2006", "?" ], "question_arg": [ [ "which" ], [ "country" ], [ "do" ], [ "not" ], [ "have" ], [ "a" ], [ "stadium" ], [ "that" ], [ "wa" ], [ "opened" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "stadium", "NN" ], [ "that", "WDT" ], [ "wa", "NN" ], [ "opened", "VBD" ], [ "after", "IN" ], [ "2006", "CD" ], [ "?", "." ] ], "values": [ "2006" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(14) T(1) Root(3) Sel(0) N(0) A(0) C(14) T(1) Filter(5) A(0) C(15) T(1) V(0)" }, { "db_id": "swimming", "query": "SELECT count(*) FROM stadium WHERE country != 'Russia'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "stadium", "WHERE", "country", "!", "=", "'Russia", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "stadium", "where", "country", "!", "=", "value" ], "question": "How many stadiums are not in country \"Russia\"?", "question_toks": [ "how", "many", "stadium", "are", "not", "in", "country", "'", "russia", "'", "?" ], "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, 16, false ], null ], "\"Russia\"", null ] ] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "How", "many", "stadiums", "are", "not", "in", "country", "``", "Russia", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "stadium" ], [ "are" ], [ "not" ], [ "in" ], [ "country" ], [ "'" ], [ "russia" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "stadium", "NN" ], [ "are", "VBP" ], [ "not", "RB" ], [ "in", "IN" ], [ "country", "NN" ], [ "'", "''" ], [ "russia", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Russia" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(3) A(0) C(14) T(1) V(0)" }, { "db_id": "swimming", "query": "SELECT name FROM swimmer ORDER BY meter_100", "query_toks": [ "SELECT", "name", "FROM", "swimmer", "ORDER", "BY", "meter_100" ], "query_toks_no_value": [ "select", "name", "from", "swimmer", "order", "by", "meter_100" ], "question": "Find the names of all swimmers, sorted by their 100 meter scores in ascending order.", "question_toks": [ "find", "name", "of", "all", "swimmer", ",", "sorted", "by", "their", "100", "meter", "score", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "swimmers", ",", "sorted", "by", "their", "100", "meter", "scores", "in", "ascending", "order", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "swimmer" ], [ "," ], [ "sorted" ], [ "by" ], [ "their" ], [ "meter", "100" ], [ "score" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "swimmer", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "100", "CD" ], [ "meter", "NN" ], [ "score", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(4) T(0)" }, { "db_id": "swimming", "query": "SELECT count(DISTINCT nationality) FROM swimmer", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "nationality", ")", "FROM", "swimmer" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "nationality", ")", "from", "swimmer" ], "question": "How many different countries are all the swimmers from?", "question_toks": [ "how", "many", "different", "country", "are", "all", "swimmer", "from", "?" ], "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": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "How", "many", "different", "countries", "are", "all", "the", "swimmers", "from", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "country" ], [ "are" ], [ "all" ], [ "swimmer" ], [ "from" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "country", "NN" ], [ "are", "VBP" ], [ "all", "DT" ], [ "swimmer", "NN" ], [ "from", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(3) T(0)" }, { "db_id": "swimming", "query": "SELECT nationality , count(*) FROM swimmer GROUP BY nationality HAVING count(*) > 1", "query_toks": [ "SELECT", "nationality", ",", "count", "(", "*", ")", "FROM", "swimmer", "GROUP", "BY", "nationality", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "nationality", ",", "count", "(", "*", ")", "from", "swimmer", "group", "by", "nationality", "having", "count", "(", "*", ")", ">", "value" ], "question": "List countries that have more than one swimmer.", "question_toks": [ "list", "country", "that", "have", "more", "than", "one", "swimmer", "." ], "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 ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "List", "countries", "that", "have", "more", "than", "one", "swimmer", "." ], "question_arg": [ [ "list" ], [ "country" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "swimmer" ], [ "." ] ], "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" ], [ "swimmer", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(3) C(0) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "swimming", "query": "SELECT meter_200 , meter_300 FROM swimmer WHERE nationality = 'Australia'", "query_toks": [ "SELECT", "meter_200", ",", "meter_300", "FROM", "swimmer", "WHERE", "nationality", "=", "'Australia", "'" ], "query_toks_no_value": [ "select", "meter_200", ",", "meter_300", "from", "swimmer", "where", "nationality", "=", "value" ], "question": "Find all 200 meter and 300 meter results of swimmers with nationality \"Australia\".", "question_toks": [ "find", "all", "200", "meter", "and", "300", "meter", "result", "of", "swimmer", "with", "nationality", "'", "australia", "'", "." ], "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, 3, false ], null ], "\"Australia\"", null ] ] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Find", "all", "200", "meter", "and", "300", "meter", "results", "of", "swimmers", "with", "nationality", "``", "Australia", "''", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "meter", "200" ], [ "and" ], [ "meter", "300" ], [ "result" ], [ "of" ], [ "swimmer" ], [ "with" ], [ "nationality" ], [ "'" ], [ "australia" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "200", "CD" ], [ "meter", "NN" ], [ "and", "CC" ], [ "300", "CD" ], [ "meter", "NN" ], [ "result", "NN" ], [ "of", "IN" ], [ "swimmer", "NN" ], [ "with", "IN" ], [ "nationality", "NN" ], [ "'", "''" ], [ "australia", "NNS" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Australia", "300", "200" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(0) A(0) C(6) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "swimming", "query": "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win'", "query_toks": [ "SELECT", "t1.name", "FROM", "swimmer", "AS", "t1", "JOIN", "record", "AS", "t2", "ON", "t1.id", "=", "t2.swimmer_id", "WHERE", "RESULT", "=", "'Win", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "swimmer", "as", "t1", "join", "record", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "swimmer_id", "where", "result", "=", "value" ], "question": "Find the names of swimmers who has a result of \"win\".", "question_toks": [ "find", "name", "of", "swimmer", "who", "ha", "a", "result", "of", "'", "win", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Win\"", null ] ] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Find", "the", "names", "of", "swimmers", "who", "has", "a", "result", "of", "``", "win", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "swimmer" ], [ "who" ], [ "ha" ], [ "a" ], [ "result" ], [ "of" ], [ "'" ], [ "win" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "swimmer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "a", "DT" ], [ "result", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "win", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Win", "win" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(18) T(3) V(0)" }, { "db_id": "swimming", "query": "SELECT t1.name FROM stadium AS t1 JOIN event AS t2 ON t1.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", "FROM", "stadium", "AS", "t1", "JOIN", "event", "AS", "t2", "ON", "t1.id", "=", "t2.stadium_id", "GROUP", "BY", "t2.stadium_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "stadium", "as", "t1", "join", "event", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "stadium_id", "group", "by", "t2", ".", "stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the stadium which held the most events?", "question_toks": [ "what", "is", "name", "of", "stadium", "which", "held", "most", "event", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 20, 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, 20, 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", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "stadium", "which", "held", "the", "most", "events", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "stadium" ], [ "which" ], [ "held" ], [ "most" ], [ "event" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "stadium", "NN" ], [ "which", "WDT" ], [ "held", "VBD" ], [ "most", "RBS" ], [ "event", "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(2) Filter(18) A(0) C(1) T(1) Root(5) Sel(0) N(0) A(0) C(16) T(2)" }, { "db_id": "swimming", "query": "SELECT t1.name , t1.capacity FROM stadium AS t1 JOIN event AS t2 ON t1.id = t2.stadium_id WHERE t2.name = 'World Junior'", "query_toks": [ "SELECT", "t1.name", ",", "t1.capacity", "FROM", "stadium", "AS", "t1", "JOIN", "event", "AS", "t2", "ON", "t1.id", "=", "t2.stadium_id", "WHERE", "t2.name", "=", "'World", "Junior", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "capacity", "from", "stadium", "as", "t1", "join", "event", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "stadium_id", "where", "t2", ".", "name", "=", "value" ], "question": "Find the name and capacity of the stadium where the event named \"World Junior\" happened.", "question_toks": [ "find", "name", "and", "capacity", "of", "stadium", "where", "event", "named", "'", "world", "junior", "'", "happened", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 19, false ], null ], "\"World Junior\"", null ] ] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Find", "the", "name", "and", "capacity", "of", "the", "stadium", "where", "the", "event", "named", "``", "World", "Junior", "''", "happened", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "capacity" ], [ "of" ], [ "stadium" ], [ "where" ], [ "event" ], [ "named" ], [ "'" ], [ "world" ], [ "junior" ], [ "'" ], [ "happened" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "capacity", "NN" ], [ "of", "IN" ], [ "stadium", "NN" ], [ "where", "WRB" ], [ "event", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "world", "NN" ], [ "junior", "NN" ], [ "'", "POS" ], [ "happened", "VBD" ], [ ".", "." ] ], "values": [ "World Junior" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(1) A(0) C(12) T(1) Filter(2) A(0) C(2) T(2) V(0)" }, { "db_id": "swimming", "query": "SELECT name FROM stadium WHERE id NOT IN (SELECT stadium_id FROM event)", "query_toks": [ "SELECT", "name", "FROM", "stadium", "WHERE", "id", "NOT", "IN", "(", "SELECT", "stadium_id", "FROM", "event", ")" ], "query_toks_no_value": [ "select", "name", "from", "stadium", "where", "id", "not", "in", "(", "select", "stadium_id", "from", "event", ")" ], "question": "Find the names of stadiums which have never had any event.", "question_toks": [ "find", "name", "of", "stadium", "which", "have", "never", "had", "any", "event", "." ], "sql": { "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": [ [ true, 8, [ 0, [ 0, 12, 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": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Find", "the", "names", "of", "stadiums", "which", "have", "never", "had", "any", "event", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "stadium" ], [ "which" ], [ "have" ], [ "never" ], [ "had" ], [ "any" ], [ "event" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "stadium", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "never", "RB" ], [ "had", "VBN" ], [ "any", "DT" ], [ "event", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(19) A(0) C(1) T(1) Root(5) Sel(0) N(0) A(0) C(16) T(2)" }, { "db_id": "swimming", "query": "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", "FROM", "swimmer", "AS", "t1", "JOIN", "record", "AS", "t2", "ON", "t1.id", "=", "t2.swimmer_id", "GROUP", "BY", "t2.swimmer_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "swimmer", "as", "t1", "join", "record", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "swimmer_id", "group", "by", "t2", ".", "swimmer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name of the swimmer who has the most records.", "question_toks": [ "find", "name", "of", "swimmer", "who", "ha", "most", "record", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 24, 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, 24, 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", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "swimmer", "who", "has", "the", "most", "records", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "swimmer" ], [ "who" ], [ "ha" ], [ "most" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "swimmer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "record", "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(19) T(3)" }, { "db_id": "swimming", "query": "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "t1.name", "FROM", "swimmer", "AS", "t1", "JOIN", "record", "AS", "t2", "ON", "t1.id", "=", "t2.swimmer_id", "GROUP", "BY", "t2.swimmer_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "swimmer", "as", "t1", "join", "record", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "swimmer_id", "group", "by", "t2", ".", "swimmer_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Find the name of the swimmer who has at least 2 records.", "question_toks": [ "find", "name", "of", "swimmer", "who", "ha", "at", "least", "2", "record", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 24, 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", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "swimmer", "who", "has", "at", "least", "2", "records", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "swimmer" ], [ "who" ], [ "ha" ], [ "at" ], [ "least" ], [ "2" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "swimmer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "record", "NN" ], [ ".", "." ] ], "values": [ "2" ], "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(3) Filter(7) A(3) C(0) T(3) V(0)" }, { "db_id": "swimming", "query": "SELECT t1.name , t1.nationality FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' GROUP BY t2.swimmer_id HAVING count(*) > 1", "query_toks": [ "SELECT", "t1.name", ",", "t1.nationality", "FROM", "swimmer", "AS", "t1", "JOIN", "record", "AS", "t2", "ON", "t1.id", "=", "t2.swimmer_id", "WHERE", "RESULT", "=", "'Win", "'", "GROUP", "BY", "t2.swimmer_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "nationality", "from", "swimmer", "as", "t1", "join", "record", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "swimmer_id", "where", "result", "=", "value", "group", "by", "t2", ".", "swimmer_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the name and nationality of the swimmer who has won (i.e., has a result of \"win\") more than 1 time.", "question_toks": [ "find", "name", "and", "nationality", "of", "swimmer", "who", "ha", "won", "(", "i.e.", ",", "ha", "a", "result", "of", "'", "win", "'", ")", "more", "than", "1", "time", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 24, 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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Win\"", null ] ] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Find", "the", "name", "and", "nationality", "of", "the", "swimmer", "who", "has", "won", "(", "i.e.", ",", "has", "a", "result", "of", "``", "win", "''", ")", "more", "than", "1", "time", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "nationality" ], [ "of" ], [ "swimmer" ], [ "who" ], [ "ha" ], [ "won" ], [ "(" ], [ "i.e." ], [ "," ], [ "ha" ], [ "a" ], [ "result" ], [ "of" ], [ "'" ], [ "win" ], [ "'" ], [ ")" ], [ "more" ], [ "than" ], [ "1" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "nationality", "NN" ], [ "of", "IN" ], [ "swimmer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "won", "NN" ], [ "(", "(" ], [ "i.e.", "FW" ], [ ",", "," ], [ "ha", "VBZ" ], [ "a", "DT" ], [ "result", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "win", "NNS" ], [ "'", "POS" ], [ ")", ")" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1", "CD" ], [ "time", "NN" ], [ ".", "." ] ], "values": [ "1", "Win", "win" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(0) Filter(2) A(0) C(18) T(3) V(1) Filter(5) A(3) C(0) T(3) V(0)" }, { "db_id": "swimming", "query": "SELECT name FROM swimmer WHERE id NOT IN (SELECT swimmer_id FROM record)", "query_toks": [ "SELECT", "name", "FROM", "swimmer", "WHERE", "id", "NOT", "IN", "(", "SELECT", "swimmer_id", "FROM", "record", ")" ], "query_toks_no_value": [ "select", "name", "from", "swimmer", "where", "id", "not", "in", "(", "select", "swimmer_id", "from", "record", ")" ], "question": "Find the names of the swimmers who have no record.", "question_toks": [ "find", "name", "of", "swimmer", "who", "have", "no", "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 ] ] ] ], "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, 24, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "swimmers", "who", "have", "no", "record", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "swimmer" ], [ "who" ], [ "have" ], [ "no" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "swimmer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "no", "DT" ], [ "record", "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(3)" }, { "db_id": "swimming", "query": "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' INTERSECT SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Loss'", "query_toks": [ "SELECT", "t1.name", "FROM", "swimmer", "AS", "t1", "JOIN", "record", "AS", "t2", "ON", "t1.id", "=", "t2.swimmer_id", "WHERE", "RESULT", "=", "'Win", "'", "INTERSECT", "SELECT", "t1.name", "FROM", "swimmer", "AS", "t1", "JOIN", "record", "AS", "t2", "ON", "t1.id", "=", "t2.swimmer_id", "WHERE", "RESULT", "=", "'Loss", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "swimmer", "as", "t1", "join", "record", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "swimmer_id", "where", "result", "=", "value", "intersect", "select", "t1", ".", "name", "from", "swimmer", "as", "t1", "join", "record", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "swimmer_id", "where", "result", "=", "value" ], "question": "Find the names of the swimmers who have both \"win\" and \"loss\" results in the record.", "question_toks": [ "find", "name", "of", "swimmer", "who", "have", "both", "'", "win", "'", "and", "'", "loss", "'", "result", "in", "record", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Loss\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Win\"", null ] ] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "swimmers", "who", "have", "both", "``", "win", "''", "and", "``", "loss", "''", "results", "in", "the", "record", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "swimmer" ], [ "who" ], [ "have" ], [ "both" ], [ "'" ], [ "win" ], [ "'" ], [ "and" ], [ "'" ], [ "loss" ], [ "'" ], [ "result" ], [ "in" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "swimmer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "both", "DT" ], [ "'", "''" ], [ "win", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "'", "POS" ], [ "loss", "NN" ], [ "'", "''" ], [ "result", "NN" ], [ "in", "IN" ], [ "record", "NN" ], [ ".", "." ] ], "values": [ "Loss", "loss", "Win", "win" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(18) T(3) V(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(18) T(3) V(0)" }, { "db_id": "swimming", "query": "SELECT t4.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id JOIN event AS t3 ON t2.event_id = t3.id JOIN stadium AS t4 ON t4.id = t3.stadium_id WHERE t1.nationality = 'Australia'", "query_toks": [ "SELECT", "t4.name", "FROM", "swimmer", "AS", "t1", "JOIN", "record", "AS", "t2", "ON", "t1.id", "=", "t2.swimmer_id", "JOIN", "event", "AS", "t3", "ON", "t2.event_id", "=", "t3.id", "JOIN", "stadium", "AS", "t4", "ON", "t4.id", "=", "t3.stadium_id", "WHERE", "t1.nationality", "=", "'Australia", "'" ], "query_toks_no_value": [ "select", "t4", ".", "name", "from", "swimmer", "as", "t1", "join", "record", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "swimmer_id", "join", "event", "as", "t3", "on", "t2", ".", "event_id", "=", "t3", ".", "id", "join", "stadium", "as", "t4", "on", "t4", ".", "id", "=", "t3", ".", "stadium_id", "where", "t1", ".", "nationality", "=", "value" ], "question": "Find the names of stadiums that some Australian swimmers have been to.", "question_toks": [ "find", "name", "of", "stadium", "that", "some", "australian", "swimmer", "have", "been", "to", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 24, 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, 3, false ], null ], "\"Australia\"", null ] ] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Find", "the", "names", "of", "stadiums", "that", "some", "Australian", "swimmers", "have", "been", "to", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "stadium" ], [ "that" ], [ "some" ], [ "australian" ], [ "swimmer" ], [ "have" ], [ "been" ], [ "to" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "stadium", "NN" ], [ "that", "IN" ], [ "some", "DT" ], [ "australian", "JJ" ], [ "swimmer", "NN" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "to", "TO" ], [ ".", "." ] ], "values": [ "Australia" ], "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(19) T(3) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "swimming", "query": "SELECT t3.name FROM record AS t1 JOIN event AS t2 ON t1.event_id = t2.id JOIN stadium AS t3 ON t3.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t3.name", "FROM", "record", "AS", "t1", "JOIN", "event", "AS", "t2", "ON", "t1.event_id", "=", "t2.id", "JOIN", "stadium", "AS", "t3", "ON", "t3.id", "=", "t2.stadium_id", "GROUP", "BY", "t2.stadium_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "record", "as", "t1", "join", "event", "as", "t2", "on", "t1", ".", "event_id", "=", "t2", ".", "id", "join", "stadium", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "stadium_id", "group", "by", "t2", ".", "stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the names of stadiums that the most swimmers have been to.", "question_toks": [ "find", "name", "of", "stadium", "that", "most", "swimmer", "have", "been", "to", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 20, 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, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 25, 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": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Find", "the", "names", "of", "stadiums", "that", "the", "most", "swimmers", "have", "been", "to", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "stadium" ], [ "that" ], [ "most" ], [ "swimmer" ], [ "have" ], [ "been" ], [ "to" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "stadium", "NN" ], [ "that", "IN" ], [ "most", "JJS" ], [ "swimmer", "NNS" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "to", "TO" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(1) Sup(0) A(3) C(0) T(2) Filter(0) Filter(18) A(0) C(1) T(2) Root(5) Sel(0) N(0) A(0) C(20) T(3) Filter(18) A(0) C(20) T(3) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "swimming", "query": "SELECT * FROM swimmer", "query_toks": [ "SELECT", "*", "FROM", "swimmer" ], "query_toks_no_value": [ "select", "*", "from", "swimmer" ], "question": "Find all details for each swimmer.", "question_toks": [ "find", "all", "detail", "for", "each", "swimmer", "." ], "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": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "Find", "all", "details", "for", "each", "swimmer", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "detail" ], [ "for" ], [ "each" ], [ "swimmer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "detail", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "swimmer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(0) T(0)" }, { "db_id": "swimming", "query": "SELECT avg(capacity) FROM stadium WHERE opening_year = 2005", "query_toks": [ "SELECT", "avg", "(", "capacity", ")", "FROM", "stadium", "WHERE", "opening_year", "=", "2005" ], "query_toks_no_value": [ "select", "avg", "(", "capacity", ")", "from", "stadium", "where", "opening_year", "=", "value" ], "question": "What is the average capacity of the stadiums that were opened in year 2005?", "question_toks": [ "what", "is", "average", "capacity", "of", "stadium", "that", "were", "opened", "in", "year", "year", "?" ], "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, 17, false ], null ], 2005.0, null ] ] }, "names": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "id", "name", "capacity", "city", "country", "opening year", "id", "name", "stadium id", "year", "id", "result", "swimmer id", "event id" ], "table_names": [ "swimmer", "stadium", "event", "record" ], "col_set": [ "*", "id", "name", "nationality", "meter 100", "meter 200", "meter 300", "meter 400", "meter 500", "meter 600", "meter 700", "time", "capacity", "city", "country", "opening year", "stadium id", "year", "result", "swimmer id", "event id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "20": 12, "12": 12, "24": 24, "1": 1, "25": 18, "18": 18 }, "origin_question_toks": [ "What", "is", "the", "average", "capacity", "of", "the", "stadiums", "that", "were", "opened", "in", "year", "2005", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "capacity" ], [ "of" ], [ "stadium" ], [ "that" ], [ "were" ], [ "opened" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "capacity", "NN" ], [ "of", "IN" ], [ "stadium", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "opened", "VBN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2005", "CD" ], [ "?", "." ] ], "values": [ "2005" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(12) T(1) Filter(2) A(0) C(15) T(1) V(0)" }, { "db_id": "railway", "query": "SELECT count(*) FROM railway", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "railway" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "railway" ], "question": "How many railways are there?", "question_toks": [ "how", "many", "railway", "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": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "How", "many", "railways", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "railway" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "railway", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "railway", "query": "SELECT Builder FROM railway ORDER BY Builder ASC", "query_toks": [ "SELECT", "Builder", "FROM", "railway", "ORDER", "BY", "Builder", "ASC" ], "query_toks_no_value": [ "select", "builder", "from", "railway", "order", "by", "builder", "asc" ], "question": "List the builders of railways in ascending alphabetical order.", "question_toks": [ "list", "builder", "of", "railway", "in", "ascending", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "List", "the", "builders", "of", "railways", "in", "ascending", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "builder" ], [ "of" ], [ "railway" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "builder", "NN" ], [ "of", "IN" ], [ "railway", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(1) A(0) C(3) T(0)" }, { "db_id": "railway", "query": "SELECT Wheels , LOCATION FROM railway", "query_toks": [ "SELECT", "Wheels", ",", "LOCATION", "FROM", "railway" ], "query_toks_no_value": [ "select", "wheels", ",", "location", "from", "railway" ], "question": "List the wheels and locations of the railways.", "question_toks": [ "list", "wheel", "and", "location", "of", "railway", "." ], "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": [] }, "names": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "List", "the", "wheels", "and", "locations", "of", "the", "railways", "." ], "question_arg": [ [ "list" ], [ "wheel" ], [ "and" ], [ "location" ], [ "of" ], [ "railway" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "wheel", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "railway", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(5) T(0) A(0) C(6) T(0)" }, { "db_id": "railway", "query": "SELECT max(LEVEL) FROM manager WHERE Country != \"Australia\"", "query_toks": [ "SELECT", "max", "(", "LEVEL", ")", "FROM", "manager", "WHERE", "Country", "!", "=", "``", "Australia", "''" ], "query_toks_no_value": [ "select", "max", "(", "level", ")", "from", "manager", "where", "country", "!", "=", "value" ], "question": "What is the maximum level of managers in countries that are not \"Australia\"?", "question_toks": [ "what", "is", "maximum", "level", "of", "manager", "in", "country", "that", "are", "not", "'", "australia", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 16, false ], null ], "\"Australia\"", null ] ] }, "names": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "maximum", "level", "of", "managers", "in", "countries", "that", "are", "not", "``", "Australia", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "level" ], [ "of" ], [ "manager" ], [ "in" ], [ "country" ], [ "that" ], [ "are" ], [ "not" ], [ "'" ], [ "australia" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "level", "NN" ], [ "of", "IN" ], [ "manager", "NN" ], [ "in", "IN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "'", "''" ], [ "australia", "NNS" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Australia" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(1) C(17) T(2) Filter(3) A(0) C(14) T(2) V(0)" }, { "db_id": "railway", "query": "SELECT avg(Age) FROM manager", "query_toks": [ "SELECT", "avg", "(", "Age", ")", "FROM", "manager" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "manager" ], "question": "What is the average age for all managers?", "question_toks": [ "what", "is", "average", "age", "for", "all", "manager", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "average", "age", "for", "all", "managers", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "for" ], [ "all" ], [ "manager" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "manager", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(16) T(2)" }, { "db_id": "railway", "query": "SELECT Name FROM manager ORDER BY LEVEL ASC", "query_toks": [ "SELECT", "Name", "FROM", "manager", "ORDER", "BY", "LEVEL", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "manager", "order", "by", "level", "asc" ], "question": "What are the names of managers in ascending order of level?", "question_toks": [ "what", "are", "name", "of", "manager", "in", "ascending", "order", "of", "level", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 19, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "managers", "in", "ascending", "order", "of", "level", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "manager" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "level" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "manager", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "level", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(10) T(2) Order(1) A(0) C(17) T(2)" }, { "db_id": "railway", "query": "SELECT Name , Arrival FROM train", "query_toks": [ "SELECT", "Name", ",", "Arrival", "FROM", "train" ], "query_toks_no_value": [ "select", "name", ",", "arrival", "from", "train" ], "question": "What are the names and arrival times of trains?", "question_toks": [ "what", "are", "name", "and", "arrival", "time", "of", "train", "?" ], "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, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "arrival", "times", "of", "trains", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "arrival" ], [ "time" ], [ "of" ], [ "train" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "arrival", "JJ" ], [ "time", "NN" ], [ "of", "IN" ], [ "train", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(10) T(1) A(0) C(12) T(1)" }, { "db_id": "railway", "query": "SELECT Name FROM manager ORDER BY Age DESC LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "manager", "ORDER", "BY", "Age", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "manager", "order", "by", "age", "desc", "limit", "value" ], "question": "What is the name of the oldest manager?", "question_toks": [ "what", "is", "name", "of", "oldest", "manager", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "oldest", "manager", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "oldest" ], [ "manager" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "oldest", "JJS" ], [ "manager", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(2) Sup(0) A(0) C(16) T(2)" }, { "db_id": "railway", "query": "SELECT T2.Name , T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID", "query_toks": [ "SELECT", "T2.Name", ",", "T1.Location", "FROM", "railway", "AS", "T1", "JOIN", "train", "AS", "T2", "ON", "T1.Railway_ID", "=", "T2.Railway_ID" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "location", "from", "railway", "as", "t1", "join", "train", "as", "t2", "on", "t1", ".", "railway_id", "=", "t2", ".", "railway_id" ], "question": "Show the names of trains and locations of railways they are in.", "question_toks": [ "show", "name", "of", "train", "and", "location", "of", "railway", "they", "are", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, 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, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "Show", "the", "names", "of", "trains", "and", "locations", "of", "railways", "they", "are", "in", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "train" ], [ "and" ], [ "location" ], [ "of" ], [ "railway" ], [ "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" ], [ "train", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "railway", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "in", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(10) T(1) A(0) C(6) T(0)" }, { "db_id": "railway", "query": "SELECT T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID WHERE T2.Name = \"Andaman Exp\"", "query_toks": [ "SELECT", "T1.Builder", "FROM", "railway", "AS", "T1", "JOIN", "train", "AS", "T2", "ON", "T1.Railway_ID", "=", "T2.Railway_ID", "WHERE", "T2.Name", "=", "``", "Andaman", "Exp", "''" ], "query_toks_no_value": [ "select", "t1", ".", "builder", "from", "railway", "as", "t1", "join", "train", "as", "t2", "on", "t1", ".", "railway_id", "=", "t2", ".", "railway_id", "where", "t2", ".", "name", "=", "value" ], "question": "Show the builder of railways associated with the trains named \"Andaman Exp\".", "question_toks": [ "show", "builder", "of", "railway", "associated", "with", "train", "named", "'", "andaman", "exp", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Andaman Exp\"", null ] ] }, "names": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "Show", "the", "builder", "of", "railways", "associated", "with", "the", "trains", "named", "``", "Andaman", "Exp", "''", "." ], "question_arg": [ [ "show" ], [ "builder" ], [ "of" ], [ "railway" ], [ "associated" ], [ "with" ], [ "train" ], [ "named" ], [ "'" ], [ "andaman" ], [ "exp" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "builder", "NN" ], [ "of", "IN" ], [ "railway", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "train", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "andaman", "JJ" ], [ "exp", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Andaman Exp" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "railway", "query": "SELECT T2.Railway_ID , T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID GROUP BY T2.Railway_ID HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T2.Railway_ID", ",", "T1.Location", "FROM", "railway", "AS", "T1", "JOIN", "train", "AS", "T2", "ON", "T1.Railway_ID", "=", "T2.Railway_ID", "GROUP", "BY", "T2.Railway_ID", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t2", ".", "railway_id", ",", "t1", ".", "location", "from", "railway", "as", "t1", "join", "train", "as", "t2", "on", "t1", ".", "railway_id", "=", "t2", ".", "railway_id", "group", "by", "t2", ".", "railway_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show id and location of railways that are associated with more than one train.", "question_toks": [ "show", "id", "and", "location", "of", "railway", "that", "are", "associated", "with", "more", "than", "one", "train", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "Show", "id", "and", "location", "of", "railways", "that", "are", "associated", "with", "more", "than", "one", "train", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "and" ], [ "location" ], [ "of" ], [ "railway" ], [ "that" ], [ "are" ], [ "associated" ], [ "with" ], [ "more" ], [ "than" ], [ "one" ], [ "train" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "railway", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "train", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(1) A(0) C(6) T(0) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "railway", "query": "SELECT T2.Railway_ID , T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID GROUP BY T2.Railway_ID ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Railway_ID", ",", "T1.Builder", "FROM", "railway", "AS", "T1", "JOIN", "train", "AS", "T2", "ON", "T1.Railway_ID", "=", "T2.Railway_ID", "GROUP", "BY", "T2.Railway_ID", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "railway_id", ",", "t1", ".", "builder", "from", "railway", "as", "t1", "join", "train", "as", "t2", "on", "t1", ".", "railway_id", "=", "t2", ".", "railway_id", "group", "by", "t2", ".", "railway_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the id and builder of the railway that are associated with the most trains.", "question_toks": [ "show", "id", "and", "builder", "of", "railway", "that", "are", "associated", "with", "most", "train", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, 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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "Show", "the", "id", "and", "builder", "of", "the", "railway", "that", "are", "associated", "with", "the", "most", "trains", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "and" ], [ "builder" ], [ "of" ], [ "railway" ], [ "that" ], [ "are" ], [ "associated" ], [ "with" ], [ "most" ], [ "train" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "builder", "NN" ], [ "of", "IN" ], [ "railway", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "train", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(1) A(0) C(3) T(0) Sup(0) A(3) C(0) T(1)" }, { "db_id": "railway", "query": "SELECT Builder , COUNT(*) FROM railway GROUP BY Builder", "query_toks": [ "SELECT", "Builder", ",", "COUNT", "(", "*", ")", "FROM", "railway", "GROUP", "BY", "Builder" ], "query_toks_no_value": [ "select", "builder", ",", "count", "(", "*", ")", "from", "railway", "group", "by", "builder" ], "question": "Show different builders of railways, along with the corresponding number of railways using each builder.", "question_toks": [ "show", "different", "builder", "of", "railway", ",", "along", "with", "corresponding", "number", "of", "railway", "using", "each", "builder", "." ], "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": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "Show", "different", "builders", "of", "railways", ",", "along", "with", "the", "corresponding", "number", "of", "railways", "using", "each", "builder", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "builder" ], [ "of" ], [ "railway" ], [ "," ], [ "along" ], [ "with" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "railway" ], [ "using" ], [ "each" ], [ "builder" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "different", "JJ" ], [ "builder", "NN" ], [ "of", "IN" ], [ "railway", "NN" ], [ ",", "," ], [ "along", "IN" ], [ "with", "IN" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "railway", "NN" ], [ "using", "VBG" ], [ "each", "DT" ], [ "builder", "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": "railway", "query": "SELECT Builder FROM railway GROUP BY Builder ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Builder", "FROM", "railway", "GROUP", "BY", "Builder", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "builder", "from", "railway", "group", "by", "builder", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the most common builder of railways.", "question_toks": [ "show", "most", "common", "builder", "of", "railway", "." ], "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": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "Show", "the", "most", "common", "builder", "of", "railways", "." ], "question_arg": [ [ "show" ], [ "most" ], [ "common" ], [ "builder" ], [ "of" ], [ "railway" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "builder", "NN" ], [ "of", "IN" ], [ "railway", "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": "railway", "query": "SELECT LOCATION , COUNT(*) FROM railway GROUP BY LOCATION", "query_toks": [ "SELECT", "LOCATION", ",", "COUNT", "(", "*", ")", "FROM", "railway", "GROUP", "BY", "LOCATION" ], "query_toks_no_value": [ "select", "location", ",", "count", "(", "*", ")", "from", "railway", "group", "by", "location" ], "question": "Show different locations of railways along with the corresponding number of railways at each location.", "question_toks": [ "show", "different", "location", "of", "railway", "along", "with", "corresponding", "number", "of", "railway", "at", "each", "location", "." ], "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": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "Show", "different", "locations", "of", "railways", "along", "with", "the", "corresponding", "number", "of", "railways", "at", "each", "location", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "location" ], [ "of" ], [ "railway" ], [ "along" ], [ "with" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "railway" ], [ "at" ], [ "each" ], [ "location" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "different", "JJ" ], [ "location", "NN" ], [ "of", "IN" ], [ "railway", "NN" ], [ "along", "IN" ], [ "with", "IN" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "railway", "NN" ], [ "at", "IN" ], [ "each", "DT" ], [ "location", "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": "railway", "query": "SELECT LOCATION FROM railway GROUP BY LOCATION HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "LOCATION", "FROM", "railway", "GROUP", "BY", "LOCATION", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "location", "from", "railway", "group", "by", "location", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show the locations that have more than one railways.", "question_toks": [ "show", "location", "that", "have", "more", "than", "one", "railway", "." ], "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": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "Show", "the", "locations", "that", "have", "more", "than", "one", "railways", "." ], "question_arg": [ [ "show" ], [ "location" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "railway" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "location", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "railway", "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": "railway", "query": "SELECT ObjectNumber FROM railway WHERE Railway_ID NOT IN (SELECT Railway_ID FROM train)", "query_toks": [ "SELECT", "ObjectNumber", "FROM", "railway", "WHERE", "Railway_ID", "NOT", "IN", "(", "SELECT", "Railway_ID", "FROM", "train", ")" ], "query_toks_no_value": [ "select", "objectnumber", "from", "railway", "where", "railway_id", "not", "in", "(", "select", "railway_id", "from", "train", ")" ], "question": "List the object number of railways that do not have any trains.", "question_toks": [ "list", "object", "number", "of", "railway", "that", "do", "not", "have", "any", "train", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, 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, 13, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "List", "the", "object", "number", "of", "railways", "that", "do", "not", "have", "any", "trains", "." ], "question_arg": [ [ "list" ], [ "object" ], [ "number" ], [ "of" ], [ "railway" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "train" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "object", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "railway", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "train", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(0) Filter(19) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1)" }, { "db_id": "railway", "query": "SELECT Country FROM manager WHERE Age > 50 INTERSECT SELECT Country FROM manager WHERE Age < 46", "query_toks": [ "SELECT", "Country", "FROM", "manager", "WHERE", "Age", ">", "50", "INTERSECT", "SELECT", "Country", "FROM", "manager", "WHERE", "Age", "<", "46" ], "query_toks_no_value": [ "select", "country", "from", "manager", "where", "age", ">", "value", "intersect", "select", "country", "from", "manager", "where", "age", "<", "value" ], "question": "Show the countries that have both managers of age above 50 and managers of age below 46.", "question_toks": [ "show", "country", "that", "have", "both", "manager", "of", "age", "above", "50", "and", "manager", "of", "age", "below", "46", "." ], "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, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 18, false ], null ], 46.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 50.0, null ] ] }, "names": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "Show", "the", "countries", "that", "have", "both", "managers", "of", "age", "above", "50", "and", "managers", "of", "age", "below", "46", "." ], "question_arg": [ [ "show" ], [ "country" ], [ "that" ], [ "have" ], [ "both" ], [ "manager" ], [ "of" ], [ "age" ], [ "above" ], [ "50" ], [ "and" ], [ "manager" ], [ "of" ], [ "age" ], [ "below" ], [ "46" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "manager", "NN" ], [ "of", "IN" ], [ "age", "NN" ], [ "above", "IN" ], [ "50", "CD" ], [ "and", "CC" ], [ "manager", "NN" ], [ "of", "IN" ], [ "age", "NN" ], [ "below", "IN" ], [ "46", "CD" ], [ ".", "." ] ], "values": [ "46", "50" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(5) A(0) C(16) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(4) A(0) C(16) T(2) V(0)" }, { "db_id": "railway", "query": "SELECT DISTINCT Country FROM manager", "query_toks": [ "SELECT", "DISTINCT", "Country", "FROM", "manager" ], "query_toks_no_value": [ "select", "distinct", "country", "from", "manager" ], "question": "Show the distinct countries of managers.", "question_toks": [ "show", "distinct", "country", "of", "manager", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "Show", "the", "distinct", "countries", "of", "managers", "." ], "question_arg": [ [ "show" ], [ "distinct" ], [ "country" ], [ "of" ], [ "manager" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "distinct", "JJ" ], [ "country", "NN" ], [ "of", "IN" ], [ "manager", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(14) T(2)" }, { "db_id": "railway", "query": "SELECT Working_year_starts FROM manager ORDER BY LEVEL DESC", "query_toks": [ "SELECT", "Working_year_starts", "FROM", "manager", "ORDER", "BY", "LEVEL", "DESC" ], "query_toks_no_value": [ "select", "working_year_starts", "from", "manager", "order", "by", "level", "desc" ], "question": "Show the working years of managers in descending order of their level.", "question_toks": [ "show", "working", "year", "of", "manager", "in", "descending", "order", "of", "their", "level", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 19, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "Show", "the", "working", "years", "of", "managers", "in", "descending", "order", "of", "their", "level", "." ], "question_arg": [ [ "show" ], [ "working", "year", "start" ], [ "of" ], [ "manager" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "their" ], [ "level" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "working", "VBG" ], [ "year", "NN" ], [ "of", "IN" ], [ "manager", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "level", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(15) T(2) Order(0) A(0) C(17) T(2)" }, { "db_id": "railway", "query": "SELECT Country FROM manager WHERE Age > 50 OR Age < 46", "query_toks": [ "SELECT", "Country", "FROM", "manager", "WHERE", "Age", ">", "50", "OR", "Age", "<", "46" ], "query_toks_no_value": [ "select", "country", "from", "manager", "where", "age", ">", "value", "or", "age", "<", "value" ], "question": "Show the countries that have managers of age above 50 or below 46.", "question_toks": [ "show", "country", "that", "have", "manager", "of", "age", "above", "50", "or", "below", "46", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 50.0, null ], "or", [ false, 4, [ 0, [ 0, 18, false ], null ], 46.0, null ] ] }, "names": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "railway id", "manager id", "name", "country", "working year starts", "age", "level", "railway id", "manager id", "from year" ], "table_names": [ "railway", "train", "manager", "railway manage" ], "col_set": [ "*", "railway id", "railway", "builder", "built", "wheels", "location", "objectnumber", "train id", "train num", "name", "from", "arrival", "manager id", "country", "working year starts", "age", "level", "from year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 1, "1": 1, "20": 20, "21": 14, "14": 14, "8": 8 }, "origin_question_toks": [ "Show", "the", "countries", "that", "have", "managers", "of", "age", "above", "50", "or", "below", "46", "." ], "question_arg": [ [ "show" ], [ "country" ], [ "that" ], [ "have" ], [ "manager" ], [ "of" ], [ "age" ], [ "above" ], [ "50" ], [ "or" ], [ "below" ], [ "46" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "manager", "NN" ], [ "of", "IN" ], [ "age", "NN" ], [ "above", "IN" ], [ "50", "CD" ], [ "or", "CC" ], [ "below", "IN" ], [ "46", "CD" ], [ ".", "." ] ], "values": [ "46", "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(1) Filter(5) A(0) C(16) T(2) V(1) Filter(4) A(0) C(16) T(2) V(0)" }, { "db_id": "customers_and_products_contacts", "query": "SELECT count(*) FROM addresses WHERE country = 'USA'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "addresses", "WHERE", "country", "=", "'USA", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "addresses", "where", "country", "=", "value" ], "question": "How many addresses are there in country USA?", "question_toks": [ "how", "many", "address", "are", "there", "in", "country", "usa", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"USA\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "customer id", "gender", "first name", "last name", "contact phone", "customer id", "address id", "date from", "date to", "order id", "customer id", "order date", "order status code", "order item id", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "contacts", "customer address history", "customer orders", "order items" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "gender", "first name", "last name", "contact phone", "date from", "date to", "order id", "order date", "order status code", "order item id", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "25": 1, "1": 1, "24": 11, "11": 11, "29": 11, "33": 28, "28": 28, "34": 7, "7": 7, "18": 18 }, "origin_question_toks": [ "How", "many", "addresses", "are", "there", "in", "country", "USA", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "address" ], [ "are" ], [ "there" ], [ "in" ], [ "country" ], [ "usa" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "address", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "country", "NN" ], [ "usa", "NN" ], [ "?", "." ] ], "values": [ "USA" ], "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": "customers_and_products_contacts", "query": "SELECT DISTINCT city FROM addresses", "query_toks": [ "SELECT", "DISTINCT", "city", "FROM", "addresses" ], "query_toks_no_value": [ "select", "distinct", "city", "from", "addresses" ], "question": "Show all distinct cities in the address record.", "question_toks": [ "show", "all", "distinct", "city", "in", "address", "record", "." ], "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": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "customer id", "gender", "first name", "last name", "contact phone", "customer id", "address id", "date from", "date to", "order id", "customer id", "order date", "order status code", "order item id", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "contacts", "customer address history", "customer orders", "order items" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "gender", "first name", "last name", "contact phone", "date from", "date to", "order id", "order date", "order status code", "order item id", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "25": 1, "1": 1, "24": 11, "11": 11, "29": 11, "33": 28, "28": 28, "34": 7, "7": 7, "18": 18 }, "origin_question_toks": [ "Show", "all", "distinct", "cities", "in", "the", "address", "record", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "distinct" ], [ "city" ], [ "in" ], [ "address" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "city", "NN" ], [ "in", "IN" ], [ "address", "NN" ], [ "record", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(3) T(0)" }, { "db_id": "customers_and_products_contacts", "query": "SELECT state_province_county , count(*) FROM addresses GROUP BY state_province_county", "query_toks": [ "SELECT", "state_province_county", ",", "count", "(", "*", ")", "FROM", "addresses", "GROUP", "BY", "state_province_county" ], "query_toks_no_value": [ "select", "state_province_county", ",", "count", "(", "*", ")", "from", "addresses", "group", "by", "state_province_county" ], "question": "Show each state and the number of addresses in each state.", "question_toks": [ "show", "each", "state", "and", "number", "of", "address", "in", "each", "state", "." ], "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": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "customer id", "gender", "first name", "last name", "contact phone", "customer id", "address id", "date from", "date to", "order id", "customer id", "order date", "order status code", "order item id", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "contacts", "customer address history", "customer orders", "order items" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "gender", "first name", "last name", "contact phone", "date from", "date to", "order id", "order date", "order status code", "order item id", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "25": 1, "1": 1, "24": 11, "11": 11, "29": 11, "33": 28, "28": 28, "34": 7, "7": 7, "18": 18 }, "origin_question_toks": [ "Show", "each", "state", "and", "the", "number", "of", "addresses", "in", "each", "state", "." ], "question_arg": [ [ "show" ], [ "each" ], [ "state" ], [ "and" ], [ "number" ], [ "of" ], [ "address" ], [ "in" ], [ "each" ], [ "state" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "each", "DT" ], [ "state", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "address", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "state", "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_products_contacts", "query": "SELECT customer_name , customer_phone FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM customer_address_history)", "query_toks": [ "SELECT", "customer_name", ",", "customer_phone", "FROM", "customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "customer_address_history", ")" ], "query_toks_no_value": [ "select", "customer_name", ",", "customer_phone", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "customer_address_history", ")" ], "question": "Show names and phones of customers who do not have address information.", "question_toks": [ "show", "name", "and", "phone", "of", "customer", "who", "do", "not", "have", "address", "information", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 11, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "customer id", "gender", "first name", "last name", "contact phone", "customer id", "address id", "date from", "date to", "order id", "customer id", "order date", "order status code", "order item id", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "contacts", "customer address history", "customer orders", "order items" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "gender", "first name", "last name", "contact phone", "date from", "date to", "order id", "order date", "order status code", "order item id", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "25": 1, "1": 1, "24": 11, "11": 11, "29": 11, "33": 28, "28": 28, "34": 7, "7": 7, "18": 18 }, "origin_question_toks": [ "Show", "names", "and", "phones", "of", "customers", "who", "do", "not", "have", "address", "information", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "phone" ], [ "of" ], [ "customer" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "address" ], [ "information" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "address", "JJ" ], [ "information", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(2) A(0) C(16) T(2) Filter(19) A(0) C(11) T(2) Root(5) Sel(0) N(0) A(0) C(11) T(4)" }, { "db_id": "customers_and_products_contacts", "query": "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders 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_name", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "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_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the name of the customer who has the most orders.", "question_toks": [ "show", "name", "of", "customer", "who", "ha", "most", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 29, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 29, 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 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "customer id", "gender", "first name", "last name", "contact phone", "customer id", "address id", "date from", "date to", "order id", "customer id", "order date", "order status code", "order item id", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "contacts", "customer address history", "customer orders", "order items" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "gender", "first name", "last name", "contact phone", "date from", "date to", "order id", "order date", "order status code", "order item id", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "25": 1, "1": 1, "24": 11, "11": 11, "29": 11, "33": 28, "28": 28, "34": 7, "7": 7, "18": 18 }, "origin_question_toks": [ "Show", "the", "name", "of", "the", "customer", "who", "has", "the", "most", "orders", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "ha" ], [ "most" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(14) T(2) Sup(0) A(3) C(0) T(5) Filter(18) A(0) C(11) T(2) Root(5) Sel(0) N(0) A(0) C(11) T(5)" }, { "db_id": "customers_and_products_contacts", "query": "SELECT product_type_code FROM products GROUP BY product_type_code HAVING count(*) >= 2", "query_toks": [ "SELECT", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "product_type_code", "from", "products", "group", "by", "product_type_code", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the product type codes which have at least two products.", "question_toks": [ "show", "product", "type", "code", "which", "have", "at", "least", "two", "product", "." ], "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": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "customer id", "gender", "first name", "last name", "contact phone", "customer id", "address id", "date from", "date to", "order id", "customer id", "order date", "order status code", "order item id", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "contacts", "customer address history", "customer orders", "order items" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "gender", "first name", "last name", "contact phone", "date from", "date to", "order id", "order date", "order status code", "order item id", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "25": 1, "1": 1, "24": 11, "11": 11, "29": 11, "33": 28, "28": 28, "34": 7, "7": 7, "18": 18 }, "origin_question_toks": [ "Show", "the", "product", "type", "codes", "which", "have", "at", "least", "two", "products", "." ], "question_arg": [ [ "show" ], [ "product", "type", "code" ], [ "which" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "product", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "product", "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": "customers_and_products_contacts", "query": "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Completed' INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Part'", "query_toks": [ "SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status_code", "=", "'Completed", "'", "INTERSECT", "SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status_code", "=", "'Part", "'" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status_code", "=", "value", "intersect", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status_code", "=", "value" ], "question": "Show the names of customers who have both an order in completed status and an order in part status.", "question_toks": [ "show", "name", "of", "customer", "who", "have", "both", "an", "order", "in", "completed", "status", "and", "an", "order", "in", "part", "status", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 29, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 29, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Part\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Completed\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "customer id", "gender", "first name", "last name", "contact phone", "customer id", "address id", "date from", "date to", "order id", "customer id", "order date", "order status code", "order item id", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "contacts", "customer address history", "customer orders", "order items" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "gender", "first name", "last name", "contact phone", "date from", "date to", "order id", "order date", "order status code", "order item id", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "25": 1, "1": 1, "24": 11, "11": 11, "29": 11, "33": 28, "28": 28, "34": 7, "7": 7, "18": 18 }, "origin_question_toks": [ "Show", "the", "names", "of", "customers", "who", "have", "both", "an", "order", "in", "completed", "status", "and", "an", "order", "in", "part", "status", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "both" ], [ "an" ], [ "order" ], [ "in" ], [ "completed" ], [ "status" ], [ "and" ], [ "an" ], [ "order" ], [ "in" ], [ "part" ], [ "status" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "both", "DT" ], [ "an", "DT" ], [ "order", "NN" ], [ "in", "IN" ], [ "completed", "VBN" ], [ "status", "NN" ], [ "and", "CC" ], [ "an", "DT" ], [ "order", "NN" ], [ "in", "IN" ], [ "part", "NN" ], [ "status", "NN" ], [ ".", "." ] ], "values": [ "Part", "Completed" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(2) A(0) C(27) T(5) V(1) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(2) A(0) C(27) T(5) V(0)" }, { "db_id": "customers_and_products_contacts", "query": "SELECT customer_name , customer_phone , payment_method_code FROM customers ORDER BY customer_number DESC", "query_toks": [ "SELECT", "customer_name", ",", "customer_phone", ",", "payment_method_code", "FROM", "customers", "ORDER", "BY", "customer_number", "DESC" ], "query_toks_no_value": [ "select", "customer_name", ",", "customer_phone", ",", "payment_method_code", "from", "customers", "order", "by", "customer_number", "desc" ], "question": "Show the name, phone, and payment method code for all customers in descending order of customer number.", "question_toks": [ "show", "name", ",", "phone", ",", "and", "payment", "method", "code", "for", "all", "customer", "in", "descending", "order", "of", "customer", "number", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "customer id", "gender", "first name", "last name", "contact phone", "customer id", "address id", "date from", "date to", "order id", "customer id", "order date", "order status code", "order item id", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "contacts", "customer address history", "customer orders", "order items" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "gender", "first name", "last name", "contact phone", "date from", "date to", "order id", "order date", "order status code", "order item id", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "25": 1, "1": 1, "24": 11, "11": 11, "29": 11, "33": 28, "28": 28, "34": 7, "7": 7, "18": 18 }, "origin_question_toks": [ "Show", "the", "name", ",", "phone", ",", "and", "payment", "method", "code", "for", "all", "customers", "in", "descending", "order", "of", "customer", "number", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "," ], [ "phone" ], [ "," ], [ "and" ], [ "payment", "method", "code" ], [ "for" ], [ "all" ], [ "customer" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "customer", "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "phone", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "payment", "NN" ], [ "method", "NN" ], [ "code", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "number", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(14) T(2) A(0) C(16) T(2) A(0) C(12) T(2) Order(0) A(0) C(13) T(2)" }, { "db_id": "customers_and_products_contacts", "query": "SELECT T1.product_name , sum(T2.order_quantity) FROM products AS T1 JOIN order_items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id", "query_toks": [ "SELECT", "T1.product_name", ",", "sum", "(", "T2.order_quantity", ")", "FROM", "products", "AS", "T1", "JOIN", "order_items", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "GROUP", "BY", "T1.product_id" ], "query_toks_no_value": [ "select", "t1", ".", "product_name", ",", "sum", "(", "t2", ".", "order_quantity", ")", "from", "products", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t1", ".", "product_id" ], "question": "Show the product name and total order quantity for each product.", "question_toks": [ "show", "product", "name", "and", "total", "order", "quantity", "for", "each", "product", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 34, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 4, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "customer id", "gender", "first name", "last name", "contact phone", "customer id", "address id", "date from", "date to", "order id", "customer id", "order date", "order status code", "order item id", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "contacts", "customer address history", "customer orders", "order items" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "gender", "first name", "last name", "contact phone", "date from", "date to", "order id", "order date", "order status code", "order item id", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "25": 1, "1": 1, "24": 11, "11": 11, "29": 11, "33": 28, "28": 28, "34": 7, "7": 7, "18": 18 }, "origin_question_toks": [ "Show", "the", "product", "name", "and", "total", "order", "quantity", "for", "each", "product", "." ], "question_arg": [ [ "show" ], [ "product", "name" ], [ "and" ], [ "total" ], [ "order", "quantity" ], [ "for" ], [ "each" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "product", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "order", "NN" ], [ "quantity", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(4) C(29) T(6)" }, { "db_id": "customers_and_products_contacts", "query": "SELECT min(product_price) , max(product_price) , avg(product_price) FROM products", "query_toks": [ "SELECT", "min", "(", "product_price", ")", ",", "max", "(", "product_price", ")", ",", "avg", "(", "product_price", ")", "FROM", "products" ], "query_toks_no_value": [ "select", "min", "(", "product_price", ")", ",", "max", "(", "product_price", ")", ",", "avg", "(", "product_price", ")", "from", "products" ], "question": "Show the minimum, maximum, average price for all products.", "question_toks": [ "show", "minimum", ",", "maximum", ",", "average", "price", "for", "all", "product", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 10, false ], null ] ], [ 1, [ 0, [ 0, 10, false ], null ] ], [ 5, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "customer id", "gender", "first name", "last name", "contact phone", "customer id", "address id", "date from", "date to", "order id", "customer id", "order date", "order status code", "order item id", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "contacts", "customer address history", "customer orders", "order items" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "gender", "first name", "last name", "contact phone", "date from", "date to", "order id", "order date", "order status code", "order item id", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "25": 1, "1": 1, "24": 11, "11": 11, "29": 11, "33": 28, "28": 28, "34": 7, "7": 7, "18": 18 }, "origin_question_toks": [ "Show", "the", "minimum", ",", "maximum", ",", "average", "price", "for", "all", "products", "." ], "question_arg": [ [ "show" ], [ "minimum" ], [ "," ], [ "maximum" ], [ "," ], [ "average" ], [ "price" ], [ "for" ], [ "all" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "minimum", "NN" ], [ ",", "," ], [ "maximum", "NN" ], [ ",", "," ], [ "average", "JJ" ], [ "price", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(2) C(10) T(1) A(1) C(10) T(1) A(5) C(10) T(1)" }, { "db_id": "customers_and_products_contacts", "query": "SELECT count(*) FROM products WHERE product_price > (SELECT avg(product_price) FROM products)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "WHERE", "product_price", ">", "(", "SELECT", "avg", "(", "product_price", ")", "FROM", "products", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "where", "product_price", ">", "(", "select", "avg", "(", "product_price", ")", "from", "products", ")" ], "question": "How many products have a price higher than the average?", "question_toks": [ "how", "many", "product", "have", "a", "price", "higher", "than", "average", "?" ], "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 ], { "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": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "customer id", "gender", "first name", "last name", "contact phone", "customer id", "address id", "date from", "date to", "order id", "customer id", "order date", "order status code", "order item id", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "contacts", "customer address history", "customer orders", "order items" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "gender", "first name", "last name", "contact phone", "date from", "date to", "order id", "order date", "order status code", "order item id", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "25": 1, "1": 1, "24": 11, "11": 11, "29": 11, "33": 28, "28": 28, "34": 7, "7": 7, "18": 18 }, "origin_question_toks": [ "How", "many", "products", "have", "a", "price", "higher", "than", "the", "average", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "product" ], [ "have" ], [ "a" ], [ "price" ], [ "higher" ], [ "than" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "product", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(13) A(0) C(10) T(1) Root(5) Sel(0) N(0) A(5) C(10) T(1)" }, { "db_id": "customers_and_products_contacts", "query": "SELECT T2.customer_name , T3.city , T1.date_from , T1.date_to FROM customer_address_history AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id JOIN addresses AS T3 ON T1.address_id = T3.address_id", "query_toks": [ "SELECT", "T2.customer_name", ",", "T3.city", ",", "T1.date_from", ",", "T1.date_to", "FROM", "customer_address_history", "AS", "T1", "JOIN", "customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "JOIN", "addresses", "AS", "T3", "ON", "T1.address_id", "=", "T3.address_id" ], "query_toks_no_value": [ "select", "t2", ".", "customer_name", ",", "t3", ".", "city", ",", "t1", ".", "date_from", ",", "t1", ".", "date_to", "from", "customer_address_history", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t1", ".", "address_id", "=", "t3", ".", "address_id" ], "question": "Show the customer name, customer address city, date from, and date to for each customer address history.", "question_toks": [ "show", "customer", "name", ",", "customer", "address", "city", ",", "date", "from", ",", "and", "date", "to", "for", "each", "customer", "address", "history", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "customer id", "gender", "first name", "last name", "contact phone", "customer id", "address id", "date from", "date to", "order id", "customer id", "order date", "order status code", "order item id", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "contacts", "customer address history", "customer orders", "order items" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "gender", "first name", "last name", "contact phone", "date from", "date to", "order id", "order date", "order status code", "order item id", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "25": 1, "1": 1, "24": 11, "11": 11, "29": 11, "33": 28, "28": 28, "34": 7, "7": 7, "18": 18 }, "origin_question_toks": [ "Show", "the", "customer", "name", ",", "customer", "address", "city", ",", "date", "from", ",", "and", "date", "to", "for", "each", "customer", "address", "history", "." ], "question_arg": [ [ "show" ], [ "customer", "name" ], [ "," ], [ "customer", "address" ], [ "city" ], [ "," ], [ "date", "from" ], [ "," ], [ "and" ], [ "date", "to" ], [ "for" ], [ "each" ], [ "customer", "address" ], [ "history" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "customer", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "customer", "NN" ], [ "address", "NN" ], [ "city", "NN" ], [ ",", "," ], [ "date", "NN" ], [ "from", "IN" ], [ ",", "," ], [ "and", "CC" ], [ "date", "NN" ], [ "to", "TO" ], [ "for", "IN" ], [ "each", "DT" ], [ "customer", "NN" ], [ "address", "NN" ], [ "history", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(14) T(2) A(0) C(3) T(0) A(0) C(23) T(4) A(0) C(24) T(4)" }, { "db_id": "customers_and_products_contacts", "query": "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.payment_method_code = 'Credit Card' GROUP BY T1.customer_id HAVING count(*) > 2", "query_toks": [ "SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T1.payment_method_code", "=", "'Credit", "Card", "'", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "payment_method_code", "=", "value", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show the names of customers who use Credit Card payment method and have more than 2 orders.", "question_toks": [ "show", "name", "of", "customer", "who", "use", "credit", "card", "payment", "method", "and", "have", "more", "than", "2", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 29, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 29, 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, 12, false ], null ], "\"Credit Card\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "customer id", "gender", "first name", "last name", "contact phone", "customer id", "address id", "date from", "date to", "order id", "customer id", "order date", "order status code", "order item id", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "contacts", "customer address history", "customer orders", "order items" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "gender", "first name", "last name", "contact phone", "date from", "date to", "order id", "order date", "order status code", "order item id", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "25": 1, "1": 1, "24": 11, "11": 11, "29": 11, "33": 28, "28": 28, "34": 7, "7": 7, "18": 18 }, "origin_question_toks": [ "Show", "the", "names", "of", "customers", "who", "use", "Credit", "Card", "payment", "method", "and", "have", "more", "than", "2", "orders", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "use" ], [ "credit" ], [ "card" ], [ "payment", "method", "code" ], [ "and" ], [ "have" ], [ "more" ], [ "than" ], [ "2" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "use", "VBP" ], [ "credit", "NN" ], [ "card", "NN" ], [ "payment", "NN" ], [ "method", "NN" ], [ "and", "CC" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "2", "Credit Card" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(0) Filter(0) Filter(18) A(0) C(11) T(2) Root(5) Sel(0) N(0) A(0) C(11) T(5) Filter(2) A(0) C(12) T(2) V(1) Filter(5) A(3) C(0) T(5) V(0)" }, { "db_id": "customers_and_products_contacts", "query": "SELECT T1.customer_name , T1.customer_phone FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T3.order_id = T2.order_id GROUP BY T1.customer_id ORDER BY sum(T3.order_quantity) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.customer_name", ",", "T1.customer_phone", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "JOIN", "order_items", "AS", "T3", "ON", "T3.order_id", "=", "T2.order_id", "GROUP", "BY", "T1.customer_id", "ORDER", "BY", "sum", "(", "T3.order_quantity", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", ",", "t1", ".", "customer_phone", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t3", ".", "order_id", "=", "t2", ".", "order_id", "group", "by", "t1", ".", "customer_id", "order", "by", "sum", "(", "t3", ".", "order_quantity", ")", "desc", "limit", "value" ], "question": "What are the name and phone of the customer with the most ordered product quantity?", "question_toks": [ "what", "are", "name", "and", "phone", "of", "customer", "with", "most", "ordered", "product", "quantity", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 29, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 35, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 29, 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 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "customer id", "gender", "first name", "last name", "contact phone", "customer id", "address id", "date from", "date to", "order id", "customer id", "order date", "order status code", "order item id", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "contacts", "customer address history", "customer orders", "order items" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "gender", "first name", "last name", "contact phone", "date from", "date to", "order id", "order date", "order status code", "order item id", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "25": 1, "1": 1, "24": 11, "11": 11, "29": 11, "33": 28, "28": 28, "34": 7, "7": 7, "18": 18 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "phone", "of", "the", "customer", "with", "the", "most", "ordered", "product", "quantity", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "phone" ], [ "of" ], [ "customer" ], [ "with" ], [ "most" ], [ "ordered" ], [ "product" ], [ "quantity" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "phone", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "ordered", "JJ" ], [ "product", "NN" ], [ "quantity", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(14) T(2) A(0) C(16) T(2) Sup(0) A(4) C(29) T(6) Filter(18) A(0) C(11) T(2) Root(5) Sel(0) N(0) A(0) C(11) T(5)" }, { "db_id": "customers_and_products_contacts", "query": "SELECT product_type_code , product_name FROM products WHERE product_price > 1000 OR product_price < 500", "query_toks": [ "SELECT", "product_type_code", ",", "product_name", "FROM", "products", "WHERE", "product_price", ">", "1000", "OR", "product_price", "<", "500" ], "query_toks_no_value": [ "select", "product_type_code", ",", "product_name", "from", "products", "where", "product_price", ">", "value", "or", "product_price", "<", "value" ], "question": "Show the product type and name for the products with price higher than 1000 or lower than 500.", "question_toks": [ "show", "product", "type", "and", "name", "for", "product", "with", "price", "higher", "than", "1000", "or", "lower", "than", "500", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 1000.0, null ], "or", [ false, 4, [ 0, [ 0, 10, false ], null ], 500.0, null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "customer id", "gender", "first name", "last name", "contact phone", "customer id", "address id", "date from", "date to", "order id", "customer id", "order date", "order status code", "order item id", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "contacts", "customer address history", "customer orders", "order items" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "product id", "product type code", "product name", "product price", "customer id", "payment method code", "customer number", "customer name", "customer address", "customer phone", "customer email", "contact id", "gender", "first name", "last name", "contact phone", "date from", "date to", "order id", "order date", "order status code", "order item id", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "25": 1, "1": 1, "24": 11, "11": 11, "29": 11, "33": 28, "28": 28, "34": 7, "7": 7, "18": 18 }, "origin_question_toks": [ "Show", "the", "product", "type", "and", "name", "for", "the", "products", "with", "price", "higher", "than", "1000", "or", "lower", "than", "500", "." ], "question_arg": [ [ "show" ], [ "product" ], [ "type" ], [ "and" ], [ "name" ], [ "for" ], [ "product" ], [ "with" ], [ "price" ], [ "higher" ], [ "than" ], [ "1000" ], [ "or" ], [ "lower" ], [ "than" ], [ "500" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "product", "NN" ], [ "type", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "for", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ "or", "CC" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "500", "CD" ], [ ".", "." ] ], "values": [ "1000", "500" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(1) A(0) C(9) T(1) Filter(1) Filter(5) A(0) C(10) T(1) V(0) Filter(4) A(0) C(10) T(1) V(1)" }, { "db_id": "dorm_1", "query": "SELECT dorm_name FROM dorm WHERE gender = 'F'", "query_toks": [ "SELECT", "dorm_name", "FROM", "dorm", "WHERE", "gender", "=", "'F", "'" ], "query_toks_no_value": [ "select", "dorm_name", "from", "dorm", "where", "gender", "=", "value" ], "question": "Find the name of dorms only for female (F gender).", "question_toks": [ "find", "name", "of", "dorm", "only", "for", "female", "(", "f", "gender", ")", "." ], "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, 2, [ 0, [ 0, 12, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "dorms", "only", "for", "female", "(", "F", "gender", ")", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "dorm" ], [ "only" ], [ "for" ], [ "female" ], [ "(" ], [ "f" ], [ "gender" ], [ ")" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "only", "RB" ], [ "for", "IN" ], [ "female", "NN" ], [ "(", "(" ], [ "f", "JJ" ], [ "gender", "NN" ], [ ")", ")" ], [ ".", "." ] ], "values": [ "F" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(12) T(1) V(0)" }, { "db_id": "dorm_1", "query": "SELECT dorm_name FROM dorm WHERE gender = 'F'", "query_toks": [ "SELECT", "dorm_name", "FROM", "dorm", "WHERE", "gender", "=", "'F", "'" ], "query_toks_no_value": [ "select", "dorm_name", "from", "dorm", "where", "gender", "=", "value" ], "question": "What are the names of the all-female dorms?", "question_toks": [ "what", "are", "name", "of", "all-female", "dorm", "?" ], "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, 2, [ 0, [ 0, 12, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "all-female", "dorms", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all-female" ], [ "dorm" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all-female", "JJ" ], [ "dorm", "NN" ], [ "?", "." ] ], "values": [ "F" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(12) T(1) V(0)" }, { "db_id": "dorm_1", "query": "SELECT dorm_name FROM dorm WHERE student_capacity > 300", "query_toks": [ "SELECT", "dorm_name", "FROM", "dorm", "WHERE", "student_capacity", ">", "300" ], "query_toks_no_value": [ "select", "dorm_name", "from", "dorm", "where", "student_capacity", ">", "value" ], "question": "Find the name of dorms that can accommodate more than 300 students.", "question_toks": [ "find", "name", "of", "dorm", "that", "can", "accommodate", "more", "than", "300", "student", "." ], "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 ], 300.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "dorms", "that", "can", "accommodate", "more", "than", "300", "students", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "dorm" ], [ "that" ], [ "can" ], [ "accommodate" ], [ "more" ], [ "than" ], [ "300" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "accommodate", "VB" ], [ "more", "JJR" ], [ "than", "IN" ], [ "300", "CD" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "300" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(5) A(0) C(11) T(1) V(0)" }, { "db_id": "dorm_1", "query": "SELECT dorm_name FROM dorm WHERE student_capacity > 300", "query_toks": [ "SELECT", "dorm_name", "FROM", "dorm", "WHERE", "student_capacity", ">", "300" ], "query_toks_no_value": [ "select", "dorm_name", "from", "dorm", "where", "student_capacity", ">", "value" ], "question": "What are the names of all the dorms that can accomdate more than 300 students?", "question_toks": [ "what", "are", "name", "of", "all", "dorm", "that", "can", "accomdate", "more", "than", "300", "student", "?" ], "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 ], 300.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "dorms", "that", "can", "accomdate", "more", "than", "300", "students", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "dorm" ], [ "that" ], [ "can" ], [ "accomdate" ], [ "more" ], [ "than" ], [ "300" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "dorm", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "accomdate", "VB" ], [ "more", "JJR" ], [ "than", "IN" ], [ "300", "CD" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "300" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(5) A(0) C(11) T(1) V(0)" }, { "db_id": "dorm_1", "query": "SELECT count(*) FROM student WHERE sex = 'F' AND age < 25", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "student", "WHERE", "sex", "=", "'F", "'", "AND", "age", "<", "25" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "sex", "=", "value", "and", "age", "<", "value" ], "question": "How many female students (sex is F) whose age is below 25?", "question_toks": [ "how", "many", "female", "student", "(", "sex", "is", "f", ")", "whose", "age", "is", "below", "25", "?" ], "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, 5, false ], null ], "\"F\"", null ], "and", [ false, 4, [ 0, [ 0, 4, false ], null ], 25.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "female", "students", "(", "sex", "is", "F", ")", "whose", "age", "is", "below", "25", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "female" ], [ "student" ], [ "(" ], [ "sex" ], [ "is" ], [ "f" ], [ ")" ], [ "whose" ], [ "age" ], [ "is" ], [ "below" ], [ "25" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "female", "JJ" ], [ "student", "NN" ], [ "(", "(" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "f", "JJ" ], [ ")", ")" ], [ "whose", "WP$" ], [ "age", "NN" ], [ "is", "VBZ" ], [ "below", "IN" ], [ "25", "CD" ], [ "?", "." ] ], "values": [ "25", "F" ], "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(0) V(1) Filter(4) A(0) C(4) T(0) V(0)" }, { "db_id": "dorm_1", "query": "SELECT count(*) FROM student WHERE sex = 'F' AND age < 25", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "student", "WHERE", "sex", "=", "'F", "'", "AND", "age", "<", "25" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "sex", "=", "value", "and", "age", "<", "value" ], "question": "How many girl students who are younger than 25?", "question_toks": [ "how", "many", "girl", "student", "who", "are", "younger", "than", "25", "?" ], "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, 5, false ], null ], "\"F\"", null ], "and", [ false, 4, [ 0, [ 0, 4, false ], null ], 25.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "girl", "students", "who", "are", "younger", "than", "25", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "girl" ], [ "student" ], [ "who" ], [ "are" ], [ "younger" ], [ "than" ], [ "25" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "girl", "JJ" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "younger", "JJR" ], [ "than", "IN" ], [ "25", "CD" ], [ "?", "." ] ], "values": [ "25", "F" ], "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(0) V(1) Filter(4) A(0) C(4) T(0) V(0)" }, { "db_id": "dorm_1", "query": "SELECT fname FROM student WHERE age > 20", "query_toks": [ "SELECT", "fname", "FROM", "student", "WHERE", "age", ">", "20" ], "query_toks_no_value": [ "select", "fname", "from", "student", "where", "age", ">", "value" ], "question": "Find the first name of students who is older than 20.", "question_toks": [ "find", "first", "name", "of", "student", "who", "is", "older", "than", "20", "." ], "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, 3, [ 0, [ 0, 4, false ], null ], 20.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "first", "name", "of", "students", "who", "is", "older", "than", "20", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "is" ], [ "older" ], [ "than" ], [ "20" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "older", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ ".", "." ] ], "values": [ "20", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "dorm_1", "query": "SELECT fname FROM student WHERE age > 20", "query_toks": [ "SELECT", "fname", "FROM", "student", "WHERE", "age", ">", "20" ], "query_toks_no_value": [ "select", "fname", "from", "student", "where", "age", ">", "value" ], "question": "What are the first names of all students who are older than 20?", "question_toks": [ "what", "are", "first", "name", "of", "all", "student", "who", "are", "older", "than", "20", "?" ], "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, 3, [ 0, [ 0, 4, false ], null ], 20.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "all", "students", "who", "are", "older", "than", "20", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "are" ], [ "older" ], [ "than" ], [ "20" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "older", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ "?", "." ] ], "values": [ "20", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "dorm_1", "query": "SELECT fname FROM student WHERE city_code = 'PHL' AND age BETWEEN 20 AND 25", "query_toks": [ "SELECT", "fname", "FROM", "student", "WHERE", "city_code", "=", "'PHL", "'", "AND", "age", "BETWEEN", "20", "AND", "25" ], "query_toks_no_value": [ "select", "fname", "from", "student", "where", "city_code", "=", "value", "and", "age", "between", "value", "and", "value" ], "question": "Find the first name of students living in city PHL whose age is between 20 and 25.", "question_toks": [ "find", "first", "name", "of", "student", "living", "in", "city", "phl", "whose", "age", "is", "between", "20", "and", "25", "." ], "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, 8, false ], null ], "\"PHL\"", null ], "and", [ false, 1, [ 0, [ 0, 4, false ], null ], 20.0, 25.0 ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "first", "name", "of", "students", "living", "in", "city", "PHL", "whose", "age", "is", "between", "20", "and", "25", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "living" ], [ "in" ], [ "city" ], [ "phl" ], [ "whose" ], [ "age" ], [ "is" ], [ "between" ], [ "20" ], [ "and" ], [ "25" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "living", "NN" ], [ "in", "IN" ], [ "city", "NN" ], [ "phl", "NN" ], [ "whose", "WP$" ], [ "age", "NN" ], [ "is", "VBZ" ], [ "between", "IN" ], [ "20", "CD" ], [ "and", "CC" ], [ "25", "CD" ], [ ".", "." ] ], "values": [ "20", "1", "25", "PHL" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(0) Filter(2) A(0) C(8) T(0) V(3) Filter(8) A(0) C(4) T(0) V(0) V(2)" }, { "db_id": "dorm_1", "query": "SELECT fname FROM student WHERE city_code = 'PHL' AND age BETWEEN 20 AND 25", "query_toks": [ "SELECT", "fname", "FROM", "student", "WHERE", "city_code", "=", "'PHL", "'", "AND", "age", "BETWEEN", "20", "AND", "25" ], "query_toks_no_value": [ "select", "fname", "from", "student", "where", "city_code", "=", "value", "and", "age", "between", "value", "and", "value" ], "question": "What is the first name of the students who are in age 20 to 25 and living in PHL city?", "question_toks": [ "what", "is", "first", "name", "of", "student", "who", "are", "in", "age", "20", "to", "25", "and", "living", "in", "phl", "city", "?" ], "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, 8, false ], null ], "\"PHL\"", null ], "and", [ false, 1, [ 0, [ 0, 4, false ], null ], 20.0, 25.0 ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "first", "name", "of", "the", "students", "who", "are", "in", "age", "20", "to", "25", "and", "living", "in", "PHL", "city", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "in" ], [ "age" ], [ "20" ], [ "to" ], [ "25" ], [ "and" ], [ "living" ], [ "in" ], [ "phl" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "in", "IN" ], [ "age", "NN" ], [ "20", "CD" ], [ "to", "TO" ], [ "25", "CD" ], [ "and", "CC" ], [ "living", "VBG" ], [ "in", "IN" ], [ "phl", "JJ" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "20", "1", "25", "PHL" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(0) Filter(2) A(0) C(8) T(0) V(3) Filter(8) A(0) C(4) T(0) V(0) V(2)" }, { "db_id": "dorm_1", "query": "SELECT count(*) FROM dorm", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "dorm" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "dorm" ], "question": "How many dorms are there?", "question_toks": [ "how", "many", "dorm", "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "dorms", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "dorm" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "dorm", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "dorm_1", "query": "SELECT count(*) FROM dorm", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "dorm" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "dorm" ], "question": "How many dorms are in the database?", "question_toks": [ "how", "many", "dorm", "are", "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "dorms", "are", "in", "the", "database", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "dorm" ], [ "are" ], [ "in" ], [ "database" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "dorm", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "database", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "dorm_1", "query": "SELECT count(*) FROM dorm_amenity", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "dorm_amenity" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "dorm_amenity" ], "question": "Find the number of distinct amenities.", "question_toks": [ "find", "number", "of", "distinct", "amenity", "." ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "distinct", "amenities", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "distinct" ], [ "amenity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "amenity", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "dorm_1", "query": "SELECT count(*) FROM dorm_amenity", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "dorm_amenity" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "dorm_amenity" ], "question": "How many diffrent dorm amenities are there?", "question_toks": [ "how", "many", "diffrent", "dorm", "amenity", "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "diffrent", "dorm", "amenities", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "diffrent" ], [ "dorm", "amenity" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "diffrent", "JJ" ], [ "dorm", "NN" ], [ "amenity", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "dorm_1", "query": "SELECT sum(student_capacity) FROM dorm", "query_toks": [ "SELECT", "sum", "(", "student_capacity", ")", "FROM", "dorm" ], "query_toks_no_value": [ "select", "sum", "(", "student_capacity", ")", "from", "dorm" ], "question": "Find the total capacity of all dorms.", "question_toks": [ "find", "total", "capacity", "of", "all", "dorm", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "total", "capacity", "of", "all", "dorms", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "capacity" ], [ "of" ], [ "all" ], [ "dorm" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "capacity", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "dorm", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(11) T(1)" }, { "db_id": "dorm_1", "query": "SELECT sum(student_capacity) FROM dorm", "query_toks": [ "SELECT", "sum", "(", "student_capacity", ")", "FROM", "dorm" ], "query_toks_no_value": [ "select", "sum", "(", "student_capacity", ")", "from", "dorm" ], "question": "What is the total student capacity of all dorms?", "question_toks": [ "what", "is", "total", "student", "capacity", "of", "all", "dorm", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "student", "capacity", "of", "all", "dorms", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "student", "capacity" ], [ "of" ], [ "all" ], [ "dorm" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "student", "NN" ], [ "capacity", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "dorm", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(11) T(1)" }, { "db_id": "dorm_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", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "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(0)" }, { "db_id": "dorm_1", "query": "SELECT count(*) FROM student", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "student" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student" ], "question": "How many students exist?", "question_toks": [ "how", "many", "student", "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": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "students", "exist", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "exist" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "exist", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "dorm_1", "query": "SELECT avg(age) , city_code FROM student GROUP BY city_code", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "city_code", "FROM", "student", "GROUP", "BY", "city_code" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "city_code", "from", "student", "group", "by", "city_code" ], "question": "Find the average age of all students living in the each city.", "question_toks": [ "find", "average", "age", "of", "all", "student", "living", "in", "each", "city", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "average", "age", "of", "all", "students", "living", "in", "the", "each", "city", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "age" ], [ "of" ], [ "all" ], [ "student" ], [ "living" ], [ "in" ], [ "each" ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "living", "VBG" ], [ "in", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(4) T(0) A(0) C(8) T(0)" }, { "db_id": "dorm_1", "query": "SELECT avg(age) , city_code FROM student GROUP BY city_code", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "city_code", "FROM", "student", "GROUP", "BY", "city_code" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "city_code", "from", "student", "group", "by", "city_code" ], "question": "What is the average age for each city and what are those cities?", "question_toks": [ "what", "is", "average", "age", "for", "each", "city", "and", "what", "are", "those", "city", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "age", "for", "each", "city", "and", "what", "are", "those", "cities", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "for" ], [ "each" ], [ "city" ], [ "and" ], [ "what" ], [ "are" ], [ "those" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ "and", "CC" ], [ "what", "WDT" ], [ "are", "VBP" ], [ "those", "DT" ], [ "city", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(4) T(0) A(0) C(8) T(0)" }, { "db_id": "dorm_1", "query": "SELECT avg(student_capacity) , sum(student_capacity) FROM dorm WHERE gender = 'X'", "query_toks": [ "SELECT", "avg", "(", "student_capacity", ")", ",", "sum", "(", "student_capacity", ")", "FROM", "dorm", "WHERE", "gender", "=", "'X", "'" ], "query_toks_no_value": [ "select", "avg", "(", "student_capacity", ")", ",", "sum", "(", "student_capacity", ")", "from", "dorm", "where", "gender", "=", "value" ], "question": "Find the average and total capacity of dorms for the students with gender X.", "question_toks": [ "find", "average", "and", "total", "capacity", "of", "dorm", "for", "student", "with", "gender", "x", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 11, false ], null ] ], [ 4, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"X\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "average", "and", "total", "capacity", "of", "dorms", "for", "the", "students", "with", "gender", "X", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "and" ], [ "total" ], [ "capacity" ], [ "of" ], [ "dorm" ], [ "for" ], [ "student" ], [ "with" ], [ "gender" ], [ "x" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "capacity", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "for", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "gender", "NN" ], [ "x", "NN" ], [ ".", "." ] ], "values": [ "X" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(11) T(1) A(4) C(11) T(1) Filter(2) A(0) C(12) T(1) V(0)" }, { "db_id": "dorm_1", "query": "SELECT avg(student_capacity) , sum(student_capacity) FROM dorm WHERE gender = 'X'", "query_toks": [ "SELECT", "avg", "(", "student_capacity", ")", ",", "sum", "(", "student_capacity", ")", "FROM", "dorm", "WHERE", "gender", "=", "'X", "'" ], "query_toks_no_value": [ "select", "avg", "(", "student_capacity", ")", ",", "sum", "(", "student_capacity", ")", "from", "dorm", "where", "gender", "=", "value" ], "question": "What is the average and total capacity for all dorms who are of gender X?", "question_toks": [ "what", "is", "average", "and", "total", "capacity", "for", "all", "dorm", "who", "are", "of", "gender", "x", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 11, false ], null ] ], [ 4, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"X\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "and", "total", "capacity", "for", "all", "dorms", "who", "are", "of", "gender", "X", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "and" ], [ "total" ], [ "capacity" ], [ "for" ], [ "all" ], [ "dorm" ], [ "who" ], [ "are" ], [ "of" ], [ "gender" ], [ "x" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "and", "CC" ], [ "total", "JJ" ], [ "capacity", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "dorm", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "of", "IN" ], [ "gender", "NN" ], [ "x", "NN" ], [ "?", "." ] ], "values": [ "X" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(11) T(1) A(4) C(11) T(1) Filter(2) A(0) C(12) T(1) V(0)" }, { "db_id": "dorm_1", "query": "SELECT count(DISTINCT dormid) FROM has_amenity", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dormid", ")", "FROM", "has_amenity" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dormid", ")", "from", "has_amenity" ], "question": "Find the number of dorms that have some amenity.", "question_toks": [ "find", "number", "of", "dorm", "that", "have", "some", "amenity", "." ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "dorms", "that", "have", "some", "amenity", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "dorm" ], [ "that" ], [ "have" ], [ "some" ], [ "amenity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "some", "DT" ], [ "amenity", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(9) T(3)" }, { "db_id": "dorm_1", "query": "SELECT count(DISTINCT dormid) FROM has_amenity", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dormid", ")", "FROM", "has_amenity" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dormid", ")", "from", "has_amenity" ], "question": "How many dorms have amenities?", "question_toks": [ "how", "many", "dorm", "have", "amenity", "?" ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "dorms", "have", "amenities", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "dorm" ], [ "have" ], [ "amenity" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "dorm", "NN" ], [ "have", "VBP" ], [ "amenity", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(9) T(3)" }, { "db_id": "dorm_1", "query": "SELECT dorm_name FROM dorm WHERE dormid NOT IN (SELECT dormid FROM has_amenity)", "query_toks": [ "SELECT", "dorm_name", "FROM", "dorm", "WHERE", "dormid", "NOT", "IN", "(", "SELECT", "dormid", "FROM", "has_amenity", ")" ], "query_toks_no_value": [ "select", "dorm_name", "from", "dorm", "where", "dormid", "not", "in", "(", "select", "dormid", "from", "has_amenity", ")" ], "question": "Find the name of dorms that do not have any amenity", "question_toks": [ "find", "name", "of", "dorm", "that", "do", "not", "have", "any", "amenity" ], "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": [ [ true, 8, [ 0, [ 0, 9, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "dorms", "that", "do", "not", "have", "any", "amenity" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "dorm" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "amenity" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "amenity", "NN" ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(19) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(3)" }, { "db_id": "dorm_1", "query": "SELECT dorm_name FROM dorm WHERE dormid NOT IN (SELECT dormid FROM has_amenity)", "query_toks": [ "SELECT", "dorm_name", "FROM", "dorm", "WHERE", "dormid", "NOT", "IN", "(", "SELECT", "dormid", "FROM", "has_amenity", ")" ], "query_toks_no_value": [ "select", "dorm_name", "from", "dorm", "where", "dormid", "not", "in", "(", "select", "dormid", "from", "has_amenity", ")" ], "question": "What are the names of all the dorms that don't have any amenities?", "question_toks": [ "what", "are", "name", "of", "all", "dorm", "that", "do", "n't", "have", "any", "amenity", "?" ], "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": [ [ true, 8, [ 0, [ 0, 9, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "dorms", "that", "do", "n't", "have", "any", "amenities", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "dorm" ], [ "that" ], [ "do" ], [ "n't" ], [ "have" ], [ "any" ], [ "amenity" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "dorm", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "amenity", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(19) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(3)" }, { "db_id": "dorm_1", "query": "SELECT count(DISTINCT gender) FROM dorm", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "gender", ")", "FROM", "dorm" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "gender", ")", "from", "dorm" ], "question": "Find the number of distinct gender for dorms.", "question_toks": [ "find", "number", "of", "distinct", "gender", "for", "dorm", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "distinct", "gender", "for", "dorms", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "distinct" ], [ "gender" ], [ "for" ], [ "dorm" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "gender", "NN" ], [ "for", "IN" ], [ "dorm", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(12) T(1)" }, { "db_id": "dorm_1", "query": "SELECT count(DISTINCT gender) FROM dorm", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "gender", ")", "FROM", "dorm" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "gender", ")", "from", "dorm" ], "question": "How many different genders are there in the dorms?", "question_toks": [ "how", "many", "different", "gender", "are", "there", "in", "dorm", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "different", "genders", "are", "there", "in", "the", "dorms", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "gender" ], [ "are" ], [ "there" ], [ "in" ], [ "dorm" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "gender", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "dorm", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(12) T(1)" }, { "db_id": "dorm_1", "query": "SELECT student_capacity , gender FROM dorm WHERE dorm_name LIKE '%Donor%'", "query_toks": [ "SELECT", "student_capacity", ",", "gender", "FROM", "dorm", "WHERE", "dorm_name", "LIKE", "'", "%", "Donor", "%", "'" ], "query_toks_no_value": [ "select", "student_capacity", ",", "gender", "from", "dorm", "where", "dorm_name", "like", "value" ], "question": "Find the capacity and gender type of the dorm whose name has substring \u2018Donor\u2019.", "question_toks": [ "find", "capacity", "and", "gender", "type", "of", "dorm", "whose", "name", "ha", "substring", "\u2018donor\u2019", "." ], "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": [ [ false, 9, [ 0, [ 0, 10, false ], null ], "\"%Donor%\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "capacity", "and", "gender", "type", "of", "the", "dorm", "whose", "name", "has", "substring", "\u2018Donor\u2019", "." ], "question_arg": [ [ "find" ], [ "capacity" ], [ "and" ], [ "gender" ], [ "type" ], [ "of" ], [ "dorm" ], [ "whose" ], [ "name" ], [ "ha" ], [ "substring" ], [ "\u2018donor\u2019" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "capacity", "NN" ], [ "and", "CC" ], [ "gender", "VB" ], [ "type", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "ha", "NN" ], [ "substring", "VBG" ], [ "\u2018donor\u2019", "NN" ], [ ".", "." ] ], "values": [ "Donor" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(11) T(1) A(0) C(12) T(1) Filter(9) A(0) C(10) T(1) V(0)" }, { "db_id": "dorm_1", "query": "SELECT student_capacity , gender FROM dorm WHERE dorm_name LIKE '%Donor%'", "query_toks": [ "SELECT", "student_capacity", ",", "gender", "FROM", "dorm", "WHERE", "dorm_name", "LIKE", "'", "%", "Donor", "%", "'" ], "query_toks_no_value": [ "select", "student_capacity", ",", "gender", "from", "dorm", "where", "dorm_name", "like", "value" ], "question": "What is the student capacity and type of gender for the dorm whose name as the phrase Donor in it?", "question_toks": [ "what", "is", "student", "capacity", "and", "type", "of", "gender", "for", "dorm", "whose", "name", "a", "phrase", "donor", "in", "it", "?" ], "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": [ [ false, 9, [ 0, [ 0, 10, false ], null ], "\"%Donor%\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "student", "capacity", "and", "type", "of", "gender", "for", "the", "dorm", "whose", "name", "as", "the", "phrase", "Donor", "in", "it", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "student", "capacity" ], [ "and" ], [ "type" ], [ "of" ], [ "gender" ], [ "for" ], [ "dorm" ], [ "whose" ], [ "name" ], [ "a" ], [ "phrase" ], [ "donor" ], [ "in" ], [ "it" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "student", "JJ" ], [ "capacity", "NN" ], [ "and", "CC" ], [ "type", "NN" ], [ "of", "IN" ], [ "gender", "NN" ], [ "for", "IN" ], [ "dorm", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "a", "DT" ], [ "phrase", "NN" ], [ "donor", "NN" ], [ "in", "IN" ], [ "it", "PRP" ], [ "?", "." ] ], "values": [ "Donor" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(11) T(1) A(0) C(12) T(1) Filter(9) A(0) C(10) T(1) V(0)" }, { "db_id": "dorm_1", "query": "SELECT dorm_name , gender FROM dorm WHERE student_capacity > 300 OR student_capacity < 100", "query_toks": [ "SELECT", "dorm_name", ",", "gender", "FROM", "dorm", "WHERE", "student_capacity", ">", "300", "OR", "student_capacity", "<", "100" ], "query_toks_no_value": [ "select", "dorm_name", ",", "gender", "from", "dorm", "where", "student_capacity", ">", "value", "or", "student_capacity", "<", "value" ], "question": "Find the name and gender type of the dorms whose capacity is greater than 300 or less than 100.", "question_toks": [ "find", "name", "and", "gender", "type", "of", "dorm", "whose", "capacity", "is", "greater", "than", "300", "or", "le", "than", "100", "." ], "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, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 300.0, null ], "or", [ false, 4, [ 0, [ 0, 11, false ], null ], 100.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "gender", "type", "of", "the", "dorms", "whose", "capacity", "is", "greater", "than", "300", "or", "less", "than", "100", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "gender" ], [ "type" ], [ "of" ], [ "dorm" ], [ "whose" ], [ "capacity" ], [ "is" ], [ "greater" ], [ "than" ], [ "300" ], [ "or" ], [ "le" ], [ "than" ], [ "100" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "gender", "NN" ], [ "type", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "whose", "WP$" ], [ "capacity", "NN" ], [ "is", "VBZ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "300", "CD" ], [ "or", "CC" ], [ "le", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ ".", "." ] ], "values": [ "300", "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(1) A(0) C(12) T(1) Filter(1) Filter(5) A(0) C(11) T(1) V(0) Filter(4) A(0) C(11) T(1) V(1)" }, { "db_id": "dorm_1", "query": "SELECT dorm_name , gender FROM dorm WHERE student_capacity > 300 OR student_capacity < 100", "query_toks": [ "SELECT", "dorm_name", ",", "gender", "FROM", "dorm", "WHERE", "student_capacity", ">", "300", "OR", "student_capacity", "<", "100" ], "query_toks_no_value": [ "select", "dorm_name", ",", "gender", "from", "dorm", "where", "student_capacity", ">", "value", "or", "student_capacity", "<", "value" ], "question": "What are the names and types of the dorms that have a capacity greater than 300 or less than 100?", "question_toks": [ "what", "are", "name", "and", "type", "of", "dorm", "that", "have", "a", "capacity", "greater", "than", "300", "or", "le", "than", "100", "?" ], "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, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 300.0, null ], "or", [ false, 4, [ 0, [ 0, 11, false ], null ], 100.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "types", "of", "the", "dorms", "that", "have", "a", "capacity", "greater", "than", "300", "or", "less", "than", "100", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "type" ], [ "of" ], [ "dorm" ], [ "that" ], [ "have" ], [ "a" ], [ "capacity" ], [ "greater" ], [ "than" ], [ "300" ], [ "or" ], [ "le" ], [ "than" ], [ "100" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "type", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "capacity", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "300", "CD" ], [ "or", "CC" ], [ "le", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "?", "." ] ], "values": [ "300", "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(1) A(0) C(12) T(1) Filter(1) Filter(5) A(0) C(11) T(1) V(0) Filter(4) A(0) C(11) T(1) V(1)" }, { "db_id": "dorm_1", "query": "SELECT count(DISTINCT major) , count(DISTINCT city_code) FROM student", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "major", ")", ",", "count", "(", "DISTINCT", "city_code", ")", "FROM", "student" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "major", ")", ",", "count", "(", "distinct", "city_code", ")", "from", "student" ], "question": "Find the numbers of different majors and cities.", "question_toks": [ "find", "number", "of", "different", "major", "and", "city", "." ], "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 ] ], [ 3, [ 0, [ 0, 8, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "numbers", "of", "different", "majors", "and", "cities", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "different" ], [ "major" ], [ "and" ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "major", "JJ" ], [ "and", "CC" ], [ "city", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(3) C(6) T(0) A(3) C(8) T(0)" }, { "db_id": "dorm_1", "query": "SELECT count(DISTINCT major) , count(DISTINCT city_code) FROM student", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "major", ")", ",", "count", "(", "DISTINCT", "city_code", ")", "FROM", "student" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "major", ")", ",", "count", "(", "distinct", "city_code", ")", "from", "student" ], "question": "How many different majors are there and how many different city codes are there for each student?", "question_toks": [ "how", "many", "different", "major", "are", "there", "and", "how", "many", "different", "city", "code", "are", "there", "for", "each", "student", "?" ], "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 ] ], [ 3, [ 0, [ 0, 8, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "different", "majors", "are", "there", "and", "how", "many", "different", "city", "codes", "are", "there", "for", "each", "student", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "major" ], [ "are" ], [ "there" ], [ "and" ], [ "how" ], [ "many" ], [ "different" ], [ "city", "code" ], [ "are" ], [ "there" ], [ "for" ], [ "each" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "major", "JJ" ], [ "are", "VBP" ], [ "there", "RB" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "city", "NN" ], [ "code", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "for", "IN" ], [ "each", "DT" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(3) C(6) T(0) A(3) C(8) T(0)" }, { "db_id": "dorm_1", "query": "SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' INTERSECT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room'", "query_toks": [ "SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'TV", "Lounge", "'", "INTERSECT", "SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'Study", "Room", "'" ], "query_toks_no_value": [ "select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value", "intersect", "select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value" ], "question": "Find the name of dorms which have both TV Lounge and Study Room as amenities.", "question_toks": [ "find", "name", "of", "dorm", "which", "have", "both", "tv", "lounge", "and", "study", "room", "a", "amenity", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 9, 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, 14, false ], null ], "\"Study Room\"", 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, 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, 14, false ], null ], "\"TV Lounge\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "dorms", "which", "have", "both", "TV", "Lounge", "and", "Study", "Room", "as", "amenities", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "dorm" ], [ "which" ], [ "have" ], [ "both" ], [ "tv" ], [ "lounge" ], [ "and" ], [ "study" ], [ "room" ], [ "a" ], [ "amenity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "tv", "NN" ], [ "lounge", "NN" ], [ "and", "CC" ], [ "study", "NN" ], [ "room", "NN" ], [ "a", "DT" ], [ "amenity", "NN" ], [ ".", "." ] ], "values": [ "Study Room", "TV Lounge", "Roof" ], "rule_label": "Root1(0) 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(9) T(3) Filter(2) A(0) C(14) T(2) V(1) 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(9) T(3) Filter(2) A(0) C(14) T(2) V(0)" }, { "db_id": "dorm_1", "query": "SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' INTERSECT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room'", "query_toks": [ "SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'TV", "Lounge", "'", "INTERSECT", "SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'Study", "Room", "'" ], "query_toks_no_value": [ "select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value", "intersect", "select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value" ], "question": "What is the name of the dorm with both a TV Lounge and Study Room listed as amenities?", "question_toks": [ "what", "is", "name", "of", "dorm", "with", "both", "a", "tv", "lounge", "and", "study", "room", "listed", "a", "amenity", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 9, 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, 14, false ], null ], "\"Study Room\"", 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, 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, 14, false ], null ], "\"TV Lounge\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "dorm", "with", "both", "a", "TV", "Lounge", "and", "Study", "Room", "listed", "as", "amenities", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "dorm" ], [ "with" ], [ "both" ], [ "a" ], [ "tv" ], [ "lounge" ], [ "and" ], [ "study" ], [ "room" ], [ "listed" ], [ "a" ], [ "amenity" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "with", "IN" ], [ "both", "DT" ], [ "a", "DT" ], [ "tv", "NN" ], [ "lounge", "NN" ], [ "and", "CC" ], [ "study", "NN" ], [ "room", "NN" ], [ "listed", "VBD" ], [ "a", "DT" ], [ "amenity", "NN" ], [ "?", "." ] ], "values": [ "Study Room", "TV Lounge", "Roof" ], "rule_label": "Root1(0) 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(9) T(3) Filter(2) A(0) C(14) T(2) V(1) 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(9) T(3) Filter(2) A(0) C(14) T(2) V(0)" }, { "db_id": "dorm_1", "query": "SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room'", "query_toks": [ "SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'TV", "Lounge", "'", "EXCEPT", "SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'Study", "Room", "'" ], "query_toks_no_value": [ "select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value", "except", "select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value" ], "question": "Find the name of dorms which have TV Lounge but no Study Room as amenity.", "question_toks": [ "find", "name", "of", "dorm", "which", "have", "tv", "lounge", "but", "no", "study", "room", "a", "amenity", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 9, 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, 14, false ], null ], "\"Study Room\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 9, 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, 14, false ], null ], "\"TV Lounge\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "dorms", "which", "have", "TV", "Lounge", "but", "no", "Study", "Room", "as", "amenity", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "dorm" ], [ "which" ], [ "have" ], [ "tv" ], [ "lounge" ], [ "but" ], [ "no" ], [ "study" ], [ "room" ], [ "a" ], [ "amenity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "tv", "NN" ], [ "lounge", "NN" ], [ "but", "CC" ], [ "no", "DT" ], [ "study", "NN" ], [ "room", "NN" ], [ "a", "DT" ], [ "amenity", "NN" ], [ ".", "." ] ], "values": [ "Study Room", "TV Lounge", "Roof" ], "rule_label": "Root1(2) 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(9) T(3) Filter(2) A(0) C(14) T(2) V(1) 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(9) T(3) Filter(2) A(0) C(14) T(2) V(0)" }, { "db_id": "dorm_1", "query": "SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room'", "query_toks": [ "SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'TV", "Lounge", "'", "EXCEPT", "SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'Study", "Room", "'" ], "query_toks_no_value": [ "select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value", "except", "select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value" ], "question": "What is the name of each dorm that has a TV Lounge but no study rooms?", "question_toks": [ "what", "is", "name", "of", "each", "dorm", "that", "ha", "a", "tv", "lounge", "but", "no", "study", "room", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 9, 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, 14, false ], null ], "\"Study Room\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 9, 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, 14, false ], null ], "\"TV Lounge\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "each", "dorm", "that", "has", "a", "TV", "Lounge", "but", "no", "study", "rooms", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "each" ], [ "dorm" ], [ "that" ], [ "ha" ], [ "a" ], [ "tv" ], [ "lounge" ], [ "but" ], [ "no" ], [ "study" ], [ "room" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "dorm", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "a", "DT" ], [ "tv", "NN" ], [ "lounge", "NN" ], [ "but", "CC" ], [ "no", "DT" ], [ "study", "NN" ], [ "room", "NN" ], [ "?", "." ] ], "values": [ "Study Room", "TV Lounge" ], "rule_label": "Root1(2) 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(9) T(3) Filter(2) A(0) C(14) T(2) V(1) 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(9) T(3) Filter(2) A(0) C(14) T(2) V(0)" }, { "db_id": "dorm_1", "query": "SELECT lname FROM student WHERE sex = 'F' AND city_code = 'BAL' UNION SELECT lname FROM student WHERE sex = 'M' AND age < 20", "query_toks": [ "SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "'F", "'", "AND", "city_code", "=", "'BAL", "'", "UNION", "SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "'M", "'", "AND", "age", "<", "20" ], "query_toks_no_value": [ "select", "lname", "from", "student", "where", "sex", "=", "value", "and", "city_code", "=", "value", "union", "select", "lname", "from", "student", "where", "sex", "=", "value", "and", "age", "<", "value" ], "question": "Find the last name of students who is either female (sex is F) and living in the city of code BAL or male (sex is M) and in age of below 20.", "question_toks": [ "find", "last", "name", "of", "student", "who", "is", "either", "female", "(", "sex", "is", "f", ")", "and", "living", "in", "city", "of", "code", "bal", "or", "male", "(", "sex", "is", "m", ")", "and", "in", "age", "of", "below", "20", "." ], "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", 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 ], "\"M\"", null ], "and", [ false, 4, [ 0, [ 0, 4, false ], null ], 20.0, null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"BAL\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "last", "name", "of", "students", "who", "is", "either", "female", "(", "sex", "is", "F", ")", "and", "living", "in", "the", "city", "of", "code", "BAL", "or", "male", "(", "sex", "is", "M", ")", "and", "in", "age", "of", "below", "20", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "is" ], [ "either" ], [ "female" ], [ "(" ], [ "sex" ], [ "is" ], [ "f" ], [ ")" ], [ "and" ], [ "living" ], [ "in" ], [ "city" ], [ "of" ], [ "code" ], [ "bal" ], [ "or" ], [ "male" ], [ "(" ], [ "sex" ], [ "is" ], [ "m" ], [ ")" ], [ "and" ], [ "in" ], [ "age" ], [ "of" ], [ "below" ], [ "20" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "either", "DT" ], [ "female", "JJ" ], [ "(", "(" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "f", "VBN" ], [ ")", ")" ], [ "and", "CC" ], [ "living", "VBG" ], [ "in", "IN" ], [ "city", "NN" ], [ "of", "IN" ], [ "code", "NN" ], [ "bal", "NN" ], [ "or", "CC" ], [ "male", "NN" ], [ "(", "(" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "m", "VBN" ], [ ")", ")" ], [ "and", "CC" ], [ "in", "IN" ], [ "age", "NN" ], [ "of", "IN" ], [ "below", "IN" ], [ "20", "CD" ], [ ".", "." ] ], "values": [ "20", "M", "BAL", "F" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(5) T(0) V(3) Filter(2) A(0) C(8) T(0) V(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(5) T(0) V(1) Filter(4) A(0) C(4) T(0) V(0)" }, { "db_id": "dorm_1", "query": "SELECT lname FROM student WHERE sex = 'F' AND city_code = 'BAL' UNION SELECT lname FROM student WHERE sex = 'M' AND age < 20", "query_toks": [ "SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "'F", "'", "AND", "city_code", "=", "'BAL", "'", "UNION", "SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "'M", "'", "AND", "age", "<", "20" ], "query_toks_no_value": [ "select", "lname", "from", "student", "where", "sex", "=", "value", "and", "city_code", "=", "value", "union", "select", "lname", "from", "student", "where", "sex", "=", "value", "and", "age", "<", "value" ], "question": "What is the last name of every student who is either female or living in a city with the code BAL or male and under 20?", "question_toks": [ "what", "is", "last", "name", "of", "every", "student", "who", "is", "either", "female", "or", "living", "in", "a", "city", "with", "code", "bal", "or", "male", "and", "under", "20", "?" ], "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", 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 ], "\"M\"", null ], "and", [ false, 4, [ 0, [ 0, 4, false ], null ], 20.0, null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"BAL\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "last", "name", "of", "every", "student", "who", "is", "either", "female", "or", "living", "in", "a", "city", "with", "the", "code", "BAL", "or", "male", "and", "under", "20", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last", "name" ], [ "of" ], [ "every" ], [ "student" ], [ "who" ], [ "is" ], [ "either" ], [ "female" ], [ "or" ], [ "living" ], [ "in" ], [ "a" ], [ "city" ], [ "with" ], [ "code" ], [ "bal" ], [ "or" ], [ "male" ], [ "and" ], [ "under" ], [ "20" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "either", "DT" ], [ "female", "JJ" ], [ "or", "CC" ], [ "living", "NN" ], [ "in", "IN" ], [ "a", "DT" ], [ "city", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "bal", "NN" ], [ "or", "CC" ], [ "male", "NN" ], [ "and", "CC" ], [ "under", "IN" ], [ "20", "CD" ], [ "?", "." ] ], "values": [ "20", "M", "BAL", "F" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(5) T(0) V(3) Filter(2) A(0) C(8) T(0) V(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(5) T(0) V(1) Filter(4) A(0) C(4) T(0) V(0)" }, { "db_id": "dorm_1", "query": "SELECT dorm_name FROM dorm ORDER BY student_capacity DESC LIMIT 1", "query_toks": [ "SELECT", "dorm_name", "FROM", "dorm", "ORDER", "BY", "student_capacity", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dorm_name", "from", "dorm", "order", "by", "student_capacity", "desc", "limit", "value" ], "question": "Find the name of the dorm with the largest capacity.", "question_toks": [ "find", "name", "of", "dorm", "with", "largest", "capacity", "." ], "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, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "dorm", "with", "the", "largest", "capacity", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "dorm" ], [ "with" ], [ "largest" ], [ "capacity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "capacity", "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": "dorm_1", "query": "SELECT dorm_name FROM dorm ORDER BY student_capacity DESC LIMIT 1", "query_toks": [ "SELECT", "dorm_name", "FROM", "dorm", "ORDER", "BY", "student_capacity", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dorm_name", "from", "dorm", "order", "by", "student_capacity", "desc", "limit", "value" ], "question": "What are the names of the dorm with the largest capacity?", "question_toks": [ "what", "are", "name", "of", "dorm", "with", "largest", "capacity", "?" ], "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, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "dorm", "with", "the", "largest", "capacity", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "dorm" ], [ "with" ], [ "largest" ], [ "capacity" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "capacity", "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": "dorm_1", "query": "SELECT amenity_name FROM dorm_amenity ORDER BY amenity_name", "query_toks": [ "SELECT", "amenity_name", "FROM", "dorm_amenity", "ORDER", "BY", "amenity_name" ], "query_toks_no_value": [ "select", "amenity_name", "from", "dorm_amenity", "order", "by", "amenity_name" ], "question": "List in alphabetic order all different amenities.", "question_toks": [ "list", "in", "alphabetic", "order", "all", "different", "amenity", "." ], "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, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "List", "in", "alphabetic", "order", "all", "different", "amenities", "." ], "question_arg": [ [ "list" ], [ "in" ], [ "alphabetic" ], [ "order" ], [ "all" ], [ "different" ], [ "amenity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "in", "IN" ], [ "alphabetic", "JJ" ], [ "order", "NN" ], [ "all", "DT" ], [ "different", "JJ" ], [ "amenity", "NN" ], [ ".", "." ] ], "values": [ "Lisa" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(14) T(2) Order(1) A(0) C(14) T(2)" }, { "db_id": "dorm_1", "query": "SELECT amenity_name FROM dorm_amenity ORDER BY amenity_name", "query_toks": [ "SELECT", "amenity_name", "FROM", "dorm_amenity", "ORDER", "BY", "amenity_name" ], "query_toks_no_value": [ "select", "amenity_name", "from", "dorm_amenity", "order", "by", "amenity_name" ], "question": "What are the different dorm amenity names in alphabetical order?", "question_toks": [ "what", "are", "different", "dorm", "amenity", "name", "in", "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, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "different", "dorm", "amenity", "names", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "dorm", "amenity" ], [ "name" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "dorm", "NN" ], [ "amenity", "NN" ], [ "name", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(14) T(2) Order(1) A(0) C(14) T(2)" }, { "db_id": "dorm_1", "query": "SELECT city_code FROM student GROUP BY city_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "city_code", "FROM", "student", "GROUP", "BY", "city_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "city_code", "from", "student", "group", "by", "city_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the code of city where most of students are living in.", "question_toks": [ "find", "code", "of", "city", "where", "most", "of", "student", "are", "living", "in", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "code", "of", "city", "where", "most", "of", "students", "are", "living", "in", "." ], "question_arg": [ [ "find" ], [ "code" ], [ "of" ], [ "city" ], [ "where" ], [ "most" ], [ "of" ], [ "student" ], [ "are" ], [ "living" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "code", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "where", "WRB" ], [ "most", "JJS" ], [ "of", "IN" ], [ "student", "NN" ], [ "are", "VBP" ], [ "living", "VBG" ], [ "in", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "dorm_1", "query": "SELECT city_code FROM student GROUP BY city_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "city_code", "FROM", "student", "GROUP", "BY", "city_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "city_code", "from", "student", "group", "by", "city_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the code of the city with the most students?", "question_toks": [ "what", "is", "code", "of", "city", "with", "most", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "code", "of", "the", "city", "with", "the", "most", "students", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "code" ], [ "of" ], [ "city" ], [ "with" ], [ "most" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "code", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "dorm_1", "query": "SELECT fname , lname FROM student WHERE age < (SELECT avg(age) FROM student)", "query_toks": [ "SELECT", "fname", ",", "lname", "FROM", "student", "WHERE", "age", "<", "(", "SELECT", "avg", "(", "age", ")", "FROM", "student", ")" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "student", "where", "age", "<", "(", "select", "avg", "(", "age", ")", "from", "student", ")" ], "question": "Find the first and last name of students whose age is younger than the average age.", "question_toks": [ "find", "first", "and", "last", "name", "of", "student", "whose", "age", "is", "younger", "than", "average", "age", "." ], "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 ] ] ] ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "first", "and", "last", "name", "of", "students", "whose", "age", "is", "younger", "than", "the", "average", "age", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "whose" ], [ "age" ], [ "is" ], [ "younger" ], [ "than" ], [ "average" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "age", "NN" ], [ "is", "VBZ" ], [ "younger", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "age", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) 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": "dorm_1", "query": "SELECT fname , lname FROM student WHERE age < (SELECT avg(age) FROM student)", "query_toks": [ "SELECT", "fname", ",", "lname", "FROM", "student", "WHERE", "age", "<", "(", "SELECT", "avg", "(", "age", ")", "FROM", "student", ")" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "student", "where", "age", "<", "(", "select", "avg", "(", "age", ")", "from", "student", ")" ], "question": "What is the first and last name of all students who are younger than average?", "question_toks": [ "what", "is", "first", "and", "last", "name", "of", "all", "student", "who", "are", "younger", "than", "average", "?" ], "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 ] ] ] ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "first", "and", "last", "name", "of", "all", "students", "who", "are", "younger", "than", "average", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "are" ], [ "younger" ], [ "than" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "younger", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) 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": "dorm_1", "query": "SELECT fname , lname FROM student WHERE city_code != 'HKG' ORDER BY age", "query_toks": [ "SELECT", "fname", ",", "lname", "FROM", "student", "WHERE", "city_code", "!", "=", "'HKG", "'", "ORDER", "BY", "age" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "student", "where", "city_code", "!", "=", "value", "order", "by", "age" ], "question": "List the first and last name of students who are not living in the city with code HKG, and sorted the results by their ages.", "question_toks": [ "list", "first", "and", "last", "name", "of", "student", "who", "are", "not", "living", "in", "city", "with", "code", "hkg", ",", "and", "sorted", "result", "by", "their", "age", "." ], "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, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 8, false ], null ], "\"HKG\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "List", "the", "first", "and", "last", "name", "of", "students", "who", "are", "not", "living", "in", "the", "city", "with", "code", "HKG", ",", "and", "sorted", "the", "results", "by", "their", "ages", "." ], "question_arg": [ [ "list" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "not" ], [ "living" ], [ "in" ], [ "city" ], [ "with" ], [ "code" ], [ "hkg" ], [ "," ], [ "and" ], [ "sorted" ], [ "result" ], [ "by" ], [ "their" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "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" ], [ "are", "VBP" ], [ "not", "RB" ], [ "living", "VBG" ], [ "in", "IN" ], [ "city", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "hkg", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "sorted", "VBD" ], [ "result", "NN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "age", "NN" ], [ ".", "." ] ], "values": [ "1", "HKG" ], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(3) A(0) C(8) T(0) V(1) Order(1) A(0) C(4) T(0)" }, { "db_id": "dorm_1", "query": "SELECT fname , lname FROM student WHERE city_code != 'HKG' ORDER BY age", "query_toks": [ "SELECT", "fname", ",", "lname", "FROM", "student", "WHERE", "city_code", "!", "=", "'HKG", "'", "ORDER", "BY", "age" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "student", "where", "city_code", "!", "=", "value", "order", "by", "age" ], "question": "What are the first and last names of all students who are not living in the city HKG and order the results by age?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "all", "student", "who", "are", "not", "living", "in", "city", "hkg", "and", "order", "result", "by", "age", "?" ], "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, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 8, false ], null ], "\"HKG\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "of", "all", "students", "who", "are", "not", "living", "in", "the", "city", "HKG", "and", "order", "the", "results", "by", "age", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "are" ], [ "not" ], [ "living" ], [ "in" ], [ "city" ], [ "hkg" ], [ "and" ], [ "order" ], [ "result" ], [ "by" ], [ "age" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "living", "VBG" ], [ "in", "IN" ], [ "city", "NN" ], [ "hkg", "NN" ], [ "and", "CC" ], [ "order", "NN" ], [ "result", "NN" ], [ "by", "IN" ], [ "age", "NN" ], [ "?", "." ] ], "values": [ "1", "HKG" ], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(3) A(0) C(8) T(0) V(1) Order(1) A(0) C(4) T(0)" }, { "db_id": "dorm_1", "query": "SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T2.amenid = T1.amenid JOIN dorm AS T3 ON T2.dormid = T3.dormid WHERE T3.dorm_name = 'Anonymous Donor Hall' ORDER BY T1.amenity_name", "query_toks": [ "SELECT", "T1.amenity_name", "FROM", "dorm_amenity", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T2.amenid", "=", "T1.amenid", "JOIN", "dorm", "AS", "T3", "ON", "T2.dormid", "=", "T3.dormid", "WHERE", "T3.dorm_name", "=", "'Anonymous", "Donor", "Hall", "'", "ORDER", "BY", "T1.amenity_name" ], "query_toks_no_value": [ "select", "t1", ".", "amenity_name", "from", "dorm_amenity", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t2", ".", "amenid", "=", "t1", ".", "amenid", "join", "dorm", "as", "t3", "on", "t2", ".", "dormid", "=", "t3", ".", "dormid", "where", "t3", ".", "dorm_name", "=", "value", "order", "by", "t1", ".", "amenity_name" ], "question": "List name of all amenities which Anonymous Donor Hall has, and sort the results in alphabetic order.", "question_toks": [ "list", "name", "of", "all", "amenity", "which", "anonymous", "donor", "hall", "ha", ",", "and", "sort", "result", "in", "alphabetic", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, 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, 2, [ 0, [ 0, 10, false ], null ], "\"Anonymous Donor Hall\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "List", "name", "of", "all", "amenities", "which", "Anonymous", "Donor", "Hall", "has", ",", "and", "sort", "the", "results", "in", "alphabetic", "order", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "amenity" ], [ "which" ], [ "anonymous" ], [ "donor" ], [ "hall" ], [ "ha" ], [ "," ], [ "and" ], [ "sort" ], [ "result" ], [ "in" ], [ "alphabetic" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "amenity", "NN" ], [ "which", "WDT" ], [ "anonymous", "JJ" ], [ "donor", "NN" ], [ "hall", "NN" ], [ "ha", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "sort", "NN" ], [ "result", "NN" ], [ "in", "IN" ], [ "alphabetic", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "Lisa", "Anonymous Donor Hall" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(14) T(2) 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(10) T(1) V(1) Order(1) A(0) C(14) T(2)" }, { "db_id": "dorm_1", "query": "SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T2.amenid = T1.amenid JOIN dorm AS T3 ON T2.dormid = T3.dormid WHERE T3.dorm_name = 'Anonymous Donor Hall' ORDER BY T1.amenity_name", "query_toks": [ "SELECT", "T1.amenity_name", "FROM", "dorm_amenity", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T2.amenid", "=", "T1.amenid", "JOIN", "dorm", "AS", "T3", "ON", "T2.dormid", "=", "T3.dormid", "WHERE", "T3.dorm_name", "=", "'Anonymous", "Donor", "Hall", "'", "ORDER", "BY", "T1.amenity_name" ], "query_toks_no_value": [ "select", "t1", ".", "amenity_name", "from", "dorm_amenity", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t2", ".", "amenid", "=", "t1", ".", "amenid", "join", "dorm", "as", "t3", "on", "t2", ".", "dormid", "=", "t3", ".", "dormid", "where", "t3", ".", "dorm_name", "=", "value", "order", "by", "t1", ".", "amenity_name" ], "question": "What are the amenities in alphabetical order that Anonymous Donor Hall has?", "question_toks": [ "what", "are", "amenity", "in", "alphabetical", "order", "that", "anonymous", "donor", "hall", "ha", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, 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, 2, [ 0, [ 0, 10, false ], null ], "\"Anonymous Donor Hall\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "amenities", "in", "alphabetical", "order", "that", "Anonymous", "Donor", "Hall", "has", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "amenity" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "that" ], [ "anonymous" ], [ "donor" ], [ "hall" ], [ "ha" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "amenity", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "that", "WDT" ], [ "anonymous", "JJ" ], [ "donor", "NN" ], [ "hall", "NN" ], [ "ha", "NN" ], [ "?", "." ] ], "values": [ "Anonymous Donor Hall" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(14) T(2) 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(10) T(1) V(0) Order(1) A(0) C(14) T(2)" }, { "db_id": "dorm_1", "query": "SELECT count(*) , sum(student_capacity) , gender FROM dorm GROUP BY gender", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "sum", "(", "student_capacity", ")", ",", "gender", "FROM", "dorm", "GROUP", "BY", "gender" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "sum", "(", "student_capacity", ")", ",", "gender", "from", "dorm", "group", "by", "gender" ], "question": "Find the number of dorms and total capacity for each gender.", "question_toks": [ "find", "number", "of", "dorm", "and", "total", "capacity", "for", "each", "gender", "." ], "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 ] ], [ 4, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "dorms", "and", "total", "capacity", "for", "each", "gender", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "dorm" ], [ "and" ], [ "total" ], [ "capacity" ], [ "for" ], [ "each" ], [ "gender" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "capacity", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "gender", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(3) C(0) T(1) A(4) C(11) T(1) A(0) C(12) T(1)" }, { "db_id": "dorm_1", "query": "SELECT count(*) , sum(student_capacity) , gender FROM dorm GROUP BY gender", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "sum", "(", "student_capacity", ")", ",", "gender", "FROM", "dorm", "GROUP", "BY", "gender" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "sum", "(", "student_capacity", ")", ",", "gender", "from", "dorm", "group", "by", "gender" ], "question": "How many dorms are there and what is the total capacity for each gender?", "question_toks": [ "how", "many", "dorm", "are", "there", "and", "what", "is", "total", "capacity", "for", "each", "gender", "?" ], "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 ] ], [ 4, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "dorms", "are", "there", "and", "what", "is", "the", "total", "capacity", "for", "each", "gender", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "dorm" ], [ "are" ], [ "there" ], [ "and" ], [ "what" ], [ "is" ], [ "total" ], [ "capacity" ], [ "for" ], [ "each" ], [ "gender" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "dorm", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "and", "CC" ], [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "capacity", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "gender", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(3) C(0) T(1) A(4) C(11) T(1) A(0) C(12) T(1)" }, { "db_id": "dorm_1", "query": "SELECT avg(age) , max(age) , sex FROM student GROUP BY sex", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "FROM", "student", "GROUP", "BY", "sex" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "from", "student", "group", "by", "sex" ], "question": "Find the average and oldest age for students with different sex.", "question_toks": [ "find", "average", "and", "oldest", "age", "for", "student", "with", "different", "sex", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ], [ 1, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "average", "and", "oldest", "age", "for", "students", "with", "different", "sex", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "and" ], [ "oldest" ], [ "age" ], [ "for" ], [ "student" ], [ "with" ], [ "different" ], [ "sex" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "and", "CC" ], [ "oldest", "JJS" ], [ "age", "NN" ], [ "for", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "different", "JJ" ], [ "sex", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(5) C(4) T(0) A(1) C(4) T(0) A(0) C(5) T(0)" }, { "db_id": "dorm_1", "query": "SELECT avg(age) , max(age) , sex FROM student GROUP BY sex", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "FROM", "student", "GROUP", "BY", "sex" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "from", "student", "group", "by", "sex" ], "question": "What is the average and oldest age for each gender of student?", "question_toks": [ "what", "is", "average", "and", "oldest", "age", "for", "each", "gender", "of", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ], [ 1, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "and", "oldest", "age", "for", "each", "gender", "of", "student", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "and" ], [ "oldest" ], [ "age" ], [ "for" ], [ "each" ], [ "gender" ], [ "of" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "and", "CC" ], [ "oldest", "JJS" ], [ "age", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "gender", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(5) C(4) T(0) A(1) C(4) T(0) A(0) C(5) T(0)" }, { "db_id": "dorm_1", "query": "SELECT count(*) , major FROM student GROUP BY major", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "major", "FROM", "student", "GROUP", "BY", "major" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "major", "from", "student", "group", "by", "major" ], "question": "Find the number of students in each major.", "question_toks": [ "find", "number", "of", "student", "in", "each", "major", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "students", "in", "each", "major", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "student" ], [ "in" ], [ "each" ], [ "major" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "major", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(0) A(0) C(6) T(0)" }, { "db_id": "dorm_1", "query": "SELECT count(*) , major FROM student GROUP BY major", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "major", "FROM", "student", "GROUP", "BY", "major" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "major", "from", "student", "group", "by", "major" ], "question": "How many students are there in each major?", "question_toks": [ "how", "many", "student", "are", "there", "in", "each", "major", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "students", "are", "there", "in", "each", "major", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "there" ], [ "in" ], [ "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" ], [ "in", "IN" ], [ "each", "DT" ], [ "major", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(0) A(0) C(6) T(0)" }, { "db_id": "dorm_1", "query": "SELECT count(*) , avg(age) , city_code FROM student GROUP BY city_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "avg", "(", "age", ")", ",", "city_code", "FROM", "student", "GROUP", "BY", "city_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "avg", "(", "age", ")", ",", "city_code", "from", "student", "group", "by", "city_code" ], "question": "Find the number and average age of students living in each city.", "question_toks": [ "find", "number", "and", "average", "age", "of", "student", "living", "in", "each", "city", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 5, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "and", "average", "age", "of", "students", "living", "in", "each", "city", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "and" ], [ "average" ], [ "age" ], [ "of" ], [ "student" ], [ "living" ], [ "in" ], [ "each" ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "living", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(3) C(0) T(0) A(5) C(4) T(0) A(0) C(8) T(0)" }, { "db_id": "dorm_1", "query": "SELECT count(*) , avg(age) , city_code FROM student GROUP BY city_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "avg", "(", "age", ")", ",", "city_code", "FROM", "student", "GROUP", "BY", "city_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "avg", "(", "age", ")", ",", "city_code", "from", "student", "group", "by", "city_code" ], "question": "How many students live in each city and what are their average ages?", "question_toks": [ "how", "many", "student", "live", "in", "each", "city", "and", "what", "are", "their", "average", "age", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 5, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "students", "live", "in", "each", "city", "and", "what", "are", "their", "average", "ages", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "live" ], [ "in" ], [ "each" ], [ "city" ], [ "and" ], [ "what" ], [ "are" ], [ "their" ], [ "average" ], [ "age" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "live", "VBP" ], [ "in", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ "and", "CC" ], [ "what", "WDT" ], [ "are", "VBP" ], [ "their", "PRP$" ], [ "average", "JJ" ], [ "age", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(3) C(0) T(0) A(5) C(4) T(0) A(0) C(8) T(0)" }, { "db_id": "dorm_1", "query": "SELECT count(*) , avg(age) , city_code FROM student WHERE sex = 'M' GROUP BY city_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "avg", "(", "age", ")", ",", "city_code", "FROM", "student", "WHERE", "sex", "=", "'M", "'", "GROUP", "BY", "city_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "avg", "(", "age", ")", ",", "city_code", "from", "student", "where", "sex", "=", "value", "group", "by", "city_code" ], "question": "Find the average age and number of male students (with sex M) from each city.", "question_toks": [ "find", "average", "age", "and", "number", "of", "male", "student", "(", "with", "sex", "m", ")", "from", "each", "city", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 5, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"M\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "average", "age", "and", "number", "of", "male", "students", "(", "with", "sex", "M", ")", "from", "each", "city", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "age" ], [ "and" ], [ "number" ], [ "of" ], [ "male" ], [ "student" ], [ "(" ], [ "with" ], [ "sex" ], [ "m" ], [ ")" ], [ "from" ], [ "each" ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "male", "JJ" ], [ "student", "NN" ], [ "(", "(" ], [ "with", "IN" ], [ "sex", "NN" ], [ "m", "NN" ], [ ")", ")" ], [ "from", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ ".", "." ] ], "values": [ "M" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(3) C(0) T(0) A(5) C(4) T(0) A(0) C(8) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "dorm_1", "query": "SELECT count(*) , avg(age) , city_code FROM student WHERE sex = 'M' GROUP BY city_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "avg", "(", "age", ")", ",", "city_code", "FROM", "student", "WHERE", "sex", "=", "'M", "'", "GROUP", "BY", "city_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "avg", "(", "age", ")", ",", "city_code", "from", "student", "where", "sex", "=", "value", "group", "by", "city_code" ], "question": "What is the average age and how many male students are there in each city?", "question_toks": [ "what", "is", "average", "age", "and", "how", "many", "male", "student", "are", "there", "in", "each", "city", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 5, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"M\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "age", "and", "how", "many", "male", "students", "are", "there", "in", "each", "city", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "and" ], [ "how" ], [ "many" ], [ "male" ], [ "student" ], [ "are" ], [ "there" ], [ "in" ], [ "each" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "male", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "M" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(3) C(0) T(0) A(5) C(4) T(0) A(0) C(8) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "dorm_1", "query": "SELECT count(*) , city_code FROM student GROUP BY city_code HAVING count(*) > 1", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "city_code", "FROM", "student", "GROUP", "BY", "city_code", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "city_code", "from", "student", "group", "by", "city_code", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the number of students for the cities where have more than one student.", "question_toks": [ "find", "number", "of", "student", "for", "city", "where", "have", "more", "than", "one", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "students", "for", "the", "cities", "where", "have", "more", "than", "one", "student", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "student" ], [ "for" ], [ "city" ], [ "where" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "for", "IN" ], [ "city", "NN" ], [ "where", "WRB" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(0) A(0) C(8) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "dorm_1", "query": "SELECT count(*) , city_code FROM student GROUP BY city_code HAVING count(*) > 1", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "city_code", "FROM", "student", "GROUP", "BY", "city_code", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "city_code", "from", "student", "group", "by", "city_code", "having", "count", "(", "*", ")", ">", "value" ], "question": "How many students are from each city, and which cities have more than one cities?", "question_toks": [ "how", "many", "student", "are", "from", "each", "city", ",", "and", "which", "city", "have", "more", "than", "one", "city", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "students", "are", "from", "each", "city", ",", "and", "which", "cities", "have", "more", "than", "one", "cities", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "from" ], [ "each" ], [ "city" ], [ "," ], [ "and" ], [ "which" ], [ "city" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "from", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "which", "WDT" ], [ "city", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(0) A(0) C(8) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "dorm_1", "query": "SELECT fname , lname FROM student WHERE major != (SELECT major FROM student GROUP BY major ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "fname", ",", "lname", "FROM", "student", "WHERE", "major", "!", "=", "(", "SELECT", "major", "FROM", "student", "GROUP", "BY", "major", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "student", "where", "major", "!", "=", "(", "select", "major", "from", "student", "group", "by", "major", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "Find the first and last name of students who are not in the largest major.", "question_toks": [ "find", "first", "and", "last", "name", "of", "student", "who", "are", "not", "in", "largest", "major", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 6, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "first", "and", "last", "name", "of", "students", "who", "are", "not", "in", "the", "largest", "major", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "not" ], [ "in" ], [ "largest" ], [ "major" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "in", "IN" ], [ "largest", "JJS" ], [ "major", "JJ" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(14) A(0) C(6) T(0) Root(2) Sel(0) N(0) A(0) C(6) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "dorm_1", "query": "SELECT fname , lname FROM student WHERE major != (SELECT major FROM student GROUP BY major ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "fname", ",", "lname", "FROM", "student", "WHERE", "major", "!", "=", "(", "SELECT", "major", "FROM", "student", "GROUP", "BY", "major", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "student", "where", "major", "!", "=", "(", "select", "major", "from", "student", "group", "by", "major", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "What is the first and last name of the students who are not in the largest major?", "question_toks": [ "what", "is", "first", "and", "last", "name", "of", "student", "who", "are", "not", "in", "largest", "major", "?" ], "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 ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 6, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "first", "and", "last", "name", "of", "the", "students", "who", "are", "not", "in", "the", "largest", "major", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "not" ], [ "in" ], [ "largest" ], [ "major" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "in", "IN" ], [ "largest", "JJS" ], [ "major", "JJ" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(14) A(0) C(6) T(0) Root(2) Sel(0) N(0) A(0) C(6) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "dorm_1", "query": "SELECT count(*) , sex FROM student WHERE age > (SELECT avg(age) FROM student) GROUP BY sex", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "sex", "FROM", "student", "WHERE", "age", ">", "(", "SELECT", "avg", "(", "age", ")", "FROM", "student", ")", "GROUP", "BY", "sex" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "sex", "from", "student", "where", "age", ">", "(", "select", "avg", "(", "age", ")", "from", "student", ")", "group", "by", "sex" ], "question": "Find the number of students whose age is older than the average age for each gender.", "question_toks": [ "find", "number", "of", "student", "whose", "age", "is", "older", "than", "average", "age", "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, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "students", "whose", "age", "is", "older", "than", "the", "average", "age", "for", "each", "gender", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "student" ], [ "whose" ], [ "age" ], [ "is" ], [ "older" ], [ "than" ], [ "average" ], [ "age" ], [ "for" ], [ "each" ], [ "gender" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "age", "NN" ], [ "is", "VBZ" ], [ "older", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "age", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "gender", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(0) A(0) C(5) T(0) Filter(13) A(0) C(4) T(0) Root(5) Sel(0) N(0) A(5) C(4) T(0)" }, { "db_id": "dorm_1", "query": "SELECT count(*) , sex FROM student WHERE age > (SELECT avg(age) FROM student) GROUP BY sex", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "sex", "FROM", "student", "WHERE", "age", ">", "(", "SELECT", "avg", "(", "age", ")", "FROM", "student", ")", "GROUP", "BY", "sex" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "sex", "from", "student", "where", "age", ">", "(", "select", "avg", "(", "age", ")", "from", "student", ")", "group", "by", "sex" ], "question": "How many students are older than average for each gender?", "question_toks": [ "how", "many", "student", "are", "older", "than", "average", "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, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "students", "are", "older", "than", "average", "for", "each", "gender", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "older" ], [ "than" ], [ "average" ], [ "for" ], [ "each" ], [ "gender" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "older", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "gender", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(0) A(0) C(5) T(0) Filter(13) A(0) C(4) T(0) Root(5) Sel(0) N(0) A(5) C(4) T(0)" }, { "db_id": "dorm_1", "query": "SELECT avg(T1.age) , T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name", "query_toks": [ "SELECT", "avg", "(", "T1.age", ")", ",", "T3.dorm_name", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3.dormid", "=", "T2.dormid", "GROUP", "BY", "T3.dorm_name" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "age", ")", ",", "t3", ".", "dorm_name", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "group", "by", "t3", ".", "dorm_name" ], "question": "Find the average age of students living in each dorm and the name of dorm.", "question_toks": [ "find", "average", "age", "of", "student", "living", "in", "each", "dorm", "and", "name", "of", "dorm", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "average", "age", "of", "students", "living", "in", "each", "dorm", "and", "the", "name", "of", "dorm", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "age" ], [ "of" ], [ "student" ], [ "living" ], [ "in" ], [ "each" ], [ "dorm" ], [ "and" ], [ "name" ], [ "of" ], [ "dorm" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "living", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "dorm", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(4) T(0) A(0) C(10) T(1) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(4)" }, { "db_id": "dorm_1", "query": "SELECT avg(T1.age) , T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name", "query_toks": [ "SELECT", "avg", "(", "T1.age", ")", ",", "T3.dorm_name", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3.dormid", "=", "T2.dormid", "GROUP", "BY", "T3.dorm_name" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "age", ")", ",", "t3", ".", "dorm_name", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "group", "by", "t3", ".", "dorm_name" ], "question": "What is the average age for each dorm and what are the names of each dorm?", "question_toks": [ "what", "is", "average", "age", "for", "each", "dorm", "and", "what", "are", "name", "of", "each", "dorm", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "age", "for", "each", "dorm", "and", "what", "are", "the", "names", "of", "each", "dorm", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "for" ], [ "each" ], [ "dorm" ], [ "and" ], [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "each" ], [ "dorm" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "dorm", "NN" ], [ "and", "CC" ], [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "dorm", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(4) T(0) A(0) C(10) T(1) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(4)" }, { "db_id": "dorm_1", "query": "SELECT count(*) , T1.dormid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid WHERE T1.student_capacity > 100 GROUP BY T1.dormid", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.dormid", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "WHERE", "T1.student_capacity", ">", "100", "GROUP", "BY", "T1.dormid" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "dormid", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "where", "t1", ".", "student_capacity", ">", "value", "group", "by", "t1", ".", "dormid" ], "question": "Find the number of amenities for each of the dorms that can accommodate more than 100 students.", "question_toks": [ "find", "number", "of", "amenity", "for", "each", "of", "dorm", "that", "can", "accommodate", "more", "than", "100", "student", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 100.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "amenities", "for", "each", "of", "the", "dorms", "that", "can", "accommodate", "more", "than", "100", "students", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "amenity" ], [ "for" ], [ "each" ], [ "of" ], [ "dorm" ], [ "that" ], [ "can" ], [ "accommodate" ], [ "more" ], [ "than" ], [ "100" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "amenity", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "accommodate", "VB" ], [ "more", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(3) A(0) C(9) T(1) Filter(5) A(0) C(11) T(1) V(0)" }, { "db_id": "dorm_1", "query": "SELECT count(*) , T1.dormid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid WHERE T1.student_capacity > 100 GROUP BY T1.dormid", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.dormid", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "WHERE", "T1.student_capacity", ">", "100", "GROUP", "BY", "T1.dormid" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "dormid", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "where", "t1", ".", "student_capacity", ">", "value", "group", "by", "t1", ".", "dormid" ], "question": "For each dorm, how many amenities does it have?", "question_toks": [ "for", "each", "dorm", ",", "how", "many", "amenity", "doe", "it", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 100.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "For", "each", "dorm", ",", "how", "many", "amenities", "does", "it", "have", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "dorm" ], [ "," ], [ "how" ], [ "many" ], [ "amenity" ], [ "doe" ], [ "it" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "dorm", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "amenity", "NN" ], [ "doe", "VBP" ], [ "it", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(3) A(0) C(9) T(1) Filter(5) A(0) C(11) T(1) V(0)" }, { "db_id": "dorm_1", "query": "SELECT count(*) , T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T1.age > 20 GROUP BY T3.dorm_name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T3.dorm_name", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3.dormid", "=", "T2.dormid", "WHERE", "T1.age", ">", "20", "GROUP", "BY", "T3.dorm_name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t3", ".", "dorm_name", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t1", ".", "age", ">", "value", "group", "by", "t3", ".", "dorm_name" ], "question": "Find the number of students who is older than 20 in each dorm.", "question_toks": [ "find", "number", "of", "student", "who", "is", "older", "than", "20", "in", "each", "dorm", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 20.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "students", "who", "is", "older", "than", "20", "in", "each", "dorm", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "student" ], [ "who" ], [ "is" ], [ "older" ], [ "than" ], [ "20" ], [ "in" ], [ "each" ], [ "dorm" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "older", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ "in", "IN" ], [ "each", "DT" ], [ "dorm", "NN" ], [ ".", "." ] ], "values": [ "20" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(4) A(0) C(10) T(1) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "dorm_1", "query": "SELECT count(*) , T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T1.age > 20 GROUP BY T3.dorm_name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T3.dorm_name", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3.dormid", "=", "T2.dormid", "WHERE", "T1.age", ">", "20", "GROUP", "BY", "T3.dorm_name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t3", ".", "dorm_name", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t1", ".", "age", ">", "value", "group", "by", "t3", ".", "dorm_name" ], "question": "How many students are older than 20 in each dorm?", "question_toks": [ "how", "many", "student", "are", "older", "than", "20", "in", "each", "dorm", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 20.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "students", "are", "older", "than", "20", "in", "each", "dorm", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "older" ], [ "than" ], [ "20" ], [ "in" ], [ "each" ], [ "dorm" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "older", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ "in", "IN" ], [ "each", "DT" ], [ "dorm", "NN" ], [ "?", "." ] ], "values": [ "20" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(4) A(0) C(10) T(1) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "dorm_1", "query": "SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall'", "query_toks": [ "SELECT", "T1.fname", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3.dormid", "=", "T2.dormid", "WHERE", "T3.dorm_name", "=", "'Smith", "Hall", "'" ], "query_toks_no_value": [ "select", "t1", ".", "fname", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t3", ".", "dorm_name", "=", "value" ], "question": "Find the first name of students who are living in the Smith Hall.", "question_toks": [ "find", "first", "name", "of", "student", "who", "are", "living", "in", "smith", "hall", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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, 10, false ], null ], "\"Smith Hall\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "first", "name", "of", "students", "who", "are", "living", "in", "the", "Smith", "Hall", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "living" ], [ "in" ], [ "smith" ], [ "hall" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "living", "VBG" ], [ "in", "IN" ], [ "smith", "JJ" ], [ "hall", "NN" ], [ ".", "." ] ], "values": [ "Smith Hall", "Smith", "1" ], "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(1) T(4) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "dorm_1", "query": "SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall'", "query_toks": [ "SELECT", "T1.fname", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3.dormid", "=", "T2.dormid", "WHERE", "T3.dorm_name", "=", "'Smith", "Hall", "'" ], "query_toks_no_value": [ "select", "t1", ".", "fname", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t3", ".", "dorm_name", "=", "value" ], "question": "What are the first names of all students in Smith Hall?", "question_toks": [ "what", "are", "first", "name", "of", "all", "student", "in", "smith", "hall", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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, 10, false ], null ], "\"Smith Hall\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "all", "students", "in", "Smith", "Hall", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "of" ], [ "all" ], [ "student" ], [ "in" ], [ "smith" ], [ "hall" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "in", "IN" ], [ "smith", "NN" ], [ "hall", "NN" ], [ "?", "." ] ], "values": [ "Smith Hall", "Smith", "1" ], "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(1) T(4) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "dorm_1", "query": "SELECT avg(T1.age) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.student_capacity = (SELECT max(student_capacity) FROM dorm)", "query_toks": [ "SELECT", "avg", "(", "T1.age", ")", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3.dormid", "=", "T2.dormid", "WHERE", "T3.student_capacity", "=", "(", "SELECT", "max", "(", "student_capacity", ")", "FROM", "dorm", ")" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "age", ")", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t3", ".", "student_capacity", "=", "(", "select", "max", "(", "student_capacity", ")", "from", "dorm", ")" ], "question": "Find the average age of students who are living in the dorm with the largest capacity.", "question_toks": [ "find", "average", "age", "of", "student", "who", "are", "living", "in", "dorm", "with", "largest", "capacity", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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, 11, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "average", "age", "of", "students", "who", "are", "living", "in", "the", "dorm", "with", "the", "largest", "capacity", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "age" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "living" ], [ "in" ], [ "dorm" ], [ "with" ], [ "largest" ], [ "capacity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "living", "VBG" ], [ "in", "IN" ], [ "dorm", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "capacity", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(4) Filter(11) A(0) C(11) T(1) Root(5) Sel(0) N(0) A(1) C(11) T(1)" }, { "db_id": "dorm_1", "query": "SELECT avg(T1.age) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.student_capacity = (SELECT max(student_capacity) FROM dorm)", "query_toks": [ "SELECT", "avg", "(", "T1.age", ")", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3.dormid", "=", "T2.dormid", "WHERE", "T3.student_capacity", "=", "(", "SELECT", "max", "(", "student_capacity", ")", "FROM", "dorm", ")" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "age", ")", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t3", ".", "student_capacity", "=", "(", "select", "max", "(", "student_capacity", ")", "from", "dorm", ")" ], "question": "What is the average age of students who are living in the dorm with the largest capacity?", "question_toks": [ "what", "is", "average", "age", "of", "student", "who", "are", "living", "in", "dorm", "with", "largest", "capacity", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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, 11, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "age", "of", "students", "who", "are", "living", "in", "the", "dorm", "with", "the", "largest", "capacity", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "living" ], [ "in" ], [ "dorm" ], [ "with" ], [ "largest" ], [ "capacity" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "living", "VBG" ], [ "in", "IN" ], [ "dorm", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "capacity", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(4) Filter(11) A(0) C(11) T(1) Root(5) Sel(0) N(0) A(1) C(11) T(1)" }, { "db_id": "dorm_1", "query": "SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.gender = 'M'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3.dormid", "=", "T2.dormid", "WHERE", "T3.gender", "=", "'M", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t3", ".", "gender", "=", "value" ], "question": "Find the total number of students living in the male dorm (with gender M).", "question_toks": [ "find", "total", "number", "of", "student", "living", "in", "male", "dorm", "(", "with", "gender", "m", ")", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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, 12, false ], null ], "\"M\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "total", "number", "of", "students", "living", "in", "the", "male", "dorm", "(", "with", "gender", "M", ")", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "number" ], [ "of" ], [ "student" ], [ "living" ], [ "in" ], [ "male" ], [ "dorm" ], [ "(" ], [ "with" ], [ "gender" ], [ "m" ], [ ")" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "living", "NN" ], [ "in", "IN" ], [ "male", "JJ" ], [ "dorm", "NN" ], [ "(", "(" ], [ "with", "IN" ], [ "gender", "NN" ], [ "m", "NN" ], [ ")", ")" ], [ ".", "." ] ], "values": [ "M" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) 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(2) A(0) C(12) T(1) V(0)" }, { "db_id": "dorm_1", "query": "SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.gender = 'M'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3.dormid", "=", "T2.dormid", "WHERE", "T3.gender", "=", "'M", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t3", ".", "gender", "=", "value" ], "question": "What are the total number of students who are living in a male dorm?", "question_toks": [ "what", "are", "total", "number", "of", "student", "who", "are", "living", "in", "a", "male", "dorm", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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, 12, false ], null ], "\"M\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "total", "number", "of", "students", "who", "are", "living", "in", "a", "male", "dorm", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "total" ], [ "number" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "living" ], [ "in" ], [ "a" ], [ "male" ], [ "dorm" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "living", "VBG" ], [ "in", "IN" ], [ "a", "DT" ], [ "male", "NN" ], [ "dorm", "NN" ], [ "?", "." ] ], "values": [ "M" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) 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(2) A(0) C(12) T(1) V(0)" }, { "db_id": "dorm_1", "query": "SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' AND T1.sex = 'F'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3.dormid", "=", "T2.dormid", "WHERE", "T3.dorm_name", "=", "'Smith", "Hall", "'", "AND", "T1.sex", "=", "'F", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t3", ".", "dorm_name", "=", "value", "and", "t1", ".", "sex", "=", "value" ], "question": "Find the number of female students (with F sex) living in Smith Hall", "question_toks": [ "find", "number", "of", "female", "student", "(", "with", "f", "sex", ")", "living", "in", "smith", "hall" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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 ], "\"Smith Hall\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "female", "students", "(", "with", "F", "sex", ")", "living", "in", "Smith", "Hall" ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "female" ], [ "student" ], [ "(" ], [ "with" ], [ "f" ], [ "sex" ], [ ")" ], [ "living" ], [ "in" ], [ "smith" ], [ "hall" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "female", "JJ" ], [ "student", "NN" ], [ "(", "(" ], [ "with", "IN" ], [ "f", "NN" ], [ "sex", "NN" ], [ ")", ")" ], [ "living", "NN" ], [ "in", "IN" ], [ "smith", "JJ" ], [ "hall", "NN" ] ], "values": [ "Smith", "Smith Hall", "F" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(0) Filter(2) A(0) C(10) T(1) V(1) Filter(2) A(0) C(5) T(0) V(2)" }, { "db_id": "dorm_1", "query": "SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' AND T1.sex = 'F'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3.dormid", "=", "T2.dormid", "WHERE", "T3.dorm_name", "=", "'Smith", "Hall", "'", "AND", "T1.sex", "=", "'F", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t3", ".", "dorm_name", "=", "value", "and", "t1", ".", "sex", "=", "value" ], "question": "How many female students live in Smith Hall?", "question_toks": [ "how", "many", "female", "student", "live", "in", "smith", "hall", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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 ], "\"Smith Hall\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "female", "students", "live", "in", "Smith", "Hall", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "female" ], [ "student" ], [ "live" ], [ "in" ], [ "smith" ], [ "hall" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "female", "JJ" ], [ "student", "NN" ], [ "live", "VBP" ], [ "in", "IN" ], [ "smith", "NN" ], [ "hall", "NN" ], [ "?", "." ] ], "values": [ "Smith", "Smith Hall", "F" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(0) Filter(2) A(0) C(10) T(1) V(1) Filter(2) A(0) C(5) T(0) V(2)" }, { "db_id": "dorm_1", "query": "SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall'", "query_toks": [ "SELECT", "T3.amenity_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T1.dorm_name", "=", "'Smith", "Hall", "'" ], "query_toks_no_value": [ "select", "t3", ".", "amenity_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t1", ".", "dorm_name", "=", "value" ], "question": "Find the name of amenities Smith Hall dorm have.", "question_toks": [ "find", "name", "of", "amenity", "smith", "hall", "dorm", "have", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ], "\"Smith Hall\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "amenities", "Smith", "Hall", "dorm", "have", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "amenity" ], [ "smith" ], [ "hall" ], [ "dorm" ], [ "have" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "amenity", "NN" ], [ "smith", "VBP" ], [ "hall", "NN" ], [ "dorm", "NN" ], [ "have", "VBP" ], [ ".", "." ] ], "values": [ "Smith", "Smith Hall" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(3) Filter(2) A(0) C(10) T(1) V(1)" }, { "db_id": "dorm_1", "query": "SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall'", "query_toks": [ "SELECT", "T3.amenity_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T1.dorm_name", "=", "'Smith", "Hall", "'" ], "query_toks_no_value": [ "select", "t3", ".", "amenity_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t1", ".", "dorm_name", "=", "value" ], "question": "What are the names of the amenities that Smith Hall has?", "question_toks": [ "what", "are", "name", "of", "amenity", "that", "smith", "hall", "ha", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ], "\"Smith Hall\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "amenities", "that", "Smith", "Hall", "has", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "amenity" ], [ "that" ], [ "smith" ], [ "hall" ], [ "ha" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "amenity", "NN" ], [ "that", "IN" ], [ "smith", "VBZ" ], [ "hall", "DT" ], [ "ha", "NN" ], [ "?", "." ] ], "values": [ "Smith", "Smith Hall" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(3) Filter(2) A(0) C(10) T(1) V(1)" }, { "db_id": "dorm_1", "query": "SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall' ORDER BY T3.amenity_name", "query_toks": [ "SELECT", "T3.amenity_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T1.dorm_name", "=", "'Smith", "Hall", "'", "ORDER", "BY", "T3.amenity_name" ], "query_toks_no_value": [ "select", "t3", ".", "amenity_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t1", ".", "dorm_name", "=", "value", "order", "by", "t3", ".", "amenity_name" ], "question": "Find the name of amenities Smith Hall dorm have. ordered the results by amenity names.", "question_toks": [ "find", "name", "of", "amenity", "smith", "hall", "dorm", "have", ".", "ordered", "result", "by", "amenity", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ], "\"Smith Hall\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "amenities", "Smith", "Hall", "dorm", "have", ".", "ordered", "the", "results", "by", "amenity", "names", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "amenity" ], [ "smith" ], [ "hall" ], [ "dorm" ], [ "have" ], [ "." ], [ "ordered" ], [ "result" ], [ "by" ], [ "amenity", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "amenity", "NN" ], [ "smith", "VBP" ], [ "hall", "NN" ], [ "dorm", "NN" ], [ "have", "VBP" ], [ ".", "." ], [ "ordered", "VBN" ], [ "result", "NN" ], [ "by", "IN" ], [ "amenity", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Smith", "Smith Hall" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(14) T(2) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(3) Filter(2) A(0) C(10) T(1) V(1) Order(1) A(0) C(14) T(2)" }, { "db_id": "dorm_1", "query": "SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall' ORDER BY T3.amenity_name", "query_toks": [ "SELECT", "T3.amenity_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T1.dorm_name", "=", "'Smith", "Hall", "'", "ORDER", "BY", "T3.amenity_name" ], "query_toks_no_value": [ "select", "t3", ".", "amenity_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t1", ".", "dorm_name", "=", "value", "order", "by", "t3", ".", "amenity_name" ], "question": "What amenities does Smith Hall have in alphabetical order?", "question_toks": [ "what", "amenity", "doe", "smith", "hall", "have", "in", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ], "\"Smith Hall\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "amenities", "does", "Smith", "Hall", "have", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "amenity" ], [ "doe" ], [ "smith" ], [ "hall" ], [ "have" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "amenity", "NN" ], [ "doe", "NN" ], [ "smith", "NN" ], [ "hall", "NN" ], [ "have", "VBP" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [ "Smith", "Smith Hall" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(14) T(2) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(3) Filter(2) A(0) C(10) T(1) V(1) Order(1) A(0) C(14) T(2)" }, { "db_id": "dorm_1", "query": "SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid = T2.amenid GROUP BY T2.amenid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.amenity_name", "FROM", "dorm_amenity", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.amenid", "=", "T2.amenid", "GROUP", "BY", "T2.amenid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "amenity_name", "from", "dorm_amenity", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "amenid", "=", "t2", ".", "amenid", "group", "by", "t2", ".", "amenid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name of amenity that is most common in all dorms.", "question_toks": [ "find", "name", "of", "amenity", "that", "is", "most", "common", "in", "all", "dorm", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, 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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "amenity", "that", "is", "most", "common", "in", "all", "dorms", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "amenity" ], [ "that" ], [ "is" ], [ "most" ], [ "common" ], [ "in" ], [ "all" ], [ "dorm" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "amenity", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "in", "IN" ], [ "all", "DT" ], [ "dorm", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(14) T(2) Sup(0) A(3) C(0) T(3) Filter(18) A(0) C(13) T(2) Root(5) Sel(0) N(0) A(0) C(13) T(3)" }, { "db_id": "dorm_1", "query": "SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid = T2.amenid GROUP BY T2.amenid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.amenity_name", "FROM", "dorm_amenity", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.amenid", "=", "T2.amenid", "GROUP", "BY", "T2.amenid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "amenity_name", "from", "dorm_amenity", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "amenid", "=", "t2", ".", "amenid", "group", "by", "t2", ".", "amenid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most common amenity in the dorms?", "question_toks": [ "what", "is", "most", "common", "amenity", "in", "dorm", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, 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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "most", "common", "amenity", "in", "the", "dorms", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "common" ], [ "amenity" ], [ "in" ], [ "dorm" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "amenity", "NN" ], [ "in", "IN" ], [ "dorm", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(14) T(2) Sup(0) A(3) C(0) T(3) Filter(18) A(0) C(13) T(2) Root(5) Sel(0) N(0) A(0) C(13) T(3)" }, { "db_id": "dorm_1", "query": "SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T2.dormid FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid = T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid = T5.amenid GROUP BY T3.dormid ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "T1.fname", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T2.dormid", "IN", "(", "SELECT", "T2.dormid", "FROM", "dorm", "AS", "T3", "JOIN", "has_amenity", "AS", "T4", "ON", "T3.dormid", "=", "T4.dormid", "JOIN", "dorm_amenity", "AS", "T5", "ON", "T4.amenid", "=", "T5.amenid", "GROUP", "BY", "T3.dormid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "t1", ".", "fname", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "dormid", "in", "(", "select", "t2", ".", "dormid", "from", "dorm", "as", "t3", "join", "has_amenity", "as", "t4", "on", "t3", ".", "dormid", "=", "t4", ".", "dormid", "join", "dorm_amenity", "as", "t5", "on", "t4", ".", "amenid", "=", "t5", ".", "amenid", "group", "by", "t3", ".", "dormid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "Find the first name of students who are living in the dorm that has most number of amenities.", "question_toks": [ "find", "first", "name", "of", "student", "who", "are", "living", "in", "dorm", "that", "ha", "most", "number", "of", "amenity", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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, 8, [ 0, [ 0, 15, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "first", "name", "of", "students", "who", "are", "living", "in", "the", "dorm", "that", "has", "most", "number", "of", "amenities", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "living" ], [ "in" ], [ "dorm" ], [ "that" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "amenity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "living", "VBG" ], [ "in", "IN" ], [ "dorm", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "amenity", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(18) A(0) C(9) T(4) Root(0) Sel(0) N(0) A(0) C(9) T(4) Sup(0) A(3) C(0) T(1) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(3) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(1)" }, { "db_id": "dorm_1", "query": "SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T2.dormid FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid = T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid = T5.amenid GROUP BY T3.dormid ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "T1.fname", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T2.dormid", "IN", "(", "SELECT", "T2.dormid", "FROM", "dorm", "AS", "T3", "JOIN", "has_amenity", "AS", "T4", "ON", "T3.dormid", "=", "T4.dormid", "JOIN", "dorm_amenity", "AS", "T5", "ON", "T4.amenid", "=", "T5.amenid", "GROUP", "BY", "T3.dormid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "t1", ".", "fname", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "dormid", "in", "(", "select", "t2", ".", "dormid", "from", "dorm", "as", "t3", "join", "has_amenity", "as", "t4", "on", "t3", ".", "dormid", "=", "t4", ".", "dormid", "join", "dorm_amenity", "as", "t5", "on", "t4", ".", "amenid", "=", "t5", ".", "amenid", "group", "by", "t3", ".", "dormid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "What are the first names of all students who live in the dorm with the most amenities?", "question_toks": [ "what", "are", "first", "name", "of", "all", "student", "who", "live", "in", "dorm", "with", "most", "amenity", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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, 8, [ 0, [ 0, 15, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "all", "students", "who", "live", "in", "the", "dorm", "with", "the", "most", "amenities", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "live" ], [ "in" ], [ "dorm" ], [ "with" ], [ "most" ], [ "amenity" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "live", "VBP" ], [ "in", "IN" ], [ "dorm", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "amenity", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(18) A(0) C(9) T(4) Root(0) Sel(0) N(0) A(0) C(9) T(4) Sup(0) A(3) C(0) T(1) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(3) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(1)" }, { "db_id": "dorm_1", "query": "SELECT T1.dorm_name , T1.student_capacity FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid GROUP BY T2.dormid ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "T1.dorm_name", ",", "T1.student_capacity", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "GROUP", "BY", "T2.dormid", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "dorm_name", ",", "t1", ".", "student_capacity", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "group", "by", "t2", ".", "dormid", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Find the name and capacity of the dorm with least number of amenities.", "question_toks": [ "find", "name", "and", "capacity", "of", "dorm", "with", "least", "number", "of", "amenity", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "capacity", "of", "the", "dorm", "with", "least", "number", "of", "amenities", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "capacity" ], [ "of" ], [ "dorm" ], [ "with" ], [ "least" ], [ "number" ], [ "of" ], [ "amenity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "capacity", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "with", "IN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "amenity", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(10) T(1) A(0) C(11) T(1) Sup(1) A(3) C(0) T(3) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(3)" }, { "db_id": "dorm_1", "query": "SELECT T1.dorm_name , T1.student_capacity FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid GROUP BY T2.dormid ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "T1.dorm_name", ",", "T1.student_capacity", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "GROUP", "BY", "T2.dormid", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "dorm_name", ",", "t1", ".", "student_capacity", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "group", "by", "t2", ".", "dormid", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "What is the name and capacity of the dorm with the fewest amount of amenities?", "question_toks": [ "what", "is", "name", "and", "capacity", "of", "dorm", "with", "fewest", "amount", "of", "amenity", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "capacity", "of", "the", "dorm", "with", "the", "fewest", "amount", "of", "amenities", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "capacity" ], [ "of" ], [ "dorm" ], [ "with" ], [ "fewest" ], [ "amount" ], [ "of" ], [ "amenity" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "capacity", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "with", "IN" ], [ "fewest", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "amenity", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(10) T(1) A(0) C(11) T(1) Sup(1) A(3) C(0) T(3) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(3)" }, { "db_id": "dorm_1", "query": "SELECT dorm_name FROM dorm EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge'", "query_toks": [ "SELECT", "dorm_name", "FROM", "dorm", "EXCEPT", "SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'TV", "Lounge", "'" ], "query_toks_no_value": [ "select", "dorm_name", "from", "dorm", "except", "select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value" ], "question": "Find the name of dorms that do not have amenity TV Lounge.", "question_toks": [ "find", "name", "of", "dorm", "that", "do", "not", "have", "amenity", "tv", "lounge", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 9, 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, 14, false ], null ], "\"TV Lounge\"", 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": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "dorms", "that", "do", "not", "have", "amenity", "TV", "Lounge", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "dorm" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "amenity" ], [ "tv" ], [ "lounge" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "amenity", "NN" ], [ "tv", "NN" ], [ "lounge", "NN" ], [ ".", "." ] ], "values": [ "TV Lounge" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(10) T(1) 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(9) T(3) Filter(2) A(0) C(14) T(2) V(0)" }, { "db_id": "dorm_1", "query": "SELECT dorm_name FROM dorm EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge'", "query_toks": [ "SELECT", "dorm_name", "FROM", "dorm", "EXCEPT", "SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'TV", "Lounge", "'" ], "query_toks_no_value": [ "select", "dorm_name", "from", "dorm", "except", "select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value" ], "question": "What are the names of the dorm that does not have a TV Lounge?", "question_toks": [ "what", "are", "name", "of", "dorm", "that", "doe", "not", "have", "a", "tv", "lounge", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 9, 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, 14, false ], null ], "\"TV Lounge\"", 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": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "dorm", "that", "does", "not", "have", "a", "TV", "Lounge", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "dorm" ], [ "that" ], [ "doe" ], [ "not" ], [ "have" ], [ "a" ], [ "tv" ], [ "lounge" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "that", "WDT" ], [ "doe", "VBZ" ], [ "not", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "tv", "NN" ], [ "lounge", "NN" ], [ "?", "." ] ], "values": [ "TV Lounge" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(10) T(1) 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(9) T(3) Filter(2) A(0) C(14) T(2) V(0)" }, { "db_id": "dorm_1", "query": "SELECT T1.fname , T1.lname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')", "query_toks": [ "SELECT", "T1.fname", ",", "T1.lname", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T2.dormid", "IN", "(", "SELECT", "T3.dormid", "FROM", "has_amenity", "AS", "T3", "JOIN", "dorm_amenity", "AS", "T4", "ON", "T3.amenid", "=", "T4.amenid", "WHERE", "T4.amenity_name", "=", "'TV", "Lounge", "'", ")" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "dormid", "in", "(", "select", "t3", ".", "dormid", "from", "has_amenity", "as", "t3", "join", "dorm_amenity", "as", "t4", "on", "t3", ".", "amenid", "=", "t4", ".", "amenid", "where", "t4", ".", "amenity_name", "=", "value", ")" ], "question": "Find the first and last name of students who are living in the dorms that have amenity TV Lounge.", "question_toks": [ "find", "first", "and", "last", "name", "of", "student", "who", "are", "living", "in", "dorm", "that", "have", "amenity", "tv", "lounge", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, 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, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"TV Lounge\"", null ] ] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "first", "and", "last", "name", "of", "students", "who", "are", "living", "in", "the", "dorms", "that", "have", "amenity", "TV", "Lounge", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "living" ], [ "in" ], [ "dorm" ], [ "that" ], [ "have" ], [ "amenity" ], [ "tv" ], [ "lounge" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "living", "VBG" ], [ "in", "IN" ], [ "dorm", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "amenity", "JJ" ], [ "tv", "NN" ], [ "lounge", "NN" ], [ ".", "." ] ], "values": [ "1", "TV Lounge" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(18) A(0) C(9) T(4) Root(3) Sel(0) N(0) A(0) C(9) T(3) Filter(2) A(0) C(14) T(2) V(1)" }, { "db_id": "dorm_1", "query": "SELECT T1.fname , T1.lname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')", "query_toks": [ "SELECT", "T1.fname", ",", "T1.lname", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T2.dormid", "IN", "(", "SELECT", "T3.dormid", "FROM", "has_amenity", "AS", "T3", "JOIN", "dorm_amenity", "AS", "T4", "ON", "T3.amenid", "=", "T4.amenid", "WHERE", "T4.amenity_name", "=", "'TV", "Lounge", "'", ")" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "dormid", "in", "(", "select", "t3", ".", "dormid", "from", "has_amenity", "as", "t3", "join", "dorm_amenity", "as", "t4", "on", "t3", ".", "amenid", "=", "t4", ".", "amenid", "where", "t4", ".", "amenity_name", "=", "value", ")" ], "question": "What are the first and last names of all students who are living in a dorm with a TV Lounge?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "all", "student", "who", "are", "living", "in", "a", "dorm", "with", "a", "tv", "lounge", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, 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, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"TV Lounge\"", null ] ] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "of", "all", "students", "who", "are", "living", "in", "a", "dorm", "with", "a", "TV", "Lounge", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "are" ], [ "living" ], [ "in" ], [ "a" ], [ "dorm" ], [ "with" ], [ "a" ], [ "tv" ], [ "lounge" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "living", "VBG" ], [ "in", "IN" ], [ "a", "DT" ], [ "dorm", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "tv", "NN" ], [ "lounge", "NN" ], [ "?", "." ] ], "values": [ "1", "TV Lounge" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(18) A(0) C(9) T(4) Root(3) Sel(0) N(0) A(0) C(9) T(3) Filter(2) A(0) C(14) T(2) V(1)" }, { "db_id": "dorm_1", "query": "SELECT T1.fname , T1.age FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid NOT IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')", "query_toks": [ "SELECT", "T1.fname", ",", "T1.age", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T2.dormid", "NOT", "IN", "(", "SELECT", "T3.dormid", "FROM", "has_amenity", "AS", "T3", "JOIN", "dorm_amenity", "AS", "T4", "ON", "T3.amenid", "=", "T4.amenid", "WHERE", "T4.amenity_name", "=", "'TV", "Lounge", "'", ")" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "age", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "dormid", "not", "in", "(", "select", "t3", ".", "dormid", "from", "has_amenity", "as", "t3", "join", "dorm_amenity", "as", "t4", "on", "t3", ".", "amenid", "=", "t4", ".", "amenid", "where", "t4", ".", "amenity_name", "=", "value", ")" ], "question": "Find the first name and age of students who are living in the dorms that do not have amenity TV Lounge.", "question_toks": [ "find", "first", "name", "and", "age", "of", "student", "who", "are", "living", "in", "dorm", "that", "do", "not", "have", "amenity", "tv", "lounge", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 18, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, 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, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"TV Lounge\"", null ] ] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "first", "name", "and", "age", "of", "students", "who", "are", "living", "in", "the", "dorms", "that", "do", "not", "have", "amenity", "TV", "Lounge", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "and" ], [ "age" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "living" ], [ "in" ], [ "dorm" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "amenity" ], [ "tv" ], [ "lounge" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "living", "VBG" ], [ "in", "IN" ], [ "dorm", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "amenity", "NN" ], [ "tv", "NN" ], [ "lounge", "NN" ], [ ".", "." ] ], "values": [ "1", "TV Lounge" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0) Filter(19) A(0) C(9) T(4) Root(3) Sel(0) N(0) A(0) C(9) T(3) Filter(2) A(0) C(14) T(2) V(1)" }, { "db_id": "dorm_1", "query": "SELECT T1.fname , T1.age FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid NOT IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')", "query_toks": [ "SELECT", "T1.fname", ",", "T1.age", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T2.dormid", "NOT", "IN", "(", "SELECT", "T3.dormid", "FROM", "has_amenity", "AS", "T3", "JOIN", "dorm_amenity", "AS", "T4", "ON", "T3.amenid", "=", "T4.amenid", "WHERE", "T4.amenity_name", "=", "'TV", "Lounge", "'", ")" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "age", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "dormid", "not", "in", "(", "select", "t3", ".", "dormid", "from", "has_amenity", "as", "t3", "join", "dorm_amenity", "as", "t4", "on", "t3", ".", "amenid", "=", "t4", ".", "amenid", "where", "t4", ".", "amenity_name", "=", "value", ")" ], "question": "What is the first name and age of every student who lives in a dorm with a TV Lounge?", "question_toks": [ "what", "is", "first", "name", "and", "age", "of", "every", "student", "who", "life", "in", "a", "dorm", "with", "a", "tv", "lounge", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 18, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, 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, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"TV Lounge\"", null ] ] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "first", "name", "and", "age", "of", "every", "student", "who", "lives", "in", "a", "dorm", "with", "a", "TV", "Lounge", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first", "name" ], [ "and" ], [ "age" ], [ "of" ], [ "every" ], [ "student" ], [ "who" ], [ "life", "in" ], [ "a" ], [ "dorm" ], [ "with" ], [ "a" ], [ "tv" ], [ "lounge" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "life", "NN" ], [ "in", "IN" ], [ "a", "DT" ], [ "dorm", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "tv", "NN" ], [ "lounge", "NN" ], [ "?", "." ] ], "values": [ "1", "TV Lounge" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0) Filter(19) A(0) C(9) T(4) Root(3) Sel(0) N(0) A(0) C(9) T(3) Filter(2) A(0) C(14) T(2) V(1)" }, { "db_id": "dorm_1", "query": "SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid JOIN lives_in AS T4 ON T4.dormid = T1.dormid JOIN student AS T5 ON T5.stuid = T4.stuid WHERE T5.lname = 'Smith'", "query_toks": [ "SELECT", "T3.amenity_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "JOIN", "lives_in", "AS", "T4", "ON", "T4.dormid", "=", "T1.dormid", "JOIN", "student", "AS", "T5", "ON", "T5.stuid", "=", "T4.stuid", "WHERE", "T5.lname", "=", "'Smith", "'" ], "query_toks_no_value": [ "select", "t3", ".", "amenity_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "join", "lives_in", "as", "t4", "on", "t4", ".", "dormid", "=", "t1", ".", "dormid", "join", "student", "as", "t5", "on", "t5", ".", "stuid", "=", "t4", ".", "stuid", "where", "t5", ".", "lname", "=", "value" ], "question": "Find the name of amenities of the dorm where the student with last name Smith is living in.", "question_toks": [ "find", "name", "of", "amenity", "of", "dorm", "where", "student", "with", "last", "name", "smith", "is", "living", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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, 8, [ 0, [ 0, 15, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Smith\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "amenities", "of", "the", "dorm", "where", "the", "student", "with", "last", "name", "Smith", "is", "living", "in", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "amenity" ], [ "of" ], [ "dorm" ], [ "where" ], [ "student" ], [ "with" ], [ "last", "name" ], [ "smith" ], [ "is" ], [ "living" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "amenity", "NN" ], [ "of", "IN" ], [ "dorm", "NN" ], [ "where", "WRB" ], [ "student", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "smith", "NN" ], [ "is", "VBZ" ], [ "living", "VBG" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "Smith" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(3) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "dorm_1", "query": "SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid JOIN lives_in AS T4 ON T4.dormid = T1.dormid JOIN student AS T5 ON T5.stuid = T4.stuid WHERE T5.lname = 'Smith'", "query_toks": [ "SELECT", "T3.amenity_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "JOIN", "lives_in", "AS", "T4", "ON", "T4.dormid", "=", "T1.dormid", "JOIN", "student", "AS", "T5", "ON", "T5.stuid", "=", "T4.stuid", "WHERE", "T5.lname", "=", "'Smith", "'" ], "query_toks_no_value": [ "select", "t3", ".", "amenity_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "join", "lives_in", "as", "t4", "on", "t4", ".", "dormid", "=", "t1", ".", "dormid", "join", "student", "as", "t5", "on", "t5", ".", "stuid", "=", "t4", ".", "stuid", "where", "t5", ".", "lname", "=", "value" ], "question": "What are the amenities in the dorm that a student who has the last name of Smith lives in?", "question_toks": [ "what", "are", "amenity", "in", "dorm", "that", "a", "student", "who", "ha", "last", "name", "of", "smith", "life", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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, 8, [ 0, [ 0, 15, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Smith\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "dorm id", "amenity id", "student id", "dorm id", "room number" ], "table_names": [ "student", "dorm", "dorm amenity", "has amenity", "lives in" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "dorm id", "dorm name", "student capacity", "gender", "amenity id", "amenity name", "room number" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4 ], "keys": { "16": 13, "13": 16, "15": 9, "9": 18, "18": 9, "17": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "amenities", "in", "the", "dorm", "that", "a", "student", "who", "has", "the", "last", "name", "of", "Smith", "lives", "in", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "amenity" ], [ "in" ], [ "dorm" ], [ "that" ], [ "a" ], [ "student" ], [ "who" ], [ "ha" ], [ "last", "name" ], [ "of" ], [ "smith" ], [ "life", "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "amenity", "NN" ], [ "in", "IN" ], [ "dorm", "NN" ], [ "that", "IN" ], [ "a", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "smith", "JJ" ], [ "life", "NN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "Smith" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(9) T(3) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "customer_complaints", "query": "SELECT count(*) FROM customers", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customers" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers" ], "question": "How many customers are there?", "question_toks": [ "how", "many", "customer", "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": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "customers", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "customer_complaints", "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": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "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": "customer_complaints", "query": "SELECT email_address , phone_number FROM customers ORDER BY email_address , phone_number", "query_toks": [ "SELECT", "email_address", ",", "phone_number", "FROM", "customers", "ORDER", "BY", "email_address", ",", "phone_number" ], "query_toks_no_value": [ "select", "email_address", ",", "phone_number", "from", "customers", "order", "by", "email_address", ",", "phone_number" ], "question": "Find the emails and phone numbers of all the customers, ordered by email address and phone number.", "question_toks": [ "find", "email", "and", "phone", "number", "of", "all", "customer", ",", "ordered", "by", "email", "address", "and", "phone", "number", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ], [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "emails", "and", "phone", "numbers", "of", "all", "the", "customers", ",", "ordered", "by", "email", "address", "and", "phone", "number", "." ], "question_arg": [ [ "find" ], [ "email" ], [ "and" ], [ "phone", "number" ], [ "of" ], [ "all" ], [ "customer" ], [ "," ], [ "ordered" ], [ "by" ], [ "email", "address" ], [ "and" ], [ "phone", "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "email", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "email", "NN" ], [ "address", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(5) T(1) A(0) C(6) T(1) Order(1) A(0) C(5) T(1)" }, { "db_id": "customer_complaints", "query": "SELECT email_address , phone_number FROM customers ORDER BY email_address , phone_number", "query_toks": [ "SELECT", "email_address", ",", "phone_number", "FROM", "customers", "ORDER", "BY", "email_address", ",", "phone_number" ], "query_toks_no_value": [ "select", "email_address", ",", "phone_number", "from", "customers", "order", "by", "email_address", ",", "phone_number" ], "question": "What are the emails and phone numbers of all customers, sorted by email address and phone number?", "question_toks": [ "what", "are", "email", "and", "phone", "number", "of", "all", "customer", ",", "sorted", "by", "email", "address", "and", "phone", "number", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ], [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "emails", "and", "phone", "numbers", "of", "all", "customers", ",", "sorted", "by", "email", "address", "and", "phone", "number", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "email" ], [ "and" ], [ "phone", "number" ], [ "of" ], [ "all" ], [ "customer" ], [ "," ], [ "sorted" ], [ "by" ], [ "email", "address" ], [ "and" ], [ "phone", "number" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "email", "JJ" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "email", "NN" ], [ "address", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(5) T(1) A(0) C(6) T(1) Order(1) A(0) C(5) T(1)" }, { "db_id": "customer_complaints", "query": "SELECT town_city FROM customers WHERE customer_type_code = \"Good Credit Rating\" GROUP BY town_city ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "town_city", "FROM", "customers", "WHERE", "customer_type_code", "=", "``", "Good", "Credit", "Rating", "''", "GROUP", "BY", "town_city", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "town_city", "from", "customers", "where", "customer_type_code", "=", "value", "group", "by", "town_city", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Which city has the least number of customers whose type code is \"Good Credit Rating\"?", "question_toks": [ "which", "city", "ha", "least", "number", "of", "customer", "whose", "type", "code", "is", "'", "good", "credit", "rating", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Good Credit Rating\"", null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Which", "city", "has", "the", "least", "number", "of", "customers", "whose", "type", "code", "is", "``", "Good", "Credit", "Rating", "''", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "ha" ], [ "least" ], [ "number" ], [ "of" ], [ "customer" ], [ "whose" ], [ "type" ], [ "code" ], [ "is" ], [ "'" ], [ "good" ], [ "credit" ], [ "rating" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "ha", "NN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "type", "NN" ], [ "code", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "good", "JJ" ], [ "credit", "NN" ], [ "rating", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Good Credit Rating" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(11) T(1) Sup(1) A(3) C(0) T(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "customer_complaints", "query": "SELECT town_city FROM customers WHERE customer_type_code = \"Good Credit Rating\" GROUP BY town_city ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "town_city", "FROM", "customers", "WHERE", "customer_type_code", "=", "``", "Good", "Credit", "Rating", "''", "GROUP", "BY", "town_city", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "town_city", "from", "customers", "where", "customer_type_code", "=", "value", "group", "by", "town_city", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Return the city with the customer type code \"Good Credit Rating\" that had the fewest customers.", "question_toks": [ "return", "city", "with", "customer", "type", "code", "'", "good", "credit", "rating", "'", "that", "had", "fewest", "customer", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Good Credit Rating\"", null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Return", "the", "city", "with", "the", "customer", "type", "code", "``", "Good", "Credit", "Rating", "''", "that", "had", "the", "fewest", "customers", "." ], "question_arg": [ [ "return" ], [ "city" ], [ "with" ], [ "customer", "type", "code" ], [ "'" ], [ "good" ], [ "credit" ], [ "rating" ], [ "'" ], [ "that" ], [ "had" ], [ "fewest" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "city", "NN" ], [ "with", "IN" ], [ "customer", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "'", "POS" ], [ "good", "JJ" ], [ "credit", "NN" ], [ "rating", "NN" ], [ "'", "''" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "fewest", "JJS" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [ "Good Credit Rating" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(11) T(1) Sup(1) A(3) C(0) T(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "customer_complaints", "query": "SELECT t1.product_name , count(*) FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_name", "query_toks": [ "SELECT", "t1.product_name", ",", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "GROUP", "BY", "t1.product_name" ], "query_toks_no_value": [ "select", "t1", ".", "product_name", ",", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t1", ".", "product_name" ], "question": "List the name of all products along with the number of complaints that they have received.", "question_toks": [ "list", "name", "of", "all", "product", "along", "with", "number", "of", "complaint", "that", "they", "have", "received", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "List", "the", "name", "of", "all", "products", "along", "with", "the", "number", "of", "complaints", "that", "they", "have", "received", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "product" ], [ "along" ], [ "with" ], [ "number" ], [ "of" ], [ "complaint" ], [ "that" ], [ "they" ], [ "have" ], [ "received" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "along", "IN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "complaint", "NN" ], [ "that", "IN" ], [ "they", "PRP" ], [ "have", "VBP" ], [ "received", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(18) T(2) A(3) C(0) T(3)" }, { "db_id": "customer_complaints", "query": "SELECT t1.product_name , count(*) FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_name", "query_toks": [ "SELECT", "t1.product_name", ",", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "GROUP", "BY", "t1.product_name" ], "query_toks_no_value": [ "select", "t1", ".", "product_name", ",", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t1", ".", "product_name" ], "question": "What are all the different product names, and how many complains has each received?", "question_toks": [ "what", "are", "all", "different", "product", "name", ",", "and", "how", "many", "complains", "ha", "each", "received", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "all", "the", "different", "product", "names", ",", "and", "how", "many", "complains", "has", "each", "received", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "different" ], [ "product", "name" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "complains" ], [ "ha" ], [ "each" ], [ "received" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "different", "JJ" ], [ "product", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "complains", "NNS" ], [ "ha", "VBP" ], [ "each", "DT" ], [ "received", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(18) T(2) A(3) C(0) T(3)" }, { "db_id": "customer_complaints", "query": "SELECT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_id ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "t1.email_address", "FROM", "customers", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "GROUP", "BY", "t1.customer_id", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "email_address", "from", "customers", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Find the emails of customers who has filed a complaints of the product with the most complaints.", "question_toks": [ "find", "email", "of", "customer", "who", "ha", "filed", "a", "complaint", "of", "product", "with", "most", "complaint", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "emails", "of", "customers", "who", "has", "filed", "a", "complaints", "of", "the", "product", "with", "the", "most", "complaints", "." ], "question_arg": [ [ "find" ], [ "email" ], [ "of" ], [ "customer" ], [ "who" ], [ "ha" ], [ "filed" ], [ "a" ], [ "complaint" ], [ "of" ], [ "product" ], [ "with" ], [ "most" ], [ "complaint" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "email", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "filed", "VBD" ], [ "a", "DT" ], [ "complaint", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "complaint", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(5) T(1) Sup(1) A(3) C(0) T(3) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(3)" }, { "db_id": "customer_complaints", "query": "SELECT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_id ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "t1.email_address", "FROM", "customers", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "GROUP", "BY", "t1.customer_id", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "email_address", "from", "customers", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "What are the emails of customers who have filed complaints on the product which has had the greatest number of complaints?", "question_toks": [ "what", "are", "email", "of", "customer", "who", "have", "filed", "complaint", "on", "product", "which", "ha", "had", "greatest", "number", "of", "complaint", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "emails", "of", "customers", "who", "have", "filed", "complaints", "on", "the", "product", "which", "has", "had", "the", "greatest", "number", "of", "complaints", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "email" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "filed" ], [ "complaint" ], [ "on" ], [ "product" ], [ "which" ], [ "ha" ], [ "had" ], [ "greatest" ], [ "number" ], [ "of" ], [ "complaint" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "email", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "filed", "VBN" ], [ "complaint", "NN" ], [ "on", "IN" ], [ "product", "NN" ], [ "which", "WDT" ], [ "ha", "NN" ], [ "had", "VBD" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "complaint", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(5) T(1) Sup(1) A(3) C(0) T(3) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(3)" }, { "db_id": "customer_complaints", "query": "SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "DISTINCT", "t1.product_name", "FROM", "products", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "customers", "AS", "t3", "GROUP", "BY", "t3.customer_id", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "product_name", "from", "products", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "customers", "as", "t3", "group", "by", "t3", ".", "customer_id", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Which products has been complained by the customer who has filed least amount of complaints?", "question_toks": [ "which", "product", "ha", "been", "complained", "by", "customer", "who", "ha", "filed", "least", "amount", "of", "complaint", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Which", "products", "has", "been", "complained", "by", "the", "customer", "who", "has", "filed", "least", "amount", "of", "complaints", "?" ], "question_arg": [ [ "which" ], [ "product" ], [ "ha" ], [ "been" ], [ "complained" ], [ "by" ], [ "customer" ], [ "who" ], [ "ha" ], [ "filed" ], [ "least" ], [ "amount" ], [ "of" ], [ "complaint" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "product", "NN" ], [ "ha", "NN" ], [ "been", "VBN" ], [ "complained", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "filed", "VBN" ], [ "least", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "complaint", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(1) N(0) A(0) C(18) T(2) Sup(1) A(3) C(0) T(3) Filter(18) A(0) C(13) T(2) Root(5) Sel(0) N(0) A(0) C(13) T(3)" }, { "db_id": "customer_complaints", "query": "SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "DISTINCT", "t1.product_name", "FROM", "products", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "customers", "AS", "t3", "GROUP", "BY", "t3.customer_id", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "product_name", "from", "products", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "customers", "as", "t3", "group", "by", "t3", ".", "customer_id", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Return the names of products that have had complaints filed by the customer who has filed the fewest complaints.", "question_toks": [ "return", "name", "of", "product", "that", "have", "had", "complaint", "filed", "by", "customer", "who", "ha", "filed", "fewest", "complaint", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Return", "the", "names", "of", "products", "that", "have", "had", "complaints", "filed", "by", "the", "customer", "who", "has", "filed", "the", "fewest", "complaints", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "product" ], [ "that" ], [ "have" ], [ "had" ], [ "complaint" ], [ "filed" ], [ "by" ], [ "customer" ], [ "who" ], [ "ha" ], [ "filed" ], [ "fewest" ], [ "complaint" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "had", "VBN" ], [ "complaint", "NN" ], [ "filed", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "filed", "VBN" ], [ "fewest", "JJS" ], [ "complaint", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(1) N(0) A(0) C(18) T(2) Sup(1) A(3) C(0) T(3) Filter(18) A(0) C(13) T(2) Root(5) Sel(0) N(0) A(0) C(13) T(3)" }, { "db_id": "customer_complaints", "query": "SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1", "query_toks": [ "SELECT", "t1.phone_number", "FROM", "customers", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "ORDER", "BY", "t2.date_complaint_raised", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "phone_number", "from", "customers", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "order", "by", "t2", ".", "date_complaint_raised", "desc", "limit", "value" ], "question": "What is the phone number of the customer who has filed the most recent complaint?", "question_toks": [ "what", "is", "phone", "number", "of", "customer", "who", "ha", "filed", "most", "recent", "complaint", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 29, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "phone", "number", "of", "the", "customer", "who", "has", "filed", "the", "most", "recent", "complaint", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "phone", "number" ], [ "of" ], [ "customer" ], [ "who" ], [ "ha" ], [ "filed" ], [ "most" ], [ "recent" ], [ "complaint" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBP" ], [ "filed", "VBN" ], [ "most", "RBS" ], [ "recent", "JJ" ], [ "complaint", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(1) Sup(0) A(0) C(25) T(3)" }, { "db_id": "customer_complaints", "query": "SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1", "query_toks": [ "SELECT", "t1.phone_number", "FROM", "customers", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "ORDER", "BY", "t2.date_complaint_raised", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "phone_number", "from", "customers", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "order", "by", "t2", ".", "date_complaint_raised", "desc", "limit", "value" ], "question": "Return the phone number of the customer who filed the complaint that was raised most recently.", "question_toks": [ "return", "phone", "number", "of", "customer", "who", "filed", "complaint", "that", "wa", "raised", "most", "recently", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 29, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Return", "the", "phone", "number", "of", "the", "customer", "who", "filed", "the", "complaint", "that", "was", "raised", "most", "recently", "." ], "question_arg": [ [ "return" ], [ "phone", "number" ], [ "of" ], [ "customer" ], [ "who" ], [ "filed" ], [ "complaint" ], [ "that" ], [ "wa" ], [ "raised" ], [ "most" ], [ "recently" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "filed", "VBD" ], [ "complaint", "NN" ], [ "that", "IN" ], [ "wa", "NN" ], [ "raised", "VBD" ], [ "most", "RBS" ], [ "recently", "RB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(1) Sup(0) A(0) C(25) T(3)" }, { "db_id": "customer_complaints", "query": "SELECT email_address , phone_number FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM complaints)", "query_toks": [ "SELECT", "email_address", ",", "phone_number", "FROM", "customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "complaints", ")" ], "query_toks_no_value": [ "select", "email_address", ",", "phone_number", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "complaints", ")" ], "question": "Find the email and phone number of the customers who have never filed a complaint before.", "question_toks": [ "find", "email", "and", "phone", "number", "of", "customer", "who", "have", "never", "filed", "a", "complaint", "before", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "email", "and", "phone", "number", "of", "the", "customers", "who", "have", "never", "filed", "a", "complaint", "before", "." ], "question_arg": [ [ "find" ], [ "email" ], [ "and" ], [ "phone", "number" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "never" ], [ "filed" ], [ "a" ], [ "complaint" ], [ "before" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "email", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "never", "RB" ], [ "filed", "VBN" ], [ "a", "DT" ], [ "complaint", "NN" ], [ "before", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(6) T(1) Filter(19) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(3)" }, { "db_id": "customer_complaints", "query": "SELECT email_address , phone_number FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM complaints)", "query_toks": [ "SELECT", "email_address", ",", "phone_number", "FROM", "customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "complaints", ")" ], "query_toks_no_value": [ "select", "email_address", ",", "phone_number", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "complaints", ")" ], "question": "What are the emails and phone numbers of custoemrs who have never filed a complaint?", "question_toks": [ "what", "are", "email", "and", "phone", "number", "of", "custoemrs", "who", "have", "never", "filed", "a", "complaint", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "emails", "and", "phone", "numbers", "of", "custoemrs", "who", "have", "never", "filed", "a", "complaint", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "email" ], [ "and" ], [ "phone", "number" ], [ "of" ], [ "custoemrs" ], [ "who" ], [ "have" ], [ "never" ], [ "filed" ], [ "a" ], [ "complaint" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "email", "JJ" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "custoemrs", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "never", "RB" ], [ "filed", "VBN" ], [ "a", "DT" ], [ "complaint", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(6) T(1) Filter(19) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(3)" }, { "db_id": "customer_complaints", "query": "SELECT phone_number FROM customers UNION SELECT phone_number FROM staff", "query_toks": [ "SELECT", "phone_number", "FROM", "customers", "UNION", "SELECT", "phone_number", "FROM", "staff" ], "query_toks_no_value": [ "select", "phone_number", "from", "customers", "union", "select", "phone_number", "from", "staff" ], "question": "Find the phone number of all the customers and staff.", "question_toks": [ "find", "phone", "number", "of", "all", "customer", "and", "staff", "." ], "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": { "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": [] }, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "phone", "number", "of", "all", "the", "customers", "and", "staff", "." ], "question_arg": [ [ "find" ], [ "phone", "number" ], [ "of" ], [ "all" ], [ "customer" ], [ "and" ], [ "staff" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "and", "CC" ], [ "staff", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(1) Root(5) Sel(0) N(0) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(0)" }, { "db_id": "customer_complaints", "query": "SELECT phone_number FROM customers UNION SELECT phone_number FROM staff", "query_toks": [ "SELECT", "phone_number", "FROM", "customers", "UNION", "SELECT", "phone_number", "FROM", "staff" ], "query_toks_no_value": [ "select", "phone_number", "from", "customers", "union", "select", "phone_number", "from", "staff" ], "question": "What are the phone numbers of all customers and all staff members?", "question_toks": [ "what", "are", "phone", "number", "of", "all", "customer", "and", "all", "staff", "member", "?" ], "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": { "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": [] }, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "phone", "numbers", "of", "all", "customers", "and", "all", "staff", "members", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "phone", "number" ], [ "of" ], [ "all" ], [ "customer" ], [ "and" ], [ "all" ], [ "staff" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "and", "CC" ], [ "all", "DT" ], [ "staff", "NN" ], [ "member", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(1) Root(5) Sel(0) N(0) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(0)" }, { "db_id": "customer_complaints", "query": "SELECT product_description FROM products WHERE product_name = \"Chocolate\"", "query_toks": [ "SELECT", "product_description", "FROM", "products", "WHERE", "product_name", "=", "``", "Chocolate", "''" ], "query_toks_no_value": [ "select", "product_description", "from", "products", "where", "product_name", "=", "value" ], "question": "What is the description of the product named \"Chocolate\"?", "question_toks": [ "what", "is", "description", "of", "product", "named", "'", "chocolate", "'", "?" ], "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, 2, [ 0, [ 0, 20, false ], null ], "\"Chocolate\"", null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "description", "of", "the", "product", "named", "``", "Chocolate", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "of" ], [ "product" ], [ "named" ], [ "'" ], [ "chocolate" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "chocolate", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Chocolate" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(2) Filter(2) A(0) C(18) T(2) V(0)" }, { "db_id": "customer_complaints", "query": "SELECT product_description FROM products WHERE product_name = \"Chocolate\"", "query_toks": [ "SELECT", "product_description", "FROM", "products", "WHERE", "product_name", "=", "``", "Chocolate", "''" ], "query_toks_no_value": [ "select", "product_description", "from", "products", "where", "product_name", "=", "value" ], "question": "Return the description of the product called \"Chocolate\".", "question_toks": [ "return", "description", "of", "product", "called", "'", "chocolate", "'", "." ], "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, 2, [ 0, [ 0, 20, false ], null ], "\"Chocolate\"", null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Return", "the", "description", "of", "the", "product", "called", "``", "Chocolate", "''", "." ], "question_arg": [ [ "return" ], [ "description" ], [ "of" ], [ "product" ], [ "called" ], [ "'" ], [ "chocolate" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "description", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "called", "VBN" ], [ "'", "''" ], [ "chocolate", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Chocolate" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(2) Filter(2) A(0) C(18) T(2) V(0)" }, { "db_id": "customer_complaints", "query": "SELECT product_name , product_category_code FROM products ORDER BY product_price DESC LIMIT 1", "query_toks": [ "SELECT", "product_name", ",", "product_category_code", "FROM", "products", "ORDER", "BY", "product_price", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "product_name", ",", "product_category_code", "from", "products", "order", "by", "product_price", "desc", "limit", "value" ], "question": "Find the name and category of the most expensive product.", "question_toks": [ "find", "name", "and", "category", "of", "most", "expensive", "product", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 22, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "category", "of", "the", "most", "expensive", "product", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "category" ], [ "of" ], [ "most" ], [ "expensive" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "category", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "expensive", "JJ" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(18) T(2) A(0) C(15) T(2) Sup(0) A(0) C(20) T(2)" }, { "db_id": "customer_complaints", "query": "SELECT product_name , product_category_code FROM products ORDER BY product_price DESC LIMIT 1", "query_toks": [ "SELECT", "product_name", ",", "product_category_code", "FROM", "products", "ORDER", "BY", "product_price", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "product_name", ",", "product_category_code", "from", "products", "order", "by", "product_price", "desc", "limit", "value" ], "question": "What is the name and category code of the product with the highest price?", "question_toks": [ "what", "is", "name", "and", "category", "code", "of", "product", "with", "highest", "price", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 22, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "category", "code", "of", "the", "product", "with", "the", "highest", "price", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "product", "category", "code" ], [ "of" ], [ "product" ], [ "with" ], [ "highest" ], [ "price" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "category", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "price", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(18) T(2) A(0) C(15) T(2) Sup(0) A(0) C(20) T(2)" }, { "db_id": "customer_complaints", "query": "SELECT product_price FROM products WHERE product_id NOT IN (SELECT product_id FROM complaints)", "query_toks": [ "SELECT", "product_price", "FROM", "products", "WHERE", "product_id", "NOT", "IN", "(", "SELECT", "product_id", "FROM", "complaints", ")" ], "query_toks_no_value": [ "select", "product_price", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "complaints", ")" ], "question": "Find the prices of products which has never received a single complaint.", "question_toks": [ "find", "price", "of", "product", "which", "ha", "never", "received", "a", "single", "complaint", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 15, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "prices", "of", "products", "which", "has", "never", "received", "a", "single", "complaint", "." ], "question_arg": [ [ "find" ], [ "price" ], [ "of" ], [ "product" ], [ "which" ], [ "ha" ], [ "never" ], [ "received" ], [ "a" ], [ "single" ], [ "complaint" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "which", "WDT" ], [ "ha", "VBZ" ], [ "never", "RB" ], [ "received", "VBN" ], [ "a", "DT" ], [ "single", "JJ" ], [ "complaint", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(20) T(2) Filter(19) A(0) C(13) T(2) Root(5) Sel(0) N(0) A(0) C(13) T(3)" }, { "db_id": "customer_complaints", "query": "SELECT product_price FROM products WHERE product_id NOT IN (SELECT product_id FROM complaints)", "query_toks": [ "SELECT", "product_price", "FROM", "products", "WHERE", "product_id", "NOT", "IN", "(", "SELECT", "product_id", "FROM", "complaints", ")" ], "query_toks_no_value": [ "select", "product_price", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "complaints", ")" ], "question": "What are the prices of products that have never gotten a complaint?", "question_toks": [ "what", "are", "price", "of", "product", "that", "have", "never", "gotten", "a", "complaint", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 15, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "prices", "of", "products", "that", "have", "never", "gotten", "a", "complaint", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "price" ], [ "of" ], [ "product" ], [ "that" ], [ "have" ], [ "never" ], [ "gotten" ], [ "a" ], [ "complaint" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "price", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "never", "RB" ], [ "gotten", "VBN" ], [ "a", "DT" ], [ "complaint", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(20) T(2) Filter(19) A(0) C(13) T(2) Root(5) Sel(0) N(0) A(0) C(13) T(3)" }, { "db_id": "customer_complaints", "query": "SELECT avg(product_price) , product_category_code FROM products GROUP BY product_category_code", "query_toks": [ "SELECT", "avg", "(", "product_price", ")", ",", "product_category_code", "FROM", "products", "GROUP", "BY", "product_category_code" ], "query_toks_no_value": [ "select", "avg", "(", "product_price", ")", ",", "product_category_code", "from", "products", "group", "by", "product_category_code" ], "question": "What is the average price of the products for each category?", "question_toks": [ "what", "is", "average", "price", "of", "product", "for", "each", "category", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "price", "of", "the", "products", "for", "each", "category", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "price" ], [ "of" ], [ "product" ], [ "for" ], [ "each" ], [ "category" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "category", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(20) T(2) A(0) C(15) T(2)" }, { "db_id": "customer_complaints", "query": "SELECT avg(product_price) , product_category_code FROM products GROUP BY product_category_code", "query_toks": [ "SELECT", "avg", "(", "product_price", ")", ",", "product_category_code", "FROM", "products", "GROUP", "BY", "product_category_code" ], "query_toks_no_value": [ "select", "avg", "(", "product_price", ")", ",", "product_category_code", "from", "products", "group", "by", "product_category_code" ], "question": "Return the average price of products that have each category code.", "question_toks": [ "return", "average", "price", "of", "product", "that", "have", "each", "category", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Return", "the", "average", "price", "of", "products", "that", "have", "each", "category", "code", "." ], "question_arg": [ [ "return" ], [ "average" ], [ "price" ], [ "of" ], [ "product" ], [ "that" ], [ "have" ], [ "each" ], [ "product", "category", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "each", "DT" ], [ "category", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(20) T(2) A(0) C(15) T(2)" }, { "db_id": "customer_complaints", "query": "SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id JOIN products AS t3 ON t2.product_id = t3.product_id ORDER BY t3.product_price LIMIT 1", "query_toks": [ "SELECT", "t1.last_name", "FROM", "staff", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.staff_id", "=", "t2.staff_id", "JOIN", "products", "AS", "t3", "ON", "t2.product_id", "=", "t3.product_id", "ORDER", "BY", "t3.product_price", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "last_name", "from", "staff", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "join", "products", "as", "t3", "on", "t2", ".", "product_id", "=", "t3", ".", "product_id", "order", "by", "t3", ".", "product_price", "limit", "value" ], "question": "Find the last name of the staff member who processed the complaint of the cheapest product.", "question_toks": [ "find", "last", "name", "of", "staff", "member", "who", "processed", "complaint", "of", "cheapest", "product", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 22, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "last", "name", "of", "the", "staff", "member", "who", "processed", "the", "complaint", "of", "the", "cheapest", "product", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "of" ], [ "staff" ], [ "member" ], [ "who" ], [ "processed" ], [ "complaint" ], [ "of" ], [ "cheapest" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "member", "NN" ], [ "who", "WP" ], [ "processed", "VBD" ], [ "complaint", "NN" ], [ "of", "IN" ], [ "cheapest", "JJS" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(4) T(0) Sup(1) A(0) C(20) T(2) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(3)" }, { "db_id": "customer_complaints", "query": "SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id JOIN products AS t3 ON t2.product_id = t3.product_id ORDER BY t3.product_price LIMIT 1", "query_toks": [ "SELECT", "t1.last_name", "FROM", "staff", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.staff_id", "=", "t2.staff_id", "JOIN", "products", "AS", "t3", "ON", "t2.product_id", "=", "t3.product_id", "ORDER", "BY", "t3.product_price", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "last_name", "from", "staff", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "join", "products", "as", "t3", "on", "t2", ".", "product_id", "=", "t3", ".", "product_id", "order", "by", "t3", ".", "product_price", "limit", "value" ], "question": "What is the last name of the staff member in charge of the complaint on the product with the lowest price?", "question_toks": [ "what", "is", "last", "name", "of", "staff", "member", "in", "charge", "of", "complaint", "on", "product", "with", "lowest", "price", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 22, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "last", "name", "of", "the", "staff", "member", "in", "charge", "of", "the", "complaint", "on", "the", "product", "with", "the", "lowest", "price", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last", "name" ], [ "of" ], [ "staff" ], [ "member" ], [ "in" ], [ "charge" ], [ "of" ], [ "complaint" ], [ "on" ], [ "product" ], [ "with" ], [ "lowest" ], [ "price" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "member", "NN" ], [ "in", "IN" ], [ "charge", "NN" ], [ "of", "IN" ], [ "complaint", "NN" ], [ "on", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "lowest", "JJ" ], [ "price", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(4) T(0) Sup(1) A(0) C(20) T(2) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(3)" }, { "db_id": "customer_complaints", "query": "SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING count(*) > 3", "query_toks": [ "SELECT", "complaint_status_code", "FROM", "complaints", "GROUP", "BY", "complaint_status_code", "HAVING", "count", "(", "*", ")", ">", "3" ], "query_toks_no_value": [ "select", "complaint_status_code", "from", "complaints", "group", "by", "complaint_status_code", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which complaint status has more than 3 records on file?", "question_toks": [ "which", "complaint", "status", "ha", "more", "than", "3", "record", "on", "file", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 27, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Which", "complaint", "status", "has", "more", "than", "3", "records", "on", "file", "?" ], "question_arg": [ [ "which" ], [ "complaint" ], [ "status" ], [ "ha" ], [ "more" ], [ "than" ], [ "3" ], [ "record" ], [ "on" ], [ "file" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "complaint", "NN" ], [ "status", "NN" ], [ "ha", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "record", "NN" ], [ "on", "IN" ], [ "file", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(3) Filter(5) A(3) C(0) T(3) V(0)" }, { "db_id": "customer_complaints", "query": "SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING count(*) > 3", "query_toks": [ "SELECT", "complaint_status_code", "FROM", "complaints", "GROUP", "BY", "complaint_status_code", "HAVING", "count", "(", "*", ")", ">", "3" ], "query_toks_no_value": [ "select", "complaint_status_code", "from", "complaints", "group", "by", "complaint_status_code", "having", "count", "(", "*", ")", ">", "value" ], "question": "Return complaint status codes have more than 3 corresponding complaints?", "question_toks": [ "return", "complaint", "status", "code", "have", "more", "than", "3", "corresponding", "complaint", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 27, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Return", "complaint", "status", "codes", "have", "more", "than", "3", "corresponding", "complaints", "?" ], "question_arg": [ [ "return" ], [ "complaint", "status", "code" ], [ "have" ], [ "more" ], [ "than" ], [ "3" ], [ "corresponding" ], [ "complaint" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "complaint", "NN" ], [ "status", "NN" ], [ "code", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "corresponding", "VBG" ], [ "complaint", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(3) Filter(5) A(3) C(0) T(3) V(0)" }, { "db_id": "customer_complaints", "query": "SELECT last_name FROM staff WHERE email_address LIKE \"%wrau%\"", "query_toks": [ "SELECT", "last_name", "FROM", "staff", "WHERE", "email_address", "LIKE", "``", "%", "wrau", "%", "''" ], "query_toks_no_value": [ "select", "last_name", "from", "staff", "where", "email_address", "like", "value" ], "question": "Find the last name of the staff whose email address contains \"wrau\".", "question_toks": [ "find", "last", "name", "of", "staff", "whose", "email", "address", "contains", "'", "wrau", "'", "." ], "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, 5, false ], null ], "\"%wrau%\"", null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "last", "name", "of", "the", "staff", "whose", "email", "address", "contains", "``", "wrau", "''", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "of" ], [ "staff" ], [ "whose" ], [ "email", "address" ], [ "contains" ], [ "'" ], [ "wrau" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "whose", "WP$" ], [ "email", "NN" ], [ "address", "NN" ], [ "contains", "NNS" ], [ "'", "POS" ], [ "wrau", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "wrau" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(9) A(0) C(5) T(0) V(0)" }, { "db_id": "customer_complaints", "query": "SELECT last_name FROM staff WHERE email_address LIKE \"%wrau%\"", "query_toks": [ "SELECT", "last_name", "FROM", "staff", "WHERE", "email_address", "LIKE", "``", "%", "wrau", "%", "''" ], "query_toks_no_value": [ "select", "last_name", "from", "staff", "where", "email_address", "like", "value" ], "question": "What are the last names of staff with email addressed containing the substring \"wrau\"?", "question_toks": [ "what", "are", "last", "name", "of", "staff", "with", "email", "addressed", "containing", "substring", "'", "wrau", "'", "?" ], "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, 5, false ], null ], "\"%wrau%\"", null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "last", "names", "of", "staff", "with", "email", "addressed", "containing", "the", "substring", "``", "wrau", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "last", "name" ], [ "of" ], [ "staff" ], [ "with" ], [ "email" ], [ "addressed" ], [ "containing" ], [ "substring" ], [ "'" ], [ "wrau" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "with", "IN" ], [ "email", "NN" ], [ "addressed", "VBN" ], [ "containing", "VBG" ], [ "substring", "VBG" ], [ "'", "''" ], [ "wrau", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "wrau" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(9) A(0) C(5) T(0) V(0)" }, { "db_id": "customer_complaints", "query": "SELECT count(*) FROM customers GROUP BY customer_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customers", "GROUP", "BY", "customer_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "group", "by", "customer_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "How many customers are there in the customer type with the most customers?", "question_toks": [ "how", "many", "customer", "are", "there", "in", "customer", "type", "with", "most", "customer", "?" ], "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, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "customers", "are", "there", "in", "the", "customer", "type", "with", "the", "most", "customers", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "are" ], [ "there" ], [ "in" ], [ "customer" ], [ "type" ], [ "with" ], [ "most" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "customer", "NN" ], [ "type", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(3) C(0) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "customer_complaints", "query": "SELECT count(*) FROM customers GROUP BY customer_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customers", "GROUP", "BY", "customer_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "group", "by", "customer_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Count the number of customers that have the customer type that is most common.", "question_toks": [ "count", "number", "of", "customer", "that", "have", "customer", "type", "that", "is", "most", "common", "." ], "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, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "customers", "that", "have", "the", "customer", "type", "that", "is", "most", "common", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "customer" ], [ "that" ], [ "have" ], [ "customer" ], [ "type" ], [ "that" ], [ "is" ], [ "most" ], [ "common" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "customer", "NN" ], [ "type", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(3) C(0) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "customer_complaints", "query": "SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id ORDER BY t2.date_complaint_raised LIMIT 1", "query_toks": [ "SELECT", "t1.last_name", "FROM", "staff", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.staff_id", "=", "t2.staff_id", "ORDER", "BY", "t2.date_complaint_raised", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "last_name", "from", "staff", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "order", "by", "t2", ".", "date_complaint_raised", "limit", "value" ], "question": "What is the last name of the staff who has handled the first ever complaint?", "question_toks": [ "what", "is", "last", "name", "of", "staff", "who", "ha", "handled", "first", "ever", "complaint", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 29, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "last", "name", "of", "the", "staff", "who", "has", "handled", "the", "first", "ever", "complaint", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last", "name" ], [ "of" ], [ "staff" ], [ "who" ], [ "ha" ], [ "handled" ], [ "first" ], [ "ever" ], [ "complaint" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "handled", "VBN" ], [ "first", "RB" ], [ "ever", "RB" ], [ "complaint", "VB" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(0) Sup(1) A(0) C(25) T(3)" }, { "db_id": "customer_complaints", "query": "SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id ORDER BY t2.date_complaint_raised LIMIT 1", "query_toks": [ "SELECT", "t1.last_name", "FROM", "staff", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.staff_id", "=", "t2.staff_id", "ORDER", "BY", "t2.date_complaint_raised", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "last_name", "from", "staff", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "order", "by", "t2", ".", "date_complaint_raised", "limit", "value" ], "question": "Return the last name of the staff member who handled the complaint with the earliest date raised.", "question_toks": [ "return", "last", "name", "of", "staff", "member", "who", "handled", "complaint", "with", "earliest", "date", "raised", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 29, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Return", "the", "last", "name", "of", "the", "staff", "member", "who", "handled", "the", "complaint", "with", "the", "earliest", "date", "raised", "." ], "question_arg": [ [ "return" ], [ "last", "name" ], [ "of" ], [ "staff" ], [ "member" ], [ "who" ], [ "handled" ], [ "complaint" ], [ "with" ], [ "earliest" ], [ "date", "complaint", "raised" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "member", "NN" ], [ "who", "WP" ], [ "handled", "VBD" ], [ "complaint", "NN" ], [ "with", "IN" ], [ "earliest", "JJ" ], [ "date", "NN" ], [ "raised", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(0) Sup(1) A(0) C(25) T(3)" }, { "db_id": "customer_complaints", "query": "SELECT count(DISTINCT complaint_type_code) FROM complaints", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "complaint_type_code", ")", "FROM", "complaints" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "complaint_type_code", ")", "from", "complaints" ], "question": "How many distinct complaint type codes are there in the database?", "question_toks": [ "how", "many", "distinct", "complaint", "type", "code", "are", "there", "in", "database", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 28, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "How", "many", "distinct", "complaint", "type", "codes", "are", "there", "in", "the", "database", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "complaint", "type", "code" ], [ "are" ], [ "there" ], [ "in" ], [ "database" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "complaint", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "database", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(24) T(3)" }, { "db_id": "customer_complaints", "query": "SELECT count(DISTINCT complaint_type_code) FROM complaints", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "complaint_type_code", ")", "FROM", "complaints" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "complaint_type_code", ")", "from", "complaints" ], "question": "Count the number of different complaint type codes.", "question_toks": [ "count", "number", "of", "different", "complaint", "type", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 28, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "complaint", "type", "codes", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "complaint", "type", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "complaint", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(24) T(3)" }, { "db_id": "customer_complaints", "query": "SELECT address_line_1 , address_line_2 FROM customers WHERE email_address = \"vbogisich@example.org\"", "query_toks": [ "SELECT", "address_line_1", ",", "address_line_2", "FROM", "customers", "WHERE", "email_address", "=", "``", "vbogisich", "@", "example.org", "''" ], "query_toks_no_value": [ "select", "address_line_1", ",", "address_line_2", "from", "customers", "where", "email_address", "=", "value" ], "question": "Find the address line 1 and 2 of the customer with email \"vbogisich@example.org\".", "question_toks": [ "find", "address", "line", "1", "and", "2", "of", "customer", "with", "email", "'", "vbogisich", "@", "example.org", "'", "." ], "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, 13, false ], null ], "\"vbogisich@example.org\"", null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "address", "line", "1", "and", "2", "of", "the", "customer", "with", "email", "``", "vbogisich", "@", "example.org", "''", "." ], "question_arg": [ [ "find" ], [ "address", "line", "1" ], [ "and" ], [ "2" ], [ "of" ], [ "customer" ], [ "with" ], [ "email" ], [ "'" ], [ "vbogisich" ], [ "@" ], [ "example.org" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "address", "JJ" ], [ "line", "NN" ], [ "1", "CD" ], [ "and", "CC" ], [ "2", "CD" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "email", "NN" ], [ "'", "''" ], [ "vbogisich", "JJ" ], [ "@", "NNP" ], [ "example.org", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "2", "1", "vbogisich@example.org" ], "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(5) T(1) V(2)" }, { "db_id": "customer_complaints", "query": "SELECT address_line_1 , address_line_2 FROM customers WHERE email_address = \"vbogisich@example.org\"", "query_toks": [ "SELECT", "address_line_1", ",", "address_line_2", "FROM", "customers", "WHERE", "email_address", "=", "``", "vbogisich", "@", "example.org", "''" ], "query_toks_no_value": [ "select", "address_line_1", ",", "address_line_2", "from", "customers", "where", "email_address", "=", "value" ], "question": "What are lines 1 and 2 of the addressed of the customer with the email \"vbogisich@example.org\"?", "question_toks": [ "what", "are", "line", "1", "and", "2", "of", "addressed", "of", "customer", "with", "email", "'", "vbogisich", "@", "example.org", "'", "?" ], "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, 13, false ], null ], "\"vbogisich@example.org\"", null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "What", "are", "lines", "1", "and", "2", "of", "the", "addressed", "of", "the", "customer", "with", "the", "email", "``", "vbogisich", "@", "example.org", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "address", "line", "1" ], [ "and" ], [ "2" ], [ "of" ], [ "addressed" ], [ "of" ], [ "customer" ], [ "with" ], [ "email" ], [ "'" ], [ "vbogisich" ], [ "@" ], [ "example.org" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "line", "NN" ], [ "1", "CD" ], [ "and", "CC" ], [ "2", "CD" ], [ "of", "IN" ], [ "addressed", "VBN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "email", "NN" ], [ "'", "''" ], [ "vbogisich", "JJ" ], [ "@", "NNP" ], [ "example.org", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "2", "1", "vbogisich@example.org" ], "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(5) T(1) V(2)" }, { "db_id": "customer_complaints", "query": "SELECT complaint_status_code , count(*) FROM complaints WHERE complaint_type_code = \"Product Failure\" GROUP BY complaint_status_code", "query_toks": [ "SELECT", "complaint_status_code", ",", "count", "(", "*", ")", "FROM", "complaints", "WHERE", "complaint_type_code", "=", "``", "Product", "Failure", "''", "GROUP", "BY", "complaint_status_code" ], "query_toks_no_value": [ "select", "complaint_status_code", ",", "count", "(", "*", ")", "from", "complaints", "where", "complaint_type_code", "=", "value", "group", "by", "complaint_status_code" ], "question": "Find the number of complaints with Product Failure type for each complaint status.", "question_toks": [ "find", "number", "of", "complaint", "with", "product", "failure", "type", "for", "each", "complaint", "status", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 27, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 28, false ], null ], "\"Product Failure\"", null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "complaints", "with", "Product", "Failure", "type", "for", "each", "complaint", "status", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "complaint" ], [ "with" ], [ "product" ], [ "failure" ], [ "type" ], [ "for" ], [ "each" ], [ "complaint" ], [ "status" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "complaint", "NN" ], [ "with", "IN" ], [ "product", "NN" ], [ "failure", "NN" ], [ "type", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "complaint", "NN" ], [ "status", "NN" ], [ ".", "." ] ], "values": [ "Product Failure" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(23) T(3) A(3) C(0) T(3) Filter(2) A(0) C(24) T(3) V(0)" }, { "db_id": "customer_complaints", "query": "SELECT complaint_status_code , count(*) FROM complaints WHERE complaint_type_code = \"Product Failure\" GROUP BY complaint_status_code", "query_toks": [ "SELECT", "complaint_status_code", ",", "count", "(", "*", ")", "FROM", "complaints", "WHERE", "complaint_type_code", "=", "``", "Product", "Failure", "''", "GROUP", "BY", "complaint_status_code" ], "query_toks_no_value": [ "select", "complaint_status_code", ",", "count", "(", "*", ")", "from", "complaints", "where", "complaint_type_code", "=", "value", "group", "by", "complaint_status_code" ], "question": "Of complaints with the type code \"Product Failure\", how many had each different status code?", "question_toks": [ "of", "complaint", "with", "type", "code", "'", "product", "failure", "'", ",", "how", "many", "had", "each", "different", "status", "code", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 27, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 28, false ], null ], "\"Product Failure\"", null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Of", "complaints", "with", "the", "type", "code", "``", "Product", "Failure", "''", ",", "how", "many", "had", "each", "different", "status", "code", "?" ], "question_arg": [ [ "of" ], [ "complaint" ], [ "with" ], [ "type" ], [ "code" ], [ "'" ], [ "product" ], [ "failure" ], [ "'" ], [ "," ], [ "how" ], [ "many" ], [ "had" ], [ "each" ], [ "different" ], [ "complaint", "status", "code" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "of", "IN" ], [ "complaint", "NN" ], [ "with", "IN" ], [ "type", "JJ" ], [ "code", "NN" ], [ "'", "POS" ], [ "product", "NN" ], [ "failure", "NN" ], [ "'", "''" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "had", "VBD" ], [ "each", "DT" ], [ "different", "JJ" ], [ "status", "NN" ], [ "code", "NN" ], [ "?", "." ] ], "values": [ "Product Failure" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(23) T(3) A(3) C(0) T(3) Filter(2) A(0) C(24) T(3) V(0)" }, { "db_id": "customer_complaints", "query": "SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id GROUP BY t2.staff_id ORDER BY count(*) LIMIT 5", "query_toks": [ "SELECT", "t1.first_name", "FROM", "staff", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.staff_id", "=", "t2.staff_id", "GROUP", "BY", "t2.staff_id", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "5" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", "from", "staff", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "group", "by", "t2", ".", "staff_id", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "What is first names of the top 5 staff who have handled the greatest number of complaints?", "question_toks": [ "what", "is", "first", "name", "of", "top", "5", "staff", "who", "have", "handled", "greatest", "number", "of", "complaint", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 31, false ] ], "having": [], "intersect": null, "limit": 5, "orderBy": [ "asc", [ [ 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, 31, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "What", "is", "first", "names", "of", "the", "top", "5", "staff", "who", "have", "handled", "the", "greatest", "number", "of", "complaints", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first", "name" ], [ "of" ], [ "top" ], [ "5" ], [ "staff" ], [ "who" ], [ "have" ], [ "handled" ], [ "greatest" ], [ "number" ], [ "of" ], [ "complaint" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "top", "JJ" ], [ "5", "CD" ], [ "staff", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "handled", "VBN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "complaint", "NN" ], [ "?", "." ] ], "values": [ "5", "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(3) T(0) Sup(1) 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": "customer_complaints", "query": "SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id GROUP BY t2.staff_id ORDER BY count(*) LIMIT 5", "query_toks": [ "SELECT", "t1.first_name", "FROM", "staff", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.staff_id", "=", "t2.staff_id", "GROUP", "BY", "t2.staff_id", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "5" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", "from", "staff", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "group", "by", "t2", ".", "staff_id", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Return the first names of the 5 staff members who have handled the most complaints.", "question_toks": [ "return", "first", "name", "of", "5", "staff", "member", "who", "have", "handled", "most", "complaint", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 31, false ] ], "having": [], "intersect": null, "limit": 5, "orderBy": [ "asc", [ [ 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, 31, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Return", "the", "first", "names", "of", "the", "5", "staff", "members", "who", "have", "handled", "the", "most", "complaints", "." ], "question_arg": [ [ "return" ], [ "first", "name" ], [ "of" ], [ "5" ], [ "staff" ], [ "member" ], [ "who" ], [ "have" ], [ "handled" ], [ "most" ], [ "complaint" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "of", "IN" ], [ "5", "CD" ], [ "staff", "NN" ], [ "member", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "handled", "VBN" ], [ "most", "JJS" ], [ "complaint", "NN" ], [ ".", "." ] ], "values": [ "5", "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(3) T(0) Sup(1) 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": "customer_complaints", "query": "SELECT state FROM customers GROUP BY state ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "state", "FROM", "customers", "GROUP", "BY", "state", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "state", "from", "customers", "group", "by", "state", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Which state has the most customers?", "question_toks": [ "which", "state", "ha", "most", "customer", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Which", "state", "has", "the", "most", "customers", "?" ], "question_arg": [ [ "which" ], [ "state" ], [ "ha" ], [ "most" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "state", "NN" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(12) T(1) Sup(1) A(3) C(0) T(1)" }, { "db_id": "customer_complaints", "query": "SELECT state FROM customers GROUP BY state ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "state", "FROM", "customers", "GROUP", "BY", "state", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "state", "from", "customers", "group", "by", "state", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Give the state that has the most customers.", "question_toks": [ "give", "state", "that", "ha", "most", "customer", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "email address", "phone number", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "product id", "customer id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed", "staff id" ], "table_names": [ "staff", "customers", "products", "complaints" ], "col_set": [ "*", "staff id", "gender", "first name", "last name", "email address", "phone number", "customer id", "customer type code", "address line 1", "address line 2", "town city", "state", "product id", "parent product id", "product category code", "date product first available", "date product discontinued", "product name", "product description", "product price", "complaint id", "complaint outcome code", "complaint status code", "complaint type code", "date complaint raised", "date complaint closed" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "25": 7, "7": 7, "24": 15, "15": 15, "31": 1, "1": 1 }, "origin_question_toks": [ "Give", "the", "state", "that", "has", "the", "most", "customers", "." ], "question_arg": [ [ "give" ], [ "state" ], [ "that" ], [ "ha" ], [ "most" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "state", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(12) T(1) Sup(1) A(3) C(0) T(1)" }, { "db_id": "workshop_paper", "query": "SELECT count(*) FROM submission", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "submission" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "submission" ], "question": "How many submissions are there?", "question_toks": [ "how", "many", "submission", "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": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "How", "many", "submissions", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "submission" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "submission", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "workshop_paper", "query": "SELECT count(*) FROM submission", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "submission" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "submission" ], "question": "Count the number of submissions.", "question_toks": [ "count", "number", "of", "submission", "." ], "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": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Count", "the", "number", "of", "submissions", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "submission" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "submission", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "workshop_paper", "query": "SELECT Author FROM submission ORDER BY Scores ASC", "query_toks": [ "SELECT", "Author", "FROM", "submission", "ORDER", "BY", "Scores", "ASC" ], "query_toks_no_value": [ "select", "author", "from", "submission", "order", "by", "scores", "asc" ], "question": "List the authors of submissions in ascending order of scores.", "question_toks": [ "list", "author", "of", "submission", "in", "ascending", "order", "of", "score", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "List", "the", "authors", "of", "submissions", "in", "ascending", "order", "of", "scores", "." ], "question_arg": [ [ "list" ], [ "author" ], [ "of" ], [ "submission" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "score" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "author", "NN" ], [ "of", "IN" ], [ "submission", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "score", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(7) T(1) Order(1) A(0) C(6) T(1)" }, { "db_id": "workshop_paper", "query": "SELECT Author FROM submission ORDER BY Scores ASC", "query_toks": [ "SELECT", "Author", "FROM", "submission", "ORDER", "BY", "Scores", "ASC" ], "query_toks_no_value": [ "select", "author", "from", "submission", "order", "by", "scores", "asc" ], "question": "Find the author for each submission and list them in ascending order of submission score.", "question_toks": [ "find", "author", "for", "each", "submission", "and", "list", "them", "in", "ascending", "order", "of", "submission", "score", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Find", "the", "author", "for", "each", "submission", "and", "list", "them", "in", "ascending", "order", "of", "submission", "score", "." ], "question_arg": [ [ "find" ], [ "author" ], [ "for" ], [ "each" ], [ "submission" ], [ "and" ], [ "list" ], [ "them" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "submission" ], [ "score" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "author", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "submission", "NN" ], [ "and", "CC" ], [ "list", "VB" ], [ "them", "PRP" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "submission", "NN" ], [ "score", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(7) T(1) Order(1) A(0) C(6) T(1)" }, { "db_id": "workshop_paper", "query": "SELECT Author , College FROM submission", "query_toks": [ "SELECT", "Author", ",", "College", "FROM", "submission" ], "query_toks_no_value": [ "select", "author", ",", "college", "from", "submission" ], "question": "What are the authors of submissions and their colleges?", "question_toks": [ "what", "are", "author", "of", "submission", "and", "their", "college", "?" ], "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": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "authors", "of", "submissions", "and", "their", "colleges", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "author" ], [ "of" ], [ "submission" ], [ "and" ], [ "their" ], [ "college" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "author", "NN" ], [ "of", "IN" ], [ "submission", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "college", "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": "workshop_paper", "query": "SELECT Author , College FROM submission", "query_toks": [ "SELECT", "Author", ",", "College", "FROM", "submission" ], "query_toks_no_value": [ "select", "author", ",", "college", "from", "submission" ], "question": "For each submission, show the author and their affiliated college.", "question_toks": [ "for", "each", "submission", ",", "show", "author", "and", "their", "affiliated", "college", "." ], "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": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "For", "each", "submission", ",", "show", "the", "author", "and", "their", "affiliated", "college", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "submission" ], [ "," ], [ "show" ], [ "author" ], [ "and" ], [ "their" ], [ "affiliated" ], [ "college" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "submission", "NN" ], [ ",", "," ], [ "show", "VBP" ], [ "author", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "affiliated", "JJ" ], [ "college", "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": "workshop_paper", "query": "SELECT Author FROM submission WHERE College = \"Florida\" OR College = \"Temple\"", "query_toks": [ "SELECT", "Author", "FROM", "submission", "WHERE", "College", "=", "``", "Florida", "''", "OR", "College", "=", "``", "Temple", "''" ], "query_toks_no_value": [ "select", "author", "from", "submission", "where", "college", "=", "value", "or", "college", "=", "value" ], "question": "Show the names of authors from college \"Florida\" or \"Temple\"", "question_toks": [ "show", "name", "of", "author", "from", "college", "'", "florida", "'", "or", "'", "temple", "'" ], "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, 8, false ], null ], "\"Florida\"", null ], "or", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Temple\"", null ] ] }, "names": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Show", "the", "names", "of", "authors", "from", "college", "``", "Florida", "''", "or", "``", "Temple", "''" ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "author" ], [ "from" ], [ "college" ], [ "'" ], [ "florida" ], [ "'" ], [ "or" ], [ "'" ], [ "temple" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ "from", "IN" ], [ "college", "NN" ], [ "'", "''" ], [ "florida", "JJ" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "temple", "NNS" ], [ "'", "POS" ] ], "values": [ "Temple", "Florida" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(1) Filter(2) A(0) C(8) T(1) V(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "workshop_paper", "query": "SELECT Author FROM submission WHERE College = \"Florida\" OR College = \"Temple\"", "query_toks": [ "SELECT", "Author", "FROM", "submission", "WHERE", "College", "=", "``", "Florida", "''", "OR", "College", "=", "``", "Temple", "''" ], "query_toks_no_value": [ "select", "author", "from", "submission", "where", "college", "=", "value", "or", "college", "=", "value" ], "question": "Which authors with submissions are from college \"Florida\" or \"Temple\"?", "question_toks": [ "which", "author", "with", "submission", "are", "from", "college", "'", "florida", "'", "or", "'", "temple", "'", "?" ], "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, 8, false ], null ], "\"Florida\"", null ], "or", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Temple\"", null ] ] }, "names": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Which", "authors", "with", "submissions", "are", "from", "college", "``", "Florida", "''", "or", "``", "Temple", "''", "?" ], "question_arg": [ [ "which" ], [ "author" ], [ "with" ], [ "submission" ], [ "are" ], [ "from" ], [ "college" ], [ "'" ], [ "florida" ], [ "'" ], [ "or" ], [ "'" ], [ "temple" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "author", "NN" ], [ "with", "IN" ], [ "submission", "NN" ], [ "are", "VBP" ], [ "from", "IN" ], [ "college", "NN" ], [ "'", "''" ], [ "florida", "JJ" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "temple", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Temple", "Florida" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(1) Filter(2) A(0) C(8) T(1) V(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "workshop_paper", "query": "SELECT avg(Scores) FROM submission", "query_toks": [ "SELECT", "avg", "(", "Scores", ")", "FROM", "submission" ], "query_toks_no_value": [ "select", "avg", "(", "scores", ")", "from", "submission" ], "question": "What is the average score of submissions?", "question_toks": [ "what", "is", "average", "score", "of", "submission", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "average", "score", "of", "submissions", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "score" ], [ "of" ], [ "submission" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "score", "NN" ], [ "of", "IN" ], [ "submission", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(6) T(1)" }, { "db_id": "workshop_paper", "query": "SELECT avg(Scores) FROM submission", "query_toks": [ "SELECT", "avg", "(", "Scores", ")", "FROM", "submission" ], "query_toks_no_value": [ "select", "avg", "(", "scores", ")", "from", "submission" ], "question": "Compute the average score of submissions.", "question_toks": [ "compute", "average", "score", "of", "submission", "." ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Compute", "the", "average", "score", "of", "submissions", "." ], "question_arg": [ [ "compute" ], [ "average" ], [ "score" ], [ "of" ], [ "submission" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "compute", "JJ" ], [ "average", "JJ" ], [ "score", "NN" ], [ "of", "IN" ], [ "submission", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(6) T(1)" }, { "db_id": "workshop_paper", "query": "SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1", "query_toks": [ "SELECT", "Author", "FROM", "submission", "ORDER", "BY", "Scores", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "author", "from", "submission", "order", "by", "scores", "desc", "limit", "value" ], "question": "What is the author of the submission with the highest score?", "question_toks": [ "what", "is", "author", "of", "submission", "with", "highest", "score", "?" ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "author", "of", "the", "submission", "with", "the", "highest", "score", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "author" ], [ "of" ], [ "submission" ], [ "with" ], [ "highest" ], [ "score" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "author", "NN" ], [ "of", "IN" ], [ "submission", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "score", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(1) Sup(0) A(0) C(6) T(1)" }, { "db_id": "workshop_paper", "query": "SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1", "query_toks": [ "SELECT", "Author", "FROM", "submission", "ORDER", "BY", "Scores", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "author", "from", "submission", "order", "by", "scores", "desc", "limit", "value" ], "question": "Find the author who achieved the highest score in a submission.", "question_toks": [ "find", "author", "who", "achieved", "highest", "score", "in", "a", "submission", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Find", "the", "author", "who", "achieved", "the", "highest", "score", "in", "a", "submission", "." ], "question_arg": [ [ "find" ], [ "author" ], [ "who" ], [ "achieved" ], [ "highest" ], [ "score" ], [ "in" ], [ "a" ], [ "submission" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "author", "NN" ], [ "who", "WP" ], [ "achieved", "VBD" ], [ "highest", "JJS" ], [ "score", "NN" ], [ "in", "IN" ], [ "a", "DT" ], [ "submission", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(1) Sup(0) A(0) C(6) T(1)" }, { "db_id": "workshop_paper", "query": "SELECT College , COUNT(*) FROM submission GROUP BY College", "query_toks": [ "SELECT", "College", ",", "COUNT", "(", "*", ")", "FROM", "submission", "GROUP", "BY", "College" ], "query_toks_no_value": [ "select", "college", ",", "count", "(", "*", ")", "from", "submission", "group", "by", "college" ], "question": "Show different colleges along with the number of authors of submission from each college.", "question_toks": [ "show", "different", "college", "along", "with", "number", "of", "author", "of", "submission", "from", "each", "college", "." ], "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": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Show", "different", "colleges", "along", "with", "the", "number", "of", "authors", "of", "submission", "from", "each", "college", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "college" ], [ "along" ], [ "with" ], [ "number" ], [ "of" ], [ "author" ], [ "of" ], [ "submission" ], [ "from" ], [ "each" ], [ "college" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "different", "JJ" ], [ "college", "NN" ], [ "along", "IN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ "of", "IN" ], [ "submission", "NN" ], [ "from", "IN" ], [ "each", "DT" ], [ "college", "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": "workshop_paper", "query": "SELECT College , COUNT(*) FROM submission GROUP BY College", "query_toks": [ "SELECT", "College", ",", "COUNT", "(", "*", ")", "FROM", "submission", "GROUP", "BY", "College" ], "query_toks_no_value": [ "select", "college", ",", "count", "(", "*", ")", "from", "submission", "group", "by", "college" ], "question": "For each college, return the college name and the count of authors with submissions from that college.", "question_toks": [ "for", "each", "college", ",", "return", "college", "name", "and", "count", "of", "author", "with", "submission", "from", "that", "college", "." ], "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": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "For", "each", "college", ",", "return", "the", "college", "name", "and", "the", "count", "of", "authors", "with", "submissions", "from", "that", "college", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "college" ], [ "," ], [ "return" ], [ "college" ], [ "name" ], [ "and" ], [ "count" ], [ "of" ], [ "author" ], [ "with" ], [ "submission" ], [ "from" ], [ "that" ], [ "college" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "college", "NN" ], [ ",", "," ], [ "return", "VBP" ], [ "college", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "count", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ "with", "IN" ], [ "submission", "NN" ], [ "from", "IN" ], [ "that", "DT" ], [ "college", "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": "workshop_paper", "query": "SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "College", "FROM", "submission", "GROUP", "BY", "College", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "college", "from", "submission", "group", "by", "college", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the most common college of authors of submissions.", "question_toks": [ "show", "most", "common", "college", "of", "author", "of", "submission", "." ], "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": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Show", "the", "most", "common", "college", "of", "authors", "of", "submissions", "." ], "question_arg": [ [ "show" ], [ "most" ], [ "common" ], [ "college" ], [ "of" ], [ "author" ], [ "of" ], [ "submission" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "college", "NN" ], [ "of", "IN" ], [ "author", "NN" ], [ "of", "IN" ], [ "submission", "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": "workshop_paper", "query": "SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "College", "FROM", "submission", "GROUP", "BY", "College", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "college", "from", "submission", "group", "by", "college", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which college has the most authors with submissions?", "question_toks": [ "which", "college", "ha", "most", "author", "with", "submission", "?" ], "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": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Which", "college", "has", "the", "most", "authors", "with", "submissions", "?" ], "question_arg": [ [ "which" ], [ "college" ], [ "ha" ], [ "most" ], [ "author" ], [ "with" ], [ "submission" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "college", "NN" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "author", "NN" ], [ "with", "IN" ], [ "submission", "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": "workshop_paper", "query": "SELECT College FROM submission WHERE Scores > 90 INTERSECT SELECT College FROM submission WHERE Scores < 80", "query_toks": [ "SELECT", "College", "FROM", "submission", "WHERE", "Scores", ">", "90", "INTERSECT", "SELECT", "College", "FROM", "submission", "WHERE", "Scores", "<", "80" ], "query_toks_no_value": [ "select", "college", "from", "submission", "where", "scores", ">", "value", "intersect", "select", "college", "from", "submission", "where", "scores", "<", "value" ], "question": "Show the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80.", "question_toks": [ "show", "college", "that", "have", "both", "author", "with", "submission", "score", "larger", "than", "90", "and", "author", "with", "submission", "score", "smaller", "than", "80", "." ], "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, 6, false ], null ], 80.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], 90.0, null ] ] }, "names": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Show", "the", "colleges", "that", "have", "both", "authors", "with", "submission", "score", "larger", "than", "90", "and", "authors", "with", "submission", "score", "smaller", "than", "80", "." ], "question_arg": [ [ "show" ], [ "college" ], [ "that" ], [ "have" ], [ "both" ], [ "author" ], [ "with" ], [ "submission" ], [ "score" ], [ "larger" ], [ "than" ], [ "90" ], [ "and" ], [ "author" ], [ "with" ], [ "submission" ], [ "score" ], [ "smaller" ], [ "than" ], [ "80" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "college", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "author", "NN" ], [ "with", "IN" ], [ "submission", "NN" ], [ "score", "NN" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "90", "CD" ], [ "and", "CC" ], [ "author", "NN" ], [ "with", "IN" ], [ "submission", "NN" ], [ "score", "RB" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "80", "CD" ], [ ".", "." ] ], "values": [ "80", "90" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(5) A(0) C(6) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(4) A(0) C(6) T(1) V(0)" }, { "db_id": "workshop_paper", "query": "SELECT College FROM submission WHERE Scores > 90 INTERSECT SELECT College FROM submission WHERE Scores < 80", "query_toks": [ "SELECT", "College", "FROM", "submission", "WHERE", "Scores", ">", "90", "INTERSECT", "SELECT", "College", "FROM", "submission", "WHERE", "Scores", "<", "80" ], "query_toks_no_value": [ "select", "college", "from", "submission", "where", "scores", ">", "value", "intersect", "select", "college", "from", "submission", "where", "scores", "<", "value" ], "question": "Which colleges have both authors with submission score above 90 and authors with submission score below 80?", "question_toks": [ "which", "college", "have", "both", "author", "with", "submission", "score", "above", "90", "and", "author", "with", "submission", "score", "below", "80", "?" ], "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, 6, false ], null ], 80.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], 90.0, null ] ] }, "names": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Which", "colleges", "have", "both", "authors", "with", "submission", "score", "above", "90", "and", "authors", "with", "submission", "score", "below", "80", "?" ], "question_arg": [ [ "which" ], [ "college" ], [ "have" ], [ "both" ], [ "author" ], [ "with" ], [ "submission" ], [ "score" ], [ "above" ], [ "90" ], [ "and" ], [ "author" ], [ "with" ], [ "submission" ], [ "score" ], [ "below" ], [ "80" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "college", "NN" ], [ "have", "VBP" ], [ "both", "DT" ], [ "author", "NN" ], [ "with", "IN" ], [ "submission", "NN" ], [ "score", "NN" ], [ "above", "IN" ], [ "90", "CD" ], [ "and", "CC" ], [ "author", "NN" ], [ "with", "IN" ], [ "submission", "NN" ], [ "score", "NN" ], [ "below", "IN" ], [ "80", "CD" ], [ "?", "." ] ], "values": [ "80", "90" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(5) A(0) C(6) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(4) A(0) C(6) T(1) V(0)" }, { "db_id": "workshop_paper", "query": "SELECT T2.Author , T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID", "query_toks": [ "SELECT", "T2.Author", ",", "T1.Result", "FROM", "acceptance", "AS", "T1", "JOIN", "submission", "AS", "T2", "ON", "T1.Submission_ID", "=", "T2.Submission_ID" ], "query_toks_no_value": [ "select", "t2", ".", "author", ",", "t1", ".", "result", "from", "acceptance", "as", "t1", "join", "submission", "as", "t2", "on", "t1", ".", "submission_id", "=", "t2", ".", "submission_id" ], "question": "Show the authors of submissions and the acceptance results of their submissions.", "question_toks": [ "show", "author", "of", "submission", "and", "acceptance", "result", "of", "their", "submission", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, 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, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Show", "the", "authors", "of", "submissions", "and", "the", "acceptance", "results", "of", "their", "submissions", "." ], "question_arg": [ [ "show" ], [ "author" ], [ "of" ], [ "submission" ], [ "and" ], [ "acceptance" ], [ "result" ], [ "of" ], [ "their" ], [ "submission" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "author", "NN" ], [ "of", "IN" ], [ "submission", "NN" ], [ "and", "CC" ], [ "acceptance", "NN" ], [ "result", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "submission", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(1) A(0) C(9) T(2)" }, { "db_id": "workshop_paper", "query": "SELECT T2.Author , T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID", "query_toks": [ "SELECT", "T2.Author", ",", "T1.Result", "FROM", "acceptance", "AS", "T1", "JOIN", "submission", "AS", "T2", "ON", "T1.Submission_ID", "=", "T2.Submission_ID" ], "query_toks_no_value": [ "select", "t2", ".", "author", ",", "t1", ".", "result", "from", "acceptance", "as", "t1", "join", "submission", "as", "t2", "on", "t1", ".", "submission_id", "=", "t2", ".", "submission_id" ], "question": "For each submission, find its author and acceptance result.", "question_toks": [ "for", "each", "submission", ",", "find", "it", "author", "and", "acceptance", "result", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, 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, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "For", "each", "submission", ",", "find", "its", "author", "and", "acceptance", "result", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "submission" ], [ "," ], [ "find" ], [ "it" ], [ "author" ], [ "and" ], [ "acceptance" ], [ "result" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "submission", "NN" ], [ ",", "," ], [ "find", "VB" ], [ "it", "PRP" ], [ "author", "RB" ], [ "and", "CC" ], [ "acceptance", "RB" ], [ "result", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(1) A(0) C(9) T(2)" }, { "db_id": "workshop_paper", "query": "SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Result", "FROM", "acceptance", "AS", "T1", "JOIN", "submission", "AS", "T2", "ON", "T1.Submission_ID", "=", "T2.Submission_ID", "ORDER", "BY", "T2.Scores", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "result", "from", "acceptance", "as", "t1", "join", "submission", "as", "t2", "on", "t1", ".", "submission_id", "=", "t2", ".", "submission_id", "order", "by", "t2", ".", "scores", "desc", "limit", "value" ], "question": "Show the result of the submission with the highest score.", "question_toks": [ "show", "result", "of", "submission", "with", "highest", "score", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 5, 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, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Show", "the", "result", "of", "the", "submission", "with", "the", "highest", "score", "." ], "question_arg": [ [ "show" ], [ "result" ], [ "of" ], [ "submission" ], [ "with" ], [ "highest" ], [ "score" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "result", "NN" ], [ "of", "IN" ], [ "submission", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "score", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(2) Sup(0) A(0) C(6) T(1)" }, { "db_id": "workshop_paper", "query": "SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Result", "FROM", "acceptance", "AS", "T1", "JOIN", "submission", "AS", "T2", "ON", "T1.Submission_ID", "=", "T2.Submission_ID", "ORDER", "BY", "T2.Scores", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "result", "from", "acceptance", "as", "t1", "join", "submission", "as", "t2", "on", "t1", ".", "submission_id", "=", "t2", ".", "submission_id", "order", "by", "t2", ".", "scores", "desc", "limit", "value" ], "question": "Which submission received the highest score in acceptance result. Show me the result.", "question_toks": [ "which", "submission", "received", "highest", "score", "in", "acceptance", "result", ".", "show", "me", "result", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 5, 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, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Which", "submission", "received", "the", "highest", "score", "in", "acceptance", "result", ".", "Show", "me", "the", "result", "." ], "question_arg": [ [ "which" ], [ "submission" ], [ "received" ], [ "highest" ], [ "score" ], [ "in" ], [ "acceptance" ], [ "result" ], [ "." ], [ "show" ], [ "me" ], [ "result" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "submission", "NN" ], [ "received", "VBD" ], [ "highest", "JJS" ], [ "score", "NN" ], [ "in", "IN" ], [ "acceptance", "NN" ], [ "result", "NN" ], [ ".", "." ], [ "show", "VB" ], [ "me", "PRP" ], [ "result", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(2) Sup(0) A(0) C(6) T(1)" }, { "db_id": "workshop_paper", "query": "SELECT T2.Author , COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author", "query_toks": [ "SELECT", "T2.Author", ",", "COUNT", "(", "DISTINCT", "T1.workshop_id", ")", "FROM", "acceptance", "AS", "T1", "JOIN", "submission", "AS", "T2", "ON", "T1.Submission_ID", "=", "T2.Submission_ID", "GROUP", "BY", "T2.Author" ], "query_toks_no_value": [ "select", "t2", ".", "author", ",", "count", "(", "distinct", "t1", ".", "workshop_id", ")", "from", "acceptance", "as", "t1", "join", "submission", "as", "t2", "on", "t1", ".", "submission_id", "=", "t2", ".", "submission_id", "group", "by", "t2", ".", "author" ], "question": "Show each author and the number of workshops they submitted to.", "question_toks": [ "show", "each", "author", "and", "number", "of", "workshop", "they", "submitted", "to", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Show", "each", "author", "and", "the", "number", "of", "workshops", "they", "submitted", "to", "." ], "question_arg": [ [ "show" ], [ "each" ], [ "author" ], [ "and" ], [ "number" ], [ "of" ], [ "workshop" ], [ "they" ], [ "submitted" ], [ "to" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "each", "DT" ], [ "author", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "workshop", "NN" ], [ "they", "PRP" ], [ "submitted", "VBD" ], [ "to", "TO" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(7) T(1) A(3) C(1) T(2)" }, { "db_id": "workshop_paper", "query": "SELECT T2.Author , COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author", "query_toks": [ "SELECT", "T2.Author", ",", "COUNT", "(", "DISTINCT", "T1.workshop_id", ")", "FROM", "acceptance", "AS", "T1", "JOIN", "submission", "AS", "T2", "ON", "T1.Submission_ID", "=", "T2.Submission_ID", "GROUP", "BY", "T2.Author" ], "query_toks_no_value": [ "select", "t2", ".", "author", ",", "count", "(", "distinct", "t1", ".", "workshop_id", ")", "from", "acceptance", "as", "t1", "join", "submission", "as", "t2", "on", "t1", ".", "submission_id", "=", "t2", ".", "submission_id", "group", "by", "t2", ".", "author" ], "question": "How many workshops did each author submit to? Return the author name and the number of workshops.", "question_toks": [ "how", "many", "workshop", "did", "each", "author", "submit", "to", "?", "return", "author", "name", "and", "number", "of", "workshop", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "How", "many", "workshops", "did", "each", "author", "submit", "to", "?", "Return", "the", "author", "name", "and", "the", "number", "of", "workshops", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "workshop" ], [ "did" ], [ "each" ], [ "author" ], [ "submit" ], [ "to" ], [ "?" ], [ "return" ], [ "author" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "workshop" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "workshop", "NN" ], [ "did", "VBD" ], [ "each", "DT" ], [ "author", "NN" ], [ "submit", "NN" ], [ "to", "TO" ], [ "?", "." ], [ "return", "VB" ], [ "author", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "workshop", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(7) T(1) A(3) C(1) T(2)" }, { "db_id": "workshop_paper", "query": "SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id) > 1", "query_toks": [ "SELECT", "T2.Author", "FROM", "acceptance", "AS", "T1", "JOIN", "submission", "AS", "T2", "ON", "T1.Submission_ID", "=", "T2.Submission_ID", "GROUP", "BY", "T2.Author", "HAVING", "COUNT", "(", "DISTINCT", "T1.workshop_id", ")", ">", "1" ], "query_toks_no_value": [ "select", "t2", ".", "author", "from", "acceptance", "as", "t1", "join", "submission", "as", "t2", "on", "t1", ".", "submission_id", "=", "t2", ".", "submission_id", "group", "by", "t2", ".", "author", "having", "count", "(", "distinct", "t1", ".", "workshop_id", ")", ">", "value" ], "question": "Show the authors who have submissions to more than one workshop.", "question_toks": [ "show", "author", "who", "have", "submission", "to", "more", "than", "one", "workshop", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 3, [ 0, [ 3, 10, true ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Show", "the", "authors", "who", "have", "submissions", "to", "more", "than", "one", "workshop", "." ], "question_arg": [ [ "show" ], [ "author" ], [ "who" ], [ "have" ], [ "submission" ], [ "to" ], [ "more" ], [ "than" ], [ "one" ], [ "workshop" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "author", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "submission", "NN" ], [ "to", "TO" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "workshop", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(0) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(2) Filter(5) A(3) C(1) T(2) V(0)" }, { "db_id": "workshop_paper", "query": "SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id) > 1", "query_toks": [ "SELECT", "T2.Author", "FROM", "acceptance", "AS", "T1", "JOIN", "submission", "AS", "T2", "ON", "T1.Submission_ID", "=", "T2.Submission_ID", "GROUP", "BY", "T2.Author", "HAVING", "COUNT", "(", "DISTINCT", "T1.workshop_id", ")", ">", "1" ], "query_toks_no_value": [ "select", "t2", ".", "author", "from", "acceptance", "as", "t1", "join", "submission", "as", "t2", "on", "t1", ".", "submission_id", "=", "t2", ".", "submission_id", "group", "by", "t2", ".", "author", "having", "count", "(", "distinct", "t1", ".", "workshop_id", ")", ">", "value" ], "question": "Which authors have submitted to more than one workshop?", "question_toks": [ "which", "author", "have", "submitted", "to", "more", "than", "one", "workshop", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 3, [ 0, [ 3, 10, true ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Which", "authors", "have", "submitted", "to", "more", "than", "one", "workshop", "?" ], "question_arg": [ [ "which" ], [ "author" ], [ "have" ], [ "submitted" ], [ "to" ], [ "more" ], [ "than" ], [ "one" ], [ "workshop" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "author", "NN" ], [ "have", "VBP" ], [ "submitted", "VBN" ], [ "to", "TO" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "workshop", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(0) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(2) Filter(5) A(3) C(1) T(2) V(0)" }, { "db_id": "workshop_paper", "query": "SELECT Date , Venue FROM workshop ORDER BY Venue", "query_toks": [ "SELECT", "Date", ",", "Venue", "FROM", "workshop", "ORDER", "BY", "Venue" ], "query_toks_no_value": [ "select", "date", ",", "venue", "from", "workshop", "order", "by", "venue" ], "question": "Show the date and venue of each workshop in ascending alphabetical order of the venue.", "question_toks": [ "show", "date", "and", "venue", "of", "each", "workshop", "in", "ascending", "alphabetical", "order", "of", "venue", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Show", "the", "date", "and", "venue", "of", "each", "workshop", "in", "ascending", "alphabetical", "order", "of", "the", "venue", "." ], "question_arg": [ [ "show" ], [ "date" ], [ "and" ], [ "venue" ], [ "of" ], [ "each" ], [ "workshop" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "venue" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "date", "NN" ], [ "and", "CC" ], [ "venue", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "workshop", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "venue", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Order(1) A(0) C(3) T(0)" }, { "db_id": "workshop_paper", "query": "SELECT Date , Venue FROM workshop ORDER BY Venue", "query_toks": [ "SELECT", "Date", ",", "Venue", "FROM", "workshop", "ORDER", "BY", "Venue" ], "query_toks_no_value": [ "select", "date", ",", "venue", "from", "workshop", "order", "by", "venue" ], "question": "Sort the each workshop in alphabetical order of the venue. Return the date and venue of each workshop.", "question_toks": [ "sort", "each", "workshop", "in", "alphabetical", "order", "of", "venue", ".", "return", "date", "and", "venue", "of", "each", "workshop", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Sort", "the", "each", "workshop", "in", "alphabetical", "order", "of", "the", "venue", ".", "Return", "the", "date", "and", "venue", "of", "each", "workshop", "." ], "question_arg": [ [ "sort" ], [ "each" ], [ "workshop" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "venue" ], [ "." ], [ "return" ], [ "date" ], [ "and" ], [ "venue" ], [ "of" ], [ "each" ], [ "workshop" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "sort", "NN" ], [ "each", "DT" ], [ "workshop", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "venue", "NN" ], [ ".", "." ], [ "return", "NN" ], [ "date", "NN" ], [ "and", "CC" ], [ "venue", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "workshop", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Order(1) A(0) C(3) T(0)" }, { "db_id": "workshop_paper", "query": "SELECT Author FROM submission WHERE Submission_ID NOT IN (SELECT Submission_ID FROM acceptance)", "query_toks": [ "SELECT", "Author", "FROM", "submission", "WHERE", "Submission_ID", "NOT", "IN", "(", "SELECT", "Submission_ID", "FROM", "acceptance", ")" ], "query_toks_no_value": [ "select", "author", "from", "submission", "where", "submission_id", "not", "in", "(", "select", "submission_id", "from", "acceptance", ")" ], "question": "List the authors who do not have submission to any workshop.", "question_toks": [ "list", "author", "who", "do", "not", "have", "submission", "to", "any", "workshop", "." ], "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, 5, 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": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "List", "the", "authors", "who", "do", "not", "have", "submission", "to", "any", "workshop", "." ], "question_arg": [ [ "list" ], [ "author" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "submission" ], [ "to" ], [ "any" ], [ "workshop" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "author", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "submission", "NN" ], [ "to", "TO" ], [ "any", "DT" ], [ "workshop", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(19) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(2)" }, { "db_id": "workshop_paper", "query": "SELECT Author FROM submission WHERE Submission_ID NOT IN (SELECT Submission_ID FROM acceptance)", "query_toks": [ "SELECT", "Author", "FROM", "submission", "WHERE", "Submission_ID", "NOT", "IN", "(", "SELECT", "Submission_ID", "FROM", "acceptance", ")" ], "query_toks_no_value": [ "select", "author", "from", "submission", "where", "submission_id", "not", "in", "(", "select", "submission_id", "from", "acceptance", ")" ], "question": "Which authors did not submit to any workshop?", "question_toks": [ "which", "author", "did", "not", "submit", "to", "any", "workshop", "?" ], "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, 5, 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": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "submission id", "workshop id", "result" ], "table_names": [ "workshop", "submission", "acceptance" ], "col_set": [ "*", "workshop id", "date", "venue", "name", "submission id", "scores", "author", "college", "result" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 1, "1": 1, "9": 9, "5": 5 }, "origin_question_toks": [ "Which", "authors", "did", "not", "submit", "to", "any", "workshop", "?" ], "question_arg": [ [ "which" ], [ "author" ], [ "did" ], [ "not" ], [ "submit" ], [ "to" ], [ "any" ], [ "workshop" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "author", "NN" ], [ "did", "VBD" ], [ "not", "RB" ], [ "submit", "VB" ], [ "to", "TO" ], [ "any", "DT" ], [ "workshop", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(19) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(2)" }, { "db_id": "tracking_share_transactions", "query": "SELECT count(*) FROM INVESTORS", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "INVESTORS" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "investors" ], "question": "Find the number of investors in total.", "question_toks": [ "find", "number", "of", "investor", "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": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Find", "the", "number", "of", "investors", "in", "total", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "investor" ], [ "in" ], [ "total" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "investor", "NN" ], [ "in", "IN" ], [ "total", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "tracking_share_transactions", "query": "SELECT Investor_details FROM INVESTORS", "query_toks": [ "SELECT", "Investor_details", "FROM", "INVESTORS" ], "query_toks_no_value": [ "select", "investor_details", "from", "investors" ], "question": "Show all investor details.", "question_toks": [ "show", "all", "investor", "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": [] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "all", "investor", "details", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "investor", "detail" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "investor", "NN" ], [ "detail", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "tracking_share_transactions", "query": "SELECT DISTINCT lot_details FROM LOTS", "query_toks": [ "SELECT", "DISTINCT", "lot_details", "FROM", "LOTS" ], "query_toks_no_value": [ "select", "distinct", "lot_details", "from", "lots" ], "question": "Show all distinct lot details.", "question_toks": [ "show", "all", "distinct", "lot", "detail", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "all", "distinct", "lot", "details", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "distinct" ], [ "lot", "detail" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "lot", "NN" ], [ "detail", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(4) T(1)" }, { "db_id": "tracking_share_transactions", "query": "SELECT max(amount_of_transaction) FROM TRANSACTIONS", "query_toks": [ "SELECT", "max", "(", "amount_of_transaction", ")", "FROM", "TRANSACTIONS" ], "query_toks_no_value": [ "select", "max", "(", "amount_of_transaction", ")", "from", "transactions" ], "question": "Show the maximum amount of transaction.", "question_toks": [ "show", "maximum", "amount", "of", "transaction", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "maximum", "amount", "of", "transaction", "." ], "question_arg": [ [ "show" ], [ "maximum" ], [ "amount", "of", "transaction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "maximum", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(1) C(9) T(3)" }, { "db_id": "tracking_share_transactions", "query": "SELECT date_of_transaction , share_count FROM TRANSACTIONS", "query_toks": [ "SELECT", "date_of_transaction", ",", "share_count", "FROM", "TRANSACTIONS" ], "query_toks_no_value": [ "select", "date_of_transaction", ",", "share_count", "from", "transactions" ], "question": "Show all date and share count of transactions.", "question_toks": [ "show", "all", "date", "and", "share", "count", "of", "transaction", "." ], "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, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "all", "date", "and", "share", "count", "of", "transactions", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "date" ], [ "and" ], [ "share", "count" ], [ "of" ], [ "transaction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "date", "NN" ], [ "and", "CC" ], [ "share", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(3) A(0) C(10) T(3)" }, { "db_id": "tracking_share_transactions", "query": "SELECT sum(share_count) FROM TRANSACTIONS", "query_toks": [ "SELECT", "sum", "(", "share_count", ")", "FROM", "TRANSACTIONS" ], "query_toks_no_value": [ "select", "sum", "(", "share_count", ")", "from", "transactions" ], "question": "What is the total share of transactions?", "question_toks": [ "what", "is", "total", "share", "of", "transaction", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "What", "is", "the", "total", "share", "of", "transactions", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "share" ], [ "of" ], [ "transaction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "share", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(10) T(3)" }, { "db_id": "tracking_share_transactions", "query": "SELECT transaction_id FROM TRANSACTIONS WHERE transaction_type_code = 'PUR'", "query_toks": [ "SELECT", "transaction_id", "FROM", "TRANSACTIONS", "WHERE", "transaction_type_code", "=", "'PUR", "'" ], "query_toks_no_value": [ "select", "transaction_id", "from", "transactions", "where", "transaction_type_code", "=", "value" ], "question": "Show all transaction ids with transaction code 'PUR'.", "question_toks": [ "show", "all", "transaction", "id", "with", "transaction", "code", "'", "pur", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"PUR\"", null ] ] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "all", "transaction", "ids", "with", "transaction", "code", "'PUR", "'", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "transaction", "id" ], [ "with" ], [ "transaction" ], [ "code" ], [ "'" ], [ "pur" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "transaction", "NN" ], [ "id", "NN" ], [ "with", "IN" ], [ "transaction", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "pur", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "PUR" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(3) Filter(2) A(0) C(5) T(3) V(0)" }, { "db_id": "tracking_share_transactions", "query": "SELECT date_of_transaction FROM TRANSACTIONS WHERE transaction_type_code = \"SALE\"", "query_toks": [ "SELECT", "date_of_transaction", "FROM", "TRANSACTIONS", "WHERE", "transaction_type_code", "=", "``", "SALE", "''" ], "query_toks_no_value": [ "select", "date_of_transaction", "from", "transactions", "where", "transaction_type_code", "=", "value" ], "question": "Show all dates of transactions whose type code is \"SALE\".", "question_toks": [ "show", "all", "date", "of", "transaction", "whose", "type", "code", "is", "'", "sale", "'", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"SALE\"", null ] ] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "all", "dates", "of", "transactions", "whose", "type", "code", "is", "``", "SALE", "''", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "date", "of", "transaction" ], [ "whose" ], [ "transaction", "type", "code" ], [ "is" ], [ "'" ], [ "sale" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "date", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "whose", "WP$" ], [ "type", "NN" ], [ "code", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "sale", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "SALE", "Sale" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(2) A(0) C(5) T(3) V(0)" }, { "db_id": "tracking_share_transactions", "query": "SELECT avg(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code = \"SALE\"", "query_toks": [ "SELECT", "avg", "(", "amount_of_transaction", ")", "FROM", "TRANSACTIONS", "WHERE", "transaction_type_code", "=", "``", "SALE", "''" ], "query_toks_no_value": [ "select", "avg", "(", "amount_of_transaction", ")", "from", "transactions", "where", "transaction_type_code", "=", "value" ], "question": "Show the average amount of transactions with type code \"SALE\".", "question_toks": [ "show", "average", "amount", "of", "transaction", "with", "type", "code", "'", "sale", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"SALE\"", null ] ] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "average", "amount", "of", "transactions", "with", "type", "code", "``", "SALE", "''", "." ], "question_arg": [ [ "show" ], [ "average" ], [ "amount", "of", "transaction" ], [ "with" ], [ "transaction", "type", "code" ], [ "'" ], [ "sale" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "average", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "with", "IN" ], [ "type", "JJ" ], [ "code", "NN" ], [ "'", "''" ], [ "sale", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "SALE", "Sale" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(9) T(3) Filter(2) A(0) C(5) T(3) V(0)" }, { "db_id": "tracking_share_transactions", "query": "SELECT transaction_type_description FROM Ref_Transaction_Types WHERE transaction_type_code = \"PUR\"", "query_toks": [ "SELECT", "transaction_type_description", "FROM", "Ref_Transaction_Types", "WHERE", "transaction_type_code", "=", "``", "PUR", "''" ], "query_toks_no_value": [ "select", "transaction_type_description", "from", "ref_transaction_types", "where", "transaction_type_code", "=", "value" ], "question": "Show the description of transaction type with code \"PUR\".", "question_toks": [ "show", "description", "of", "transaction", "type", "with", "code", "'", "pur", "'", "." ], "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 ], "\"PUR\"", null ] ] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "description", "of", "transaction", "type", "with", "code", "``", "PUR", "''", "." ], "question_arg": [ [ "show" ], [ "description" ], [ "of" ], [ "transaction" ], [ "type" ], [ "with" ], [ "code" ], [ "'" ], [ "pur" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "description", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "type", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "'", "''" ], [ "pur", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "PUR" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(2) A(0) C(5) T(2) V(0)" }, { "db_id": "tracking_share_transactions", "query": "SELECT min(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code = \"PUR\" AND share_count > 50", "query_toks": [ "SELECT", "min", "(", "amount_of_transaction", ")", "FROM", "TRANSACTIONS", "WHERE", "transaction_type_code", "=", "``", "PUR", "''", "AND", "share_count", ">", "50" ], "query_toks_no_value": [ "select", "min", "(", "amount_of_transaction", ")", "from", "transactions", "where", "transaction_type_code", "=", "value", "and", "share_count", ">", "value" ], "question": "Show the minimum amount of transactions whose type code is \"PUR\" and whose share count is bigger than 50.", "question_toks": [ "show", "minimum", "amount", "of", "transaction", "whose", "type", "code", "is", "'", "pur", "'", "and", "whose", "share", "count", "is", "bigger", "than", "50", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"PUR\"", null ], "and", [ false, 3, [ 0, [ 0, 13, false ], null ], 50.0, null ] ] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "minimum", "amount", "of", "transactions", "whose", "type", "code", "is", "``", "PUR", "''", "and", "whose", "share", "count", "is", "bigger", "than", "50", "." ], "question_arg": [ [ "show" ], [ "minimum" ], [ "amount", "of", "transaction" ], [ "whose" ], [ "transaction", "type", "code" ], [ "is" ], [ "'" ], [ "pur" ], [ "'" ], [ "and" ], [ "whose" ], [ "share", "count" ], [ "is" ], [ "bigger" ], [ "than" ], [ "50" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "minimum", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "whose", "WP$" ], [ "type", "NN" ], [ "code", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "pur", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "whose", "WP$" ], [ "share", "NN" ], [ "count", "NN" ], [ "is", "VBZ" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "50", "CD" ], [ ".", "." ] ], "values": [ "PUR", "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(2) C(9) T(3) Filter(0) Filter(2) A(0) C(5) T(3) V(0) Filter(5) A(0) C(10) T(3) V(1)" }, { "db_id": "tracking_share_transactions", "query": "SELECT max(share_count) FROM TRANSACTIONS WHERE amount_of_transaction < 10000", "query_toks": [ "SELECT", "max", "(", "share_count", ")", "FROM", "TRANSACTIONS", "WHERE", "amount_of_transaction", "<", "10000" ], "query_toks_no_value": [ "select", "max", "(", "share_count", ")", "from", "transactions", "where", "amount_of_transaction", "<", "value" ], "question": "Show the maximum share count of transactions where the amount is smaller than 10000", "question_toks": [ "show", "maximum", "share", "count", "of", "transaction", "where", "amount", "is", "smaller", "than", "10000" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 12, false ], null ], 10000.0, null ] ] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "maximum", "share", "count", "of", "transactions", "where", "the", "amount", "is", "smaller", "than", "10000" ], "question_arg": [ [ "show" ], [ "maximum" ], [ "share", "count" ], [ "of" ], [ "transaction" ], [ "where" ], [ "amount" ], [ "is" ], [ "smaller" ], [ "than" ], [ "10000" ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ] ], "nltk_pos": [ [ "show", "NN" ], [ "maximum", "JJ" ], [ "share", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "where", "WRB" ], [ "amount", "NN" ], [ "is", "VBZ" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "10000", "CD" ] ], "values": [ "10000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(1) C(10) T(3) Filter(4) A(0) C(9) T(3) V(0)" }, { "db_id": "tracking_share_transactions", "query": "SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count > 100 OR amount_of_transaction > 1000", "query_toks": [ "SELECT", "date_of_transaction", "FROM", "TRANSACTIONS", "WHERE", "share_count", ">", "100", "OR", "amount_of_transaction", ">", "1000" ], "query_toks_no_value": [ "select", "date_of_transaction", "from", "transactions", "where", "share_count", ">", "value", "or", "amount_of_transaction", ">", "value" ], "question": "Show the dates of transactions if the share count is bigger than 100 or the amount is bigger than 1000.", "question_toks": [ "show", "date", "of", "transaction", "if", "share", "count", "is", "bigger", "than", "100", "or", "amount", "is", "bigger", "than", "1000", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 100.0, null ], "or", [ false, 3, [ 0, [ 0, 12, false ], null ], 1000.0, null ] ] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "dates", "of", "transactions", "if", "the", "share", "count", "is", "bigger", "than", "100", "or", "the", "amount", "is", "bigger", "than", "1000", "." ], "question_arg": [ [ "show" ], [ "date", "of", "transaction" ], [ "if" ], [ "share", "count" ], [ "is" ], [ "bigger" ], [ "than" ], [ "100" ], [ "or" ], [ "amount" ], [ "is" ], [ "bigger" ], [ "than" ], [ "1000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "if", "IN" ], [ "share", "NN" ], [ "count", "NN" ], [ "is", "VBZ" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "or", "CC" ], [ "amount", "NN" ], [ "is", "VBZ" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ ".", "." ] ], "values": [ "1000", "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(1) Filter(5) A(0) C(10) T(3) V(1) Filter(5) A(0) C(9) T(3) V(0)" }, { "db_id": "tracking_share_transactions", "query": "SELECT T1.transaction_type_description , T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 10", "query_toks": [ "SELECT", "T1.transaction_type_description", ",", "T2.date_of_transaction", "FROM", "Ref_Transaction_Types", "AS", "T1", "JOIN", "TRANSACTIONS", "AS", "T2", "ON", "T1.transaction_type_code", "=", "T2.transaction_type_code", "WHERE", "T2.share_count", "<", "10" ], "query_toks_no_value": [ "select", "t1", ".", "transaction_type_description", ",", "t2", ".", "date_of_transaction", "from", "ref_transaction_types", "as", "t1", "join", "transactions", "as", "t2", "on", "t1", ".", "transaction_type_code", "=", "t2", ".", "transaction_type_code", "where", "t2", ".", "share_count", "<", "value" ], "question": "Show the transaction type descriptions and dates if the share count is smaller than 10.", "question_toks": [ "show", "transaction", "type", "description", "and", "date", "if", "share", "count", "is", "smaller", "than", "10", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "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, 4, [ 0, [ 0, 13, false ], null ], 10.0, null ] ] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "transaction", "type", "descriptions", "and", "dates", "if", "the", "share", "count", "is", "smaller", "than", "10", "." ], "question_arg": [ [ "show" ], [ "transaction", "type", "description" ], [ "and" ], [ "date" ], [ "if" ], [ "share", "count" ], [ "is" ], [ "smaller" ], [ "than" ], [ "10" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "transaction", "NN" ], [ "type", "NN" ], [ "description", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "if", "IN" ], [ "share", "NN" ], [ "count", "NN" ], [ "is", "VBZ" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ ".", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(2) A(0) C(8) T(3) Filter(4) A(0) C(10) T(3) V(0)" }, { "db_id": "tracking_share_transactions", "query": "SELECT T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id WHERE T2.share_count > 100", "query_toks": [ "SELECT", "T1.Investor_details", "FROM", "INVESTORS", "AS", "T1", "JOIN", "TRANSACTIONS", "AS", "T2", "ON", "T1.investor_id", "=", "T2.investor_id", "WHERE", "T2.share_count", ">", "100" ], "query_toks_no_value": [ "select", "t1", ".", "investor_details", "from", "investors", "as", "t1", "join", "transactions", "as", "t2", "on", "t1", ".", "investor_id", "=", "t2", ".", "investor_id", "where", "t2", ".", "share_count", ">", "value" ], "question": "Show details of all investors if they make any transaction with share count greater than 100.", "question_toks": [ "show", "detail", "of", "all", "investor", "if", "they", "make", "any", "transaction", "with", "share", "count", "greater", "than", "100", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 100.0, null ] ] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "details", "of", "all", "investors", "if", "they", "make", "any", "transaction", "with", "share", "count", "greater", "than", "100", "." ], "question_arg": [ [ "show" ], [ "detail" ], [ "of" ], [ "all" ], [ "investor" ], [ "if" ], [ "they" ], [ "make" ], [ "any" ], [ "transaction" ], [ "with" ], [ "share", "count" ], [ "greater" ], [ "than" ], [ "100" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "detail", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "investor", "NN" ], [ "if", "IN" ], [ "they", "PRP" ], [ "make", "VBP" ], [ "any", "DT" ], [ "transaction", "NN" ], [ "with", "IN" ], [ "share", "NN" ], [ "count", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ ".", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(5) A(0) C(10) T(3) V(0)" }, { "db_id": "tracking_share_transactions", "query": "SELECT COUNT(DISTINCT transaction_type_code) FROM TRANSACTIONS", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "transaction_type_code", ")", "FROM", "TRANSACTIONS" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "transaction_type_code", ")", "from", "transactions" ], "question": "How many distinct transaction types are used in the transactions?", "question_toks": [ "how", "many", "distinct", "transaction", "type", "are", "used", "in", "transaction", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "How", "many", "distinct", "transaction", "types", "are", "used", "in", "the", "transactions", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "transaction" ], [ "type" ], [ "are" ], [ "used" ], [ "in" ], [ "transaction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "transaction", "NN" ], [ "type", "NN" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "in", "IN" ], [ "transaction", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(5) T(3)" }, { "db_id": "tracking_share_transactions", "query": "SELECT lot_details , investor_id FROM LOTS", "query_toks": [ "SELECT", "lot_details", ",", "investor_id", "FROM", "LOTS" ], "query_toks_no_value": [ "select", "lot_details", ",", "investor_id", "from", "lots" ], "question": "Return the lot details and investor ids.", "question_toks": [ "return", "lot", "detail", "and", "investor", "id", "." ], "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, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Return", "the", "lot", "details", "and", "investor", "ids", "." ], "question_arg": [ [ "return" ], [ "lot", "detail" ], [ "and" ], [ "investor", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "lot", "NN" ], [ "detail", "NN" ], [ "and", "CC" ], [ "investor", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(1) A(0) C(1) T(1)" }, { "db_id": "tracking_share_transactions", "query": "SELECT T2.lot_details FROM INVESTORS AS T1 JOIN LOTS AS T2 ON T1.investor_id = T2.investor_id WHERE T1.Investor_details = \"l\"", "query_toks": [ "SELECT", "T2.lot_details", "FROM", "INVESTORS", "AS", "T1", "JOIN", "LOTS", "AS", "T2", "ON", "T1.investor_id", "=", "T2.investor_id", "WHERE", "T1.Investor_details", "=", "``", "l", "''" ], "query_toks_no_value": [ "select", "t2", ".", "lot_details", "from", "investors", "as", "t1", "join", "lots", "as", "t2", "on", "t1", ".", "investor_id", "=", "t2", ".", "investor_id", "where", "t1", ".", "investor_details", "=", "value" ], "question": "Return the lot details of lots that belong to investors with details \"l\"?", "question_toks": [ "return", "lot", "detail", "of", "lot", "that", "belong", "to", "investor", "with", "detail", "'", "l", "'", "?" ], "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": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"l\"", null ] ] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Return", "the", "lot", "details", "of", "lots", "that", "belong", "to", "investors", "with", "details", "``", "l", "''", "?" ], "question_arg": [ [ "return" ], [ "lot", "detail" ], [ "of" ], [ "lot" ], [ "that" ], [ "belong" ], [ "to" ], [ "investor" ], [ "with" ], [ "detail" ], [ "'" ], [ "l" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "lot", "NN" ], [ "detail", "NN" ], [ "of", "IN" ], [ "lot", "NN" ], [ "that", "WDT" ], [ "belong", "VBP" ], [ "to", "TO" ], [ "investor", "NN" ], [ "with", "IN" ], [ "detail", "NN" ], [ "'", "''" ], [ "l", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "l" ], "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": "tracking_share_transactions", "query": "SELECT T1.purchase_details FROM PURCHASES AS T1 JOIN TRANSACTIONS AS T2 ON T1.purchase_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction > 10000", "query_toks": [ "SELECT", "T1.purchase_details", "FROM", "PURCHASES", "AS", "T1", "JOIN", "TRANSACTIONS", "AS", "T2", "ON", "T1.purchase_transaction_id", "=", "T2.transaction_id", "WHERE", "T2.amount_of_transaction", ">", "10000" ], "query_toks_no_value": [ "select", "t1", ".", "purchase_details", "from", "purchases", "as", "t1", "join", "transactions", "as", "t2", "on", "t1", ".", "purchase_transaction_id", "=", "t2", ".", "transaction_id", "where", "t2", ".", "amount_of_transaction", ">", "value" ], "question": "What are the purchase details of transactions with amount bigger than 10000?", "question_toks": [ "what", "are", "purchase", "detail", "of", "transaction", "with", "amount", "bigger", "than", "10000", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 12, false ], null ], 10000.0, null ] ] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "purchase", "details", "of", "transactions", "with", "amount", "bigger", "than", "10000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "purchase", "detail" ], [ "of" ], [ "transaction" ], [ "with" ], [ "amount" ], [ "bigger" ], [ "than" ], [ "10000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "purchase", "JJ" ], [ "detail", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "with", "IN" ], [ "amount", "NN" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "10000", "CD" ], [ "?", "." ] ], "values": [ "10000", "Purchase" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(5) Filter(5) A(0) C(9) T(3) V(0)" }, { "db_id": "tracking_share_transactions", "query": "SELECT T1.sales_details , T2.date_of_transaction FROM SALES AS T1 JOIN TRANSACTIONS AS T2 ON T1.sales_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction < 3000", "query_toks": [ "SELECT", "T1.sales_details", ",", "T2.date_of_transaction", "FROM", "SALES", "AS", "T1", "JOIN", "TRANSACTIONS", "AS", "T2", "ON", "T1.sales_transaction_id", "=", "T2.transaction_id", "WHERE", "T2.amount_of_transaction", "<", "3000" ], "query_toks_no_value": [ "select", "t1", ".", "sales_details", ",", "t2", ".", "date_of_transaction", "from", "sales", "as", "t1", "join", "transactions", "as", "t2", "on", "t1", ".", "sales_transaction_id", "=", "t2", ".", "transaction_id", "where", "t2", ".", "amount_of_transaction", "<", "value" ], "question": "What are the sale details and dates of transactions with amount smaller than 3000?", "question_toks": [ "what", "are", "sale", "detail", "and", "date", "of", "transaction", "with", "amount", "smaller", "than", "3000", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 12, false ], null ], 3000.0, null ] ] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "sale", "details", "and", "dates", "of", "transactions", "with", "amount", "smaller", "than", "3000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "sale", "detail" ], [ "and" ], [ "date", "of", "transaction" ], [ "with" ], [ "amount" ], [ "smaller" ], [ "than" ], [ "3000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "sale", "NN" ], [ "detail", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "with", "IN" ], [ "amount", "NN" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "3000", "CD" ], [ "?", "." ] ], "values": [ "SALE", "3000", "Sale" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(13) T(4) A(0) C(8) T(3) Filter(4) A(0) C(9) T(3) V(1)" }, { "db_id": "tracking_share_transactions", "query": "SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count < 50", "query_toks": [ "SELECT", "T1.lot_details", "FROM", "LOTS", "AS", "T1", "JOIN", "TRANSACTIONS_LOTS", "AS", "T2", "ON", "T1.lot_id", "=", "T2.transaction_id", "JOIN", "TRANSACTIONS", "AS", "T3", "ON", "T2.transaction_id", "=", "T3.transaction_id", "WHERE", "T3.share_count", "<", "50" ], "query_toks_no_value": [ "select", "t1", ".", "lot_details", "from", "lots", "as", "t1", "join", "transactions_lots", "as", "t2", "on", "t1", ".", "lot_id", "=", "t2", ".", "transaction_id", "join", "transactions", "as", "t3", "on", "t2", ".", "transaction_id", "=", "t3", ".", "transaction_id", "where", "t3", ".", "share_count", "<", "value" ], "question": "What are the lot details of lots associated with transactions with share count smaller than 50?", "question_toks": [ "what", "are", "lot", "detail", "of", "lot", "associated", "with", "transaction", "with", "share", "count", "smaller", "than", "50", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 4, [ 0, [ 0, 13, false ], null ], 50.0, null ] ] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "lot", "details", "of", "lots", "associated", "with", "transactions", "with", "share", "count", "smaller", "than", "50", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "lot", "detail" ], [ "of" ], [ "lot" ], [ "associated" ], [ "with" ], [ "transaction" ], [ "with" ], [ "share", "count" ], [ "smaller" ], [ "than" ], [ "50" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "lot", "JJ" ], [ "detail", "NN" ], [ "of", "IN" ], [ "lot", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "transaction", "NN" ], [ "with", "IN" ], [ "share", "NN" ], [ "count", "NN" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "50", "CD" ], [ "?", "." ] ], "values": [ "50" ], "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(7) T(6) Filter(4) A(0) C(10) T(3) V(0)" }, { "db_id": "tracking_share_transactions", "query": "SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count > 100 AND T3.transaction_type_code = \"PUR\"", "query_toks": [ "SELECT", "T1.lot_details", "FROM", "LOTS", "AS", "T1", "JOIN", "TRANSACTIONS_LOTS", "AS", "T2", "ON", "T1.lot_id", "=", "T2.transaction_id", "JOIN", "TRANSACTIONS", "AS", "T3", "ON", "T2.transaction_id", "=", "T3.transaction_id", "WHERE", "T3.share_count", ">", "100", "AND", "T3.transaction_type_code", "=", "``", "PUR", "''" ], "query_toks_no_value": [ "select", "t1", ".", "lot_details", "from", "lots", "as", "t1", "join", "transactions_lots", "as", "t2", "on", "t1", ".", "lot_id", "=", "t2", ".", "transaction_id", "join", "transactions", "as", "t3", "on", "t2", ".", "transaction_id", "=", "t3", ".", "transaction_id", "where", "t3", ".", "share_count", ">", "value", "and", "t3", ".", "transaction_type_code", "=", "value" ], "question": "What are the lot details of lots associated with transactions whose share count is bigger than 100 and whose type code is \"PUR\"?", "question_toks": [ "what", "are", "lot", "detail", "of", "lot", "associated", "with", "transaction", "whose", "share", "count", "is", "bigger", "than", "100", "and", "whose", "type", "code", "is", "'", "pur", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 3, [ 0, [ 0, 13, false ], null ], 100.0, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"PUR\"", null ] ] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "lot", "details", "of", "lots", "associated", "with", "transactions", "whose", "share", "count", "is", "bigger", "than", "100", "and", "whose", "type", "code", "is", "``", "PUR", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "lot", "detail" ], [ "of" ], [ "lot" ], [ "associated" ], [ "with" ], [ "transaction" ], [ "whose" ], [ "share", "count" ], [ "is" ], [ "bigger" ], [ "than" ], [ "100" ], [ "and" ], [ "whose" ], [ "transaction", "type", "code" ], [ "is" ], [ "'" ], [ "pur" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "lot", "JJ" ], [ "detail", "NN" ], [ "of", "IN" ], [ "lot", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "transaction", "NN" ], [ "whose", "WP$" ], [ "share", "NN" ], [ "count", "NN" ], [ "is", "VBZ" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "and", "CC" ], [ "whose", "WP$" ], [ "type", "NN" ], [ "code", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "pur", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "PUR", "100" ], "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(7) T(6) Filter(0) Filter(5) A(0) C(10) T(3) V(1) Filter(2) A(0) C(5) T(3) V(0)" }, { "db_id": "tracking_share_transactions", "query": "SELECT transaction_type_code , avg(amount_of_transaction) FROM TRANSACTIONS GROUP BY transaction_type_code", "query_toks": [ "SELECT", "transaction_type_code", ",", "avg", "(", "amount_of_transaction", ")", "FROM", "TRANSACTIONS", "GROUP", "BY", "transaction_type_code" ], "query_toks_no_value": [ "select", "transaction_type_code", ",", "avg", "(", "amount_of_transaction", ")", "from", "transactions", "group", "by", "transaction_type_code" ], "question": "Show the average transaction amount for different transaction types.", "question_toks": [ "show", "average", "transaction", "amount", "for", "different", "transaction", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 5, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "average", "transaction", "amount", "for", "different", "transaction", "types", "." ], "question_arg": [ [ "show" ], [ "average" ], [ "transaction" ], [ "amount" ], [ "for" ], [ "different" ], [ "transaction" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "average", "JJ" ], [ "transaction", "NN" ], [ "amount", "NN" ], [ "for", "IN" ], [ "different", "JJ" ], [ "transaction", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(5) T(3) A(5) C(9) T(3)" }, { "db_id": "tracking_share_transactions", "query": "SELECT transaction_type_code , max(share_count) , min(share_count) FROM TRANSACTIONS GROUP BY transaction_type_code", "query_toks": [ "SELECT", "transaction_type_code", ",", "max", "(", "share_count", ")", ",", "min", "(", "share_count", ")", "FROM", "TRANSACTIONS", "GROUP", "BY", "transaction_type_code" ], "query_toks_no_value": [ "select", "transaction_type_code", ",", "max", "(", "share_count", ")", ",", "min", "(", "share_count", ")", "from", "transactions", "group", "by", "transaction_type_code" ], "question": "Show the maximum and minimum share count of different transaction types.", "question_toks": [ "show", "maximum", "and", "minimum", "share", "count", "of", "different", "transaction", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 1, [ 0, [ 0, 13, false ], null ] ], [ 2, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "maximum", "and", "minimum", "share", "count", "of", "different", "transaction", "types", "." ], "question_arg": [ [ "show" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "share", "count" ], [ "of" ], [ "different" ], [ "transaction" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "maximum", "NN" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "share", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "transaction", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(5) T(3) A(1) C(10) T(3) A(2) C(10) T(3)" }, { "db_id": "tracking_share_transactions", "query": "SELECT investor_id , avg(share_count) FROM TRANSACTIONS GROUP BY investor_id", "query_toks": [ "SELECT", "investor_id", ",", "avg", "(", "share_count", ")", "FROM", "TRANSACTIONS", "GROUP", "BY", "investor_id" ], "query_toks_no_value": [ "select", "investor_id", ",", "avg", "(", "share_count", ")", "from", "transactions", "group", "by", "investor_id" ], "question": "Show the average share count of transactions for different investors.", "question_toks": [ "show", "average", "share", "count", "of", "transaction", "for", "different", "investor", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 5, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "average", "share", "count", "of", "transactions", "for", "different", "investors", "." ], "question_arg": [ [ "show" ], [ "average" ], [ "share", "count" ], [ "of" ], [ "transaction" ], [ "for" ], [ "different" ], [ "investor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "average", "JJ" ], [ "share", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "for", "IN" ], [ "different", "JJ" ], [ "investor", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(3) A(5) C(10) T(3)" }, { "db_id": "tracking_share_transactions", "query": "SELECT investor_id , avg(share_count) FROM TRANSACTIONS GROUP BY investor_id ORDER BY avg(share_count)", "query_toks": [ "SELECT", "investor_id", ",", "avg", "(", "share_count", ")", "FROM", "TRANSACTIONS", "GROUP", "BY", "investor_id", "ORDER", "BY", "avg", "(", "share_count", ")" ], "query_toks_no_value": [ "select", "investor_id", ",", "avg", "(", "share_count", ")", "from", "transactions", "group", "by", "investor_id", "order", "by", "avg", "(", "share_count", ")" ], "question": "Show the average share count of transactions each each investor, ordered by average share count.", "question_toks": [ "show", "average", "share", "count", "of", "transaction", "each", "each", "investor", ",", "ordered", "by", "average", "share", "count", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 5, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 5, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "average", "share", "count", "of", "transactions", "each", "each", "investor", ",", "ordered", "by", "average", "share", "count", "." ], "question_arg": [ [ "show" ], [ "average" ], [ "share", "count" ], [ "of" ], [ "transaction" ], [ "each" ], [ "each" ], [ "investor" ], [ "," ], [ "ordered" ], [ "by" ], [ "average" ], [ "share", "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "average", "JJ" ], [ "share", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "each", "DT" ], [ "each", "DT" ], [ "investor", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "average", "JJ" ], [ "share", "NN" ], [ "count", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(1) T(3) A(5) C(10) T(3) Order(1) A(5) C(10) T(3)" }, { "db_id": "tracking_share_transactions", "query": "SELECT investor_id , avg(amount_of_transaction) FROM TRANSACTIONS GROUP BY investor_id", "query_toks": [ "SELECT", "investor_id", ",", "avg", "(", "amount_of_transaction", ")", "FROM", "TRANSACTIONS", "GROUP", "BY", "investor_id" ], "query_toks_no_value": [ "select", "investor_id", ",", "avg", "(", "amount_of_transaction", ")", "from", "transactions", "group", "by", "investor_id" ], "question": "Show the average amount of transactions for different investors.", "question_toks": [ "show", "average", "amount", "of", "transaction", "for", "different", "investor", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, 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": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "average", "amount", "of", "transactions", "for", "different", "investors", "." ], "question_arg": [ [ "show" ], [ "average" ], [ "amount", "of", "transaction" ], [ "for" ], [ "different" ], [ "investor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "average", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "for", "IN" ], [ "different", "JJ" ], [ "investor", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(3) A(5) C(9) T(3)" }, { "db_id": "tracking_share_transactions", "query": "SELECT T2.lot_id , avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id", "query_toks": [ "SELECT", "T2.lot_id", ",", "avg", "(", "amount_of_transaction", ")", "FROM", "TRANSACTIONS", "AS", "T1", "JOIN", "Transactions_Lots", "AS", "T2", "ON", "T1.transaction_id", "=", "T2.transaction_id", "GROUP", "BY", "T2.lot_id" ], "query_toks_no_value": [ "select", "t2", ".", "lot_id", ",", "avg", "(", "amount_of_transaction", ")", "from", "transactions", "as", "t1", "join", "transactions_lots", "as", "t2", "on", "t1", ".", "transaction_id", "=", "t2", ".", "transaction_id", "group", "by", "t2", ".", "lot_id" ], "question": "Show the average amount of transactions for different lots.", "question_toks": [ "show", "average", "amount", "of", "transaction", "for", "different", "lot", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 5, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "average", "amount", "of", "transactions", "for", "different", "lots", "." ], "question_arg": [ [ "show" ], [ "average" ], [ "amount", "of", "transaction" ], [ "for" ], [ "different" ], [ "lot" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "average", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "for", "IN" ], [ "different", "JJ" ], [ "lot", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(6) A(5) C(9) T(3)" }, { "db_id": "tracking_share_transactions", "query": "SELECT T2.lot_id , avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id ORDER BY avg(amount_of_transaction)", "query_toks": [ "SELECT", "T2.lot_id", ",", "avg", "(", "amount_of_transaction", ")", "FROM", "TRANSACTIONS", "AS", "T1", "JOIN", "Transactions_Lots", "AS", "T2", "ON", "T1.transaction_id", "=", "T2.transaction_id", "GROUP", "BY", "T2.lot_id", "ORDER", "BY", "avg", "(", "amount_of_transaction", ")" ], "query_toks_no_value": [ "select", "t2", ".", "lot_id", ",", "avg", "(", "amount_of_transaction", ")", "from", "transactions", "as", "t1", "join", "transactions_lots", "as", "t2", "on", "t1", ".", "transaction_id", "=", "t2", ".", "transaction_id", "group", "by", "t2", ".", "lot_id", "order", "by", "avg", "(", "amount_of_transaction", ")" ], "question": "Show the average amount of transactions for different lots, ordered by average amount of transactions.", "question_toks": [ "show", "average", "amount", "of", "transaction", "for", "different", "lot", ",", "ordered", "by", "average", "amount", "of", "transaction", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 5, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 5, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "average", "amount", "of", "transactions", "for", "different", "lots", ",", "ordered", "by", "average", "amount", "of", "transactions", "." ], "question_arg": [ [ "show" ], [ "average" ], [ "amount", "of", "transaction" ], [ "for" ], [ "different" ], [ "lot" ], [ "," ], [ "ordered" ], [ "by" ], [ "average" ], [ "amount", "of", "transaction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "average", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "for", "IN" ], [ "different", "JJ" ], [ "lot", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "average", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(3) T(6) A(5) C(9) T(3) Order(1) A(5) C(9) T(3)" }, { "db_id": "tracking_share_transactions", "query": "SELECT investor_id , COUNT(*) FROM TRANSACTIONS WHERE transaction_type_code = \"SALE\" GROUP BY investor_id", "query_toks": [ "SELECT", "investor_id", ",", "COUNT", "(", "*", ")", "FROM", "TRANSACTIONS", "WHERE", "transaction_type_code", "=", "``", "SALE", "''", "GROUP", "BY", "investor_id" ], "query_toks_no_value": [ "select", "investor_id", ",", "count", "(", "*", ")", "from", "transactions", "where", "transaction_type_code", "=", "value", "group", "by", "investor_id" ], "question": "Show the number of transactions with transaction type code \"SALE\" for different investors if it is larger than 0.", "question_toks": [ "show", "number", "of", "transaction", "with", "transaction", "type", "code", "'", "sale", "'", "for", "different", "investor", "if", "it", "is", "larger", "than", "0", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"SALE\"", null ] ] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "number", "of", "transactions", "with", "transaction", "type", "code", "``", "SALE", "''", "for", "different", "investors", "if", "it", "is", "larger", "than", "0", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "of" ], [ "transaction" ], [ "with" ], [ "transaction", "type", "code" ], [ "'" ], [ "sale" ], [ "'" ], [ "for" ], [ "different" ], [ "investor" ], [ "if" ], [ "it" ], [ "is" ], [ "larger" ], [ "than" ], [ "0" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "with", "IN" ], [ "transaction", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "sale", "NN" ], [ "'", "''" ], [ "for", "IN" ], [ "different", "JJ" ], [ "investor", "NN" ], [ "if", "IN" ], [ "it", "PRP" ], [ "is", "VBZ" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "0", "CD" ], [ ".", "." ] ], "values": [ "SALE", "0", "Sale" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(3) A(3) C(0) T(3) Filter(2) A(0) C(5) T(3) V(0)" }, { "db_id": "tracking_share_transactions", "query": "SELECT investor_id , COUNT(*) FROM TRANSACTIONS GROUP BY investor_id", "query_toks": [ "SELECT", "investor_id", ",", "COUNT", "(", "*", ")", "FROM", "TRANSACTIONS", "GROUP", "BY", "investor_id" ], "query_toks_no_value": [ "select", "investor_id", ",", "count", "(", "*", ")", "from", "transactions", "group", "by", "investor_id" ], "question": "Show the number of transactions for different investors.", "question_toks": [ "show", "number", "of", "transaction", "for", "different", "investor", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "number", "of", "transactions", "for", "different", "investors", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "of" ], [ "transaction" ], [ "for" ], [ "different" ], [ "investor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "for", "IN" ], [ "different", "JJ" ], [ "investor", "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": "tracking_share_transactions", "query": "SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) ASC LIMIT 1", "query_toks": [ "SELECT", "transaction_type_code", "FROM", "TRANSACTIONS", "GROUP", "BY", "transaction_type_code", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "transaction_type_code", "from", "transactions", "group", "by", "transaction_type_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Show the transaction type code that occurs the fewest times.", "question_toks": [ "show", "transaction", "type", "code", "that", "occurs", "fewest", "time", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "transaction", "type", "code", "that", "occurs", "the", "fewest", "times", "." ], "question_arg": [ [ "show" ], [ "transaction", "type", "code" ], [ "that" ], [ "occurs" ], [ "fewest" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "transaction", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "that", "WDT" ], [ "occurs", "VBZ" ], [ "fewest", "JJ" ], [ "time", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(3) Sup(1) A(3) C(0) T(3)" }, { "db_id": "tracking_share_transactions", "query": "SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "transaction_type_code", "FROM", "TRANSACTIONS", "GROUP", "BY", "transaction_type_code", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "transaction_type_code", "from", "transactions", "group", "by", "transaction_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the transaction type code that occurs the most frequently.", "question_toks": [ "show", "transaction", "type", "code", "that", "occurs", "most", "frequently", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "transaction", "type", "code", "that", "occurs", "the", "most", "frequently", "." ], "question_arg": [ [ "show" ], [ "transaction", "type", "code" ], [ "that" ], [ "occurs" ], [ "most" ], [ "frequently" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "transaction", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "that", "WDT" ], [ "occurs", "VBZ" ], [ "most", "RBS" ], [ "frequently", "RB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "tracking_share_transactions", "query": "SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code GROUP BY T1.transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.transaction_type_description", "FROM", "Ref_Transaction_Types", "AS", "T1", "JOIN", "TRANSACTIONS", "AS", "T2", "ON", "T1.transaction_type_code", "=", "T2.transaction_type_code", "GROUP", "BY", "T1.transaction_type_code", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "transaction_type_description", "from", "ref_transaction_types", "as", "t1", "join", "transactions", "as", "t2", "on", "t1", ".", "transaction_type_code", "=", "t2", ".", "transaction_type_code", "group", "by", "t1", ".", "transaction_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the description of the transaction type that occurs most frequently.", "question_toks": [ "show", "description", "of", "transaction", "type", "that", "occurs", "most", "frequently", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 6, 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, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "description", "of", "the", "transaction", "type", "that", "occurs", "most", "frequently", "." ], "question_arg": [ [ "show" ], [ "description" ], [ "of" ], [ "transaction" ], [ "type" ], [ "that" ], [ "occurs" ], [ "most" ], [ "frequently" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "description", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "type", "NN" ], [ "that", "WDT" ], [ "occurs", "VBZ" ], [ "most", "RBS" ], [ "frequently", "RB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(6) T(2) Sup(0) A(3) C(0) T(3) Filter(18) A(0) C(5) T(2) Root(5) Sel(0) N(0) A(0) C(5) T(3)" }, { "db_id": "tracking_share_transactions", "query": "SELECT T2.investor_id , T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.investor_id", ",", "T1.Investor_details", "FROM", "INVESTORS", "AS", "T1", "JOIN", "TRANSACTIONS", "AS", "T2", "ON", "T1.investor_id", "=", "T2.investor_id", "GROUP", "BY", "T2.investor_id", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "investor_id", ",", "t1", ".", "investor_details", "from", "investors", "as", "t1", "join", "transactions", "as", "t2", "on", "t1", ".", "investor_id", "=", "t2", ".", "investor_id", "group", "by", "t2", ".", "investor_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the id and details of the investor that has the largest number of transactions.", "question_toks": [ "show", "id", "and", "detail", "of", "investor", "that", "ha", "largest", "number", "of", "transaction", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "id", "and", "details", "of", "the", "investor", "that", "has", "the", "largest", "number", "of", "transactions", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "and" ], [ "detail" ], [ "of" ], [ "investor" ], [ "that" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "transaction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ "of", "IN" ], [ "investor", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(3) A(0) C(2) T(0) Sup(0) A(3) C(0) T(3)" }, { "db_id": "tracking_share_transactions", "query": "SELECT T2.investor_id , T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 3", "query_toks": [ "SELECT", "T2.investor_id", ",", "T1.Investor_details", "FROM", "INVESTORS", "AS", "T1", "JOIN", "TRANSACTIONS", "AS", "T2", "ON", "T1.investor_id", "=", "T2.investor_id", "GROUP", "BY", "T2.investor_id", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t2", ".", "investor_id", ",", "t1", ".", "investor_details", "from", "investors", "as", "t1", "join", "transactions", "as", "t2", "on", "t1", ".", "investor_id", "=", "t2", ".", "investor_id", "group", "by", "t2", ".", "investor_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the id and details for the investors who have the top 3 number of transactions.", "question_toks": [ "show", "id", "and", "detail", "for", "investor", "who", "have", "top", "3", "number", "of", "transaction", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "id", "and", "details", "for", "the", "investors", "who", "have", "the", "top", "3", "number", "of", "transactions", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "and" ], [ "detail" ], [ "for" ], [ "investor" ], [ "who" ], [ "have" ], [ "top" ], [ "3" ], [ "number" ], [ "of" ], [ "transaction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ "for", "IN" ], [ "investor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "top", "JJ" ], [ "3", "CD" ], [ "number", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(3) A(0) C(2) T(0) Sup(0) A(3) C(0) T(3)" }, { "db_id": "tracking_share_transactions", "query": "SELECT T2.investor_id FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "T2.investor_id", "FROM", "INVESTORS", "AS", "T1", "JOIN", "TRANSACTIONS", "AS", "T2", "ON", "T1.investor_id", "=", "T2.investor_id", "GROUP", "BY", "T2.investor_id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "investor_id", "from", "investors", "as", "t1", "join", "transactions", "as", "t2", "on", "t1", ".", "investor_id", "=", "t2", ".", "investor_id", "group", "by", "t2", ".", "investor_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the ids of the investors who have at least two transactions.", "question_toks": [ "show", "id", "of", "investor", "who", "have", "at", "least", "two", "transaction", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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": [ [ 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": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "ids", "of", "the", "investors", "who", "have", "at", "least", "two", "transactions", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "of" ], [ "investor" ], [ "who" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "transaction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "investor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "transaction", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(3) Filter(0) Filter(18) A(0) C(1) T(3) Root(5) Sel(0) N(0) A(0) C(1) T(0) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "tracking_share_transactions", "query": "SELECT T2.investor_id , T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id WHERE T2.transaction_type_code = \"SALE\" GROUP BY T2.investor_id HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "T2.investor_id", ",", "T1.Investor_details", "FROM", "INVESTORS", "AS", "T1", "JOIN", "TRANSACTIONS", "AS", "T2", "ON", "T1.investor_id", "=", "T2.investor_id", "WHERE", "T2.transaction_type_code", "=", "``", "SALE", "''", "GROUP", "BY", "T2.investor_id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "investor_id", ",", "t1", ".", "investor_details", "from", "investors", "as", "t1", "join", "transactions", "as", "t2", "on", "t1", ".", "investor_id", "=", "t2", ".", "investor_id", "where", "t2", ".", "transaction_type_code", "=", "value", "group", "by", "t2", ".", "investor_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the ids and details of the investors who have at least two transactions with type code \"SALE\".", "question_toks": [ "show", "id", "and", "detail", "of", "investor", "who", "have", "at", "least", "two", "transaction", "with", "type", "code", "'", "sale", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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 ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"SALE\"", null ] ] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "Show", "the", "ids", "and", "details", "of", "the", "investors", "who", "have", "at", "least", "two", "transactions", "with", "type", "code", "``", "SALE", "''", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "and" ], [ "detail" ], [ "of" ], [ "investor" ], [ "who" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "transaction" ], [ "with" ], [ "transaction", "type", "code" ], [ "'" ], [ "sale" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ "of", "IN" ], [ "investor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "transaction", "NN" ], [ "with", "IN" ], [ "type", "JJ" ], [ "code", "NN" ], [ "'", "''" ], [ "sale", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "SALE", "2", "Sale" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(3) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(5) T(3) V(0) Filter(7) A(3) C(0) T(3) V(1)" }, { "db_id": "tracking_share_transactions", "query": "SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count >= 100 OR amount_of_transaction >= 100", "query_toks": [ "SELECT", "date_of_transaction", "FROM", "TRANSACTIONS", "WHERE", "share_count", ">", "=", "100", "OR", "amount_of_transaction", ">", "=", "100" ], "query_toks_no_value": [ "select", "date_of_transaction", "from", "transactions", "where", "share_count", ">", "=", "value", "or", "amount_of_transaction", ">", "=", "value" ], "question": "What are the dates of transactions with at least 100 share count or amount bigger than 100?", "question_toks": [ "what", "are", "date", "of", "transaction", "with", "at", "least", "100", "share", "count", "or", "amount", "bigger", "than", "100", "?" ], "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 ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 13, false ], null ], 100.0, null ], "or", [ false, 5, [ 0, [ 0, 12, false ], null ], 100.0, null ] ] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "dates", "of", "transactions", "with", "at", "least", "100", "share", "count", "or", "amount", "bigger", "than", "100", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date", "of", "transaction" ], [ "with" ], [ "at" ], [ "least" ], [ "100" ], [ "share", "count" ], [ "or" ], [ "amount" ], [ "bigger" ], [ "than" ], [ "100" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "100", "CD" ], [ "share", "NN" ], [ "count", "NN" ], [ "or", "CC" ], [ "amount", "NN" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "?", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(1) Filter(7) A(0) C(10) T(3) V(0) Filter(7) A(0) C(9) T(3) V(0)" }, { "db_id": "tracking_share_transactions", "query": "SELECT sales_details FROM sales UNION SELECT purchase_details FROM purchases", "query_toks": [ "SELECT", "sales_details", "FROM", "sales", "UNION", "SELECT", "purchase_details", "FROM", "purchases" ], "query_toks_no_value": [ "select", "sales_details", "from", "sales", "union", "select", "purchase_details", "from", "purchases" ], "question": "What are the details of all sales and purchases?", "question_toks": [ "what", "are", "detail", "of", "all", "sale", "and", "purchase", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "where": [] }, "names": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "details", "of", "all", "sales", "and", "purchases", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "of" ], [ "all" ], [ "sale" ], [ "and" ], [ "purchase" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "sale", "NN" ], [ "and", "CC" ], [ "purchase", "NN" ], [ "?", "." ] ], "values": [ "SALE", "Purchase", "Sale" ], "rule_label": "Root1(1) Root(5) Sel(0) N(0) A(0) C(13) T(4) Root(5) Sel(0) N(0) A(0) C(15) T(5)" }, { "db_id": "tracking_share_transactions", "query": "SELECT lot_details FROM Lots EXCEPT SELECT T1.lot_details FROM Lots AS T1 JOIN transactions_lots AS T2 ON T1.lot_id = T2.lot_id", "query_toks": [ "SELECT", "lot_details", "FROM", "Lots", "EXCEPT", "SELECT", "T1.lot_details", "FROM", "Lots", "AS", "T1", "JOIN", "transactions_lots", "AS", "T2", "ON", "T1.lot_id", "=", "T2.lot_id" ], "query_toks_no_value": [ "select", "lot_details", "from", "lots", "except", "select", "t1", ".", "lot_details", "from", "lots", "as", "t1", "join", "transactions_lots", "as", "t2", "on", "t1", ".", "lot_id", "=", "t2", ".", "lot_id" ], "question": "What are the details of the lots which are not used in any transactions?", "question_toks": [ "what", "are", "detail", "of", "lot", "which", "are", "not", "used", "in", "any", "transaction", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "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": [ "*", "investor id", "investor details", "lot id", "investor id", "lot details", "transaction type code", "transaction type description", "transaction id", "investor id", "transaction type code", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details", "transaction id", "lot id" ], "table_names": [ "investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots" ], "col_set": [ "*", "investor id", "investor details", "lot id", "lot details", "transaction type code", "transaction type description", "transaction id", "date of transaction", "amount of transaction", "share count", "other details", "sales transaction id", "sales details", "purchase transaction id", "purchase details" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6 ], "keys": { "4": 1, "1": 1, "10": 6, "6": 6, "9": 1, "15": 15, "8": 8, "17": 8, "19": 8, "20": 3, "3": 3 }, "origin_question_toks": [ "What", "are", "the", "details", "of", "the", "lots", "which", "are", "not", "used", "in", "any", "transactions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "of" ], [ "lot" ], [ "which" ], [ "are" ], [ "not" ], [ "used" ], [ "in" ], [ "any" ], [ "transaction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "NN" ], [ "of", "IN" ], [ "lot", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "used", "VBN" ], [ "in", "IN" ], [ "any", "DT" ], [ "transaction", "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(6)" }, { "db_id": "cre_Theme_park", "query": "SELECT count(*) FROM HOTELS", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "HOTELS" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "hotels" ], "question": "How many available hotels are there in total?", "question_toks": [ "how", "many", "available", "hotel", "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": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "How", "many", "available", "hotels", "are", "there", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "available" ], [ "hotel" ], [ "are" ], [ "there" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "available", "JJ" ], [ "hotel", "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": "cre_Theme_park", "query": "SELECT count(*) FROM HOTELS", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "HOTELS" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "hotels" ], "question": "Find the total number of available hotels.", "question_toks": [ "find", "total", "number", "of", "available", "hotel", "." ], "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": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Find", "the", "total", "number", "of", "available", "hotels", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "number" ], [ "of" ], [ "available" ], [ "hotel" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "available", "JJ" ], [ "hotel", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(5)" }, { "db_id": "cre_Theme_park", "query": "SELECT price_range FROM HOTELS", "query_toks": [ "SELECT", "price_range", "FROM", "HOTELS" ], "query_toks_no_value": [ "select", "price_range", "from", "hotels" ], "question": "What are the price ranges of hotels?", "question_toks": [ "what", "are", "price", "range", "of", "hotel", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "price", "ranges", "of", "hotels", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "price", "range" ], [ "of" ], [ "hotel" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "price", "NN" ], [ "range", "NN" ], [ "of", "IN" ], [ "hotel", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(15) T(5)" }, { "db_id": "cre_Theme_park", "query": "SELECT price_range FROM HOTELS", "query_toks": [ "SELECT", "price_range", "FROM", "HOTELS" ], "query_toks_no_value": [ "select", "price_range", "from", "hotels" ], "question": "Tell me the price ranges for all the hotels.", "question_toks": [ "tell", "me", "price", "range", "for", "all", "hotel", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Tell", "me", "the", "price", "ranges", "for", "all", "the", "hotels", "." ], "question_arg": [ [ "tell" ], [ "me" ], [ "price", "range" ], [ "for" ], [ "all" ], [ "hotel" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "tell", "VB" ], [ "me", "PRP" ], [ "price", "NN" ], [ "range", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "hotel", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(15) T(5)" }, { "db_id": "cre_Theme_park", "query": "SELECT DISTINCT Location_Name FROM LOCATIONS", "query_toks": [ "SELECT", "DISTINCT", "Location_Name", "FROM", "LOCATIONS" ], "query_toks_no_value": [ "select", "distinct", "location_name", "from", "locations" ], "question": "Show all distinct location names.", "question_toks": [ "show", "all", "distinct", "location", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Show", "all", "distinct", "location", "names", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "distinct" ], [ "location", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "location", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(4) T(1)" }, { "db_id": "cre_Theme_park", "query": "SELECT DISTINCT Location_Name FROM LOCATIONS", "query_toks": [ "SELECT", "DISTINCT", "Location_Name", "FROM", "LOCATIONS" ], "query_toks_no_value": [ "select", "distinct", "location_name", "from", "locations" ], "question": "What are the distinct location names?", "question_toks": [ "what", "are", "distinct", "location", "name", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "distinct", "location", "names", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "location", "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "location", "NN" ], [ "name", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(4) T(1)" }, { "db_id": "cre_Theme_park", "query": "SELECT Name , Other_Details FROM Staff", "query_toks": [ "SELECT", "Name", ",", "Other_Details", "FROM", "Staff" ], "query_toks_no_value": [ "select", "name", ",", "other_details", "from", "staff" ], "question": "Show the names and details of all the staff members.", "question_toks": [ "show", "name", "and", "detail", "of", "all", "staff", "member", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 14 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 49, false ], null ] ], [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Show", "the", "names", "and", "details", "of", "all", "the", "staff", "members", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "detail" ], [ "of" ], [ "all" ], [ "staff" ], [ "member" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "staff", "NN" ], [ "member", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(19) T(14) A(0) C(6) T(14)" }, { "db_id": "cre_Theme_park", "query": "SELECT Name , Other_Details FROM Staff", "query_toks": [ "SELECT", "Name", ",", "Other_Details", "FROM", "Staff" ], "query_toks_no_value": [ "select", "name", ",", "other_details", "from", "staff" ], "question": "What is the name and detail of each staff member?", "question_toks": [ "what", "is", "name", "and", "detail", "of", "each", "staff", "member", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 14 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 49, false ], null ] ], [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "detail", "of", "each", "staff", "member", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "detail" ], [ "of" ], [ "each" ], [ "staff" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "staff", "NN" ], [ "member", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(19) T(14) A(0) C(6) T(14)" }, { "db_id": "cre_Theme_park", "query": "SELECT Tourist_Details FROM VISITORS", "query_toks": [ "SELECT", "Tourist_Details", "FROM", "VISITORS" ], "query_toks_no_value": [ "select", "tourist_details", "from", "visitors" ], "question": "Show details of all visitors.", "question_toks": [ "show", "detail", "of", "all", "visitor", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Show", "details", "of", "all", "visitors", "." ], "question_arg": [ [ "show" ], [ "detail" ], [ "of" ], [ "all" ], [ "visitor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "detail", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "visitor", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(10) T(3)" }, { "db_id": "cre_Theme_park", "query": "SELECT Tourist_Details FROM VISITORS", "query_toks": [ "SELECT", "Tourist_Details", "FROM", "VISITORS" ], "query_toks_no_value": [ "select", "tourist_details", "from", "visitors" ], "question": "What is the detail of each visitor?", "question_toks": [ "what", "is", "detail", "of", "each", "visitor", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "is", "the", "detail", "of", "each", "visitor", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "detail" ], [ "of" ], [ "each" ], [ "visitor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "detail", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "visitor", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(10) T(3)" }, { "db_id": "cre_Theme_park", "query": "SELECT price_range FROM HOTELS WHERE star_rating_code = \"5\"", "query_toks": [ "SELECT", "price_range", "FROM", "HOTELS", "WHERE", "star_rating_code", "=", "``", "5", "''" ], "query_toks_no_value": [ "select", "price_range", "from", "hotels", "where", "star_rating_code", "=", "value" ], "question": "Show the price ranges of hotels with 5 star ratings.", "question_toks": [ "show", "price", "range", "of", "hotel", "with", "5", "star", "rating", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "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 ], "\"5\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Show", "the", "price", "ranges", "of", "hotels", "with", "5", "star", "ratings", "." ], "question_arg": [ [ "show" ], [ "price", "range" ], [ "of" ], [ "hotel" ], [ "with" ], [ "5" ], [ "star" ], [ "rating" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "price", "NN" ], [ "range", "NN" ], [ "of", "IN" ], [ "hotel", "NN" ], [ "with", "IN" ], [ "5", "CD" ], [ "star", "NN" ], [ "rating", "NN" ], [ ".", "." ] ], "values": [ "5", "star" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(5) Filter(2) A(0) C(1) T(5) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT price_range FROM HOTELS WHERE star_rating_code = \"5\"", "query_toks": [ "SELECT", "price_range", "FROM", "HOTELS", "WHERE", "star_rating_code", "=", "``", "5", "''" ], "query_toks_no_value": [ "select", "price_range", "from", "hotels", "where", "star_rating_code", "=", "value" ], "question": "What are the price ranges of five star hotels?", "question_toks": [ "what", "are", "price", "range", "of", "five", "star", "hotel", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "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 ], "\"5\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "price", "ranges", "of", "five", "star", "hotels", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "price", "range" ], [ "of" ], [ "five" ], [ "star" ], [ "hotel" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "price", "NN" ], [ "range", "NN" ], [ "of", "IN" ], [ "five", "CD" ], [ "star", "NNS" ], [ "hotel", "NN" ], [ "?", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(5) Filter(2) A(0) C(1) T(5) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT avg(price_range) FROM HOTELS WHERE star_rating_code = \"5\" AND pets_allowed_yn = 1", "query_toks": [ "SELECT", "avg", "(", "price_range", ")", "FROM", "HOTELS", "WHERE", "star_rating_code", "=", "``", "5", "''", "AND", "pets_allowed_yn", "=", "1" ], "query_toks_no_value": [ "select", "avg", "(", "price_range", ")", "from", "hotels", "where", "star_rating_code", "=", "value", "and", "pets_allowed_yn", "=", "value" ], "question": "Show the average price range of hotels that have 5 star ratings and allow pets.", "question_toks": [ "show", "average", "price", "range", "of", "hotel", "that", "have", "5", "star", "rating", "and", "allow", "pet", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"5\"", null ], "and", [ false, 2, [ 0, [ 0, 15, false ], null ], 1.0, null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Show", "the", "average", "price", "range", "of", "hotels", "that", "have", "5", "star", "ratings", "and", "allow", "pets", "." ], "question_arg": [ [ "show" ], [ "average" ], [ "price", "range" ], [ "of" ], [ "hotel" ], [ "that" ], [ "have" ], [ "5" ], [ "star" ], [ "rating" ], [ "and" ], [ "allow" ], [ "pet" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "average", "JJ" ], [ "price", "NN" ], [ "range", "NN" ], [ "of", "IN" ], [ "hotel", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "5", "CD" ], [ "star", "NN" ], [ "rating", "NN" ], [ "and", "CC" ], [ "allow", "VB" ], [ "pet", "NN" ], [ ".", "." ] ], "values": [ "5", "star", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(15) T(5) Filter(0) Filter(2) A(0) C(1) T(5) V(0) Filter(2) A(0) C(14) T(5) V(2)" }, { "db_id": "cre_Theme_park", "query": "SELECT avg(price_range) FROM HOTELS WHERE star_rating_code = \"5\" AND pets_allowed_yn = 1", "query_toks": [ "SELECT", "avg", "(", "price_range", ")", "FROM", "HOTELS", "WHERE", "star_rating_code", "=", "``", "5", "''", "AND", "pets_allowed_yn", "=", "1" ], "query_toks_no_value": [ "select", "avg", "(", "price_range", ")", "from", "hotels", "where", "star_rating_code", "=", "value", "and", "pets_allowed_yn", "=", "value" ], "question": "What is the average price range of five star hotels that allow pets?", "question_toks": [ "what", "is", "average", "price", "range", "of", "five", "star", "hotel", "that", "allow", "pet", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"5\"", null ], "and", [ false, 2, [ 0, [ 0, 15, false ], null ], 1.0, null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "is", "the", "average", "price", "range", "of", "five", "star", "hotels", "that", "allow", "pets", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "price", "range" ], [ "of" ], [ "five" ], [ "star" ], [ "hotel" ], [ "that" ], [ "allow" ], [ "pet" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "range", "NN" ], [ "of", "IN" ], [ "five", "CD" ], [ "star", "NNS" ], [ "hotel", "NN" ], [ "that", "IN" ], [ "allow", "JJ" ], [ "pet", "NN" ], [ "?", "." ] ], "values": [ "5", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(15) T(5) Filter(0) Filter(2) A(0) C(1) T(5) V(0) Filter(2) A(0) C(14) T(5) V(1)" }, { "db_id": "cre_Theme_park", "query": "SELECT Address FROM LOCATIONS WHERE Location_Name = \"UK Gallery\"", "query_toks": [ "SELECT", "Address", "FROM", "LOCATIONS", "WHERE", "Location_Name", "=", "``", "UK", "Gallery", "''" ], "query_toks_no_value": [ "select", "address", "from", "locations", "where", "location_name", "=", "value" ], "question": "What is the address of the location \"UK Gallery\"?", "question_toks": [ "what", "is", "address", "of", "location", "'", "uk", "gallery", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"UK Gallery\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "is", "the", "address", "of", "the", "location", "``", "UK", "Gallery", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "address" ], [ "of" ], [ "location" ], [ "'" ], [ "uk" ], [ "gallery" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "address", "NN" ], [ "of", "IN" ], [ "location", "NN" ], [ "'", "POS" ], [ "uk", "JJ" ], [ "gallery", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "gallery", "UK gallery", "UK Gallery" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(2) A(0) C(4) T(1) V(2)" }, { "db_id": "cre_Theme_park", "query": "SELECT Address FROM LOCATIONS WHERE Location_Name = \"UK Gallery\"", "query_toks": [ "SELECT", "Address", "FROM", "LOCATIONS", "WHERE", "Location_Name", "=", "``", "UK", "Gallery", "''" ], "query_toks_no_value": [ "select", "address", "from", "locations", "where", "location_name", "=", "value" ], "question": "Find the address of the location named \"UK Gallery\".", "question_toks": [ "find", "address", "of", "location", "named", "'", "uk", "gallery", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"UK Gallery\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Find", "the", "address", "of", "the", "location", "named", "``", "UK", "Gallery", "''", "." ], "question_arg": [ [ "find" ], [ "address" ], [ "of" ], [ "location" ], [ "named" ], [ "'" ], [ "uk" ], [ "gallery" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "address", "NN" ], [ "of", "IN" ], [ "location", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "uk", "JJ" ], [ "gallery", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "gallery", "UK gallery", "UK Gallery" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(2) A(0) C(4) T(1) V(2)" }, { "db_id": "cre_Theme_park", "query": "SELECT Other_Details FROM LOCATIONS WHERE Location_Name = \"UK Gallery\"", "query_toks": [ "SELECT", "Other_Details", "FROM", "LOCATIONS", "WHERE", "Location_Name", "=", "``", "UK", "Gallery", "''" ], "query_toks_no_value": [ "select", "other_details", "from", "locations", "where", "location_name", "=", "value" ], "question": "What is the detail of the location UK Gallery?", "question_toks": [ "what", "is", "detail", "of", "location", "uk", "gallery", "?" ], "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, 4, false ], null ], "\"UK Gallery\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "is", "the", "detail", "of", "the", "location", "UK", "Gallery", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "detail" ], [ "of" ], [ "location" ], [ "uk" ], [ "gallery" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "detail", "NN" ], [ "of", "IN" ], [ "location", "NN" ], [ "uk", "JJ" ], [ "gallery", "NN" ], [ "?", "." ] ], "values": [ "gallery", "UK gallery", "UK Gallery" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(2) A(0) C(4) T(1) V(2)" }, { "db_id": "cre_Theme_park", "query": "SELECT Other_Details FROM LOCATIONS WHERE Location_Name = \"UK Gallery\"", "query_toks": [ "SELECT", "Other_Details", "FROM", "LOCATIONS", "WHERE", "Location_Name", "=", "``", "UK", "Gallery", "''" ], "query_toks_no_value": [ "select", "other_details", "from", "locations", "where", "location_name", "=", "value" ], "question": "Return the detail of the location named \"UK Gallery\".", "question_toks": [ "return", "detail", "of", "location", "named", "'", "uk", "gallery", "'", "." ], "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, 4, false ], null ], "\"UK Gallery\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Return", "the", "detail", "of", "the", "location", "named", "``", "UK", "Gallery", "''", "." ], "question_arg": [ [ "return" ], [ "detail" ], [ "of" ], [ "location" ], [ "named" ], [ "'" ], [ "uk" ], [ "gallery" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "detail", "NN" ], [ "of", "IN" ], [ "location", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "uk", "JJ" ], [ "gallery", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "gallery", "UK gallery", "UK Gallery" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(2) A(0) C(4) T(1) V(2)" }, { "db_id": "cre_Theme_park", "query": "SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE \"%film%\"", "query_toks": [ "SELECT", "Location_Name", "FROM", "LOCATIONS", "WHERE", "Location_Name", "LIKE", "``", "%", "film", "%", "''" ], "query_toks_no_value": [ "select", "location_name", "from", "locations", "where", "location_name", "like", "value" ], "question": "Which location names contain the word \"film\"?", "question_toks": [ "which", "location", "name", "contain", "word", "'", "film", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 4, false ], null ], "\"%film%\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Which", "location", "names", "contain", "the", "word", "``", "film", "''", "?" ], "question_arg": [ [ "which" ], [ "location", "name" ], [ "contain" ], [ "word" ], [ "'" ], [ "film" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "location", "NN" ], [ "name", "NN" ], [ "contain", "NN" ], [ "word", "NN" ], [ "'", "''" ], [ "film", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "film" ], "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": "cre_Theme_park", "query": "SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE \"%film%\"", "query_toks": [ "SELECT", "Location_Name", "FROM", "LOCATIONS", "WHERE", "Location_Name", "LIKE", "``", "%", "film", "%", "''" ], "query_toks_no_value": [ "select", "location_name", "from", "locations", "where", "location_name", "like", "value" ], "question": "Find all the locations whose names contain the word \"film\".", "question_toks": [ "find", "all", "location", "whose", "name", "contain", "word", "'", "film", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 4, false ], null ], "\"%film%\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Find", "all", "the", "locations", "whose", "names", "contain", "the", "word", "``", "film", "''", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "location" ], [ "whose" ], [ "name" ], [ "contain" ], [ "word" ], [ "'" ], [ "film" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "location", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contain", "NN" ], [ "word", "NN" ], [ "'", "''" ], [ "film", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "film" ], "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": "cre_Theme_park", "query": "SELECT count(DISTINCT Name) FROM PHOTOS", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Name", ")", "FROM", "PHOTOS" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "name", ")", "from", "photos" ], "question": "How many distinct names are associated with all the photos?", "question_toks": [ "how", "many", "distinct", "name", "are", "associated", "with", "all", "photo", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 43, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "How", "many", "distinct", "names", "are", "associated", "with", "all", "the", "photos", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "name" ], [ "are" ], [ "associated" ], [ "with" ], [ "all" ], [ "photo" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "are", "VBP" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "all", "DT" ], [ "photo", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(19) T(13)" }, { "db_id": "cre_Theme_park", "query": "SELECT count(DISTINCT Name) FROM PHOTOS", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Name", ")", "FROM", "PHOTOS" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "name", ")", "from", "photos" ], "question": "Count the number of distinct names associated with the photos.", "question_toks": [ "count", "number", "of", "distinct", "name", "associated", "with", "photo", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 13 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 43, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Count", "the", "number", "of", "distinct", "names", "associated", "with", "the", "photos", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "distinct" ], [ "name" ], [ "associated" ], [ "with" ], [ "photo" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "photo", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(19) T(13)" }, { "db_id": "cre_Theme_park", "query": "SELECT DISTINCT Visit_Date FROM VISITS", "query_toks": [ "SELECT", "DISTINCT", "Visit_Date", "FROM", "VISITS" ], "query_toks_no_value": [ "select", "distinct", "visit_date", "from", "visits" ], "question": "What are the distinct visit dates?", "question_toks": [ "what", "are", "distinct", "visit", "date", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "distinct", "visit", "dates", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "visit", "date" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "visit", "NN" ], [ "date", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(33) T(12)" }, { "db_id": "cre_Theme_park", "query": "SELECT DISTINCT Visit_Date FROM VISITS", "query_toks": [ "SELECT", "DISTINCT", "Visit_Date", "FROM", "VISITS" ], "query_toks_no_value": [ "select", "distinct", "visit_date", "from", "visits" ], "question": "Find all the distinct visit dates.", "question_toks": [ "find", "all", "distinct", "visit", "date", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Find", "all", "the", "distinct", "visit", "dates", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "distinct" ], [ "visit", "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "visit", "NN" ], [ "date", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(33) T(12)" }, { "db_id": "cre_Theme_park", "query": "SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = \"bus\"", "query_toks": [ "SELECT", "Name", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "``", "bus", "''" ], "query_toks_no_value": [ "select", "name", "from", "tourist_attractions", "where", "how_to_get_there", "=", "value" ], "question": "What are the names of the tourist attractions that can be accessed by bus?", "question_toks": [ "what", "are", "name", "of", "tourist", "attraction", "that", "can", "be", "accessed", "by", "bus", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"bus\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "tourist", "attractions", "that", "can", "be", "accessed", "by", "bus", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "tourist", "attraction" ], [ "that" ], [ "can" ], [ "be" ], [ "accessed" ], [ "by" ], [ "bus" ], [ "?" ] ], "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" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "be", "VB" ], [ "accessed", "VBN" ], [ "by", "IN" ], [ "bus", "NN" ], [ "?", "." ] ], "values": [ "bus" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(2) A(0) C(18) T(6) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = \"bus\"", "query_toks": [ "SELECT", "Name", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "``", "bus", "''" ], "query_toks_no_value": [ "select", "name", "from", "tourist_attractions", "where", "how_to_get_there", "=", "value" ], "question": "Which tourist attractions can we get to by bus? Tell me the names of the attractions.", "question_toks": [ "which", "tourist", "attraction", "can", "we", "get", "to", "by", "bus", "?", "tell", "me", "name", "of", "attraction", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"bus\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Which", "tourist", "attractions", "can", "we", "get", "to", "by", "bus", "?", "Tell", "me", "the", "names", "of", "the", "attractions", "." ], "question_arg": [ [ "which" ], [ "tourist", "attraction" ], [ "can" ], [ "we" ], [ "get" ], [ "to" ], [ "by" ], [ "bus" ], [ "?" ], [ "tell" ], [ "me" ], [ "name" ], [ "of" ], [ "attraction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "can", "MD" ], [ "we", "PRP" ], [ "get", "VB" ], [ "to", "TO" ], [ "by", "IN" ], [ "bus", "NN" ], [ "?", "." ], [ "tell", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "of", "IN" ], [ "attraction", "NN" ], [ ".", "." ] ], "values": [ "bus" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(2) A(0) C(18) T(6) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT Name , Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = \"bus\" OR How_to_Get_There = \"walk\"", "query_toks": [ "SELECT", "Name", ",", "Opening_Hours", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "``", "bus", "''", "OR", "How_to_Get_There", "=", "``", "walk", "''" ], "query_toks_no_value": [ "select", "name", ",", "opening_hours", "from", "tourist_attractions", "where", "how_to_get_there", "=", "value", "or", "how_to_get_there", "=", "value" ], "question": "What are the names and opening hours of the tourist attractions that can be accessed by bus or walk?", "question_toks": [ "what", "are", "name", "and", "opening", "hour", "of", "tourist", "attraction", "that", "can", "be", "accessed", "by", "bus", "or", "walk", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"bus\"", null ], "or", [ false, 2, [ 0, [ 0, 21, false ], null ], "\"walk\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "opening", "hours", "of", "the", "tourist", "attractions", "that", "can", "be", "accessed", "by", "bus", "or", "walk", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "opening", "hour" ], [ "of" ], [ "tourist", "attraction" ], [ "that" ], [ "can" ], [ "be" ], [ "accessed" ], [ "by" ], [ "bus" ], [ "or" ], [ "walk" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "opening", "VBG" ], [ "hour", "NN" ], [ "of", "IN" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "be", "VB" ], [ "accessed", "VBN" ], [ "by", "IN" ], [ "bus", "NN" ], [ "or", "CC" ], [ "walk", "NN" ], [ "?", "." ] ], "values": [ "bus", "walk" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(6) A(0) C(21) T(6) Filter(1) Filter(2) A(0) C(18) T(6) V(0) Filter(2) A(0) C(18) T(6) V(1)" }, { "db_id": "cre_Theme_park", "query": "SELECT Name , Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = \"bus\" OR How_to_Get_There = \"walk\"", "query_toks": [ "SELECT", "Name", ",", "Opening_Hours", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "``", "bus", "''", "OR", "How_to_Get_There", "=", "``", "walk", "''" ], "query_toks_no_value": [ "select", "name", ",", "opening_hours", "from", "tourist_attractions", "where", "how_to_get_there", "=", "value", "or", "how_to_get_there", "=", "value" ], "question": "Find the names and opening hours of the tourist attractions that we get to by bus or walk.", "question_toks": [ "find", "name", "and", "opening", "hour", "of", "tourist", "attraction", "that", "we", "get", "to", "by", "bus", "or", "walk", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"bus\"", null ], "or", [ false, 2, [ 0, [ 0, 21, false ], null ], "\"walk\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Find", "the", "names", "and", "opening", "hours", "of", "the", "tourist", "attractions", "that", "we", "get", "to", "by", "bus", "or", "walk", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "opening", "hour" ], [ "of" ], [ "tourist", "attraction" ], [ "that" ], [ "we" ], [ "get" ], [ "to" ], [ "by" ], [ "bus" ], [ "or" ], [ "walk" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "opening", "VBG" ], [ "hour", "NN" ], [ "of", "IN" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "that", "IN" ], [ "we", "PRP" ], [ "get", "VBP" ], [ "to", "TO" ], [ "by", "IN" ], [ "bus", "NN" ], [ "or", "CC" ], [ "walk", "NN" ], [ ".", "." ] ], "values": [ "bus", "walk" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(6) A(0) C(21) T(6) Filter(1) Filter(2) A(0) C(18) T(6) V(0) Filter(2) A(0) C(18) T(6) V(1)" }, { "db_id": "cre_Theme_park", "query": "SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code = T2.star_rating_code WHERE T1.price_range > 10000", "query_toks": [ "SELECT", "T2.star_rating_description", "FROM", "HOTELS", "AS", "T1", "JOIN", "Ref_Hotel_Star_Ratings", "AS", "T2", "ON", "T1.star_rating_code", "=", "T2.star_rating_code", "WHERE", "T1.price_range", ">", "10000" ], "query_toks_no_value": [ "select", "t2", ".", "star_rating_description", "from", "hotels", "as", "t1", "join", "ref_hotel_star_ratings", "as", "t2", "on", "t1", ".", "star_rating_code", "=", "t2", ".", "star_rating_code", "where", "t1", ".", "price_range", ">", "value" ], "question": "What are the star rating descriptions of the hotels with price above 10000?", "question_toks": [ "what", "are", "star", "rating", "description", "of", "hotel", "with", "price", "above", "10000", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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, 16, false ], null ], 10000.0, null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "star", "rating", "descriptions", "of", "the", "hotels", "with", "price", "above", "10000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "star", "rating", "description" ], [ "of" ], [ "hotel" ], [ "with" ], [ "price" ], [ "above" ], [ "10000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "star", "JJ" ], [ "rating", "NN" ], [ "description", "NN" ], [ "of", "IN" ], [ "hotel", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "above", "IN" ], [ "10000", "CD" ], [ "?", "." ] ], "values": [ "star", "10000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(5) A(0) C(15) T(5) V(1)" }, { "db_id": "cre_Theme_park", "query": "SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code = T2.star_rating_code WHERE T1.price_range > 10000", "query_toks": [ "SELECT", "T2.star_rating_description", "FROM", "HOTELS", "AS", "T1", "JOIN", "Ref_Hotel_Star_Ratings", "AS", "T2", "ON", "T1.star_rating_code", "=", "T2.star_rating_code", "WHERE", "T1.price_range", ">", "10000" ], "query_toks_no_value": [ "select", "t2", ".", "star_rating_description", "from", "hotels", "as", "t1", "join", "ref_hotel_star_ratings", "as", "t2", "on", "t1", ".", "star_rating_code", "=", "t2", ".", "star_rating_code", "where", "t1", ".", "price_range", ">", "value" ], "question": "Give me the star rating descriptions of the hotels that cost more than 10000.", "question_toks": [ "give", "me", "star", "rating", "description", "of", "hotel", "that", "cost", "more", "than", "10000", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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, 16, false ], null ], 10000.0, null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Give", "me", "the", "star", "rating", "descriptions", "of", "the", "hotels", "that", "cost", "more", "than", "10000", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "star", "rating", "description" ], [ "of" ], [ "hotel" ], [ "that" ], [ "cost" ], [ "more" ], [ "than" ], [ "10000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "star", "VB" ], [ "rating", "NN" ], [ "description", "NN" ], [ "of", "IN" ], [ "hotel", "NN" ], [ "that", "WDT" ], [ "cost", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "10000", "CD" ], [ ".", "." ] ], "values": [ "star", "10000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(5) A(0) C(15) T(5) V(1)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Museum_Details , T2.Opening_Hours FROM MUSEUMS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Museum_ID = T2.Tourist_Attraction_ID", "query_toks": [ "SELECT", "T1.Museum_Details", ",", "T2.Opening_Hours", "FROM", "MUSEUMS", "AS", "T1", "JOIN", "TOURIST_ATTRACTIONS", "AS", "T2", "ON", "T1.Museum_ID", "=", "T2.Tourist_Attraction_ID" ], "query_toks_no_value": [ "select", "t1", ".", "museum_details", ",", "t2", ".", "opening_hours", "from", "museums", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "museum_id", "=", "t2", ".", "tourist_attraction_id" ], "question": "What are the details and opening hours of the museums?", "question_toks": [ "what", "are", "detail", "and", "opening", "hour", "of", "museum", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 30, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 9 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "details", "and", "opening", "hours", "of", "the", "museums", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "and" ], [ "opening", "hour" ], [ "of" ], [ "museum" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "JJ" ], [ "and", "CC" ], [ "opening", "VBG" ], [ "hour", "NN" ], [ "of", "IN" ], [ "museum", "NN" ], [ "?", "." ] ], "values": [ "museum" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(27) T(9) A(0) C(21) T(6)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Museum_Details , T2.Opening_Hours FROM MUSEUMS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Museum_ID = T2.Tourist_Attraction_ID", "query_toks": [ "SELECT", "T1.Museum_Details", ",", "T2.Opening_Hours", "FROM", "MUSEUMS", "AS", "T1", "JOIN", "TOURIST_ATTRACTIONS", "AS", "T2", "ON", "T1.Museum_ID", "=", "T2.Tourist_Attraction_ID" ], "query_toks_no_value": [ "select", "t1", ".", "museum_details", ",", "t2", ".", "opening_hours", "from", "museums", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "museum_id", "=", "t2", ".", "tourist_attraction_id" ], "question": "Give me the detail and opening hour for each museum.", "question_toks": [ "give", "me", "detail", "and", "opening", "hour", "for", "each", "museum", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 30, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 9 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Give", "me", "the", "detail", "and", "opening", "hour", "for", "each", "museum", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "detail" ], [ "and" ], [ "opening", "hour" ], [ "for" ], [ "each" ], [ "museum" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "detail", "NN" ], [ "and", "CC" ], [ "opening", "VBG" ], [ "hour", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "museum", "NN" ], [ ".", "." ] ], "values": [ "museum" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(27) T(9) A(0) C(21) T(6)" }, { "db_id": "cre_Theme_park", "query": "SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = \"game1\"", "query_toks": [ "SELECT", "T2.Name", "FROM", "PHOTOS", "AS", "T1", "JOIN", "TOURIST_ATTRACTIONS", "AS", "T2", "ON", "T1.Tourist_Attraction_ID", "=", "T2.Tourist_Attraction_ID", "WHERE", "T1.Name", "=", "``", "game1", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "photos", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "tourist_attraction_id", "=", "t2", ".", "tourist_attraction_id", "where", "t1", ".", "name", "=", "value" ], "question": "What is the name of the tourist attraction that is associated with the photo \"game1\"?", "question_toks": [ "what", "is", "name", "of", "tourist", "attraction", "that", "is", "associated", "with", "photo", "'", "game1", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 42, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 43, false ], null ], "\"game1\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "tourist", "attraction", "that", "is", "associated", "with", "the", "photo", "``", "game1", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "tourist", "attraction" ], [ "that" ], [ "is" ], [ "associated" ], [ "with" ], [ "photo" ], [ "'" ], [ "game1" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "photo", "NN" ], [ "'", "''" ], [ "game1", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "game1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(2) A(0) C(19) T(13) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = \"game1\"", "query_toks": [ "SELECT", "T2.Name", "FROM", "PHOTOS", "AS", "T1", "JOIN", "TOURIST_ATTRACTIONS", "AS", "T2", "ON", "T1.Tourist_Attraction_ID", "=", "T2.Tourist_Attraction_ID", "WHERE", "T1.Name", "=", "``", "game1", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "photos", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "tourist_attraction_id", "=", "t2", ".", "tourist_attraction_id", "where", "t1", ".", "name", "=", "value" ], "question": "Which tourist attraction is associated with the photo \"game1\"? Return its name.", "question_toks": [ "which", "tourist", "attraction", "is", "associated", "with", "photo", "'", "game1", "'", "?", "return", "it", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 42, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 43, false ], null ], "\"game1\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Which", "tourist", "attraction", "is", "associated", "with", "the", "photo", "``", "game1", "''", "?", "Return", "its", "name", "." ], "question_arg": [ [ "which" ], [ "tourist", "attraction" ], [ "is" ], [ "associated" ], [ "with" ], [ "photo" ], [ "'" ], [ "game1" ], [ "'" ], [ "?" ], [ "return" ], [ "it" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "is", "VBZ" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "photo", "NN" ], [ "'", "''" ], [ "game1", "NN" ], [ "'", "''" ], [ "?", "." ], [ "return", "VB" ], [ "it", "PRP" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "game1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(2) A(0) C(19) T(13) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name , T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = \"film festival\"", "query_toks": [ "SELECT", "T1.Name", ",", "T1.Description", "FROM", "PHOTOS", "AS", "T1", "JOIN", "TOURIST_ATTRACTIONS", "AS", "T2", "ON", "T1.Tourist_Attraction_ID", "=", "T2.Tourist_Attraction_ID", "WHERE", "T2.Name", "=", "``", "film", "festival", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "description", "from", "photos", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "tourist_attraction_id", "=", "t2", ".", "tourist_attraction_id", "where", "t2", ".", "name", "=", "value" ], "question": "What are the names and descriptions of the photos taken at the tourist attraction \"film festival\"?", "question_toks": [ "what", "are", "name", "and", "description", "of", "photo", "taken", "at", "tourist", "attraction", "'", "film", "festival", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 42, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 43, false ], null ] ], [ 0, [ 0, [ 0, 44, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"film festival\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "descriptions", "of", "the", "photos", "taken", "at", "the", "tourist", "attraction", "``", "film", "festival", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "description" ], [ "of" ], [ "photo" ], [ "taken" ], [ "at" ], [ "tourist", "attraction" ], [ "'" ], [ "film" ], [ "festival" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "photo", "NN" ], [ "taken", "VBN" ], [ "at", "IN" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "'", "POS" ], [ "film", "NN" ], [ "festival", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "film festival", "Film Festival" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(13) A(0) C(20) T(13) Filter(2) A(0) C(19) T(6) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name , T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = \"film festival\"", "query_toks": [ "SELECT", "T1.Name", ",", "T1.Description", "FROM", "PHOTOS", "AS", "T1", "JOIN", "TOURIST_ATTRACTIONS", "AS", "T2", "ON", "T1.Tourist_Attraction_ID", "=", "T2.Tourist_Attraction_ID", "WHERE", "T2.Name", "=", "``", "film", "festival", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "description", "from", "photos", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "tourist_attraction_id", "=", "t2", ".", "tourist_attraction_id", "where", "t2", ".", "name", "=", "value" ], "question": "Find the names and descriptions of the photos taken at the tourist attraction called \"film festival\".", "question_toks": [ "find", "name", "and", "description", "of", "photo", "taken", "at", "tourist", "attraction", "called", "'", "film", "festival", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 42, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 13 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 43, false ], null ] ], [ 0, [ 0, [ 0, 44, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"film festival\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Find", "the", "names", "and", "descriptions", "of", "the", "photos", "taken", "at", "the", "tourist", "attraction", "called", "``", "film", "festival", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "description" ], [ "of" ], [ "photo" ], [ "taken" ], [ "at" ], [ "tourist", "attraction" ], [ "called" ], [ "'" ], [ "film" ], [ "festival" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "photo", "NN" ], [ "taken", "VBN" ], [ "at", "IN" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "called", "VBN" ], [ "'", "POS" ], [ "film", "NN" ], [ "festival", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "film festival", "Film Festival" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(13) A(0) C(20) T(13) Filter(2) A(0) C(19) T(6) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Royal_Family_Details , T2.How_to_Get_There FROM ROYAL_FAMILY AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Royal_Family_ID = T2.Tourist_Attraction_ID", "query_toks": [ "SELECT", "T1.Royal_Family_Details", ",", "T2.How_to_Get_There", "FROM", "ROYAL_FAMILY", "AS", "T1", "JOIN", "TOURIST_ATTRACTIONS", "AS", "T2", "ON", "T1.Royal_Family_ID", "=", "T2.Tourist_Attraction_ID" ], "query_toks_no_value": [ "select", "t1", ".", "royal_family_details", ",", "t2", ".", "how_to_get_there", "from", "royal_family", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "royal_family_id", "=", "t2", ".", "tourist_attraction_id" ], "question": "What are the details and ways to get to tourist attractions related to royal family?", "question_toks": [ "what", "are", "detail", "and", "way", "to", "get", "to", "tourist", "attraction", "related", "to", "royal", "family", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "details", "and", "ways", "to", "get", "to", "tourist", "attractions", "related", "to", "royal", "family", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "and" ], [ "way" ], [ "to" ], [ "get" ], [ "to" ], [ "tourist", "attraction" ], [ "related" ], [ "to" ], [ "royal", "family" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "JJ" ], [ "and", "CC" ], [ "way", "NN" ], [ "to", "TO" ], [ "get", "VB" ], [ "to", "TO" ], [ "tourist", "VB" ], [ "attraction", "NN" ], [ "related", "VBN" ], [ "to", "TO" ], [ "royal", "VB" ], [ "family", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(29) T(10) A(0) C(18) T(6)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Royal_Family_Details , T2.How_to_Get_There FROM ROYAL_FAMILY AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Royal_Family_ID = T2.Tourist_Attraction_ID", "query_toks": [ "SELECT", "T1.Royal_Family_Details", ",", "T2.How_to_Get_There", "FROM", "ROYAL_FAMILY", "AS", "T1", "JOIN", "TOURIST_ATTRACTIONS", "AS", "T2", "ON", "T1.Royal_Family_ID", "=", "T2.Tourist_Attraction_ID" ], "query_toks_no_value": [ "select", "t1", ".", "royal_family_details", ",", "t2", ".", "how_to_get_there", "from", "royal_family", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "royal_family_id", "=", "t2", ".", "tourist_attraction_id" ], "question": "Which tourist attractions are related to royal family? Tell me their details and how we can get there.", "question_toks": [ "which", "tourist", "attraction", "are", "related", "to", "royal", "family", "?", "tell", "me", "their", "detail", "and", "how", "we", "can", "get", "there", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Which", "tourist", "attractions", "are", "related", "to", "royal", "family", "?", "Tell", "me", "their", "details", "and", "how", "we", "can", "get", "there", "." ], "question_arg": [ [ "which" ], [ "tourist", "attraction" ], [ "are" ], [ "related" ], [ "to" ], [ "royal", "family" ], [ "?" ], [ "tell" ], [ "me" ], [ "their" ], [ "detail" ], [ "and" ], [ "how" ], [ "we" ], [ "can" ], [ "get" ], [ "there" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "are", "VBP" ], [ "related", "VBN" ], [ "to", "TO" ], [ "royal", "VB" ], [ "family", "NN" ], [ "?", "." ], [ "tell", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "detail", "NN" ], [ "and", "CC" ], [ "how", "WRB" ], [ "we", "PRP" ], [ "can", "MD" ], [ "get", "VB" ], [ "there", "RB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(29) T(10) A(0) C(18) T(6)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = \"walk\"", "query_toks": [ "SELECT", "T1.Shop_Details", "FROM", "SHOPS", "AS", "T1", "JOIN", "TOURIST_ATTRACTIONS", "AS", "T2", "ON", "T1.Shop_ID", "=", "T2.Tourist_Attraction_ID", "WHERE", "T2.How_to_Get_There", "=", "``", "walk", "''" ], "query_toks_no_value": [ "select", "t1", ".", "shop_details", "from", "shops", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "tourist_attraction_id", "where", "t2", ".", "how_to_get_there", "=", "value" ], "question": "What are the details of the shops that can be accessed by walk?", "question_toks": [ "what", "are", "detail", "of", "shop", "that", "can", "be", "accessed", "by", "walk", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"walk\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "details", "of", "the", "shops", "that", "can", "be", "accessed", "by", "walk", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "of" ], [ "shop" ], [ "that" ], [ "can" ], [ "be" ], [ "accessed" ], [ "by" ], [ "walk" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "be", "VB" ], [ "accessed", "VBN" ], [ "by", "IN" ], [ "walk", "NN" ], [ "?", "." ] ], "values": [ "walk" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(25) T(8) Filter(2) A(0) C(18) T(6) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = \"walk\"", "query_toks": [ "SELECT", "T1.Shop_Details", "FROM", "SHOPS", "AS", "T1", "JOIN", "TOURIST_ATTRACTIONS", "AS", "T2", "ON", "T1.Shop_ID", "=", "T2.Tourist_Attraction_ID", "WHERE", "T2.How_to_Get_There", "=", "``", "walk", "''" ], "query_toks_no_value": [ "select", "t1", ".", "shop_details", "from", "shops", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "tourist_attraction_id", "where", "t2", ".", "how_to_get_there", "=", "value" ], "question": "Find the details of the shops that can be reached by walk.", "question_toks": [ "find", "detail", "of", "shop", "that", "can", "be", "reached", "by", "walk", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"walk\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Find", "the", "details", "of", "the", "shops", "that", "can", "be", "reached", "by", "walk", "." ], "question_arg": [ [ "find" ], [ "detail" ], [ "of" ], [ "shop" ], [ "that" ], [ "can" ], [ "be" ], [ "reached" ], [ "by" ], [ "walk" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "detail", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "be", "VB" ], [ "reached", "VBN" ], [ "by", "IN" ], [ "walk", "NN" ], [ ".", "." ] ], "values": [ "walk" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(25) T(8) Filter(2) A(0) C(18) T(6) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name FROM STAFF AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = \"US museum\"", "query_toks": [ "SELECT", "T1.Name", "FROM", "STAFF", "AS", "T1", "JOIN", "TOURIST_ATTRACTIONS", "AS", "T2", "ON", "T1.Tourist_Attraction_ID", "=", "T2.Tourist_Attraction_ID", "WHERE", "T2.Name", "=", "``", "US", "museum", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "staff", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "tourist_attraction_id", "=", "t2", ".", "tourist_attraction_id", "where", "t2", ".", "name", "=", "value" ], "question": "What is the name of the staff that is in charge of the attraction named \"US museum\"?", "question_toks": [ "what", "is", "name", "of", "staff", "that", "is", "in", "charge", "of", "attraction", "named", "'", "u", "museum", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 48, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 14 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 49, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"US museum\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "staff", "that", "is", "in", "charge", "of", "the", "attraction", "named", "``", "US", "museum", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "staff" ], [ "that" ], [ "is" ], [ "in" ], [ "charge" ], [ "of" ], [ "attraction" ], [ "named" ], [ "'" ], [ "u" ], [ "museum" ], [ "'" ], [ "?" ] ], "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" ], [ "staff", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "in", "IN" ], [ "charge", "NN" ], [ "of", "IN" ], [ "attraction", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "u", "JJ" ], [ "museum", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "museum", "US museum" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(14) Filter(2) A(0) C(19) T(6) V(1)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name FROM STAFF AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = \"US museum\"", "query_toks": [ "SELECT", "T1.Name", "FROM", "STAFF", "AS", "T1", "JOIN", "TOURIST_ATTRACTIONS", "AS", "T2", "ON", "T1.Tourist_Attraction_ID", "=", "T2.Tourist_Attraction_ID", "WHERE", "T2.Name", "=", "``", "US", "museum", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "staff", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "tourist_attraction_id", "=", "t2", ".", "tourist_attraction_id", "where", "t2", ".", "name", "=", "value" ], "question": "Tell me the name of the staff in charge of the attraction called \"US museum\".", "question_toks": [ "tell", "me", "name", "of", "staff", "in", "charge", "of", "attraction", "called", "'", "u", "museum", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 48, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 14 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 49, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"US museum\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Tell", "me", "the", "name", "of", "the", "staff", "in", "charge", "of", "the", "attraction", "called", "``", "US", "museum", "''", "." ], "question_arg": [ [ "tell" ], [ "me" ], [ "name" ], [ "of" ], [ "staff" ], [ "in" ], [ "charge" ], [ "of" ], [ "attraction" ], [ "called" ], [ "'" ], [ "u" ], [ "museum" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "tell", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "in", "IN" ], [ "charge", "NN" ], [ "of", "IN" ], [ "attraction", "NN" ], [ "called", "VBN" ], [ "'", "POS" ], [ "u", "JJ" ], [ "museum", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "museum", "US museum" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(14) Filter(2) A(0) C(19) T(6) V(1)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = \"walk\" OR T2.How_to_Get_There = \"bus\"", "query_toks": [ "SELECT", "T1.Market_Details", "FROM", "Street_Markets", "AS", "T1", "JOIN", "TOURIST_ATTRACTIONS", "AS", "T2", "ON", "T1.Market_ID", "=", "T2.Tourist_Attraction_ID", "WHERE", "T2.How_to_Get_There", "=", "``", "walk", "''", "OR", "T2.How_to_Get_There", "=", "``", "bus", "''" ], "query_toks_no_value": [ "select", "t1", ".", "market_details", "from", "street_markets", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "market_id", "=", "t2", ".", "tourist_attraction_id", "where", "t2", ".", "how_to_get_there", "=", "value", "or", "t2", ".", "how_to_get_there", "=", "value" ], "question": "What are the details of the markets that can be accessed by walk or bus?", "question_toks": [ "what", "are", "detail", "of", "market", "that", "can", "be", "accessed", "by", "walk", "or", "bus", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"walk\"", null ], "or", [ false, 2, [ 0, [ 0, 21, false ], null ], "\"bus\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "details", "of", "the", "markets", "that", "can", "be", "accessed", "by", "walk", "or", "bus", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "of" ], [ "market" ], [ "that" ], [ "can" ], [ "be" ], [ "accessed" ], [ "by" ], [ "walk" ], [ "or" ], [ "bus" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "NN" ], [ "of", "IN" ], [ "market", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "be", "VB" ], [ "accessed", "VBN" ], [ "by", "IN" ], [ "walk", "NN" ], [ "or", "CC" ], [ "bus", "NN" ], [ "?", "." ] ], "values": [ "bus", "walk" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(7) Filter(1) Filter(2) A(0) C(18) T(6) V(1) Filter(2) A(0) C(18) T(6) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = \"walk\" OR T2.How_to_Get_There = \"bus\"", "query_toks": [ "SELECT", "T1.Market_Details", "FROM", "Street_Markets", "AS", "T1", "JOIN", "TOURIST_ATTRACTIONS", "AS", "T2", "ON", "T1.Market_ID", "=", "T2.Tourist_Attraction_ID", "WHERE", "T2.How_to_Get_There", "=", "``", "walk", "''", "OR", "T2.How_to_Get_There", "=", "``", "bus", "''" ], "query_toks_no_value": [ "select", "t1", ".", "market_details", "from", "street_markets", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "market_id", "=", "t2", ".", "tourist_attraction_id", "where", "t2", ".", "how_to_get_there", "=", "value", "or", "t2", ".", "how_to_get_there", "=", "value" ], "question": "Find the details of all the markets that are accessible by walk or bus.", "question_toks": [ "find", "detail", "of", "all", "market", "that", "are", "accessible", "by", "walk", "or", "bus", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"walk\"", null ], "or", [ false, 2, [ 0, [ 0, 21, false ], null ], "\"bus\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Find", "the", "details", "of", "all", "the", "markets", "that", "are", "accessible", "by", "walk", "or", "bus", "." ], "question_arg": [ [ "find" ], [ "detail" ], [ "of" ], [ "all" ], [ "market" ], [ "that" ], [ "are" ], [ "accessible" ], [ "by" ], [ "walk" ], [ "or" ], [ "bus" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "detail", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "market", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "accessible", "JJ" ], [ "by", "IN" ], [ "walk", "NN" ], [ "or", "CC" ], [ "bus", "NN" ], [ ".", "." ] ], "values": [ "bus", "walk" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(7) Filter(1) Filter(2) A(0) C(18) T(6) V(1) Filter(2) A(0) C(18) T(6) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T2.Visit_Date , T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = \"Vincent\"", "query_toks": [ "SELECT", "T2.Visit_Date", ",", "T2.Visit_Details", "FROM", "VISITORS", "AS", "T1", "JOIN", "VISITS", "AS", "T2", "ON", "T1.Tourist_ID", "=", "T2.Tourist_ID", "WHERE", "T1.Tourist_Details", "=", "``", "Vincent", "''" ], "query_toks_no_value": [ "select", "t2", ".", "visit_date", ",", "t2", ".", "visit_details", "from", "visitors", "as", "t1", "join", "visits", "as", "t2", "on", "t1", ".", "tourist_id", "=", "t2", ".", "tourist_id", "where", "t1", ".", "tourist_details", "=", "value" ], "question": "What are the visit date and details of the visitor whose detail is 'Vincent'?", "question_toks": [ "what", "are", "visit", "date", "and", "detail", "of", "visitor", "whose", "detail", "is", "'", "vincent", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 39, false ], null ] ], [ 0, [ 0, [ 0, 40, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Vincent\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "visit", "date", "and", "details", "of", "the", "visitor", "whose", "detail", "is", "'Vincent", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "visit", "date" ], [ "and" ], [ "detail" ], [ "of" ], [ "visitor" ], [ "whose" ], [ "detail" ], [ "is" ], [ "'" ], [ "vincent" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "visit", "JJ" ], [ "date", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ "of", "IN" ], [ "visitor", "NN" ], [ "whose", "WP$" ], [ "detail", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "vincent", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Vincent" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(33) T(12) A(0) C(34) T(12) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T2.Visit_Date , T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = \"Vincent\"", "query_toks": [ "SELECT", "T2.Visit_Date", ",", "T2.Visit_Details", "FROM", "VISITORS", "AS", "T1", "JOIN", "VISITS", "AS", "T2", "ON", "T1.Tourist_ID", "=", "T2.Tourist_ID", "WHERE", "T1.Tourist_Details", "=", "``", "Vincent", "''" ], "query_toks_no_value": [ "select", "t2", ".", "visit_date", ",", "t2", ".", "visit_details", "from", "visitors", "as", "t1", "join", "visits", "as", "t2", "on", "t1", ".", "tourist_id", "=", "t2", ".", "tourist_id", "where", "t1", ".", "tourist_details", "=", "value" ], "question": "Find the visit date and details of the tourist whose detail is 'Vincent'", "question_toks": [ "find", "visit", "date", "and", "detail", "of", "tourist", "whose", "detail", "is", "'", "vincent", "'" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 39, false ], null ] ], [ 0, [ 0, [ 0, 40, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Vincent\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Find", "the", "visit", "date", "and", "details", "of", "the", "tourist", "whose", "detail", "is", "'Vincent", "'" ], "question_arg": [ [ "find" ], [ "visit", "date" ], [ "and" ], [ "detail" ], [ "of" ], [ "tourist" ], [ "whose" ], [ "detail" ], [ "is" ], [ "'" ], [ "vincent" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "visit", "NN" ], [ "date", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ "of", "IN" ], [ "tourist", "NN" ], [ "whose", "WP$" ], [ "detail", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "vincent", "NN" ], [ "'", "''" ] ], "values": [ "Vincent" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(33) T(12) A(0) C(34) T(12) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID = T3.Tourist_ID WHERE T3.Tourist_Details = \"Vincent\"", "query_toks": [ "SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITS", "AS", "T2", "ON", "T1.Tourist_Attraction_ID", "=", "T2.Tourist_Attraction_ID", "JOIN", "VISITORS", "AS", "T3", "ON", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T3.Tourist_Details", "=", "``", "Vincent", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visits", "as", "t2", "on", "t1", ".", "tourist_attraction_id", "=", "t2", ".", "tourist_attraction_id", "join", "visitors", "as", "t3", "on", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t3", ".", "tourist_details", "=", "value" ], "question": "Which tourist attractions does the visitor with detail 'Vincent' visit?", "question_toks": [ "which", "tourist", "attraction", "doe", "visitor", "with", "detail", "'", "vincent", "'", "visit", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Vincent\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Which", "tourist", "attractions", "does", "the", "visitor", "with", "detail", "'Vincent", "'", "visit", "?" ], "question_arg": [ [ "which" ], [ "tourist", "attraction" ], [ "doe" ], [ "visitor" ], [ "with" ], [ "detail" ], [ "'" ], [ "vincent" ], [ "'" ], [ "visit" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "doe", "NN" ], [ "visitor", "NN" ], [ "with", "IN" ], [ "detail", "NN" ], [ "'", "POS" ], [ "vincent", "NN" ], [ "'", "''" ], [ "visit", "NN" ], [ "?", "." ] ], "values": [ "Vincent" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(0) Filter(18) A(0) C(17) T(6) Root(5) Sel(0) N(0) A(0) C(17) T(12) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID = T3.Tourist_ID WHERE T3.Tourist_Details = \"Vincent\"", "query_toks": [ "SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITS", "AS", "T2", "ON", "T1.Tourist_Attraction_ID", "=", "T2.Tourist_Attraction_ID", "JOIN", "VISITORS", "AS", "T3", "ON", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T3.Tourist_Details", "=", "``", "Vincent", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visits", "as", "t2", "on", "t1", ".", "tourist_attraction_id", "=", "t2", ".", "tourist_attraction_id", "join", "visitors", "as", "t3", "on", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t3", ".", "tourist_details", "=", "value" ], "question": "Show the tourist attractions visited by the tourist whose detail is 'Vincent'.", "question_toks": [ "show", "tourist", "attraction", "visited", "by", "tourist", "whose", "detail", "is", "'", "vincent", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Vincent\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Show", "the", "tourist", "attractions", "visited", "by", "the", "tourist", "whose", "detail", "is", "'Vincent", "'", "." ], "question_arg": [ [ "show" ], [ "tourist", "attraction" ], [ "visited" ], [ "by" ], [ "tourist" ], [ "whose" ], [ "detail" ], [ "is" ], [ "'" ], [ "vincent" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "visited", "VBN" ], [ "by", "IN" ], [ "tourist", "NN" ], [ "whose", "WP$" ], [ "detail", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "vincent", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Vincent" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(0) Filter(18) A(0) C(17) T(6) Root(5) Sel(0) N(0) A(0) C(17) T(12) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name , T3.Visit_Date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = \"Vincent\" OR T2.Tourist_Details = \"Vivian\"", "query_toks": [ "SELECT", "T1.Name", ",", "T3.Visit_Date", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Vincent", "''", "OR", "T2.Tourist_Details", "=", "``", "Vivian", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t3", ".", "visit_date", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value", "or", "t2", ".", "tourist_details", "=", "value" ], "question": "What are the names of the tourist attractions and the dates when the tourists named Vincent or Vivian visited there?", "question_toks": [ "what", "are", "name", "of", "tourist", "attraction", "and", "date", "when", "tourist", "named", "vincent", "or", "vivian", "visited", "there", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 37, false ], null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 3 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Vincent\"", null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Vivian\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "tourist", "attractions", "and", "the", "dates", "when", "the", "tourists", "named", "Vincent", "or", "Vivian", "visited", "there", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "tourist", "attraction" ], [ "and" ], [ "date" ], [ "when" ], [ "tourist" ], [ "named" ], [ "vincent" ], [ "or" ], [ "vivian" ], [ "visited" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "when", "WRB" ], [ "tourist", "NN" ], [ "named", "VBN" ], [ "vincent", "NN" ], [ "or", "CC" ], [ "vivian", "JJ" ], [ "visited", "VBN" ], [ "there", "EX" ], [ "?", "." ] ], "values": [ "Vivian", "Vincent" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(6) A(0) C(33) T(12) Filter(1) Filter(2) A(0) C(10) T(3) V(1) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name , T3.Visit_Date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = \"Vincent\" OR T2.Tourist_Details = \"Vivian\"", "query_toks": [ "SELECT", "T1.Name", ",", "T3.Visit_Date", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Vincent", "''", "OR", "T2.Tourist_Details", "=", "``", "Vivian", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t3", ".", "visit_date", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value", "or", "t2", ".", "tourist_details", "=", "value" ], "question": "For each tourist attraction, return its name and the date when the tourists named Vincent or Vivian visited there.", "question_toks": [ "for", "each", "tourist", "attraction", ",", "return", "it", "name", "and", "date", "when", "tourist", "named", "vincent", "or", "vivian", "visited", "there", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 37, false ], null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 3 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Vincent\"", null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Vivian\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "For", "each", "tourist", "attraction", ",", "return", "its", "name", "and", "the", "date", "when", "the", "tourists", "named", "Vincent", "or", "Vivian", "visited", "there", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "tourist", "attraction" ], [ "," ], [ "return" ], [ "it" ], [ "name" ], [ "and" ], [ "date" ], [ "when" ], [ "tourist" ], [ "named" ], [ "vincent" ], [ "or" ], [ "vivian" ], [ "visited" ], [ "there" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ ",", "," ], [ "return", "VB" ], [ "it", "PRP" ], [ "name", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "when", "WRB" ], [ "tourist", "NN" ], [ "named", "VBN" ], [ "vincent", "NN" ], [ "or", "CC" ], [ "vivian", "JJ" ], [ "visited", "VBN" ], [ "there", "RB" ], [ ".", "." ] ], "values": [ "Vivian", "Vincent" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(6) A(0) C(33) T(12) Filter(1) Filter(2) A(0) C(10) T(3) V(1) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT star_rating_code , avg(price_range) FROM HOTELS GROUP BY star_rating_code", "query_toks": [ "SELECT", "star_rating_code", ",", "avg", "(", "price_range", ")", "FROM", "HOTELS", "GROUP", "BY", "star_rating_code" ], "query_toks_no_value": [ "select", "star_rating_code", ",", "avg", "(", "price_range", ")", "from", "hotels", "group", "by", "star_rating_code" ], "question": "Show the average price of hotels for each star rating code.", "question_toks": [ "show", "average", "price", "of", "hotel", "for", "each", "star", "rating", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 5, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Show", "the", "average", "price", "of", "hotels", "for", "each", "star", "rating", "code", "." ], "question_arg": [ [ "show" ], [ "average" ], [ "price" ], [ "of" ], [ "hotel" ], [ "for" ], [ "each" ], [ "star", "rating", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "hotel", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "star", "NN" ], [ "rating", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [ "star" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(5) A(5) C(15) T(5)" }, { "db_id": "cre_Theme_park", "query": "SELECT star_rating_code , avg(price_range) FROM HOTELS GROUP BY star_rating_code", "query_toks": [ "SELECT", "star_rating_code", ",", "avg", "(", "price_range", ")", "FROM", "HOTELS", "GROUP", "BY", "star_rating_code" ], "query_toks_no_value": [ "select", "star_rating_code", ",", "avg", "(", "price_range", ")", "from", "hotels", "group", "by", "star_rating_code" ], "question": "What is the average price range of hotels for each each star rating code?", "question_toks": [ "what", "is", "average", "price", "range", "of", "hotel", "for", "each", "each", "star", "rating", "code", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 5, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "is", "the", "average", "price", "range", "of", "hotels", "for", "each", "each", "star", "rating", "code", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "price", "range" ], [ "of" ], [ "hotel" ], [ "for" ], [ "each" ], [ "each" ], [ "star", "rating", "code" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "range", "NN" ], [ "of", "IN" ], [ "hotel", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "each", "DT" ], [ "star", "NN" ], [ "rating", "NN" ], [ "code", "NN" ], [ "?", "." ] ], "values": [ "star" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(5) A(5) C(15) T(5)" }, { "db_id": "cre_Theme_park", "query": "SELECT pets_allowed_yn , avg(price_range) FROM HOTELS GROUP BY pets_allowed_yn", "query_toks": [ "SELECT", "pets_allowed_yn", ",", "avg", "(", "price_range", ")", "FROM", "HOTELS", "GROUP", "BY", "pets_allowed_yn" ], "query_toks_no_value": [ "select", "pets_allowed_yn", ",", "avg", "(", "price_range", ")", "from", "hotels", "group", "by", "pets_allowed_yn" ], "question": "Show the average price of hotels for different pet policy.", "question_toks": [ "show", "average", "price", "of", "hotel", "for", "different", "pet", "policy", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 5, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Show", "the", "average", "price", "of", "hotels", "for", "different", "pet", "policy", "." ], "question_arg": [ [ "show" ], [ "average" ], [ "price" ], [ "of" ], [ "hotel" ], [ "for" ], [ "different" ], [ "pet" ], [ "policy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "hotel", "NN" ], [ "for", "IN" ], [ "different", "JJ" ], [ "pet", "NN" ], [ "policy", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(14) T(5) A(5) C(15) T(5)" }, { "db_id": "cre_Theme_park", "query": "SELECT pets_allowed_yn , avg(price_range) FROM HOTELS GROUP BY pets_allowed_yn", "query_toks": [ "SELECT", "pets_allowed_yn", ",", "avg", "(", "price_range", ")", "FROM", "HOTELS", "GROUP", "BY", "pets_allowed_yn" ], "query_toks_no_value": [ "select", "pets_allowed_yn", ",", "avg", "(", "price_range", ")", "from", "hotels", "group", "by", "pets_allowed_yn" ], "question": "What are the average prices of hotels grouped by their pet policy.", "question_toks": [ "what", "are", "average", "price", "of", "hotel", "grouped", "by", "their", "pet", "policy", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 5, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "average", "prices", "of", "hotels", "grouped", "by", "their", "pet", "policy", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "price" ], [ "of" ], [ "hotel" ], [ "grouped" ], [ "by" ], [ "their" ], [ "pet" ], [ "policy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "hotel", "NN" ], [ "grouped", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "pet", "NN" ], [ "policy", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(14) T(5) A(5) C(15) T(5)" }, { "db_id": "cre_Theme_park", "query": "SELECT hotel_id , star_rating_code FROM HOTELS ORDER BY price_range ASC", "query_toks": [ "SELECT", "hotel_id", ",", "star_rating_code", "FROM", "HOTELS", "ORDER", "BY", "price_range", "ASC" ], "query_toks_no_value": [ "select", "hotel_id", ",", "star_rating_code", "from", "hotels", "order", "by", "price_range", "asc" ], "question": "Show the id and star rating of each hotel, ordered by its price from low to high.", "question_toks": [ "show", "id", "and", "star", "rating", "of", "each", "hotel", ",", "ordered", "by", "it", "price", "from", "low", "to", "high", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Show", "the", "id", "and", "star", "rating", "of", "each", "hotel", ",", "ordered", "by", "its", "price", "from", "low", "to", "high", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "and" ], [ "star" ], [ "rating" ], [ "of" ], [ "each" ], [ "hotel" ], [ "," ], [ "ordered" ], [ "by" ], [ "it" ], [ "price" ], [ "from" ], [ "low" ], [ "to" ], [ "high" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "star", "NN" ], [ "rating", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "hotel", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "it", "PRP" ], [ "price", "NN" ], [ "from", "IN" ], [ "low", "JJ" ], [ "to", "TO" ], [ "high", "VB" ], [ ".", "." ] ], "values": [ "star" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(13) T(5) A(0) C(1) T(5) Order(1) A(0) C(15) T(5)" }, { "db_id": "cre_Theme_park", "query": "SELECT hotel_id , star_rating_code FROM HOTELS ORDER BY price_range ASC", "query_toks": [ "SELECT", "hotel_id", ",", "star_rating_code", "FROM", "HOTELS", "ORDER", "BY", "price_range", "ASC" ], "query_toks_no_value": [ "select", "hotel_id", ",", "star_rating_code", "from", "hotels", "order", "by", "price_range", "asc" ], "question": "Find the id and star rating of each hotel and sort them in increasing order of price.", "question_toks": [ "find", "id", "and", "star", "rating", "of", "each", "hotel", "and", "sort", "them", "in", "increasing", "order", "of", "price", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Find", "the", "id", "and", "star", "rating", "of", "each", "hotel", "and", "sort", "them", "in", "increasing", "order", "of", "price", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "star" ], [ "rating" ], [ "of" ], [ "each" ], [ "hotel" ], [ "and" ], [ "sort" ], [ "them" ], [ "in" ], [ "increasing" ], [ "order" ], [ "of" ], [ "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "star", "NN" ], [ "rating", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "hotel", "NN" ], [ "and", "CC" ], [ "sort", "VB" ], [ "them", "PRP" ], [ "in", "IN" ], [ "increasing", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "price", "NN" ], [ ".", "." ] ], "values": [ "star" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(13) T(5) A(0) C(1) T(5) Order(1) A(0) C(15) T(5)" }, { "db_id": "cre_Theme_park", "query": "SELECT other_hotel_details FROM HOTELS ORDER BY price_range DESC LIMIT 3", "query_toks": [ "SELECT", "other_hotel_details", "FROM", "HOTELS", "ORDER", "BY", "price_range", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "other_hotel_details", "from", "hotels", "order", "by", "price_range", "desc", "limit", "value" ], "question": "Show the details of the top 3 most expensive hotels.", "question_toks": [ "show", "detail", "of", "top", "3", "most", "expensive", "hotel", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Show", "the", "details", "of", "the", "top", "3", "most", "expensive", "hotels", "." ], "question_arg": [ [ "show" ], [ "detail" ], [ "of" ], [ "top" ], [ "3" ], [ "most" ], [ "expensive" ], [ "hotel" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "detail", "NN" ], [ "of", "IN" ], [ "top", "JJ" ], [ "3", "CD" ], [ "most", "RBS" ], [ "expensive", "JJ" ], [ "hotel", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(16) T(5) Sup(0) A(0) C(15) T(5)" }, { "db_id": "cre_Theme_park", "query": "SELECT other_hotel_details FROM HOTELS ORDER BY price_range DESC LIMIT 3", "query_toks": [ "SELECT", "other_hotel_details", "FROM", "HOTELS", "ORDER", "BY", "price_range", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "other_hotel_details", "from", "hotels", "order", "by", "price_range", "desc", "limit", "value" ], "question": "What are the details of the three most expensive hotels?", "question_toks": [ "what", "are", "detail", "of", "three", "most", "expensive", "hotel", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "details", "of", "the", "three", "most", "expensive", "hotels", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "of" ], [ "three" ], [ "most" ], [ "expensive" ], [ "hotel" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "NN" ], [ "of", "IN" ], [ "three", "CD" ], [ "most", "RBS" ], [ "expensive", "JJ" ], [ "hotel", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(16) T(5) Sup(0) A(0) C(15) T(5)" }, { "db_id": "cre_Theme_park", "query": "SELECT other_hotel_details , star_rating_code FROM HOTELS ORDER BY price_range ASC LIMIT 3", "query_toks": [ "SELECT", "other_hotel_details", ",", "star_rating_code", "FROM", "HOTELS", "ORDER", "BY", "price_range", "ASC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "other_hotel_details", ",", "star_rating_code", "from", "hotels", "order", "by", "price_range", "asc", "limit", "value" ], "question": "Show the details and star ratings of the 3 least expensive hotels.", "question_toks": [ "show", "detail", "and", "star", "rating", "of", "3", "least", "expensive", "hotel", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Show", "the", "details", "and", "star", "ratings", "of", "the", "3", "least", "expensive", "hotels", "." ], "question_arg": [ [ "show" ], [ "detail" ], [ "and" ], [ "star" ], [ "rating" ], [ "of" ], [ "3" ], [ "least" ], [ "expensive" ], [ "hotel" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "detail", "NN" ], [ "and", "CC" ], [ "star", "NN" ], [ "rating", "NN" ], [ "of", "IN" ], [ "3", "CD" ], [ "least", "JJS" ], [ "expensive", "JJ" ], [ "hotel", "NN" ], [ ".", "." ] ], "values": [ "star", "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(16) T(5) A(0) C(1) T(5) Sup(1) A(0) C(15) T(5)" }, { "db_id": "cre_Theme_park", "query": "SELECT other_hotel_details , star_rating_code FROM HOTELS ORDER BY price_range ASC LIMIT 3", "query_toks": [ "SELECT", "other_hotel_details", ",", "star_rating_code", "FROM", "HOTELS", "ORDER", "BY", "price_range", "ASC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "other_hotel_details", ",", "star_rating_code", "from", "hotels", "order", "by", "price_range", "asc", "limit", "value" ], "question": "What are the details and star ratings of the three hotels with the lowest price ranges?", "question_toks": [ "what", "are", "detail", "and", "star", "rating", "of", "three", "hotel", "with", "lowest", "price", "range", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "details", "and", "star", "ratings", "of", "the", "three", "hotels", "with", "the", "lowest", "price", "ranges", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "and" ], [ "star" ], [ "rating" ], [ "of" ], [ "three" ], [ "hotel" ], [ "with" ], [ "lowest" ], [ "price", "range" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "JJ" ], [ "and", "CC" ], [ "star", "NN" ], [ "rating", "NN" ], [ "of", "IN" ], [ "three", "CD" ], [ "hotel", "NN" ], [ "with", "IN" ], [ "lowest", "JJ" ], [ "price", "NN" ], [ "range", "NN" ], [ "?", "." ] ], "values": [ "star", "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(16) T(5) A(0) C(1) T(5) Sup(1) A(0) C(15) T(5)" }, { "db_id": "cre_Theme_park", "query": "SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "How_to_Get_There", "FROM", "Tourist_Attractions", "GROUP", "BY", "How_to_Get_There", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "how_to_get_there", "from", "tourist_attractions", "group", "by", "how_to_get_there", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the transportation method most people choose to get to tourist attractions.", "question_toks": [ "show", "transportation", "method", "most", "people", "choose", "to", "get", "to", "tourist", "attraction", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Show", "the", "transportation", "method", "most", "people", "choose", "to", "get", "to", "tourist", "attractions", "." ], "question_arg": [ [ "show" ], [ "transportation" ], [ "method" ], [ "most" ], [ "people" ], [ "choose" ], [ "to" ], [ "get" ], [ "to" ], [ "tourist", "attraction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "transportation", "NN" ], [ "method", "VBZ" ], [ "most", "JJS" ], [ "people", "NNS" ], [ "choose", "VBP" ], [ "to", "TO" ], [ "get", "VB" ], [ "to", "TO" ], [ "tourist", "VB" ], [ "attraction", "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": "cre_Theme_park", "query": "SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "How_to_Get_There", "FROM", "Tourist_Attractions", "GROUP", "BY", "How_to_Get_There", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "how_to_get_there", "from", "tourist_attractions", "group", "by", "how_to_get_there", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which transportation method is used the most often to get to tourist attractions?", "question_toks": [ "which", "transportation", "method", "is", "used", "most", "often", "to", "get", "to", "tourist", "attraction", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Which", "transportation", "method", "is", "used", "the", "most", "often", "to", "get", "to", "tourist", "attractions", "?" ], "question_arg": [ [ "which" ], [ "transportation" ], [ "method" ], [ "is" ], [ "used" ], [ "most" ], [ "often" ], [ "to" ], [ "get" ], [ "to" ], [ "tourist", "attraction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "transportation", "NN" ], [ "method", "NN" ], [ "is", "VBZ" ], [ "used", "VBN" ], [ "most", "RBS" ], [ "often", "RB" ], [ "to", "TO" ], [ "get", "VB" ], [ "to", "TO" ], [ "tourist", "VB" ], [ "attraction", "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": "cre_Theme_park", "query": "SELECT T1.Attraction_Type_Description , T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code = T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Attraction_Type_Description", ",", "T2.Attraction_Type_Code", "FROM", "Ref_Attraction_Types", "AS", "T1", "JOIN", "Tourist_Attractions", "AS", "T2", "ON", "T1.Attraction_Type_Code", "=", "T2.Attraction_Type_Code", "GROUP", "BY", "T2.Attraction_Type_Code", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "attraction_type_description", ",", "t2", ".", "attraction_type_code", "from", "ref_attraction_types", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "attraction_type_code", "=", "t2", ".", "attraction_type_code", "group", "by", "t2", ".", "attraction_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the description and code of the attraction type most tourist attractions belong to.", "question_toks": [ "show", "description", "and", "code", "of", "attraction", "type", "most", "tourist", "attraction", "belong", "to", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Show", "the", "description", "and", "code", "of", "the", "attraction", "type", "most", "tourist", "attractions", "belong", "to", "." ], "question_arg": [ [ "show" ], [ "description" ], [ "and" ], [ "code" ], [ "of" ], [ "attraction" ], [ "type" ], [ "most" ], [ "tourist", "attraction" ], [ "belong" ], [ "to" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "description", "NN" ], [ "and", "CC" ], [ "code", "NN" ], [ "of", "IN" ], [ "attraction", "NN" ], [ "type", "NN" ], [ "most", "RBS" ], [ "tourist", "JJ" ], [ "attraction", "NN" ], [ "belong", "NN" ], [ "to", "TO" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(8) T(2) A(0) C(7) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Attraction_Type_Description , T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code = T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Attraction_Type_Description", ",", "T2.Attraction_Type_Code", "FROM", "Ref_Attraction_Types", "AS", "T1", "JOIN", "Tourist_Attractions", "AS", "T2", "ON", "T1.Attraction_Type_Code", "=", "T2.Attraction_Type_Code", "GROUP", "BY", "T2.Attraction_Type_Code", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "attraction_type_description", ",", "t2", ".", "attraction_type_code", "from", "ref_attraction_types", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "attraction_type_code", "=", "t2", ".", "attraction_type_code", "group", "by", "t2", ".", "attraction_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which attraction type does the most tourist attractions belong to? Tell me its attraction type description and code.", "question_toks": [ "which", "attraction", "type", "doe", "most", "tourist", "attraction", "belong", "to", "?", "tell", "me", "it", "attraction", "type", "description", "and", "code", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Which", "attraction", "type", "does", "the", "most", "tourist", "attractions", "belong", "to", "?", "Tell", "me", "its", "attraction", "type", "description", "and", "code", "." ], "question_arg": [ [ "which" ], [ "attraction" ], [ "type" ], [ "doe" ], [ "most" ], [ "tourist", "attraction" ], [ "belong" ], [ "to" ], [ "?" ], [ "tell" ], [ "me" ], [ "it" ], [ "attraction", "type", "description" ], [ "and" ], [ "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "attraction", "NN" ], [ "type", "NN" ], [ "doe", "VBZ" ], [ "most", "RBS" ], [ "tourist", "JJ" ], [ "attraction", "NN" ], [ "belong", "NN" ], [ "to", "TO" ], [ "?", "." ], [ "tell", "VB" ], [ "me", "PRP" ], [ "it", "PRP" ], [ "attraction", "VBZ" ], [ "type", "JJ" ], [ "description", "NN" ], [ "and", "CC" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(8) T(2) A(0) C(7) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "cre_Theme_park", "query": "SELECT How_to_Get_There , COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There", "query_toks": [ "SELECT", "How_to_Get_There", ",", "COUNT", "(", "*", ")", "FROM", "Tourist_Attractions", "GROUP", "BY", "How_to_Get_There" ], "query_toks_no_value": [ "select", "how_to_get_there", ",", "count", "(", "*", ")", "from", "tourist_attractions", "group", "by", "how_to_get_there" ], "question": "Show different ways to get to attractions and the number of attractions that can be accessed in the corresponding way.", "question_toks": [ "show", "different", "way", "to", "get", "to", "attraction", "and", "number", "of", "attraction", "that", "can", "be", "accessed", "in", "corresponding", "way", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "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": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Show", "different", "ways", "to", "get", "to", "attractions", "and", "the", "number", "of", "attractions", "that", "can", "be", "accessed", "in", "the", "corresponding", "way", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "way" ], [ "to" ], [ "get" ], [ "to" ], [ "attraction" ], [ "and" ], [ "number" ], [ "of" ], [ "attraction" ], [ "that" ], [ "can" ], [ "be" ], [ "accessed" ], [ "in" ], [ "corresponding" ], [ "way" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "different", "JJ" ], [ "way", "NN" ], [ "to", "TO" ], [ "get", "VB" ], [ "to", "TO" ], [ "attraction", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "attraction", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "be", "VB" ], [ "accessed", "VBN" ], [ "in", "IN" ], [ "corresponding", "VBG" ], [ "way", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(18) T(6) A(3) C(0) T(6)" }, { "db_id": "cre_Theme_park", "query": "SELECT How_to_Get_There , COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There", "query_toks": [ "SELECT", "How_to_Get_There", ",", "COUNT", "(", "*", ")", "FROM", "Tourist_Attractions", "GROUP", "BY", "How_to_Get_There" ], "query_toks_no_value": [ "select", "how_to_get_there", ",", "count", "(", "*", ")", "from", "tourist_attractions", "group", "by", "how_to_get_there" ], "question": "List all the possible ways to get to attractions, together with the number of attractions accessible by these methods.", "question_toks": [ "list", "all", "possible", "way", "to", "get", "to", "attraction", ",", "together", "with", "number", "of", "attraction", "accessible", "by", "these", "method", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "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": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "List", "all", "the", "possible", "ways", "to", "get", "to", "attractions", ",", "together", "with", "the", "number", "of", "attractions", "accessible", "by", "these", "methods", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "possible" ], [ "way" ], [ "to" ], [ "get" ], [ "to" ], [ "attraction" ], [ "," ], [ "together" ], [ "with" ], [ "number" ], [ "of" ], [ "attraction" ], [ "accessible" ], [ "by" ], [ "these" ], [ "method" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "possible", "JJ" ], [ "way", "NN" ], [ "to", "TO" ], [ "get", "VB" ], [ "to", "TO" ], [ "attraction", "VB" ], [ ",", "," ], [ "together", "RB" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "attraction", "NN" ], [ "accessible", "JJ" ], [ "by", "IN" ], [ "these", "DT" ], [ "method", "NNS" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(18) T(6) A(3) C(0) T(6)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name , T2.Tourist_Attraction_ID , COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID", "query_toks": [ "SELECT", "T1.Name", ",", "T2.Tourist_Attraction_ID", ",", "COUNT", "(", "*", ")", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITS", "AS", "T2", "ON", "T1.Tourist_Attraction_ID", "=", "T2.Tourist_Attraction_ID", "GROUP", "BY", "T2.Tourist_Attraction_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "tourist_attraction_id", ",", "count", "(", "*", ")", "from", "tourist_attractions", "as", "t1", "join", "visits", "as", "t2", "on", "t1", ".", "tourist_attraction_id", "=", "t2", ".", "tourist_attraction_id", "group", "by", "t2", ".", "tourist_attraction_id" ], "question": "Show different tourist attractions' names, ids, and the corresponding number of visits.", "question_toks": [ "show", "different", "tourist", "attraction", "'", "name", ",", "id", ",", "and", "corresponding", "number", "of", "visit", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 37, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Show", "different", "tourist", "attractions", "'", "names", ",", "ids", ",", "and", "the", "corresponding", "number", "of", "visits", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "tourist", "attraction" ], [ "'" ], [ "name" ], [ "," ], [ "id" ], [ "," ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "visit" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "different", "JJ" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "'", "POS" ], [ "name", "NN" ], [ ",", "," ], [ "id", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "visit", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(19) T(6) A(0) C(17) T(12) A(3) C(0) T(12)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name , T2.Tourist_Attraction_ID , COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID", "query_toks": [ "SELECT", "T1.Name", ",", "T2.Tourist_Attraction_ID", ",", "COUNT", "(", "*", ")", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITS", "AS", "T2", "ON", "T1.Tourist_Attraction_ID", "=", "T2.Tourist_Attraction_ID", "GROUP", "BY", "T2.Tourist_Attraction_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "tourist_attraction_id", ",", "count", "(", "*", ")", "from", "tourist_attractions", "as", "t1", "join", "visits", "as", "t2", "on", "t1", ".", "tourist_attraction_id", "=", "t2", ".", "tourist_attraction_id", "group", "by", "t2", ".", "tourist_attraction_id" ], "question": "What are the name, id and the corresponding number of visits for each tourist attraction?", "question_toks": [ "what", "are", "name", ",", "id", "and", "corresponding", "number", "of", "visit", "for", "each", "tourist", "attraction", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 37, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "name", ",", "id", "and", "the", "corresponding", "number", "of", "visits", "for", "each", "tourist", "attraction", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "id" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "visit" ], [ "for" ], [ "each" ], [ "tourist", "attraction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "id", "JJ" ], [ "and", "CC" ], [ "corresponding", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "visit", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(19) T(6) A(0) C(17) T(12) A(3) C(0) T(12)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name , T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.Name", ",", "T2.Tourist_Attraction_ID", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITS", "AS", "T2", "ON", "T1.Tourist_Attraction_ID", "=", "T2.Tourist_Attraction_ID", "GROUP", "BY", "T2.Tourist_Attraction_ID", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "tourist_attraction_id", "from", "tourist_attractions", "as", "t1", "join", "visits", "as", "t2", "on", "t1", ".", "tourist_attraction_id", "=", "t2", ".", "tourist_attraction_id", "group", "by", "t2", ".", "tourist_attraction_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the names and ids of tourist attractions that are visited at least two times.", "question_toks": [ "show", "name", "and", "id", "of", "tourist", "attraction", "that", "are", "visited", "at", "least", "two", "time", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 37, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Show", "the", "names", "and", "ids", "of", "tourist", "attractions", "that", "are", "visited", "at", "least", "two", "times", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "tourist", "attraction" ], [ "that" ], [ "are" ], [ "visited" ], [ "at" ], [ "least" ], [ "two" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "visited", "VBN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "time", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(6) A(0) C(17) T(12) Filter(7) A(3) C(0) T(12) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name , T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.Name", ",", "T2.Tourist_Attraction_ID", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITS", "AS", "T2", "ON", "T1.Tourist_Attraction_ID", "=", "T2.Tourist_Attraction_ID", "GROUP", "BY", "T2.Tourist_Attraction_ID", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "tourist_attraction_id", "from", "tourist_attractions", "as", "t1", "join", "visits", "as", "t2", "on", "t1", ".", "tourist_attraction_id", "=", "t2", ".", "tourist_attraction_id", "group", "by", "t2", ".", "tourist_attraction_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Which tourist attractions are visited at least twice? Give me their names and ids.", "question_toks": [ "which", "tourist", "attraction", "are", "visited", "at", "least", "twice", "?", "give", "me", "their", "name", "and", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 37, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Which", "tourist", "attractions", "are", "visited", "at", "least", "twice", "?", "Give", "me", "their", "names", "and", "ids", "." ], "question_arg": [ [ "which" ], [ "tourist", "attraction" ], [ "are" ], [ "visited" ], [ "at" ], [ "least" ], [ "twice" ], [ "?" ], [ "give" ], [ "me" ], [ "their" ], [ "name" ], [ "and" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "are", "VBP" ], [ "visited", "VBN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "twice", "RB" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(6) A(0) C(17) T(12) Filter(7) A(3) C(0) T(12) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name , T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*) <= 1", "query_toks": [ "SELECT", "T1.Name", ",", "T1.Tourist_Attraction_ID", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITS", "AS", "T2", "ON", "T1.Tourist_Attraction_ID", "=", "T2.Tourist_Attraction_ID", "GROUP", "BY", "T2.Tourist_Attraction_ID", "HAVING", "count", "(", "*", ")", "<", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "tourist_attraction_id", "from", "tourist_attractions", "as", "t1", "join", "visits", "as", "t2", "on", "t1", ".", "tourist_attraction_id", "=", "t2", ".", "tourist_attraction_id", "group", "by", "t2", ".", "tourist_attraction_id", "having", "count", "(", "*", ")", "<", "=", "value" ], "question": "Show the names and ids of tourist attractions that are visited at most once.", "question_toks": [ "show", "name", "and", "id", "of", "tourist", "attraction", "that", "are", "visited", "at", "most", "once", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 37, false ] ], "having": [ [ false, 6, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Show", "the", "names", "and", "ids", "of", "tourist", "attractions", "that", "are", "visited", "at", "most", "once", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "tourist", "attraction" ], [ "that" ], [ "are" ], [ "visited" ], [ "at" ], [ "most" ], [ "once" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "visited", "VBN" ], [ "at", "IN" ], [ "most", "JJS" ], [ "once", "RB" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(6) A(0) C(17) T(6) Filter(0) Filter(18) A(0) C(17) T(6) Root(5) Sel(0) N(0) A(0) C(17) T(12) Filter(6) A(3) C(0) T(12) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name , T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*) <= 1", "query_toks": [ "SELECT", "T1.Name", ",", "T1.Tourist_Attraction_ID", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITS", "AS", "T2", "ON", "T1.Tourist_Attraction_ID", "=", "T2.Tourist_Attraction_ID", "GROUP", "BY", "T2.Tourist_Attraction_ID", "HAVING", "count", "(", "*", ")", "<", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "tourist_attraction_id", "from", "tourist_attractions", "as", "t1", "join", "visits", "as", "t2", "on", "t1", ".", "tourist_attraction_id", "=", "t2", ".", "tourist_attraction_id", "group", "by", "t2", ".", "tourist_attraction_id", "having", "count", "(", "*", ")", "<", "=", "value" ], "question": "What are the names and ids of the tourist attractions that are visited at most once?", "question_toks": [ "what", "are", "name", "and", "id", "of", "tourist", "attraction", "that", "are", "visited", "at", "most", "once", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 12 ] ] }, "groupBy": [ [ 0, 37, false ] ], "having": [ [ false, 6, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "ids", "of", "the", "tourist", "attractions", "that", "are", "visited", "at", "most", "once", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "tourist", "attraction" ], [ "that" ], [ "are" ], [ "visited" ], [ "at" ], [ "most" ], [ "once" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "visited", "VBN" ], [ "at", "IN" ], [ "most", "JJS" ], [ "once", "RB" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(6) A(0) C(17) T(6) Filter(0) Filter(18) A(0) C(17) T(6) Root(5) Sel(0) N(0) A(0) C(17) T(12) Filter(6) A(3) C(0) T(12) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = \"660 Shea Crescent\" OR T2.How_to_Get_There = \"walk\"", "query_toks": [ "SELECT", "T2.Name", "FROM", "Locations", "AS", "T1", "JOIN", "Tourist_Attractions", "AS", "T2", "ON", "T1.Location_ID", "=", "T2.Location_ID", "WHERE", "T1.Address", "=", "``", "660", "Shea", "Crescent", "''", "OR", "T2.How_to_Get_There", "=", "``", "walk", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "locations", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "location_id", "=", "t2", ".", "location_id", "where", "t1", ".", "address", "=", "value", "or", "t2", ".", "how_to_get_there", "=", "value" ], "question": "What are the names of tourist attractions that can be reached by walk or is at address 660 Shea Crescent?", "question_toks": [ "what", "are", "name", "of", "tourist", "attraction", "that", "can", "be", "reached", "by", "walk", "or", "is", "at", "address", "660", "shea", "crescent", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"660 Shea Crescent\"", null ], "or", [ false, 2, [ 0, [ 0, 21, false ], null ], "\"walk\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "tourist", "attractions", "that", "can", "be", "reached", "by", "walk", "or", "is", "at", "address", "660", "Shea", "Crescent", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "tourist", "attraction" ], [ "that" ], [ "can" ], [ "be" ], [ "reached" ], [ "by" ], [ "walk" ], [ "or" ], [ "is" ], [ "at" ], [ "address" ], [ "660" ], [ "shea" ], [ "crescent" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "be", "VB" ], [ "reached", "VBN" ], [ "by", "IN" ], [ "walk", "NN" ], [ "or", "CC" ], [ "is", "VBZ" ], [ "at", "IN" ], [ "address", "JJ" ], [ "660", "CD" ], [ "shea", "JJ" ], [ "crescent", "NN" ], [ "?", "." ] ], "values": [ "walk", "660 Shea Crescent", "660" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(1) Filter(2) A(0) C(5) T(1) V(1) Filter(2) A(0) C(18) T(6) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = \"660 Shea Crescent\" OR T2.How_to_Get_There = \"walk\"", "query_toks": [ "SELECT", "T2.Name", "FROM", "Locations", "AS", "T1", "JOIN", "Tourist_Attractions", "AS", "T2", "ON", "T1.Location_ID", "=", "T2.Location_ID", "WHERE", "T1.Address", "=", "``", "660", "Shea", "Crescent", "''", "OR", "T2.How_to_Get_There", "=", "``", "walk", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "locations", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "location_id", "=", "t2", ".", "location_id", "where", "t1", ".", "address", "=", "value", "or", "t2", ".", "how_to_get_there", "=", "value" ], "question": "Find the names of the tourist attractions that is either accessible by walk or at address 660 Shea Crescent.", "question_toks": [ "find", "name", "of", "tourist", "attraction", "that", "is", "either", "accessible", "by", "walk", "or", "at", "address", "660", "shea", "crescent", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"660 Shea Crescent\"", null ], "or", [ false, 2, [ 0, [ 0, 21, false ], null ], "\"walk\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "tourist", "attractions", "that", "is", "either", "accessible", "by", "walk", "or", "at", "address", "660", "Shea", "Crescent", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "tourist", "attraction" ], [ "that" ], [ "is" ], [ "either" ], [ "accessible" ], [ "by" ], [ "walk" ], [ "or" ], [ "at" ], [ "address" ], [ "660" ], [ "shea" ], [ "crescent" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "either", "DT" ], [ "accessible", "JJ" ], [ "by", "IN" ], [ "walk", "NN" ], [ "or", "CC" ], [ "at", "IN" ], [ "address", "JJ" ], [ "660", "CD" ], [ "shea", "JJ" ], [ "crescent", "NN" ], [ ".", "." ] ], "values": [ "walk", "660 Shea Crescent", "660" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(1) Filter(2) A(0) C(5) T(1) V(1) Filter(2) A(0) C(18) T(6) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'park' UNION SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'shopping'", "query_toks": [ "SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "Tourist_Attraction_Features", "AS", "T2", "ON", "T1.tourist_attraction_id", "=", "T2.tourist_attraction_id", "JOIN", "Features", "AS", "T3", "ON", "T2.Feature_ID", "=", "T3.Feature_ID", "WHERE", "T3.feature_Details", "=", "'park", "'", "UNION", "SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "Tourist_Attraction_Features", "AS", "T2", "ON", "T1.tourist_attraction_id", "=", "T2.tourist_attraction_id", "JOIN", "Features", "AS", "T3", "ON", "T2.Feature_ID", "=", "T3.Feature_ID", "WHERE", "T3.feature_Details", "=", "'shopping", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "tourist_attraction_features", "as", "t2", "on", "t1", ".", "tourist_attraction_id", "=", "t2", ".", "tourist_attraction_id", "join", "features", "as", "t3", "on", "t2", ".", "feature_id", "=", "t3", ".", "feature_id", "where", "t3", ".", "feature_details", "=", "value", "union", "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "tourist_attraction_features", "as", "t2", "on", "t1", ".", "tourist_attraction_id", "=", "t2", ".", "tourist_attraction_id", "join", "features", "as", "t3", "on", "t2", ".", "feature_id", "=", "t3", ".", "feature_id", "where", "t3", ".", "feature_details", "=", "value" ], "question": "What are the names of the tourist attractions that have parking or shopping as their feature details?", "question_toks": [ "what", "are", "name", "of", "tourist", "attraction", "that", "have", "parking", "or", "shopping", "a", "their", "feature", "detail", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 51, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 15 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 51, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 15 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 51, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 15 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"shopping\"", null ] ] }, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 51, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 15 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"park\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "tourist", "attractions", "that", "have", "parking", "or", "shopping", "as", "their", "feature", "details", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "tourist", "attraction" ], [ "that" ], [ "have" ], [ "parking" ], [ "or" ], [ "shopping" ], [ "a" ], [ "their" ], [ "feature", "detail" ], [ "?" ] ], "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" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "parking", "VBG" ], [ "or", "CC" ], [ "shopping", "VBG" ], [ "a", "DT" ], [ "their", "PRP$" ], [ "feature", "NN" ], [ "detail", "NN" ], [ "?", "." ] ], "values": [ "parking", "shopping", "park" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(0) Filter(18) A(0) C(17) T(6) Root(5) Sel(0) N(0) A(0) C(17) T(15) Filter(2) A(0) C(12) T(4) V(2) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(0) Filter(18) A(0) C(17) T(6) Root(5) Sel(0) N(0) A(0) C(17) T(15) Filter(2) A(0) C(12) T(4) V(1)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'park' UNION SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'shopping'", "query_toks": [ "SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "Tourist_Attraction_Features", "AS", "T2", "ON", "T1.tourist_attraction_id", "=", "T2.tourist_attraction_id", "JOIN", "Features", "AS", "T3", "ON", "T2.Feature_ID", "=", "T3.Feature_ID", "WHERE", "T3.feature_Details", "=", "'park", "'", "UNION", "SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "Tourist_Attraction_Features", "AS", "T2", "ON", "T1.tourist_attraction_id", "=", "T2.tourist_attraction_id", "JOIN", "Features", "AS", "T3", "ON", "T2.Feature_ID", "=", "T3.Feature_ID", "WHERE", "T3.feature_Details", "=", "'shopping", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "tourist_attraction_features", "as", "t2", "on", "t1", ".", "tourist_attraction_id", "=", "t2", ".", "tourist_attraction_id", "join", "features", "as", "t3", "on", "t2", ".", "feature_id", "=", "t3", ".", "feature_id", "where", "t3", ".", "feature_details", "=", "value", "union", "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "tourist_attraction_features", "as", "t2", "on", "t1", ".", "tourist_attraction_id", "=", "t2", ".", "tourist_attraction_id", "join", "features", "as", "t3", "on", "t2", ".", "feature_id", "=", "t3", ".", "feature_id", "where", "t3", ".", "feature_details", "=", "value" ], "question": "Find the tourist attractions that have parking or shopping as their feature details. What are the names of the attractions?", "question_toks": [ "find", "tourist", "attraction", "that", "have", "parking", "or", "shopping", "a", "their", "feature", "detail", ".", "what", "are", "name", "of", "attraction", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 51, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 15 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 51, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 15 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 51, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 15 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"shopping\"", null ] ] }, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 51, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 15 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"park\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Find", "the", "tourist", "attractions", "that", "have", "parking", "or", "shopping", "as", "their", "feature", "details", ".", "What", "are", "the", "names", "of", "the", "attractions", "?" ], "question_arg": [ [ "find" ], [ "tourist", "attraction" ], [ "that" ], [ "have" ], [ "parking" ], [ "or" ], [ "shopping" ], [ "a" ], [ "their" ], [ "feature", "detail" ], [ "." ], [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "attraction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "parking", "VBG" ], [ "or", "CC" ], [ "shopping", "VBG" ], [ "a", "DT" ], [ "their", "PRP$" ], [ "feature", "NN" ], [ "detail", "NN" ], [ ".", "." ], [ "what", "WP" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "attraction", "NN" ], [ "?", "." ] ], "values": [ "shopping", "parking", "park" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(0) Filter(18) A(0) C(17) T(6) Root(5) Sel(0) N(0) A(0) C(17) T(15) Filter(2) A(0) C(12) T(4) V(2) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(0) Filter(18) A(0) C(17) T(6) Root(5) Sel(0) N(0) A(0) C(17) T(15) Filter(2) A(0) C(12) T(4) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = \"254 Ottilie Junction\" OR T2.How_to_Get_There = \"bus\"", "query_toks": [ "SELECT", "T2.Name", "FROM", "Locations", "AS", "T1", "JOIN", "Tourist_Attractions", "AS", "T2", "ON", "T1.Location_ID", "=", "T2.Location_ID", "WHERE", "T1.Address", "=", "``", "254", "Ottilie", "Junction", "''", "OR", "T2.How_to_Get_There", "=", "``", "bus", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "locations", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "location_id", "=", "t2", ".", "location_id", "where", "t1", ".", "address", "=", "value", "or", "t2", ".", "how_to_get_there", "=", "value" ], "question": "What are the names of tourist attractions that can be reached by bus or is at address 254 Ottilie Junction?", "question_toks": [ "what", "are", "name", "of", "tourist", "attraction", "that", "can", "be", "reached", "by", "bus", "or", "is", "at", "address", "254", "ottilie", "junction", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"254 Ottilie Junction\"", null ], "or", [ false, 2, [ 0, [ 0, 21, false ], null ], "\"bus\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "tourist", "attractions", "that", "can", "be", "reached", "by", "bus", "or", "is", "at", "address", "254", "Ottilie", "Junction", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "tourist", "attraction" ], [ "that" ], [ "can" ], [ "be" ], [ "reached" ], [ "by" ], [ "bus" ], [ "or" ], [ "is" ], [ "at" ], [ "address" ], [ "254" ], [ "ottilie" ], [ "junction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "be", "VB" ], [ "reached", "VBN" ], [ "by", "IN" ], [ "bus", "NN" ], [ "or", "CC" ], [ "is", "VBZ" ], [ "at", "IN" ], [ "address", "JJ" ], [ "254", "CD" ], [ "ottilie", "JJ" ], [ "junction", "NN" ], [ "?", "." ] ], "values": [ "bus", "254", "254 Ottilie Junction" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(1) Filter(2) A(0) C(5) T(1) V(2) Filter(2) A(0) C(18) T(6) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = \"254 Ottilie Junction\" OR T2.How_to_Get_There = \"bus\"", "query_toks": [ "SELECT", "T2.Name", "FROM", "Locations", "AS", "T1", "JOIN", "Tourist_Attractions", "AS", "T2", "ON", "T1.Location_ID", "=", "T2.Location_ID", "WHERE", "T1.Address", "=", "``", "254", "Ottilie", "Junction", "''", "OR", "T2.How_to_Get_There", "=", "``", "bus", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "locations", "as", "t1", "join", "tourist_attractions", "as", "t2", "on", "t1", ".", "location_id", "=", "t2", ".", "location_id", "where", "t1", ".", "address", "=", "value", "or", "t2", ".", "how_to_get_there", "=", "value" ], "question": "Find the names of the tourist attractions that is either accessible by bus or at address 254 Ottilie Junction.", "question_toks": [ "find", "name", "of", "tourist", "attraction", "that", "is", "either", "accessible", "by", "bus", "or", "at", "address", "254", "ottilie", "junction", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"254 Ottilie Junction\"", null ], "or", [ false, 2, [ 0, [ 0, 21, false ], null ], "\"bus\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "tourist", "attractions", "that", "is", "either", "accessible", "by", "bus", "or", "at", "address", "254", "Ottilie", "Junction", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "tourist", "attraction" ], [ "that" ], [ "is" ], [ "either" ], [ "accessible" ], [ "by" ], [ "bus" ], [ "or" ], [ "at" ], [ "address" ], [ "254" ], [ "ottilie" ], [ "junction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "either", "DT" ], [ "accessible", "JJ" ], [ "by", "IN" ], [ "bus", "NN" ], [ "or", "CC" ], [ "at", "IN" ], [ "address", "JJ" ], [ "254", "CD" ], [ "ottilie", "JJ" ], [ "junction", "NN" ], [ ".", "." ] ], "values": [ "bus", "254", "254 Ottilie Junction" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(1) Filter(2) A(0) C(5) T(1) V(2) Filter(2) A(0) C(18) T(6) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = \"Vincent\" INTERSECT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = \"Marcelle\"", "query_toks": [ "SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Vincent", "''", "INTERSECT", "SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Marcelle", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value", "intersect", "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value" ], "question": "What are the names of the tourist attractions Vincent and Marcelle visit?", "question_toks": [ "what", "are", "name", "of", "tourist", "attraction", "vincent", "and", "marcelle", "visit", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 37, false ], null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 3 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 37, false ], null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 3 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Marcelle\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Vincent\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "tourist", "attractions", "Vincent", "and", "Marcelle", "visit", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "tourist", "attraction" ], [ "vincent" ], [ "and" ], [ "marcelle" ], [ "visit" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "vincent", "NN" ], [ "and", "CC" ], [ "marcelle", "VB" ], [ "visit", "NN" ], [ "?", "." ] ], "values": [ "Vincent", "Marcelle" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(12) Filter(0) Filter(18) A(0) C(17) T(6) Root(5) Sel(0) N(0) A(0) C(17) T(12) Filter(2) A(0) C(10) T(3) V(0) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(12) Filter(0) Filter(18) A(0) C(17) T(6) Root(5) Sel(0) N(0) A(0) C(17) T(12) Filter(2) A(0) C(10) T(3) V(1)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = \"Vincent\" INTERSECT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = \"Marcelle\"", "query_toks": [ "SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Vincent", "''", "INTERSECT", "SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Marcelle", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value", "intersect", "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value" ], "question": "Which tourist attractions do the tourists Vincent and Marcelle visit? Tell me the names of the attractions.", "question_toks": [ "which", "tourist", "attraction", "do", "tourist", "vincent", "and", "marcelle", "visit", "?", "tell", "me", "name", "of", "attraction", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 37, false ], null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 3 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 37, false ], null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 3 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Marcelle\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Vincent\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Which", "tourist", "attractions", "do", "the", "tourists", "Vincent", "and", "Marcelle", "visit", "?", "Tell", "me", "the", "names", "of", "the", "attractions", "." ], "question_arg": [ [ "which" ], [ "tourist", "attraction" ], [ "do" ], [ "tourist" ], [ "vincent" ], [ "and" ], [ "marcelle" ], [ "visit" ], [ "?" ], [ "tell" ], [ "me" ], [ "name" ], [ "of" ], [ "attraction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "do", "VBP" ], [ "tourist", "VB" ], [ "vincent", "NN" ], [ "and", "CC" ], [ "marcelle", "VB" ], [ "visit", "NN" ], [ "?", "." ], [ "tell", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "of", "IN" ], [ "attraction", "NN" ], [ ".", "." ] ], "values": [ "Vincent", "Marcelle" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(12) Filter(0) Filter(18) A(0) C(17) T(6) Root(5) Sel(0) N(0) A(0) C(17) T(12) Filter(2) A(0) C(10) T(3) V(0) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(12) Filter(0) Filter(18) A(0) C(17) T(6) Root(5) Sel(0) N(0) A(0) C(17) T(12) Filter(2) A(0) C(10) T(3) V(1)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = \"Alison\" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = \"Rosalind\"", "query_toks": [ "SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Alison", "''", "EXCEPT", "SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Rosalind", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value", "except", "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value" ], "question": "What are the names of tourist attraction that Alison visited but Rosalind did not visit?", "question_toks": [ "what", "are", "name", "of", "tourist", "attraction", "that", "alison", "visited", "but", "rosalind", "did", "not", "visit", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 37, false ], null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 3 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Rosalind\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 37, false ], null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 3 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Alison\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "tourist", "attraction", "that", "Alison", "visited", "but", "Rosalind", "did", "not", "visit", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "tourist", "attraction" ], [ "that" ], [ "alison" ], [ "visited" ], [ "but" ], [ "rosalind" ], [ "did" ], [ "not" ], [ "visit" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "that", "IN" ], [ "alison", "NN" ], [ "visited", "VBD" ], [ "but", "CC" ], [ "rosalind", "VBP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "visit", "VB" ], [ "?", "." ] ], "values": [ "Rosalind", "Alison" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(12) Filter(0) Filter(18) A(0) C(17) T(6) Root(5) Sel(0) N(0) A(0) C(17) T(12) Filter(2) A(0) C(10) T(3) V(1) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(12) Filter(0) Filter(18) A(0) C(17) T(6) Root(5) Sel(0) N(0) A(0) C(17) T(12) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = \"Alison\" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = \"Rosalind\"", "query_toks": [ "SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Alison", "''", "EXCEPT", "SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Rosalind", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value", "except", "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value" ], "question": "Find the the names of the tourist attractions that the tourist named Alison visited but Rosalind did not visit.", "question_toks": [ "find", "name", "of", "tourist", "attraction", "that", "tourist", "named", "alison", "visited", "but", "rosalind", "did", "not", "visit", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 37, false ], null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 3 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Rosalind\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 37, false ], null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 3 ], [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Alison\"", null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Find", "the", "the", "names", "of", "the", "tourist", "attractions", "that", "the", "tourist", "named", "Alison", "visited", "but", "Rosalind", "did", "not", "visit", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "tourist", "attraction" ], [ "that" ], [ "tourist" ], [ "named" ], [ "alison" ], [ "visited" ], [ "but" ], [ "rosalind" ], [ "did" ], [ "not" ], [ "visit" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "tourist", "NN" ], [ "attraction", "NN" ], [ "that", "IN" ], [ "tourist", "NN" ], [ "named", "VBN" ], [ "alison", "NN" ], [ "visited", "VBN" ], [ "but", "CC" ], [ "rosalind", "VBP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "visit", "NN" ], [ ".", "." ] ], "values": [ "Rosalind", "Alison" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(12) Filter(0) Filter(18) A(0) C(17) T(6) Root(5) Sel(0) N(0) A(0) C(17) T(12) Filter(2) A(0) C(10) T(3) V(1) Root(3) Sel(0) N(0) A(0) C(19) T(6) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(12) Filter(0) Filter(18) A(0) C(17) T(6) Root(5) Sel(0) N(0) A(0) C(17) T(12) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "cre_Theme_park", "query": "SELECT count(*) FROM Visitors WHERE Tourist_ID NOT IN ( SELECT Tourist_ID FROM Visits )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Visitors", "WHERE", "Tourist_ID", "NOT", "IN", "(", "SELECT", "Tourist_ID", "FROM", "Visits", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "visitors", "where", "tourist_id", "not", "in", "(", "select", "tourist_id", "from", "visits", ")" ], "question": "How many tourists did not make any visit?", "question_toks": [ "how", "many", "tourist", "did", "not", "make", "any", "visit", "?" ], "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": [ [ true, 8, [ 0, [ 0, 9, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "How", "many", "tourists", "did", "not", "make", "any", "visit", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "tourist" ], [ "did" ], [ "not" ], [ "make" ], [ "any" ], [ "visit" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "tourist", "NN" ], [ "did", "VBD" ], [ "not", "RB" ], [ "make", "VB" ], [ "any", "DT" ], [ "visit", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(19) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(12)" }, { "db_id": "cre_Theme_park", "query": "SELECT count(*) FROM Visitors WHERE Tourist_ID NOT IN ( SELECT Tourist_ID FROM Visits )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Visitors", "WHERE", "Tourist_ID", "NOT", "IN", "(", "SELECT", "Tourist_ID", "FROM", "Visits", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "visitors", "where", "tourist_id", "not", "in", "(", "select", "tourist_id", "from", "visits", ")" ], "question": "Count the number of tourists who did not visit any place.", "question_toks": [ "count", "number", "of", "tourist", "who", "did", "not", "visit", "any", "place", "." ], "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": [ [ true, 8, [ 0, [ 0, 9, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 12 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "star rating code", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "attraction type code", "location id", "how to get there", "name", "description", "opening hours", "other details", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "tourist attraction id", "tourist id", "visit date", "visit details", "photo id", "tourist attraction id", "name", "description", "filename", "other details", "staff id", "tourist attraction id", "name", "other details", "tourist attraction id", "feature id" ], "table_names": [ "ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features" ], "col_set": [ "*", "star rating code", "star rating description", "location id", "location name", "address", "other details", "attraction type code", "attraction type description", "tourist id", "tourist details", "feature id", "feature details", "hotel id", "pets allowed yn", "price range", "other hotel details", "tourist attraction id", "how to get there", "name", "description", "opening hours", "market id", "market details", "shop id", "shop details", "museum id", "museum details", "royal family id", "royal family details", "theme park id", "theme park details", "visit id", "visit date", "visit details", "photo id", "filename", "staff id" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15 ], "keys": { "14": 1, "1": 1, "19": 7, "7": 7, "20": 3, "3": 3, "26": 26, "18": 18, "28": 28, "30": 30, "32": 32, "34": 34, "38": 9, "9": 9, "37": 18, "42": 18, "48": 18, "52": 11, "11": 11, "51": 51, "13": 13, "36": 36, "41": 41, "47": 47 }, "origin_question_toks": [ "Count", "the", "number", "of", "tourists", "who", "did", "not", "visit", "any", "place", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "tourist" ], [ "who" ], [ "did" ], [ "not" ], [ "visit" ], [ "any" ], [ "place" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "tourist", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "visit", "VB" ], [ "any", "DT" ], [ "place", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(19) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(12)" }, { "db_id": "game_1", "query": "SELECT count(*) FROM Video_games", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Video_games" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "video_games" ], "question": "How many video games exist?", "question_toks": [ "how", "many", "video", "game", "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": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "How", "many", "video", "games", "exist", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "video", "game" ], [ "exist" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "video", "JJ" ], [ "game", "NN" ], [ "exist", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "game_1", "query": "SELECT count(*) FROM Video_games", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Video_games" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "video_games" ], "question": "How many video games do you have?", "question_toks": [ "how", "many", "video", "game", "do", "you", "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "How", "many", "video", "games", "do", "you", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "video", "game" ], [ "do" ], [ "you" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "video", "NN" ], [ "game", "NN" ], [ "do", "VBP" ], [ "you", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "game_1", "query": "SELECT count(DISTINCT gtype) FROM Video_games", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "gtype", ")", "FROM", "Video_games" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "gtype", ")", "from", "video_games" ], "question": "How many video game types exist?", "question_toks": [ "how", "many", "video", "game", "type", "exist", "?" ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "How", "many", "video", "game", "types", "exist", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "video", "game" ], [ "type" ], [ "exist" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "video", "JJ" ], [ "game", "NN" ], [ "type", "NN" ], [ "exist", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(11) T(1)" }, { "db_id": "game_1", "query": "SELECT count(DISTINCT gtype) FROM Video_games", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "gtype", ")", "FROM", "Video_games" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "gtype", ")", "from", "video_games" ], "question": "What is the count of different game types?", "question_toks": [ "what", "is", "count", "of", "different", "game", "type", "?" ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "is", "the", "count", "of", "different", "game", "types", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "count" ], [ "of" ], [ "different" ], [ "game", "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "count", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "game", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(11) T(1)" }, { "db_id": "game_1", "query": "SELECT DISTINCT gtype FROM Video_games", "query_toks": [ "SELECT", "DISTINCT", "gtype", "FROM", "Video_games" ], "query_toks_no_value": [ "select", "distinct", "gtype", "from", "video_games" ], "question": "Show all video game types.", "question_toks": [ "show", "all", "video", "game", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "all", "video", "game", "types", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "video", "game" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "video", "JJ" ], [ "game", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(11) T(1)" }, { "db_id": "game_1", "query": "SELECT DISTINCT gtype FROM Video_games", "query_toks": [ "SELECT", "DISTINCT", "gtype", "FROM", "Video_games" ], "query_toks_no_value": [ "select", "distinct", "gtype", "from", "video_games" ], "question": "What are the different types of video games?", "question_toks": [ "what", "are", "different", "type", "of", "video", "game", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "different", "types", "of", "video", "games", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "type" ], [ "of" ], [ "video", "game" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "video", "NN" ], [ "game", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(11) T(1)" }, { "db_id": "game_1", "query": "SELECT gname , gtype FROM Video_games ORDER BY gname", "query_toks": [ "SELECT", "gname", ",", "gtype", "FROM", "Video_games", "ORDER", "BY", "gname" ], "query_toks_no_value": [ "select", "gname", ",", "gtype", "from", "video_games", "order", "by", "gname" ], "question": "Show all video games and their types in the order of their names.", "question_toks": [ "show", "all", "video", "game", "and", "their", "type", "in", "order", "of", "their", "name", "." ], "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, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "all", "video", "games", "and", "their", "types", "in", "the", "order", "of", "their", "names", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "video", "game" ], [ "and" ], [ "their" ], [ "type" ], [ "in" ], [ "order" ], [ "of" ], [ "their" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "video", "JJ" ], [ "game", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "type", "NN" ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(10) T(1) A(0) C(11) T(1) Order(1) A(0) C(10) T(1)" }, { "db_id": "game_1", "query": "SELECT gname , gtype FROM Video_games ORDER BY gname", "query_toks": [ "SELECT", "gname", ",", "gtype", "FROM", "Video_games", "ORDER", "BY", "gname" ], "query_toks_no_value": [ "select", "gname", ",", "gtype", "from", "video_games", "order", "by", "gname" ], "question": "What are the names of all the video games and their types in alphabetical order?", "question_toks": [ "what", "are", "name", "of", "all", "video", "game", "and", "their", "type", "in", "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 ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "video", "games", "and", "their", "types", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "video", "game" ], [ "and" ], [ "their" ], [ "type" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "video", "JJ" ], [ "game", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "type", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(10) T(1) A(0) C(11) T(1) Order(1) A(0) C(10) T(1)" }, { "db_id": "game_1", "query": "SELECT gname FROM Video_games WHERE gtype = \"Collectible card game\"", "query_toks": [ "SELECT", "gname", "FROM", "Video_games", "WHERE", "gtype", "=", "``", "Collectible", "card", "game", "''" ], "query_toks_no_value": [ "select", "gname", "from", "video_games", "where", "gtype", "=", "value" ], "question": "Show all video games with type Collectible card game.", "question_toks": [ "show", "all", "video", "game", "with", "type", "collectible", "card", "game", "." ], "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, 2, [ 0, [ 0, 11, false ], null ], "\"Collectible card game\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "all", "video", "games", "with", "type", "Collectible", "card", "game", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "video", "game" ], [ "with" ], [ "type" ], [ "collectible" ], [ "card" ], [ "game" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "video", "JJ" ], [ "game", "NN" ], [ "with", "IN" ], [ "type", "NN" ], [ "collectible", "JJ" ], [ "card", "NN" ], [ "game", "NN" ], [ ".", "." ] ], "values": [ "Collectible card game" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(11) T(1) V(0)" }, { "db_id": "game_1", "query": "SELECT gname FROM Video_games WHERE gtype = \"Collectible card game\"", "query_toks": [ "SELECT", "gname", "FROM", "Video_games", "WHERE", "gtype", "=", "``", "Collectible", "card", "game", "''" ], "query_toks_no_value": [ "select", "gname", "from", "video_games", "where", "gtype", "=", "value" ], "question": "What are the names of all video games that are collectible cards?", "question_toks": [ "what", "are", "name", "of", "all", "video", "game", "that", "are", "collectible", "card", "?" ], "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, 2, [ 0, [ 0, 11, false ], null ], "\"Collectible card game\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "video", "games", "that", "are", "collectible", "cards", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "video", "game" ], [ "that" ], [ "are" ], [ "collectible" ], [ "card" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "video", "NN" ], [ "game", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "collectible", "JJ" ], [ "card", "NN" ], [ "?", "." ] ], "values": [ "Collectible card game" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(11) T(1) V(0)" }, { "db_id": "game_1", "query": "SELECT gtype FROM Video_games WHERE gname = \"Call of Destiny\"", "query_toks": [ "SELECT", "gtype", "FROM", "Video_games", "WHERE", "gname", "=", "``", "Call", "of", "Destiny", "''" ], "query_toks_no_value": [ "select", "gtype", "from", "video_games", "where", "gname", "=", "value" ], "question": "What is the type of video game Call of Destiny.", "question_toks": [ "what", "is", "type", "of", "video", "game", "call", "of", "destiny", "." ], "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 ], "\"Call of Destiny\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "is", "the", "type", "of", "video", "game", "Call", "of", "Destiny", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "type" ], [ "of" ], [ "video", "game" ], [ "call" ], [ "of" ], [ "destiny" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "type", "NN" ], [ "of", "IN" ], [ "video", "JJ" ], [ "game", "NN" ], [ "call", "NN" ], [ "of", "IN" ], [ "destiny", "NN" ], [ ".", "." ] ], "values": [ "Call of Destiny" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "game_1", "query": "SELECT gtype FROM Video_games WHERE gname = \"Call of Destiny\"", "query_toks": [ "SELECT", "gtype", "FROM", "Video_games", "WHERE", "gname", "=", "``", "Call", "of", "Destiny", "''" ], "query_toks_no_value": [ "select", "gtype", "from", "video_games", "where", "gname", "=", "value" ], "question": "What type of game is Call of Destiny?", "question_toks": [ "what", "type", "of", "game", "is", "call", "of", "destiny", "?" ], "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 ], "\"Call of Destiny\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "type", "of", "game", "is", "Call", "of", "Destiny", "?" ], "question_arg": [ [ "what" ], [ "type" ], [ "of" ], [ "game" ], [ "is" ], [ "call" ], [ "of" ], [ "destiny" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "type", "NN" ], [ "of", "IN" ], [ "game", "NN" ], [ "is", "VBZ" ], [ "call", "NN" ], [ "of", "IN" ], [ "destiny", "NN" ], [ "?", "." ] ], "values": [ "Call of Destiny" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "game_1", "query": "SELECT count(*) FROM Video_games WHERE gtype = \"Massively multiplayer online game\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Video_games", "WHERE", "gtype", "=", "``", "Massively", "multiplayer", "online", "game", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "video_games", "where", "gtype", "=", "value" ], "question": "How many video games have type Massively multiplayer online game?", "question_toks": [ "how", "many", "video", "game", "have", "type", "massively", "multiplayer", "online", "game", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Massively multiplayer online game\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "How", "many", "video", "games", "have", "type", "Massively", "multiplayer", "online", "game", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "video", "game" ], [ "have" ], [ "type" ], [ "massively" ], [ "multiplayer" ], [ "online" ], [ "game" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "video", "NN" ], [ "game", "NN" ], [ "have", "VBP" ], [ "type", "VBN" ], [ "massively", "RB" ], [ "multiplayer", "JJ" ], [ "online", "JJ" ], [ "game", "NN" ], [ "?", "." ] ], "values": [ "Massively multiplayer online game" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(11) T(1) V(0)" }, { "db_id": "game_1", "query": "SELECT count(*) FROM Video_games WHERE gtype = \"Massively multiplayer online game\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Video_games", "WHERE", "gtype", "=", "``", "Massively", "multiplayer", "online", "game", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "video_games", "where", "gtype", "=", "value" ], "question": "Count the number of video games with Massively multiplayer online game type .", "question_toks": [ "count", "number", "of", "video", "game", "with", "massively", "multiplayer", "online", "game", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Massively multiplayer online game\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "video", "games", "with", "Massively", "multiplayer", "online", "game", "type", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "video", "game" ], [ "with" ], [ "massively" ], [ "multiplayer" ], [ "online" ], [ "game", "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "video", "JJ" ], [ "game", "NN" ], [ "with", "IN" ], [ "massively", "RB" ], [ "multiplayer", "JJ" ], [ "online", "JJ" ], [ "game", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "Massively multiplayer online game" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(11) T(1) V(0)" }, { "db_id": "game_1", "query": "SELECT gtype , count(*) FROM Video_games GROUP BY gtype", "query_toks": [ "SELECT", "gtype", ",", "count", "(", "*", ")", "FROM", "Video_games", "GROUP", "BY", "gtype" ], "query_toks_no_value": [ "select", "gtype", ",", "count", "(", "*", ")", "from", "video_games", "group", "by", "gtype" ], "question": "Show all video game types and the number of video games in each type.", "question_toks": [ "show", "all", "video", "game", "type", "and", "number", "of", "video", "game", "in", "each", "type", "." ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "all", "video", "game", "types", "and", "the", "number", "of", "video", "games", "in", "each", "type", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "video", "game" ], [ "type" ], [ "and" ], [ "number" ], [ "of" ], [ "video", "game" ], [ "in" ], [ "each" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "video", "JJ" ], [ "game", "NN" ], [ "type", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "video", "JJ" ], [ "game", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(1) A(3) C(0) T(1)" }, { "db_id": "game_1", "query": "SELECT gtype , count(*) FROM Video_games GROUP BY gtype", "query_toks": [ "SELECT", "gtype", ",", "count", "(", "*", ")", "FROM", "Video_games", "GROUP", "BY", "gtype" ], "query_toks_no_value": [ "select", "gtype", ",", "count", "(", "*", ")", "from", "video_games", "group", "by", "gtype" ], "question": "What are the types of video games and how many are in each type?", "question_toks": [ "what", "are", "type", "of", "video", "game", "and", "how", "many", "are", "in", "each", "type", "?" ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "types", "of", "video", "games", "and", "how", "many", "are", "in", "each", "type", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "type" ], [ "of" ], [ "video", "game" ], [ "and" ], [ "how" ], [ "many" ], [ "are" ], [ "in" ], [ "each" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "type", "NN" ], [ "of", "IN" ], [ "video", "JJ" ], [ "game", "NN" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "are", "VBP" ], [ "in", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(1) A(3) C(0) T(1)" }, { "db_id": "game_1", "query": "SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "gtype", "FROM", "Video_games", "GROUP", "BY", "gtype", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "gtype", "from", "video_games", "group", "by", "gtype", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which game type has most number of games?", "question_toks": [ "which", "game", "type", "ha", "most", "number", "of", "game", "?" ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Which", "game", "type", "has", "most", "number", "of", "games", "?" ], "question_arg": [ [ "which" ], [ "game", "type" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "game" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "game", "NN" ], [ "type", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "game", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(11) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "game_1", "query": "SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "gtype", "FROM", "Video_games", "GROUP", "BY", "gtype", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "gtype", "from", "video_games", "group", "by", "gtype", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What type has the most games?", "question_toks": [ "what", "type", "ha", "most", "game", "?" ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "type", "has", "the", "most", "games", "?" ], "question_arg": [ [ "what" ], [ "type" ], [ "ha" ], [ "most" ], [ "game" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "type", "NN" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "game", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(11) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "game_1", "query": "SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "gtype", "FROM", "Video_games", "GROUP", "BY", "gtype", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "gtype", "from", "video_games", "group", "by", "gtype", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Which game type has least number of games?", "question_toks": [ "which", "game", "type", "ha", "least", "number", "of", "game", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Which", "game", "type", "has", "least", "number", "of", "games", "?" ], "question_arg": [ [ "which" ], [ "game", "type" ], [ "ha" ], [ "least" ], [ "number" ], [ "of" ], [ "game" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "game", "NN" ], [ "type", "NN" ], [ "ha", "NN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "game", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(11) T(1) Sup(1) A(3) C(0) T(1)" }, { "db_id": "game_1", "query": "SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "gtype", "FROM", "Video_games", "GROUP", "BY", "gtype", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "gtype", "from", "video_games", "group", "by", "gtype", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "What is the type with the fewest games?", "question_toks": [ "what", "is", "type", "with", "fewest", "game", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "is", "the", "type", "with", "the", "fewest", "games", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "type" ], [ "with" ], [ "fewest" ], [ "game" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "type", "JJ" ], [ "with", "IN" ], [ "fewest", "JJS" ], [ "game", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(11) T(1) Sup(1) A(3) C(0) T(1)" }, { "db_id": "game_1", "query": "SELECT StuID FROM Student WHERE city_code = \"CHI\"", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "city_code", "=", "``", "CHI", "''" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "city_code", "=", "value" ], "question": "Show ids for all students who live in CHI.", "question_toks": [ "show", "id", "for", "all", "student", "who", "live", "in", "chi", "." ], "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, 8, false ], null ], "\"CHI\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "ids", "for", "all", "students", "who", "live", "in", "CHI", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "for" ], [ "all" ], [ "student" ], [ "who" ], [ "live" ], [ "in" ], [ "chi" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "live", "VBP" ], [ "in", "IN" ], [ "chi", "NN" ], [ ".", "." ] ], "values": [ "CHI" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(8) T(0) V(0)" }, { "db_id": "game_1", "query": "SELECT StuID FROM Student WHERE city_code = \"CHI\"", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "city_code", "=", "``", "CHI", "''" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "city_code", "=", "value" ], "question": "What are the ids of all students who live in CHI?", "question_toks": [ "what", "are", "id", "of", "all", "student", "who", "live", "in", "chi", "?" ], "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, 8, false ], null ], "\"CHI\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "students", "who", "live", "in", "CHI", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "live" ], [ "in" ], [ "chi" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "live", "VBP" ], [ "in", "IN" ], [ "chi", "NN" ], [ "?", "." ] ], "values": [ "CHI" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(8) T(0) V(0)" }, { "db_id": "game_1", "query": "SELECT StuID FROM Student WHERE Advisor = 1121", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "Advisor", "=", "1121" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "advisor", "=", "value" ], "question": "Show ids for all students who have advisor 1121.", "question_toks": [ "show", "id", "for", "all", "student", "who", "have", "advisor", "1121", "." ], "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, 7, false ], null ], 1121.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "ids", "for", "all", "students", "who", "have", "advisor", "1121", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "for" ], [ "all" ], [ "student" ], [ "who" ], [ "have" ], [ "advisor" ], [ "1121" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "advisor", "NN" ], [ "1121", "CD" ], [ ".", "." ] ], "values": [ "1121" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(7) T(0) V(0)" }, { "db_id": "game_1", "query": "SELECT StuID FROM Student WHERE Advisor = 1121", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "Advisor", "=", "1121" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "advisor", "=", "value" ], "question": "What are the ids of all students who have advisor number 1121?", "question_toks": [ "what", "are", "id", "of", "all", "student", "who", "have", "advisor", "number", "1121", "?" ], "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, 7, false ], null ], 1121.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "students", "who", "have", "advisor", "number", "1121", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "have" ], [ "advisor" ], [ "number" ], [ "1121" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "advisor", "VBN" ], [ "number", "NN" ], [ "1121", "CD" ], [ "?", "." ] ], "values": [ "1121" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(7) T(0) V(0)" }, { "db_id": "game_1", "query": "SELECT Fname FROM Student WHERE Major = 600", "query_toks": [ "SELECT", "Fname", "FROM", "Student", "WHERE", "Major", "=", "600" ], "query_toks_no_value": [ "select", "fname", "from", "student", "where", "major", "=", "value" ], "question": "Show first name for all students with major 600.", "question_toks": [ "show", "first", "name", "for", "all", "student", "with", "major", "600", "." ], "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, 6, false ], null ], 600.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "first", "name", "for", "all", "students", "with", "major", "600", "." ], "question_arg": [ [ "show" ], [ "first", "name" ], [ "for" ], [ "all" ], [ "student" ], [ "with" ], [ "major" ], [ "600" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "with", "IN" ], [ "major", "JJ" ], [ "600", "CD" ], [ ".", "." ] ], "values": [ "600", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "game_1", "query": "SELECT Fname FROM Student WHERE Major = 600", "query_toks": [ "SELECT", "Fname", "FROM", "Student", "WHERE", "Major", "=", "600" ], "query_toks_no_value": [ "select", "fname", "from", "student", "where", "major", "=", "value" ], "question": "What are the first names for all students who are from the major numbered 600?", "question_toks": [ "what", "are", "first", "name", "for", "all", "student", "who", "are", "from", "major", "numbered", "600", "?" ], "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, 6, false ], null ], 600.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "for", "all", "students", "who", "are", "from", "the", "major", "numbered", "600", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "for" ], [ "all" ], [ "student" ], [ "who" ], [ "are" ], [ "from" ], [ "major" ], [ "numbered" ], [ "600" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "from", "IN" ], [ "major", "JJ" ], [ "numbered", "VBN" ], [ "600", "CD" ], [ "?", "." ] ], "values": [ "1", "600" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(6) T(0) V(1)" }, { "db_id": "game_1", "query": "SELECT major , avg(age) , min(age) , max(age) FROM Student GROUP BY major", "query_toks": [ "SELECT", "major", ",", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "Student", "GROUP", "BY", "major" ], "query_toks_no_value": [ "select", "major", ",", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "student", "group", "by", "major" ], "question": "Show the average, minimum, and maximum age for different majors.", "question_toks": [ "show", "average", ",", "minimum", ",", "and", "maximum", "age", "for", "different", "major", "." ], "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 ] ], [ 5, [ 0, [ 0, 4, false ], null ] ], [ 2, [ 0, [ 0, 4, false ], null ] ], [ 1, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "for", "different", "majors", "." ], "question_arg": [ [ "show" ], [ "average" ], [ "," ], [ "minimum" ], [ "," ], [ "and" ], [ "maximum" ], [ "age" ], [ "for" ], [ "different" ], [ "major" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "average", "NN" ], [ ",", "," ], [ "minimum", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "age", "NN" ], [ "for", "IN" ], [ "different", "JJ" ], [ "major", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(6) T(0) A(5) C(4) T(0) A(2) C(4) T(0) A(1) C(4) T(0)" }, { "db_id": "game_1", "query": "SELECT major , avg(age) , min(age) , max(age) FROM Student GROUP BY major", "query_toks": [ "SELECT", "major", ",", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "Student", "GROUP", "BY", "major" ], "query_toks_no_value": [ "select", "major", ",", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "student", "group", "by", "major" ], "question": "What are the average, minimum, and max ages for each of the different majors?", "question_toks": [ "what", "are", "average", ",", "minimum", ",", "and", "max", "age", "for", "each", "of", "different", "major", "?" ], "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 ] ], [ 5, [ 0, [ 0, 4, false ], null ] ], [ 2, [ 0, [ 0, 4, false ], null ] ], [ 1, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "average", ",", "minimum", ",", "and", "max", "ages", "for", "each", "of", "the", "different", "majors", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "," ], [ "minimum" ], [ "," ], [ "and" ], [ "max" ], [ "age" ], [ "for" ], [ "each" ], [ "of" ], [ "different" ], [ "major" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ ",", "," ], [ "minimum", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "max", "JJ" ], [ "age", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "of", "IN" ], [ "different", "JJ" ], [ "major", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(6) T(0) A(5) C(4) T(0) A(2) C(4) T(0) A(1) C(4) T(0)" }, { "db_id": "game_1", "query": "SELECT advisor FROM Student GROUP BY advisor HAVING count(*) >= 2", "query_toks": [ "SELECT", "advisor", "FROM", "Student", "GROUP", "BY", "advisor", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "advisor", "from", "student", "group", "by", "advisor", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show all advisors who have at least two students.", "question_toks": [ "show", "all", "advisor", "who", "have", "at", "least", "two", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "all", "advisors", "who", "have", "at", "least", "two", "students", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "advisor" ], [ "who" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "advisor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(0) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "game_1", "query": "SELECT advisor FROM Student GROUP BY advisor HAVING count(*) >= 2", "query_toks": [ "SELECT", "advisor", "FROM", "Student", "GROUP", "BY", "advisor", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "advisor", "from", "student", "group", "by", "advisor", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the advisors", "question_toks": [ "what", "are", "advisor" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "advisors" ], "question_arg": [ [ "what" ], [ "are" ], [ "advisor" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "advisor", "JJ" ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(0) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "game_1", "query": "SELECT count(DISTINCT sportname) FROM Sportsinfo", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "sportname", ")", "FROM", "Sportsinfo" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "sportname", ")", "from", "sportsinfo" ], "question": "How many sports do we have?", "question_toks": [ "how", "many", "sport", "do", "we", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 16, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "How", "many", "sports", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "sport" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "sport", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(13) T(3)" }, { "db_id": "game_1", "query": "SELECT count(DISTINCT sportname) FROM Sportsinfo", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "sportname", ")", "FROM", "Sportsinfo" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "sportname", ")", "from", "sportsinfo" ], "question": "How many different types of sports do we offer?", "question_toks": [ "how", "many", "different", "type", "of", "sport", "do", "we", "offer", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 16, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "How", "many", "different", "types", "of", "sports", "do", "we", "offer", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "type" ], [ "of" ], [ "sport" ], [ "do" ], [ "we" ], [ "offer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "sport", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "offer", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(13) T(3)" }, { "db_id": "game_1", "query": "SELECT count(DISTINCT StuID) FROM Sportsinfo", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "StuID", ")", "FROM", "Sportsinfo" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "stuid", ")", "from", "sportsinfo" ], "question": "How many students play sports?", "question_toks": [ "how", "many", "student", "play", "sport", "?" ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "How", "many", "students", "play", "sports", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "play" ], [ "sport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "play", "VB" ], [ "sport", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(1) T(3)" }, { "db_id": "game_1", "query": "SELECT count(DISTINCT StuID) FROM Sportsinfo", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "StuID", ")", "FROM", "Sportsinfo" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "stuid", ")", "from", "sportsinfo" ], "question": "How many different students are involved in sports?", "question_toks": [ "how", "many", "different", "student", "are", "involved", "in", "sport", "?" ], "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "How", "many", "different", "students", "are", "involved", "in", "sports", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "student" ], [ "are" ], [ "involved" ], [ "in" ], [ "sport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "sport", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(1) T(3)" }, { "db_id": "game_1", "query": "SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y'", "query_toks": [ "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "'Y", "'" ], "query_toks_no_value": [ "select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value" ], "question": "List ids for all student who are on scholarship.", "question_toks": [ "list", "id", "for", "all", "student", "who", "are", "on", "scholarship", "." ], "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, 19, false ], null ], "\"Y\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "List", "ids", "for", "all", "student", "who", "are", "on", "scholarship", "." ], "question_arg": [ [ "list" ], [ "id" ], [ "for" ], [ "all" ], [ "student" ], [ "who" ], [ "are" ], [ "on", "scholarship" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "on", "IN" ], [ "scholarship", "NN" ], [ ".", "." ] ], "values": [ "Lisa", "Y" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(3) Filter(2) A(0) C(16) T(3) V(1)" }, { "db_id": "game_1", "query": "SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y'", "query_toks": [ "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "'Y", "'" ], "query_toks_no_value": [ "select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value" ], "question": "What are the ids for all sporty students who are on scholarship?", "question_toks": [ "what", "are", "id", "for", "all", "sporty", "student", "who", "are", "on", "scholarship", "?" ], "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, 19, false ], null ], "\"Y\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "ids", "for", "all", "sporty", "students", "who", "are", "on", "scholarship", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "for" ], [ "all" ], [ "sporty" ], [ "student" ], [ "who" ], [ "are" ], [ "on", "scholarship" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "for", "IN" ], [ "all", "DT" ], [ "sporty", "JJ" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "on", "IN" ], [ "scholarship", "NN" ], [ "?", "." ] ], "values": [ "Y" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(3) Filter(2) A(0) C(16) T(3) V(0)" }, { "db_id": "game_1", "query": "SELECT T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y'", "query_toks": [ "SELECT", "T2.Lname", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T1.onscholarship", "=", "'Y", "'" ], "query_toks_no_value": [ "select", "t2", ".", "lname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "onscholarship", "=", "value" ], "question": "Show last names for all student who are on scholarship.", "question_toks": [ "show", "last", "name", "for", "all", "student", "who", "are", "on", "scholarship", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Y\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "last", "names", "for", "all", "student", "who", "are", "on", "scholarship", "." ], "question_arg": [ [ "show" ], [ "last", "name" ], [ "for" ], [ "all" ], [ "student" ], [ "who" ], [ "are" ], [ "on", "scholarship" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "on", "IN" ], [ "scholarship", "NN" ], [ ".", "." ] ], "values": [ "Y" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(16) T(3) V(0)" }, { "db_id": "game_1", "query": "SELECT T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y'", "query_toks": [ "SELECT", "T2.Lname", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T1.onscholarship", "=", "'Y", "'" ], "query_toks_no_value": [ "select", "t2", ".", "lname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "onscholarship", "=", "value" ], "question": "What are the last names for all scholarship students?", "question_toks": [ "what", "are", "last", "name", "for", "all", "scholarship", "student", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Y\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "last", "names", "for", "all", "scholarship", "students", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "last", "name" ], [ "for" ], [ "all" ], [ "scholarship" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "scholarship", "NN" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "Y" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(16) T(3) V(0)" }, { "db_id": "game_1", "query": "SELECT sum(gamesplayed) FROM Sportsinfo", "query_toks": [ "SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo" ], "query_toks_no_value": [ "select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo" ], "question": "How many games are played for all students?", "question_toks": [ "how", "many", "game", "are", "played", "for", "all", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "How", "many", "games", "are", "played", "for", "all", "students", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "game" ], [ "are" ], [ "played" ], [ "for" ], [ "all" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "game", "NN" ], [ "are", "VBP" ], [ "played", "VBN" ], [ "for", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(15) T(3)" }, { "db_id": "game_1", "query": "SELECT sum(gamesplayed) FROM Sportsinfo", "query_toks": [ "SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo" ], "query_toks_no_value": [ "select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo" ], "question": "What is the total number of games played?", "question_toks": [ "what", "is", "total", "number", "of", "game", "played", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "games", "played", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "game", "played" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "game", "NN" ], [ "played", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(15) T(3)" }, { "db_id": "game_1", "query": "SELECT sum(gamesplayed) FROM Sportsinfo WHERE sportname = \"Football\" AND onscholarship = 'Y'", "query_toks": [ "SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "Football", "''", "AND", "onscholarship", "=", "'Y", "'" ], "query_toks_no_value": [ "select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "sportname", "=", "value", "and", "onscholarship", "=", "value" ], "question": "How many games are played for all football games by students on scholarship?", "question_toks": [ "how", "many", "game", "are", "played", "for", "all", "football", "game", "by", "student", "on", "scholarship", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Football\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Y\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "How", "many", "games", "are", "played", "for", "all", "football", "games", "by", "students", "on", "scholarship", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "game" ], [ "are" ], [ "played" ], [ "for" ], [ "all" ], [ "football" ], [ "game" ], [ "by" ], [ "student" ], [ "on", "scholarship" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "game", "NN" ], [ "are", "VBP" ], [ "played", "VBN" ], [ "for", "IN" ], [ "all", "DT" ], [ "football", "NN" ], [ "game", "NN" ], [ "by", "IN" ], [ "student", "NN" ], [ "on", "IN" ], [ "scholarship", "NN" ], [ "?", "." ] ], "values": [ "Football", "Y" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(15) T(3) Filter(0) Filter(2) A(0) C(13) T(3) V(0) Filter(2) A(0) C(16) T(3) V(1)" }, { "db_id": "game_1", "query": "SELECT sum(gamesplayed) FROM Sportsinfo WHERE sportname = \"Football\" AND onscholarship = 'Y'", "query_toks": [ "SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "Football", "''", "AND", "onscholarship", "=", "'Y", "'" ], "query_toks_no_value": [ "select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "sportname", "=", "value", "and", "onscholarship", "=", "value" ], "question": "What is the total number of all football games played by scholarship students?", "question_toks": [ "what", "is", "total", "number", "of", "all", "football", "game", "played", "by", "scholarship", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Football\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Y\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "all", "football", "games", "played", "by", "scholarship", "students", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "all" ], [ "football" ], [ "game", "played" ], [ "by" ], [ "scholarship" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "football", "NN" ], [ "game", "NN" ], [ "played", "VBN" ], [ "by", "IN" ], [ "scholarship", "NN" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "Football", "Y" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(15) T(3) Filter(0) Filter(2) A(0) C(13) T(3) V(0) Filter(2) A(0) C(16) T(3) V(1)" }, { "db_id": "game_1", "query": "SELECT sportname , count(*) FROM Sportsinfo GROUP BY sportname", "query_toks": [ "SELECT", "sportname", ",", "count", "(", "*", ")", "FROM", "Sportsinfo", "GROUP", "BY", "sportname" ], "query_toks_no_value": [ "select", "sportname", ",", "count", "(", "*", ")", "from", "sportsinfo", "group", "by", "sportname" ], "question": "Show all sport name and the number of students.", "question_toks": [ "show", "all", "sport", "name", "and", "number", "of", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "all", "sport", "name", "and", "the", "number", "of", "students", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "sport", "name" ], [ "and" ], [ "number" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "sport", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(3) A(3) C(0) T(3)" }, { "db_id": "game_1", "query": "SELECT sportname , count(*) FROM Sportsinfo GROUP BY sportname", "query_toks": [ "SELECT", "sportname", ",", "count", "(", "*", ")", "FROM", "Sportsinfo", "GROUP", "BY", "sportname" ], "query_toks_no_value": [ "select", "sportname", ",", "count", "(", "*", ")", "from", "sportsinfo", "group", "by", "sportname" ], "question": "How many students play each sport?", "question_toks": [ "how", "many", "student", "play", "each", "sport", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "How", "many", "students", "play", "each", "sport", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "play" ], [ "each" ], [ "sport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "play", "VB" ], [ "each", "DT" ], [ "sport", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(3) A(3) C(0) T(3)" }, { "db_id": "game_1", "query": "SELECT StuID , count(*) , sum(gamesplayed) FROM Sportsinfo GROUP BY StuID", "query_toks": [ "SELECT", "StuID", ",", "count", "(", "*", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "GROUP", "BY", "StuID" ], "query_toks_no_value": [ "select", "stuid", ",", "count", "(", "*", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "group", "by", "stuid" ], "question": "Show all student IDs with the number of sports and total number of games played", "question_toks": [ "show", "all", "student", "id", "with", "number", "of", "sport", "and", "total", "number", "of", "game", "played" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ], [ 4, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "all", "student", "IDs", "with", "the", "number", "of", "sports", "and", "total", "number", "of", "games", "played" ], "question_arg": [ [ "show" ], [ "all" ], [ "student", "id" ], [ "with" ], [ "number" ], [ "of" ], [ "sport" ], [ "and" ], [ "total" ], [ "number" ], [ "of" ], [ "game", "played" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "student", "NN" ], [ "id", "NN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "sport", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "game", "NN" ], [ "played", "VBD" ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(1) T(3) A(3) C(0) T(3) A(4) C(15) T(3)" }, { "db_id": "game_1", "query": "SELECT StuID , count(*) , sum(gamesplayed) FROM Sportsinfo GROUP BY StuID", "query_toks": [ "SELECT", "StuID", ",", "count", "(", "*", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "GROUP", "BY", "StuID" ], "query_toks_no_value": [ "select", "stuid", ",", "count", "(", "*", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "group", "by", "stuid" ], "question": "What are the ids of all students along with how many sports and games did they play?", "question_toks": [ "what", "are", "id", "of", "all", "student", "along", "with", "how", "many", "sport", "and", "game", "did", "they", "play", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ], [ 4, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "students", "along", "with", "how", "many", "sports", "and", "games", "did", "they", "play", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "student" ], [ "along" ], [ "with" ], [ "how" ], [ "many" ], [ "sport" ], [ "and" ], [ "game" ], [ "did" ], [ "they" ], [ "play" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "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" ], [ "all", "DT" ], [ "student", "NN" ], [ "along", "IN" ], [ "with", "IN" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "sport", "NN" ], [ "and", "CC" ], [ "game", "NN" ], [ "did", "VBD" ], [ "they", "PRP" ], [ "play", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(1) T(3) A(3) C(0) T(3) A(4) C(15) T(3)" }, { "db_id": "game_1", "query": "SELECT StuID FROM Sportsinfo GROUP BY StuID HAVING sum(hoursperweek) > 10", "query_toks": [ "SELECT", "StuID", "FROM", "Sportsinfo", "GROUP", "BY", "StuID", "HAVING", "sum", "(", "hoursperweek", ")", ">", "10" ], "query_toks_no_value": [ "select", "stuid", "from", "sportsinfo", "group", "by", "stuid", "having", "sum", "(", "hoursperweek", ")", ">", "value" ], "question": "Show all student IDs with more than total 10 hours per week on all sports played.", "question_toks": [ "show", "all", "student", "id", "with", "more", "than", "total", "10", "hour", "per", "week", "on", "all", "sport", "played", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [ [ false, 3, [ 0, [ 4, 17, false ], null ], 10.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "all", "student", "IDs", "with", "more", "than", "total", "10", "hours", "per", "week", "on", "all", "sports", "played", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "student", "id" ], [ "with" ], [ "more" ], [ "than" ], [ "total" ], [ "10" ], [ "hour", "per", "week" ], [ "on" ], [ "all" ], [ "sport" ], [ "played" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "student", "NN" ], [ "id", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "total", "JJ" ], [ "10", "CD" ], [ "hour", "NN" ], [ "per", "IN" ], [ "week", "NN" ], [ "on", "IN" ], [ "all", "DT" ], [ "sport", "NN" ], [ "played", "VBD" ], [ ".", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(3) Filter(5) A(4) C(14) T(3) V(0)" }, { "db_id": "game_1", "query": "SELECT StuID FROM Sportsinfo GROUP BY StuID HAVING sum(hoursperweek) > 10", "query_toks": [ "SELECT", "StuID", "FROM", "Sportsinfo", "GROUP", "BY", "StuID", "HAVING", "sum", "(", "hoursperweek", ")", ">", "10" ], "query_toks_no_value": [ "select", "stuid", "from", "sportsinfo", "group", "by", "stuid", "having", "sum", "(", "hoursperweek", ")", ">", "value" ], "question": "What are the student IDs for everybody who worked for more than 10 hours per week on all sports?", "question_toks": [ "what", "are", "student", "id", "for", "everybody", "who", "worked", "for", "more", "than", "10", "hour", "per", "week", "on", "all", "sport", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [ [ false, 3, [ 0, [ 4, 17, false ], null ], 10.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "student", "IDs", "for", "everybody", "who", "worked", "for", "more", "than", "10", "hours", "per", "week", "on", "all", "sports", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "student", "id" ], [ "for" ], [ "everybody" ], [ "who" ], [ "worked" ], [ "for" ], [ "more" ], [ "than" ], [ "10" ], [ "hour", "per", "week" ], [ "on" ], [ "all" ], [ "sport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "student", "JJ" ], [ "id", "NN" ], [ "for", "IN" ], [ "everybody", "NN" ], [ "who", "WP" ], [ "worked", "VBD" ], [ "for", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "hour", "NN" ], [ "per", "IN" ], [ "week", "NN" ], [ "on", "IN" ], [ "all", "DT" ], [ "sport", "NN" ], [ "?", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(3) Filter(5) A(4) C(14) T(3) V(0)" }, { "db_id": "game_1", "query": "SELECT T2.Fname , T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Fname", ",", "T2.Lname", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "GROUP", "BY", "T1.StuID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "fname", ",", "t2", ".", "lname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "group", "by", "t1", ".", "stuid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the first name and last name of the student who have most number of sports?", "question_toks": [ "what", "is", "first", "name", "and", "last", "name", "of", "student", "who", "have", "most", "number", "of", "sport", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "is", "the", "first", "name", "and", "last", "name", "of", "the", "student", "who", "have", "most", "number", "of", "sports", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "most" ], [ "number" ], [ "of" ], [ "sport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "sport", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(3) T(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": "game_1", "query": "SELECT T2.Fname , T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Fname", ",", "T2.Lname", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "GROUP", "BY", "T1.StuID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "fname", ",", "t2", ".", "lname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "group", "by", "t1", ".", "stuid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the first and last name of the student who played the most sports?", "question_toks": [ "what", "is", "first", "and", "last", "name", "of", "student", "who", "played", "most", "sport", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "is", "the", "first", "and", "last", "name", "of", "the", "student", "who", "played", "the", "most", "sports", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "played" ], [ "most" ], [ "sport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "played", "VBD" ], [ "most", "JJS" ], [ "sport", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(3) T(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": "game_1", "query": "SELECT sportname FROM Sportsinfo WHERE onscholarship = 'Y' GROUP BY sportname ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "sportname", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "'Y", "'", "GROUP", "BY", "sportname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "sportname", "from", "sportsinfo", "where", "onscholarship", "=", "value", "group", "by", "sportname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which sport has most number of students on scholarship?", "question_toks": [ "which", "sport", "ha", "most", "number", "of", "student", "on", "scholarship", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Y\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Which", "sport", "has", "most", "number", "of", "students", "on", "scholarship", "?" ], "question_arg": [ [ "which" ], [ "sport" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "student" ], [ "on", "scholarship" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "sport", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "on", "IN" ], [ "scholarship", "NN" ], [ "?", "." ] ], "values": [ "Y" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(13) T(3) Sup(0) A(3) C(0) T(3) Filter(2) A(0) C(16) T(3) V(0)" }, { "db_id": "game_1", "query": "SELECT sportname FROM Sportsinfo WHERE onscholarship = 'Y' GROUP BY sportname ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "sportname", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "'Y", "'", "GROUP", "BY", "sportname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "sportname", "from", "sportsinfo", "where", "onscholarship", "=", "value", "group", "by", "sportname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the sport with the most scholarship students?", "question_toks": [ "what", "is", "sport", "with", "most", "scholarship", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Y\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "is", "the", "sport", "with", "the", "most", "scholarship", "students", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "sport" ], [ "with" ], [ "most" ], [ "scholarship" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "sport", "VBN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "scholarship", "JJ" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "Y" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(13) T(3) Sup(0) A(3) C(0) T(3) Filter(2) A(0) C(16) T(3) V(0)" }, { "db_id": "game_1", "query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Sportsinfo" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "except", "select", "stuid", "from", "sportsinfo" ], "question": "Show student ids who don't have any sports.", "question_toks": [ "show", "student", "id", "who", "do", "n't", "have", "any", "sport", "." ], "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", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "student", "ids", "who", "do", "n't", "have", "any", "sports", "." ], "question_arg": [ [ "show" ], [ "student", "id" ], [ "who" ], [ "do" ], [ "n't" ], [ "have" ], [ "any" ], [ "sport" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "student", "NN" ], [ "id", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "sport", "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": "game_1", "query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Sportsinfo" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "except", "select", "stuid", "from", "sportsinfo" ], "question": "What are the ids of all students who don't play sports?", "question_toks": [ "what", "are", "id", "of", "all", "student", "who", "do", "n't", "play", "sport", "?" ], "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", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "students", "who", "do", "n't", "play", "sports", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "do" ], [ "n't" ], [ "play" ], [ "sport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "play", "VB" ], [ "sport", "VB" ], [ "?", "." ] ], "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": "game_1", "query": "SELECT StuID FROM Student WHERE major = 600 INTERSECT SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y'", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "major", "=", "600", "INTERSECT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "'Y", "'" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "major", "=", "value", "intersect", "select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value" ], "question": "Show student ids who are on scholarship and have major 600.", "question_toks": [ "show", "student", "id", "who", "are", "on", "scholarship", "and", "have", "major", "600", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Y\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], 600.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "student", "ids", "who", "are", "on", "scholarship", "and", "have", "major", "600", "." ], "question_arg": [ [ "show" ], [ "student", "id" ], [ "who" ], [ "are" ], [ "on", "scholarship" ], [ "and" ], [ "have" ], [ "major" ], [ "600" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "student", "NN" ], [ "id", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "on", "IN" ], [ "scholarship", "NN" ], [ "and", "CC" ], [ "have", "VBP" ], [ "major", "JJ" ], [ "600", "CD" ], [ ".", "." ] ], "values": [ "600", "Y" ], "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(1) T(3) Filter(2) A(0) C(16) T(3) V(1)" }, { "db_id": "game_1", "query": "SELECT StuID FROM Student WHERE major = 600 INTERSECT SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y'", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "major", "=", "600", "INTERSECT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "'Y", "'" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "major", "=", "value", "intersect", "select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value" ], "question": "What are the student ids for those on scholarship in major number 600?", "question_toks": [ "what", "are", "student", "id", "for", "those", "on", "scholarship", "in", "major", "number", "600", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Y\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], 600.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "student", "ids", "for", "those", "on", "scholarship", "in", "major", "number", "600", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "student", "id" ], [ "for" ], [ "those" ], [ "on", "scholarship" ], [ "in" ], [ "major" ], [ "number" ], [ "600" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "student", "JJ" ], [ "id", "NN" ], [ "for", "IN" ], [ "those", "DT" ], [ "on", "IN" ], [ "scholarship", "NN" ], [ "in", "IN" ], [ "major", "JJ" ], [ "number", "NN" ], [ "600", "CD" ], [ "?", "." ] ], "values": [ "600", "Y" ], "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(1) T(3) Filter(2) A(0) C(16) T(3) V(1)" }, { "db_id": "game_1", "query": "SELECT StuID FROM Student WHERE sex = 'F' INTERSECT SELECT StuID FROM Sportsinfo WHERE sportname = \"Football\"", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "sex", "=", "'F", "'", "INTERSECT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "Football", "''" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "sex", "=", "value", "intersect", "select", "stuid", "from", "sportsinfo", "where", "sportname", "=", "value" ], "question": "Show student ids who are female and play football.", "question_toks": [ "show", "student", "id", "who", "are", "female", "and", "play", "football", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Football\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "student", "ids", "who", "are", "female", "and", "play", "football", "." ], "question_arg": [ [ "show" ], [ "student", "id" ], [ "who" ], [ "are" ], [ "female" ], [ "and" ], [ "play" ], [ "football" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "student", "NN" ], [ "id", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "female", "JJ" ], [ "and", "CC" ], [ "play", "VB" ], [ "football", "NN" ], [ ".", "." ] ], "values": [ "Football", "F" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(5) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(1) T(3) Filter(2) A(0) C(13) T(3) V(0)" }, { "db_id": "game_1", "query": "SELECT StuID FROM Student WHERE sex = 'F' INTERSECT SELECT StuID FROM Sportsinfo WHERE sportname = \"Football\"", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "sex", "=", "'F", "'", "INTERSECT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "Football", "''" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "sex", "=", "value", "intersect", "select", "stuid", "from", "sportsinfo", "where", "sportname", "=", "value" ], "question": "What are the ids of all female students who play football?", "question_toks": [ "what", "are", "id", "of", "all", "female", "student", "who", "play", "football", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Football\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "female", "students", "who", "play", "football", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "female" ], [ "student" ], [ "who" ], [ "play" ], [ "football" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "female", "JJ" ], [ "student", "NN" ], [ "who", "WP" ], [ "play", "VBP" ], [ "football", "NN" ], [ "?", "." ] ], "values": [ "F", "Football" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(5) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(1) T(3) Filter(2) A(0) C(13) T(3) V(1)" }, { "db_id": "game_1", "query": "SELECT StuID FROM Student WHERE sex = 'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname = \"Football\"", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "sex", "=", "'M", "'", "EXCEPT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "Football", "''" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "sex", "=", "value", "except", "select", "stuid", "from", "sportsinfo", "where", "sportname", "=", "value" ], "question": "Show all male student ids who don't play football.", "question_toks": [ "show", "all", "male", "student", "id", "who", "do", "n't", "play", "football", "." ], "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": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Football\"", 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, 5, false ], null ], "\"M\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "all", "male", "student", "ids", "who", "do", "n't", "play", "football", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "male" ], [ "student", "id" ], [ "who" ], [ "do" ], [ "n't" ], [ "play" ], [ "football" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "male", "JJ" ], [ "student", "NN" ], [ "id", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "play", "VB" ], [ "football", "NN" ], [ ".", "." ] ], "values": [ "Football", "M" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(5) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(1) T(3) Filter(2) A(0) C(13) T(3) V(0)" }, { "db_id": "game_1", "query": "SELECT StuID FROM Student WHERE sex = 'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname = \"Football\"", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "sex", "=", "'M", "'", "EXCEPT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "Football", "''" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "sex", "=", "value", "except", "select", "stuid", "from", "sportsinfo", "where", "sportname", "=", "value" ], "question": "What are the ids of all male students who do not play football?", "question_toks": [ "what", "are", "id", "of", "all", "male", "student", "who", "do", "not", "play", "football", "?" ], "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": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Football\"", 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, 5, false ], null ], "\"M\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "male", "students", "who", "do", "not", "play", "football", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "male" ], [ "student" ], [ "who" ], [ "do" ], [ "not" ], [ "play" ], [ "football" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "male", "JJ" ], [ "student", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "play", "VB" ], [ "football", "NN" ], [ "?", "." ] ], "values": [ "Football", "M" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(5) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(1) T(3) Filter(2) A(0) C(13) T(3) V(0)" }, { "db_id": "game_1", "query": "SELECT sum(hoursperweek) , sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.Fname = \"David\" AND T2.Lname = \"Shieber\"", "query_toks": [ "SELECT", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.Fname", "=", "``", "David", "''", "AND", "T2.Lname", "=", "``", "Shieber", "''" ], "query_toks_no_value": [ "select", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "fname", "=", "value", "and", "t2", ".", "lname", "=", "value" ], "question": "Show total hours per week and number of games played for student David Shieber.", "question_toks": [ "show", "total", "hour", "per", "week", "and", "number", "of", "game", "played", "for", "student", "david", "shieber", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 17, false ], null ] ], [ 4, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"David\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Shieber\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "total", "hours", "per", "week", "and", "number", "of", "games", "played", "for", "student", "David", "Shieber", "." ], "question_arg": [ [ "show" ], [ "total" ], [ "hour", "per", "week" ], [ "and" ], [ "number" ], [ "of" ], [ "game", "played" ], [ "for" ], [ "student" ], [ "david" ], [ "shieber" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "total", "JJ" ], [ "hour", "NN" ], [ "per", "IN" ], [ "week", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "game", "NN" ], [ "played", "VBN" ], [ "for", "IN" ], [ "student", "NN" ], [ "david", "JJ" ], [ "shieber", "NN" ], [ ".", "." ] ], "values": [ "David", "Davis", "Shieber" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(4) C(14) T(3) A(4) C(15) T(3) Filter(0) Filter(2) A(0) C(3) T(0) V(0) Filter(2) A(0) C(2) T(0) V(2)" }, { "db_id": "game_1", "query": "SELECT sum(hoursperweek) , sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.Fname = \"David\" AND T2.Lname = \"Shieber\"", "query_toks": [ "SELECT", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.Fname", "=", "``", "David", "''", "AND", "T2.Lname", "=", "``", "Shieber", "''" ], "query_toks_no_value": [ "select", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "fname", "=", "value", "and", "t2", ".", "lname", "=", "value" ], "question": "What is the total number of hours per work and number of games played by David Shieber?", "question_toks": [ "what", "is", "total", "number", "of", "hour", "per", "work", "and", "number", "of", "game", "played", "by", "david", "shieber", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 17, false ], null ] ], [ 4, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"David\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Shieber\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "hours", "per", "work", "and", "number", "of", "games", "played", "by", "David", "Shieber", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "hour", "per", "week" ], [ "work" ], [ "and" ], [ "number" ], [ "of" ], [ "game", "played" ], [ "by" ], [ "david" ], [ "shieber" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "hour", "NN" ], [ "per", "IN" ], [ "work", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "game", "NN" ], [ "played", "VBN" ], [ "by", "IN" ], [ "david", "JJ" ], [ "shieber", "NN" ], [ "?", "." ] ], "values": [ "David", "Davis", "Shieber" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(4) C(14) T(3) A(4) C(15) T(3) Filter(0) Filter(2) A(0) C(3) T(0) V(0) Filter(2) A(0) C(2) T(0) V(2)" }, { "db_id": "game_1", "query": "SELECT sum(hoursperweek) , sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.age < 20", "query_toks": [ "SELECT", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.age", "<", "20" ], "query_toks_no_value": [ "select", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "age", "<", "value" ], "question": "Show total hours per week and number of games played for students under 20.", "question_toks": [ "show", "total", "hour", "per", "week", "and", "number", "of", "game", "played", "for", "student", "under", "20", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 17, false ], null ] ], [ 4, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 4, false ], null ], 20.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "total", "hours", "per", "week", "and", "number", "of", "games", "played", "for", "students", "under", "20", "." ], "question_arg": [ [ "show" ], [ "total" ], [ "hour", "per", "week" ], [ "and" ], [ "number" ], [ "of" ], [ "game", "played" ], [ "for" ], [ "student" ], [ "under" ], [ "20" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "total", "JJ" ], [ "hour", "NN" ], [ "per", "IN" ], [ "week", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "game", "NN" ], [ "played", "VBN" ], [ "for", "IN" ], [ "student", "NN" ], [ "under", "IN" ], [ "20", "CD" ], [ ".", "." ] ], "values": [ "20" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(4) C(14) T(3) A(4) C(15) T(3) Filter(4) A(0) C(4) T(0) V(0)" }, { "db_id": "game_1", "query": "SELECT sum(hoursperweek) , sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.age < 20", "query_toks": [ "SELECT", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.age", "<", "20" ], "query_toks_no_value": [ "select", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "age", "<", "value" ], "question": "What is the total number of hours per week and number of games played by students under 20?", "question_toks": [ "what", "is", "total", "number", "of", "hour", "per", "week", "and", "number", "of", "game", "played", "by", "student", "under", "20", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 17, false ], null ] ], [ 4, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 4, false ], null ], 20.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "hours", "per", "week", "and", "number", "of", "games", "played", "by", "students", "under", "20", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "hour", "per", "week" ], [ "and" ], [ "number" ], [ "of" ], [ "game", "played" ], [ "by" ], [ "student" ], [ "under" ], [ "20" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "hour", "NN" ], [ "per", "IN" ], [ "week", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "game", "NN" ], [ "played", "VBN" ], [ "by", "IN" ], [ "student", "NN" ], [ "under", "IN" ], [ "20", "CD" ], [ "?", "." ] ], "values": [ "20" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(4) C(14) T(3) A(4) C(15) T(3) Filter(4) A(0) C(4) T(0) V(0)" }, { "db_id": "game_1", "query": "SELECT count(DISTINCT StuID) FROM Plays_games", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "StuID", ")", "FROM", "Plays_games" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "stuid", ")", "from", "plays_games" ], "question": "How many students play video games?", "question_toks": [ "how", "many", "student", "play", "video", "game", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "How", "many", "students", "play", "video", "games", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "play" ], [ "video", "game" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "play", "NN" ], [ "video", "NN" ], [ "game", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(1) T(2)" }, { "db_id": "game_1", "query": "SELECT count(DISTINCT StuID) FROM Plays_games", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "StuID", ")", "FROM", "Plays_games" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "stuid", ")", "from", "plays_games" ], "question": "How many different students play games?", "question_toks": [ "how", "many", "different", "student", "play", "game", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "How", "many", "different", "students", "play", "games", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "student" ], [ "play", "game" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "student", "NN" ], [ "play", "NN" ], [ "game", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(1) T(2)" }, { "db_id": "game_1", "query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Plays_games", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Plays_games" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "except", "select", "stuid", "from", "plays_games" ], "question": "Show ids of students who don't play video game.", "question_toks": [ "show", "id", "of", "student", "who", "do", "n't", "play", "video", "game", "." ], "sql": { "except": { "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": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "ids", "of", "students", "who", "do", "n't", "play", "video", "game", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "do" ], [ "n't" ], [ "play" ], [ "video", "game" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "play", "VB" ], [ "video", "JJ" ], [ "game", "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(2)" }, { "db_id": "game_1", "query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Plays_games", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Plays_games" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "except", "select", "stuid", "from", "plays_games" ], "question": "What are the ids of all students who are not video game players?", "question_toks": [ "what", "are", "id", "of", "all", "student", "who", "are", "not", "video", "game", "player", "?" ], "sql": { "except": { "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": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "students", "who", "are", "not", "video", "game", "players", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "are" ], [ "not" ], [ "video", "game" ], [ "player" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "video", "JJ" ], [ "game", "NN" ], [ "player", "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(2)" }, { "db_id": "game_1", "query": "SELECT StuID FROM Sportsinfo INTERSECT SELECT StuID FROM Plays_games", "query_toks": [ "SELECT", "StuID", "FROM", "Sportsinfo", "INTERSECT", "SELECT", "StuID", "FROM", "Plays_games" ], "query_toks_no_value": [ "select", "stuid", "from", "sportsinfo", "intersect", "select", "stuid", "from", "plays_games" ], "question": "Show ids of students who play video game and play sports.", "question_toks": [ "show", "id", "of", "student", "who", "play", "video", "game", "and", "play", "sport", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "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": [] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "ids", "of", "students", "who", "play", "video", "game", "and", "play", "sports", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "play" ], [ "video", "game" ], [ "and" ], [ "play" ], [ "sport" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "play", "VBP" ], [ "video", "JJ" ], [ "game", "NN" ], [ "and", "CC" ], [ "play", "VB" ], [ "sport", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(0) Root(5) Sel(0) N(0) A(0) C(1) T(3) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "game_1", "query": "SELECT StuID FROM Sportsinfo INTERSECT SELECT StuID FROM Plays_games", "query_toks": [ "SELECT", "StuID", "FROM", "Sportsinfo", "INTERSECT", "SELECT", "StuID", "FROM", "Plays_games" ], "query_toks_no_value": [ "select", "stuid", "from", "sportsinfo", "intersect", "select", "stuid", "from", "plays_games" ], "question": "What are the ids of all students who played video games and sports?", "question_toks": [ "what", "are", "id", "of", "all", "student", "who", "played", "video", "game", "and", "sport", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "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": [] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "students", "who", "played", "video", "games", "and", "sports", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "played" ], [ "video", "game" ], [ "and" ], [ "sport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "played", "VBD" ], [ "video", "NN" ], [ "game", "NN" ], [ "and", "CC" ], [ "sport", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(0) Root(5) Sel(0) N(0) A(0) C(1) T(3) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "game_1", "query": "SELECT gameid , sum(hours_played) FROM Plays_games GROUP BY gameid", "query_toks": [ "SELECT", "gameid", ",", "sum", "(", "hours_played", ")", "FROM", "Plays_games", "GROUP", "BY", "gameid" ], "query_toks_no_value": [ "select", "gameid", ",", "sum", "(", "hours_played", ")", "from", "plays_games", "group", "by", "gameid" ], "question": "Show all game ids and the number of hours played.", "question_toks": [ "show", "all", "game", "id", "and", "number", "of", "hour", "played", "." ], "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 ] ], [ 4, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "all", "game", "ids", "and", "the", "number", "of", "hours", "played", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "game", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "hour", "played" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "game", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "hour", "NN" ], [ "played", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(2) A(4) C(12) T(2)" }, { "db_id": "game_1", "query": "SELECT gameid , sum(hours_played) FROM Plays_games GROUP BY gameid", "query_toks": [ "SELECT", "gameid", ",", "sum", "(", "hours_played", ")", "FROM", "Plays_games", "GROUP", "BY", "gameid" ], "query_toks_no_value": [ "select", "gameid", ",", "sum", "(", "hours_played", ")", "from", "plays_games", "group", "by", "gameid" ], "question": "What are ids and total number of hours played for each game?", "question_toks": [ "what", "are", "id", "and", "total", "number", "of", "hour", "played", "for", "each", "game", "?" ], "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 ] ], [ 4, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "ids", "and", "total", "number", "of", "hours", "played", "for", "each", "game", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "total" ], [ "number" ], [ "of" ], [ "hour", "played" ], [ "for" ], [ "each" ], [ "game" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "hour", "NN" ], [ "played", "VBN" ], [ "for", "IN" ], [ "each", "DT" ], [ "game", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(2) A(4) C(12) T(2)" }, { "db_id": "game_1", "query": "SELECT Stuid , sum(hours_played) FROM Plays_games GROUP BY Stuid", "query_toks": [ "SELECT", "Stuid", ",", "sum", "(", "hours_played", ")", "FROM", "Plays_games", "GROUP", "BY", "Stuid" ], "query_toks_no_value": [ "select", "stuid", ",", "sum", "(", "hours_played", ")", "from", "plays_games", "group", "by", "stuid" ], "question": "Show all student ids and the number of hours played.", "question_toks": [ "show", "all", "student", "id", "and", "number", "of", "hour", "played", "." ], "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 ] ], [ 4, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "all", "student", "ids", "and", "the", "number", "of", "hours", "played", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "student", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "hour", "played" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "student", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "hour", "NN" ], [ "played", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(2) A(4) C(12) T(2)" }, { "db_id": "game_1", "query": "SELECT Stuid , sum(hours_played) FROM Plays_games GROUP BY Stuid", "query_toks": [ "SELECT", "Stuid", ",", "sum", "(", "hours_played", ")", "FROM", "Plays_games", "GROUP", "BY", "Stuid" ], "query_toks_no_value": [ "select", "stuid", ",", "sum", "(", "hours_played", ")", "from", "plays_games", "group", "by", "stuid" ], "question": "What are the ids of all students and number of hours played?", "question_toks": [ "what", "are", "id", "of", "all", "student", "and", "number", "of", "hour", "played", "?" ], "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 ] ], [ 4, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "students", "and", "number", "of", "hours", "played", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "student" ], [ "and" ], [ "number" ], [ "of" ], [ "hour", "played" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "hour", "NN" ], [ "played", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(2) A(4) C(12) T(2)" }, { "db_id": "game_1", "query": "SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY sum(hours_played) DESC LIMIT 1", "query_toks": [ "SELECT", "gname", "FROM", "Plays_games", "AS", "T1", "JOIN", "Video_games", "AS", "T2", "ON", "T1.gameid", "=", "T2.gameid", "GROUP", "BY", "T1.gameid", "ORDER", "BY", "sum", "(", "hours_played", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "gname", "from", "plays_games", "as", "t1", "join", "video_games", "as", "t2", "on", "t1", ".", "gameid", "=", "t2", ".", "gameid", "group", "by", "t1", ".", "gameid", "order", "by", "sum", "(", "hours_played", ")", "desc", "limit", "value" ], "question": "Show the game name that has most number of hours played.", "question_toks": [ "show", "game", "name", "that", "ha", "most", "number", "of", "hour", "played", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "the", "game", "name", "that", "has", "most", "number", "of", "hours", "played", "." ], "question_arg": [ [ "show" ], [ "game", "name" ], [ "that" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "hour", "played" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "game", "NN" ], [ "name", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "hour", "NN" ], [ "played", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(4) C(12) T(2)" }, { "db_id": "game_1", "query": "SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY sum(hours_played) DESC LIMIT 1", "query_toks": [ "SELECT", "gname", "FROM", "Plays_games", "AS", "T1", "JOIN", "Video_games", "AS", "T2", "ON", "T1.gameid", "=", "T2.gameid", "GROUP", "BY", "T1.gameid", "ORDER", "BY", "sum", "(", "hours_played", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "gname", "from", "plays_games", "as", "t1", "join", "video_games", "as", "t2", "on", "t1", ".", "gameid", "=", "t2", ".", "gameid", "group", "by", "t1", ".", "gameid", "order", "by", "sum", "(", "hours_played", ")", "desc", "limit", "value" ], "question": "What is the name of the game that has been played the most?", "question_toks": [ "what", "is", "name", "of", "game", "that", "ha", "been", "played", "most", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "game", "that", "has", "been", "played", "the", "most", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "game" ], [ "that" ], [ "ha" ], [ "been" ], [ "played" ], [ "most" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "game", "NN" ], [ "that", "WDT" ], [ "ha", "VBD" ], [ "been", "VBN" ], [ "played", "VBN" ], [ "most", "JJS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(4) C(12) T(2)" }, { "db_id": "game_1", "query": "SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING sum(hours_played) >= 1000", "query_toks": [ "SELECT", "gname", "FROM", "Plays_games", "AS", "T1", "JOIN", "Video_games", "AS", "T2", "ON", "T1.gameid", "=", "T2.gameid", "GROUP", "BY", "T1.gameid", "HAVING", "sum", "(", "hours_played", ")", ">", "=", "1000" ], "query_toks_no_value": [ "select", "gname", "from", "plays_games", "as", "t1", "join", "video_games", "as", "t2", "on", "t1", ".", "gameid", "=", "t2", ".", "gameid", "group", "by", "t1", ".", "gameid", "having", "sum", "(", "hours_played", ")", ">", "=", "value" ], "question": "Show all game names played by at least 1000 hours.", "question_toks": [ "show", "all", "game", "name", "played", "by", "at", "least", "1000", "hour", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 5, [ 0, [ 4, 14, false ], null ], 1000.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, 13, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "all", "game", "names", "played", "by", "at", "least", "1000", "hours", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "game", "name" ], [ "played" ], [ "by" ], [ "at" ], [ "least" ], [ "1000" ], [ "hour" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "game", "NN" ], [ "name", "NN" ], [ "played", "VBN" ], [ "by", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "1000", "CD" ], [ "hour", "NN" ], [ ".", "." ] ], "values": [ "1000" ], "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(9) T(2) Filter(7) A(4) C(12) T(2) V(0)" }, { "db_id": "game_1", "query": "SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING sum(hours_played) >= 1000", "query_toks": [ "SELECT", "gname", "FROM", "Plays_games", "AS", "T1", "JOIN", "Video_games", "AS", "T2", "ON", "T1.gameid", "=", "T2.gameid", "GROUP", "BY", "T1.gameid", "HAVING", "sum", "(", "hours_played", ")", ">", "=", "1000" ], "query_toks_no_value": [ "select", "gname", "from", "plays_games", "as", "t1", "join", "video_games", "as", "t2", "on", "t1", ".", "gameid", "=", "t2", ".", "gameid", "group", "by", "t1", ".", "gameid", "having", "sum", "(", "hours_played", ")", ">", "=", "value" ], "question": "What are the names of all the games that have been played for at least 1000 hours?", "question_toks": [ "what", "are", "name", "of", "all", "game", "that", "have", "been", "played", "for", "at", "least", "1000", "hour", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 5, [ 0, [ 4, 14, false ], null ], 1000.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, 13, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "games", "that", "have", "been", "played", "for", "at", "least", "1000", "hours", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "game" ], [ "that" ], [ "have" ], [ "been" ], [ "played" ], [ "for" ], [ "at" ], [ "least" ], [ "1000" ], [ "hour" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "game", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "played", "VBN" ], [ "for", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "1000", "CD" ], [ "hour", "NN" ], [ "?", "." ] ], "values": [ "1000" ], "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(9) T(2) Filter(7) A(4) C(12) T(2) V(0)" }, { "db_id": "game_1", "query": "SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T3.Lname = \"Smith\" AND T3.Fname = \"Linda\"", "query_toks": [ "SELECT", "Gname", "FROM", "Plays_games", "AS", "T1", "JOIN", "Video_games", "AS", "T2", "ON", "T1.gameid", "=", "T2.gameid", "JOIN", "Student", "AS", "T3", "ON", "T3.Stuid", "=", "T1.Stuid", "WHERE", "T3.Lname", "=", "``", "Smith", "''", "AND", "T3.Fname", "=", "``", "Linda", "''" ], "query_toks_no_value": [ "select", "gname", "from", "plays_games", "as", "t1", "join", "video_games", "as", "t2", "on", "t1", ".", "gameid", "=", "t2", ".", "gameid", "join", "student", "as", "t3", "on", "t3", ".", "stuid", "=", "t1", ".", "stuid", "where", "t3", ".", "lname", "=", "value", "and", "t3", ".", "fname", "=", "value" ], "question": "Show all game names played by Linda Smith", "question_toks": [ "show", "all", "game", "name", "played", "by", "linda", "smith" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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, 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, 2, false ], null ], "\"Smith\"", null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Linda\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Show", "all", "game", "names", "played", "by", "Linda", "Smith" ], "question_arg": [ [ "show" ], [ "all" ], [ "game", "name" ], [ "played" ], [ "by" ], [ "linda" ], [ "smith" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "game", "NN" ], [ "name", "NN" ], [ "played", "VBN" ], [ "by", "IN" ], [ "linda", "NN" ], [ "smith", "NN" ] ], "values": [ "Linda", "Smith" ], "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(9) T(2) Filter(0) Filter(2) A(0) C(2) T(0) V(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "game_1", "query": "SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T3.Lname = \"Smith\" AND T3.Fname = \"Linda\"", "query_toks": [ "SELECT", "Gname", "FROM", "Plays_games", "AS", "T1", "JOIN", "Video_games", "AS", "T2", "ON", "T1.gameid", "=", "T2.gameid", "JOIN", "Student", "AS", "T3", "ON", "T3.Stuid", "=", "T1.Stuid", "WHERE", "T3.Lname", "=", "``", "Smith", "''", "AND", "T3.Fname", "=", "``", "Linda", "''" ], "query_toks_no_value": [ "select", "gname", "from", "plays_games", "as", "t1", "join", "video_games", "as", "t2", "on", "t1", ".", "gameid", "=", "t2", ".", "gameid", "join", "student", "as", "t3", "on", "t3", ".", "stuid", "=", "t1", ".", "stuid", "where", "t3", ".", "lname", "=", "value", "and", "t3", ".", "fname", "=", "value" ], "question": "What are the names of all games played by Linda Smith?", "question_toks": [ "what", "are", "name", "of", "all", "game", "played", "by", "linda", "smith", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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, 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, 2, false ], null ], "\"Smith\"", null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Linda\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "games", "played", "by", "Linda", "Smith", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "game", "played" ], [ "by" ], [ "linda" ], [ "smith" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "game", "NN" ], [ "played", "VBN" ], [ "by", "IN" ], [ "linda", "NN" ], [ "smith", "NN" ], [ "?", "." ] ], "values": [ "Linda", "Smith" ], "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(9) T(2) Filter(0) Filter(2) A(0) C(2) T(0) V(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "game_1", "query": "SELECT T2.lname , T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = \"Football\" OR T1.SportName = \"Lacrosse\"", "query_toks": [ "SELECT", "T2.lname", ",", "T2.fname", "FROM", "SportsInfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T1.SportName", "=", "``", "Football", "''", "OR", "T1.SportName", "=", "``", "Lacrosse", "''" ], "query_toks_no_value": [ "select", "t2", ".", "lname", ",", "t2", ".", "fname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "sportname", "=", "value", "or", "t1", ".", "sportname", "=", "value" ], "question": "Find the last and first name of students who are playing Football or Lacrosse.", "question_toks": [ "find", "last", "and", "first", "name", "of", "student", "who", "are", "playing", "football", "or", "lacrosse", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, 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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Football\"", null ], "or", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Lacrosse\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Find", "the", "last", "and", "first", "name", "of", "students", "who", "are", "playing", "Football", "or", "Lacrosse", "." ], "question_arg": [ [ "find" ], [ "last" ], [ "and" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "playing" ], [ "football" ], [ "or" ], [ "lacrosse" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "and", "CC" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "playing", "VBG" ], [ "football", "NN" ], [ "or", "CC" ], [ "lacrosse", "NN" ], [ ".", "." ] ], "values": [ "1", "Football", "Lacrosse" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(1) Filter(2) A(0) C(13) T(3) V(1) Filter(2) A(0) C(13) T(3) V(2)" }, { "db_id": "game_1", "query": "SELECT T2.lname , T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = \"Football\" OR T1.SportName = \"Lacrosse\"", "query_toks": [ "SELECT", "T2.lname", ",", "T2.fname", "FROM", "SportsInfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T1.SportName", "=", "``", "Football", "''", "OR", "T1.SportName", "=", "``", "Lacrosse", "''" ], "query_toks_no_value": [ "select", "t2", ".", "lname", ",", "t2", ".", "fname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "sportname", "=", "value", "or", "t1", ".", "sportname", "=", "value" ], "question": "What is the first and last name of all students who play Football or Lacrosse?", "question_toks": [ "what", "is", "first", "and", "last", "name", "of", "all", "student", "who", "play", "football", "or", "lacrosse", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, 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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Football\"", null ], "or", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Lacrosse\"", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "is", "the", "first", "and", "last", "name", "of", "all", "students", "who", "play", "Football", "or", "Lacrosse", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "play" ], [ "football" ], [ "or" ], [ "lacrosse" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "play", "VBP" ], [ "football", "NN" ], [ "or", "CC" ], [ "lacrosse", "NN" ], [ "?", "." ] ], "values": [ "Football", "1", "Lacrosse" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(1) Filter(2) A(0) C(13) T(3) V(0) Filter(2) A(0) C(13) T(3) V(2)" }, { "db_id": "game_1", "query": "SELECT fname , age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName = \"Football\" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName = \"Lacrosse\")", "query_toks": [ "SELECT", "fname", ",", "age", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "SportName", "=", "``", "Football", "''", "INTERSECT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "SportName", "=", "``", "Lacrosse", "''", ")" ], "query_toks_no_value": [ "select", "fname", ",", "age", "from", "student", "where", "stuid", "in", "(", "select", "stuid", "from", "sportsinfo", "where", "sportname", "=", "value", "intersect", "select", "stuid", "from", "sportsinfo", "where", "sportname", "=", "value", ")" ], "question": "Find the first name and age of the students who are playing both Football and Lacrosse.", "question_toks": [ "find", "first", "name", "and", "age", "of", "student", "who", "are", "playing", "both", "football", "and", "lacrosse", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Lacrosse\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Football\"", null ] ] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Find", "the", "first", "name", "and", "age", "of", "the", "students", "who", "are", "playing", "both", "Football", "and", "Lacrosse", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "and" ], [ "age" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "playing" ], [ "both" ], [ "football" ], [ "and" ], [ "lacrosse" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "playing", "VBG" ], [ "both", "DT" ], [ "football", "NN" ], [ "and", "CC" ], [ "lacrosse", "NN" ], [ ".", "." ] ], "values": [ "Football", "1", "Lacrosse" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0) Filter(18) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(1) T(3) Filter(2) A(0) C(13) T(3) V(0)" }, { "db_id": "game_1", "query": "SELECT fname , age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName = \"Football\" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName = \"Lacrosse\")", "query_toks": [ "SELECT", "fname", ",", "age", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "SportName", "=", "``", "Football", "''", "INTERSECT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "SportName", "=", "``", "Lacrosse", "''", ")" ], "query_toks_no_value": [ "select", "fname", ",", "age", "from", "student", "where", "stuid", "in", "(", "select", "stuid", "from", "sportsinfo", "where", "sportname", "=", "value", "intersect", "select", "stuid", "from", "sportsinfo", "where", "sportname", "=", "value", ")" ], "question": "What are the first names and ages of all students who are playing both Football and Lacrosse?", "question_toks": [ "what", "are", "first", "name", "and", "age", "of", "all", "student", "who", "are", "playing", "both", "football", "and", "lacrosse", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Lacrosse\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Football\"", null ] ] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "and", "ages", "of", "all", "students", "who", "are", "playing", "both", "Football", "and", "Lacrosse", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "and" ], [ "age" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "are" ], [ "playing" ], [ "both" ], [ "football" ], [ "and" ], [ "lacrosse" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "playing", "VBG" ], [ "both", "DT" ], [ "football", "NN" ], [ "and", "CC" ], [ "lacrosse", "NN" ], [ "?", "." ] ], "values": [ "1", "Football", "Lacrosse" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0) Filter(18) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(1) T(3) Filter(2) A(0) C(13) T(3) V(1)" }, { "db_id": "game_1", "query": "SELECT lname , sex FROM Student WHERE StuID IN (SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = \"Call of Destiny\" INTERSECT SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = \"Works of Widenius\")", "query_toks": [ "SELECT", "lname", ",", "sex", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "T1.StuID", "FROM", "Plays_games", "AS", "T1", "JOIN", "Video_games", "AS", "T2", "ON", "T1.GameID", "=", "T2.GameID", "WHERE", "T2.Gname", "=", "``", "Call", "of", "Destiny", "''", "INTERSECT", "SELECT", "T1.StuID", "FROM", "Plays_games", "AS", "T1", "JOIN", "Video_games", "AS", "T2", "ON", "T1.GameID", "=", "T2.GameID", "WHERE", "T2.Gname", "=", "``", "Works", "of", "Widenius", "''", ")" ], "query_toks_no_value": [ "select", "lname", ",", "sex", "from", "student", "where", "stuid", "in", "(", "select", "t1", ".", "stuid", "from", "plays_games", "as", "t1", "join", "video_games", "as", "t2", "on", "t1", ".", "gameid", "=", "t2", ".", "gameid", "where", "t2", ".", "gname", "=", "value", "intersect", "select", "t1", ".", "stuid", "from", "plays_games", "as", "t1", "join", "video_games", "as", "t2", "on", "t1", ".", "gameid", "=", "t2", ".", "gameid", "where", "t2", ".", "gname", "=", "value", ")" ], "question": "Find the last name and gender of the students who are playing both Call of Destiny and Works of Widenius games.", "question_toks": [ "find", "last", "name", "and", "gender", "of", "student", "who", "are", "playing", "both", "call", "of", "destiny", "and", "work", "of", "widenius", "game", "." ], "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, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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 ], "\"Works of Widenius\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Call of Destiny\"", null ] ] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "Find", "the", "last", "name", "and", "gender", "of", "the", "students", "who", "are", "playing", "both", "Call", "of", "Destiny", "and", "Works", "of", "Widenius", "games", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "and" ], [ "gender" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "playing" ], [ "both" ], [ "call" ], [ "of" ], [ "destiny" ], [ "and" ], [ "work" ], [ "of" ], [ "widenius" ], [ "game" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "gender", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "playing", "VBG" ], [ "both", "DT" ], [ "call", "NN" ], [ "of", "IN" ], [ "destiny", "NN" ], [ "and", "CC" ], [ "work", "NN" ], [ "of", "IN" ], [ "widenius", "JJ" ], [ "game", "NN" ], [ ".", "." ] ], "values": [ "Works of Widenius", "Call of Destiny" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(5) T(0) Filter(18) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(10) T(1) V(1)" }, { "db_id": "game_1", "query": "SELECT lname , sex FROM Student WHERE StuID IN (SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = \"Call of Destiny\" INTERSECT SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = \"Works of Widenius\")", "query_toks": [ "SELECT", "lname", ",", "sex", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "T1.StuID", "FROM", "Plays_games", "AS", "T1", "JOIN", "Video_games", "AS", "T2", "ON", "T1.GameID", "=", "T2.GameID", "WHERE", "T2.Gname", "=", "``", "Call", "of", "Destiny", "''", "INTERSECT", "SELECT", "T1.StuID", "FROM", "Plays_games", "AS", "T1", "JOIN", "Video_games", "AS", "T2", "ON", "T1.GameID", "=", "T2.GameID", "WHERE", "T2.Gname", "=", "``", "Works", "of", "Widenius", "''", ")" ], "query_toks_no_value": [ "select", "lname", ",", "sex", "from", "student", "where", "stuid", "in", "(", "select", "t1", ".", "stuid", "from", "plays_games", "as", "t1", "join", "video_games", "as", "t2", "on", "t1", ".", "gameid", "=", "t2", ".", "gameid", "where", "t2", ".", "gname", "=", "value", "intersect", "select", "t1", ".", "stuid", "from", "plays_games", "as", "t1", "join", "video_games", "as", "t2", "on", "t1", ".", "gameid", "=", "t2", ".", "gameid", "where", "t2", ".", "gname", "=", "value", ")" ], "question": "what is the last name and gender of all students who played both Call of Destiny and Works of Widenius?", "question_toks": [ "what", "is", "last", "name", "and", "gender", "of", "all", "student", "who", "played", "both", "call", "of", "destiny", "and", "work", "of", "widenius", "?" ], "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, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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 ], "\"Works of Widenius\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Call of Destiny\"", null ] ] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "student id", "game id", "hours played", "student id", "sport name", "hours per week", "games played", "on scholarship" ], "table_names": [ "student", "video games", "plays games", "sports info" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "game id", "game name", "game type", "hours played", "sport name", "hours per week", "games played", "on scholarship" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "12": 1, "1": 1, "13": 9, "9": 9, "15": 1 }, "origin_question_toks": [ "what", "is", "the", "last", "name", "and", "gender", "of", "all", "students", "who", "played", "both", "Call", "of", "Destiny", "and", "Works", "of", "Widenius", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last", "name" ], [ "and" ], [ "gender" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "played" ], [ "both" ], [ "call" ], [ "of" ], [ "destiny" ], [ "and" ], [ "work" ], [ "of" ], [ "widenius" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "gender", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "played", "VBD" ], [ "both", "DT" ], [ "call", "NN" ], [ "of", "IN" ], [ "destiny", "NN" ], [ "and", "CC" ], [ "work", "NN" ], [ "of", "IN" ], [ "widenius", "NN" ], [ "?", "." ] ], "values": [ "Call of Destiny" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(5) T(0) Filter(18) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT customer_name FROM customers", "query_toks": [ "SELECT", "customer_name", "FROM", "customers" ], "query_toks_no_value": [ "select", "customer_name", "from", "customers" ], "question": "Find the name of all customers.", "question_toks": [ "find", "name", "of", "all", "customer", "." ], "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": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "name", "of", "all", "customers", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(12) T(2)" }, { "db_id": "customers_and_addresses", "query": "SELECT customer_name FROM customers", "query_toks": [ "SELECT", "customer_name", "FROM", "customers" ], "query_toks_no_value": [ "select", "customer_name", "from", "customers" ], "question": "What are the names of all the customers?", "question_toks": [ "what", "are", "name", "of", "all", "customer", "?" ], "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": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "customers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(12) T(2)" }, { "db_id": "customers_and_addresses", "query": "SELECT count(*) FROM customers", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customers" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers" ], "question": "How many customers are there?", "question_toks": [ "how", "many", "customer", "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": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "How", "many", "customers", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "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_and_addresses", "query": "SELECT count(*) FROM customers", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customers" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers" ], "question": "Return the total number of distinct customers.", "question_toks": [ "return", "total", "number", "of", "distinct", "customer", "." ], "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": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Return", "the", "total", "number", "of", "distinct", "customers", "." ], "question_arg": [ [ "return" ], [ "total" ], [ "number" ], [ "of" ], [ "distinct" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "customers_and_addresses", "query": "SELECT avg(order_quantity) FROM order_items", "query_toks": [ "SELECT", "avg", "(", "order_quantity", ")", "FROM", "order_items" ], "query_toks_no_value": [ "select", "avg", "(", "order_quantity", ")", "from", "order_items" ], "question": "What is the average amount of items ordered in each order?", "question_toks": [ "what", "is", "average", "amount", "of", "item", "ordered", "in", "each", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "average", "amount", "of", "items", "ordered", "in", "each", "order", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "amount" ], [ "of" ], [ "item" ], [ "ordered" ], [ "in" ], [ "each" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "item", "NN" ], [ "ordered", "VBN" ], [ "in", "IN" ], [ "each", "DT" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(26) T(6)" }, { "db_id": "customers_and_addresses", "query": "SELECT avg(order_quantity) FROM order_items", "query_toks": [ "SELECT", "avg", "(", "order_quantity", ")", "FROM", "order_items" ], "query_toks_no_value": [ "select", "avg", "(", "order_quantity", ")", "from", "order_items" ], "question": "Find the average order quantity per order.", "question_toks": [ "find", "average", "order", "quantity", "per", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "average", "order", "quantity", "per", "order", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "order", "quantity" ], [ "per" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "order", "NN" ], [ "quantity", "NN" ], [ "per", "IN" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(26) T(6)" }, { "db_id": "customers_and_addresses", "query": "SELECT customer_name FROM customers WHERE payment_method = \"Cash\"", "query_toks": [ "SELECT", "customer_name", "FROM", "customers", "WHERE", "payment_method", "=", "``", "Cash", "''" ], "query_toks_no_value": [ "select", "customer_name", "from", "customers", "where", "payment_method", "=", "value" ], "question": "What are the names of customers who use payment method \"Cash\"?", "question_toks": [ "what", "are", "name", "of", "customer", "who", "use", "payment", "method", "'", "cash", "'", "?" ], "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, 11, false ], null ], "\"Cash\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "customers", "who", "use", "payment", "method", "``", "Cash", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "use" ], [ "payment", "method" ], [ "'" ], [ "cash" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "use", "VBP" ], [ "payment", "NN" ], [ "method", "NN" ], [ "'", "''" ], [ "cash", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Cash" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT customer_name FROM customers WHERE payment_method = \"Cash\"", "query_toks": [ "SELECT", "customer_name", "FROM", "customers", "WHERE", "payment_method", "=", "``", "Cash", "''" ], "query_toks_no_value": [ "select", "customer_name", "from", "customers", "where", "payment_method", "=", "value" ], "question": "Which customers use \"Cash\" for payment method? Return the customer names.", "question_toks": [ "which", "customer", "use", "'", "cash", "'", "for", "payment", "method", "?", "return", "customer", "name", "." ], "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, 11, false ], null ], "\"Cash\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Which", "customers", "use", "``", "Cash", "''", "for", "payment", "method", "?", "Return", "the", "customer", "names", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "use" ], [ "'" ], [ "cash" ], [ "'" ], [ "for" ], [ "payment", "method" ], [ "?" ], [ "return" ], [ "customer", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "use", "NN" ], [ "'", "''" ], [ "cash", "NN" ], [ "'", "''" ], [ "for", "IN" ], [ "payment", "NN" ], [ "method", "NN" ], [ "?", "." ], [ "return", "VB" ], [ "customer", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Cash" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT date_became_customer FROM customers WHERE customer_id BETWEEN 10 AND 20", "query_toks": [ "SELECT", "date_became_customer", "FROM", "customers", "WHERE", "customer_id", "BETWEEN", "10", "AND", "20" ], "query_toks_no_value": [ "select", "date_became_customer", "from", "customers", "where", "customer_id", "between", "value", "and", "value" ], "question": "Find the \"date became customers\" of the customers whose ID is between 10 and 20.", "question_toks": [ "find", "'", "date", "became", "customer", "'", "of", "customer", "whose", "id", "is", "between", "10", "and", "20", "." ], "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, 1, [ 0, [ 0, 10, false ], null ], 10.0, 20.0 ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "``", "date", "became", "customers", "''", "of", "the", "customers", "whose", "ID", "is", "between", "10", "and", "20", "." ], "question_arg": [ [ "find" ], [ "'" ], [ "date", "became", "customer" ], [ "'" ], [ "of" ], [ "customer" ], [ "whose" ], [ "id" ], [ "is" ], [ "between" ], [ "10" ], [ "and" ], [ "20" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "'", "''" ], [ "date", "NN" ], [ "became", "VBD" ], [ "customer", "NN" ], [ "'", "''" ], [ "of", "IN" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "id", "NN" ], [ "is", "VBZ" ], [ "between", "IN" ], [ "10", "CD" ], [ "and", "CC" ], [ "20", "CD" ], [ ".", "." ] ], "values": [ "10", "date became customers", "20" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(8) A(0) C(10) T(2) V(0) V(2)" }, { "db_id": "customers_and_addresses", "query": "SELECT date_became_customer FROM customers WHERE customer_id BETWEEN 10 AND 20", "query_toks": [ "SELECT", "date_became_customer", "FROM", "customers", "WHERE", "customer_id", "BETWEEN", "10", "AND", "20" ], "query_toks_no_value": [ "select", "date_became_customer", "from", "customers", "where", "customer_id", "between", "value", "and", "value" ], "question": "What are the dates when customers with ids between 10 and 20 became customers?", "question_toks": [ "what", "are", "date", "when", "customer", "with", "id", "between", "10", "and", "20", "became", "customer", "?" ], "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, 1, [ 0, [ 0, 10, false ], null ], 10.0, 20.0 ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "dates", "when", "customers", "with", "ids", "between", "10", "and", "20", "became", "customers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date" ], [ "when" ], [ "customer" ], [ "with" ], [ "id" ], [ "between" ], [ "10" ], [ "and" ], [ "20" ], [ "date", "became", "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "when", "WRB" ], [ "customer", "NN" ], [ "with", "IN" ], [ "id", "NN" ], [ "between", "IN" ], [ "10", "CD" ], [ "and", "CC" ], [ "20", "CD" ], [ "became", "VBD" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [ "20", "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(8) A(0) C(10) T(2) V(1) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "payment_method", "FROM", "customers", "GROUP", "BY", "payment_method", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "payment_method", "from", "customers", "group", "by", "payment_method", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which payment method is used by most customers?", "question_toks": [ "which", "payment", "method", "is", "used", "by", "most", "customer", "?" ], "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": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Which", "payment", "method", "is", "used", "by", "most", "customers", "?" ], "question_arg": [ [ "which" ], [ "payment", "method" ], [ "is" ], [ "used" ], [ "by" ], [ "most" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "payment", "NN" ], [ "method", "NN" ], [ "is", "VBZ" ], [ "used", "VBN" ], [ "by", "IN" ], [ "most", "JJS" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(11) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "customers_and_addresses", "query": "SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "payment_method", "FROM", "customers", "GROUP", "BY", "payment_method", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "payment_method", "from", "customers", "group", "by", "payment_method", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the payment method that is used most frequently.", "question_toks": [ "find", "payment", "method", "that", "is", "used", "most", "frequently", "." ], "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": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "payment", "method", "that", "is", "used", "most", "frequently", "." ], "question_arg": [ [ "find" ], [ "payment", "method" ], [ "that" ], [ "is" ], [ "used" ], [ "most" ], [ "frequently" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "payment", "NN" ], [ "method", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "used", "VBN" ], [ "most", "RBS" ], [ "frequently", "RB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(11) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "customers_and_addresses", "query": "SELECT customer_name FROM customers WHERE payment_method = (SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "customer_name", "FROM", "customers", "WHERE", "payment_method", "=", "(", "SELECT", "payment_method", "FROM", "customers", "GROUP", "BY", "payment_method", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "customer_name", "from", "customers", "where", "payment_method", "=", "(", "select", "payment_method", "from", "customers", "group", "by", "payment_method", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "What are the names of customers using the most popular payment method?", "question_toks": [ "what", "are", "name", "of", "customer", "using", "most", "popular", "payment", "method", "?" ], "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, 11, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "customers", "using", "the", "most", "popular", "payment", "method", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "customer" ], [ "using" ], [ "most" ], [ "popular" ], [ "payment", "method" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "using", "VBG" ], [ "most", "RBS" ], [ "popular", "JJ" ], [ "payment", "NN" ], [ "method", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(11) A(0) C(11) T(2) Root(2) Sel(0) N(0) A(0) C(11) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "customers_and_addresses", "query": "SELECT customer_name FROM customers WHERE payment_method = (SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "customer_name", "FROM", "customers", "WHERE", "payment_method", "=", "(", "SELECT", "payment_method", "FROM", "customers", "GROUP", "BY", "payment_method", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "customer_name", "from", "customers", "where", "payment_method", "=", "(", "select", "payment_method", "from", "customers", "group", "by", "payment_method", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "Find the name of the customers who use the most frequently used payment method.", "question_toks": [ "find", "name", "of", "customer", "who", "use", "most", "frequently", "used", "payment", "method", "." ], "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, 11, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "customers", "who", "use", "the", "most", "frequently", "used", "payment", "method", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "use" ], [ "most" ], [ "frequently" ], [ "used" ], [ "payment", "method" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "use", "VBP" ], [ "most", "RBS" ], [ "frequently", "RB" ], [ "used", "JJ" ], [ "payment", "NN" ], [ "method", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(11) A(0) C(11) T(2) Root(2) Sel(0) N(0) A(0) C(11) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "customers_and_addresses", "query": "SELECT DISTINCT payment_method FROM customers", "query_toks": [ "SELECT", "DISTINCT", "payment_method", "FROM", "customers" ], "query_toks_no_value": [ "select", "distinct", "payment_method", "from", "customers" ], "question": "What are all the payment methods?", "question_toks": [ "what", "are", "all", "payment", "method", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "all", "the", "payment", "methods", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "payment", "method" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "payment", "NN" ], [ "method", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(11) T(2)" }, { "db_id": "customers_and_addresses", "query": "SELECT DISTINCT payment_method FROM customers", "query_toks": [ "SELECT", "DISTINCT", "payment_method", "FROM", "customers" ], "query_toks_no_value": [ "select", "distinct", "payment_method", "from", "customers" ], "question": "Return all the distinct payment methods used by customers.", "question_toks": [ "return", "all", "distinct", "payment", "method", "used", "by", "customer", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Return", "all", "the", "distinct", "payment", "methods", "used", "by", "customers", "." ], "question_arg": [ [ "return" ], [ "all" ], [ "distinct" ], [ "payment", "method" ], [ "used" ], [ "by" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "payment", "NN" ], [ "method", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(11) T(2)" }, { "db_id": "customers_and_addresses", "query": "SELECT DISTINCT product_details FROM products", "query_toks": [ "SELECT", "DISTINCT", "product_details", "FROM", "products" ], "query_toks_no_value": [ "select", "distinct", "product_details", "from", "products" ], "question": "What are the details of all products?", "question_toks": [ "what", "are", "detail", "of", "all", "product", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "details", "of", "all", "products", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "of" ], [ "all" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(9) T(1)" }, { "db_id": "customers_and_addresses", "query": "SELECT DISTINCT product_details FROM products", "query_toks": [ "SELECT", "DISTINCT", "product_details", "FROM", "products" ], "query_toks_no_value": [ "select", "distinct", "product_details", "from", "products" ], "question": "Return the the details of all products.", "question_toks": [ "return", "detail", "of", "all", "product", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Return", "the", "the", "details", "of", "all", "products", "." ], "question_arg": [ [ "return" ], [ "detail" ], [ "of" ], [ "all" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "detail", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(9) T(1)" }, { "db_id": "customers_and_addresses", "query": "SELECT customer_name FROM customers WHERE customer_name LIKE \"%Alex%\"", "query_toks": [ "SELECT", "customer_name", "FROM", "customers", "WHERE", "customer_name", "LIKE", "``", "%", "Alex", "%", "''" ], "query_toks_no_value": [ "select", "customer_name", "from", "customers", "where", "customer_name", "like", "value" ], "question": "Find the name of all customers whose name contains \"Alex\".", "question_toks": [ "find", "name", "of", "all", "customer", "whose", "name", "contains", "'", "alex", "'", "." ], "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, 9, [ 0, [ 0, 12, false ], null ], "\"%Alex%\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "name", "of", "all", "customers", "whose", "name", "contains", "``", "Alex", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "customer" ], [ "whose" ], [ "name" ], [ "contains" ], [ "'" ], [ "alex" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "'", "POS" ], [ "alex", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Alex" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(9) A(0) C(12) T(2) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT customer_name FROM customers WHERE customer_name LIKE \"%Alex%\"", "query_toks": [ "SELECT", "customer_name", "FROM", "customers", "WHERE", "customer_name", "LIKE", "``", "%", "Alex", "%", "''" ], "query_toks_no_value": [ "select", "customer_name", "from", "customers", "where", "customer_name", "like", "value" ], "question": "Which customer's name contains \"Alex\"? Find the full name.", "question_toks": [ "which", "customer", "'s", "name", "contains", "'", "alex", "'", "?", "find", "full", "name", "." ], "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, 9, [ 0, [ 0, 12, false ], null ], "\"%Alex%\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Which", "customer", "'s", "name", "contains", "``", "Alex", "''", "?", "Find", "the", "full", "name", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "'s" ], [ "name" ], [ "contains" ], [ "'" ], [ "alex" ], [ "'" ], [ "?" ], [ "find" ], [ "full" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "'s", "POS" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "'", "POS" ], [ "alex", "NN" ], [ "'", "''" ], [ "?", "." ], [ "find", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Alex" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(9) A(0) C(12) T(2) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT product_details FROM products WHERE product_details LIKE \"%Latte%\" OR product_details LIKE \"%Americano%\"", "query_toks": [ "SELECT", "product_details", "FROM", "products", "WHERE", "product_details", "LIKE", "``", "%", "Latte", "%", "''", "OR", "product_details", "LIKE", "``", "%", "Americano", "%", "''" ], "query_toks_no_value": [ "select", "product_details", "from", "products", "where", "product_details", "like", "value", "or", "product_details", "like", "value" ], "question": "Find the detail of products whose detail contains the word \"Latte\" or the word \"Americano\"", "question_toks": [ "find", "detail", "of", "product", "whose", "detail", "contains", "word", "'", "latte", "'", "or", "word", "'", "americano", "'" ], "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, 9, [ 0, [ 0, 9, false ], null ], "\"%Latte%\"", null ], "or", [ false, 9, [ 0, [ 0, 9, false ], null ], "\"%Americano%\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "detail", "of", "products", "whose", "detail", "contains", "the", "word", "``", "Latte", "''", "or", "the", "word", "``", "Americano", "''" ], "question_arg": [ [ "find" ], [ "detail" ], [ "of" ], [ "product" ], [ "whose" ], [ "detail" ], [ "contains" ], [ "word" ], [ "'" ], [ "latte" ], [ "'" ], [ "or" ], [ "word" ], [ "'" ], [ "americano" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "detail", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "whose", "WP$" ], [ "detail", "NN" ], [ "contains", "VBZ" ], [ "word", "NN" ], [ "'", "''" ], [ "latte", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "word", "NN" ], [ "'", "''" ], [ "americano", "NN" ], [ "'", "''" ] ], "values": [ "Latte", "Americano" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(1) Filter(9) A(0) C(9) T(1) V(0) Filter(9) A(0) C(9) T(1) V(1)" }, { "db_id": "customers_and_addresses", "query": "SELECT product_details FROM products WHERE product_details LIKE \"%Latte%\" OR product_details LIKE \"%Americano%\"", "query_toks": [ "SELECT", "product_details", "FROM", "products", "WHERE", "product_details", "LIKE", "``", "%", "Latte", "%", "''", "OR", "product_details", "LIKE", "``", "%", "Americano", "%", "''" ], "query_toks_no_value": [ "select", "product_details", "from", "products", "where", "product_details", "like", "value", "or", "product_details", "like", "value" ], "question": "Which product's detail contains the word \"Latte\" or \"Americano\"? Return the full detail.", "question_toks": [ "which", "product", "'s", "detail", "contains", "word", "'", "latte", "'", "or", "'", "americano", "'", "?", "return", "full", "detail", "." ], "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, 9, [ 0, [ 0, 9, false ], null ], "\"%Latte%\"", null ], "or", [ false, 9, [ 0, [ 0, 9, false ], null ], "\"%Americano%\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Which", "product", "'s", "detail", "contains", "the", "word", "``", "Latte", "''", "or", "``", "Americano", "''", "?", "Return", "the", "full", "detail", "." ], "question_arg": [ [ "which" ], [ "product" ], [ "'s" ], [ "detail" ], [ "contains" ], [ "word" ], [ "'" ], [ "latte" ], [ "'" ], [ "or" ], [ "'" ], [ "americano" ], [ "'" ], [ "?" ], [ "return" ], [ "full" ], [ "detail" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "product", "NN" ], [ "'s", "POS" ], [ "detail", "NN" ], [ "contains", "VBZ" ], [ "word", "NN" ], [ "'", "''" ], [ "latte", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "americano", "NN" ], [ "'", "''" ], [ "?", "." ], [ "return", "VBP" ], [ "full", "JJ" ], [ "detail", "NN" ], [ ".", "." ] ], "values": [ "Latte", "Americano" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(1) Filter(9) A(0) C(9) T(1) V(0) Filter(9) A(0) C(9) T(1) V(1)" }, { "db_id": "customers_and_addresses", "query": "SELECT t3.address_content FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t1.customer_name = \"Maudie Kertzmann\"", "query_toks": [ "SELECT", "t3.address_content", "FROM", "customers", "AS", "t1", "JOIN", "customer_addresses", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "addresses", "AS", "t3", "ON", "t2.address_id", "=", "t3.address_id", "WHERE", "t1.customer_name", "=", "``", "Maudie", "Kertzmann", "''" ], "query_toks_no_value": [ "select", "t3", ".", "address_content", "from", "customers", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", "where", "t1", ".", "customer_name", "=", "value" ], "question": "What is the address content of the customer named \"Maudie Kertzmann\"?", "question_toks": [ "what", "is", "address", "content", "of", "customer", "named", "'", "maudie", "kertzmann", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, 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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, 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, 12, false ], null ], "\"Maudie Kertzmann\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "address", "content", "of", "the", "customer", "named", "``", "Maudie", "Kertzmann", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "address", "content" ], [ "of" ], [ "customer" ], [ "named" ], [ "'" ], [ "maudie" ], [ "kertzmann" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "address", "JJ" ], [ "content", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "maudie", "NN" ], [ "kertzmann", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Maudie Kertzmann" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) 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(12) T(2) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT t3.address_content FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t1.customer_name = \"Maudie Kertzmann\"", "query_toks": [ "SELECT", "t3.address_content", "FROM", "customers", "AS", "t1", "JOIN", "customer_addresses", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "addresses", "AS", "t3", "ON", "t2.address_id", "=", "t3.address_id", "WHERE", "t1.customer_name", "=", "``", "Maudie", "Kertzmann", "''" ], "query_toks_no_value": [ "select", "t3", ".", "address_content", "from", "customers", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", "where", "t1", ".", "customer_name", "=", "value" ], "question": "Return the address content for the customer whose name is \"Maudie Kertzmann\".", "question_toks": [ "return", "address", "content", "for", "customer", "whose", "name", "is", "'", "maudie", "kertzmann", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, 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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, 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, 12, false ], null ], "\"Maudie Kertzmann\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Return", "the", "address", "content", "for", "the", "customer", "whose", "name", "is", "``", "Maudie", "Kertzmann", "''", "." ], "question_arg": [ [ "return" ], [ "address", "content" ], [ "for" ], [ "customer" ], [ "whose" ], [ "name" ], [ "is" ], [ "'" ], [ "maudie" ], [ "kertzmann" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "address", "NN" ], [ "content", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "maudie", "JJ" ], [ "kertzmann", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Maudie Kertzmann" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) 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(12) T(2) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT count(*) FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.city = \"Lake Geovannyton\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customers", "AS", "t1", "JOIN", "customer_addresses", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "addresses", "AS", "t3", "ON", "t2.address_id", "=", "t3.address_id", "WHERE", "t3.city", "=", "``", "Lake", "Geovannyton", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", "where", "t3", ".", "city", "=", "value" ], "question": "How many customers are living in city \"Lake Geovannyton\"?", "question_toks": [ "how", "many", "customer", "are", "living", "in", "city", "'", "lake", "geovannyton", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, 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, 3, false ], null ], "\"Lake Geovannyton\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "How", "many", "customers", "are", "living", "in", "city", "``", "Lake", "Geovannyton", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "are" ], [ "living" ], [ "in" ], [ "city" ], [ "'" ], [ "lake" ], [ "geovannyton" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "are", "VBP" ], [ "living", "VBG" ], [ "in", "IN" ], [ "city", "NN" ], [ "'", "''" ], [ "lake", "JJ" ], [ "geovannyton", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Lake Geovannyton" ], "rule_label": "Root1(3) Root(3) Sel(0) N(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(2) A(0) C(3) T(0) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT count(*) FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.city = \"Lake Geovannyton\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customers", "AS", "t1", "JOIN", "customer_addresses", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "addresses", "AS", "t3", "ON", "t2.address_id", "=", "t3.address_id", "WHERE", "t3.city", "=", "``", "Lake", "Geovannyton", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", "where", "t3", ".", "city", "=", "value" ], "question": "Find the number of customers who live in the city called Lake Geovannyton.", "question_toks": [ "find", "number", "of", "customer", "who", "live", "in", "city", "called", "lake", "geovannyton", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, 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, 3, false ], null ], "\"Lake Geovannyton\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "number", "of", "customers", "who", "live", "in", "the", "city", "called", "Lake", "Geovannyton", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "customer" ], [ "who" ], [ "live" ], [ "in" ], [ "city" ], [ "called" ], [ "lake" ], [ "geovannyton" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "live", "VBP" ], [ "in", "IN" ], [ "city", "NN" ], [ "called", "VBN" ], [ "lake", "VBP" ], [ "geovannyton", "NN" ], [ ".", "." ] ], "values": [ "Lake Geovannyton" ], "rule_label": "Root1(3) Root(3) Sel(0) N(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(2) A(0) C(3) T(0) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = \"Colorado\"", "query_toks": [ "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_addresses", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "addresses", "AS", "t3", "ON", "t2.address_id", "=", "t3.address_id", "WHERE", "t3.state_province_county", "=", "``", "Colorado", "''" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", "where", "t3", ".", "state_province_county", "=", "value" ], "question": "Find the name of customers who are living in Colorado?", "question_toks": [ "find", "name", "of", "customer", "who", "are", "living", "in", "colorado", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, 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, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, 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, 5, false ], null ], "\"Colorado\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "name", "of", "customers", "who", "are", "living", "in", "Colorado", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "are" ], [ "living" ], [ "in" ], [ "colorado" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "living", "VBG" ], [ "in", "IN" ], [ "colorado", "NN" ], [ "?", "." ] ], "values": [ "Colorado" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) 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(5) T(0) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = \"Colorado\"", "query_toks": [ "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_addresses", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "addresses", "AS", "t3", "ON", "t2.address_id", "=", "t3.address_id", "WHERE", "t3.state_province_county", "=", "``", "Colorado", "''" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", "where", "t3", ".", "state_province_county", "=", "value" ], "question": "What are the names of customers who live in Colorado state?", "question_toks": [ "what", "are", "name", "of", "customer", "who", "live", "in", "colorado", "state", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, 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, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, 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, 5, false ], null ], "\"Colorado\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "customers", "who", "live", "in", "Colorado", "state", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "live" ], [ "in" ], [ "colorado" ], [ "state" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "live", "VBP" ], [ "in", "IN" ], [ "colorado", "NN" ], [ "state", "NN" ], [ "?", "." ] ], "values": [ "Colorado" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) 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(5) T(0) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT city FROM addresses WHERE city NOT IN ( SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id)", "query_toks": [ "SELECT", "city", "FROM", "addresses", "WHERE", "city", "NOT", "IN", "(", "SELECT", "DISTINCT", "t3.city", "FROM", "customers", "AS", "t1", "JOIN", "customer_addresses", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "addresses", "AS", "t3", "ON", "t2.address_id", "=", "t3.address_id", ")" ], "query_toks_no_value": [ "select", "city", "from", "addresses", "where", "city", "not", "in", "(", "select", "distinct", "t3", ".", "city", "from", "customers", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", ")" ], "question": "Find the list of cities that no customer is living in.", "question_toks": [ "find", "list", "of", "city", "that", "no", "customer", "is", "living", "in", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 3, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, 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, 8, [ 0, [ 0, 15, 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 ] ] }, null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "list", "of", "cities", "that", "no", "customer", "is", "living", "in", "." ], "question_arg": [ [ "find" ], [ "list" ], [ "of" ], [ "city" ], [ "that" ], [ "no" ], [ "customer" ], [ "is" ], [ "living" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "list", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "that", "IN" ], [ "no", "DT" ], [ "customer", "NN" ], [ "is", "VBZ" ], [ "living", "VBG" ], [ "in", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(19) A(0) C(3) T(0) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3) Filter(18) A(0) C(10) T(3) Root(5) Sel(0) N(0) A(0) C(10) T(2)" }, { "db_id": "customers_and_addresses", "query": "SELECT city FROM addresses WHERE city NOT IN ( SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id)", "query_toks": [ "SELECT", "city", "FROM", "addresses", "WHERE", "city", "NOT", "IN", "(", "SELECT", "DISTINCT", "t3.city", "FROM", "customers", "AS", "t1", "JOIN", "customer_addresses", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "addresses", "AS", "t3", "ON", "t2.address_id", "=", "t3.address_id", ")" ], "query_toks_no_value": [ "select", "city", "from", "addresses", "where", "city", "not", "in", "(", "select", "distinct", "t3", ".", "city", "from", "customers", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", ")" ], "question": "What are the cities no customers live in?", "question_toks": [ "what", "are", "city", "no", "customer", "live", "in", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 3, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, 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, 8, [ 0, [ 0, 15, 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 ] ] }, null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "cities", "no", "customers", "live", "in", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "city" ], [ "no" ], [ "customer" ], [ "live" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "city", "NN" ], [ "no", "DT" ], [ "customer", "NN" ], [ "live", "VBP" ], [ "in", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(19) A(0) C(3) T(0) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3) Filter(18) A(0) C(10) T(3) Root(5) Sel(0) N(0) A(0) C(10) T(2)" }, { "db_id": "customers_and_addresses", "query": "SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t3.city", "FROM", "customers", "AS", "t1", "JOIN", "customer_addresses", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "addresses", "AS", "t3", "ON", "t2.address_id", "=", "t3.address_id", "GROUP", "BY", "t3.city", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t3", ".", "city", "from", "customers", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", "group", "by", "t3", ".", "city", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which city has the most customers living in?", "question_toks": [ "which", "city", "ha", "most", "customer", "living", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "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": [ [ false, 8, [ 0, [ 0, 10, 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, 8, [ 0, [ 0, 15, 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": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Which", "city", "has", "the", "most", "customers", "living", "in", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "ha" ], [ "most" ], [ "customer" ], [ "living" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "customer", "NN" ], [ "living", "NN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(3) T(0) Sup(0) A(3) C(0) T(0) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3) Filter(18) A(0) C(10) T(3) Root(5) Sel(0) N(0) A(0) C(10) T(2)" }, { "db_id": "customers_and_addresses", "query": "SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t3.city", "FROM", "customers", "AS", "t1", "JOIN", "customer_addresses", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "addresses", "AS", "t3", "ON", "t2.address_id", "=", "t3.address_id", "GROUP", "BY", "t3.city", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t3", ".", "city", "from", "customers", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", "group", "by", "t3", ".", "city", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the city where the most customers live.", "question_toks": [ "find", "city", "where", "most", "customer", "live", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "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": [ [ false, 8, [ 0, [ 0, 10, 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, 8, [ 0, [ 0, 15, 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": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "city", "where", "the", "most", "customers", "live", "." ], "question_arg": [ [ "find" ], [ "city" ], [ "where" ], [ "most" ], [ "customer" ], [ "live" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "city", "NN" ], [ "where", "WRB" ], [ "most", "RBS" ], [ "customer", "NN" ], [ "live", "VBP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(3) T(0) Sup(0) A(3) C(0) T(0) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3) Filter(18) A(0) C(10) T(3) Root(5) Sel(0) N(0) A(0) C(10) T(2)" }, { "db_id": "customers_and_addresses", "query": "SELECT DISTINCT city FROM addresses", "query_toks": [ "SELECT", "DISTINCT", "city", "FROM", "addresses" ], "query_toks_no_value": [ "select", "distinct", "city", "from", "addresses" ], "question": "Retrieve the list of all cities.", "question_toks": [ "retrieve", "list", "of", "all", "city", "." ], "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": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Retrieve", "the", "list", "of", "all", "cities", "." ], "question_arg": [ [ "retrieve" ], [ "list" ], [ "of" ], [ "all" ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "retrieve", "JJ" ], [ "list", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "city", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(3) T(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT DISTINCT city FROM addresses", "query_toks": [ "SELECT", "DISTINCT", "city", "FROM", "addresses" ], "query_toks_no_value": [ "select", "distinct", "city", "from", "addresses" ], "question": "List all the distinct cities", "question_toks": [ "list", "all", "distinct", "city" ], "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": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "List", "all", "the", "distinct", "cities" ], "question_arg": [ [ "list" ], [ "all" ], [ "distinct" ], [ "city" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "city", "NN" ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(3) T(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT city FROM addresses WHERE zip_postcode = 255", "query_toks": [ "SELECT", "city", "FROM", "addresses", "WHERE", "zip_postcode", "=", "255" ], "query_toks_no_value": [ "select", "city", "from", "addresses", "where", "zip_postcode", "=", "value" ], "question": "Find the city with post code 255.", "question_toks": [ "find", "city", "with", "post", "code", "255", "." ], "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, 4, false ], null ], 255.0, null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "city", "with", "post", "code", "255", "." ], "question_arg": [ [ "find" ], [ "city" ], [ "with" ], [ "post" ], [ "code" ], [ "255" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "city", "NN" ], [ "with", "IN" ], [ "post", "NN" ], [ "code", "NN" ], [ "255", "CD" ], [ ".", "." ] ], "values": [ "255" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT city FROM addresses WHERE zip_postcode = 255", "query_toks": [ "SELECT", "city", "FROM", "addresses", "WHERE", "zip_postcode", "=", "255" ], "query_toks_no_value": [ "select", "city", "from", "addresses", "where", "zip_postcode", "=", "value" ], "question": "Which city is post code 255 located in?", "question_toks": [ "which", "city", "is", "post", "code", "255", "located", "in", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], 255.0, null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Which", "city", "is", "post", "code", "255", "located", "in", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "is" ], [ "post" ], [ "code" ], [ "255" ], [ "located" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "is", "VBZ" ], [ "post", "JJ" ], [ "code", "NN" ], [ "255", "CD" ], [ "located", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "255" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT state_province_county , country FROM addresses WHERE zip_postcode LIKE \"4%\"", "query_toks": [ "SELECT", "state_province_county", ",", "country", "FROM", "addresses", "WHERE", "zip_postcode", "LIKE", "``", "4", "%", "''" ], "query_toks_no_value": [ "select", "state_province_county", ",", "country", "from", "addresses", "where", "zip_postcode", "like", "value" ], "question": "Find the state and country of all cities with post code starting with 4.", "question_toks": [ "find", "state", "and", "country", "of", "all", "city", "with", "post", "code", "starting", "with", "4", "." ], "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, 9, [ 0, [ 0, 4, false ], null ], "\"4%\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "state", "and", "country", "of", "all", "cities", "with", "post", "code", "starting", "with", "4", "." ], "question_arg": [ [ "find" ], [ "state" ], [ "and" ], [ "country" ], [ "of" ], [ "all" ], [ "city" ], [ "with" ], [ "post" ], [ "code" ], [ "starting" ], [ "with" ], [ "4" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "state", "NN" ], [ "and", "CC" ], [ "country", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "city", "NN" ], [ "with", "IN" ], [ "post", "NN" ], [ "code", "NN" ], [ "starting", "VBG" ], [ "with", "IN" ], [ "4", "CD" ], [ ".", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(0) A(0) C(6) T(0) Filter(9) A(0) C(4) T(0) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT state_province_county , country FROM addresses WHERE zip_postcode LIKE \"4%\"", "query_toks": [ "SELECT", "state_province_county", ",", "country", "FROM", "addresses", "WHERE", "zip_postcode", "LIKE", "``", "4", "%", "''" ], "query_toks_no_value": [ "select", "state_province_county", ",", "country", "from", "addresses", "where", "zip_postcode", "like", "value" ], "question": "What are the state and country of all the cities that have post codes starting with 4.\\", "question_toks": [ "what", "are", "state", "and", "country", "of", "all", "city", "that", "have", "post", "code", "starting", "with", "4.\\" ], "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, 9, [ 0, [ 0, 4, false ], null ], "\"4%\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "state", "and", "country", "of", "all", "the", "cities", "that", "have", "post", "codes", "starting", "with", "4.\\" ], "question_arg": [ [ "what" ], [ "are" ], [ "state" ], [ "and" ], [ "country" ], [ "of" ], [ "all" ], [ "city" ], [ "that" ], [ "have" ], [ "post" ], [ "code" ], [ "starting" ], [ "with" ], [ "4.\\" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "state", "NN" ], [ "and", "CC" ], [ "country", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "city", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "post", "VBN" ], [ "code", "NN" ], [ "starting", "VBG" ], [ "with", "IN" ], [ "4.\\", "CD" ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(0) A(0) C(6) T(0) Filter(9) A(0) C(4) T(0) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT country FROM addresses GROUP BY country HAVING count(address_id) > 4", "query_toks": [ "SELECT", "country", "FROM", "addresses", "GROUP", "BY", "country", "HAVING", "count", "(", "address_id", ")", ">", "4" ], "query_toks_no_value": [ "select", "country", "from", "addresses", "group", "by", "country", "having", "count", "(", "address_id", ")", ">", "value" ], "question": "List the countries having more than 4 addresses listed.", "question_toks": [ "list", "country", "having", "more", "than", "4", "address", "listed", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 1, false ], null ], 4.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "List", "the", "countries", "having", "more", "than", "4", "addresses", "listed", "." ], "question_arg": [ [ "list" ], [ "country" ], [ "having" ], [ "more" ], [ "than" ], [ "4" ], [ "address" ], [ "listed" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "country", "NN" ], [ "having", "VBG" ], [ "more", "JJR" ], [ "than", "IN" ], [ "4", "CD" ], [ "address", "NN" ], [ "listed", "VBN" ], [ ".", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(5) A(3) C(1) T(0) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT country FROM addresses GROUP BY country HAVING count(address_id) > 4", "query_toks": [ "SELECT", "country", "FROM", "addresses", "GROUP", "BY", "country", "HAVING", "count", "(", "address_id", ")", ">", "4" ], "query_toks_no_value": [ "select", "country", "from", "addresses", "group", "by", "country", "having", "count", "(", "address_id", ")", ">", "value" ], "question": "For which countries are there more than four distinct addresses listed?", "question_toks": [ "for", "which", "country", "are", "there", "more", "than", "four", "distinct", "address", "listed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 1, false ], null ], 4.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "For", "which", "countries", "are", "there", "more", "than", "four", "distinct", "addresses", "listed", "?" ], "question_arg": [ [ "for" ], [ "which" ], [ "country" ], [ "are" ], [ "there" ], [ "more" ], [ "than" ], [ "four" ], [ "distinct" ], [ "address" ], [ "listed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "which", "WDT" ], [ "country", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "more", "JJR" ], [ "than", "IN" ], [ "four", "CD" ], [ "distinct", "JJ" ], [ "address", "NN" ], [ "listed", "VBN" ], [ "?", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(5) A(3) C(1) T(0) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT channel_code FROM customer_contact_channels GROUP BY channel_code HAVING count(customer_id) < 5", "query_toks": [ "SELECT", "channel_code", "FROM", "customer_contact_channels", "GROUP", "BY", "channel_code", "HAVING", "count", "(", "customer_id", ")", "<", "5" ], "query_toks_no_value": [ "select", "channel_code", "from", "customer_contact_channels", "group", "by", "channel_code", "having", "count", "(", "customer_id", ")", "<", "value" ], "question": "List all the contact channel codes that were used less than 5 times.", "question_toks": [ "list", "all", "contact", "channel", "code", "that", "were", "used", "le", "than", "5", "time", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [ [ false, 4, [ 0, [ 3, 20, false ], null ], 5.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "List", "all", "the", "contact", "channel", "codes", "that", "were", "used", "less", "than", "5", "times", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "contact" ], [ "channel", "code" ], [ "that" ], [ "were" ], [ "used" ], [ "le" ], [ "than" ], [ "5" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "contact", "JJ" ], [ "channel", "NN" ], [ "code", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "used", "VBN" ], [ "le", "NN" ], [ "than", "IN" ], [ "5", "CD" ], [ "time", "NN" ], [ ".", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(4) Filter(4) A(3) C(10) T(4) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT channel_code FROM customer_contact_channels GROUP BY channel_code HAVING count(customer_id) < 5", "query_toks": [ "SELECT", "channel_code", "FROM", "customer_contact_channels", "GROUP", "BY", "channel_code", "HAVING", "count", "(", "customer_id", ")", "<", "5" ], "query_toks_no_value": [ "select", "channel_code", "from", "customer_contact_channels", "group", "by", "channel_code", "having", "count", "(", "customer_id", ")", "<", "value" ], "question": "Which contact channel codes were used less than 5 times?", "question_toks": [ "which", "contact", "channel", "code", "were", "used", "le", "than", "5", "time", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [ [ false, 4, [ 0, [ 3, 20, false ], null ], 5.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Which", "contact", "channel", "codes", "were", "used", "less", "than", "5", "times", "?" ], "question_arg": [ [ "which" ], [ "contact" ], [ "channel", "code" ], [ "were" ], [ "used" ], [ "le" ], [ "than" ], [ "5" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "contact", "NN" ], [ "channel", "NN" ], [ "code", "NN" ], [ "were", "VBD" ], [ "used", "VBN" ], [ "le", "NN" ], [ "than", "IN" ], [ "5", "CD" ], [ "time", "NN" ], [ "?", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(4) Filter(4) A(3) C(10) T(4) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = \"Tillman Ernser\"", "query_toks": [ "SELECT", "DISTINCT", "channel_code", "FROM", "customers", "AS", "t1", "JOIN", "customer_contact_channels", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.customer_name", "=", "``", "Tillman", "Ernser", "''" ], "query_toks_no_value": [ "select", "distinct", "channel_code", "from", "customers", "as", "t1", "join", "customer_contact_channels", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "=", "value" ], "question": "Which contact channel has been used by the customer with name \"Tillman Ernser\"?", "question_toks": [ "which", "contact", "channel", "ha", "been", "used", "by", "customer", "with", "name", "'", "tillman", "ernser", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Tillman Ernser\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Which", "contact", "channel", "has", "been", "used", "by", "the", "customer", "with", "name", "``", "Tillman", "Ernser", "''", "?" ], "question_arg": [ [ "which" ], [ "contact" ], [ "channel" ], [ "ha" ], [ "been" ], [ "used" ], [ "by" ], [ "customer" ], [ "with" ], [ "name" ], [ "'" ], [ "tillman" ], [ "ernser" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "contact", "NN" ], [ "channel", "NN" ], [ "ha", "NN" ], [ "been", "VBN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "tillman", "JJ" ], [ "ernser", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Tillman Ernser" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(18) T(4) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = \"Tillman Ernser\"", "query_toks": [ "SELECT", "DISTINCT", "channel_code", "FROM", "customers", "AS", "t1", "JOIN", "customer_contact_channels", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.customer_name", "=", "``", "Tillman", "Ernser", "''" ], "query_toks_no_value": [ "select", "distinct", "channel_code", "from", "customers", "as", "t1", "join", "customer_contact_channels", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "=", "value" ], "question": "Find the contact channel code that was used by the customer named \"Tillman Ernser\".", "question_toks": [ "find", "contact", "channel", "code", "that", "wa", "used", "by", "customer", "named", "'", "tillman", "ernser", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Tillman Ernser\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "contact", "channel", "code", "that", "was", "used", "by", "the", "customer", "named", "``", "Tillman", "Ernser", "''", "." ], "question_arg": [ [ "find" ], [ "contact" ], [ "channel", "code" ], [ "that" ], [ "wa" ], [ "used" ], [ "by" ], [ "customer" ], [ "named" ], [ "'" ], [ "tillman" ], [ "ernser" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "contact", "JJ" ], [ "channel", "NN" ], [ "code", "NN" ], [ "that", "WDT" ], [ "wa", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "tillman", "JJ" ], [ "ernser", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Tillman Ernser" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(18) T(4) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT max(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = \"Tillman Ernser\"", "query_toks": [ "SELECT", "max", "(", "t2.active_to_date", ")", "FROM", "customers", "AS", "t1", "JOIN", "customer_contact_channels", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.customer_name", "=", "``", "Tillman", "Ernser", "''" ], "query_toks_no_value": [ "select", "max", "(", "t2", ".", "active_to_date", ")", "from", "customers", "as", "t1", "join", "customer_contact_channels", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "=", "value" ], "question": "What is the \"active to date\" of the latest contact channel used by \"Tillman Ernser\"?", "question_toks": [ "what", "is", "'", "active", "to", "date", "'", "of", "latest", "contact", "channel", "used", "by", "'", "tillman", "ernser", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Tillman Ernser\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "``", "active", "to", "date", "''", "of", "the", "latest", "contact", "channel", "used", "by", "``", "Tillman", "Ernser", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "'" ], [ "active", "to", "date" ], [ "'" ], [ "of" ], [ "latest" ], [ "contact" ], [ "channel" ], [ "used" ], [ "by" ], [ "'" ], [ "tillman" ], [ "ernser" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "active", "JJ" ], [ "to", "TO" ], [ "date", "NN" ], [ "'", "''" ], [ "of", "IN" ], [ "latest", "JJS" ], [ "contact", "NN" ], [ "channel", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "'", "POS" ], [ "tillman", "JJ" ], [ "ernser", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "active to date", "Tillman Ernser" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(1) C(20) T(4) Filter(2) A(0) C(12) T(2) V(1)" }, { "db_id": "customers_and_addresses", "query": "SELECT max(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = \"Tillman Ernser\"", "query_toks": [ "SELECT", "max", "(", "t2.active_to_date", ")", "FROM", "customers", "AS", "t1", "JOIN", "customer_contact_channels", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.customer_name", "=", "``", "Tillman", "Ernser", "''" ], "query_toks_no_value": [ "select", "max", "(", "t2", ".", "active_to_date", ")", "from", "customers", "as", "t1", "join", "customer_contact_channels", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "=", "value" ], "question": "Return the the \"active to date\" of the latest contact channel used by the customer named \"Tillman Ernser\".", "question_toks": [ "return", "'", "active", "to", "date", "'", "of", "latest", "contact", "channel", "used", "by", "customer", "named", "'", "tillman", "ernser", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Tillman Ernser\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Return", "the", "the", "``", "active", "to", "date", "''", "of", "the", "latest", "contact", "channel", "used", "by", "the", "customer", "named", "``", "Tillman", "Ernser", "''", "." ], "question_arg": [ [ "return" ], [ "'" ], [ "active", "to", "date" ], [ "'" ], [ "of" ], [ "latest" ], [ "contact" ], [ "channel" ], [ "used" ], [ "by" ], [ "customer" ], [ "named" ], [ "'" ], [ "tillman" ], [ "ernser" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "'", "''" ], [ "active", "JJ" ], [ "to", "TO" ], [ "date", "NN" ], [ "'", "''" ], [ "of", "IN" ], [ "latest", "JJS" ], [ "contact", "NN" ], [ "channel", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "tillman", "JJ" ], [ "ernser", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "active to date", "Tillman Ernser" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(1) C(20) T(4) Filter(2) A(0) C(12) T(2) V(1)" }, { "db_id": "customers_and_addresses", "query": "SELECT avg(active_to_date - active_from_date) FROM customer_contact_channels", "query_toks": [ "SELECT", "avg", "(", "active_to_date", "-", "active_from_date", ")", "FROM", "customer_contact_channels" ], "query_toks_no_value": [ "select", "avg", "(", "active_to_date", "-", "active_from_date", ")", "from", "customer_contact_channels" ], "question": "What is the average time span of contact channels in the database?", "question_toks": [ "what", "is", "average", "time", "span", "of", "contact", "channel", "in", "database", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 1, [ 0, 23, false ], [ 0, 22, false ] ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "average", "time", "span", "of", "contact", "channels", "in", "the", "database", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "time" ], [ "span" ], [ "of" ], [ "contact" ], [ "channel" ], [ "in" ], [ "database" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "time", "NN" ], [ "span", "NN" ], [ "of", "IN" ], [ "contact", "JJ" ], [ "channel", "NN" ], [ "in", "IN" ], [ "database", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(20) T(4)" }, { "db_id": "customers_and_addresses", "query": "SELECT avg(active_to_date - active_from_date) FROM customer_contact_channels", "query_toks": [ "SELECT", "avg", "(", "active_to_date", "-", "active_from_date", ")", "FROM", "customer_contact_channels" ], "query_toks_no_value": [ "select", "avg", "(", "active_to_date", "-", "active_from_date", ")", "from", "customer_contact_channels" ], "question": "Compute the average active time span of contact channels.", "question_toks": [ "compute", "average", "active", "time", "span", "of", "contact", "channel", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 1, [ 0, 23, false ], [ 0, 22, false ] ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Compute", "the", "average", "active", "time", "span", "of", "contact", "channels", "." ], "question_arg": [ [ "compute" ], [ "average" ], [ "active" ], [ "time" ], [ "span" ], [ "of" ], [ "contact" ], [ "channel" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "compute", "JJ" ], [ "average", "JJ" ], [ "active", "JJ" ], [ "time", "NN" ], [ "span", "NN" ], [ "of", "IN" ], [ "contact", "JJ" ], [ "channel", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(20) T(4)" }, { "db_id": "customers_and_addresses", "query": "SELECT channel_code , contact_number FROM customer_contact_channels WHERE active_to_date - active_from_date = (SELECT active_to_date - active_from_date FROM customer_contact_channels ORDER BY (active_to_date - active_from_date) DESC LIMIT 1)", "query_toks": [ "SELECT", "channel_code", ",", "contact_number", "FROM", "customer_contact_channels", "WHERE", "active_to_date", "-", "active_from_date", "=", "(", "SELECT", "active_to_date", "-", "active_from_date", "FROM", "customer_contact_channels", "ORDER", "BY", "(", "active_to_date", "-", "active_from_date", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "channel_code", ",", "contact_number", "from", "customer_contact_channels", "where", "active_to_date", "-", "active_from_date", "=", "(", "select", "active_to_date", "-", "active_from_date", "from", "customer_contact_channels", "order", "by", "(", "active_to_date", "-", "active_from_date", ")", "desc", "limit", "value", ")" ], "question": "What is the channel code and contact number of the customer contact channel that was active for the longest time?", "question_toks": [ "what", "is", "channel", "code", "and", "contact", "number", "of", "customer", "contact", "channel", "that", "wa", "active", "for", "longest", "time", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 1, [ 0, 23, false ], [ 0, 22, false ] ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 1, [ 0, 23, false ], [ 0, 22, false ] ] ] ], "select": [ false, [ [ 0, [ 1, [ 0, 23, false ], [ 0, 22, false ] ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "channel", "code", "and", "contact", "number", "of", "the", "customer", "contact", "channel", "that", "was", "active", "for", "the", "longest", "time", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "channel", "code" ], [ "and" ], [ "contact", "number" ], [ "of" ], [ "customer", "contact", "channel" ], [ "that" ], [ "wa" ], [ "active" ], [ "for" ], [ "longest" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "channel", "JJ" ], [ "code", "NN" ], [ "and", "CC" ], [ "contact", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "contact", "NN" ], [ "channel", "NN" ], [ "that", "WDT" ], [ "wa", "VBD" ], [ "active", "JJ" ], [ "for", "IN" ], [ "longest", "JJS" ], [ "time", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(18) T(4) A(0) C(21) T(4) Filter(11) A(0) C(20) T(4) Root(2) Sel(0) N(0) A(0) C(20) T(4) Sup(0) A(0) C(20) T(4)" }, { "db_id": "customers_and_addresses", "query": "SELECT channel_code , contact_number FROM customer_contact_channels WHERE active_to_date - active_from_date = (SELECT active_to_date - active_from_date FROM customer_contact_channels ORDER BY (active_to_date - active_from_date) DESC LIMIT 1)", "query_toks": [ "SELECT", "channel_code", ",", "contact_number", "FROM", "customer_contact_channels", "WHERE", "active_to_date", "-", "active_from_date", "=", "(", "SELECT", "active_to_date", "-", "active_from_date", "FROM", "customer_contact_channels", "ORDER", "BY", "(", "active_to_date", "-", "active_from_date", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "channel_code", ",", "contact_number", "from", "customer_contact_channels", "where", "active_to_date", "-", "active_from_date", "=", "(", "select", "active_to_date", "-", "active_from_date", "from", "customer_contact_channels", "order", "by", "(", "active_to_date", "-", "active_from_date", ")", "desc", "limit", "value", ")" ], "question": "Return the channel code and contact number of the customer contact channel whose active duration was the longest.", "question_toks": [ "return", "channel", "code", "and", "contact", "number", "of", "customer", "contact", "channel", "whose", "active", "duration", "wa", "longest", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 1, [ 0, 23, false ], [ 0, 22, false ] ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 1, [ 0, 23, false ], [ 0, 22, false ] ] ] ], "select": [ false, [ [ 0, [ 1, [ 0, 23, false ], [ 0, 22, false ] ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Return", "the", "channel", "code", "and", "contact", "number", "of", "the", "customer", "contact", "channel", "whose", "active", "duration", "was", "the", "longest", "." ], "question_arg": [ [ "return" ], [ "channel", "code" ], [ "and" ], [ "contact", "number" ], [ "of" ], [ "customer", "contact", "channel" ], [ "whose" ], [ "active" ], [ "duration" ], [ "wa" ], [ "longest" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "channel", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "contact", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "contact", "NN" ], [ "channel", "NN" ], [ "whose", "WP$" ], [ "active", "JJ" ], [ "duration", "NN" ], [ "wa", "NN" ], [ "longest", "JJS" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(18) T(4) A(0) C(21) T(4) Filter(11) A(0) C(20) T(4) Root(2) Sel(0) N(0) A(0) C(20) T(4) Sup(0) A(0) C(20) T(4)" }, { "db_id": "customers_and_addresses", "query": "SELECT t1.customer_name , t2.active_from_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email'", "query_toks": [ "SELECT", "t1.customer_name", ",", "t2.active_from_date", "FROM", "customers", "AS", "t1", "JOIN", "customer_contact_channels", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t2.channel_code", "=", "'Email", "'" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", ",", "t2", ".", "active_from_date", "from", "customers", "as", "t1", "join", "customer_contact_channels", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "channel_code", "=", "value" ], "question": "Find the name and active date of the customer that use email as the contact channel.", "question_toks": [ "find", "name", "and", "active", "date", "of", "customer", "that", "use", "email", "a", "contact", "channel", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Email\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "name", "and", "active", "date", "of", "the", "customer", "that", "use", "email", "as", "the", "contact", "channel", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "active" ], [ "date" ], [ "of" ], [ "customer" ], [ "that" ], [ "use" ], [ "email" ], [ "a" ], [ "contact" ], [ "channel" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "active", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "that", "WDT" ], [ "use", "VBP" ], [ "email", "VBZ" ], [ "a", "DT" ], [ "contact", "NN" ], [ "channel", "NN" ], [ ".", "." ] ], "values": [ "Email" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(12) T(2) A(0) C(19) T(4) Filter(2) A(0) C(18) T(4) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT t1.customer_name , t2.active_from_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email'", "query_toks": [ "SELECT", "t1.customer_name", ",", "t2.active_from_date", "FROM", "customers", "AS", "t1", "JOIN", "customer_contact_channels", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t2.channel_code", "=", "'Email", "'" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", ",", "t2", ".", "active_from_date", "from", "customers", "as", "t1", "join", "customer_contact_channels", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "channel_code", "=", "value" ], "question": "What are the name and active date of the customers whose contact channel code is email?", "question_toks": [ "what", "are", "name", "and", "active", "date", "of", "customer", "whose", "contact", "channel", "code", "is", "email", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Email\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "active", "date", "of", "the", "customers", "whose", "contact", "channel", "code", "is", "email", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "active" ], [ "date" ], [ "of" ], [ "customer" ], [ "whose" ], [ "contact" ], [ "channel", "code" ], [ "is" ], [ "email" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "active", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "contact", "JJ" ], [ "channel", "NN" ], [ "code", "NN" ], [ "is", "VBZ" ], [ "email", "VBN" ], [ "?", "." ] ], "values": [ "Email" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(12) T(2) A(0) C(19) T(4) Filter(2) A(0) C(18) T(4) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t3.order_quantity = ( SELECT max(order_quantity) FROM order_items)", "query_toks": [ "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "WHERE", "t3.order_quantity", "=", "(", "SELECT", "max", "(", "order_quantity", ")", "FROM", "order_items", ")" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "where", "t3", ".", "order_quantity", "=", "(", "select", "max", "(", "order_quantity", ")", "from", "order_items", ")" ], "question": "What is the name of the customer that made the order with the largest quantity?", "question_toks": [ "what", "is", "name", "of", "customer", "that", "made", "order", "with", "largest", "quantity", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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, 32, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "customer", "that", "made", "the", "order", "with", "the", "largest", "quantity", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "customer" ], [ "that" ], [ "made" ], [ "order" ], [ "with" ], [ "largest" ], [ "quantity" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "that", "IN" ], [ "made", "VBD" ], [ "order", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "quantity", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(5) Filter(11) A(0) C(26) T(6) Root(5) Sel(0) N(0) A(1) C(26) T(6)" }, { "db_id": "customers_and_addresses", "query": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t3.order_quantity = ( SELECT max(order_quantity) FROM order_items)", "query_toks": [ "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "WHERE", "t3.order_quantity", "=", "(", "SELECT", "max", "(", "order_quantity", ")", "FROM", "order_items", ")" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "where", "t3", ".", "order_quantity", "=", "(", "select", "max", "(", "order_quantity", ")", "from", "order_items", ")" ], "question": "Find the name of the customer who made the order of the largest amount of goods.", "question_toks": [ "find", "name", "of", "customer", "who", "made", "order", "of", "largest", "amount", "of", "good", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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, 32, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "customer", "who", "made", "the", "order", "of", "the", "largest", "amount", "of", "goods", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "made" ], [ "order" ], [ "of" ], [ "largest" ], [ "amount" ], [ "of" ], [ "good" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "order", "NN" ], [ "of", "IN" ], [ "largest", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "good", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(5) Filter(11) A(0) C(26) T(6) Root(5) Sel(0) N(0) A(1) C(26) T(6)" }, { "db_id": "customers_and_addresses", "query": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "GROUP", "BY", "t1.customer_name", "ORDER", "BY", "sum", "(", "t3.order_quantity", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "group", "by", "t1", ".", "customer_name", "order", "by", "sum", "(", "t3", ".", "order_quantity", ")", "desc", "limit", "value" ], "question": "What is the name of the customer that has purchased the most items?", "question_toks": [ "what", "is", "name", "of", "customer", "that", "ha", "purchased", "most", "item", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 32, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "customer", "that", "has", "purchased", "the", "most", "items", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "customer" ], [ "that" ], [ "ha" ], [ "purchased" ], [ "most" ], [ "item" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "purchased", "VBD" ], [ "most", "JJS" ], [ "item", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(12) T(2) Sup(0) A(4) C(26) T(6) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(5)" }, { "db_id": "customers_and_addresses", "query": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "GROUP", "BY", "t1.customer_name", "ORDER", "BY", "sum", "(", "t3.order_quantity", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "group", "by", "t1", ".", "customer_name", "order", "by", "sum", "(", "t3", ".", "order_quantity", ")", "desc", "limit", "value" ], "question": "Give me the name of the customer who ordered the most items in total.", "question_toks": [ "give", "me", "name", "of", "customer", "who", "ordered", "most", "item", "in", "total", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 32, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Give", "me", "the", "name", "of", "the", "customer", "who", "ordered", "the", "most", "items", "in", "total", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "ordered" ], [ "most" ], [ "item" ], [ "in" ], [ "total" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ordered", "VBD" ], [ "most", "JJS" ], [ "item", "NN" ], [ "in", "IN" ], [ "total", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(12) T(2) Sup(0) A(4) C(26) T(6) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(5)" }, { "db_id": "customers_and_addresses", "query": "SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) LIMIT 1", "query_toks": [ "SELECT", "t1.payment_method", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "GROUP", "BY", "t1.customer_name", "ORDER", "BY", "sum", "(", "t3.order_quantity", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "payment_method", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "group", "by", "t1", ".", "customer_name", "order", "by", "sum", "(", "t3", ".", "order_quantity", ")", "limit", "value" ], "question": "What is the payment method of the customer that has purchased the least quantity of items?", "question_toks": [ "what", "is", "payment", "method", "of", "customer", "that", "ha", "purchased", "least", "quantity", "of", "item", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 4, 32, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "payment", "method", "of", "the", "customer", "that", "has", "purchased", "the", "least", "quantity", "of", "items", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "payment", "method" ], [ "of" ], [ "customer" ], [ "that" ], [ "ha" ], [ "purchased" ], [ "least" ], [ "quantity" ], [ "of" ], [ "item" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "payment", "NN" ], [ "method", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "purchased", "VBD" ], [ "least", "JJS" ], [ "quantity", "NN" ], [ "of", "IN" ], [ "item", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(11) T(2) Sup(1) A(4) C(26) T(6) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(5)" }, { "db_id": "customers_and_addresses", "query": "SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) LIMIT 1", "query_toks": [ "SELECT", "t1.payment_method", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "GROUP", "BY", "t1.customer_name", "ORDER", "BY", "sum", "(", "t3.order_quantity", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "payment_method", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "group", "by", "t1", ".", "customer_name", "order", "by", "sum", "(", "t3", ".", "order_quantity", ")", "limit", "value" ], "question": "Tell me the payment method used by the customer who ordered the least amount of goods in total.", "question_toks": [ "tell", "me", "payment", "method", "used", "by", "customer", "who", "ordered", "least", "amount", "of", "good", "in", "total", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 4, 32, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Tell", "me", "the", "payment", "method", "used", "by", "the", "customer", "who", "ordered", "the", "least", "amount", "of", "goods", "in", "total", "." ], "question_arg": [ [ "tell" ], [ "me" ], [ "payment", "method" ], [ "used" ], [ "by" ], [ "customer" ], [ "who" ], [ "ordered" ], [ "least" ], [ "amount" ], [ "of" ], [ "good" ], [ "in" ], [ "total" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "tell", "VB" ], [ "me", "PRP" ], [ "payment", "NN" ], [ "method", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ordered", "VBD" ], [ "least", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "good", "JJ" ], [ "in", "IN" ], [ "total", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(11) T(2) Sup(1) A(4) C(26) T(6) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(5)" }, { "db_id": "customers_and_addresses", "query": "SELECT count(DISTINCT t3.product_id) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = \"Rodrick Heaney\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "t3.product_id", ")", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "WHERE", "t1.customer_name", "=", "``", "Rodrick", "Heaney", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t3", ".", "product_id", ")", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "where", "t1", ".", "customer_name", "=", "value" ], "question": "How many types of products have Rodrick Heaney bought in total?", "question_toks": [ "how", "many", "type", "of", "product", "have", "rodrick", "heaney", "bought", "in", "total", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 31, true ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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, 12, false ], null ], "\"Rodrick Heaney\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "How", "many", "types", "of", "products", "have", "Rodrick", "Heaney", "bought", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "type" ], [ "of" ], [ "product" ], [ "have" ], [ "rodrick" ], [ "heaney" ], [ "bought" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "have", "VBP" ], [ "rodrick", "VBN" ], [ "heaney", "NN" ], [ "bought", "VBN" ], [ "in", "IN" ], [ "total", "JJ" ], [ "?", "." ] ], "values": [ "Rodrick Heaney" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(8) T(6) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(5) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT count(DISTINCT t3.product_id) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = \"Rodrick Heaney\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "t3.product_id", ")", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "WHERE", "t1.customer_name", "=", "``", "Rodrick", "Heaney", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t3", ".", "product_id", ")", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "where", "t1", ".", "customer_name", "=", "value" ], "question": "Find the number of distinct products Rodrick Heaney has bought so far.", "question_toks": [ "find", "number", "of", "distinct", "product", "rodrick", "heaney", "ha", "bought", "so", "far", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 31, true ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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, 12, false ], null ], "\"Rodrick Heaney\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "number", "of", "distinct", "products", "Rodrick", "Heaney", "has", "bought", "so", "far", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "distinct" ], [ "product" ], [ "rodrick" ], [ "heaney" ], [ "ha" ], [ "bought" ], [ "so" ], [ "far" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "product", "NN" ], [ "rodrick", "NN" ], [ "heaney", "NN" ], [ "ha", "NN" ], [ "bought", "VBD" ], [ "so", "RB" ], [ "far", "RB" ], [ ".", "." ] ], "values": [ "Rodrick Heaney" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(8) T(6) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(5) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT sum(t3.order_quantity) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = \"Rodrick Heaney\"", "query_toks": [ "SELECT", "sum", "(", "t3.order_quantity", ")", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "WHERE", "t1.customer_name", "=", "``", "Rodrick", "Heaney", "''" ], "query_toks_no_value": [ "select", "sum", "(", "t3", ".", "order_quantity", ")", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "where", "t1", ".", "customer_name", "=", "value" ], "question": "What is the total quantity of products purchased by \"Rodrick Heaney\"?", "question_toks": [ "what", "is", "total", "quantity", "of", "product", "purchased", "by", "'", "rodrick", "heaney", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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, 12, false ], null ], "\"Rodrick Heaney\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "total", "quantity", "of", "products", "purchased", "by", "``", "Rodrick", "Heaney", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "quantity" ], [ "of" ], [ "product" ], [ "purchased" ], [ "by" ], [ "'" ], [ "rodrick" ], [ "heaney" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "quantity", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "purchased", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "rodrick", "JJ" ], [ "heaney", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Rodrick Heaney" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(26) T(6) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(5) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT sum(t3.order_quantity) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = \"Rodrick Heaney\"", "query_toks": [ "SELECT", "sum", "(", "t3.order_quantity", ")", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "WHERE", "t1.customer_name", "=", "``", "Rodrick", "Heaney", "''" ], "query_toks_no_value": [ "select", "sum", "(", "t3", ".", "order_quantity", ")", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "where", "t1", ".", "customer_name", "=", "value" ], "question": "Tell me the total quantity of products bought by the customer called \"Rodrick Heaney\".", "question_toks": [ "tell", "me", "total", "quantity", "of", "product", "bought", "by", "customer", "called", "'", "rodrick", "heaney", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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, 12, false ], null ], "\"Rodrick Heaney\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Tell", "me", "the", "total", "quantity", "of", "products", "bought", "by", "the", "customer", "called", "``", "Rodrick", "Heaney", "''", "." ], "question_arg": [ [ "tell" ], [ "me" ], [ "total" ], [ "quantity" ], [ "of" ], [ "product" ], [ "bought" ], [ "by" ], [ "customer" ], [ "called" ], [ "'" ], [ "rodrick" ], [ "heaney" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "tell", "VB" ], [ "me", "PRP" ], [ "total", "JJ" ], [ "quantity", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "bought", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "called", "VBN" ], [ "'", "POS" ], [ "rodrick", "NN" ], [ "heaney", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Rodrick Heaney" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(26) T(6) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(5) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT count(DISTINCT customer_id) FROM customer_orders WHERE order_status = \"Cancelled\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "customer_id", ")", "FROM", "customer_orders", "WHERE", "order_status", "=", "``", "Cancelled", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "customer_id", ")", "from", "customer_orders", "where", "order_status", "=", "value" ], "question": "How many customers have at least one order with status \"Cancelled\"?", "question_toks": [ "how", "many", "customer", "have", "at", "least", "one", "order", "with", "status", "'", "cancelled", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 26, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"Cancelled\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "How", "many", "customers", "have", "at", "least", "one", "order", "with", "status", "``", "Cancelled", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "have" ], [ "at" ], [ "least" ], [ "one" ], [ "order" ], [ "with" ], [ "status" ], [ "'" ], [ "cancelled" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "order", "NN" ], [ "with", "IN" ], [ "status", "NN" ], [ "'", "''" ], [ "cancelled", "VBN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "1", "Cancelled" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(10) T(5) Filter(2) A(0) C(23) T(5) V(1)" }, { "db_id": "customers_and_addresses", "query": "SELECT count(DISTINCT customer_id) FROM customer_orders WHERE order_status = \"Cancelled\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "customer_id", ")", "FROM", "customer_orders", "WHERE", "order_status", "=", "``", "Cancelled", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "customer_id", ")", "from", "customer_orders", "where", "order_status", "=", "value" ], "question": "Return the number of customers who have at least one order with \"Cancelled\" status.", "question_toks": [ "return", "number", "of", "customer", "who", "have", "at", "least", "one", "order", "with", "'", "cancelled", "'", "status", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 26, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"Cancelled\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Return", "the", "number", "of", "customers", "who", "have", "at", "least", "one", "order", "with", "``", "Cancelled", "''", "status", "." ], "question_arg": [ [ "return" ], [ "number" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "at" ], [ "least" ], [ "one" ], [ "order" ], [ "with" ], [ "'" ], [ "cancelled" ], [ "'" ], [ "status" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "order", "NN" ], [ "with", "IN" ], [ "'", "''" ], [ "cancelled", "VBN" ], [ "'", "POS" ], [ "status", "NN" ], [ ".", "." ] ], "values": [ "1", "Cancelled" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(10) T(5) Filter(2) A(0) C(23) T(5) V(1)" }, { "db_id": "customers_and_addresses", "query": "SELECT count(*) FROM customer_orders WHERE order_details = \"Second time\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customer_orders", "WHERE", "order_details", "=", "``", "Second", "time", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customer_orders", "where", "order_details", "=", "value" ], "question": "How many orders have detail \"Second time\"?", "question_toks": [ "how", "many", "order", "have", "detail", "'", "second", "time", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"Second time\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "How", "many", "orders", "have", "detail", "``", "Second", "time", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "order" ], [ "have" ], [ "detail" ], [ "'" ], [ "second" ], [ "time" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "order", "NN" ], [ "have", "VBP" ], [ "detail", "NN" ], [ "'", "''" ], [ "second", "JJ" ], [ "time", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "2", "Second time" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(25) T(5) V(1)" }, { "db_id": "customers_and_addresses", "query": "SELECT count(*) FROM customer_orders WHERE order_details = \"Second time\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customer_orders", "WHERE", "order_details", "=", "``", "Second", "time", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customer_orders", "where", "order_details", "=", "value" ], "question": "Tell me the number of orders with \"Second time\" as order detail.", "question_toks": [ "tell", "me", "number", "of", "order", "with", "'", "second", "time", "'", "a", "order", "detail", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"Second time\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Tell", "me", "the", "number", "of", "orders", "with", "``", "Second", "time", "''", "as", "order", "detail", "." ], "question_arg": [ [ "tell" ], [ "me" ], [ "number" ], [ "of" ], [ "order" ], [ "with" ], [ "'" ], [ "second" ], [ "time" ], [ "'" ], [ "a" ], [ "order", "detail" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "tell", "VB" ], [ "me", "PRP" ], [ "number", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "with", "IN" ], [ "'", "''" ], [ "second", "JJ" ], [ "time", "NN" ], [ "'", "''" ], [ "a", "DT" ], [ "order", "NN" ], [ "detail", "NN" ], [ ".", "." ] ], "values": [ "2", "Second time" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(25) T(5) V(1)" }, { "db_id": "customers_and_addresses", "query": "SELECT t1.customer_name , t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = \"Delivered\"", "query_toks": [ "SELECT", "t1.customer_name", ",", "t2.order_date", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "order_status", "=", "``", "Delivered", "''" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", ",", "t2", ".", "order_date", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "order_status", "=", "value" ], "question": "Find the customer name and date of the orders that have the status \"Delivered\".", "question_toks": [ "find", "customer", "name", "and", "date", "of", "order", "that", "have", "status", "'", "delivered", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"Delivered\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "customer", "name", "and", "date", "of", "the", "orders", "that", "have", "the", "status", "``", "Delivered", "''", "." ], "question_arg": [ [ "find" ], [ "customer", "name" ], [ "and" ], [ "date" ], [ "of" ], [ "order" ], [ "that" ], [ "have" ], [ "status" ], [ "'" ], [ "delivered" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "customer", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "status", "NN" ], [ "'", "''" ], [ "delivered", "VBN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Delivered" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(12) T(2) A(0) C(24) T(5) Filter(2) A(0) C(23) T(5) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT t1.customer_name , t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = \"Delivered\"", "query_toks": [ "SELECT", "t1.customer_name", ",", "t2.order_date", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "order_status", "=", "``", "Delivered", "''" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", ",", "t2", ".", "order_date", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "order_status", "=", "value" ], "question": "What are the customer name and date of the orders whose status is \"Delivered\".", "question_toks": [ "what", "are", "customer", "name", "and", "date", "of", "order", "whose", "status", "is", "'", "delivered", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"Delivered\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "customer", "name", "and", "date", "of", "the", "orders", "whose", "status", "is", "``", "Delivered", "''", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "customer", "name" ], [ "and" ], [ "date" ], [ "of" ], [ "order" ], [ "whose" ], [ "status" ], [ "is" ], [ "'" ], [ "delivered" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "customer", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "whose", "WP$" ], [ "status", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "delivered", "VBN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Delivered" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(12) T(2) A(0) C(24) T(5) Filter(2) A(0) C(23) T(5) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_status = \"Cancelled\"", "query_toks": [ "SELECT", "sum", "(", "t2.order_quantity", ")", "FROM", "customer_orders", "AS", "t1", "JOIN", "order_items", "AS", "t2", "ON", "t1.order_id", "=", "t2.order_id", "WHERE", "t1.order_status", "=", "``", "Cancelled", "''" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "order_quantity", ")", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "order_status", "=", "value" ], "question": "What is the total number of products that are in orders with status \"Cancelled\"?", "question_toks": [ "what", "is", "total", "number", "of", "product", "that", "are", "in", "order", "with", "status", "'", "cancelled", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 30, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"Cancelled\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "products", "that", "are", "in", "orders", "with", "status", "``", "Cancelled", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "product" ], [ "that" ], [ "are" ], [ "in" ], [ "order" ], [ "with" ], [ "status" ], [ "'" ], [ "cancelled" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "order", "NN" ], [ "with", "IN" ], [ "status", "NN" ], [ "'", "''" ], [ "cancelled", "VBN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Cancelled" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(26) T(6) Filter(2) A(0) C(23) T(5) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_status = \"Cancelled\"", "query_toks": [ "SELECT", "sum", "(", "t2.order_quantity", ")", "FROM", "customer_orders", "AS", "t1", "JOIN", "order_items", "AS", "t2", "ON", "t1.order_id", "=", "t2.order_id", "WHERE", "t1.order_status", "=", "``", "Cancelled", "''" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "order_quantity", ")", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "order_status", "=", "value" ], "question": "Find the total quantity of products associated with the orders in the \"Cancelled\" status.", "question_toks": [ "find", "total", "quantity", "of", "product", "associated", "with", "order", "in", "'", "cancelled", "'", "status", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 30, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"Cancelled\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "total", "quantity", "of", "products", "associated", "with", "the", "orders", "in", "the", "``", "Cancelled", "''", "status", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "quantity" ], [ "of" ], [ "product" ], [ "associated" ], [ "with" ], [ "order" ], [ "in" ], [ "'" ], [ "cancelled" ], [ "'" ], [ "status" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "quantity", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "order", "NN" ], [ "in", "IN" ], [ "'", "''" ], [ "cancelled", "VBD" ], [ "'", "POS" ], [ "status", "NN" ], [ ".", "." ] ], "values": [ "Cancelled" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(26) T(6) Filter(2) A(0) C(23) T(5) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_date < \"2018-03-17 07:13:53\"", "query_toks": [ "SELECT", "sum", "(", "t2.order_quantity", ")", "FROM", "customer_orders", "AS", "t1", "JOIN", "order_items", "AS", "t2", "ON", "t1.order_id", "=", "t2.order_id", "WHERE", "t1.order_date", "<", "``", "2018-03-17", "07:13:53", "''" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "order_quantity", ")", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "order_date", "<", "value" ], "question": "Find the total amount of products ordered before 2018-03-17 07:13:53.", "question_toks": [ "find", "total", "amount", "of", "product", "ordered", "before", "2018-03-17", "07:13:53", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 30, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 28, false ], null ], "\"2018-03-17 07:13:53\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "total", "amount", "of", "products", "ordered", "before", "2018-03-17", "07:13:53", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "amount" ], [ "of" ], [ "product" ], [ "ordered" ], [ "before" ], [ "2018-03-17" ], [ "07:13:53" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "ordered", "VBN" ], [ "before", "IN" ], [ "2018-03-17", "JJ" ], [ "07:13:53", "CD" ], [ ".", "." ] ], "values": [ "2018-03-17 07:13:53", "17", "2018", "53", "2018-03-17", "7", "13", "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(26) T(6) Filter(4) A(0) C(24) T(5) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_date < \"2018-03-17 07:13:53\"", "query_toks": [ "SELECT", "sum", "(", "t2.order_quantity", ")", "FROM", "customer_orders", "AS", "t1", "JOIN", "order_items", "AS", "t2", "ON", "t1.order_id", "=", "t2.order_id", "WHERE", "t1.order_date", "<", "``", "2018-03-17", "07:13:53", "''" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "order_quantity", ")", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "order_date", "<", "value" ], "question": "What is the total amount of products purchased before 2018-03-17 07:13:53?", "question_toks": [ "what", "is", "total", "amount", "of", "product", "purchased", "before", "2018-03-17", "07:13:53", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 30, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 28, false ], null ], "\"2018-03-17 07:13:53\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "total", "amount", "of", "products", "purchased", "before", "2018-03-17", "07:13:53", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "amount" ], [ "of" ], [ "product" ], [ "purchased" ], [ "before" ], [ "2018-03-17" ], [ "07:13:53" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "purchased", "VBN" ], [ "before", "IN" ], [ "2018-03-17", "JJ" ], [ "07:13:53", "CD" ], [ "?", "." ] ], "values": [ "2018-03-17 07:13:53", "17", "2018", "53", "2018-03-17", "7", "13", "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(26) T(6) Filter(4) A(0) C(24) T(5) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.order_date DESC LIMIT 1", "query_toks": [ "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "ORDER", "BY", "t2.order_date", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "order", "by", "t2", ".", "order_date", "desc", "limit", "value" ], "question": "Who made the latest order?", "question_toks": [ "who", "made", "latest", "order", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 28, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Who", "made", "the", "latest", "order", "?" ], "question_arg": [ [ "who" ], [ "made" ], [ "latest" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "made", "VBD" ], [ "latest", "JJS" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(12) T(2) Sup(0) A(0) C(24) T(5)" }, { "db_id": "customers_and_addresses", "query": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.order_date DESC LIMIT 1", "query_toks": [ "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "ORDER", "BY", "t2.order_date", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "order", "by", "t2", ".", "order_date", "desc", "limit", "value" ], "question": "Find the name of the customer who made an order most recently.", "question_toks": [ "find", "name", "of", "customer", "who", "made", "an", "order", "most", "recently", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 28, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "customer", "who", "made", "an", "order", "most", "recently", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "made" ], [ "an" ], [ "order" ], [ "most" ], [ "recently" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "an", "DT" ], [ "order", "NN" ], [ "most", "RBS" ], [ "recently", "RB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(12) T(2) Sup(0) A(0) C(24) T(5)" }, { "db_id": "customers_and_addresses", "query": "SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.product_details", "FROM", "order_items", "AS", "t1", "JOIN", "products", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "GROUP", "BY", "t1.product_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "product_details", "from", "order_items", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t1", ".", "product_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which product has been ordered most number of times?", "question_toks": [ "which", "product", "ha", "been", "ordered", "most", "number", "of", "time", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 31, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 31, 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, 31, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Which", "product", "has", "been", "ordered", "most", "number", "of", "times", "?" ], "question_arg": [ [ "which" ], [ "product" ], [ "ha" ], [ "been" ], [ "ordered" ], [ "most" ], [ "number" ], [ "of" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "product", "NN" ], [ "ha", "NN" ], [ "been", "VBN" ], [ "ordered", "VBN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "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(6) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(6)" }, { "db_id": "customers_and_addresses", "query": "SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.product_details", "FROM", "order_items", "AS", "t1", "JOIN", "products", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "GROUP", "BY", "t1.product_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "product_details", "from", "order_items", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t1", ".", "product_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most frequently ordered product? Tell me the detail of the product", "question_toks": [ "what", "is", "most", "frequently", "ordered", "product", "?", "tell", "me", "detail", "of", "product" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 31, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 31, 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, 31, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "most", "frequently", "ordered", "product", "?", "Tell", "me", "the", "detail", "of", "the", "product" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "frequently" ], [ "ordered" ], [ "product" ], [ "?" ], [ "tell" ], [ "me" ], [ "detail" ], [ "of" ], [ "product" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "frequently", "RB" ], [ "ordered", "VBN" ], [ "product", "NN" ], [ "?", "." ], [ "tell", "VB" ], [ "me", "PRP" ], [ "detail", "NN" ], [ "of", "IN" ], [ "product", "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(6) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(6)" }, { "db_id": "customers_and_addresses", "query": "SELECT t2.product_details , t2.product_id FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY sum(t1.order_quantity) LIMIT 1", "query_toks": [ "SELECT", "t2.product_details", ",", "t2.product_id", "FROM", "order_items", "AS", "t1", "JOIN", "products", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "GROUP", "BY", "t1.product_id", "ORDER", "BY", "sum", "(", "t1.order_quantity", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "product_details", ",", "t2", ".", "product_id", "from", "order_items", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t1", ".", "product_id", "order", "by", "sum", "(", "t1", ".", "order_quantity", ")", "limit", "value" ], "question": "Find the name and ID of the product whose total order quantity is the largest.", "question_toks": [ "find", "name", "and", "id", "of", "product", "whose", "total", "order", "quantity", "is", "largest", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 31, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 31, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 4, 32, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "name", "and", "ID", "of", "the", "product", "whose", "total", "order", "quantity", "is", "the", "largest", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "product" ], [ "whose" ], [ "total" ], [ "order", "quantity" ], [ "is" ], [ "largest" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "whose", "WP$" ], [ "total", "JJ" ], [ "order", "NN" ], [ "quantity", "NN" ], [ "is", "VBZ" ], [ "largest", "JJS" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(9) T(1) A(0) C(8) T(1) Sup(1) A(4) C(26) T(6)" }, { "db_id": "customers_and_addresses", "query": "SELECT t2.product_details , t2.product_id FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY sum(t1.order_quantity) LIMIT 1", "query_toks": [ "SELECT", "t2.product_details", ",", "t2.product_id", "FROM", "order_items", "AS", "t1", "JOIN", "products", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "GROUP", "BY", "t1.product_id", "ORDER", "BY", "sum", "(", "t1.order_quantity", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "product_details", ",", "t2", ".", "product_id", "from", "order_items", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t1", ".", "product_id", "order", "by", "sum", "(", "t1", ".", "order_quantity", ")", "limit", "value" ], "question": "What are the name and ID of the product bought the most.", "question_toks": [ "what", "are", "name", "and", "id", "of", "product", "bought", "most", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 31, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 31, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 4, 32, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "ID", "of", "the", "product", "bought", "the", "most", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "product" ], [ "bought" ], [ "most" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "bought", "VBD" ], [ "most", "JJS" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(9) T(1) A(0) C(8) T(1) Sup(1) A(4) C(26) T(6)" }, { "db_id": "customers_and_addresses", "query": "SELECT address_content FROM addresses WHERE city = \"East Julianaside\" AND state_province_county = \"Texas\" UNION SELECT address_content FROM addresses WHERE city = \"Gleasonmouth\" AND state_province_county = \"Arizona\"", "query_toks": [ "SELECT", "address_content", "FROM", "addresses", "WHERE", "city", "=", "``", "East", "Julianaside", "''", "AND", "state_province_county", "=", "``", "Texas", "''", "UNION", "SELECT", "address_content", "FROM", "addresses", "WHERE", "city", "=", "``", "Gleasonmouth", "''", "AND", "state_province_county", "=", "``", "Arizona", "''" ], "query_toks_no_value": [ "select", "address_content", "from", "addresses", "where", "city", "=", "value", "and", "state_province_county", "=", "value", "union", "select", "address_content", "from", "addresses", "where", "city", "=", "value", "and", "state_province_county", "=", "value" ], "question": "Find all the addresses in East Julianaside, Texas or in Gleasonmouth, Arizona.", "question_toks": [ "find", "all", "address", "in", "east", "julianaside", ",", "texas", "or", "in", "gleasonmouth", ",", "arizona", "." ], "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", 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 ], "\"Gleasonmouth\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Arizona\"", null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"East Julianaside\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Texas\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "all", "the", "addresses", "in", "East", "Julianaside", ",", "Texas", "or", "in", "Gleasonmouth", ",", "Arizona", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "address" ], [ "in" ], [ "east" ], [ "julianaside" ], [ "," ], [ "texas" ], [ "or" ], [ "in" ], [ "gleasonmouth" ], [ "," ], [ "arizona" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "address", "NN" ], [ "in", "IN" ], [ "east", "JJ" ], [ "julianaside", "NN" ], [ ",", "," ], [ "texas", "NN" ], [ "or", "CC" ], [ "in", "IN" ], [ "gleasonmouth", "NN" ], [ ",", "," ], [ "arizona", "NN" ], [ ".", "." ] ], "values": [ "East Julianaside", "Arizona", "Texas", "Gleasonmouth" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(3) T(0) V(0) Filter(2) A(0) C(5) T(0) V(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(3) T(0) V(3) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "customers_and_addresses", "query": "SELECT address_content FROM addresses WHERE city = \"East Julianaside\" AND state_province_county = \"Texas\" UNION SELECT address_content FROM addresses WHERE city = \"Gleasonmouth\" AND state_province_county = \"Arizona\"", "query_toks": [ "SELECT", "address_content", "FROM", "addresses", "WHERE", "city", "=", "``", "East", "Julianaside", "''", "AND", "state_province_county", "=", "``", "Texas", "''", "UNION", "SELECT", "address_content", "FROM", "addresses", "WHERE", "city", "=", "``", "Gleasonmouth", "''", "AND", "state_province_county", "=", "``", "Arizona", "''" ], "query_toks_no_value": [ "select", "address_content", "from", "addresses", "where", "city", "=", "value", "and", "state_province_county", "=", "value", "union", "select", "address_content", "from", "addresses", "where", "city", "=", "value", "and", "state_province_county", "=", "value" ], "question": "What are all the addresses in East Julianaside, Texas or in Gleasonmouth, Arizona.", "question_toks": [ "what", "are", "all", "address", "in", "east", "julianaside", ",", "texas", "or", "in", "gleasonmouth", ",", "arizona", "." ], "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", 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 ], "\"Gleasonmouth\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Arizona\"", null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"East Julianaside\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Texas\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "all", "the", "addresses", "in", "East", "Julianaside", ",", "Texas", "or", "in", "Gleasonmouth", ",", "Arizona", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "address" ], [ "in" ], [ "east" ], [ "julianaside" ], [ "," ], [ "texas" ], [ "or" ], [ "in" ], [ "gleasonmouth" ], [ "," ], [ "arizona" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "address", "NN" ], [ "in", "IN" ], [ "east", "JJ" ], [ "julianaside", "NN" ], [ ",", "," ], [ "texas", "NN" ], [ "or", "CC" ], [ "in", "IN" ], [ "gleasonmouth", "NN" ], [ ",", "," ], [ "arizona", "NN" ], [ ".", "." ] ], "values": [ "East Julianaside", "Arizona", "Texas", "Gleasonmouth" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(3) T(0) V(0) Filter(2) A(0) C(5) T(0) V(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(3) T(0) V(3) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "customers_and_addresses", "query": "SELECT customer_name FROM customers WHERE payment_method != 'Cash'", "query_toks": [ "SELECT", "customer_name", "FROM", "customers", "WHERE", "payment_method", "!", "=", "'Cash", "'" ], "query_toks_no_value": [ "select", "customer_name", "from", "customers", "where", "payment_method", "!", "=", "value" ], "question": "Find the name of customers who did not pay with Cash.", "question_toks": [ "find", "name", "of", "customer", "who", "did", "not", "pay", "with", "cash", "." ], "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, 7, [ 0, [ 0, 11, false ], null ], "\"Cash\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "name", "of", "customers", "who", "did", "not", "pay", "with", "Cash", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "did" ], [ "not" ], [ "pay" ], [ "with" ], [ "cash" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "pay", "VB" ], [ "with", "IN" ], [ "cash", "NN" ], [ ".", "." ] ], "values": [ "Cash" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(3) A(0) C(11) T(2) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT customer_name FROM customers WHERE payment_method != 'Cash'", "query_toks": [ "SELECT", "customer_name", "FROM", "customers", "WHERE", "payment_method", "!", "=", "'Cash", "'" ], "query_toks_no_value": [ "select", "customer_name", "from", "customers", "where", "payment_method", "!", "=", "value" ], "question": "What is the name of customers who do not use Cash as payment method.", "question_toks": [ "what", "is", "name", "of", "customer", "who", "do", "not", "use", "cash", "a", "payment", "method", "." ], "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, 7, [ 0, [ 0, 11, false ], null ], "\"Cash\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "customers", "who", "do", "not", "use", "Cash", "as", "payment", "method", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "do" ], [ "not" ], [ "use" ], [ "cash" ], [ "a" ], [ "payment", "method" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "use", "VB" ], [ "cash", "NN" ], [ "a", "DT" ], [ "payment", "NN" ], [ "method", "NN" ], [ ".", "." ] ], "values": [ "Cash" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(3) A(0) C(11) T(2) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte'", "query_toks": [ "SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "JOIN", "products", "AS", "t4", "ON", "t3.product_id", "=", "t4.product_id", "WHERE", "t4.product_details", "=", "'Latte", "'" ], "query_toks_no_value": [ "select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "join", "products", "as", "t4", "on", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_details", "=", "value" ], "question": "Find the names of customers who never ordered product Latte.", "question_toks": [ "find", "name", "of", "customer", "who", "never", "ordered", "product", "latte", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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, 9, false ], null ], "\"Latte\"", 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": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "names", "of", "customers", "who", "never", "ordered", "product", "Latte", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "never" ], [ "ordered" ], [ "product" ], [ "latte" ], [ "." ] ], "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" ], [ "never", "RB" ], [ "ordered", "VBD" ], [ "product", "NN" ], [ "latte", "NN" ], [ ".", "." ] ], "values": [ "Latte" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(12) T(2) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(5) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte'", "query_toks": [ "SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "JOIN", "products", "AS", "t4", "ON", "t3.product_id", "=", "t4.product_id", "WHERE", "t4.product_details", "=", "'Latte", "'" ], "query_toks_no_value": [ "select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "join", "products", "as", "t4", "on", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_details", "=", "value" ], "question": "What are names of customers who never ordered product Latte.", "question_toks": [ "what", "are", "name", "of", "customer", "who", "never", "ordered", "product", "latte", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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, 9, false ], null ], "\"Latte\"", 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": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "names", "of", "customers", "who", "never", "ordered", "product", "Latte", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "never" ], [ "ordered" ], [ "product" ], [ "latte" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "never", "RB" ], [ "ordered", "VBD" ], [ "product", "NN" ], [ "latte", "NN" ], [ ".", "." ] ], "values": [ "Latte" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(12) T(2) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(5) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "customers_and_addresses", "query": "SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders 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", "customer_orders", "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", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id" ], "question": "Find the names of customers who never placed an order.", "question_toks": [ "find", "name", "of", "customer", "who", "never", "placed", "an", "order", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, 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": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "names", "of", "customers", "who", "never", "placed", "an", "order", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "never" ], [ "placed" ], [ "an" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "never", "RB" ], [ "placed", "VBD" ], [ "an", "DT" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(12) T(2) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(5)" }, { "db_id": "customers_and_addresses", "query": "SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders 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", "customer_orders", "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", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id" ], "question": "What are the names of customers who never made an order.", "question_toks": [ "what", "are", "name", "of", "customer", "who", "never", "made", "an", "order", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, 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": [] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "customers", "who", "never", "made", "an", "order", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "never" ], [ "made" ], [ "an" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "never", "RB" ], [ "made", "VBD" ], [ "an", "DT" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(12) T(2) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(5)" }, { "db_id": "customers_and_addresses", "query": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte' INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Americano'", "query_toks": [ "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "JOIN", "products", "AS", "t4", "ON", "t3.product_id", "=", "t4.product_id", "WHERE", "t4.product_details", "=", "'Latte", "'", "INTERSECT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "JOIN", "products", "AS", "t4", "ON", "t3.product_id", "=", "t4.product_id", "WHERE", "t4.product_details", "=", "'Americano", "'" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "join", "products", "as", "t4", "on", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_details", "=", "value", "intersect", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "join", "products", "as", "t4", "on", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_details", "=", "value" ], "question": "Find the names of customers who ordered both products Latte and Americano.", "question_toks": [ "find", "name", "of", "customer", "who", "ordered", "both", "product", "latte", "and", "americano", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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, 9, false ], null ], "\"Americano\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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, 9, false ], null ], "\"Latte\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "Find", "the", "names", "of", "customers", "who", "ordered", "both", "products", "Latte", "and", "Americano", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "ordered" ], [ "both" ], [ "product" ], [ "latte" ], [ "and" ], [ "americano" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ordered", "VBD" ], [ "both", "DT" ], [ "product", "NN" ], [ "latte", "NN" ], [ "and", "CC" ], [ "americano", "NN" ], [ ".", "." ] ], "values": [ "Latte", "Americano" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(5) Filter(2) A(0) C(9) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(5) Filter(2) A(0) C(9) T(1) V(1)" }, { "db_id": "customers_and_addresses", "query": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte' INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Americano'", "query_toks": [ "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "JOIN", "products", "AS", "t4", "ON", "t3.product_id", "=", "t4.product_id", "WHERE", "t4.product_details", "=", "'Latte", "'", "INTERSECT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "JOIN", "products", "AS", "t4", "ON", "t3.product_id", "=", "t4.product_id", "WHERE", "t4.product_details", "=", "'Americano", "'" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "join", "products", "as", "t4", "on", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_details", "=", "value", "intersect", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "join", "products", "as", "t4", "on", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_details", "=", "value" ], "question": "What are the names of customers who have purchased both products Latte and Americano?", "question_toks": [ "what", "are", "name", "of", "customer", "who", "have", "purchased", "both", "product", "latte", "and", "americano", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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, 9, false ], null ], "\"Americano\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 26, 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, 9, false ], null ], "\"Latte\"", null ] ] }, "names": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "customer id", "address id", "date address from", "address type", "date address to", "customer id", "channel code", "active from date", "active to date", "contact number", "order id", "customer id", "order status", "order date", "order details", "order id", "product id", "order quantity" ], "table_names": [ "addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items" ], "col_set": [ "*", "address id", "address content", "city", "zip postcode", "state province county", "country", "other address details", "product id", "product details", "customer id", "payment method", "customer name", "date became customer", "other customer details", "date address from", "address type", "date address to", "channel code", "active from date", "active to date", "contact number", "order id", "order status", "order date", "order details", "order quantity" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6 ], "keys": { "15": 10, "10": 10, "16": 1, "1": 1, "20": 10, "26": 10, "30": 25, "25": 25, "31": 8, "8": 8 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "customers", "who", "have", "purchased", "both", "products", "Latte", "and", "Americano", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "purchased" ], [ "both" ], [ "product" ], [ "latte" ], [ "and" ], [ "americano" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "purchased", "VBN" ], [ "both", "DT" ], [ "product", "NN" ], [ "latte", "NN" ], [ "and", "CC" ], [ "americano", "NN" ], [ "?", "." ] ], "values": [ "Latte", "Americano" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(5) Filter(2) A(0) C(9) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(5) Filter(2) A(0) C(9) T(1) V(1)" }, { "db_id": "music_4", "query": "SELECT count(*) FROM artist", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "artist" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "artist" ], "question": "How many artists are there?", "question_toks": [ "how", "many", "artist", "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": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "How", "many", "artists", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "artist" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "artist", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "music_4", "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", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "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": "music_4", "query": "SELECT Age FROM artist", "query_toks": [ "SELECT", "Age", "FROM", "artist" ], "query_toks_no_value": [ "select", "age", "from", "artist" ], "question": "List the age of all music artists.", "question_toks": [ "list", "age", "of", "all", "music", "artist", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "List", "the", "age", "of", "all", "music", "artists", "." ], "question_arg": [ [ "list" ], [ "age" ], [ "of" ], [ "all" ], [ "music" ], [ "artist" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "age", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "music", "NN" ], [ "artist", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(3) T(0)" }, { "db_id": "music_4", "query": "SELECT Age FROM artist", "query_toks": [ "SELECT", "Age", "FROM", "artist" ], "query_toks_no_value": [ "select", "age", "from", "artist" ], "question": "What are the ages of all music artists?", "question_toks": [ "what", "are", "age", "of", "all", "music", "artist", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "ages", "of", "all", "music", "artists", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "age" ], [ "of" ], [ "all" ], [ "music" ], [ "artist" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "age", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "music", "NN" ], [ "artist", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(3) T(0)" }, { "db_id": "music_4", "query": "SELECT avg(Age) FROM artist", "query_toks": [ "SELECT", "avg", "(", "Age", ")", "FROM", "artist" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "artist" ], "question": "What is the average age of all artists?", "question_toks": [ "what", "is", "average", "age", "of", "all", "artist", "?" ], "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": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "average", "age", "of", "all", "artists", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "of" ], [ "all" ], [ "artist" ], [ "?" ] ], "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" ], [ "artist", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(3) T(0)" }, { "db_id": "music_4", "query": "SELECT avg(Age) FROM artist", "query_toks": [ "SELECT", "avg", "(", "Age", ")", "FROM", "artist" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "artist" ], "question": "Return the average age across all artists.", "question_toks": [ "return", "average", "age", "across", "all", "artist", "." ], "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": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Return", "the", "average", "age", "across", "all", "artists", "." ], "question_arg": [ [ "return" ], [ "average" ], [ "age" ], [ "across" ], [ "all" ], [ "artist" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "average", "JJ" ], [ "age", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "artist", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(3) T(0)" }, { "db_id": "music_4", "query": "SELECT Famous_Title FROM artist WHERE Artist = \"Triumfall\"", "query_toks": [ "SELECT", "Famous_Title", "FROM", "artist", "WHERE", "Artist", "=", "``", "Triumfall", "''" ], "query_toks_no_value": [ "select", "famous_title", "from", "artist", "where", "artist", "=", "value" ], "question": "What are the famous titles of the artist \"Triumfall\"?", "question_toks": [ "what", "are", "famous", "title", "of", "artist", "'", "triumfall", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Triumfall\"", null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "famous", "titles", "of", "the", "artist", "``", "Triumfall", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "famous", "title" ], [ "of" ], [ "artist" ], [ "'" ], [ "triumfall" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "famous", "JJ" ], [ "title", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "'", "''" ], [ "triumfall", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Triumfall" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_4", "query": "SELECT Famous_Title FROM artist WHERE Artist = \"Triumfall\"", "query_toks": [ "SELECT", "Famous_Title", "FROM", "artist", "WHERE", "Artist", "=", "``", "Triumfall", "''" ], "query_toks_no_value": [ "select", "famous_title", "from", "artist", "where", "artist", "=", "value" ], "question": "Return the famous titles of the artist called \"Triumfall\".", "question_toks": [ "return", "famous", "title", "of", "artist", "called", "'", "triumfall", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Triumfall\"", null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Return", "the", "famous", "titles", "of", "the", "artist", "called", "``", "Triumfall", "''", "." ], "question_arg": [ [ "return" ], [ "famous", "title" ], [ "of" ], [ "artist" ], [ "called" ], [ "'" ], [ "triumfall" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "famous", "JJ" ], [ "title", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "called", "VBN" ], [ "'", "''" ], [ "triumfall", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Triumfall" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_4", "query": "SELECT distinct(Famous_Release_date) FROM artist", "query_toks": [ "SELECT", "distinct", "(", "Famous_Release_date", ")", "FROM", "artist" ], "query_toks_no_value": [ "select", "distinct", "(", "famous_release_date", ")", "from", "artist" ], "question": "What are the distinct Famous release dates?", "question_toks": [ "what", "are", "distinct", "famous", "release", "date", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "distinct", "Famous", "release", "dates", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "famous", "release", "date" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "famous", "JJ" ], [ "release", "NN" ], [ "date", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(5) T(0)" }, { "db_id": "music_4", "query": "SELECT distinct(Famous_Release_date) FROM artist", "query_toks": [ "SELECT", "distinct", "(", "Famous_Release_date", ")", "FROM", "artist" ], "query_toks_no_value": [ "select", "distinct", "(", "famous_release_date", ")", "from", "artist" ], "question": "Give the distinct famous release dates for all artists.", "question_toks": [ "give", "distinct", "famous", "release", "date", "for", "all", "artist", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Give", "the", "distinct", "famous", "release", "dates", "for", "all", "artists", "." ], "question_arg": [ [ "give" ], [ "distinct" ], [ "famous", "release", "date" ], [ "for" ], [ "all" ], [ "artist" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "distinct", "NN" ], [ "famous", "JJ" ], [ "release", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "artist", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(5) T(0)" }, { "db_id": "music_4", "query": "SELECT Date_of_ceremony , RESULT FROM music_festival", "query_toks": [ "SELECT", "Date_of_ceremony", ",", "RESULT", "FROM", "music_festival" ], "query_toks_no_value": [ "select", "date_of_ceremony", ",", "result", "from", "music_festival" ], "question": "Return the dates of ceremony and the results of all music festivals", "question_toks": [ "return", "date", "of", "ceremony", "and", "result", "of", "all", "music", "festival" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Return", "the", "dates", "of", "ceremony", "and", "the", "results", "of", "all", "music", "festivals" ], "question_arg": [ [ "return" ], [ "date", "of", "ceremony" ], [ "and" ], [ "result" ], [ "of" ], [ "all" ], [ "music", "festival" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ] ], "nltk_pos": [ [ "return", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "ceremony", "NN" ], [ "and", "CC" ], [ "result", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "music", "NN" ], [ "festival", "NN" ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(2) A(0) C(16) T(2)" }, { "db_id": "music_4", "query": "SELECT Date_of_ceremony , RESULT FROM music_festival", "query_toks": [ "SELECT", "Date_of_ceremony", ",", "RESULT", "FROM", "music_festival" ], "query_toks_no_value": [ "select", "date_of_ceremony", ",", "result", "from", "music_festival" ], "question": "What are the dates of ceremony and results for each music festival?", "question_toks": [ "what", "are", "date", "of", "ceremony", "and", "result", "for", "each", "music", "festival", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "dates", "of", "ceremony", "and", "results", "for", "each", "music", "festival", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date", "of", "ceremony" ], [ "and" ], [ "result" ], [ "for" ], [ "each" ], [ "music", "festival" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "of", "IN" ], [ "ceremony", "NN" ], [ "and", "CC" ], [ "result", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "music", "NN" ], [ "festival", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(2) A(0) C(16) T(2)" }, { "db_id": "music_4", "query": "SELECT Category FROM music_festival WHERE RESULT = \"Awarded\"", "query_toks": [ "SELECT", "Category", "FROM", "music_festival", "WHERE", "RESULT", "=", "``", "Awarded", "''" ], "query_toks_no_value": [ "select", "category", "from", "music_festival", "where", "result", "=", "value" ], "question": "What are the category of music festivals with result \"Awarded\"?", "question_toks": [ "what", "are", "category", "of", "music", "festival", "with", "result", "'", "awarded", "'", "?" ], "sql": { "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": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Awarded\"", null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "category", "of", "music", "festivals", "with", "result", "``", "Awarded", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "category" ], [ "of" ], [ "music", "festival" ], [ "with" ], [ "result" ], [ "'" ], [ "awarded" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "category", "NN" ], [ "of", "IN" ], [ "music", "NN" ], [ "festival", "NN" ], [ "with", "IN" ], [ "result", "NN" ], [ "'", "''" ], [ "awarded", "VBN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Awarded" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(2) A(0) C(16) T(2) V(0)" }, { "db_id": "music_4", "query": "SELECT Category FROM music_festival WHERE RESULT = \"Awarded\"", "query_toks": [ "SELECT", "Category", "FROM", "music_festival", "WHERE", "RESULT", "=", "``", "Awarded", "''" ], "query_toks_no_value": [ "select", "category", "from", "music_festival", "where", "result", "=", "value" ], "question": "Return the categories of music festivals that have the result \"Awarded\".", "question_toks": [ "return", "category", "of", "music", "festival", "that", "have", "result", "'", "awarded", "'", "." ], "sql": { "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": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Awarded\"", null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Return", "the", "categories", "of", "music", "festivals", "that", "have", "the", "result", "``", "Awarded", "''", "." ], "question_arg": [ [ "return" ], [ "category" ], [ "of" ], [ "music", "festival" ], [ "that" ], [ "have" ], [ "result" ], [ "'" ], [ "awarded" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "category", "NN" ], [ "of", "IN" ], [ "music", "NN" ], [ "festival", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "result", "VBN" ], [ "'", "''" ], [ "awarded", "VBN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Awarded" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(2) A(0) C(16) T(2) V(0)" }, { "db_id": "music_4", "query": "SELECT max(Weeks_on_Top) , min(Weeks_on_Top) FROM volume", "query_toks": [ "SELECT", "max", "(", "Weeks_on_Top", ")", ",", "min", "(", "Weeks_on_Top", ")", "FROM", "volume" ], "query_toks_no_value": [ "select", "max", "(", "weeks_on_top", ")", ",", "min", "(", "weeks_on_top", ")", "from", "volume" ], "question": "What are the maximum and minimum week on top of all volumes?", "question_toks": [ "what", "are", "maximum", "and", "minimum", "week", "on", "top", "of", "all", "volume", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 9, false ], null ] ], [ 2, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "maximum", "and", "minimum", "week", "on", "top", "of", "all", "volumes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "week", "on", "top" ], [ "of" ], [ "all" ], [ "volume" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "week", "NN" ], [ "on", "IN" ], [ "top", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "volume", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(9) T(1) A(2) C(9) T(1)" }, { "db_id": "music_4", "query": "SELECT max(Weeks_on_Top) , min(Weeks_on_Top) FROM volume", "query_toks": [ "SELECT", "max", "(", "Weeks_on_Top", ")", ",", "min", "(", "Weeks_on_Top", ")", "FROM", "volume" ], "query_toks_no_value": [ "select", "max", "(", "weeks_on_top", ")", ",", "min", "(", "weeks_on_top", ")", "from", "volume" ], "question": "Give the maximum and minimum weeks on top across all volumes.", "question_toks": [ "give", "maximum", "and", "minimum", "week", "on", "top", "across", "all", "volume", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 9, false ], null ] ], [ 2, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Give", "the", "maximum", "and", "minimum", "weeks", "on", "top", "across", "all", "volumes", "." ], "question_arg": [ [ "give" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "week", "on", "top" ], [ "across" ], [ "all" ], [ "volume" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "maximum", "NN" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "week", "NN" ], [ "on", "IN" ], [ "top", "JJ" ], [ "across", "IN" ], [ "all", "DT" ], [ "volume", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(9) T(1) A(2) C(9) T(1)" }, { "db_id": "music_4", "query": "SELECT Song FROM volume WHERE Weeks_on_Top > 1", "query_toks": [ "SELECT", "Song", "FROM", "volume", "WHERE", "Weeks_on_Top", ">", "1" ], "query_toks_no_value": [ "select", "song", "from", "volume", "where", "weeks_on_top", ">", "value" ], "question": "What are the songs in volumes with more than 1 week on top?", "question_toks": [ "what", "are", "song", "in", "volume", "with", "more", "than", "1", "week", "on", "top", "?" ], "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, 9, false ], null ], 1.0, null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "songs", "in", "volumes", "with", "more", "than", "1", "week", "on", "top", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "song" ], [ "in" ], [ "volume" ], [ "with" ], [ "more" ], [ "than" ], [ "1" ], [ "week", "on", "top" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "song", "JJ" ], [ "in", "IN" ], [ "volume", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1", "CD" ], [ "week", "NN" ], [ "on", "IN" ], [ "top", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(5) A(0) C(9) T(1) V(0)" }, { "db_id": "music_4", "query": "SELECT Song FROM volume WHERE Weeks_on_Top > 1", "query_toks": [ "SELECT", "Song", "FROM", "volume", "WHERE", "Weeks_on_Top", ">", "1" ], "query_toks_no_value": [ "select", "song", "from", "volume", "where", "weeks_on_top", ">", "value" ], "question": "Give the songs included in volumes that have more than 1 week on top.", "question_toks": [ "give", "song", "included", "in", "volume", "that", "have", "more", "than", "1", "week", "on", "top", "." ], "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, 9, false ], null ], 1.0, null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Give", "the", "songs", "included", "in", "volumes", "that", "have", "more", "than", "1", "week", "on", "top", "." ], "question_arg": [ [ "give" ], [ "song" ], [ "included" ], [ "in" ], [ "volume" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "1" ], [ "week", "on", "top" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "song", "NN" ], [ "included", "VBN" ], [ "in", "IN" ], [ "volume", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1", "CD" ], [ "week", "NN" ], [ "on", "IN" ], [ "top", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(5) A(0) C(9) T(1) V(0)" }, { "db_id": "music_4", "query": "SELECT Song FROM volume ORDER BY Song", "query_toks": [ "SELECT", "Song", "FROM", "volume", "ORDER", "BY", "Song" ], "query_toks_no_value": [ "select", "song", "from", "volume", "order", "by", "song" ], "question": "Please list all songs in volumes in ascending alphabetical order.", "question_toks": [ "please", "list", "all", "song", "in", "volume", "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": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Please", "list", "all", "songs", "in", "volumes", "in", "ascending", "alphabetical", "order", "." ], "question_arg": [ [ "please" ], [ "list" ], [ "all" ], [ "song" ], [ "in" ], [ "volume" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "list", "NN" ], [ "all", "DT" ], [ "song", "NN" ], [ "in", "IN" ], [ "volume", "NN" ], [ "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": "music_4", "query": "SELECT Song FROM volume ORDER BY Song", "query_toks": [ "SELECT", "Song", "FROM", "volume", "ORDER", "BY", "Song" ], "query_toks_no_value": [ "select", "song", "from", "volume", "order", "by", "song" ], "question": "What are the the songs in volumes, listed in ascending order?", "question_toks": [ "what", "are", "song", "in", "volume", ",", "listed", "in", "ascending", "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": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "the", "songs", "in", "volumes", ",", "listed", "in", "ascending", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "song" ], [ "in" ], [ "volume" ], [ "," ], [ "listed" ], [ "in" ], [ "ascending" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "song", "JJ" ], [ "in", "IN" ], [ "volume", "NN" ], [ ",", "," ], [ "listed", "VBN" ], [ "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(10) T(1)" }, { "db_id": "music_4", "query": "SELECT COUNT(DISTINCT Artist_ID) FROM volume", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "Artist_ID", ")", "FROM", "volume" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "artist_id", ")", "from", "volume" ], "question": "How many distinct artists do the volumes associate to?", "question_toks": [ "how", "many", "distinct", "artist", "do", "volume", "associate", "to", "?" ], "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": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "How", "many", "distinct", "artists", "do", "the", "volumes", "associate", "to", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "artist" ], [ "do" ], [ "volume" ], [ "associate" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "artist", "NN" ], [ "do", "VBP" ], [ "volume", "NN" ], [ "associate", "VB" ], [ "to", "TO" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(1) T(1)" }, { "db_id": "music_4", "query": "SELECT COUNT(DISTINCT Artist_ID) FROM volume", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "Artist_ID", ")", "FROM", "volume" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "artist_id", ")", "from", "volume" ], "question": "Count the number of distinct artists who have volumes.", "question_toks": [ "count", "number", "of", "distinct", "artist", "who", "have", "volume", "." ], "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": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Count", "the", "number", "of", "distinct", "artists", "who", "have", "volumes", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "distinct" ], [ "artist" ], [ "who" ], [ "have" ], [ "volume" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "artist", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "volume", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(1) T(1)" }, { "db_id": "music_4", "query": "SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T2.Weeks_on_Top > 2", "query_toks": [ "SELECT", "T1.Date_of_ceremony", "FROM", "music_festival", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Volume", "=", "T2.Volume_ID", "WHERE", "T2.Weeks_on_Top", ">", "2" ], "query_toks_no_value": [ "select", "t1", ".", "date_of_ceremony", "from", "music_festival", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "volume", "=", "t2", ".", "volume_id", "where", "t2", ".", "weeks_on_top", ">", "value" ], "question": "Please show the date of ceremony of the volumes that last more than 2 weeks on top.", "question_toks": [ "please", "show", "date", "of", "ceremony", "of", "volume", "that", "last", "more", "than", "2", "week", "on", "top", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, 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, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 2.0, null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Please", "show", "the", "date", "of", "ceremony", "of", "the", "volumes", "that", "last", "more", "than", "2", "weeks", "on", "top", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "date", "of", "ceremony" ], [ "of" ], [ "volume" ], [ "that" ], [ "last" ], [ "more" ], [ "than" ], [ "2" ], [ "week", "on", "top" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "ceremony", "NN" ], [ "of", "IN" ], [ "volume", "NN" ], [ "that", "IN" ], [ "last", "JJ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "week", "NN" ], [ "on", "IN" ], [ "top", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(5) A(0) C(9) T(1) V(0)" }, { "db_id": "music_4", "query": "SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T2.Weeks_on_Top > 2", "query_toks": [ "SELECT", "T1.Date_of_ceremony", "FROM", "music_festival", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Volume", "=", "T2.Volume_ID", "WHERE", "T2.Weeks_on_Top", ">", "2" ], "query_toks_no_value": [ "select", "t1", ".", "date_of_ceremony", "from", "music_festival", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "volume", "=", "t2", ".", "volume_id", "where", "t2", ".", "weeks_on_top", ">", "value" ], "question": "What are the dates of ceremony at music festivals corresponding to volumes that lasted more than 2 weeks on top?", "question_toks": [ "what", "are", "date", "of", "ceremony", "at", "music", "festival", "corresponding", "to", "volume", "that", "lasted", "more", "than", "2", "week", "on", "top", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, 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, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 2.0, null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "dates", "of", "ceremony", "at", "music", "festivals", "corresponding", "to", "volumes", "that", "lasted", "more", "than", "2", "weeks", "on", "top", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date", "of", "ceremony" ], [ "at" ], [ "music", "festival" ], [ "corresponding" ], [ "to" ], [ "volume" ], [ "that" ], [ "lasted" ], [ "more" ], [ "than" ], [ "2" ], [ "week", "on", "top" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "of", "IN" ], [ "ceremony", "NN" ], [ "at", "IN" ], [ "music", "NN" ], [ "festival", "NN" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "volume", "NN" ], [ "that", "WDT" ], [ "lasted", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "week", "NN" ], [ "on", "IN" ], [ "top", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(5) A(0) C(9) T(1) V(0)" }, { "db_id": "music_4", "query": "SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T1.Result = \"Nominated\"", "query_toks": [ "SELECT", "T2.Song", "FROM", "music_festival", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Volume", "=", "T2.Volume_ID", "WHERE", "T1.Result", "=", "``", "Nominated", "''" ], "query_toks_no_value": [ "select", "t2", ".", "song", "from", "music_festival", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "volume", "=", "t2", ".", "volume_id", "where", "t1", ".", "result", "=", "value" ], "question": "Please show the songs that have result \"nominated\" at music festivals.", "question_toks": [ "please", "show", "song", "that", "have", "result", "'", "nominated", "'", "at", "music", "festival", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, 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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Nominated\"", null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Please", "show", "the", "songs", "that", "have", "result", "``", "nominated", "''", "at", "music", "festivals", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "song" ], [ "that" ], [ "have" ], [ "result" ], [ "'" ], [ "nominated" ], [ "'" ], [ "at" ], [ "music", "festival" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "song", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "result", "VBN" ], [ "'", "''" ], [ "nominated", "VBN" ], [ "'", "POS" ], [ "at", "IN" ], [ "music", "NN" ], [ "festival", "NN" ], [ ".", "." ] ], "values": [ "Nominated", "nominated" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(16) T(2) V(0)" }, { "db_id": "music_4", "query": "SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T1.Result = \"Nominated\"", "query_toks": [ "SELECT", "T2.Song", "FROM", "music_festival", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Volume", "=", "T2.Volume_ID", "WHERE", "T1.Result", "=", "``", "Nominated", "''" ], "query_toks_no_value": [ "select", "t2", ".", "song", "from", "music_festival", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "volume", "=", "t2", ".", "volume_id", "where", "t1", ".", "result", "=", "value" ], "question": "What are the songs in volumes that have resulted in a nomination at music festivals?", "question_toks": [ "what", "are", "song", "in", "volume", "that", "have", "resulted", "in", "a", "nomination", "at", "music", "festival", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, 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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Nominated\"", null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "songs", "in", "volumes", "that", "have", "resulted", "in", "a", "nomination", "at", "music", "festivals", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "song" ], [ "in" ], [ "volume" ], [ "that" ], [ "have" ], [ "resulted" ], [ "in" ], [ "a" ], [ "nomination" ], [ "at" ], [ "music", "festival" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "song", "JJ" ], [ "in", "IN" ], [ "volume", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "resulted", "VBN" ], [ "in", "IN" ], [ "a", "DT" ], [ "nomination", "NN" ], [ "at", "IN" ], [ "music", "NN" ], [ "festival", "NN" ], [ "?", "." ] ], "values": [ "Nominated" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(16) T(2) V(0)" }, { "db_id": "music_4", "query": "SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.Artist = \"Gorgoroth\"", "query_toks": [ "SELECT", "T2.Issue_Date", "FROM", "artist", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Artist_ID", "=", "T2.Artist_ID", "WHERE", "T1.Artist", "=", "``", "Gorgoroth", "''" ], "query_toks_no_value": [ "select", "t2", ".", "issue_date", "from", "artist", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t1", ".", "artist", "=", "value" ], "question": "What are the issue dates of volumes associated with the artist \"Gorgoroth\"?", "question_toks": [ "what", "are", "issue", "date", "of", "volume", "associated", "with", "artist", "'", "gorgoroth", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, 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, 2, [ 0, [ 0, 2, false ], null ], "\"Gorgoroth\"", null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "issue", "dates", "of", "volumes", "associated", "with", "the", "artist", "``", "Gorgoroth", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "issue", "date" ], [ "of" ], [ "volume" ], [ "associated" ], [ "with" ], [ "artist" ], [ "'" ], [ "gorgoroth" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "issue", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "volume", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "artist", "NN" ], [ "'", "''" ], [ "gorgoroth", "CC" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Gorgoroth" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_4", "query": "SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.Artist = \"Gorgoroth\"", "query_toks": [ "SELECT", "T2.Issue_Date", "FROM", "artist", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Artist_ID", "=", "T2.Artist_ID", "WHERE", "T1.Artist", "=", "``", "Gorgoroth", "''" ], "query_toks_no_value": [ "select", "t2", ".", "issue_date", "from", "artist", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t1", ".", "artist", "=", "value" ], "question": "Return the issue dates of volumes that are by the artist named Gorgoroth.", "question_toks": [ "return", "issue", "date", "of", "volume", "that", "are", "by", "artist", "named", "gorgoroth", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, 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, 2, [ 0, [ 0, 2, false ], null ], "\"Gorgoroth\"", null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Return", "the", "issue", "dates", "of", "volumes", "that", "are", "by", "the", "artist", "named", "Gorgoroth", "." ], "question_arg": [ [ "return" ], [ "issue", "date" ], [ "of" ], [ "volume" ], [ "that" ], [ "are" ], [ "by" ], [ "artist" ], [ "named" ], [ "gorgoroth" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "issue", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "volume", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "by", "IN" ], [ "artist", "NN" ], [ "named", "VBN" ], [ "gorgoroth", "NN" ], [ ".", "." ] ], "values": [ "Gorgoroth" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "music_4", "query": "SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age >= 32", "query_toks": [ "SELECT", "T2.Song", "FROM", "artist", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Artist_ID", "=", "T2.Artist_ID", "WHERE", "T1.age", ">", "=", "32" ], "query_toks_no_value": [ "select", "t2", ".", "song", "from", "artist", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t1", ".", "age", ">", "=", "value" ], "question": "What are the songs in volumes associated with the artist aged 32 or older?", "question_toks": [ "what", "are", "song", "in", "volume", "associated", "with", "artist", "aged", "32", "or", "older", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, 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, 5, [ 0, [ 0, 3, false ], null ], 32.0, null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "songs", "in", "volumes", "associated", "with", "the", "artist", "aged", "32", "or", "older", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "song" ], [ "in" ], [ "volume" ], [ "associated" ], [ "with" ], [ "artist" ], [ "aged" ], [ "32" ], [ "or" ], [ "older" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "song", "JJ" ], [ "in", "IN" ], [ "volume", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "artist", "NN" ], [ "aged", "VBD" ], [ "32", "CD" ], [ "or", "CC" ], [ "older", "JJR" ], [ "?", "." ] ], "values": [ "32" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(7) A(0) C(3) T(0) V(0)" }, { "db_id": "music_4", "query": "SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age >= 32", "query_toks": [ "SELECT", "T2.Song", "FROM", "artist", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Artist_ID", "=", "T2.Artist_ID", "WHERE", "T1.age", ">", "=", "32" ], "query_toks_no_value": [ "select", "t2", ".", "song", "from", "artist", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t1", ".", "age", ">", "=", "value" ], "question": "Return names of songs in volumes that are by artists that are at least 32 years old.", "question_toks": [ "return", "name", "of", "song", "in", "volume", "that", "are", "by", "artist", "that", "are", "at", "least", "32", "year", "old", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, 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, 5, [ 0, [ 0, 3, false ], null ], 32.0, null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Return", "names", "of", "songs", "in", "volumes", "that", "are", "by", "artists", "that", "are", "at", "least", "32", "years", "old", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "song" ], [ "in" ], [ "volume" ], [ "that" ], [ "are" ], [ "by" ], [ "artist" ], [ "that" ], [ "are" ], [ "at" ], [ "least" ], [ "32" ], [ "year" ], [ "old" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "in", "IN" ], [ "volume", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "by", "IN" ], [ "artist", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "32", "CD" ], [ "year", "NN" ], [ "old", "JJ" ], [ ".", "." ] ], "values": [ "32" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(7) A(0) C(3) T(0) V(0)" }, { "db_id": "music_4", "query": "SELECT avg(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 25", "query_toks": [ "SELECT", "avg", "(", "T2.Weeks_on_Top", ")", "FROM", "artist", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Artist_ID", "=", "T2.Artist_ID", "WHERE", "T1.age", "<", "=", "25" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "weeks_on_top", ")", "from", "artist", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t1", ".", "age", "<", "=", "value" ], "question": "What is the average weeks on top of volumes associated with the artist aged 25 or younger?", "question_toks": [ "what", "is", "average", "week", "on", "top", "of", "volume", "associated", "with", "artist", "aged", "25", "or", "younger", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 6, [ 0, [ 0, 3, false ], null ], 25.0, null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "average", "weeks", "on", "top", "of", "volumes", "associated", "with", "the", "artist", "aged", "25", "or", "younger", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "week", "on", "top" ], [ "of" ], [ "volume" ], [ "associated" ], [ "with" ], [ "artist" ], [ "aged" ], [ "25" ], [ "or" ], [ "younger" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "week", "NN" ], [ "on", "IN" ], [ "top", "NN" ], [ "of", "IN" ], [ "volume", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "artist", "NN" ], [ "aged", "VBD" ], [ "25", "CD" ], [ "or", "CC" ], [ "younger", "JJR" ], [ "?", "." ] ], "values": [ "25" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(9) T(1) Filter(6) A(0) C(3) T(0) V(0)" }, { "db_id": "music_4", "query": "SELECT avg(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 25", "query_toks": [ "SELECT", "avg", "(", "T2.Weeks_on_Top", ")", "FROM", "artist", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Artist_ID", "=", "T2.Artist_ID", "WHERE", "T1.age", "<", "=", "25" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "weeks_on_top", ")", "from", "artist", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t1", ".", "age", "<", "=", "value" ], "question": "Return the average number of weeks on top for volumes by artists that are at most 25 years old.", "question_toks": [ "return", "average", "number", "of", "week", "on", "top", "for", "volume", "by", "artist", "that", "are", "at", "most", "25", "year", "old", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 6, [ 0, [ 0, 3, false ], null ], 25.0, null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Return", "the", "average", "number", "of", "weeks", "on", "top", "for", "volumes", "by", "artists", "that", "are", "at", "most", "25", "years", "old", "." ], "question_arg": [ [ "return" ], [ "average" ], [ "number" ], [ "of" ], [ "week", "on", "top" ], [ "for" ], [ "volume" ], [ "by" ], [ "artist" ], [ "that" ], [ "are" ], [ "at" ], [ "most" ], [ "25" ], [ "year" ], [ "old" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "week", "NN" ], [ "on", "IN" ], [ "top", "NN" ], [ "for", "IN" ], [ "volume", "NN" ], [ "by", "IN" ], [ "artist", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "at", "IN" ], [ "most", "JJS" ], [ "25", "CD" ], [ "year", "NN" ], [ "old", "JJ" ], [ ".", "." ] ], "values": [ "25" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(9) T(1) Filter(6) A(0) C(3) T(0) V(0)" }, { "db_id": "music_4", "query": "SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2", "query_toks": [ "SELECT", "T1.Famous_Title", "FROM", "artist", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Artist_ID", "=", "T2.Artist_ID", "WHERE", "T2.Weeks_on_Top", ">", "2" ], "query_toks_no_value": [ "select", "t1", ".", "famous_title", "from", "artist", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t2", ".", "weeks_on_top", ">", "value" ], "question": "What are the famous title of the artists associated with volumes with more than 2 weeks on top?", "question_toks": [ "what", "are", "famous", "title", "of", "artist", "associated", "with", "volume", "with", "more", "than", "2", "week", "on", "top", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 2.0, null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "famous", "title", "of", "the", "artists", "associated", "with", "volumes", "with", "more", "than", "2", "weeks", "on", "top", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "famous", "title" ], [ "of" ], [ "artist" ], [ "associated" ], [ "with" ], [ "volume" ], [ "with" ], [ "more" ], [ "than" ], [ "2" ], [ "week", "on", "top" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "famous", "JJ" ], [ "title", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "volume", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "week", "NN" ], [ "on", "IN" ], [ "top", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(5) A(0) C(9) T(1) V(0)" }, { "db_id": "music_4", "query": "SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2", "query_toks": [ "SELECT", "T1.Famous_Title", "FROM", "artist", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Artist_ID", "=", "T2.Artist_ID", "WHERE", "T2.Weeks_on_Top", ">", "2" ], "query_toks_no_value": [ "select", "t1", ".", "famous_title", "from", "artist", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t2", ".", "weeks_on_top", ">", "value" ], "question": "Return the famous titles for artists that have volumes that lasted more than 2 weeks on top.", "question_toks": [ "return", "famous", "title", "for", "artist", "that", "have", "volume", "that", "lasted", "more", "than", "2", "week", "on", "top", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 2.0, null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Return", "the", "famous", "titles", "for", "artists", "that", "have", "volumes", "that", "lasted", "more", "than", "2", "weeks", "on", "top", "." ], "question_arg": [ [ "return" ], [ "famous", "title" ], [ "for" ], [ "artist" ], [ "that" ], [ "have" ], [ "volume" ], [ "that" ], [ "lasted" ], [ "more" ], [ "than" ], [ "2" ], [ "week", "on", "top" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "famous", "JJ" ], [ "title", "NN" ], [ "for", "IN" ], [ "artist", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "volume", "NN" ], [ "that", "WDT" ], [ "lasted", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "week", "NN" ], [ "on", "IN" ], [ "top", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(5) A(0) C(9) T(1) V(0)" }, { "db_id": "music_4", "query": "SELECT Famous_Title , Age FROM artist ORDER BY Age DESC", "query_toks": [ "SELECT", "Famous_Title", ",", "Age", "FROM", "artist", "ORDER", "BY", "Age", "DESC" ], "query_toks_no_value": [ "select", "famous_title", ",", "age", "from", "artist", "order", "by", "age", "desc" ], "question": "Please list the age and famous title of artists in descending order of age.", "question_toks": [ "please", "list", "age", "and", "famous", "title", "of", "artist", "in", "descending", "order", "of", "age", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Please", "list", "the", "age", "and", "famous", "title", "of", "artists", "in", "descending", "order", "of", "age", "." ], "question_arg": [ [ "please" ], [ "list" ], [ "age" ], [ "and" ], [ "famous", "title" ], [ "of" ], [ "artist" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "JJ" ], [ "list", "NN" ], [ "age", "NN" ], [ "and", "CC" ], [ "famous", "JJ" ], [ "title", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "age", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(4) T(0) A(0) C(3) T(0) Order(0) A(0) C(3) T(0)" }, { "db_id": "music_4", "query": "SELECT Famous_Title , Age FROM artist ORDER BY Age DESC", "query_toks": [ "SELECT", "Famous_Title", ",", "Age", "FROM", "artist", "ORDER", "BY", "Age", "DESC" ], "query_toks_no_value": [ "select", "famous_title", ",", "age", "from", "artist", "order", "by", "age", "desc" ], "question": "What are the famous titles and ages of each artist, listed in descending order by age?", "question_toks": [ "what", "are", "famous", "title", "and", "age", "of", "each", "artist", ",", "listed", "in", "descending", "order", "by", "age", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "famous", "titles", "and", "ages", "of", "each", "artist", ",", "listed", "in", "descending", "order", "by", "age", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "famous", "title" ], [ "and" ], [ "age" ], [ "of" ], [ "each" ], [ "artist" ], [ "," ], [ "listed" ], [ "in" ], [ "descending" ], [ "order" ], [ "by" ], [ "age" ], [ "?" ] ], "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" ], [ "famous", "JJ" ], [ "title", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "artist", "NN" ], [ ",", "," ], [ "listed", "VBN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "by", "IN" ], [ "age", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(4) T(0) A(0) C(3) T(0) Order(0) A(0) C(3) T(0)" }, { "db_id": "music_4", "query": "SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1", "query_toks": [ "SELECT", "Famous_Release_date", "FROM", "artist", "ORDER", "BY", "Age", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "famous_release_date", "from", "artist", "order", "by", "age", "desc", "limit", "value" ], "question": "What is the famous release date of the artist with the oldest age?", "question_toks": [ "what", "is", "famous", "release", "date", "of", "artist", "with", "oldest", "age", "?" ], "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, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "famous", "release", "date", "of", "the", "artist", "with", "the", "oldest", "age", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "famous", "release", "date" ], [ "of" ], [ "artist" ], [ "with" ], [ "oldest" ], [ "age" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "famous", "JJ" ], [ "release", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "with", "IN" ], [ "oldest", "JJS" ], [ "age", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(0) Sup(0) A(0) C(3) T(0)" }, { "db_id": "music_4", "query": "SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1", "query_toks": [ "SELECT", "Famous_Release_date", "FROM", "artist", "ORDER", "BY", "Age", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "famous_release_date", "from", "artist", "order", "by", "age", "desc", "limit", "value" ], "question": "Return the famous release date for the oldest artist.", "question_toks": [ "return", "famous", "release", "date", "for", "oldest", "artist", "." ], "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, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Return", "the", "famous", "release", "date", "for", "the", "oldest", "artist", "." ], "question_arg": [ [ "return" ], [ "famous", "release", "date" ], [ "for" ], [ "oldest" ], [ "artist" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "famous", "JJ" ], [ "release", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "oldest", "JJS" ], [ "artist", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(0) Sup(0) A(0) C(3) T(0)" }, { "db_id": "music_4", "query": "SELECT Category , COUNT(*) FROM music_festival GROUP BY Category", "query_toks": [ "SELECT", "Category", ",", "COUNT", "(", "*", ")", "FROM", "music_festival", "GROUP", "BY", "Category" ], "query_toks_no_value": [ "select", "category", ",", "count", "(", "*", ")", "from", "music_festival", "group", "by", "category" ], "question": "Please show the categories of the music festivals and the count.", "question_toks": [ "please", "show", "category", "of", "music", "festival", "and", "count", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Please", "show", "the", "categories", "of", "the", "music", "festivals", "and", "the", "count", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "category" ], [ "of" ], [ "music", "festival" ], [ "and" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "JJ" ], [ "category", "NN" ], [ "of", "IN" ], [ "music", "NN" ], [ "festival", "NN" ], [ "and", "CC" ], [ "count", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(14) T(2) A(3) C(0) T(2)" }, { "db_id": "music_4", "query": "SELECT Category , COUNT(*) FROM music_festival GROUP BY Category", "query_toks": [ "SELECT", "Category", ",", "COUNT", "(", "*", ")", "FROM", "music_festival", "GROUP", "BY", "Category" ], "query_toks_no_value": [ "select", "category", ",", "count", "(", "*", ")", "from", "music_festival", "group", "by", "category" ], "question": "Return the number of music festivals of each category.", "question_toks": [ "return", "number", "of", "music", "festival", "of", "each", "category", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Return", "the", "number", "of", "music", "festivals", "of", "each", "category", "." ], "question_arg": [ [ "return" ], [ "number" ], [ "of" ], [ "music", "festival" ], [ "of" ], [ "each" ], [ "category" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "music", "NN" ], [ "festival", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "category", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(14) T(2) A(3) C(0) T(2)" }, { "db_id": "music_4", "query": "SELECT RESULT FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "RESULT", "FROM", "music_festival", "GROUP", "BY", "RESULT", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "result", "from", "music_festival", "group", "by", "result", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most common result of the music festival?", "question_toks": [ "what", "is", "most", "common", "result", "of", "music", "festival", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "most", "common", "result", "of", "the", "music", "festival", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "common" ], [ "result" ], [ "of" ], [ "music", "festival" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "result", "NN" ], [ "of", "IN" ], [ "music", "NN" ], [ "festival", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(16) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "music_4", "query": "SELECT RESULT FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "RESULT", "FROM", "music_festival", "GROUP", "BY", "RESULT", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "result", "from", "music_festival", "group", "by", "result", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the result that is most frequent at music festivals.", "question_toks": [ "return", "result", "that", "is", "most", "frequent", "at", "music", "festival", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Return", "the", "result", "that", "is", "most", "frequent", "at", "music", "festivals", "." ], "question_arg": [ [ "return" ], [ "result" ], [ "that" ], [ "is" ], [ "most" ], [ "frequent" ], [ "at" ], [ "music", "festival" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "result", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "frequent", "JJ" ], [ "at", "IN" ], [ "music", "NN" ], [ "festival", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(16) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "music_4", "query": "SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "Category", "FROM", "music_festival", "GROUP", "BY", "Category", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "category", "from", "music_festival", "group", "by", "category", "having", "count", "(", "*", ")", ">", "value" ], "question": "Please show the categories of the music festivals with count more than 1.", "question_toks": [ "please", "show", "category", "of", "music", "festival", "with", "count", "more", "than", "1", "." ], "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": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Please", "show", "the", "categories", "of", "the", "music", "festivals", "with", "count", "more", "than", "1", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "category" ], [ "of" ], [ "music", "festival" ], [ "with" ], [ "count" ], [ "more" ], [ "than" ], [ "1" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "JJ" ], [ "category", "NN" ], [ "of", "IN" ], [ "music", "NN" ], [ "festival", "NN" ], [ "with", "IN" ], [ "count", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1", "CD" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "music_4", "query": "SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "Category", "FROM", "music_festival", "GROUP", "BY", "Category", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "category", "from", "music_festival", "group", "by", "category", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the categories of music festivals for which there have been more than 1 music festival?", "question_toks": [ "what", "are", "category", "of", "music", "festival", "for", "which", "there", "have", "been", "more", "than", "1", "music", "festival", "?" ], "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": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "categories", "of", "music", "festivals", "for", "which", "there", "have", "been", "more", "than", "1", "music", "festival", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "category" ], [ "of" ], [ "music", "festival" ], [ "for" ], [ "which" ], [ "there" ], [ "have" ], [ "been" ], [ "more" ], [ "than" ], [ "1" ], [ "music", "festival" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "category", "NN" ], [ "of", "IN" ], [ "music", "NN" ], [ "festival", "NN" ], [ "for", "IN" ], [ "which", "WDT" ], [ "there", "EX" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1", "CD" ], [ "music", "NN" ], [ "festival", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "music_4", "query": "SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1", "query_toks": [ "SELECT", "Song", "FROM", "volume", "ORDER", "BY", "Weeks_on_Top", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "song", "from", "volume", "order", "by", "weeks_on_top", "desc", "limit", "value" ], "question": "What is the song in the volume with the maximum weeks on top?", "question_toks": [ "what", "is", "song", "in", "volume", "with", "maximum", "week", "on", "top", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "song", "in", "the", "volume", "with", "the", "maximum", "weeks", "on", "top", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "song" ], [ "in" ], [ "volume" ], [ "with" ], [ "maximum" ], [ "week", "on", "top" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "song", "JJ" ], [ "in", "IN" ], [ "volume", "NN" ], [ "with", "IN" ], [ "maximum", "JJ" ], [ "week", "NN" ], [ "on", "IN" ], [ "top", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(0) C(9) T(1)" }, { "db_id": "music_4", "query": "SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1", "query_toks": [ "SELECT", "Song", "FROM", "volume", "ORDER", "BY", "Weeks_on_Top", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "song", "from", "volume", "order", "by", "weeks_on_top", "desc", "limit", "value" ], "question": "Return the song in the volume that has spent the most weeks on top?", "question_toks": [ "return", "song", "in", "volume", "that", "ha", "spent", "most", "week", "on", "top", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Return", "the", "song", "in", "the", "volume", "that", "has", "spent", "the", "most", "weeks", "on", "top", "?" ], "question_arg": [ [ "return" ], [ "song" ], [ "in" ], [ "volume" ], [ "that" ], [ "ha" ], [ "spent" ], [ "most" ], [ "week", "on", "top" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "song", "NN" ], [ "in", "IN" ], [ "volume", "NN" ], [ "that", "IN" ], [ "ha", "JJ" ], [ "spent", "VBD" ], [ "most", "JJS" ], [ "week", "NN" ], [ "on", "IN" ], [ "top", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(0) C(9) T(1)" }, { "db_id": "music_4", "query": "SELECT Famous_Title FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume)", "query_toks": [ "SELECT", "Famous_Title", "FROM", "artist", "WHERE", "Artist_ID", "NOT", "IN", "(", "SELECT", "Artist_ID", "FROM", "volume", ")" ], "query_toks_no_value": [ "select", "famous_title", "from", "artist", "where", "artist_id", "not", "in", "(", "select", "artist_id", "from", "volume", ")" ], "question": "Find the famous titles of artists that do not have any volume.", "question_toks": [ "find", "famous", "title", "of", "artist", "that", "do", "not", "have", "any", "volume", "." ], "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": [ [ 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, 11, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Find", "the", "famous", "titles", "of", "artists", "that", "do", "not", "have", "any", "volume", "." ], "question_arg": [ [ "find" ], [ "famous", "title" ], [ "of" ], [ "artist" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "volume" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "RB" ], [ "famous", "JJ" ], [ "title", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "volume", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(19) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1)" }, { "db_id": "music_4", "query": "SELECT Famous_Title FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume)", "query_toks": [ "SELECT", "Famous_Title", "FROM", "artist", "WHERE", "Artist_ID", "NOT", "IN", "(", "SELECT", "Artist_ID", "FROM", "volume", ")" ], "query_toks_no_value": [ "select", "famous_title", "from", "artist", "where", "artist_id", "not", "in", "(", "select", "artist_id", "from", "volume", ")" ], "question": "What are the famous titles of artists who do not have any volumes?", "question_toks": [ "what", "are", "famous", "title", "of", "artist", "who", "do", "not", "have", "any", "volume", "?" ], "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": [ [ 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, 11, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "famous", "titles", "of", "artists", "who", "do", "not", "have", "any", "volumes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "famous", "title" ], [ "of" ], [ "artist" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "volume" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "famous", "JJ" ], [ "title", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "volume", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(19) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1)" }, { "db_id": "music_4", "query": "SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top < 2", "query_toks": [ "SELECT", "T1.Famous_Title", "FROM", "artist", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Artist_ID", "=", "T2.Artist_ID", "WHERE", "T2.Weeks_on_Top", ">", "2", "INTERSECT", "SELECT", "T1.Famous_Title", "FROM", "artist", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Artist_ID", "=", "T2.Artist_ID", "WHERE", "T2.Weeks_on_Top", "<", "2" ], "query_toks_no_value": [ "select", "t1", ".", "famous_title", "from", "artist", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t2", ".", "weeks_on_top", ">", "value", "intersect", "select", "t1", ".", "famous_title", "from", "artist", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t2", ".", "weeks_on_top", "<", "value" ], "question": "Show the famous titles of the artists with both volumes that lasted more than 2 weeks on top and volumes that lasted less than 2 weeks on top.", "question_toks": [ "show", "famous", "title", "of", "artist", "with", "both", "volume", "that", "lasted", "more", "than", "2", "week", "on", "top", "and", "volume", "that", "lasted", "le", "than", "2", "week", "on", "top", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, 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, 11, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 9, false ], null ], 2.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 2.0, null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Show", "the", "famous", "titles", "of", "the", "artists", "with", "both", "volumes", "that", "lasted", "more", "than", "2", "weeks", "on", "top", "and", "volumes", "that", "lasted", "less", "than", "2", "weeks", "on", "top", "." ], "question_arg": [ [ "show" ], [ "famous", "title" ], [ "of" ], [ "artist" ], [ "with" ], [ "both" ], [ "volume" ], [ "that" ], [ "lasted" ], [ "more" ], [ "than" ], [ "2" ], [ "week", "on", "top" ], [ "and" ], [ "volume" ], [ "that" ], [ "lasted" ], [ "le" ], [ "than" ], [ "2" ], [ "week", "on", "top" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "famous", "JJ" ], [ "title", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "with", "IN" ], [ "both", "DT" ], [ "volume", "NN" ], [ "that", "WDT" ], [ "lasted", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "week", "NN" ], [ "on", "IN" ], [ "top", "JJ" ], [ "and", "CC" ], [ "volume", "NN" ], [ "that", "WDT" ], [ "lasted", "VBD" ], [ "le", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "week", "NN" ], [ "on", "IN" ], [ "top", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(5) A(0) C(9) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(4) A(0) C(9) T(1) V(0)" }, { "db_id": "music_4", "query": "SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top < 2", "query_toks": [ "SELECT", "T1.Famous_Title", "FROM", "artist", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Artist_ID", "=", "T2.Artist_ID", "WHERE", "T2.Weeks_on_Top", ">", "2", "INTERSECT", "SELECT", "T1.Famous_Title", "FROM", "artist", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Artist_ID", "=", "T2.Artist_ID", "WHERE", "T2.Weeks_on_Top", "<", "2" ], "query_toks_no_value": [ "select", "t1", ".", "famous_title", "from", "artist", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t2", ".", "weeks_on_top", ">", "value", "intersect", "select", "t1", ".", "famous_title", "from", "artist", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t2", ".", "weeks_on_top", "<", "value" ], "question": "What are the famous titles of artists who have not only had volumes that spent more than 2 weeks on top but also volumes that spent less than 2 weeks on top?", "question_toks": [ "what", "are", "famous", "title", "of", "artist", "who", "have", "not", "only", "had", "volume", "that", "spent", "more", "than", "2", "week", "on", "top", "but", "also", "volume", "that", "spent", "le", "than", "2", "week", "on", "top", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, 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, 11, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 9, false ], null ], 2.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 2.0, null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "famous", "titles", "of", "artists", "who", "have", "not", "only", "had", "volumes", "that", "spent", "more", "than", "2", "weeks", "on", "top", "but", "also", "volumes", "that", "spent", "less", "than", "2", "weeks", "on", "top", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "famous", "title" ], [ "of" ], [ "artist" ], [ "who" ], [ "have" ], [ "not" ], [ "only" ], [ "had" ], [ "volume" ], [ "that" ], [ "spent" ], [ "more" ], [ "than" ], [ "2" ], [ "week", "on", "top" ], [ "but" ], [ "also" ], [ "volume" ], [ "that" ], [ "spent" ], [ "le" ], [ "than" ], [ "2" ], [ "week", "on", "top" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "famous", "JJ" ], [ "title", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "not", "RB" ], [ "only", "RB" ], [ "had", "VBD" ], [ "volume", "NN" ], [ "that", "IN" ], [ "spent", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "week", "NN" ], [ "on", "IN" ], [ "top", "NN" ], [ "but", "CC" ], [ "also", "RB" ], [ "volume", "NN" ], [ "that", "IN" ], [ "spent", "VBD" ], [ "le", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "week", "NN" ], [ "on", "IN" ], [ "top", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(5) A(0) C(9) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(4) A(0) C(9) T(1) V(0)" }, { "db_id": "music_4", "query": "SELECT Date_of_ceremony FROM music_festival WHERE Category = \"Best Song\" AND RESULT = \"Awarded\"", "query_toks": [ "SELECT", "Date_of_ceremony", "FROM", "music_festival", "WHERE", "Category", "=", "``", "Best", "Song", "''", "AND", "RESULT", "=", "``", "Awarded", "''" ], "query_toks_no_value": [ "select", "date_of_ceremony", "from", "music_festival", "where", "category", "=", "value", "and", "result", "=", "value" ], "question": "What are the date of ceremony of music festivals with category \"Best Song\" and result \"Awarded\"?", "question_toks": [ "what", "are", "date", "of", "ceremony", "of", "music", "festival", "with", "category", "'", "best", "song", "'", "and", "result", "'", "awarded", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Best Song\"", null ], "and", [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Awarded\"", null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "date", "of", "ceremony", "of", "music", "festivals", "with", "category", "``", "Best", "Song", "''", "and", "result", "``", "Awarded", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date", "of", "ceremony" ], [ "of" ], [ "music", "festival" ], [ "with" ], [ "category" ], [ "'" ], [ "best" ], [ "song" ], [ "'" ], [ "and" ], [ "result" ], [ "'" ], [ "awarded" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "of", "IN" ], [ "ceremony", "NN" ], [ "of", "IN" ], [ "music", "NN" ], [ "festival", "NN" ], [ "with", "IN" ], [ "category", "NN" ], [ "'", "''" ], [ "best", "JJS" ], [ "song", "NN" ], [ "'", "''" ], [ "and", "CC" ], [ "result", "VB" ], [ "'", "''" ], [ "awarded", "VBN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Best Song", "Awarded" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(0) Filter(2) A(0) C(14) T(2) V(0) Filter(2) A(0) C(16) T(2) V(1)" }, { "db_id": "music_4", "query": "SELECT Date_of_ceremony FROM music_festival WHERE Category = \"Best Song\" AND RESULT = \"Awarded\"", "query_toks": [ "SELECT", "Date_of_ceremony", "FROM", "music_festival", "WHERE", "Category", "=", "``", "Best", "Song", "''", "AND", "RESULT", "=", "``", "Awarded", "''" ], "query_toks_no_value": [ "select", "date_of_ceremony", "from", "music_festival", "where", "category", "=", "value", "and", "result", "=", "value" ], "question": "Return the dates of ceremony corresponding to music festivals that had the category \"Best Song\" and result \"Awarded\".", "question_toks": [ "return", "date", "of", "ceremony", "corresponding", "to", "music", "festival", "that", "had", "category", "'", "best", "song", "'", "and", "result", "'", "awarded", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Best Song\"", null ], "and", [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Awarded\"", null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Return", "the", "dates", "of", "ceremony", "corresponding", "to", "music", "festivals", "that", "had", "the", "category", "``", "Best", "Song", "''", "and", "result", "``", "Awarded", "''", "." ], "question_arg": [ [ "return" ], [ "date", "of", "ceremony" ], [ "corresponding" ], [ "to" ], [ "music", "festival" ], [ "that" ], [ "had" ], [ "category" ], [ "'" ], [ "best" ], [ "song" ], [ "'" ], [ "and" ], [ "result" ], [ "'" ], [ "awarded" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "ceremony", "NN" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "music", "NN" ], [ "festival", "NN" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "category", "NN" ], [ "'", "''" ], [ "best", "JJS" ], [ "song", "NN" ], [ "'", "''" ], [ "and", "CC" ], [ "result", "VB" ], [ "'", "''" ], [ "awarded", "VBN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Best Song", "Awarded" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(0) Filter(2) A(0) C(14) T(2) V(0) Filter(2) A(0) C(16) T(2) V(1)" }, { "db_id": "music_4", "query": "SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top ASC LIMIT 1", "query_toks": [ "SELECT", "Issue_Date", "FROM", "volume", "ORDER", "BY", "Weeks_on_Top", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "issue_date", "from", "volume", "order", "by", "weeks_on_top", "asc", "limit", "value" ], "question": "What is the issue date of the volume with the minimum weeks on top?", "question_toks": [ "what", "is", "issue", "date", "of", "volume", "with", "minimum", "week", "on", "top", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "issue", "date", "of", "the", "volume", "with", "the", "minimum", "weeks", "on", "top", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "issue", "date" ], [ "of" ], [ "volume" ], [ "with" ], [ "minimum" ], [ "week", "on", "top" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "issue", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "volume", "NN" ], [ "with", "IN" ], [ "minimum", "JJ" ], [ "week", "NN" ], [ "on", "IN" ], [ "top", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(1) Sup(1) A(0) C(9) T(1)" }, { "db_id": "music_4", "query": "SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top ASC LIMIT 1", "query_toks": [ "SELECT", "Issue_Date", "FROM", "volume", "ORDER", "BY", "Weeks_on_Top", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "issue_date", "from", "volume", "order", "by", "weeks_on_top", "asc", "limit", "value" ], "question": "Return the issue date of the volume that has spent the fewest weeks on top.", "question_toks": [ "return", "issue", "date", "of", "volume", "that", "ha", "spent", "fewest", "week", "on", "top", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Return", "the", "issue", "date", "of", "the", "volume", "that", "has", "spent", "the", "fewest", "weeks", "on", "top", "." ], "question_arg": [ [ "return" ], [ "issue", "date" ], [ "of" ], [ "volume" ], [ "that" ], [ "ha" ], [ "spent" ], [ "fewest" ], [ "week", "on", "top" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "issue", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "volume", "NN" ], [ "that", "IN" ], [ "ha", "JJ" ], [ "spent", "NN" ], [ "fewest", "JJS" ], [ "week", "NN" ], [ "on", "IN" ], [ "top", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(1) Sup(1) A(0) C(9) T(1)" }, { "db_id": "music_4", "query": "SELECT COUNT(DISTINCT Artist_ID) FROM volume", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "Artist_ID", ")", "FROM", "volume" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "artist_id", ")", "from", "volume" ], "question": "How many distinct artists have volumes?", "question_toks": [ "how", "many", "distinct", "artist", "have", "volume", "?" ], "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": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "How", "many", "distinct", "artists", "have", "volumes", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "artist" ], [ "have" ], [ "volume" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "artist", "NN" ], [ "have", "VBP" ], [ "volume", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(1) T(1)" }, { "db_id": "music_4", "query": "SELECT COUNT(DISTINCT Artist_ID) FROM volume", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "Artist_ID", ")", "FROM", "volume" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "artist_id", ")", "from", "volume" ], "question": "Count the number of artists who have had volumes.", "question_toks": [ "count", "number", "of", "artist", "who", "have", "had", "volume", "." ], "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": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Count", "the", "number", "of", "artists", "who", "have", "had", "volumes", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "artist" ], [ "who" ], [ "have" ], [ "had" ], [ "volume" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "had", "VBN" ], [ "volume", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(1) T(1)" }, { "db_id": "music_4", "query": "SELECT RESULT , COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC", "query_toks": [ "SELECT", "RESULT", ",", "COUNT", "(", "*", ")", "FROM", "music_festival", "GROUP", "BY", "RESULT", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "result", ",", "count", "(", "*", ")", "from", "music_festival", "group", "by", "result", "order", "by", "count", "(", "*", ")", "desc" ], "question": "Please show the results of music festivals and the number of music festivals that have had each, ordered by this count.", "question_toks": [ "please", "show", "result", "of", "music", "festival", "and", "number", "of", "music", "festival", "that", "have", "had", "each", ",", "ordered", "by", "this", "count", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Please", "show", "the", "results", "of", "music", "festivals", "and", "the", "number", "of", "music", "festivals", "that", "have", "had", "each", ",", "ordered", "by", "this", "count", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "result" ], [ "of" ], [ "music", "festival" ], [ "and" ], [ "number" ], [ "of" ], [ "music", "festival" ], [ "that" ], [ "have" ], [ "had" ], [ "each" ], [ "," ], [ "ordered" ], [ "by" ], [ "this" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "result", "NN" ], [ "of", "IN" ], [ "music", "NN" ], [ "festival", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "music", "NN" ], [ "festival", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "had", "VBN" ], [ "each", "DT" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "this", "DT" ], [ "count", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(16) T(2) A(3) C(0) T(2) Order(0) A(3) C(0) T(2)" }, { "db_id": "music_4", "query": "SELECT RESULT , COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC", "query_toks": [ "SELECT", "RESULT", ",", "COUNT", "(", "*", ")", "FROM", "music_festival", "GROUP", "BY", "RESULT", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "result", ",", "count", "(", "*", ")", "from", "music_festival", "group", "by", "result", "order", "by", "count", "(", "*", ")", "desc" ], "question": "How many music festivals have had each kind of result, ordered descending by count?", "question_toks": [ "how", "many", "music", "festival", "have", "had", "each", "kind", "of", "result", ",", "ordered", "descending", "by", "count", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "How", "many", "music", "festivals", "have", "had", "each", "kind", "of", "result", ",", "ordered", "descending", "by", "count", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "music", "festival" ], [ "have" ], [ "had" ], [ "each" ], [ "kind" ], [ "of" ], [ "result" ], [ "," ], [ "ordered" ], [ "descending" ], [ "by" ], [ "count" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "music", "NN" ], [ "festival", "NN" ], [ "have", "VBP" ], [ "had", "VBN" ], [ "each", "DT" ], [ "kind", "NN" ], [ "of", "IN" ], [ "result", "NN" ], [ ",", "," ], [ "ordered", "VBD" ], [ "descending", "NN" ], [ "by", "IN" ], [ "count", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(16) T(2) A(3) C(0) T(2) Order(0) A(3) C(0) T(2)" }, { "db_id": "music_4", "query": "SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 23", "query_toks": [ "SELECT", "Issue_Date", "FROM", "artist", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Artist_ID", "=", "T2.Artist_ID", "WHERE", "T1.age", "<", "=", "23" ], "query_toks_no_value": [ "select", "issue_date", "from", "artist", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t1", ".", "age", "<", "=", "value" ], "question": "What are the issue dates of volumes associated with the artist aged 23 or younger?", "question_toks": [ "what", "are", "issue", "date", "of", "volume", "associated", "with", "artist", "aged", "23", "or", "younger", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, 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, 6, [ 0, [ 0, 3, false ], null ], 23.0, null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "issue", "dates", "of", "volumes", "associated", "with", "the", "artist", "aged", "23", "or", "younger", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "issue", "date" ], [ "of" ], [ "volume" ], [ "associated" ], [ "with" ], [ "artist" ], [ "aged" ], [ "23" ], [ "or" ], [ "younger" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "issue", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "volume", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "artist", "NN" ], [ "aged", "VBD" ], [ "23", "CD" ], [ "or", "CC" ], [ "younger", "JJR" ], [ "?", "." ] ], "values": [ "23" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(6) A(0) C(3) T(0) V(0)" }, { "db_id": "music_4", "query": "SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 23", "query_toks": [ "SELECT", "Issue_Date", "FROM", "artist", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Artist_ID", "=", "T2.Artist_ID", "WHERE", "T1.age", "<", "=", "23" ], "query_toks_no_value": [ "select", "issue_date", "from", "artist", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t1", ".", "age", "<", "=", "value" ], "question": "Return the issue dates of volumes by artists who are at most 23 years old?", "question_toks": [ "return", "issue", "date", "of", "volume", "by", "artist", "who", "are", "at", "most", "23", "year", "old", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, 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, 6, [ 0, [ 0, 3, false ], null ], 23.0, null ] ] }, "names": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "artist id", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "table_names": [ "artist", "volume", "music festival" ], "col_set": [ "*", "artist id", "artist", "age", "famous title", "famous release date", "volume id", "volume issue", "issue date", "weeks on top", "song", "id", "music festival", "date of ceremony", "category", "volume", "result" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "11": 1, "1": 1, "16": 6, "6": 6, "12": 12 }, "origin_question_toks": [ "Return", "the", "issue", "dates", "of", "volumes", "by", "artists", "who", "are", "at", "most", "23", "years", "old", "?" ], "question_arg": [ [ "return" ], [ "issue", "date" ], [ "of" ], [ "volume" ], [ "by" ], [ "artist" ], [ "who" ], [ "are" ], [ "at" ], [ "most" ], [ "23" ], [ "year" ], [ "old" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "issue", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "volume", "NN" ], [ "by", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "at", "IN" ], [ "most", "JJS" ], [ "23", "CD" ], [ "year", "NN" ], [ "old", "JJ" ], [ "?", "." ] ], "values": [ "23" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(6) A(0) C(3) T(0) V(0)" }, { "db_id": "roller_coaster", "query": "SELECT count(*) FROM roller_coaster", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "roller_coaster" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "roller_coaster" ], "question": "How many roller coasters are there?", "question_toks": [ "how", "many", "roller", "coaster", "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": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "country id", "name", "population", "area", "languages" ], "table_names": [ "roller coaster", "country" ], "col_set": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "population", "area", "languages" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "4": 10, "10": 10, "1": 1 }, "origin_question_toks": [ "How", "many", "roller", "coasters", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "roller", "coaster" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "roller", "NN" ], [ "coaster", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "roller_coaster", "query": "SELECT Name FROM roller_coaster ORDER BY LENGTH ASC", "query_toks": [ "SELECT", "Name", "FROM", "roller_coaster", "ORDER", "BY", "LENGTH", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "roller_coaster", "order", "by", "length", "asc" ], "question": "List the names of roller coasters by ascending order of length.", "question_toks": [ "list", "name", "of", "roller", "coaster", "by", "ascending", "order", "of", "length", "." ], "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": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "country id", "name", "population", "area", "languages" ], "table_names": [ "roller coaster", "country" ], "col_set": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "population", "area", "languages" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "4": 10, "10": 10, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "of", "roller", "coasters", "by", "ascending", "order", "of", "length", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "roller", "coaster" ], [ "by" ], [ "ascending" ], [ "order" ], [ "of" ], [ "length" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "roller", "NN" ], [ "coaster", "NN" ], [ "by", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "length", "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": "roller_coaster", "query": "SELECT LENGTH , Height FROM roller_coaster", "query_toks": [ "SELECT", "LENGTH", ",", "Height", "FROM", "roller_coaster" ], "query_toks_no_value": [ "select", "length", ",", "height", "from", "roller_coaster" ], "question": "What are the lengths and heights of roller coasters?", "question_toks": [ "what", "are", "length", "and", "height", "of", "roller", "coaster", "?" ], "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": [] }, "names": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "country id", "name", "population", "area", "languages" ], "table_names": [ "roller coaster", "country" ], "col_set": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "population", "area", "languages" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "4": 10, "10": 10, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "lengths", "and", "heights", "of", "roller", "coasters", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "length" ], [ "and" ], [ "height" ], [ "of" ], [ "roller", "coaster" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "length", "JJ" ], [ "and", "CC" ], [ "height", "NN" ], [ "of", "IN" ], [ "roller", "NN" ], [ "coaster", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(5) T(0) A(0) C(6) T(0)" }, { "db_id": "roller_coaster", "query": "SELECT Name FROM country WHERE Languages != \"German\"", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "Languages", "!", "=", "``", "German", "''" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "languages", "!", "=", "value" ], "question": "List the names of countries whose language is not \"German\".", "question_toks": [ "list", "name", "of", "country", "whose", "language", "is", "not", "'", "german", "'", "." ], "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, 7, [ 0, [ 0, 14, false ], null ], "\"German\"", null ] ] }, "names": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "country id", "name", "population", "area", "languages" ], "table_names": [ "roller coaster", "country" ], "col_set": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "population", "area", "languages" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "4": 10, "10": 10, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "of", "countries", "whose", "language", "is", "not", "``", "German", "''", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "country" ], [ "whose" ], [ "language" ], [ "is" ], [ "not" ], [ "'" ], [ "german" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "whose", "WP$" ], [ "language", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "JJ" ], [ "german", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "German" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(3) A(0) C(12) T(1) V(0)" }, { "db_id": "roller_coaster", "query": "SELECT Status FROM roller_coaster WHERE LENGTH > 3300 OR Height > 100", "query_toks": [ "SELECT", "Status", "FROM", "roller_coaster", "WHERE", "LENGTH", ">", "3300", "OR", "Height", ">", "100" ], "query_toks_no_value": [ "select", "status", "from", "roller_coaster", "where", "length", ">", "value", "or", "height", ">", "value" ], "question": "Show the statuses of roller coasters longer than 3300 or higher than 100.", "question_toks": [ "show", "status", "of", "roller", "coaster", "longer", "than", "3300", "or", "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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 3300.0, null ], "or", [ false, 3, [ 0, [ 0, 6, false ], null ], 100.0, null ] ] }, "names": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "country id", "name", "population", "area", "languages" ], "table_names": [ "roller coaster", "country" ], "col_set": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "population", "area", "languages" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "4": 10, "10": 10, "1": 1 }, "origin_question_toks": [ "Show", "the", "statuses", "of", "roller", "coasters", "longer", "than", "3300", "or", "higher", "than", "100", "." ], "question_arg": [ [ "show" ], [ "status" ], [ "of" ], [ "roller", "coaster" ], [ "longer" ], [ "than" ], [ "3300" ], [ "or" ], [ "higher" ], [ "than" ], [ "100" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "status", "NN" ], [ "of", "IN" ], [ "roller", "NN" ], [ "coaster", "NN" ], [ "longer", "JJR" ], [ "than", "IN" ], [ "3300", "CD" ], [ "or", "CC" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ ".", "." ] ], "values": [ "100", "3300" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(0) Filter(1) Filter(5) A(0) C(5) T(0) V(1) Filter(5) A(0) C(6) T(0) V(0)" }, { "db_id": "roller_coaster", "query": "SELECT Speed FROM roller_coaster ORDER BY LENGTH DESC LIMIT 1", "query_toks": [ "SELECT", "Speed", "FROM", "roller_coaster", "ORDER", "BY", "LENGTH", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "speed", "from", "roller_coaster", "order", "by", "length", "desc", "limit", "value" ], "question": "What are the speeds of the longest roller coaster?", "question_toks": [ "what", "are", "speed", "of", "longest", "roller", "coaster", "?" ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "country id", "name", "population", "area", "languages" ], "table_names": [ "roller coaster", "country" ], "col_set": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "population", "area", "languages" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "4": 10, "10": 10, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "speeds", "of", "the", "longest", "roller", "coaster", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "speed" ], [ "of" ], [ "longest" ], [ "roller", "coaster" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "speed", "NN" ], [ "of", "IN" ], [ "longest", "JJS" ], [ "roller", "NN" ], [ "coaster", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "roller_coaster", "query": "SELECT avg(Speed) FROM roller_coaster", "query_toks": [ "SELECT", "avg", "(", "Speed", ")", "FROM", "roller_coaster" ], "query_toks_no_value": [ "select", "avg", "(", "speed", ")", "from", "roller_coaster" ], "question": "What is the average speed of roller coasters?", "question_toks": [ "what", "is", "average", "speed", "of", "roller", "coaster", "?" ], "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": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "country id", "name", "population", "area", "languages" ], "table_names": [ "roller coaster", "country" ], "col_set": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "population", "area", "languages" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "4": 10, "10": 10, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "speed", "of", "roller", "coasters", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "speed" ], [ "of" ], [ "roller", "coaster" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "speed", "NN" ], [ "of", "IN" ], [ "roller", "NN" ], [ "coaster", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(7) T(0)" }, { "db_id": "roller_coaster", "query": "SELECT Status , COUNT(*) FROM roller_coaster GROUP BY Status", "query_toks": [ "SELECT", "Status", ",", "COUNT", "(", "*", ")", "FROM", "roller_coaster", "GROUP", "BY", "Status" ], "query_toks_no_value": [ "select", "status", ",", "count", "(", "*", ")", "from", "roller_coaster", "group", "by", "status" ], "question": "Show the different statuses and the numbers of roller coasters for each status.", "question_toks": [ "show", "different", "status", "and", "number", "of", "roller", "coaster", "for", "each", "status", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "country id", "name", "population", "area", "languages" ], "table_names": [ "roller coaster", "country" ], "col_set": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "population", "area", "languages" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "4": 10, "10": 10, "1": 1 }, "origin_question_toks": [ "Show", "the", "different", "statuses", "and", "the", "numbers", "of", "roller", "coasters", "for", "each", "status", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "status" ], [ "and" ], [ "number" ], [ "of" ], [ "roller", "coaster" ], [ "for" ], [ "each" ], [ "status" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "different", "JJ" ], [ "status", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "roller", "NN" ], [ "coaster", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "status", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(0) A(3) C(0) T(0)" }, { "db_id": "roller_coaster", "query": "SELECT Status FROM roller_coaster GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Status", "FROM", "roller_coaster", "GROUP", "BY", "Status", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "status", "from", "roller_coaster", "group", "by", "status", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Please show the most common status of roller coasters.", "question_toks": [ "please", "show", "most", "common", "status", "of", "roller", "coaster", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "country id", "name", "population", "area", "languages" ], "table_names": [ "roller coaster", "country" ], "col_set": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "population", "area", "languages" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "4": 10, "10": 10, "1": 1 }, "origin_question_toks": [ "Please", "show", "the", "most", "common", "status", "of", "roller", "coasters", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "most" ], [ "common" ], [ "status" ], [ "of" ], [ "roller", "coaster" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "status", "NN" ], [ "of", "IN" ], [ "roller", "NN" ], [ "coaster", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "roller_coaster", "query": "SELECT Status FROM roller_coaster GROUP BY Status HAVING COUNT(*) > 2", "query_toks": [ "SELECT", "Status", "FROM", "roller_coaster", "GROUP", "BY", "Status", "HAVING", "COUNT", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "status", "from", "roller_coaster", "group", "by", "status", "having", "count", "(", "*", ")", ">", "value" ], "question": "List the status shared by more than two roller coaster.", "question_toks": [ "list", "status", "shared", "by", "more", "than", "two", "roller", "coaster", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [ [ false, 3, [ 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": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "country id", "name", "population", "area", "languages" ], "table_names": [ "roller coaster", "country" ], "col_set": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "population", "area", "languages" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "4": 10, "10": 10, "1": 1 }, "origin_question_toks": [ "List", "the", "status", "shared", "by", "more", "than", "two", "roller", "coaster", "." ], "question_arg": [ [ "list" ], [ "status" ], [ "shared" ], [ "by" ], [ "more" ], [ "than" ], [ "two" ], [ "roller", "coaster" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "status", "NN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "two", "CD" ], [ "roller", "NN" ], [ "coaster", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "roller_coaster", "query": "SELECT Park FROM roller_coaster ORDER BY Speed DESC LIMIT 1", "query_toks": [ "SELECT", "Park", "FROM", "roller_coaster", "ORDER", "BY", "Speed", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "park", "from", "roller_coaster", "order", "by", "speed", "desc", "limit", "value" ], "question": "Show the park of the roller coaster with the highest speed.", "question_toks": [ "show", "park", "of", "roller", "coaster", "with", "highest", "speed", "." ], "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": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "country id", "name", "population", "area", "languages" ], "table_names": [ "roller coaster", "country" ], "col_set": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "population", "area", "languages" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "4": 10, "10": 10, "1": 1 }, "origin_question_toks": [ "Show", "the", "park", "of", "the", "roller", "coaster", "with", "the", "highest", "speed", "." ], "question_arg": [ [ "show" ], [ "park" ], [ "of" ], [ "roller", "coaster" ], [ "with" ], [ "highest" ], [ "speed" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "park", "NN" ], [ "of", "IN" ], [ "roller", "NN" ], [ "coaster", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "speed", "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": "roller_coaster", "query": "SELECT T2.Name , T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID", "query_toks": [ "SELECT", "T2.Name", ",", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "roller_coaster", "AS", "T2", "ON", "T1.Country_ID", "=", "T2.Country_ID" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "name", "from", "country", "as", "t1", "join", "roller_coaster", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country_id" ], "question": "Show the names of roller coasters and names of country they are in.", "question_toks": [ "show", "name", "of", "roller", "coaster", "and", "name", "of", "country", "they", "are", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 4, 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": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "country id", "name", "population", "area", "languages" ], "table_names": [ "roller coaster", "country" ], "col_set": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "population", "area", "languages" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "4": 10, "10": 10, "1": 1 }, "origin_question_toks": [ "Show", "the", "names", "of", "roller", "coasters", "and", "names", "of", "country", "they", "are", "in", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "roller", "coaster" ], [ "and" ], [ "name" ], [ "of" ], [ "country" ], [ "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" ], [ "roller", "NN" ], [ "coaster", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "in", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(2) T(1)" }, { "db_id": "roller_coaster", "query": "SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "roller_coaster", "AS", "T2", "ON", "T1.Country_ID", "=", "T2.Country_ID", "GROUP", "BY", "T1.Name", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "roller_coaster", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country_id", "group", "by", "t1", ".", "name", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show the names of countries that have more than one roller coaster.", "question_toks": [ "show", "name", "of", "country", "that", "have", "more", "than", "one", "roller", "coaster", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "country id", "name", "population", "area", "languages" ], "table_names": [ "roller coaster", "country" ], "col_set": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "population", "area", "languages" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "4": 10, "10": 10, "1": 1 }, "origin_question_toks": [ "Show", "the", "names", "of", "countries", "that", "have", "more", "than", "one", "roller", "coaster", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "country" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "roller", "coaster" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "roller", "NN" ], [ "coaster", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "roller_coaster", "query": "SELECT T1.Name , T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID ORDER BY T2.Height DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Name", ",", "T1.population", "FROM", "country", "AS", "T1", "JOIN", "roller_coaster", "AS", "T2", "ON", "T1.Country_ID", "=", "T2.Country_ID", "ORDER", "BY", "T2.Height", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "population", "from", "country", "as", "t1", "join", "roller_coaster", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country_id", "order", "by", "t2", ".", "height", "desc", "limit", "value" ], "question": "Show the name and population of the country that has the highest roller coaster.", "question_toks": [ "show", "name", "and", "population", "of", "country", "that", "ha", "highest", "roller", "coaster", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "country id", "name", "population", "area", "languages" ], "table_names": [ "roller coaster", "country" ], "col_set": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "population", "area", "languages" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "4": 10, "10": 10, "1": 1 }, "origin_question_toks": [ "Show", "the", "name", "and", "population", "of", "the", "country", "that", "has", "the", "highest", "roller", "coaster", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "population" ], [ "of" ], [ "country" ], [ "that" ], [ "ha" ], [ "highest" ], [ "roller", "coaster" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "population", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "highest", "JJS" ], [ "roller", "NN" ], [ "coaster", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(1) A(0) C(10) T(1) Sup(0) A(0) C(6) T(0)" }, { "db_id": "roller_coaster", "query": "SELECT T1.Name , avg(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name", "query_toks": [ "SELECT", "T1.Name", ",", "avg", "(", "T2.Speed", ")", "FROM", "country", "AS", "T1", "JOIN", "roller_coaster", "AS", "T2", "ON", "T1.Country_ID", "=", "T2.Country_ID", "GROUP", "BY", "T1.Name" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "avg", "(", "t2", ".", "speed", ")", "from", "country", "as", "t1", "join", "roller_coaster", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country_id", "group", "by", "t1", ".", "name" ], "question": "Show the names of countries and the average speed of roller coasters from each country.", "question_toks": [ "show", "name", "of", "country", "and", "average", "speed", "of", "roller", "coaster", "from", "each", "country", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 5, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "country id", "name", "population", "area", "languages" ], "table_names": [ "roller coaster", "country" ], "col_set": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "population", "area", "languages" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "4": 10, "10": 10, "1": 1 }, "origin_question_toks": [ "Show", "the", "names", "of", "countries", "and", "the", "average", "speed", "of", "roller", "coasters", "from", "each", "country", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "country" ], [ "and" ], [ "average" ], [ "speed" ], [ "of" ], [ "roller", "coaster" ], [ "from" ], [ "each" ], [ "country" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "speed", "NN" ], [ "of", "IN" ], [ "roller", "NN" ], [ "coaster", "NN" ], [ "from", "IN" ], [ "each", "DT" ], [ "country", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(1) A(5) C(7) T(0)" }, { "db_id": "roller_coaster", "query": "SELECT count(*) FROM country WHERE country_id NOT IN ( SELECT country_id FROM roller_coaster WHERE LENGTH > 3000 )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "country", "WHERE", "country_id", "NOT", "IN", "(", "SELECT", "country_id", "FROM", "roller_coaster", "WHERE", "LENGTH", ">", "3000", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "country", "where", "country_id", "not", "in", "(", "select", "country_id", "from", "roller_coaster", "where", "length", ">", "value", ")" ], "question": "How many countries do not have an roller coaster longer than 3000?", "question_toks": [ "how", "many", "country", "do", "not", "have", "an", "roller", "coaster", "longer", "than", "3000", "?" ], "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, 10, false ], null ], { "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, 5, false ], null ], 3000.0, null ] ] }, null ] ] }, "names": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "country id", "name", "population", "area", "languages" ], "table_names": [ "roller coaster", "country" ], "col_set": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "population", "area", "languages" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "4": 10, "10": 10, "1": 1 }, "origin_question_toks": [ "How", "many", "countries", "do", "not", "have", "an", "roller", "coaster", "longer", "than", "3000", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "country" ], [ "do" ], [ "not" ], [ "have" ], [ "an" ], [ "roller", "coaster" ], [ "longer" ], [ "than" ], [ "3000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "country", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "an", "DT" ], [ "roller", "NN" ], [ "coaster", "NN" ], [ "longer", "JJR" ], [ "than", "IN" ], [ "3000", "CD" ], [ "?", "." ] ], "values": [ "3000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(19) A(0) C(4) T(1) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(5) A(0) C(5) T(0) V(0)" }, { "db_id": "roller_coaster", "query": "SELECT T1.name , T1.area , T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed > 60 INTERSECT SELECT T1.name , T1.area , T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed < 55", "query_toks": [ "SELECT", "T1.name", ",", "T1.area", ",", "T1.population", "FROM", "country", "AS", "T1", "JOIN", "roller_coaster", "AS", "T2", "ON", "T1.Country_ID", "=", "T2.Country_ID", "WHERE", "T2.speed", ">", "60", "INTERSECT", "SELECT", "T1.name", ",", "T1.area", ",", "T1.population", "FROM", "country", "AS", "T1", "JOIN", "roller_coaster", "AS", "T2", "ON", "T1.Country_ID", "=", "T2.Country_ID", "WHERE", "T2.speed", "<", "55" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "area", ",", "t1", ".", "population", "from", "country", "as", "t1", "join", "roller_coaster", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country_id", "where", "t2", ".", "speed", ">", "value", "intersect", "select", "t1", ".", "name", ",", "t1", ".", "area", ",", "t1", ".", "population", "from", "country", "as", "t1", "join", "roller_coaster", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country_id", "where", "t2", ".", "speed", "<", "value" ], "question": "What are the country names, area and population which has both roller coasters with speed higher", "question_toks": [ "what", "are", "country", "name", ",", "area", "and", "population", "which", "ha", "both", "roller", "coaster", "with", "speed", "higher" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 7, false ], null ], 55.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 7, false ], null ], 60.0, null ] ] }, "names": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "country id", "name", "population", "area", "languages" ], "table_names": [ "roller coaster", "country" ], "col_set": [ "*", "roller coaster id", "name", "park", "country id", "length", "height", "speed", "opened", "status", "population", "area", "languages" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "4": 10, "10": 10, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "country", "names", ",", "area", "and", "population", "which", "has", "both", "roller", "coasters", "with", "speed", "higher" ], "question_arg": [ [ "what" ], [ "are" ], [ "country" ], [ "name" ], [ "," ], [ "area" ], [ "and" ], [ "population" ], [ "which" ], [ "ha" ], [ "both" ], [ "roller", "coaster" ], [ "with" ], [ "speed" ], [ "higher" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "area", "NN" ], [ "and", "CC" ], [ "population", "NN" ], [ "which", "WDT" ], [ "ha", "VBZ" ], [ "both", "DT" ], [ "roller", "NN" ], [ "coaster", "NN" ], [ "with", "IN" ], [ "speed", "NN" ], [ "higher", "JJR" ] ], "values": [ "60", "55" ], "rule_label": "Root1(0) Root(3) Sel(0) N(2) A(0) C(2) T(1) A(0) C(11) T(1) A(0) C(10) T(1) Filter(5) A(0) C(7) T(0) V(0) Root(3) Sel(0) N(2) A(0) C(2) T(1) A(0) C(11) T(1) A(0) C(10) T(1) Filter(4) A(0) C(7) T(0) V(1)" }, { "db_id": "ship_1", "query": "SELECT count(DISTINCT rank) FROM captain", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "rank", ")", "FROM", "captain" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "rank", ")", "from", "captain" ], "question": "How many different captain ranks are there?", "question_toks": [ "how", "many", "different", "captain", "rank", "are", "there", "?" ], "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": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "How", "many", "different", "captain", "ranks", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "captain" ], [ "rank" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "captain", "NN" ], [ "rank", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(6) T(0)" }, { "db_id": "ship_1", "query": "SELECT count(DISTINCT rank) FROM captain", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "rank", ")", "FROM", "captain" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "rank", ")", "from", "captain" ], "question": "Count the number of different ranks of captain.", "question_toks": [ "count", "number", "of", "different", "rank", "of", "captain", "." ], "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": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "ranks", "of", "captain", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "rank" ], [ "of" ], [ "captain" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "rank", "NN" ], [ "of", "IN" ], [ "captain", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(6) T(0)" }, { "db_id": "ship_1", "query": "SELECT count(*) , rank FROM captain GROUP BY rank", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "rank", "FROM", "captain", "GROUP", "BY", "rank" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "rank", "from", "captain", "group", "by", "rank" ], "question": "How many captains are in each rank?", "question_toks": [ "how", "many", "captain", "are", "in", "each", "rank", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "How", "many", "captains", "are", "in", "each", "rank", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "captain" ], [ "are" ], [ "in" ], [ "each" ], [ "rank" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "captain", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "each", "DT" ], [ "rank", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(0) A(0) C(6) T(0)" }, { "db_id": "ship_1", "query": "SELECT count(*) , rank FROM captain GROUP BY rank", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "rank", "FROM", "captain", "GROUP", "BY", "rank" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "rank", "from", "captain", "group", "by", "rank" ], "question": "Count the number of captains that have each rank.", "question_toks": [ "count", "number", "of", "captain", "that", "have", "each", "rank", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "captains", "that", "have", "each", "rank", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "captain" ], [ "that" ], [ "have" ], [ "each" ], [ "rank" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "captain", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "each", "DT" ], [ "rank", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(0) A(0) C(6) T(0)" }, { "db_id": "ship_1", "query": "SELECT count(*) , rank FROM captain WHERE age < 50 GROUP BY rank", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "rank", "FROM", "captain", "WHERE", "age", "<", "50", "GROUP", "BY", "rank" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "rank", "from", "captain", "where", "age", "<", "value", "group", "by", "rank" ], "question": "How many captains with younger than 50 are in each rank?", "question_toks": [ "how", "many", "captain", "with", "younger", "than", "50", "are", "in", "each", "rank", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 4, false ], null ], 50.0, null ] ] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "How", "many", "captains", "with", "younger", "than", "50", "are", "in", "each", "rank", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "captain" ], [ "with" ], [ "younger" ], [ "than" ], [ "50" ], [ "are" ], [ "in" ], [ "each" ], [ "rank" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "captain", "VBP" ], [ "with", "IN" ], [ "younger", "JJR" ], [ "than", "IN" ], [ "50", "CD" ], [ "are", "VBP" ], [ "in", "IN" ], [ "each", "DT" ], [ "rank", "NN" ], [ "?", "." ] ], "values": [ "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(0) A(0) C(6) T(0) Filter(4) A(0) C(4) T(0) V(0)" }, { "db_id": "ship_1", "query": "SELECT count(*) , rank FROM captain WHERE age < 50 GROUP BY rank", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "rank", "FROM", "captain", "WHERE", "age", "<", "50", "GROUP", "BY", "rank" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "rank", "from", "captain", "where", "age", "<", "value", "group", "by", "rank" ], "question": "Count the number of captains younger than 50 of each rank.", "question_toks": [ "count", "number", "of", "captain", "younger", "than", "50", "of", "each", "rank", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 4, false ], null ], 50.0, null ] ] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "captains", "younger", "than", "50", "of", "each", "rank", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "captain" ], [ "younger" ], [ "than" ], [ "50" ], [ "of" ], [ "each" ], [ "rank" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "captain", "NN" ], [ "younger", "JJR" ], [ "than", "IN" ], [ "50", "CD" ], [ "of", "IN" ], [ "each", "DT" ], [ "rank", "NN" ], [ ".", "." ] ], "values": [ "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(0) A(0) C(6) T(0) Filter(4) A(0) C(4) T(0) V(0)" }, { "db_id": "ship_1", "query": "SELECT name FROM captain ORDER BY age DESC", "query_toks": [ "SELECT", "name", "FROM", "captain", "ORDER", "BY", "age", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "captain", "order", "by", "age", "desc" ], "question": "Sort all captain names by their ages from old to young.", "question_toks": [ "sort", "all", "captain", "name", "by", "their", "age", "from", "old", "to", "young", "." ], "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": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Sort", "all", "captain", "names", "by", "their", "ages", "from", "old", "to", "young", "." ], "question_arg": [ [ "sort" ], [ "all" ], [ "captain" ], [ "name" ], [ "by" ], [ "their" ], [ "age" ], [ "from" ], [ "old" ], [ "to" ], [ "young" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "sort", "NN" ], [ "all", "DT" ], [ "captain", "NN" ], [ "name", "NN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "age", "NN" ], [ "from", "IN" ], [ "old", "JJ" ], [ "to", "TO" ], [ "young", "JJ" ], [ ".", "." ] ], "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": "ship_1", "query": "SELECT name FROM captain ORDER BY age DESC", "query_toks": [ "SELECT", "name", "FROM", "captain", "ORDER", "BY", "age", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "captain", "order", "by", "age", "desc" ], "question": "What are the names of captains, sorted by age descending?", "question_toks": [ "what", "are", "name", "of", "captain", ",", "sorted", "by", "age", "descending", "?" ], "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": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "captains", ",", "sorted", "by", "age", "descending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "captain" ], [ "," ], [ "sorted" ], [ "by" ], [ "age" ], [ "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" ], [ "captain", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "age", "NN" ], [ "descending", "NN" ], [ "?", "." ] ], "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": "ship_1", "query": "SELECT name , CLASS , rank FROM captain", "query_toks": [ "SELECT", "name", ",", "CLASS", ",", "rank", "FROM", "captain" ], "query_toks_no_value": [ "select", "name", ",", "class", ",", "rank", "from", "captain" ], "question": "Find the name, class and rank of all captains.", "question_toks": [ "find", "name", ",", "class", "and", "rank", "of", "all", "captain", "." ], "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 ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", ",", "class", "and", "rank", "of", "all", "captains", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "," ], [ "class" ], [ "and" ], [ "rank" ], [ "of" ], [ "all" ], [ "captain" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "class", "NN" ], [ "and", "CC" ], [ "rank", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "captain", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(0) C(5) T(0) A(0) C(6) T(0)" }, { "db_id": "ship_1", "query": "SELECT name , CLASS , rank FROM captain", "query_toks": [ "SELECT", "name", ",", "CLASS", ",", "rank", "FROM", "captain" ], "query_toks_no_value": [ "select", "name", ",", "class", ",", "rank", "from", "captain" ], "question": "What are the names, classes, and ranks of all captains?", "question_toks": [ "what", "are", "name", ",", "class", ",", "and", "rank", "of", "all", "captain", "?" ], "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 ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", ",", "classes", ",", "and", "ranks", "of", "all", "captains", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "class" ], [ "," ], [ "and" ], [ "rank" ], [ "of" ], [ "all" ], [ "captain" ], [ "?" ] ], "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" ], [ "rank", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "captain", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(0) C(5) T(0) A(0) C(6) T(0)" }, { "db_id": "ship_1", "query": "SELECT rank FROM captain GROUP BY rank ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "rank", "FROM", "captain", "GROUP", "BY", "rank", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "rank", "from", "captain", "group", "by", "rank", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which rank is the most common among captains?", "question_toks": [ "which", "rank", "is", "most", "common", "among", "captain", "?" ], "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": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Which", "rank", "is", "the", "most", "common", "among", "captains", "?" ], "question_arg": [ [ "which" ], [ "rank" ], [ "is" ], [ "most" ], [ "common" ], [ "among" ], [ "captain" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "rank", "NN" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "among", "IN" ], [ "captain", "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": "ship_1", "query": "SELECT rank FROM captain GROUP BY rank ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "rank", "FROM", "captain", "GROUP", "BY", "rank", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "rank", "from", "captain", "group", "by", "rank", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the rank for which there are the fewest captains.", "question_toks": [ "return", "rank", "for", "which", "there", "are", "fewest", "captain", "." ], "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": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Return", "the", "rank", "for", "which", "there", "are", "the", "fewest", "captains", "." ], "question_arg": [ [ "return" ], [ "rank" ], [ "for" ], [ "which" ], [ "there" ], [ "are" ], [ "fewest" ], [ "captain" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "rank", "NN" ], [ "for", "IN" ], [ "which", "WDT" ], [ "there", "EX" ], [ "are", "VBP" ], [ "fewest", "JJS" ], [ "captain", "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": "ship_1", "query": "SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*) > 2", "query_toks": [ "SELECT", "CLASS", "FROM", "captain", "GROUP", "BY", "CLASS", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "class", "from", "captain", "group", "by", "class", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which classes have more than two captains?", "question_toks": [ "which", "class", "have", "more", "than", "two", "captain", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 3, [ 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": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Which", "classes", "have", "more", "than", "two", "captains", "?" ], "question_arg": [ [ "which" ], [ "class" ], [ "have" ], [ "more" ], [ "than" ], [ "two" ], [ "captain" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "class", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "two", "CD" ], [ "captain", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "ship_1", "query": "SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*) > 2", "query_toks": [ "SELECT", "CLASS", "FROM", "captain", "GROUP", "BY", "CLASS", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "class", "from", "captain", "group", "by", "class", "having", "count", "(", "*", ")", ">", "value" ], "question": "Give the classes that have more than two captains.", "question_toks": [ "give", "class", "that", "have", "more", "than", "two", "captain", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 3, [ 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": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Give", "the", "classes", "that", "have", "more", "than", "two", "captains", "." ], "question_arg": [ [ "give" ], [ "class" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "two" ], [ "captain" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "class", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "two", "CD" ], [ "captain", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "ship_1", "query": "SELECT name FROM captain WHERE rank = 'Midshipman' OR rank = 'Lieutenant'", "query_toks": [ "SELECT", "name", "FROM", "captain", "WHERE", "rank", "=", "'Midshipman", "'", "OR", "rank", "=", "'Lieutenant", "'" ], "query_toks_no_value": [ "select", "name", "from", "captain", "where", "rank", "=", "value", "or", "rank", "=", "value" ], "question": "Find the name of captains whose rank are either Midshipman or Lieutenant.", "question_toks": [ "find", "name", "of", "captain", "whose", "rank", "are", "either", "midshipman", "or", "lieutenant", "." ], "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 ], "\"Midshipman\"", null ], "or", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Lieutenant\"", null ] ] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "captains", "whose", "rank", "are", "either", "Midshipman", "or", "Lieutenant", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "captain" ], [ "whose" ], [ "rank" ], [ "are" ], [ "either" ], [ "midshipman" ], [ "or" ], [ "lieutenant" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "captain", "NN" ], [ "whose", "WP$" ], [ "rank", "NN" ], [ "are", "VBP" ], [ "either", "DT" ], [ "midshipman", "NN" ], [ "or", "CC" ], [ "lieutenant", "NN" ], [ ".", "." ] ], "values": [ "Midshipman", "Lieutenant" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(1) Filter(2) A(0) C(6) T(0) V(0) Filter(2) A(0) C(6) T(0) V(1)" }, { "db_id": "ship_1", "query": "SELECT name FROM captain WHERE rank = 'Midshipman' OR rank = 'Lieutenant'", "query_toks": [ "SELECT", "name", "FROM", "captain", "WHERE", "rank", "=", "'Midshipman", "'", "OR", "rank", "=", "'Lieutenant", "'" ], "query_toks_no_value": [ "select", "name", "from", "captain", "where", "rank", "=", "value", "or", "rank", "=", "value" ], "question": "What are the names of captains that have either the rank Midshipman or Lieutenant?", "question_toks": [ "what", "are", "name", "of", "captain", "that", "have", "either", "rank", "midshipman", "or", "lieutenant", "?" ], "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 ], "\"Midshipman\"", null ], "or", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Lieutenant\"", null ] ] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "captains", "that", "have", "either", "the", "rank", "Midshipman", "or", "Lieutenant", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "captain" ], [ "that" ], [ "have" ], [ "either" ], [ "rank" ], [ "midshipman" ], [ "or" ], [ "lieutenant" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "captain", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "either", "DT" ], [ "rank", "NN" ], [ "midshipman", "NN" ], [ "or", "CC" ], [ "lieutenant", "NN" ], [ "?", "." ] ], "values": [ "Midshipman", "Lieutenant" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(1) Filter(2) A(0) C(6) T(0) V(0) Filter(2) A(0) C(6) T(0) V(1)" }, { "db_id": "ship_1", "query": "SELECT avg(age) , min(age) , CLASS FROM captain GROUP BY CLASS", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "CLASS", "FROM", "captain", "GROUP", "BY", "CLASS" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "class", "from", "captain", "group", "by", "class" ], "question": "What are the average and minimum age of captains in different class?", "question_toks": [ "what", "are", "average", "and", "minimum", "age", "of", "captain", "in", "different", "class", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ], [ 2, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "average", "and", "minimum", "age", "of", "captains", "in", "different", "class", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "and" ], [ "minimum" ], [ "age" ], [ "of" ], [ "captain" ], [ "in" ], [ "different" ], [ "class" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "captain", "NN" ], [ "in", "IN" ], [ "different", "JJ" ], [ "class", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(5) C(4) T(0) A(2) C(4) T(0) A(0) C(5) T(0)" }, { "db_id": "ship_1", "query": "SELECT avg(age) , min(age) , CLASS FROM captain GROUP BY CLASS", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "CLASS", "FROM", "captain", "GROUP", "BY", "CLASS" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "class", "from", "captain", "group", "by", "class" ], "question": "Return the average and minimum age of captains in each class.", "question_toks": [ "return", "average", "and", "minimum", "age", "of", "captain", "in", "each", "class", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ], [ 2, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Return", "the", "average", "and", "minimum", "age", "of", "captains", "in", "each", "class", "." ], "question_arg": [ [ "return" ], [ "average" ], [ "and" ], [ "minimum" ], [ "age" ], [ "of" ], [ "captain" ], [ "in" ], [ "each" ], [ "class" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "average", "NN" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "captain", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "class", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(5) C(4) T(0) A(2) C(4) T(0) A(0) C(5) T(0)" }, { "db_id": "ship_1", "query": "SELECT rank FROM captain WHERE CLASS = 'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS = 'Armed schooner'", "query_toks": [ "SELECT", "rank", "FROM", "captain", "WHERE", "CLASS", "=", "'Cutter", "'", "INTERSECT", "SELECT", "rank", "FROM", "captain", "WHERE", "CLASS", "=", "'Armed", "schooner", "'" ], "query_toks_no_value": [ "select", "rank", "from", "captain", "where", "class", "=", "value", "intersect", "select", "rank", "from", "captain", "where", "class", "=", "value" ], "question": "Find the captain rank that has some captains in both Cutter and Armed schooner classes.", "question_toks": [ "find", "captain", "rank", "that", "ha", "some", "captain", "in", "both", "cutter", "and", "armed", "schooner", "class", "." ], "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, 5, false ], null ], "\"Armed schooner\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Cutter\"", null ] ] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Find", "the", "captain", "rank", "that", "has", "some", "captains", "in", "both", "Cutter", "and", "Armed", "schooner", "classes", "." ], "question_arg": [ [ "find" ], [ "captain" ], [ "rank" ], [ "that" ], [ "ha" ], [ "some" ], [ "captain" ], [ "in" ], [ "both" ], [ "cutter" ], [ "and" ], [ "armed" ], [ "schooner" ], [ "class" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "captain", "NN" ], [ "rank", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "some", "DT" ], [ "captain", "NN" ], [ "in", "IN" ], [ "both", "DT" ], [ "cutter", "NN" ], [ "and", "CC" ], [ "armed", "VBD" ], [ "schooner", "JJR" ], [ "class", "NN" ], [ ".", "." ] ], "values": [ "Armed schooner", "Cutter" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(2) A(0) C(5) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "ship_1", "query": "SELECT rank FROM captain WHERE CLASS = 'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS = 'Armed schooner'", "query_toks": [ "SELECT", "rank", "FROM", "captain", "WHERE", "CLASS", "=", "'Cutter", "'", "INTERSECT", "SELECT", "rank", "FROM", "captain", "WHERE", "CLASS", "=", "'Armed", "schooner", "'" ], "query_toks_no_value": [ "select", "rank", "from", "captain", "where", "class", "=", "value", "intersect", "select", "rank", "from", "captain", "where", "class", "=", "value" ], "question": "What are the ranks of captains that are both in the Cutter and Armed schooner classes?", "question_toks": [ "what", "are", "rank", "of", "captain", "that", "are", "both", "in", "cutter", "and", "armed", "schooner", "class", "?" ], "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, 5, false ], null ], "\"Armed schooner\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Cutter\"", null ] ] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "ranks", "of", "captains", "that", "are", "both", "in", "the", "Cutter", "and", "Armed", "schooner", "classes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "rank" ], [ "of" ], [ "captain" ], [ "that" ], [ "are" ], [ "both" ], [ "in" ], [ "cutter" ], [ "and" ], [ "armed" ], [ "schooner" ], [ "class" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "rank", "NN" ], [ "of", "IN" ], [ "captain", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "both", "DT" ], [ "in", "IN" ], [ "cutter", "NN" ], [ "and", "CC" ], [ "armed", "VBD" ], [ "schooner", "JJR" ], [ "class", "NN" ], [ "?", "." ] ], "values": [ "Armed schooner", "Cutter" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(2) A(0) C(5) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "ship_1", "query": "SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS = 'Third-rate ship of the line'", "query_toks": [ "SELECT", "rank", "FROM", "captain", "EXCEPT", "SELECT", "rank", "FROM", "captain", "WHERE", "CLASS", "=", "'Third-rate", "ship", "of", "the", "line", "'" ], "query_toks_no_value": [ "select", "rank", "from", "captain", "except", "select", "rank", "from", "captain", "where", "class", "=", "value" ], "question": "Find the captain rank that has no captain in Third-rate ship of the line class.", "question_toks": [ "find", "captain", "rank", "that", "ha", "no", "captain", "in", "third-rate", "ship", "of", "line", "class", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Third-rate ship of the line\"", 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": [] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Find", "the", "captain", "rank", "that", "has", "no", "captain", "in", "Third-rate", "ship", "of", "the", "line", "class", "." ], "question_arg": [ [ "find" ], [ "captain" ], [ "rank" ], [ "that" ], [ "ha" ], [ "no" ], [ "captain" ], [ "in" ], [ "third-rate" ], [ "ship" ], [ "of" ], [ "line" ], [ "class" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "captain", "NN" ], [ "rank", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "no", "DT" ], [ "captain", "NN" ], [ "in", "IN" ], [ "third-rate", "JJ" ], [ "ship", "NN" ], [ "of", "IN" ], [ "line", "NN" ], [ "class", "NN" ], [ ".", "." ] ], "values": [ "3", "Third-rate ship of the line" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(6) T(0) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "ship_1", "query": "SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS = 'Third-rate ship of the line'", "query_toks": [ "SELECT", "rank", "FROM", "captain", "EXCEPT", "SELECT", "rank", "FROM", "captain", "WHERE", "CLASS", "=", "'Third-rate", "ship", "of", "the", "line", "'" ], "query_toks_no_value": [ "select", "rank", "from", "captain", "except", "select", "rank", "from", "captain", "where", "class", "=", "value" ], "question": "What are the ranks of captains that have no captain that are in the Third-rate ship of the line class?", "question_toks": [ "what", "are", "rank", "of", "captain", "that", "have", "no", "captain", "that", "are", "in", "third-rate", "ship", "of", "line", "class", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Third-rate ship of the line\"", 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": [] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "ranks", "of", "captains", "that", "have", "no", "captain", "that", "are", "in", "the", "Third-rate", "ship", "of", "the", "line", "class", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "rank" ], [ "of" ], [ "captain" ], [ "that" ], [ "have" ], [ "no" ], [ "captain" ], [ "that" ], [ "are" ], [ "in" ], [ "third-rate" ], [ "ship" ], [ "of" ], [ "line" ], [ "class" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "rank", "NN" ], [ "of", "IN" ], [ "captain", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "no", "DT" ], [ "captain", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "third-rate", "JJ" ], [ "ship", "NN" ], [ "of", "IN" ], [ "line", "NN" ], [ "class", "NN" ], [ "?", "." ] ], "values": [ "3", "Third-rate ship of the line" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(6) T(0) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "ship_1", "query": "SELECT name FROM captain ORDER BY age LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "captain", "ORDER", "BY", "age", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "captain", "order", "by", "age", "limit", "value" ], "question": "What is the name of the youngest captain?", "question_toks": [ "what", "is", "name", "of", "youngest", "captain", "?" ], "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": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "youngest", "captain", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "youngest" ], [ "captain" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "youngest", "JJS" ], [ "captain", "NN" ], [ "?", "." ] ], "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": "ship_1", "query": "SELECT name FROM captain ORDER BY age LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "captain", "ORDER", "BY", "age", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "captain", "order", "by", "age", "limit", "value" ], "question": "Return the name of the youngest captain.", "question_toks": [ "return", "name", "of", "youngest", "captain", "." ], "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": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Return", "the", "name", "of", "the", "youngest", "captain", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "youngest" ], [ "captain" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "youngest", "JJS" ], [ "captain", "NN" ], [ ".", "." ] ], "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": "ship_1", "query": "SELECT count(*) FROM ship", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ship" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ship" ], "question": "how many ships are there?", "question_toks": [ "how", "many", "ship", "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": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "how", "many", "ships", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "ship" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "ship", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "ship_1", "query": "SELECT count(*) FROM ship", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ship" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ship" ], "question": "Count the number of ships.", "question_toks": [ "count", "number", "of", "ship", "." ], "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": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "ships", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "ship" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "ship_1", "query": "SELECT name , TYPE , flag FROM ship ORDER BY built_year DESC LIMIT 1", "query_toks": [ "SELECT", "name", ",", "TYPE", ",", "flag", "FROM", "ship", "ORDER", "BY", "built_year", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "type", ",", "flag", "from", "ship", "order", "by", "built_year", "desc", "limit", "value" ], "question": "Find the name, type, and flag of the ship that is built in the most recent year.", "question_toks": [ "find", "name", ",", "type", ",", "and", "flag", "of", "ship", "that", "is", "built", "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, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", ",", "type", ",", "and", "flag", "of", "the", "ship", "that", "is", "built", "in", "the", "most", "recent", "year", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "," ], [ "type" ], [ "," ], [ "and" ], [ "flag" ], [ "of" ], [ "ship" ], [ "that" ], [ "is" ], [ "built" ], [ "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": [ [ "find", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "type", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "flag", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "built", "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(7) T(1) A(0) C(9) T(1) Sup(0) A(0) C(8) T(1)" }, { "db_id": "ship_1", "query": "SELECT name , TYPE , flag FROM ship ORDER BY built_year DESC LIMIT 1", "query_toks": [ "SELECT", "name", ",", "TYPE", ",", "flag", "FROM", "ship", "ORDER", "BY", "built_year", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "type", ",", "flag", "from", "ship", "order", "by", "built_year", "desc", "limit", "value" ], "question": "What is the name, type, and flag of the ship that was built in the most recent year?", "question_toks": [ "what", "is", "name", ",", "type", ",", "and", "flag", "of", "ship", "that", "wa", "built", "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, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", ",", "type", ",", "and", "flag", "of", "the", "ship", "that", "was", "built", "in", "the", "most", "recent", "year", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "," ], [ "type" ], [ "," ], [ "and" ], [ "flag" ], [ "of" ], [ "ship" ], [ "that" ], [ "wa" ], [ "built" ], [ "in" ], [ "most" ], [ "recent" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ ",", "," ], [ "type", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "flag", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "wa", "VBZ" ], [ "built", "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(7) T(1) A(0) C(9) T(1) Sup(0) A(0) C(8) T(1)" }, { "db_id": "ship_1", "query": "SELECT count(*) , flag FROM ship GROUP BY flag", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "flag", "FROM", "ship", "GROUP", "BY", "flag" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "flag", "from", "ship", "group", "by", "flag" ], "question": "Group by ships by flag, and return number of ships that have each flag.", "question_toks": [ "group", "by", "ship", "by", "flag", ",", "and", "return", "number", "of", "ship", "that", "have", "each", "flag", "." ], "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": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Group", "by", "ships", "by", "flag", ",", "and", "return", "number", "of", "ships", "that", "have", "each", "flag", "." ], "question_arg": [ [ "group" ], [ "by" ], [ "ship" ], [ "by" ], [ "flag" ], [ "," ], [ "and" ], [ "return" ], [ "number" ], [ "of" ], [ "ship" ], [ "that" ], [ "have" ], [ "each" ], [ "flag" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "group", "NN" ], [ "by", "IN" ], [ "ship", "NN" ], [ "by", "IN" ], [ "flag", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "return", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "each", "DT" ], [ "flag", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(1) A(0) C(9) T(1)" }, { "db_id": "ship_1", "query": "SELECT count(*) , flag FROM ship GROUP BY flag", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "flag", "FROM", "ship", "GROUP", "BY", "flag" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "flag", "from", "ship", "group", "by", "flag" ], "question": "What are the different ship flags, and how many ships have each?", "question_toks": [ "what", "are", "different", "ship", "flag", ",", "and", "how", "many", "ship", "have", "each", "?" ], "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": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "different", "ship", "flags", ",", "and", "how", "many", "ships", "have", "each", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "ship" ], [ "flag" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "ship" ], [ "have" ], [ "each" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "ship", "JJ" ], [ "flag", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "ship", "NN" ], [ "have", "VBP" ], [ "each", "DT" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(1) A(0) C(9) T(1)" }, { "db_id": "ship_1", "query": "SELECT flag FROM ship GROUP BY flag ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "flag", "FROM", "ship", "GROUP", "BY", "flag", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "flag", "from", "ship", "group", "by", "flag", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which flag is most widely used among all ships?", "question_toks": [ "which", "flag", "is", "most", "widely", "used", "among", "all", "ship", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Which", "flag", "is", "most", "widely", "used", "among", "all", "ships", "?" ], "question_arg": [ [ "which" ], [ "flag" ], [ "is" ], [ "most" ], [ "widely" ], [ "used" ], [ "among" ], [ "all" ], [ "ship" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "flag", "NN" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "widely", "RB" ], [ "used", "VBN" ], [ "among", "IN" ], [ "all", "DT" ], [ "ship", "NN" ], [ "?", "." ] ], "values": [], "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": "ship_1", "query": "SELECT flag FROM ship GROUP BY flag ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "flag", "FROM", "ship", "GROUP", "BY", "flag", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "flag", "from", "ship", "group", "by", "flag", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the flag that is most common among all ships.", "question_toks": [ "return", "flag", "that", "is", "most", "common", "among", "all", "ship", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Return", "the", "flag", "that", "is", "most", "common", "among", "all", "ships", "." ], "question_arg": [ [ "return" ], [ "flag" ], [ "that" ], [ "is" ], [ "most" ], [ "common" ], [ "among" ], [ "all" ], [ "ship" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "flag", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "among", "IN" ], [ "all", "DT" ], [ "ship", "NN" ], [ ".", "." ] ], "values": [], "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": "ship_1", "query": "SELECT name FROM ship ORDER BY built_year , CLASS", "query_toks": [ "SELECT", "name", "FROM", "ship", "ORDER", "BY", "built_year", ",", "CLASS" ], "query_toks_no_value": [ "select", "name", "from", "ship", "order", "by", "built_year", ",", "class" ], "question": "List all ship names in the order of built year and class.", "question_toks": [ "list", "all", "ship", "name", "in", "order", "of", "built", "year", "and", "class", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 10, false ], null ], [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "List", "all", "ship", "names", "in", "the", "order", "of", "built", "year", "and", "class", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "ship" ], [ "name" ], [ "in" ], [ "order" ], [ "of" ], [ "built", "year" ], [ "and" ], [ "class" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "ship", "NN" ], [ "name", "NN" ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "built", "VBN" ], [ "year", "NN" ], [ "and", "CC" ], [ "class", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(1) Order(1) A(0) C(8) T(1)" }, { "db_id": "ship_1", "query": "SELECT name FROM ship ORDER BY built_year , CLASS", "query_toks": [ "SELECT", "name", "FROM", "ship", "ORDER", "BY", "built_year", ",", "CLASS" ], "query_toks_no_value": [ "select", "name", "from", "ship", "order", "by", "built_year", ",", "class" ], "question": "What are the names of ships, ordered by year they were built and their class?", "question_toks": [ "what", "are", "name", "of", "ship", ",", "ordered", "by", "year", "they", "were", "built", "and", "their", "class", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 10, false ], null ], [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "ships", ",", "ordered", "by", "year", "they", "were", "built", "and", "their", "class", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "ship" ], [ "," ], [ "ordered" ], [ "by" ], [ "year" ], [ "they" ], [ "were" ], [ "built" ], [ "and" ], [ "their" ], [ "class" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "year", "NN" ], [ "they", "PRP" ], [ "were", "VBD" ], [ "built", "VBN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "class", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(1) Order(1) A(0) C(8) T(1)" }, { "db_id": "ship_1", "query": "SELECT TYPE FROM ship WHERE flag = 'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag = 'Malta'", "query_toks": [ "SELECT", "TYPE", "FROM", "ship", "WHERE", "flag", "=", "'Panama", "'", "INTERSECT", "SELECT", "TYPE", "FROM", "ship", "WHERE", "flag", "=", "'Malta", "'" ], "query_toks_no_value": [ "select", "type", "from", "ship", "where", "flag", "=", "value", "intersect", "select", "type", "from", "ship", "where", "flag", "=", "value" ], "question": "Find the ship type that are used by both ships with Panama and Malta flags.", "question_toks": [ "find", "ship", "type", "that", "are", "used", "by", "both", "ship", "with", "panama", "and", "malta", "flag", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Malta\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Panama\"", null ] ] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Find", "the", "ship", "type", "that", "are", "used", "by", "both", "ships", "with", "Panama", "and", "Malta", "flags", "." ], "question_arg": [ [ "find" ], [ "ship" ], [ "type" ], [ "that" ], [ "are" ], [ "used" ], [ "by" ], [ "both" ], [ "ship" ], [ "with" ], [ "panama" ], [ "and" ], [ "malta" ], [ "flag" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "ship", "JJ" ], [ "type", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "by", "IN" ], [ "both", "DT" ], [ "ship", "NN" ], [ "with", "IN" ], [ "panama", "NN" ], [ "and", "CC" ], [ "malta", "JJ" ], [ "flag", "NN" ], [ ".", "." ] ], "values": [ "Malta", "Panama", "Panamax" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(9) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "ship_1", "query": "SELECT TYPE FROM ship WHERE flag = 'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag = 'Malta'", "query_toks": [ "SELECT", "TYPE", "FROM", "ship", "WHERE", "flag", "=", "'Panama", "'", "INTERSECT", "SELECT", "TYPE", "FROM", "ship", "WHERE", "flag", "=", "'Malta", "'" ], "query_toks_no_value": [ "select", "type", "from", "ship", "where", "flag", "=", "value", "intersect", "select", "type", "from", "ship", "where", "flag", "=", "value" ], "question": "What types of ships have both ships that have Panama Flags and Malta flags?", "question_toks": [ "what", "type", "of", "ship", "have", "both", "ship", "that", "have", "panama", "flag", "and", "malta", "flag", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Malta\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Panama\"", null ] ] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "types", "of", "ships", "have", "both", "ships", "that", "have", "Panama", "Flags", "and", "Malta", "flags", "?" ], "question_arg": [ [ "what" ], [ "type" ], [ "of" ], [ "ship" ], [ "have" ], [ "both" ], [ "ship" ], [ "that" ], [ "have" ], [ "panama" ], [ "flag" ], [ "and" ], [ "malta" ], [ "flag" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "type", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "have", "VBP" ], [ "both", "DT" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "panama", "VBN" ], [ "flag", "NN" ], [ "and", "CC" ], [ "malta", "NN" ], [ "flag", "NN" ], [ "?", "." ] ], "values": [ "Malta", "Panama", "Panamax" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(9) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "ship_1", "query": "SELECT built_year FROM ship GROUP BY built_year ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "built_year", "FROM", "ship", "GROUP", "BY", "built_year", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "built_year", "from", "ship", "group", "by", "built_year", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "In which year were most of ships built?", "question_toks": [ "in", "which", "year", "were", "most", "of", "ship", "built", "?" ], "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": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "In", "which", "year", "were", "most", "of", "ships", "built", "?" ], "question_arg": [ [ "in" ], [ "which" ], [ "year" ], [ "were" ], [ "most" ], [ "of" ], [ "ship" ], [ "built" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "which", "WDT" ], [ "year", "NN" ], [ "were", "VBD" ], [ "most", "JJS" ], [ "of", "IN" ], [ "ship", "NN" ], [ "built", "VBN" ], [ "?", "." ] ], "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": "ship_1", "query": "SELECT built_year FROM ship GROUP BY built_year ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "built_year", "FROM", "ship", "GROUP", "BY", "built_year", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "built_year", "from", "ship", "group", "by", "built_year", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the year in which most ships were built?", "question_toks": [ "what", "is", "year", "in", "which", "most", "ship", "were", "built", "?" ], "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": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "year", "in", "which", "most", "ships", "were", "built", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "year" ], [ "in" ], [ "which" ], [ "most" ], [ "ship" ], [ "were" ], [ "built" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "year", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "most", "JJS" ], [ "ship", "NN" ], [ "were", "VBD" ], [ "built", "VBN" ], [ "?", "." ] ], "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": "ship_1", "query": "SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING count(*) > 1", "query_toks": [ "SELECT", "t1.name", "FROM", "ship", "AS", "t1", "JOIN", "captain", "AS", "t2", "ON", "t1.ship_id", "=", "t2.ship_id", "GROUP", "BY", "t2.ship_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "ship", "as", "t1", "join", "captain", "as", "t2", "on", "t1", ".", "ship_id", "=", "t2", ".", "ship_id", "group", "by", "t2", ".", "ship_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the name of the ships that have more than one captain.", "question_toks": [ "find", "name", "of", "ship", "that", "have", "more", "than", "one", "captain", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "ships", "that", "have", "more", "than", "one", "captain", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "ship" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "captain" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "captain", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "ship_1", "query": "SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING count(*) > 1", "query_toks": [ "SELECT", "t1.name", "FROM", "ship", "AS", "t1", "JOIN", "captain", "AS", "t2", "ON", "t1.ship_id", "=", "t2.ship_id", "GROUP", "BY", "t2.ship_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "ship", "as", "t1", "join", "captain", "as", "t2", "on", "t1", ".", "ship_id", "=", "t2", ".", "ship_id", "group", "by", "t2", ".", "ship_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the names of ships that have more than one captain?", "question_toks": [ "what", "are", "name", "of", "ship", "that", "have", "more", "than", "one", "captain", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "ships", "that", "have", "more", "than", "one", "captain", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "ship" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "captain" ], [ "?" ] ], "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" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "captain", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "ship_1", "query": "SELECT name , CLASS FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain)", "query_toks": [ "SELECT", "name", ",", "CLASS", "FROM", "ship", "WHERE", "ship_id", "NOT", "IN", "(", "SELECT", "ship_id", "FROM", "captain", ")" ], "query_toks_no_value": [ "select", "name", ",", "class", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "captain", ")" ], "question": "what are the names and classes of the ships that do not have any captain yet?", "question_toks": [ "what", "are", "name", "and", "class", "of", "ship", "that", "do", "not", "have", "any", "captain", "yet", "?" ], "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, 11, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "what", "are", "the", "names", "and", "classes", "of", "the", "ships", "that", "do", "not", "have", "any", "captain", "yet", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "class" ], [ "of" ], [ "ship" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "captain" ], [ "yet" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "class", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "captain", "NN" ], [ "yet", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(1) A(0) C(5) T(1) Filter(19) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(0)" }, { "db_id": "ship_1", "query": "SELECT name , CLASS FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain)", "query_toks": [ "SELECT", "name", ",", "CLASS", "FROM", "ship", "WHERE", "ship_id", "NOT", "IN", "(", "SELECT", "ship_id", "FROM", "captain", ")" ], "query_toks_no_value": [ "select", "name", ",", "class", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "captain", ")" ], "question": "Return the names and classes of ships that do not have a captain?", "question_toks": [ "return", "name", "and", "class", "of", "ship", "that", "do", "not", "have", "a", "captain", "?" ], "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, 11, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Return", "the", "names", "and", "classes", "of", "ships", "that", "do", "not", "have", "a", "captain", "?" ], "question_arg": [ [ "return" ], [ "name" ], [ "and" ], [ "class" ], [ "of" ], [ "ship" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "a" ], [ "captain" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "class", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "captain", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(1) A(0) C(5) T(1) Filter(19) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(0)" }, { "db_id": "ship_1", "query": "SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1", "query_toks": [ "SELECT", "t1.name", "FROM", "ship", "AS", "t1", "JOIN", "captain", "AS", "t2", "ON", "t1.ship_id", "=", "t2.ship_id", "ORDER", "BY", "t2.age", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "ship", "as", "t1", "join", "captain", "as", "t2", "on", "t1", ".", "ship_id", "=", "t2", ".", "ship_id", "order", "by", "t2", ".", "age", "limit", "value" ], "question": "Find the name of the ship that is steered by the youngest captain.", "question_toks": [ "find", "name", "of", "ship", "that", "is", "steered", "by", "youngest", "captain", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "ship", "that", "is", "steered", "by", "the", "youngest", "captain", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "ship" ], [ "that" ], [ "is" ], [ "steered" ], [ "by" ], [ "youngest" ], [ "captain" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "steered", "VBN" ], [ "by", "IN" ], [ "youngest", "JJS" ], [ "captain", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(1) Sup(1) A(0) C(4) T(0)" }, { "db_id": "ship_1", "query": "SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1", "query_toks": [ "SELECT", "t1.name", "FROM", "ship", "AS", "t1", "JOIN", "captain", "AS", "t2", "ON", "t1.ship_id", "=", "t2.ship_id", "ORDER", "BY", "t2.age", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "ship", "as", "t1", "join", "captain", "as", "t2", "on", "t1", ".", "ship_id", "=", "t2", ".", "ship_id", "order", "by", "t2", ".", "age", "limit", "value" ], "question": "What is the name of the ship that is commanded by the youngest captain?", "question_toks": [ "what", "is", "name", "of", "ship", "that", "is", "commanded", "by", "youngest", "captain", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "ship", "that", "is", "commanded", "by", "the", "youngest", "captain", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "ship" ], [ "that" ], [ "is" ], [ "commanded" ], [ "by" ], [ "youngest" ], [ "captain" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "commanded", "VBN" ], [ "by", "IN" ], [ "youngest", "JJS" ], [ "captain", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(1) Sup(1) A(0) C(4) T(0)" }, { "db_id": "ship_1", "query": "SELECT name , flag FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain WHERE rank = 'Midshipman')", "query_toks": [ "SELECT", "name", ",", "flag", "FROM", "ship", "WHERE", "ship_id", "NOT", "IN", "(", "SELECT", "ship_id", "FROM", "captain", "WHERE", "rank", "=", "'Midshipman", "'", ")" ], "query_toks_no_value": [ "select", "name", ",", "flag", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "captain", "where", "rank", "=", "value", ")" ], "question": "Find the name and flag of ships that are not steered by any captain with Midshipman rank.", "question_toks": [ "find", "name", "and", "flag", "of", "ship", "that", "are", "not", "steered", "by", "any", "captain", "with", "midshipman", "rank", "." ], "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, 12, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Midshipman\"", null ] ] }, null ] ] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "flag", "of", "ships", "that", "are", "not", "steered", "by", "any", "captain", "with", "Midshipman", "rank", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "flag" ], [ "of" ], [ "ship" ], [ "that" ], [ "are" ], [ "not" ], [ "steered" ], [ "by" ], [ "any" ], [ "captain" ], [ "with" ], [ "midshipman" ], [ "rank" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "flag", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "steered", "VBN" ], [ "by", "IN" ], [ "any", "DT" ], [ "captain", "NN" ], [ "with", "IN" ], [ "midshipman", "JJ" ], [ "rank", "NN" ], [ ".", "." ] ], "values": [ "Midshipman" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(1) A(0) C(9) T(1) Filter(19) A(0) C(3) T(1) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "ship_1", "query": "SELECT name , flag FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain WHERE rank = 'Midshipman')", "query_toks": [ "SELECT", "name", ",", "flag", "FROM", "ship", "WHERE", "ship_id", "NOT", "IN", "(", "SELECT", "ship_id", "FROM", "captain", "WHERE", "rank", "=", "'Midshipman", "'", ")" ], "query_toks_no_value": [ "select", "name", ",", "flag", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "captain", "where", "rank", "=", "value", ")" ], "question": "What are the names and flags of ships that do not have a captain with the rank of Midshipman?", "question_toks": [ "what", "are", "name", "and", "flag", "of", "ship", "that", "do", "not", "have", "a", "captain", "with", "rank", "of", "midshipman", "?" ], "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, 12, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Midshipman\"", null ] ] }, null ] ] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "flags", "of", "ships", "that", "do", "not", "have", "a", "captain", "with", "the", "rank", "of", "Midshipman", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "flag" ], [ "of" ], [ "ship" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "a" ], [ "captain" ], [ "with" ], [ "rank" ], [ "of" ], [ "midshipman" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "flag", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "captain", "NN" ], [ "with", "IN" ], [ "rank", "NN" ], [ "of", "IN" ], [ "midshipman", "NN" ], [ "?", "." ] ], "values": [ "Midshipman" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(1) A(0) C(9) T(1) Filter(19) A(0) C(3) T(1) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "ship_1", "query": "SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Midshipman' INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant'", "query_toks": [ "SELECT", "t1.name", "FROM", "ship", "AS", "t1", "JOIN", "captain", "AS", "t2", "ON", "t1.ship_id", "=", "t2.ship_id", "WHERE", "t2.rank", "=", "'Midshipman", "'", "INTERSECT", "SELECT", "t1.name", "FROM", "ship", "AS", "t1", "JOIN", "captain", "AS", "t2", "ON", "t1.ship_id", "=", "t2.ship_id", "WHERE", "t2.rank", "=", "'Lieutenant", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "ship", "as", "t1", "join", "captain", "as", "t2", "on", "t1", ".", "ship_id", "=", "t2", ".", "ship_id", "where", "t2", ".", "rank", "=", "value", "intersect", "select", "t1", ".", "name", "from", "ship", "as", "t1", "join", "captain", "as", "t2", "on", "t1", ".", "ship_id", "=", "t2", ".", "ship_id", "where", "t2", ".", "rank", "=", "value" ], "question": "Find the name of the ships that are steered by both a captain with Midshipman rank and a captain with Lieutenant rank.", "question_toks": [ "find", "name", "of", "ship", "that", "are", "steered", "by", "both", "a", "captain", "with", "midshipman", "rank", "and", "a", "captain", "with", "lieutenant", "rank", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, 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, 3, 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Lieutenant\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Midshipman\"", null ] ] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "ships", "that", "are", "steered", "by", "both", "a", "captain", "with", "Midshipman", "rank", "and", "a", "captain", "with", "Lieutenant", "rank", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "ship" ], [ "that" ], [ "are" ], [ "steered" ], [ "by" ], [ "both" ], [ "a" ], [ "captain" ], [ "with" ], [ "midshipman" ], [ "rank" ], [ "and" ], [ "a" ], [ "captain" ], [ "with" ], [ "lieutenant" ], [ "rank" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "steered", "VBN" ], [ "by", "IN" ], [ "both", "DT" ], [ "a", "DT" ], [ "captain", "NN" ], [ "with", "IN" ], [ "midshipman", "JJ" ], [ "rank", "NN" ], [ "and", "CC" ], [ "a", "DT" ], [ "captain", "NN" ], [ "with", "IN" ], [ "lieutenant", "JJ" ], [ "rank", "NN" ], [ ".", "." ] ], "values": [ "Lieutenant", "Midshipman" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(6) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "ship_1", "query": "SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Midshipman' INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant'", "query_toks": [ "SELECT", "t1.name", "FROM", "ship", "AS", "t1", "JOIN", "captain", "AS", "t2", "ON", "t1.ship_id", "=", "t2.ship_id", "WHERE", "t2.rank", "=", "'Midshipman", "'", "INTERSECT", "SELECT", "t1.name", "FROM", "ship", "AS", "t1", "JOIN", "captain", "AS", "t2", "ON", "t1.ship_id", "=", "t2.ship_id", "WHERE", "t2.rank", "=", "'Lieutenant", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "ship", "as", "t1", "join", "captain", "as", "t2", "on", "t1", ".", "ship_id", "=", "t2", ".", "ship_id", "where", "t2", ".", "rank", "=", "value", "intersect", "select", "t1", ".", "name", "from", "ship", "as", "t1", "join", "captain", "as", "t2", "on", "t1", ".", "ship_id", "=", "t2", ".", "ship_id", "where", "t2", ".", "rank", "=", "value" ], "question": "What are the names of ships that are commanded by both captains with the rank of Midshipman and captains with the rank of Lieutenant?", "question_toks": [ "what", "are", "name", "of", "ship", "that", "are", "commanded", "by", "both", "captain", "with", "rank", "of", "midshipman", "and", "captain", "with", "rank", "of", "lieutenant", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, 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, 3, 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Lieutenant\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Midshipman\"", null ] ] }, "names": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "ship id", "name", "type", "built year", "class", "flag" ], "table_names": [ "captain", "ship" ], "col_set": [ "*", "captain id", "name", "ship id", "age", "class", "rank", "type", "built year", "flag" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "3": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "ships", "that", "are", "commanded", "by", "both", "captains", "with", "the", "rank", "of", "Midshipman", "and", "captains", "with", "the", "rank", "of", "Lieutenant", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "ship" ], [ "that" ], [ "are" ], [ "commanded" ], [ "by" ], [ "both" ], [ "captain" ], [ "with" ], [ "rank" ], [ "of" ], [ "midshipman" ], [ "and" ], [ "captain" ], [ "with" ], [ "rank" ], [ "of" ], [ "lieutenant" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "ship", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "commanded", "VBN" ], [ "by", "IN" ], [ "both", "DT" ], [ "captain", "NN" ], [ "with", "IN" ], [ "rank", "NN" ], [ "of", "IN" ], [ "midshipman", "NN" ], [ "and", "CC" ], [ "captain", "NN" ], [ "with", "IN" ], [ "rank", "NN" ], [ "of", "IN" ], [ "lieutenant", "NN" ], [ "?", "." ] ], "values": [ "Lieutenant", "Midshipman" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(6) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "city_record", "query": "SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1", "query_toks": [ "SELECT", "host_city", "FROM", "hosting_city", "ORDER", "BY", "YEAR", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "host_city", "from", "hosting_city", "order", "by", "year", "desc", "limit", "value" ], "question": "What is id of the city that hosted events in the most recent year?", "question_toks": [ "what", "is", "id", "of", "city", "that", "hosted", "event", "in", "most", "recent", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 25, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "What", "is", "id", "of", "the", "city", "that", "hosted", "events", "in", "the", "most", "recent", "year", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "city" ], [ "that" ], [ "hosted" ], [ "event" ], [ "in" ], [ "most" ], [ "recent" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "of", "IN" ], [ "city", "NN" ], [ "that", "WDT" ], [ "hosted", "VBD" ], [ "event", "NN" ], [ "in", "IN" ], [ "most", "JJS" ], [ "recent", "JJ" ], [ "year", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(25) T(3) Sup(0) A(0) C(24) T(3)" }, { "db_id": "city_record", "query": "SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1", "query_toks": [ "SELECT", "host_city", "FROM", "hosting_city", "ORDER", "BY", "YEAR", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "host_city", "from", "hosting_city", "order", "by", "year", "desc", "limit", "value" ], "question": "Find the city that hosted some events in the most recent year. What is the id of this city?", "question_toks": [ "find", "city", "that", "hosted", "some", "event", "in", "most", "recent", "year", ".", "what", "is", "id", "of", "this", "city", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 25, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Find", "the", "city", "that", "hosted", "some", "events", "in", "the", "most", "recent", "year", ".", "What", "is", "the", "id", "of", "this", "city", "?" ], "question_arg": [ [ "find" ], [ "city" ], [ "that" ], [ "hosted" ], [ "some" ], [ "event" ], [ "in" ], [ "most" ], [ "recent" ], [ "year" ], [ "." ], [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "this" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "city", "NN" ], [ "that", "WDT" ], [ "hosted", "VBD" ], [ "some", "DT" ], [ "event", "NN" ], [ "in", "IN" ], [ "most", "JJS" ], [ "recent", "JJ" ], [ "year", "NN" ], [ ".", "." ], [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "this", "DT" ], [ "city", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(25) T(3) Sup(0) A(0) C(24) T(3)" }, { "db_id": "city_record", "query": "SELECT match_id FROM MATCH WHERE competition = \"1994 FIFA World Cup qualification\"", "query_toks": [ "SELECT", "match_id", "FROM", "MATCH", "WHERE", "competition", "=", "``", "1994", "FIFA", "World", "Cup", "qualification", "''" ], "query_toks_no_value": [ "select", "match_id", "from", "match", "where", "competition", "=", "value" ], "question": "Find the match ids of the cities that hosted competition \"1994 FIFA World Cup qualification\"?", "question_toks": [ "find", "match", "id", "of", "city", "that", "hosted", "competition", "'", "year", "fifa", "world", "cup", "qualification", "'", "?" ], "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 ], "\"1994 FIFA World Cup qualification\"", null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Find", "the", "match", "ids", "of", "the", "cities", "that", "hosted", "competition", "``", "1994", "FIFA", "World", "Cup", "qualification", "''", "?" ], "question_arg": [ [ "find" ], [ "match", "id" ], [ "of" ], [ "city" ], [ "that" ], [ "hosted" ], [ "competition" ], [ "'" ], [ "year" ], [ "fifa" ], [ "world" ], [ "cup" ], [ "qualification" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "match", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "that", "WDT" ], [ "hosted", "VBD" ], [ "competition", "NN" ], [ "'", "''" ], [ "1994", "CD" ], [ "fifa", "JJ" ], [ "world", "NN" ], [ "cup", "NN" ], [ "qualification", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "1994 FIFA World Cup qualification", "1994" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(12) T(1) V(0)" }, { "db_id": "city_record", "query": "SELECT match_id FROM MATCH WHERE competition = \"1994 FIFA World Cup qualification\"", "query_toks": [ "SELECT", "match_id", "FROM", "MATCH", "WHERE", "competition", "=", "``", "1994", "FIFA", "World", "Cup", "qualification", "''" ], "query_toks_no_value": [ "select", "match_id", "from", "match", "where", "competition", "=", "value" ], "question": "What is the match id of the competition called \"1994 FIFA World Cup qualification\"?", "question_toks": [ "what", "is", "match", "id", "of", "competition", "called", "'", "year", "fifa", "world", "cup", "qualification", "'", "?" ], "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 ], "\"1994 FIFA World Cup qualification\"", null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "What", "is", "the", "match", "id", "of", "the", "competition", "called", "``", "1994", "FIFA", "World", "Cup", "qualification", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "match", "id" ], [ "of" ], [ "competition" ], [ "called" ], [ "'" ], [ "year" ], [ "fifa" ], [ "world" ], [ "cup" ], [ "qualification" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "match", "JJ" ], [ "id", "NN" ], [ "of", "IN" ], [ "competition", "NN" ], [ "called", "VBN" ], [ "'", "POS" ], [ "1994", "CD" ], [ "fifa", "JJ" ], [ "world", "NN" ], [ "cup", "NN" ], [ "qualification", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "1994 FIFA World Cup qualification", "1994" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(12) T(1) V(0)" }, { "db_id": "city_record", "query": "SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year > 2010", "query_toks": [ "SELECT", "T1.city", "FROM", "city", "AS", "T1", "JOIN", "hosting_city", "AS", "T2", "ON", "T1.city_id", "=", "T2.host_city", "WHERE", "T2.year", ">", "2010" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "city", "as", "t1", "join", "hosting_city", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "host_city", "where", "t2", ".", "year", ">", "value" ], "question": "Find the cities which were once a host city after 2010?", "question_toks": [ "find", "city", "which", "were", "once", "a", "host", "city", "after", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 25, false ], null ], 2010.0, null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Find", "the", "cities", "which", "were", "once", "a", "host", "city", "after", "2010", "?" ], "question_arg": [ [ "find" ], [ "city" ], [ "which" ], [ "were" ], [ "once" ], [ "a" ], [ "host", "city" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "city", "NN" ], [ "which", "WDT" ], [ "were", "VBD" ], [ "once", "RB" ], [ "a", "DT" ], [ "host", "NN" ], [ "city", "NN" ], [ "after", "IN" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "1", "2010" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(5) A(0) C(24) T(3) V(1)" }, { "db_id": "city_record", "query": "SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year > 2010", "query_toks": [ "SELECT", "T1.city", "FROM", "city", "AS", "T1", "JOIN", "hosting_city", "AS", "T2", "ON", "T1.city_id", "=", "T2.host_city", "WHERE", "T2.year", ">", "2010" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "city", "as", "t1", "join", "hosting_city", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "host_city", "where", "t2", ".", "year", ">", "value" ], "question": "Which cities served as a host city after 2010?", "question_toks": [ "which", "city", "served", "a", "a", "host", "city", "after", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 25, false ], null ], 2010.0, null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Which", "cities", "served", "as", "a", "host", "city", "after", "2010", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "served" ], [ "a" ], [ "a" ], [ "host", "city" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "served", "VBD" ], [ "a", "DT" ], [ "a", "DT" ], [ "host", "NN" ], [ "city", "NN" ], [ "after", "IN" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "2010" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(5) A(0) C(24) T(3) V(0)" }, { "db_id": "city_record", "query": "SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.city", "FROM", "city", "AS", "T1", "JOIN", "hosting_city", "AS", "T2", "ON", "T1.city_id", "=", "T2.host_city", "GROUP", "BY", "T2.host_city", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "city", "as", "t1", "join", "hosting_city", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "host_city", "group", "by", "t2", ".", "host_city", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which city has hosted the most events?", "question_toks": [ "which", "city", "ha", "hosted", "most", "event", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 27, 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, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Which", "city", "has", "hosted", "the", "most", "events", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "ha" ], [ "hosted" ], [ "most" ], [ "event" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "ha", "NN" ], [ "hosted", "VBD" ], [ "most", "RBS" ], [ "event", "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(25) T(3)" }, { "db_id": "city_record", "query": "SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.city", "FROM", "city", "AS", "T1", "JOIN", "hosting_city", "AS", "T2", "ON", "T1.city_id", "=", "T2.host_city", "GROUP", "BY", "T2.host_city", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "city", "as", "t1", "join", "hosting_city", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "host_city", "group", "by", "t2", ".", "host_city", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the city that hosted the most events.", "question_toks": [ "find", "city", "that", "hosted", "most", "event", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 27, 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, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Find", "the", "city", "that", "hosted", "the", "most", "events", "." ], "question_arg": [ [ "find" ], [ "city" ], [ "that" ], [ "hosted" ], [ "most" ], [ "event" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "city", "NN" ], [ "that", "WDT" ], [ "hosted", "VBD" ], [ "most", "RBS" ], [ "event", "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(25) T(3)" }, { "db_id": "city_record", "query": "SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = \"Nanjing ( Jiangsu )\" AND T3.competition = \"1994 FIFA World Cup qualification\"", "query_toks": [ "SELECT", "T3.venue", "FROM", "city", "AS", "T1", "JOIN", "hosting_city", "AS", "T2", "ON", "T1.city_id", "=", "T2.host_city", "JOIN", "MATCH", "AS", "T3", "ON", "T2.match_id", "=", "T3.match_id", "WHERE", "T1.city", "=", "``", "Nanjing", "(", "Jiangsu", ")", "''", "AND", "T3.competition", "=", "``", "1994", "FIFA", "World", "Cup", "qualification", "''" ], "query_toks_no_value": [ "select", "t3", ".", "venue", "from", "city", "as", "t1", "join", "hosting_city", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "host_city", "join", "match", "as", "t3", "on", "t2", ".", "match_id", "=", "t3", ".", "match_id", "where", "t1", ".", "city", "=", "value", "and", "t3", ".", "competition", "=", "value" ], "question": "What is the venue of the competition \"1994 FIFA World Cup qualification\" hosted by \"Nanjing ( Jiangsu )\"?", "question_toks": [ "what", "is", "venue", "of", "competition", "'", "year", "fifa", "world", "cup", "qualification", "'", "hosted", "by", "'", "nanjing", "(", "jiangsu", ")", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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, 27, 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 ], "\"Nanjing ( Jiangsu )\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"1994 FIFA World Cup qualification\"", null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "What", "is", "the", "venue", "of", "the", "competition", "``", "1994", "FIFA", "World", "Cup", "qualification", "''", "hosted", "by", "``", "Nanjing", "(", "Jiangsu", ")", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "venue" ], [ "of" ], [ "competition" ], [ "'" ], [ "year" ], [ "fifa" ], [ "world" ], [ "cup" ], [ "qualification" ], [ "'" ], [ "hosted" ], [ "by" ], [ "'" ], [ "nanjing" ], [ "(" ], [ "jiangsu" ], [ ")" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "venue", "NN" ], [ "of", "IN" ], [ "competition", "NN" ], [ "'", "POS" ], [ "1994", "CD" ], [ "fifa", "JJ" ], [ "world", "NN" ], [ "cup", "NN" ], [ "qualification", "NN" ], [ "'", "POS" ], [ "hosted", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "nanjing", "NN" ], [ "(", "(" ], [ "jiangsu", "NN" ], [ ")", ")" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "2002 FIFA World Cup qualification", "Nanjing ( Jiangsu )", "1994", "1994 FIFA World Cup qualification" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(25) T(3) Filter(0) Filter(2) A(0) C(2) T(0) V(1) Filter(2) A(0) C(12) T(1) V(3)" }, { "db_id": "city_record", "query": "SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = \"Nanjing ( Jiangsu )\" AND T3.competition = \"1994 FIFA World Cup qualification\"", "query_toks": [ "SELECT", "T3.venue", "FROM", "city", "AS", "T1", "JOIN", "hosting_city", "AS", "T2", "ON", "T1.city_id", "=", "T2.host_city", "JOIN", "MATCH", "AS", "T3", "ON", "T2.match_id", "=", "T3.match_id", "WHERE", "T1.city", "=", "``", "Nanjing", "(", "Jiangsu", ")", "''", "AND", "T3.competition", "=", "``", "1994", "FIFA", "World", "Cup", "qualification", "''" ], "query_toks_no_value": [ "select", "t3", ".", "venue", "from", "city", "as", "t1", "join", "hosting_city", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "host_city", "join", "match", "as", "t3", "on", "t2", ".", "match_id", "=", "t3", ".", "match_id", "where", "t1", ".", "city", "=", "value", "and", "t3", ".", "competition", "=", "value" ], "question": "Find the venue of the competition \"1994 FIFA World Cup qualification\" which was hosted by \"Nanjing ( Jiangsu )\".", "question_toks": [ "find", "venue", "of", "competition", "'", "year", "fifa", "world", "cup", "qualification", "'", "which", "wa", "hosted", "by", "'", "nanjing", "(", "jiangsu", ")", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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, 27, 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 ], "\"Nanjing ( Jiangsu )\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"1994 FIFA World Cup qualification\"", null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Find", "the", "venue", "of", "the", "competition", "``", "1994", "FIFA", "World", "Cup", "qualification", "''", "which", "was", "hosted", "by", "``", "Nanjing", "(", "Jiangsu", ")", "''", "." ], "question_arg": [ [ "find" ], [ "venue" ], [ "of" ], [ "competition" ], [ "'" ], [ "year" ], [ "fifa" ], [ "world" ], [ "cup" ], [ "qualification" ], [ "'" ], [ "which" ], [ "wa" ], [ "hosted" ], [ "by" ], [ "'" ], [ "nanjing" ], [ "(" ], [ "jiangsu" ], [ ")" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "venue", "NN" ], [ "of", "IN" ], [ "competition", "NN" ], [ "'", "POS" ], [ "1994", "CD" ], [ "fifa", "JJ" ], [ "world", "NN" ], [ "cup", "NN" ], [ "qualification", "NN" ], [ "'", "POS" ], [ "which", "WDT" ], [ "wa", "VBP" ], [ "hosted", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "nanjing", "NN" ], [ "(", "(" ], [ "jiangsu", "NN" ], [ ")", ")" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Nanjing ( Jiangsu )", "Nantong ( Jiangsu )", "1994", "1994 FIFA World Cup qualification" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(25) T(3) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(12) T(1) V(3)" }, { "db_id": "city_record", "query": "SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = \"Shanghai\"", "query_toks": [ "SELECT", "T2.Jan", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1.city_id", "=", "T2.city_id", "WHERE", "T1.city", "=", "``", "Shanghai", "''" ], "query_toks_no_value": [ "select", "t2", ".", "jan", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "where", "t1", ".", "city", "=", "value" ], "question": "Give me the temperature of Shanghai in January.", "question_toks": [ "give", "me", "temperature", "of", "shanghai", "in", "january", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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, 2, false ], null ], "\"Shanghai\"", null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Give", "me", "the", "temperature", "of", "Shanghai", "in", "January", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "temperature" ], [ "of" ], [ "shanghai" ], [ "in" ], [ "january" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "temperature", "NN" ], [ "of", "IN" ], [ "shanghai", "NN" ], [ "in", "IN" ], [ "january", "NN" ], [ ".", "." ] ], "values": [ "Shanghai", "1/" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "city_record", "query": "SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = \"Shanghai\"", "query_toks": [ "SELECT", "T2.Jan", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1.city_id", "=", "T2.city_id", "WHERE", "T1.city", "=", "``", "Shanghai", "''" ], "query_toks_no_value": [ "select", "t2", ".", "jan", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "where", "t1", ".", "city", "=", "value" ], "question": "What is the temperature of \"Shanghai\" city in January?", "question_toks": [ "what", "is", "temperature", "of", "'", "shanghai", "'", "city", "in", "january", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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, 2, false ], null ], "\"Shanghai\"", null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "What", "is", "the", "temperature", "of", "``", "Shanghai", "''", "city", "in", "January", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "temperature" ], [ "of" ], [ "'" ], [ "shanghai" ], [ "'" ], [ "city" ], [ "in" ], [ "january" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "temperature", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "shanghai", "NN" ], [ "'", "''" ], [ "city", "NN" ], [ "in", "IN" ], [ "january", "NN" ], [ "?", "." ] ], "values": [ "1/", "Shanghai" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "city_record", "query": "SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T1.city = \"Taizhou ( Zhejiang )\"", "query_toks": [ "SELECT", "T2.year", "FROM", "city", "AS", "T1", "JOIN", "hosting_city", "AS", "T2", "ON", "T1.city_id", "=", "T2.host_city", "WHERE", "T1.city", "=", "``", "Taizhou", "(", "Zhejiang", ")", "''" ], "query_toks_no_value": [ "select", "t2", ".", "year", "from", "city", "as", "t1", "join", "hosting_city", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "host_city", "where", "t1", ".", "city", "=", "value" ], "question": "What is the host year of city \"Taizhou ( Zhejiang )\"?", "question_toks": [ "what", "is", "host", "year", "of", "city", "'", "taizhou", "(", "zhejiang", ")", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Taizhou ( Zhejiang )\"", null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "What", "is", "the", "host", "year", "of", "city", "``", "Taizhou", "(", "Zhejiang", ")", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "host" ], [ "year" ], [ "of" ], [ "city" ], [ "'" ], [ "taizhou" ], [ "(" ], [ "zhejiang" ], [ ")" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "host", "JJ" ], [ "year", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "'", "POS" ], [ "taizhou", "NN" ], [ "(", "(" ], [ "zhejiang", "NN" ], [ ")", ")" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Taizhou ( Zhejiang )" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(24) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "city_record", "query": "SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T1.city = \"Taizhou ( Zhejiang )\"", "query_toks": [ "SELECT", "T2.year", "FROM", "city", "AS", "T1", "JOIN", "hosting_city", "AS", "T2", "ON", "T1.city_id", "=", "T2.host_city", "WHERE", "T1.city", "=", "``", "Taizhou", "(", "Zhejiang", ")", "''" ], "query_toks_no_value": [ "select", "t2", ".", "year", "from", "city", "as", "t1", "join", "hosting_city", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "host_city", "where", "t1", ".", "city", "=", "value" ], "question": "IN which year did city \"Taizhou ( Zhejiang )\" serve as a host city?", "question_toks": [ "in", "which", "year", "did", "city", "'", "taizhou", "(", "zhejiang", ")", "'", "serve", "a", "a", "host", "city", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Taizhou ( Zhejiang )\"", null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "IN", "which", "year", "did", "city", "``", "Taizhou", "(", "Zhejiang", ")", "''", "serve", "as", "a", "host", "city", "?" ], "question_arg": [ [ "in" ], [ "which" ], [ "year" ], [ "did" ], [ "city" ], [ "'" ], [ "taizhou" ], [ "(" ], [ "zhejiang" ], [ ")" ], [ "'" ], [ "serve" ], [ "a" ], [ "a" ], [ "host", "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "which", "WDT" ], [ "year", "NN" ], [ "did", "VBD" ], [ "city", "NN" ], [ "'", "''" ], [ "taizhou", "NN" ], [ "(", "(" ], [ "zhejiang", "NN" ], [ ")", ")" ], [ "'", "''" ], [ "serve", "VBP" ], [ "a", "DT" ], [ "a", "DT" ], [ "host", "NN" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "Taizhou ( Zhejiang )" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(24) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "city_record", "query": "SELECT city FROM city ORDER BY regional_population DESC LIMIT 3", "query_toks": [ "SELECT", "city", "FROM", "city", "ORDER", "BY", "regional_population", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "city", "from", "city", "order", "by", "regional_population", "desc", "limit", "value" ], "question": "Which three cities have the largest regional population?", "question_toks": [ "which", "three", "city", "have", "largest", "regional", "population", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Which", "three", "cities", "have", "the", "largest", "regional", "population", "?" ], "question_arg": [ [ "which" ], [ "three" ], [ "city" ], [ "have" ], [ "largest" ], [ "regional", "population" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "three", "CD" ], [ "city", "NN" ], [ "have", "VBP" ], [ "largest", "JJS" ], [ "regional", "JJ" ], [ "population", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "city_record", "query": "SELECT city FROM city ORDER BY regional_population DESC LIMIT 3", "query_toks": [ "SELECT", "city", "FROM", "city", "ORDER", "BY", "regional_population", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "city", "from", "city", "order", "by", "regional_population", "desc", "limit", "value" ], "question": "What are the three largest cities in terms of regional population?", "question_toks": [ "what", "are", "three", "largest", "city", "in", "term", "of", "regional", "population", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "three", "largest", "cities", "in", "terms", "of", "regional", "population", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "three" ], [ "largest" ], [ "city" ], [ "in" ], [ "term" ], [ "of" ], [ "regional", "population" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "three", "CD" ], [ "largest", "JJS" ], [ "city", "NN" ], [ "in", "IN" ], [ "term", "NN" ], [ "of", "IN" ], [ "regional", "JJ" ], [ "population", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "city_record", "query": "SELECT city , GDP FROM city ORDER BY GDP LIMIT 1", "query_toks": [ "SELECT", "city", ",", "GDP", "FROM", "city", "ORDER", "BY", "GDP", "LIMIT", "1" ], "query_toks_no_value": [ "select", "city", ",", "gdp", "from", "city", "order", "by", "gdp", "limit", "value" ], "question": "Which city has the lowest GDP? Please list the city name and its GDP.", "question_toks": [ "which", "city", "ha", "lowest", "gdp", "?", "please", "list", "city", "name", "and", "it", "gdp", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Which", "city", "has", "the", "lowest", "GDP", "?", "Please", "list", "the", "city", "name", "and", "its", "GDP", "." ], "question_arg": [ [ "which" ], [ "city" ], [ "ha" ], [ "lowest" ], [ "gdp" ], [ "?" ], [ "please" ], [ "list" ], [ "city" ], [ "name" ], [ "and" ], [ "it" ], [ "gdp" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "ha", "NN" ], [ "lowest", "JJS" ], [ "gdp", "NN" ], [ "?", "." ], [ "please", "JJ" ], [ "list", "NN" ], [ "city", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "it", "PRP" ], [ "gdp", "VBZ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(0) C(6) T(0) Sup(1) A(0) C(6) T(0)" }, { "db_id": "city_record", "query": "SELECT city , GDP FROM city ORDER BY GDP LIMIT 1", "query_toks": [ "SELECT", "city", ",", "GDP", "FROM", "city", "ORDER", "BY", "GDP", "LIMIT", "1" ], "query_toks_no_value": [ "select", "city", ",", "gdp", "from", "city", "order", "by", "gdp", "limit", "value" ], "question": "What is the city with the smallest GDP? Return the city and its GDP.", "question_toks": [ "what", "is", "city", "with", "smallest", "gdp", "?", "return", "city", "and", "it", "gdp", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "What", "is", "the", "city", "with", "the", "smallest", "GDP", "?", "Return", "the", "city", "and", "its", "GDP", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "city" ], [ "with" ], [ "smallest" ], [ "gdp" ], [ "?" ], [ "return" ], [ "city" ], [ "and" ], [ "it" ], [ "gdp" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "city", "NN" ], [ "with", "IN" ], [ "smallest", "JJS" ], [ "gdp", "NN" ], [ "?", "." ], [ "return", "NN" ], [ "city", "NN" ], [ "and", "CC" ], [ "it", "PRP" ], [ "gdp", "VBZ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(0) C(6) T(0) Sup(1) A(0) C(6) T(0)" }, { "db_id": "city_record", "query": "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id ORDER BY T2.Feb DESC LIMIT 1", "query_toks": [ "SELECT", "T1.city", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1.city_id", "=", "T2.city_id", "ORDER", "BY", "T2.Feb", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "order", "by", "t2", ".", "feb", "desc", "limit", "value" ], "question": "Which city has the highest temperature in February?", "question_toks": [ "which", "city", "ha", "highest", "temperature", "in", "february", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Which", "city", "has", "the", "highest", "temperature", "in", "February", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "ha" ], [ "highest" ], [ "temperature" ], [ "in" ], [ "february" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "ha", "NN" ], [ "highest", "JJS" ], [ "temperature", "NN" ], [ "in", "IN" ], [ "february", "JJ" ], [ "?", "." ] ], "values": [ "2/" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(14) T(2)" }, { "db_id": "city_record", "query": "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id ORDER BY T2.Feb DESC LIMIT 1", "query_toks": [ "SELECT", "T1.city", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1.city_id", "=", "T2.city_id", "ORDER", "BY", "T2.Feb", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "order", "by", "t2", ".", "feb", "desc", "limit", "value" ], "question": "In February, which city marks the highest temperature?", "question_toks": [ "in", "february", ",", "which", "city", "mark", "highest", "temperature", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "In", "February", ",", "which", "city", "marks", "the", "highest", "temperature", "?" ], "question_arg": [ [ "in" ], [ "february" ], [ "," ], [ "which" ], [ "city" ], [ "mark" ], [ "highest" ], [ "temperature" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "february", "NN" ], [ ",", "," ], [ "which", "WDT" ], [ "city", "NN" ], [ "mark", "NN" ], [ "highest", "JJS" ], [ "temperature", "NN" ], [ "?", "." ] ], "values": [ "2/" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(14) T(2)" }, { "db_id": "city_record", "query": "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul OR T2.Mar > T2.Oct", "query_toks": [ "SELECT", "T1.city", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1.city_id", "=", "T2.city_id", "WHERE", "T2.Mar", "<", "T2.Jul", "OR", "T2.Mar", ">", "T2.Oct" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "where", "t2", ".", "mar", "<", "t2", ".", "jul", "or", "t2", ".", "mar", ">", "t2", ".", "oct" ], "question": "Give me a list of cities whose temperature in March is lower than that in July or higher than that in Oct?", "question_toks": [ "give", "me", "a", "list", "of", "city", "whose", "temperature", "in", "march", "is", "lower", "than", "that", "in", "july", "or", "higher", "than", "that", "in", "oct", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, 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, 16, false ], null ], [ 0, 19, false ], null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Give", "me", "a", "list", "of", "cities", "whose", "temperature", "in", "March", "is", "lower", "than", "that", "in", "July", "or", "higher", "than", "that", "in", "Oct", "?" ], "question_arg": [ [ "give" ], [ "me" ], [ "a" ], [ "list" ], [ "of" ], [ "city" ], [ "whose" ], [ "temperature" ], [ "in" ], [ "march" ], [ "is" ], [ "lower" ], [ "than" ], [ "that" ], [ "in" ], [ "july" ], [ "or" ], [ "higher" ], [ "than" ], [ "that" ], [ "in" ], [ "oct" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "a", "DT" ], [ "list", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "whose", "WP$" ], [ "temperature", "NN" ], [ "in", "IN" ], [ "march", "NN" ], [ "is", "VBZ" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "that", "DT" ], [ "in", "IN" ], [ "july", "NN" ], [ "or", "CC" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "that", "DT" ], [ "in", "IN" ], [ "oct", "NN" ], [ "?", "." ] ], "values": [ "3/", "7/", "[0, 19, False]" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(4) A(0) C(15) T(2) V(2)" }, { "db_id": "city_record", "query": "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul OR T2.Mar > T2.Oct", "query_toks": [ "SELECT", "T1.city", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1.city_id", "=", "T2.city_id", "WHERE", "T2.Mar", "<", "T2.Jul", "OR", "T2.Mar", ">", "T2.Oct" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "where", "t2", ".", "mar", "<", "t2", ".", "jul", "or", "t2", ".", "mar", ">", "t2", ".", "oct" ], "question": "Which cities' temperature in March is lower than that in July or higher than that in Oct?", "question_toks": [ "which", "city", "'", "temperature", "in", "march", "is", "lower", "than", "that", "in", "july", "or", "higher", "than", "that", "in", "oct", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, 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, 16, false ], null ], [ 0, 19, false ], null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Which", "cities", "'", "temperature", "in", "March", "is", "lower", "than", "that", "in", "July", "or", "higher", "than", "that", "in", "Oct", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "'" ], [ "temperature" ], [ "in" ], [ "march" ], [ "is" ], [ "lower" ], [ "than" ], [ "that" ], [ "in" ], [ "july" ], [ "or" ], [ "higher" ], [ "than" ], [ "that" ], [ "in" ], [ "oct" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "'", "''" ], [ "temperature", "NN" ], [ "in", "IN" ], [ "march", "NN" ], [ "is", "VBZ" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "that", "DT" ], [ "in", "IN" ], [ "july", "NN" ], [ "or", "CC" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "that", "DT" ], [ "in", "IN" ], [ "oct", "NN" ], [ "?", "." ] ], "values": [ "3/", "7/", "[0, 19, False]" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(4) A(0) C(15) T(2) V(2)" }, { "db_id": "city_record", "query": "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city", "query_toks": [ "SELECT", "T1.city", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1.city_id", "=", "T2.city_id", "WHERE", "T2.Mar", "<", "T2.Jul", "INTERSECT", "SELECT", "T3.city", "FROM", "city", "AS", "T3", "JOIN", "hosting_city", "AS", "T4", "ON", "T3.city_id", "=", "T4.host_city" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "where", "t2", ".", "mar", "<", "t2", ".", "jul", "intersect", "select", "t3", ".", "city", "from", "city", "as", "t3", "join", "hosting_city", "as", "t4", "on", "t3", ".", "city_id", "=", "t4", ".", "host_city" ], "question": "Give me a list of cities whose temperature in Mar is lower than that in July and which have also served as host cities?", "question_toks": [ "give", "me", "a", "list", "of", "city", "whose", "temperature", "in", "mar", "is", "lower", "than", "that", "in", "july", "and", "which", "have", "also", "served", "a", "host", "city", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, 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, 27, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 16, false ], null ], [ 0, 19, false ], null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Give", "me", "a", "list", "of", "cities", "whose", "temperature", "in", "Mar", "is", "lower", "than", "that", "in", "July", "and", "which", "have", "also", "served", "as", "host", "cities", "?" ], "question_arg": [ [ "give" ], [ "me" ], [ "a" ], [ "list" ], [ "of" ], [ "city" ], [ "whose" ], [ "temperature" ], [ "in" ], [ "mar" ], [ "is" ], [ "lower" ], [ "than" ], [ "that" ], [ "in" ], [ "july" ], [ "and" ], [ "which" ], [ "have" ], [ "also" ], [ "served" ], [ "a" ], [ "host", "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "a", "DT" ], [ "list", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "whose", "WP$" ], [ "temperature", "NN" ], [ "in", "IN" ], [ "mar", "NN" ], [ "is", "VBZ" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "that", "DT" ], [ "in", "IN" ], [ "july", "NN" ], [ "and", "CC" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "also", "RB" ], [ "served", "VBN" ], [ "a", "DT" ], [ "host", "NN" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "7/", "[0, 19, False]" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(4) A(0) C(15) T(2) V(1) 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(25) T(3)" }, { "db_id": "city_record", "query": "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city", "query_toks": [ "SELECT", "T1.city", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1.city_id", "=", "T2.city_id", "WHERE", "T2.Mar", "<", "T2.Jul", "INTERSECT", "SELECT", "T3.city", "FROM", "city", "AS", "T3", "JOIN", "hosting_city", "AS", "T4", "ON", "T3.city_id", "=", "T4.host_city" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "where", "t2", ".", "mar", "<", "t2", ".", "jul", "intersect", "select", "t3", ".", "city", "from", "city", "as", "t3", "join", "hosting_city", "as", "t4", "on", "t3", ".", "city_id", "=", "t4", ".", "host_city" ], "question": "Which cities have lower temperature in March than in July and have been once host cities?", "question_toks": [ "which", "city", "have", "lower", "temperature", "in", "march", "than", "in", "july", "and", "have", "been", "once", "host", "city", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, 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, 27, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 16, false ], null ], [ 0, 19, false ], null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Which", "cities", "have", "lower", "temperature", "in", "March", "than", "in", "July", "and", "have", "been", "once", "host", "cities", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "have" ], [ "lower" ], [ "temperature" ], [ "in" ], [ "march" ], [ "than" ], [ "in" ], [ "july" ], [ "and" ], [ "have" ], [ "been" ], [ "once" ], [ "host", "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "have", "VBP" ], [ "lower", "JJR" ], [ "temperature", "NN" ], [ "in", "IN" ], [ "march", "NN" ], [ "than", "IN" ], [ "in", "IN" ], [ "july", "NN" ], [ "and", "CC" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "once", "RB" ], [ "host", "VBN" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "3/", "1", "7/", "[0, 19, False]" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(4) A(0) C(15) T(2) V(3) 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(25) T(3)" }, { "db_id": "city_record", "query": "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city", "query_toks": [ "SELECT", "T1.city", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1.city_id", "=", "T2.city_id", "WHERE", "T2.Mar", "<", "T2.Dec", "EXCEPT", "SELECT", "T3.city", "FROM", "city", "AS", "T3", "JOIN", "hosting_city", "AS", "T4", "ON", "T3.city_id", "=", "T4.host_city" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "where", "t2", ".", "mar", "<", "t2", ".", "dec", "except", "select", "t3", ".", "city", "from", "city", "as", "t3", "join", "hosting_city", "as", "t4", "on", "t3", ".", "city_id", "=", "t4", ".", "host_city" ], "question": "Give me a list of cities whose temperature in Mar is lower than that in Dec and which have never been host cities.", "question_toks": [ "give", "me", "a", "list", "of", "city", "whose", "temperature", "in", "mar", "is", "lower", "than", "that", "in", "dec", "and", "which", "have", "never", "been", "host", "city", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, 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, 16, false ], null ], [ 0, 24, false ], null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Give", "me", "a", "list", "of", "cities", "whose", "temperature", "in", "Mar", "is", "lower", "than", "that", "in", "Dec", "and", "which", "have", "never", "been", "host", "cities", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "a" ], [ "list" ], [ "of" ], [ "city" ], [ "whose" ], [ "temperature" ], [ "in" ], [ "mar" ], [ "is" ], [ "lower" ], [ "than" ], [ "that" ], [ "in" ], [ "dec" ], [ "and" ], [ "which" ], [ "have" ], [ "never" ], [ "been" ], [ "host", "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "a", "DT" ], [ "list", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "whose", "WP$" ], [ "temperature", "NN" ], [ "in", "IN" ], [ "mar", "NN" ], [ "is", "VBZ" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "that", "DT" ], [ "in", "IN" ], [ "dec", "NN" ], [ "and", "CC" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "never", "RB" ], [ "been", "VBN" ], [ "host", "VBN" ], [ "city", "NN" ], [ ".", "." ] ], "values": [ "[0, 24, False]" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(4) A(0) C(15) T(2) V(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(25) T(3)" }, { "db_id": "city_record", "query": "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city", "query_toks": [ "SELECT", "T1.city", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1.city_id", "=", "T2.city_id", "WHERE", "T2.Mar", "<", "T2.Dec", "EXCEPT", "SELECT", "T3.city", "FROM", "city", "AS", "T3", "JOIN", "hosting_city", "AS", "T4", "ON", "T3.city_id", "=", "T4.host_city" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "where", "t2", ".", "mar", "<", "t2", ".", "dec", "except", "select", "t3", ".", "city", "from", "city", "as", "t3", "join", "hosting_city", "as", "t4", "on", "t3", ".", "city_id", "=", "t4", ".", "host_city" ], "question": "Which cities have lower temperature in March than in Dec and have never served as host cities?", "question_toks": [ "which", "city", "have", "lower", "temperature", "in", "march", "than", "in", "dec", "and", "have", "never", "served", "a", "host", "city", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, 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, 16, false ], null ], [ 0, 24, false ], null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Which", "cities", "have", "lower", "temperature", "in", "March", "than", "in", "Dec", "and", "have", "never", "served", "as", "host", "cities", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "have" ], [ "lower" ], [ "temperature" ], [ "in" ], [ "march" ], [ "than" ], [ "in" ], [ "dec" ], [ "and" ], [ "have" ], [ "never" ], [ "served" ], [ "a" ], [ "host", "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "have", "VBP" ], [ "lower", "JJR" ], [ "temperature", "NN" ], [ "in", "IN" ], [ "march", "NN" ], [ "than", "IN" ], [ "in", "IN" ], [ "dec", "NN" ], [ "and", "CC" ], [ "have", "VBP" ], [ "never", "RB" ], [ "served", "VBN" ], [ "a", "DT" ], [ "host", "NN" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "3/", "[0, 24, False]" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(4) A(0) C(15) T(2) V(1) 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(25) T(3)" }, { "db_id": "city_record", "query": "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Feb > T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city", "query_toks": [ "SELECT", "T1.city", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1.city_id", "=", "T2.city_id", "WHERE", "T2.Feb", ">", "T2.Jun", "UNION", "SELECT", "T3.city", "FROM", "city", "AS", "T3", "JOIN", "hosting_city", "AS", "T4", "ON", "T3.city_id", "=", "T4.host_city" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "where", "t2", ".", "feb", ">", "t2", ".", "jun", "union", "select", "t3", ".", "city", "from", "city", "as", "t3", "join", "hosting_city", "as", "t4", "on", "t3", ".", "city_id", "=", "t4", ".", "host_city" ], "question": "Give me a list of cities whose temperature in Feb is higher than that in Jun or cities that were once host cities?", "question_toks": [ "give", "me", "a", "list", "of", "city", "whose", "temperature", "in", "feb", "is", "higher", "than", "that", "in", "jun", "or", "city", "that", "were", "once", "host", "city", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, 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": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "where": [ [ false, 3, [ 0, [ 0, 15, false ], null ], [ 0, 18, false ], null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Give", "me", "a", "list", "of", "cities", "whose", "temperature", "in", "Feb", "is", "higher", "than", "that", "in", "Jun", "or", "cities", "that", "were", "once", "host", "cities", "?" ], "question_arg": [ [ "give" ], [ "me" ], [ "a" ], [ "list" ], [ "of" ], [ "city" ], [ "whose" ], [ "temperature" ], [ "in" ], [ "feb" ], [ "is" ], [ "higher" ], [ "than" ], [ "that" ], [ "in" ], [ "jun" ], [ "or" ], [ "city" ], [ "that" ], [ "were" ], [ "once" ], [ "host", "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "a", "DT" ], [ "list", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "whose", "WP$" ], [ "temperature", "NN" ], [ "in", "IN" ], [ "feb", "NN" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "that", "DT" ], [ "in", "IN" ], [ "jun", "NN" ], [ "or", "CC" ], [ "city", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "once", "RB" ], [ "host", "VBN" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "1", "[0, 18, False]" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(5) A(0) C(14) T(2) V(1) 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(25) T(3)" }, { "db_id": "city_record", "query": "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Feb > T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city", "query_toks": [ "SELECT", "T1.city", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1.city_id", "=", "T2.city_id", "WHERE", "T2.Feb", ">", "T2.Jun", "UNION", "SELECT", "T3.city", "FROM", "city", "AS", "T3", "JOIN", "hosting_city", "AS", "T4", "ON", "T3.city_id", "=", "T4.host_city" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "where", "t2", ".", "feb", ">", "t2", ".", "jun", "union", "select", "t3", ".", "city", "from", "city", "as", "t3", "join", "hosting_city", "as", "t4", "on", "t3", ".", "city_id", "=", "t4", ".", "host_city" ], "question": "Which cities have higher temperature in Feb than in Jun or have once served as host cities?", "question_toks": [ "which", "city", "have", "higher", "temperature", "in", "feb", "than", "in", "jun", "or", "have", "once", "served", "a", "host", "city", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, 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": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "where": [ [ false, 3, [ 0, [ 0, 15, false ], null ], [ 0, 18, false ], null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Which", "cities", "have", "higher", "temperature", "in", "Feb", "than", "in", "Jun", "or", "have", "once", "served", "as", "host", "cities", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "have" ], [ "higher" ], [ "temperature" ], [ "in" ], [ "feb" ], [ "than" ], [ "in" ], [ "jun" ], [ "or" ], [ "have" ], [ "once" ], [ "served" ], [ "a" ], [ "host", "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "have", "VBP" ], [ "higher", "JJR" ], [ "temperature", "NN" ], [ "in", "IN" ], [ "feb", "NN" ], [ "than", "IN" ], [ "in", "IN" ], [ "jun", "NN" ], [ "or", "CC" ], [ "have", "VBP" ], [ "once", "RB" ], [ "served", "VBN" ], [ "a", "DT" ], [ "host", "NN" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "1", "[0, 18, False]" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(5) A(0) C(14) T(2) V(1) 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(25) T(3)" }, { "db_id": "city_record", "query": "SELECT city FROM city WHERE regional_population > 10000000", "query_toks": [ "SELECT", "city", "FROM", "city", "WHERE", "regional_population", ">", "10000000" ], "query_toks_no_value": [ "select", "city", "from", "city", "where", "regional_population", ">", "value" ], "question": "Please give me a list of cities whose regional population is over 10000000.", "question_toks": [ "please", "give", "me", "a", "list", "of", "city", "whose", "regional", "population", "is", "over", "10000000", "." ], "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 ], 10000000.0, null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Please", "give", "me", "a", "list", "of", "cities", "whose", "regional", "population", "is", "over", "10000000", "." ], "question_arg": [ [ "please" ], [ "give" ], [ "me" ], [ "a" ], [ "list" ], [ "of" ], [ "city" ], [ "whose" ], [ "regional", "population" ], [ "is" ], [ "over" ], [ "10000000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "give", "VB" ], [ "me", "PRP" ], [ "a", "DT" ], [ "list", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "whose", "WP$" ], [ "regional", "JJ" ], [ "population", "NN" ], [ "is", "VBZ" ], [ "over", "IN" ], [ "10000000", "CD" ], [ ".", "." ] ], "values": [ "10000000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(5) A(0) C(5) T(0) V(0)" }, { "db_id": "city_record", "query": "SELECT city FROM city WHERE regional_population > 10000000", "query_toks": [ "SELECT", "city", "FROM", "city", "WHERE", "regional_population", ">", "10000000" ], "query_toks_no_value": [ "select", "city", "from", "city", "where", "regional_population", ">", "value" ], "question": "Which cities have regional population above 10000000?", "question_toks": [ "which", "city", "have", "regional", "population", "above", "10000000", "?" ], "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 ], 10000000.0, null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Which", "cities", "have", "regional", "population", "above", "10000000", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "have" ], [ "regional", "population" ], [ "above" ], [ "10000000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "have", "VBP" ], [ "regional", "JJ" ], [ "population", "NN" ], [ "above", "IN" ], [ "10000000", "CD" ], [ "?", "." ] ], "values": [ "10000000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(5) A(0) C(5) T(0) V(0)" }, { "db_id": "city_record", "query": "SELECT city FROM city WHERE regional_population > 10000000 UNION SELECT city FROM city WHERE regional_population < 5000000", "query_toks": [ "SELECT", "city", "FROM", "city", "WHERE", "regional_population", ">", "10000000", "UNION", "SELECT", "city", "FROM", "city", "WHERE", "regional_population", "<", "5000000" ], "query_toks_no_value": [ "select", "city", "from", "city", "where", "regional_population", ">", "value", "union", "select", "city", "from", "city", "where", "regional_population", "<", "value" ], "question": "Please give me a list of cities whose regional population is over 8000000 or under 5000000.", "question_toks": [ "please", "give", "me", "a", "list", "of", "city", "whose", "regional", "population", "is", "over", "8000000", "or", "under", "5000000", "." ], "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", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 5, false ], null ], 5000000.0, null ] ] }, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 10000000.0, null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Please", "give", "me", "a", "list", "of", "cities", "whose", "regional", "population", "is", "over", "8000000", "or", "under", "5000000", "." ], "question_arg": [ [ "please" ], [ "give" ], [ "me" ], [ "a" ], [ "list" ], [ "of" ], [ "city" ], [ "whose" ], [ "regional", "population" ], [ "is" ], [ "over" ], [ "8000000" ], [ "or" ], [ "under" ], [ "5000000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "give", "VB" ], [ "me", "PRP" ], [ "a", "DT" ], [ "list", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "whose", "WP$" ], [ "regional", "JJ" ], [ "population", "NN" ], [ "is", "VBZ" ], [ "over", "IN" ], [ "8000000", "CD" ], [ "or", "CC" ], [ "under", "IN" ], [ "5000000", "CD" ], [ ".", "." ] ], "values": [ "5000000", "8000000", "10000000" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(5) A(0) C(5) T(0) V(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(4) A(0) C(5) T(0) V(0)" }, { "db_id": "city_record", "query": "SELECT city FROM city WHERE regional_population > 10000000 UNION SELECT city FROM city WHERE regional_population < 5000000", "query_toks": [ "SELECT", "city", "FROM", "city", "WHERE", "regional_population", ">", "10000000", "UNION", "SELECT", "city", "FROM", "city", "WHERE", "regional_population", "<", "5000000" ], "query_toks_no_value": [ "select", "city", "from", "city", "where", "regional_population", ">", "value", "union", "select", "city", "from", "city", "where", "regional_population", "<", "value" ], "question": "Which cities have regional population above 8000000 or below 5000000?", "question_toks": [ "which", "city", "have", "regional", "population", "above", "8000000", "or", "below", "5000000", "?" ], "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", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 5, false ], null ], 5000000.0, null ] ] }, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 10000000.0, null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Which", "cities", "have", "regional", "population", "above", "8000000", "or", "below", "5000000", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "have" ], [ "regional", "population" ], [ "above" ], [ "8000000" ], [ "or" ], [ "below" ], [ "5000000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "have", "VBP" ], [ "regional", "JJ" ], [ "population", "NN" ], [ "above", "IN" ], [ "8000000", "CD" ], [ "or", "CC" ], [ "below", "IN" ], [ "5000000", "CD" ], [ "?", "." ] ], "values": [ "5000000", "8000000", "10000000" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(5) A(0) C(5) T(0) V(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(4) A(0) C(5) T(0) V(0)" }, { "db_id": "city_record", "query": "SELECT count(*) , Competition FROM MATCH GROUP BY Competition", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "Competition", "FROM", "MATCH", "GROUP", "BY", "Competition" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "competition", "from", "match", "group", "by", "competition" ], "question": "Find the number of matches in different competitions.", "question_toks": [ "find", "number", "of", "match", "in", "different", "competition", "." ], "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": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Find", "the", "number", "of", "matches", "in", "different", "competitions", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "match" ], [ "in" ], [ "different" ], [ "competition" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "match", "NN" ], [ "in", "IN" ], [ "different", "JJ" ], [ "competition", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(1) A(0) C(12) T(1)" }, { "db_id": "city_record", "query": "SELECT count(*) , Competition FROM MATCH GROUP BY Competition", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "Competition", "FROM", "MATCH", "GROUP", "BY", "Competition" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "competition", "from", "match", "group", "by", "competition" ], "question": "For each competition, count the number of matches.", "question_toks": [ "for", "each", "competition", ",", "count", "number", "of", "match", "." ], "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": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "For", "each", "competition", ",", "count", "the", "number", "of", "matches", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "competition" ], [ "," ], [ "count" ], [ "number" ], [ "of" ], [ "match" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "competition", "NN" ], [ ",", "," ], [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "match", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(1) A(0) C(12) T(1)" }, { "db_id": "city_record", "query": "SELECT venue FROM MATCH ORDER BY date DESC", "query_toks": [ "SELECT", "venue", "FROM", "MATCH", "ORDER", "BY", "date", "DESC" ], "query_toks_no_value": [ "select", "venue", "from", "match", "order", "by", "date", "desc" ], "question": "List venues of all matches in the order of their dates starting from the most recent one.", "question_toks": [ "list", "venue", "of", "all", "match", "in", "order", "of", "their", "date", "starting", "from", "most", "recent", "one", "." ], "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, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "List", "venues", "of", "all", "matches", "in", "the", "order", "of", "their", "dates", "starting", "from", "the", "most", "recent", "one", "." ], "question_arg": [ [ "list" ], [ "venue" ], [ "of" ], [ "all" ], [ "match" ], [ "in" ], [ "order" ], [ "of" ], [ "their" ], [ "date" ], [ "starting" ], [ "from" ], [ "most" ], [ "recent" ], [ "one" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "venue", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "match", "NN" ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "date", "NN" ], [ "starting", "VBG" ], [ "from", "IN" ], [ "most", "JJS" ], [ "recent", "JJ" ], [ "one", "CD" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(9) T(1) Order(0) A(0) C(8) T(1)" }, { "db_id": "city_record", "query": "SELECT venue FROM MATCH ORDER BY date DESC", "query_toks": [ "SELECT", "venue", "FROM", "MATCH", "ORDER", "BY", "date", "DESC" ], "query_toks_no_value": [ "select", "venue", "from", "match", "order", "by", "date", "desc" ], "question": "What are the venues of all the matches? Sort them in the descending order of match date.", "question_toks": [ "what", "are", "venue", "of", "all", "match", "?", "sort", "them", "in", "descending", "order", "of", "match", "date", "." ], "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, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "venues", "of", "all", "the", "matches", "?", "Sort", "them", "in", "the", "descending", "order", "of", "match", "date", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "venue" ], [ "of" ], [ "all" ], [ "match" ], [ "?" ], [ "sort" ], [ "them" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "match" ], [ "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "venue", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "match", "NN" ], [ "?", "." ], [ "sort", "VB" ], [ "them", "PRP" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "match", "NN" ], [ "date", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(9) T(1) Order(0) A(0) C(8) T(1)" }, { "db_id": "city_record", "query": "SELECT gdp FROM city ORDER BY Regional_Population DESC LIMIT 1", "query_toks": [ "SELECT", "gdp", "FROM", "city", "ORDER", "BY", "Regional_Population", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "gdp", "from", "city", "order", "by", "regional_population", "desc", "limit", "value" ], "question": "what is the GDP of the city with the largest population.", "question_toks": [ "what", "is", "gdp", "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, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "what", "is", "the", "GDP", "of", "the", "city", "with", "the", "largest", "population", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "gdp" ], [ "of" ], [ "city" ], [ "with" ], [ "largest" ], [ "population" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "gdp", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "population", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "city_record", "query": "SELECT gdp FROM city ORDER BY Regional_Population DESC LIMIT 1", "query_toks": [ "SELECT", "gdp", "FROM", "city", "ORDER", "BY", "Regional_Population", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "gdp", "from", "city", "order", "by", "regional_population", "desc", "limit", "value" ], "question": "Find the GDP of the city with the largest regional population.", "question_toks": [ "find", "gdp", "of", "city", "with", "largest", "regional", "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, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Find", "the", "GDP", "of", "the", "city", "with", "the", "largest", "regional", "population", "." ], "question_arg": [ [ "find" ], [ "gdp" ], [ "of" ], [ "city" ], [ "with" ], [ "largest" ], [ "regional", "population" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "gdp", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "regional", "JJ" ], [ "population", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "city_record", "query": "SELECT t1.gdp , t1.Regional_Population FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY t2.Host_City HAVING count(*) > 1", "query_toks": [ "SELECT", "t1.gdp", ",", "t1.Regional_Population", "FROM", "city", "AS", "T1", "JOIN", "hosting_city", "AS", "T2", "ON", "T1.city_id", "=", "T2.host_city", "GROUP", "BY", "t2.Host_City", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "gdp", ",", "t1", ".", "regional_population", "from", "city", "as", "t1", "join", "hosting_city", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "host_city", "group", "by", "t2", ".", "host_city", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the GDP and population of the city that already served as a host more than once?", "question_toks": [ "what", "are", "gdp", "and", "population", "of", "city", "that", "already", "served", "a", "a", "host", "more", "than", "once", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 27, 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 ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "What", "are", "the", "GDP", "and", "population", "of", "the", "city", "that", "already", "served", "as", "a", "host", "more", "than", "once", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "gdp" ], [ "and" ], [ "population" ], [ "of" ], [ "city" ], [ "that" ], [ "already" ], [ "served" ], [ "a" ], [ "a" ], [ "host" ], [ "more" ], [ "than" ], [ "once" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "gdp", "JJ" ], [ "and", "CC" ], [ "population", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "that", "WDT" ], [ "already", "RB" ], [ "served", "VBD" ], [ "a", "DT" ], [ "a", "DT" ], [ "host", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "once", "RB" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(0) A(0) C(5) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(25) T(3) Filter(5) A(3) C(0) T(3) V(0)" }, { "db_id": "city_record", "query": "SELECT t1.gdp , t1.Regional_Population FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY t2.Host_City HAVING count(*) > 1", "query_toks": [ "SELECT", "t1.gdp", ",", "t1.Regional_Population", "FROM", "city", "AS", "T1", "JOIN", "hosting_city", "AS", "T2", "ON", "T1.city_id", "=", "T2.host_city", "GROUP", "BY", "t2.Host_City", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "gdp", ",", "t1", ".", "regional_population", "from", "city", "as", "t1", "join", "hosting_city", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "host_city", "group", "by", "t2", ".", "host_city", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which cities have served as host cities more than once? Return me their GDP and population.", "question_toks": [ "which", "city", "have", "served", "a", "host", "city", "more", "than", "once", "?", "return", "me", "their", "gdp", "and", "population", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 27, 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 ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "city id", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "match id", "host city" ], "table_names": [ "city", "match", "temperature", "hosting city" ], "col_set": [ "*", "city id", "city", "hanzi", "hanyu pinyin", "regional population", "gdp", "match id", "date", "venue", "score", "result", "competition", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep", "oct", "nov", "dec", "year", "host city" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "13": 13, "1": 1, "26": 7, "7": 7, "27": 1, "25": 25 }, "origin_question_toks": [ "Which", "cities", "have", "served", "as", "host", "cities", "more", "than", "once", "?", "Return", "me", "their", "GDP", "and", "population", "." ], "question_arg": [ [ "which" ], [ "city" ], [ "have" ], [ "served" ], [ "a" ], [ "host", "city" ], [ "more" ], [ "than" ], [ "once" ], [ "?" ], [ "return" ], [ "me" ], [ "their" ], [ "gdp" ], [ "and" ], [ "population" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "have", "VBP" ], [ "served", "VBN" ], [ "a", "DT" ], [ "host", "NN" ], [ "city", "NN" ], [ "more", "RBR" ], [ "than", "IN" ], [ "once", "RB" ], [ "?", "." ], [ "return", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "gdp", "NN" ], [ "and", "CC" ], [ "population", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(0) A(0) C(5) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(25) T(3) Filter(5) A(3) C(0) T(3) V(0)" }, { "db_id": "e_government", "query": "SELECT individual_first_name , individual_middle_name , individual_last_name FROM individuals ORDER BY individual_last_name", "query_toks": [ "SELECT", "individual_first_name", ",", "individual_middle_name", ",", "individual_last_name", "FROM", "individuals", "ORDER", "BY", "individual_last_name" ], "query_toks_no_value": [ "select", "individual_first_name", ",", "individual_middle_name", ",", "individual_last_name", "from", "individuals", "order", "by", "individual_last_name" ], "question": "List every individual's first name, middle name and last name in alphabetical order by last name.", "question_toks": [ "list", "every", "individual", "'s", "first", "name", ",", "middle", "name", "and", "last", "name", "in", "alphabetical", "order", "by", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 23, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "List", "every", "individual", "'s", "first", "name", ",", "middle", "name", "and", "last", "name", "in", "alphabetical", "order", "by", "last", "name", "." ], "question_arg": [ [ "list" ], [ "every" ], [ "individual" ], [ "'s" ], [ "individual", "first", "name" ], [ "," ], [ "individual", "middle", "name" ], [ "and" ], [ "individual", "last", "name" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "by" ], [ "individual", "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "every", "DT" ], [ "individual", "NN" ], [ "'s", "POS" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "middle", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "by", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(17) T(3) A(0) C(18) T(3) A(0) C(22) T(3) Order(1) A(0) C(22) T(3)" }, { "db_id": "e_government", "query": "SELECT individual_first_name , individual_middle_name , individual_last_name FROM individuals ORDER BY individual_last_name", "query_toks": [ "SELECT", "individual_first_name", ",", "individual_middle_name", ",", "individual_last_name", "FROM", "individuals", "ORDER", "BY", "individual_last_name" ], "query_toks_no_value": [ "select", "individual_first_name", ",", "individual_middle_name", ",", "individual_last_name", "from", "individuals", "order", "by", "individual_last_name" ], "question": "What are the first, middle, and last names of all individuals, ordered by last name?", "question_toks": [ "what", "are", "first", ",", "middle", ",", "and", "last", "name", "of", "all", "individual", ",", "ordered", "by", "last", "name", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 23, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "What", "are", "the", "first", ",", "middle", ",", "and", "last", "names", "of", "all", "individuals", ",", "ordered", "by", "last", "name", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "," ], [ "middle" ], [ "," ], [ "and" ], [ "individual", "last", "name" ], [ "of" ], [ "all" ], [ "individual" ], [ "," ], [ "ordered" ], [ "by" ], [ "individual", "last", "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ ",", "," ], [ "middle", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "individual", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(17) T(3) A(0) C(18) T(3) A(0) C(22) T(3) Order(1) A(0) C(22) T(3)" }, { "db_id": "e_government", "query": "SELECT DISTINCT form_type_code FROM forms", "query_toks": [ "SELECT", "DISTINCT", "form_type_code", "FROM", "forms" ], "query_toks_no_value": [ "select", "distinct", "form_type_code", "from", "forms" ], "question": "List all the types of forms.", "question_toks": [ "list", "all", "type", "of", "form", "." ], "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": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "List", "all", "the", "types", "of", "forms", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "type" ], [ "of" ], [ "form" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "type", "NN" ], [ "of", "IN" ], [ "form", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(12) T(2)" }, { "db_id": "e_government", "query": "SELECT DISTINCT form_type_code FROM forms", "query_toks": [ "SELECT", "DISTINCT", "form_type_code", "FROM", "forms" ], "query_toks_no_value": [ "select", "distinct", "form_type_code", "from", "forms" ], "question": "What are the different types of forms?", "question_toks": [ "what", "are", "different", "type", "of", "form", "?" ], "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": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "What", "are", "the", "different", "types", "of", "forms", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "type" ], [ "of" ], [ "form" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "form", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(12) T(2)" }, { "db_id": "e_government", "query": "SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id = t2.form_id GROUP BY t2.form_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.form_name", "FROM", "forms", "AS", "t1", "JOIN", "party_forms", "AS", "t2", "ON", "t1.form_id", "=", "t2.form_id", "GROUP", "BY", "t2.form_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "form_name", "from", "forms", "as", "t1", "join", "party_forms", "as", "t2", "on", "t1", ".", "form_id", "=", "t2", ".", "form_id", "group", "by", "t2", ".", "form_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name of the most popular party form.", "question_toks": [ "find", "name", "of", "most", "popular", "party", "form", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 42, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 42, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 42, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "most", "popular", "party", "form", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "most" ], [ "popular" ], [ "party", "form" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "popular", "JJ" ], [ "party", "NN" ], [ "form", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(14) T(2) Sup(0) A(3) C(0) T(8) Filter(18) A(0) C(11) T(2) Root(5) Sel(0) N(0) A(0) C(11) T(8)" }, { "db_id": "e_government", "query": "SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id = t2.form_id GROUP BY t2.form_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.form_name", "FROM", "forms", "AS", "t1", "JOIN", "party_forms", "AS", "t2", "ON", "t1.form_id", "=", "t2.form_id", "GROUP", "BY", "t2.form_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "form_name", "from", "forms", "as", "t1", "join", "party_forms", "as", "t2", "on", "t1", ".", "form_id", "=", "t2", ".", "form_id", "group", "by", "t2", ".", "form_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the party form that is most common?", "question_toks": [ "what", "is", "name", "of", "party", "form", "that", "is", "most", "common", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 42, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 42, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 42, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "party", "form", "that", "is", "most", "common", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "party", "form" ], [ "that" ], [ "is" ], [ "most" ], [ "common" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "form", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(14) T(2) Sup(0) A(3) C(0) T(8) Filter(18) A(0) C(11) T(2) Root(5) Sel(0) N(0) A(0) C(11) T(8)" }, { "db_id": "e_government", "query": "SELECT payment_method_code , party_phone FROM parties WHERE party_email = \"enrico09@example.com\"", "query_toks": [ "SELECT", "payment_method_code", ",", "party_phone", "FROM", "parties", "WHERE", "party_email", "=", "``", "enrico09", "@", "example.com", "''" ], "query_toks_no_value": [ "select", "payment_method_code", ",", "party_phone", "from", "parties", "where", "party_email", "=", "value" ], "question": "Find the payment method and phone of the party with email \"enrico09@example.com\".", "question_toks": [ "find", "payment", "method", "and", "phone", "of", "party", "with", "email", "'", "enrico09", "@", "example.com", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ], [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"enrico09@example.com\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Find", "the", "payment", "method", "and", "phone", "of", "the", "party", "with", "email", "``", "enrico09", "@", "example.com", "''", "." ], "question_arg": [ [ "find" ], [ "payment", "method", "code" ], [ "and" ], [ "phone" ], [ "of" ], [ "party" ], [ "with" ], [ "email" ], [ "'" ], [ "enrico09" ], [ "@" ], [ "example.com" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "payment", "NN" ], [ "method", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "with", "IN" ], [ "email", "NN" ], [ "'", "''" ], [ "enrico09", "JJ" ], [ "@", "NNP" ], [ "example.com", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "enrico09@example.com" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(28) T(5) A(0) C(29) T(5) Filter(2) A(0) C(30) T(5) V(0)" }, { "db_id": "e_government", "query": "SELECT payment_method_code , party_phone FROM parties WHERE party_email = \"enrico09@example.com\"", "query_toks": [ "SELECT", "payment_method_code", ",", "party_phone", "FROM", "parties", "WHERE", "party_email", "=", "``", "enrico09", "@", "example.com", "''" ], "query_toks_no_value": [ "select", "payment_method_code", ",", "party_phone", "from", "parties", "where", "party_email", "=", "value" ], "question": "What is the payment method code and party phone of the party with the email 'enrico09@example.com'?", "question_toks": [ "what", "is", "payment", "method", "code", "and", "party", "phone", "of", "party", "with", "email", "'", "enrico09", "@", "example.com", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ], [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"enrico09@example.com\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "What", "is", "the", "payment", "method", "code", "and", "party", "phone", "of", "the", "party", "with", "the", "email", "'enrico09", "@", "example.com", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "payment", "method", "code" ], [ "and" ], [ "party", "phone" ], [ "of" ], [ "party" ], [ "with" ], [ "email" ], [ "'" ], [ "enrico09" ], [ "@" ], [ "example.com" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "payment", "NN" ], [ "method", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "party", "NN" ], [ "phone", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "with", "IN" ], [ "email", "NN" ], [ "'", "''" ], [ "enrico09", "JJ" ], [ "@", "NNP" ], [ "example.com", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "enrico09@example.com" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(28) T(5) A(0) C(29) T(5) Filter(2) A(0) C(30) T(5) V(0)" }, { "db_id": "e_government", "query": "SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id = t2.party_id WHERE t2.form_id = (SELECT form_id FROM party_forms GROUP BY form_id ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "t1.party_email", "FROM", "parties", "AS", "t1", "JOIN", "party_forms", "AS", "t2", "ON", "t1.party_id", "=", "t2.party_id", "WHERE", "t2.form_id", "=", "(", "SELECT", "form_id", "FROM", "party_forms", "GROUP", "BY", "form_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "t1", ".", "party_email", "from", "parties", "as", "t1", "join", "party_forms", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id", "where", "t2", ".", "form_id", "=", "(", "select", "form_id", "from", "party_forms", "group", "by", "form_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "Find the emails of parties with the most popular party form.", "question_toks": [ "find", "email", "of", "party", "with", "most", "popular", "party", "form", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 41, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 42, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 42, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 42, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Find", "the", "emails", "of", "parties", "with", "the", "most", "popular", "party", "form", "." ], "question_arg": [ [ "find" ], [ "email" ], [ "of" ], [ "party" ], [ "with" ], [ "most" ], [ "popular" ], [ "party", "form" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "email", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "with", "IN" ], [ "most", "RBS" ], [ "popular", "JJ" ], [ "party", "NN" ], [ "form", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(30) T(5) Filter(11) A(0) C(11) T(8) Root(2) Sel(0) N(0) A(0) C(11) T(8) Sup(0) A(3) C(0) T(8)" }, { "db_id": "e_government", "query": "SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id = t2.party_id WHERE t2.form_id = (SELECT form_id FROM party_forms GROUP BY form_id ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "t1.party_email", "FROM", "parties", "AS", "t1", "JOIN", "party_forms", "AS", "t2", "ON", "t1.party_id", "=", "t2.party_id", "WHERE", "t2.form_id", "=", "(", "SELECT", "form_id", "FROM", "party_forms", "GROUP", "BY", "form_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "t1", ".", "party_email", "from", "parties", "as", "t1", "join", "party_forms", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id", "where", "t2", ".", "form_id", "=", "(", "select", "form_id", "from", "party_forms", "group", "by", "form_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "What are the party emails associated with parties that used the party form that is the most common?", "question_toks": [ "what", "are", "party", "email", "associated", "with", "party", "that", "used", "party", "form", "that", "is", "most", "common", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 41, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 42, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 42, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 42, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "What", "are", "the", "party", "emails", "associated", "with", "parties", "that", "used", "the", "party", "form", "that", "is", "the", "most", "common", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "party", "email" ], [ "associated" ], [ "with" ], [ "party" ], [ "that" ], [ "used" ], [ "party", "form" ], [ "that" ], [ "is" ], [ "most" ], [ "common" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "party", "NN" ], [ "email", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "party", "NN" ], [ "that", "WDT" ], [ "used", "VBD" ], [ "party", "NN" ], [ "form", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(30) T(5) Filter(11) A(0) C(11) T(8) Root(2) Sel(0) N(0) A(0) C(11) T(8) Sup(0) A(3) C(0) T(8)" }, { "db_id": "e_government", "query": "SELECT organization_name FROM organizations ORDER BY date_formed ASC", "query_toks": [ "SELECT", "organization_name", "FROM", "organizations", "ORDER", "BY", "date_formed", "ASC" ], "query_toks_no_value": [ "select", "organization_name", "from", "organizations", "order", "by", "date_formed", "asc" ], "question": "List all the name of organizations in order of the date formed.", "question_toks": [ "list", "all", "name", "of", "organization", "in", "order", "of", "date", "formed", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 25, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "List", "all", "the", "name", "of", "organizations", "in", "order", "of", "the", "date", "formed", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "name" ], [ "of" ], [ "organization" ], [ "in" ], [ "order" ], [ "of" ], [ "date", "formed" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "name", "NN" ], [ "of", "IN" ], [ "organization", "NN" ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "date", "NN" ], [ "formed", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(25) T(4) Order(1) A(0) C(24) T(4)" }, { "db_id": "e_government", "query": "SELECT organization_name FROM organizations ORDER BY date_formed ASC", "query_toks": [ "SELECT", "organization_name", "FROM", "organizations", "ORDER", "BY", "date_formed", "ASC" ], "query_toks_no_value": [ "select", "organization_name", "from", "organizations", "order", "by", "date_formed", "asc" ], "question": "What are the names of organizations, ordered by the date they were formed, ascending?", "question_toks": [ "what", "are", "name", "of", "organization", ",", "ordered", "by", "date", "they", "were", "formed", ",", "ascending", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 25, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "organizations", ",", "ordered", "by", "the", "date", "they", "were", "formed", ",", "ascending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "organization" ], [ "," ], [ "ordered" ], [ "by" ], [ "date" ], [ "they" ], [ "were" ], [ "formed" ], [ "," ], [ "ascending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "organization", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "date", "NN" ], [ "they", "PRP" ], [ "were", "VBD" ], [ "formed", "VBN" ], [ ",", "," ], [ "ascending", "VBG" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(25) T(4) Order(1) A(0) C(24) T(4)" }, { "db_id": "e_government", "query": "SELECT organization_name FROM organizations ORDER BY date_formed DESC LIMIT 1", "query_toks": [ "SELECT", "organization_name", "FROM", "organizations", "ORDER", "BY", "date_formed", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "organization_name", "from", "organizations", "order", "by", "date_formed", "desc", "limit", "value" ], "question": "Find the name of the youngest organization.", "question_toks": [ "find", "name", "of", "youngest", "organization", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 25, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "youngest", "organization", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "youngest" ], [ "organization" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "youngest", "JJS" ], [ "organization", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(25) T(4) Sup(0) A(0) C(24) T(4)" }, { "db_id": "e_government", "query": "SELECT organization_name FROM organizations ORDER BY date_formed DESC LIMIT 1", "query_toks": [ "SELECT", "organization_name", "FROM", "organizations", "ORDER", "BY", "date_formed", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "organization_name", "from", "organizations", "order", "by", "date_formed", "desc", "limit", "value" ], "question": "What is the name of the organization that was formed most recently?", "question_toks": [ "what", "is", "name", "of", "organization", "that", "wa", "formed", "most", "recently", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 25, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "organization", "that", "was", "formed", "most", "recently", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "organization" ], [ "that" ], [ "wa" ], [ "formed" ], [ "most" ], [ "recently" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "organization", "NN" ], [ "that", "IN" ], [ "wa", "NN" ], [ "formed", "VBD" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(25) T(4) Sup(0) A(0) C(24) T(4)" }, { "db_id": "e_government", "query": "SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.organization_name = \"Labour Party\" ORDER BY t2.date_contact_to DESC LIMIT 1", "query_toks": [ "SELECT", "t3.individual_last_name", "FROM", "organizations", "AS", "t1", "JOIN", "organization_contact_individuals", "AS", "t2", "ON", "t1.organization_id", "=", "t2.organization_id", "JOIN", "individuals", "AS", "t3", "ON", "t2.individual_id", "=", "t3.individual_id", "WHERE", "t1.organization_name", "=", "``", "Labour", "Party", "''", "ORDER", "BY", "t2.date_contact_to", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t3", ".", "individual_last_name", "from", "organizations", "as", "t1", "join", "organization_contact_individuals", "as", "t2", "on", "t1", ".", "organization_id", "=", "t2", ".", "organization_id", "join", "individuals", "as", "t3", "on", "t2", ".", "individual_id", "=", "t3", ".", "individual_id", "where", "t1", ".", "organization_name", "=", "value", "order", "by", "t2", ".", "date_contact_to", "desc", "limit", "value" ], "question": "Find the last name of the latest contact individual of the organization \"Labour Party\".", "question_toks": [ "find", "last", "name", "of", "latest", "contact", "individual", "of", "organization", "'", "labour", "party", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 33, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 35, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], "\"Labour Party\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Find", "the", "last", "name", "of", "the", "latest", "contact", "individual", "of", "the", "organization", "``", "Labour", "Party", "''", "." ], "question_arg": [ [ "find" ], [ "individual", "last", "name" ], [ "of" ], [ "latest" ], [ "contact" ], [ "individual" ], [ "of" ], [ "organization" ], [ "'" ], [ "labour" ], [ "party" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "latest", "JJS" ], [ "contact", "JJ" ], [ "individual", "NN" ], [ "of", "IN" ], [ "organization", "NN" ], [ "'", "POS" ], [ "labour", "JJ" ], [ "party", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Labour Party" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(22) T(3) Sup(0) A(0) C(32) T(6) Filter(2) A(0) C(25) T(4) V(0)" }, { "db_id": "e_government", "query": "SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.organization_name = \"Labour Party\" ORDER BY t2.date_contact_to DESC LIMIT 1", "query_toks": [ "SELECT", "t3.individual_last_name", "FROM", "organizations", "AS", "t1", "JOIN", "organization_contact_individuals", "AS", "t2", "ON", "t1.organization_id", "=", "t2.organization_id", "JOIN", "individuals", "AS", "t3", "ON", "t2.individual_id", "=", "t3.individual_id", "WHERE", "t1.organization_name", "=", "``", "Labour", "Party", "''", "ORDER", "BY", "t2.date_contact_to", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t3", ".", "individual_last_name", "from", "organizations", "as", "t1", "join", "organization_contact_individuals", "as", "t2", "on", "t1", ".", "organization_id", "=", "t2", ".", "organization_id", "join", "individuals", "as", "t3", "on", "t2", ".", "individual_id", "=", "t3", ".", "individual_id", "where", "t1", ".", "organization_name", "=", "value", "order", "by", "t2", ".", "date_contact_to", "desc", "limit", "value" ], "question": "What is the last name of the contact individual from the Labour party organization who was contacted most recently?", "question_toks": [ "what", "is", "last", "name", "of", "contact", "individual", "from", "labour", "party", "organization", "who", "wa", "contacted", "most", "recently", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 33, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 35, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], "\"Labour Party\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "What", "is", "the", "last", "name", "of", "the", "contact", "individual", "from", "the", "Labour", "party", "organization", "who", "was", "contacted", "most", "recently", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "individual", "last", "name" ], [ "of" ], [ "contact" ], [ "individual" ], [ "from" ], [ "labour" ], [ "party" ], [ "organization" ], [ "who" ], [ "wa" ], [ "contacted" ], [ "most" ], [ "recently" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "contact", "JJ" ], [ "individual", "JJ" ], [ "from", "IN" ], [ "labour", "JJ" ], [ "party", "NN" ], [ "organization", "NN" ], [ "who", "WP" ], [ "wa", "VBP" ], [ "contacted", "VBN" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "?", "." ] ], "values": [ "Labour Party" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(22) T(3) Sup(0) A(0) C(32) T(6) Filter(2) A(0) C(25) T(4) V(0)" }, { "db_id": "e_government", "query": "SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.uk_vat_number = (SELECT max(uk_vat_number) FROM organizations) ORDER BY t2.date_contact_to ASC LIMIT 1", "query_toks": [ "SELECT", "t3.individual_last_name", "FROM", "organizations", "AS", "t1", "JOIN", "organization_contact_individuals", "AS", "t2", "ON", "t1.organization_id", "=", "t2.organization_id", "JOIN", "individuals", "AS", "t3", "ON", "t2.individual_id", "=", "t3.individual_id", "WHERE", "t1.uk_vat_number", "=", "(", "SELECT", "max", "(", "uk_vat_number", ")", "FROM", "organizations", ")", "ORDER", "BY", "t2.date_contact_to", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t3", ".", "individual_last_name", "from", "organizations", "as", "t1", "join", "organization_contact_individuals", "as", "t2", "on", "t1", ".", "organization_id", "=", "t2", ".", "organization_id", "join", "individuals", "as", "t3", "on", "t2", ".", "individual_id", "=", "t3", ".", "individual_id", "where", "t1", ".", "uk_vat_number", "=", "(", "select", "max", "(", "uk_vat_number", ")", "from", "organizations", ")", "order", "by", "t2", ".", "date_contact_to", "asc", "limit", "value" ], "question": "Find the last name of the first ever contact person of the organization with the highest UK Vat number.", "question_toks": [ "find", "last", "name", "of", "first", "ever", "contact", "person", "of", "organization", "with", "highest", "uk", "vat", "number", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 33, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 35, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Find", "the", "last", "name", "of", "the", "first", "ever", "contact", "person", "of", "the", "organization", "with", "the", "highest", "UK", "Vat", "number", "." ], "question_arg": [ [ "find" ], [ "individual", "last", "name" ], [ "of" ], [ "first" ], [ "ever" ], [ "contact" ], [ "person" ], [ "of" ], [ "organization" ], [ "with" ], [ "highest" ], [ "uk", "vat", "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "first", "JJ" ], [ "ever", "RB" ], [ "contact", "VBP" ], [ "person", "NN" ], [ "of", "IN" ], [ "organization", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "uk", "JJ" ], [ "vat", "NN" ], [ "number", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(22) T(3) Sup(1) A(0) C(32) T(6) Filter(11) A(0) C(26) T(4) Root(5) Sel(0) N(0) A(1) C(26) T(4)" }, { "db_id": "e_government", "query": "SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.uk_vat_number = (SELECT max(uk_vat_number) FROM organizations) ORDER BY t2.date_contact_to ASC LIMIT 1", "query_toks": [ "SELECT", "t3.individual_last_name", "FROM", "organizations", "AS", "t1", "JOIN", "organization_contact_individuals", "AS", "t2", "ON", "t1.organization_id", "=", "t2.organization_id", "JOIN", "individuals", "AS", "t3", "ON", "t2.individual_id", "=", "t3.individual_id", "WHERE", "t1.uk_vat_number", "=", "(", "SELECT", "max", "(", "uk_vat_number", ")", "FROM", "organizations", ")", "ORDER", "BY", "t2.date_contact_to", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t3", ".", "individual_last_name", "from", "organizations", "as", "t1", "join", "organization_contact_individuals", "as", "t2", "on", "t1", ".", "organization_id", "=", "t2", ".", "organization_id", "join", "individuals", "as", "t3", "on", "t2", ".", "individual_id", "=", "t3", ".", "individual_id", "where", "t1", ".", "uk_vat_number", "=", "(", "select", "max", "(", "uk_vat_number", ")", "from", "organizations", ")", "order", "by", "t2", ".", "date_contact_to", "asc", "limit", "value" ], "question": "What is the last name of the first individual contacted from the organization with the maximum UK Vat number across all organizations?", "question_toks": [ "what", "is", "last", "name", "of", "first", "individual", "contacted", "from", "organization", "with", "maximum", "uk", "vat", "number", "across", "all", "organization", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 33, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 35, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "What", "is", "the", "last", "name", "of", "the", "first", "individual", "contacted", "from", "the", "organization", "with", "the", "maximum", "UK", "Vat", "number", "across", "all", "organizations", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "individual", "last", "name" ], [ "of" ], [ "individual", "first", "name" ], [ "contacted" ], [ "from" ], [ "organization" ], [ "with" ], [ "maximum" ], [ "uk", "vat", "number" ], [ "across" ], [ "all" ], [ "organization" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "first", "JJ" ], [ "individual", "JJ" ], [ "contacted", "VBN" ], [ "from", "IN" ], [ "organization", "NN" ], [ "with", "IN" ], [ "maximum", "JJ" ], [ "uk", "JJ" ], [ "vat", "NN" ], [ "number", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "organization", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(22) T(3) Sup(1) A(0) C(32) T(6) Filter(11) A(0) C(26) T(4) Root(5) Sel(0) N(0) A(1) C(26) T(4)" }, { "db_id": "e_government", "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": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "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": "e_government", "query": "SELECT count(*) FROM services", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "services" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "services" ], "question": "Count the number of services.", "question_toks": [ "count", "number", "of", "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": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Count", "the", "number", "of", "services", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "service" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "service", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "e_government", "query": "SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id = t2.service_id", "query_toks": [ "SELECT", "service_name", "FROM", "services", "EXCEPT", "SELECT", "t1.service_name", "FROM", "services", "AS", "t1", "JOIN", "party_services", "AS", "t2", "ON", "t1.service_id", "=", "t2.service_id" ], "query_toks_no_value": [ "select", "service_name", "from", "services", "except", "select", "t1", ".", "service_name", "from", "services", "as", "t1", "join", "party_services", "as", "t2", "on", "t1", ".", "service_id", "=", "t2", ".", "service_id" ], "question": "Find name of the services that has never been used.", "question_toks": [ "find", "name", "of", "service", "that", "ha", "never", "been", "used", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 48, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 48, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 9 ] ], "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, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Find", "name", "of", "the", "services", "that", "has", "never", "been", "used", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "service" ], [ "that" ], [ "ha" ], [ "never" ], [ "been" ], [ "used" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "service", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "never", "RB" ], [ "been", "VBN" ], [ "used", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(9) T(1) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(9)" }, { "db_id": "e_government", "query": "SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id = t2.service_id", "query_toks": [ "SELECT", "service_name", "FROM", "services", "EXCEPT", "SELECT", "t1.service_name", "FROM", "services", "AS", "t1", "JOIN", "party_services", "AS", "t2", "ON", "t1.service_id", "=", "t2.service_id" ], "query_toks_no_value": [ "select", "service_name", "from", "services", "except", "select", "t1", ".", "service_name", "from", "services", "as", "t1", "join", "party_services", "as", "t2", "on", "t1", ".", "service_id", "=", "t2", ".", "service_id" ], "question": "What are the names of the services that have never been used?", "question_toks": [ "what", "are", "name", "of", "service", "that", "have", "never", "been", "used", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 48, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 48, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 9 ] ], "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, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "services", "that", "have", "never", "been", "used", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "service" ], [ "that" ], [ "have" ], [ "never" ], [ "been" ], [ "used" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "service", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "never", "RB" ], [ "been", "VBN" ], [ "used", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(9) T(1) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(9)" }, { "db_id": "e_government", "query": "SELECT town_city FROM addresses UNION SELECT state_province_county FROM addresses", "query_toks": [ "SELECT", "town_city", "FROM", "addresses", "UNION", "SELECT", "state_province_county", "FROM", "addresses" ], "query_toks_no_value": [ "select", "town_city", "from", "addresses", "union", "select", "state_province_county", "from", "addresses" ], "question": "Find the name of all the cities and states.", "question_toks": [ "find", "name", "of", "all", "city", "and", "state", "." ], "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": { "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": [] }, "where": [] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Find", "the", "name", "of", "all", "the", "cities", "and", "states", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "city" ], [ "and" ], [ "state" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "city", "NN" ], [ "and", "CC" ], [ "state", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(1) Root(5) Sel(0) N(0) A(0) C(3) T(0) Root(5) Sel(0) N(0) A(0) C(5) T(0)" }, { "db_id": "e_government", "query": "SELECT town_city FROM addresses UNION SELECT state_province_county FROM addresses", "query_toks": [ "SELECT", "town_city", "FROM", "addresses", "UNION", "SELECT", "state_province_county", "FROM", "addresses" ], "query_toks_no_value": [ "select", "town_city", "from", "addresses", "union", "select", "state_province_county", "from", "addresses" ], "question": "What are the names of all cities and states?", "question_toks": [ "what", "are", "name", "of", "all", "city", "and", "state", "?" ], "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": { "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": [] }, "where": [] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "cities", "and", "states", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "city" ], [ "and" ], [ "state" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "city", "NN" ], [ "and", "CC" ], [ "state", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(1) Root(5) Sel(0) N(0) A(0) C(3) T(0) Root(5) Sel(0) N(0) A(0) C(5) T(0)" }, { "db_id": "e_government", "query": "SELECT count(*) FROM addresses WHERE state_province_county = \"Colorado\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "addresses", "WHERE", "state_province_county", "=", "``", "Colorado", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "addresses", "where", "state_province_county", "=", "value" ], "question": "How many cities are there in state \"Colorado\"?", "question_toks": [ "how", "many", "city", "are", "there", "in", "state", "'", "colorado", "'", "?" ], "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, 5, false ], null ], "\"Colorado\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "How", "many", "cities", "are", "there", "in", "state", "``", "Colorado", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "city" ], [ "are" ], [ "there" ], [ "in" ], [ "state" ], [ "'" ], [ "colorado" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "city", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "state", "NN" ], [ "'", "''" ], [ "colorado", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Colorado" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "e_government", "query": "SELECT count(*) FROM addresses WHERE state_province_county = \"Colorado\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "addresses", "WHERE", "state_province_county", "=", "``", "Colorado", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "addresses", "where", "state_province_county", "=", "value" ], "question": "Count the number of cities in the state of Colorado.", "question_toks": [ "count", "number", "of", "city", "in", "state", "of", "colorado", "." ], "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, 5, false ], null ], "\"Colorado\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Count", "the", "number", "of", "cities", "in", "the", "state", "of", "Colorado", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "city" ], [ "in" ], [ "state" ], [ "of" ], [ "colorado" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "in", "IN" ], [ "state", "NN" ], [ "of", "IN" ], [ "colorado", "NN" ], [ ".", "." ] ], "values": [ "Colorado" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "e_government", "query": "SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING count(*) > 3", "query_toks": [ "SELECT", "payment_method_code", "FROM", "parties", "GROUP", "BY", "payment_method_code", "HAVING", "count", "(", "*", ")", ">", "3" ], "query_toks_no_value": [ "select", "payment_method_code", "from", "parties", "group", "by", "payment_method_code", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the payment method code used by more than 3 parties.", "question_toks": [ "find", "payment", "method", "code", "used", "by", "more", "than", "3", "party", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Find", "the", "payment", "method", "code", "used", "by", "more", "than", "3", "parties", "." ], "question_arg": [ [ "find" ], [ "payment", "method", "code" ], [ "used" ], [ "by" ], [ "more" ], [ "than" ], [ "3" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "payment", "NN" ], [ "method", "NN" ], [ "code", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "party", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(28) T(5) Filter(5) A(3) C(0) T(5) V(0)" }, { "db_id": "e_government", "query": "SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING count(*) > 3", "query_toks": [ "SELECT", "payment_method_code", "FROM", "parties", "GROUP", "BY", "payment_method_code", "HAVING", "count", "(", "*", ")", ">", "3" ], "query_toks_no_value": [ "select", "payment_method_code", "from", "parties", "group", "by", "payment_method_code", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the payment method codes that have been used by more than 3 parties?", "question_toks": [ "what", "are", "payment", "method", "code", "that", "have", "been", "used", "by", "more", "than", "3", "party", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "What", "are", "the", "payment", "method", "codes", "that", "have", "been", "used", "by", "more", "than", "3", "parties", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "payment", "method", "code" ], [ "that" ], [ "have" ], [ "been" ], [ "used" ], [ "by" ], [ "more" ], [ "than" ], [ "3" ], [ "party" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "payment", "NN" ], [ "method", "NN" ], [ "code", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "party", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(28) T(5) Filter(5) A(3) C(0) T(5) V(0)" }, { "db_id": "e_government", "query": "SELECT organization_name FROM organizations WHERE organization_name LIKE \"%Party%\"", "query_toks": [ "SELECT", "organization_name", "FROM", "organizations", "WHERE", "organization_name", "LIKE", "``", "%", "Party", "%", "''" ], "query_toks_no_value": [ "select", "organization_name", "from", "organizations", "where", "organization_name", "like", "value" ], "question": "Find the name of organizations whose names contain \"Party\".", "question_toks": [ "find", "name", "of", "organization", "whose", "name", "contain", "'", "party", "'", "." ], "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, 9, [ 0, [ 0, 26, false ], null ], "\"%Party%\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Find", "the", "name", "of", "organizations", "whose", "names", "contain", "``", "Party", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "organization" ], [ "whose" ], [ "name" ], [ "contain" ], [ "'" ], [ "party" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "organization", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contain", "NN" ], [ "'", "''" ], [ "party", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Party" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(25) T(4) Filter(9) A(0) C(25) T(4) V(0)" }, { "db_id": "e_government", "query": "SELECT organization_name FROM organizations WHERE organization_name LIKE \"%Party%\"", "query_toks": [ "SELECT", "organization_name", "FROM", "organizations", "WHERE", "organization_name", "LIKE", "``", "%", "Party", "%", "''" ], "query_toks_no_value": [ "select", "organization_name", "from", "organizations", "where", "organization_name", "like", "value" ], "question": "What are the names of organizations that contain the word \"Party\"?", "question_toks": [ "what", "are", "name", "of", "organization", "that", "contain", "word", "'", "party", "'", "?" ], "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, 9, [ 0, [ 0, 26, false ], null ], "\"%Party%\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "organizations", "that", "contain", "the", "word", "``", "Party", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "organization" ], [ "that" ], [ "contain" ], [ "word" ], [ "'" ], [ "party" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "organization", "NN" ], [ "that", "WDT" ], [ "contain", "VBP" ], [ "word", "NN" ], [ "'", "''" ], [ "party", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Party" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(25) T(4) Filter(9) A(0) C(25) T(4) V(0)" }, { "db_id": "e_government", "query": "SELECT count(DISTINCT payment_method_code) FROM parties", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "payment_method_code", ")", "FROM", "parties" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "payment_method_code", ")", "from", "parties" ], "question": "How many distinct payment methods are used by parties?", "question_toks": [ "how", "many", "distinct", "payment", "method", "are", "used", "by", "party", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 29, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "How", "many", "distinct", "payment", "methods", "are", "used", "by", "parties", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "payment", "method", "code" ], [ "are" ], [ "used" ], [ "by" ], [ "party" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "payment", "NN" ], [ "method", "NN" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "by", "IN" ], [ "party", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(28) T(5)" }, { "db_id": "e_government", "query": "SELECT count(DISTINCT payment_method_code) FROM parties", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "payment_method_code", ")", "FROM", "parties" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "payment_method_code", ")", "from", "parties" ], "question": "Count the number of different payment method codes used by parties.", "question_toks": [ "count", "number", "of", "different", "payment", "method", "code", "used", "by", "party", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 29, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "payment", "method", "codes", "used", "by", "parties", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "payment", "method", "code" ], [ "used" ], [ "by" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "payment", "NN" ], [ "method", "NN" ], [ "code", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "party", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(28) T(5)" }, { "db_id": "e_government", "query": "SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id = t2.customer_id GROUP BY t1.party_email ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.party_email", "FROM", "parties", "AS", "t1", "JOIN", "party_services", "AS", "t2", "ON", "t1.party_id", "=", "t2.customer_id", "GROUP", "BY", "t1.party_email", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "party_email", "from", "parties", "as", "t1", "join", "party_services", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "party_email", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which is the email of the party that has used the services the most number of times?", "question_toks": [ "which", "is", "email", "of", "party", "that", "ha", "used", "service", "most", "number", "of", "time", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 47, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 31, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 28, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 47, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Which", "is", "the", "email", "of", "the", "party", "that", "has", "used", "the", "services", "the", "most", "number", "of", "times", "?" ], "question_arg": [ [ "which" ], [ "is" ], [ "email" ], [ "of" ], [ "party" ], [ "that" ], [ "ha" ], [ "used" ], [ "service" ], [ "most" ], [ "number" ], [ "of" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "is", "VBZ" ], [ "email", "NN" ], [ "of", "IN" ], [ "party", "NN" ], [ "that", "WDT" ], [ "ha", "NN" ], [ "used", "VBN" ], [ "service", "NN" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(30) T(5) Sup(0) A(3) C(0) T(9) Filter(18) A(0) C(27) T(5) Root(5) Sel(0) N(0) A(0) C(40) T(9)" }, { "db_id": "e_government", "query": "SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id = t2.customer_id GROUP BY t1.party_email ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.party_email", "FROM", "parties", "AS", "t1", "JOIN", "party_services", "AS", "t2", "ON", "t1.party_id", "=", "t2.customer_id", "GROUP", "BY", "t1.party_email", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "party_email", "from", "parties", "as", "t1", "join", "party_services", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "party_email", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the party email that has used party services the greatest number of times.", "question_toks": [ "return", "party", "email", "that", "ha", "used", "party", "service", "greatest", "number", "of", "time", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 47, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 31, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 28, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 47, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Return", "the", "party", "email", "that", "has", "used", "party", "services", "the", "greatest", "number", "of", "times", "." ], "question_arg": [ [ "return" ], [ "party", "email" ], [ "that" ], [ "ha" ], [ "used" ], [ "party", "service" ], [ "greatest" ], [ "number" ], [ "of" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "party", "NN" ], [ "email", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "used", "VBN" ], [ "party", "NN" ], [ "service", "NN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(30) T(5) Sup(0) A(3) C(0) T(9) Filter(18) A(0) C(27) T(5) Root(5) Sel(0) N(0) A(0) C(40) T(9)" }, { "db_id": "e_government", "query": "SELECT state_province_county FROM addresses WHERE line_1_number_building LIKE \"%6862 Kaitlyn Knolls%\"", "query_toks": [ "SELECT", "state_province_county", "FROM", "addresses", "WHERE", "line_1_number_building", "LIKE", "``", "%", "6862", "Kaitlyn", "Knolls", "%", "''" ], "query_toks_no_value": [ "select", "state_province_county", "from", "addresses", "where", "line_1_number_building", "like", "value" ], "question": "Which state can address \"6862 Kaitlyn Knolls\" possibly be in?", "question_toks": [ "which", "state", "can", "address", "'", "6862", "kaitlyn", "knoll", "'", "possibly", "be", "in", "?" ], "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, 9, [ 0, [ 0, 2, false ], null ], "\"%6862 Kaitlyn Knolls%\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Which", "state", "can", "address", "``", "6862", "Kaitlyn", "Knolls", "''", "possibly", "be", "in", "?" ], "question_arg": [ [ "which" ], [ "state" ], [ "can" ], [ "address" ], [ "'" ], [ "6862" ], [ "kaitlyn" ], [ "knoll" ], [ "'" ], [ "possibly" ], [ "be" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "state", "NN" ], [ "can", "MD" ], [ "address", "VB" ], [ "'", "POS" ], [ "6862", "CD" ], [ "kaitlyn", "NN" ], [ "knoll", "NN" ], [ "'", "''" ], [ "possibly", "RB" ], [ "be", "VB" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "6862 Kaitlyn Knolls", "6862" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(9) A(0) C(2) T(0) V(0)" }, { "db_id": "e_government", "query": "SELECT state_province_county FROM addresses WHERE line_1_number_building LIKE \"%6862 Kaitlyn Knolls%\"", "query_toks": [ "SELECT", "state_province_county", "FROM", "addresses", "WHERE", "line_1_number_building", "LIKE", "``", "%", "6862", "Kaitlyn", "Knolls", "%", "''" ], "query_toks_no_value": [ "select", "state_province_county", "from", "addresses", "where", "line_1_number_building", "like", "value" ], "question": "Give the state corresponding to the line number building \"6862 Kaitlyn Knolls\".", "question_toks": [ "give", "state", "corresponding", "to", "line", "number", "building", "'", "6862", "kaitlyn", "knoll", "'", "." ], "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, 9, [ 0, [ 0, 2, false ], null ], "\"%6862 Kaitlyn Knolls%\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Give", "the", "state", "corresponding", "to", "the", "line", "number", "building", "``", "6862", "Kaitlyn", "Knolls", "''", "." ], "question_arg": [ [ "give" ], [ "state" ], [ "corresponding" ], [ "to" ], [ "line" ], [ "number" ], [ "building" ], [ "'" ], [ "6862" ], [ "kaitlyn" ], [ "knoll" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "state", "NN" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "line", "NN" ], [ "number", "NN" ], [ "building", "NN" ], [ "'", "''" ], [ "6862", "CD" ], [ "kaitlyn", "NN" ], [ "knoll", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Billing", "6862 Kaitlyn Knolls", "6862" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(9) A(0) C(2) T(0) V(1)" }, { "db_id": "e_government", "query": "SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id GROUP BY t1.organization_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.organization_name", "FROM", "organizations", "AS", "t1", "JOIN", "organization_contact_individuals", "AS", "t2", "ON", "t1.organization_id", "=", "t2.organization_id", "GROUP", "BY", "t1.organization_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "organization_name", "from", "organizations", "as", "t1", "join", "organization_contact_individuals", "as", "t2", "on", "t1", ".", "organization_id", "=", "t2", ".", "organization_id", "group", "by", "t1", ".", "organization_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of organization that has the greatest number of contact individuals?", "question_toks": [ "what", "is", "name", "of", "organization", "that", "ha", "greatest", "number", "of", "contact", "individual", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 33, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 26, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "organization", "that", "has", "the", "greatest", "number", "of", "contact", "individuals", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "organization" ], [ "that" ], [ "ha" ], [ "greatest" ], [ "number" ], [ "of" ], [ "contact" ], [ "individual" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "organization", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "contact", "JJ" ], [ "individual", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(25) T(4) Sup(0) A(3) C(0) T(6) Filter(18) A(0) C(23) T(4) Root(5) Sel(0) N(0) A(0) C(23) T(6)" }, { "db_id": "e_government", "query": "SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id GROUP BY t1.organization_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.organization_name", "FROM", "organizations", "AS", "t1", "JOIN", "organization_contact_individuals", "AS", "t2", "ON", "t1.organization_id", "=", "t2.organization_id", "GROUP", "BY", "t1.organization_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "organization_name", "from", "organizations", "as", "t1", "join", "organization_contact_individuals", "as", "t2", "on", "t1", ".", "organization_id", "=", "t2", ".", "organization_id", "group", "by", "t1", ".", "organization_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the name of the organization which has the most contact individuals.", "question_toks": [ "return", "name", "of", "organization", "which", "ha", "most", "contact", "individual", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 33, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 26, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 24, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Return", "the", "name", "of", "the", "organization", "which", "has", "the", "most", "contact", "individuals", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "organization" ], [ "which" ], [ "ha" ], [ "most" ], [ "contact" ], [ "individual" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "organization", "NN" ], [ "which", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "contact", "JJ" ], [ "individual", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(25) T(4) Sup(0) A(3) C(0) T(6) Filter(18) A(0) C(23) T(4) Root(5) Sel(0) N(0) A(0) C(23) T(6)" }, { "db_id": "e_government", "query": "SELECT DISTINCT t1.individual_last_name FROM individuals AS t1 JOIN organization_contact_individuals AS t2 ON t1.individual_id = t2.individual_id", "query_toks": [ "SELECT", "DISTINCT", "t1.individual_last_name", "FROM", "individuals", "AS", "t1", "JOIN", "organization_contact_individuals", "AS", "t2", "ON", "t1.individual_id", "=", "t2.individual_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "individual_last_name", "from", "individuals", "as", "t1", "join", "organization_contact_individuals", "as", "t2", "on", "t1", ".", "individual_id", "=", "t2", ".", "individual_id" ], "question": "Find the last name of the individuals that have been contact individuals of an organization.", "question_toks": [ "find", "last", "name", "of", "individual", "that", "have", "been", "contact", "individual", "of", "an", "organization", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 32, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "Find", "the", "last", "name", "of", "the", "individuals", "that", "have", "been", "contact", "individuals", "of", "an", "organization", "." ], "question_arg": [ [ "find" ], [ "individual", "last", "name" ], [ "of" ], [ "individual" ], [ "that" ], [ "have" ], [ "been" ], [ "contact" ], [ "individual" ], [ "of" ], [ "an" ], [ "organization" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "individual", "JJ" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "contact", "JJ" ], [ "individual", "NN" ], [ "of", "IN" ], [ "an", "DT" ], [ "organization", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(22) T(3) Filter(18) A(0) C(16) T(3) Root(5) Sel(0) N(0) A(0) C(16) T(6)" }, { "db_id": "e_government", "query": "SELECT DISTINCT t1.individual_last_name FROM individuals AS t1 JOIN organization_contact_individuals AS t2 ON t1.individual_id = t2.individual_id", "query_toks": [ "SELECT", "DISTINCT", "t1.individual_last_name", "FROM", "individuals", "AS", "t1", "JOIN", "organization_contact_individuals", "AS", "t2", "ON", "t1.individual_id", "=", "t2.individual_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "individual_last_name", "from", "individuals", "as", "t1", "join", "organization_contact_individuals", "as", "t2", "on", "t1", ".", "individual_id", "=", "t2", ".", "individual_id" ], "question": "What are the last names of individuals who have been contact individuals for an organization?", "question_toks": [ "what", "are", "last", "name", "of", "individual", "who", "have", "been", "contact", "individual", "for", "an", "organization", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 32, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "service id", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "individual id", "organization id", "date contact from", "date contact to", "party id", "address id", "date address from", "address type code", "date address to", "party id", "form id", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service id", "service datetime", "booking made date" ], "table_names": [ "addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services" ], "col_set": [ "*", "address id", "line 1 number building", "town city", "zip postcode", "state province county", "country", "service id", "service type code", "service name", "service descriptio", "form id", "form type code", "form number", "form name", "form description", "individual id", "individual first name", "individual middle name", "inidividual phone", "individual email", "individual address", "individual last name", "organization id", "date formed", "organization name", "uk vat number", "party id", "payment method code", "party phone", "party email", "date contact from", "date contact to", "date address from", "address type code", "date address to", "date completion started", "form status code", "date fully completed", "booking id", "customer id", "service datetime", "booking made date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9 ], "keys": { "13": 7, "7": 7, "32": 32, "17": 17, "33": 24, "24": 24, "36": 36, "28": 28, "37": 1, "1": 1, "42": 11, "11": 11, "41": 41, "47": 28, "48": 7 }, "origin_question_toks": [ "What", "are", "the", "last", "names", "of", "individuals", "who", "have", "been", "contact", "individuals", "for", "an", "organization", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "individual", "last", "name" ], [ "of" ], [ "individual" ], [ "who" ], [ "have" ], [ "been" ], [ "contact" ], [ "individual" ], [ "for" ], [ "an" ], [ "organization" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "individual", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "contact", "JJ" ], [ "individual", "NN" ], [ "for", "IN" ], [ "an", "DT" ], [ "organization", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(22) T(3) Filter(18) A(0) C(16) T(3) Root(5) Sel(0) N(0) A(0) C(16) T(6)" }, { "db_id": "school_bus", "query": "SELECT count(*) FROM driver", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "driver" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "driver" ], "question": "How many drivers are there?", "question_toks": [ "how", "many", "driver", "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": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "school id", "driver id", "years working", "if full time" ], "table_names": [ "driver", "school", "school bus" ], "col_set": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "years working", "if full time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "How", "many", "drivers", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "driver" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "driver", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "school_bus", "query": "SELECT name , home_city , age FROM driver", "query_toks": [ "SELECT", "name", ",", "home_city", ",", "age", "FROM", "driver" ], "query_toks_no_value": [ "select", "name", ",", "home_city", ",", "age", "from", "driver" ], "question": "Show the name, home city, and age for all drivers.", "question_toks": [ "show", "name", ",", "home", "city", ",", "and", "age", "for", "all", "driver", "." ], "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 ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "school id", "driver id", "years working", "if full time" ], "table_names": [ "driver", "school", "school bus" ], "col_set": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "years working", "if full time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "name", ",", "home", "city", ",", "and", "age", "for", "all", "drivers", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "," ], [ "home", "city" ], [ "," ], [ "and" ], [ "age" ], [ "for" ], [ "all" ], [ "driver" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "home", "NN" ], [ "city", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "age", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "driver", "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(5) T(0)" }, { "db_id": "school_bus", "query": "SELECT party , count(*) FROM driver GROUP BY party", "query_toks": [ "SELECT", "party", ",", "count", "(", "*", ")", "FROM", "driver", "GROUP", "BY", "party" ], "query_toks_no_value": [ "select", "party", ",", "count", "(", "*", ")", "from", "driver", "group", "by", "party" ], "question": "Show the party and the number of drivers in each party.", "question_toks": [ "show", "party", "and", "number", "of", "driver", "in", "each", "party", "." ], "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": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "school id", "driver id", "years working", "if full time" ], "table_names": [ "driver", "school", "school bus" ], "col_set": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "years working", "if full time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "party", "and", "the", "number", "of", "drivers", "in", "each", "party", "." ], "question_arg": [ [ "show" ], [ "party" ], [ "and" ], [ "number" ], [ "of" ], [ "driver" ], [ "in" ], [ "each" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "party", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "driver", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "party", "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": "school_bus", "query": "SELECT name FROM driver ORDER BY age DESC", "query_toks": [ "SELECT", "name", "FROM", "driver", "ORDER", "BY", "age", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "driver", "order", "by", "age", "desc" ], "question": "Show the name of drivers in descending order of age.", "question_toks": [ "show", "name", "of", "driver", "in", "descending", "order", "of", "age", "." ], "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": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "school id", "driver id", "years working", "if full time" ], "table_names": [ "driver", "school", "school bus" ], "col_set": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "years working", "if full time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "name", "of", "drivers", "in", "descending", "order", "of", "age", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "driver" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "driver", "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(2) T(0) Order(0) A(0) C(5) T(0)" }, { "db_id": "school_bus", "query": "SELECT DISTINCT home_city FROM driver", "query_toks": [ "SELECT", "DISTINCT", "home_city", "FROM", "driver" ], "query_toks_no_value": [ "select", "distinct", "home_city", "from", "driver" ], "question": "Show all different home cities.", "question_toks": [ "show", "all", "different", "home", "city", "." ], "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": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "school id", "driver id", "years working", "if full time" ], "table_names": [ "driver", "school", "school bus" ], "col_set": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "years working", "if full time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "all", "different", "home", "cities", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "different" ], [ "home", "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "different", "JJ" ], [ "home", "NN" ], [ "city", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(4) T(0)" }, { "db_id": "school_bus", "query": "SELECT home_city FROM driver GROUP BY home_city ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "home_city", "FROM", "driver", "GROUP", "BY", "home_city", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "home_city", "from", "driver", "group", "by", "home_city", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the home city with the most number of drivers.", "question_toks": [ "show", "home", "city", "with", "most", "number", "of", "driver", "." ], "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": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "school id", "driver id", "years working", "if full time" ], "table_names": [ "driver", "school", "school bus" ], "col_set": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "years working", "if full time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "home", "city", "with", "the", "most", "number", "of", "drivers", "." ], "question_arg": [ [ "show" ], [ "home", "city" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "driver" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "home", "NN" ], [ "city", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "driver", "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": "school_bus", "query": "SELECT party FROM driver WHERE home_city = 'Hartford' AND age > 40", "query_toks": [ "SELECT", "party", "FROM", "driver", "WHERE", "home_city", "=", "'Hartford", "'", "AND", "age", ">", "40" ], "query_toks_no_value": [ "select", "party", "from", "driver", "where", "home_city", "=", "value", "and", "age", ">", "value" ], "question": "Show the party with drivers from Hartford and drivers older than 40.", "question_toks": [ "show", "party", "with", "driver", "from", "hartford", "and", "driver", "older", "than", "40", "." ], "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, 4, false ], null ], "\"Hartford\"", null ], "and", [ false, 3, [ 0, [ 0, 5, false ], null ], 40.0, null ] ] }, "names": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "school id", "driver id", "years working", "if full time" ], "table_names": [ "driver", "school", "school bus" ], "col_set": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "years working", "if full time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "party", "with", "drivers", "from", "Hartford", "and", "drivers", "older", "than", "40", "." ], "question_arg": [ [ "show" ], [ "party" ], [ "with" ], [ "driver" ], [ "from" ], [ "hartford" ], [ "and" ], [ "driver" ], [ "older" ], [ "than" ], [ "40" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "party", "NN" ], [ "with", "IN" ], [ "driver", "NN" ], [ "from", "IN" ], [ "hartford", "NN" ], [ "and", "CC" ], [ "driver", "NN" ], [ "older", "JJR" ], [ "than", "IN" ], [ "40", "CD" ], [ ".", "." ] ], "values": [ "40", "Hartford" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(0) Filter(2) A(0) C(4) T(0) V(1) Filter(5) A(0) C(5) T(0) V(0)" }, { "db_id": "school_bus", "query": "SELECT home_city FROM driver WHERE age > 40 GROUP BY home_city HAVING count(*) >= 2", "query_toks": [ "SELECT", "home_city", "FROM", "driver", "WHERE", "age", ">", "40", "GROUP", "BY", "home_city", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "home_city", "from", "driver", "where", "age", ">", "value", "group", "by", "home_city", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show home city where at least two drivers older than 40 are from.", "question_toks": [ "show", "home", "city", "where", "at", "least", "two", "driver", "older", "than", "40", "are", "from", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 5, [ 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, 3, [ 0, [ 0, 5, false ], null ], 40.0, null ] ] }, "names": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "school id", "driver id", "years working", "if full time" ], "table_names": [ "driver", "school", "school bus" ], "col_set": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "years working", "if full time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "home", "city", "where", "at", "least", "two", "drivers", "older", "than", "40", "are", "from", "." ], "question_arg": [ [ "show" ], [ "home", "city" ], [ "where" ], [ "at" ], [ "least" ], [ "two" ], [ "driver" ], [ "older" ], [ "than" ], [ "40" ], [ "are" ], [ "from" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "home", "NN" ], [ "city", "NN" ], [ "where", "WRB" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "driver", "NN" ], [ "older", "JJR" ], [ "than", "IN" ], [ "40", "CD" ], [ "are", "VBP" ], [ "from", "IN" ], [ ".", "." ] ], "values": [ "2", "40" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(0) Filter(5) A(0) C(5) T(0) V(1) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "school_bus", "query": "SELECT home_city FROM driver EXCEPT SELECT home_city FROM driver WHERE age > 40", "query_toks": [ "SELECT", "home_city", "FROM", "driver", "EXCEPT", "SELECT", "home_city", "FROM", "driver", "WHERE", "age", ">", "40" ], "query_toks_no_value": [ "select", "home_city", "from", "driver", "except", "select", "home_city", "from", "driver", "where", "age", ">", "value" ], "question": "Show all home cities except for those having a driver older than 40.", "question_toks": [ "show", "all", "home", "city", "except", "for", "those", "having", "a", "driver", "older", "than", "40", "." ], "sql": { "except": { "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, 5, false ], null ], 40.0, 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": [] }, "names": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "school id", "driver id", "years working", "if full time" ], "table_names": [ "driver", "school", "school bus" ], "col_set": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "years working", "if full time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "all", "home", "cities", "except", "for", "those", "having", "a", "driver", "older", "than", "40", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "home", "city" ], [ "except" ], [ "for" ], [ "those" ], [ "having" ], [ "a" ], [ "driver" ], [ "older" ], [ "than" ], [ "40" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "home", "NN" ], [ "city", "NN" ], [ "except", "IN" ], [ "for", "IN" ], [ "those", "DT" ], [ "having", "VBG" ], [ "a", "DT" ], [ "driver", "NN" ], [ "older", "JJR" ], [ "than", "IN" ], [ "40", "CD" ], [ ".", "." ] ], "values": [ "40" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(4) T(0) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(5) A(0) C(5) T(0) V(0)" }, { "db_id": "school_bus", "query": "SELECT name FROM driver WHERE driver_id NOT IN (SELECT driver_id FROM school_bus)", "query_toks": [ "SELECT", "name", "FROM", "driver", "WHERE", "driver_id", "NOT", "IN", "(", "SELECT", "driver_id", "FROM", "school_bus", ")" ], "query_toks_no_value": [ "select", "name", "from", "driver", "where", "driver_id", "not", "in", "(", "select", "driver_id", "from", "school_bus", ")" ], "question": "Show the names of the drivers without a school bus.", "question_toks": [ "show", "name", "of", "driver", "without", "a", "school", "bus", "." ], "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, 12, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "school id", "driver id", "years working", "if full time" ], "table_names": [ "driver", "school", "school bus" ], "col_set": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "years working", "if full time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "the", "drivers", "without", "a", "school", "bus", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "driver" ], [ "without" ], [ "a" ], [ "school", "bus" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "driver", "NN" ], [ "without", "IN" ], [ "a", "DT" ], [ "school", "NN" ], [ "bus", "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": "school_bus", "query": "SELECT TYPE FROM school GROUP BY TYPE HAVING count(*) = 2", "query_toks": [ "SELECT", "TYPE", "FROM", "school", "GROUP", "BY", "TYPE", "HAVING", "count", "(", "*", ")", "=", "2" ], "query_toks_no_value": [ "select", "type", "from", "school", "group", "by", "type", "having", "count", "(", "*", ")", "=", "value" ], "question": "Show the types of schools that have two schools.", "question_toks": [ "show", "type", "of", "school", "that", "have", "two", "school", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [ [ false, 2, [ 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": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "school id", "driver id", "years working", "if full time" ], "table_names": [ "driver", "school", "school bus" ], "col_set": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "years working", "if full time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "types", "of", "schools", "that", "have", "two", "schools", "." ], "question_arg": [ [ "show" ], [ "type" ], [ "of" ], [ "school" ], [ "that" ], [ "have" ], [ "two" ], [ "school" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "type", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "two", "CD" ], [ "school", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(3) C(0) T(1) V(0)" }, { "db_id": "school_bus", "query": "SELECT T2.school , T3.name FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id JOIN driver AS T3 ON T1.driver_id = T3.driver_id", "query_toks": [ "SELECT", "T2.school", ",", "T3.name", "FROM", "school_bus", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.school_id", "=", "T2.school_id", "JOIN", "driver", "AS", "T3", "ON", "T1.driver_id", "=", "T3.driver_id" ], "query_toks_no_value": [ "select", "t2", ".", "school", ",", "t3", ".", "name", "from", "school_bus", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "join", "driver", "as", "t3", "on", "t1", ".", "driver_id", "=", "t3", ".", "driver_id" ], "question": "Show the school name and driver name for all school buses.", "question_toks": [ "show", "school", "name", "and", "driver", "name", "for", "all", "school", "bus", "." ], "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, 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 ] ] }, "names": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "school id", "driver id", "years working", "if full time" ], "table_names": [ "driver", "school", "school bus" ], "col_set": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "years working", "if full time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "school", "name", "and", "driver", "name", "for", "all", "school", "buses", "." ], "question_arg": [ [ "show" ], [ "school" ], [ "name" ], [ "and" ], [ "driver" ], [ "name" ], [ "for" ], [ "all" ], [ "school", "bus" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "school", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "driver", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "school", "NN" ], [ "bus", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(1) A(0) C(2) T(0) Filter(18) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "school_bus", "query": "SELECT max(years_working) , min(years_working) , avg(years_working) FROM school_bus", "query_toks": [ "SELECT", "max", "(", "years_working", ")", ",", "min", "(", "years_working", ")", ",", "avg", "(", "years_working", ")", "FROM", "school_bus" ], "query_toks_no_value": [ "select", "max", "(", "years_working", ")", ",", "min", "(", "years_working", ")", ",", "avg", "(", "years_working", ")", "from", "school_bus" ], "question": "What is the maximum, minimum and average years spent working on a school bus?", "question_toks": [ "what", "is", "maximum", ",", "minimum", "and", "average", "year", "spent", "working", "on", "a", "school", "bus", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 13, false ], null ] ], [ 2, [ 0, [ 0, 13, false ], null ] ], [ 5, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "school id", "driver id", "years working", "if full time" ], "table_names": [ "driver", "school", "school bus" ], "col_set": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "years working", "if full time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "maximum", ",", "minimum", "and", "average", "years", "spent", "working", "on", "a", "school", "bus", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "," ], [ "minimum" ], [ "and" ], [ "average" ], [ "year" ], [ "spent" ], [ "working" ], [ "on" ], [ "a" ], [ "school", "bus" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ ",", "," ], [ "minimum", "JJ" ], [ "and", "CC" ], [ "average", "JJ" ], [ "year", "NN" ], [ "spent", "VBN" ], [ "working", "VBG" ], [ "on", "IN" ], [ "a", "DT" ], [ "school", "NN" ], [ "bus", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(1) C(11) T(2) A(2) C(11) T(2) A(5) C(11) T(2)" }, { "db_id": "school_bus", "query": "SELECT school , TYPE FROM school WHERE school_id NOT IN (SELECT school_id FROM school_bus)", "query_toks": [ "SELECT", "school", ",", "TYPE", "FROM", "school", "WHERE", "school_id", "NOT", "IN", "(", "SELECT", "school_id", "FROM", "school_bus", ")" ], "query_toks_no_value": [ "select", "school", ",", "type", "from", "school", "where", "school_id", "not", "in", "(", "select", "school_id", "from", "school_bus", ")" ], "question": "Show the school name and type for schools without a school bus.", "question_toks": [ "show", "school", "name", "and", "type", "for", "school", "without", "a", "school", "bus", "." ], "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, 10, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "school id", "driver id", "years working", "if full time" ], "table_names": [ "driver", "school", "school bus" ], "col_set": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "years working", "if full time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "school", "name", "and", "type", "for", "schools", "without", "a", "school", "bus", "." ], "question_arg": [ [ "show" ], [ "school" ], [ "name" ], [ "and" ], [ "type" ], [ "for" ], [ "school" ], [ "without" ], [ "a" ], [ "school", "bus" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "school", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "type", "NN" ], [ "for", "IN" ], [ "school", "NN" ], [ "without", "IN" ], [ "a", "DT" ], [ "school", "NN" ], [ "bus", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(1) A(0) C(10) T(1) Filter(19) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "school_bus", "query": "SELECT T2.type , count(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T2.type", "query_toks": [ "SELECT", "T2.type", ",", "count", "(", "*", ")", "FROM", "school_bus", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.school_id", "=", "T2.school_id", "GROUP", "BY", "T2.type" ], "query_toks_no_value": [ "select", "t2", ".", "type", ",", "count", "(", "*", ")", "from", "school_bus", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "group", "by", "t2", ".", "type" ], "question": "Show the type of school and the number of buses for each type.", "question_toks": [ "show", "type", "of", "school", "and", "number", "of", "bus", "for", "each", "type", "." ], "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, 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": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "school id", "driver id", "years working", "if full time" ], "table_names": [ "driver", "school", "school bus" ], "col_set": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "years working", "if full time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "type", "of", "school", "and", "the", "number", "of", "buses", "for", "each", "type", "." ], "question_arg": [ [ "show" ], [ "type" ], [ "of" ], [ "school" ], [ "and" ], [ "number" ], [ "of" ], [ "bus" ], [ "for" ], [ "each" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "type", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "bus", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(10) T(1) A(3) C(0) T(2)" }, { "db_id": "school_bus", "query": "SELECT count(*) FROM driver WHERE home_city = 'Hartford' OR age < 40", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "driver", "WHERE", "home_city", "=", "'Hartford", "'", "OR", "age", "<", "40" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "driver", "where", "home_city", "=", "value", "or", "age", "<", "value" ], "question": "How many drivers are from Hartford city or younger than 40?", "question_toks": [ "how", "many", "driver", "are", "from", "hartford", "city", "or", "younger", "than", "40", "?" ], "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 ], "\"Hartford\"", null ], "or", [ false, 4, [ 0, [ 0, 5, false ], null ], 40.0, null ] ] }, "names": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "school id", "driver id", "years working", "if full time" ], "table_names": [ "driver", "school", "school bus" ], "col_set": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "years working", "if full time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "How", "many", "drivers", "are", "from", "Hartford", "city", "or", "younger", "than", "40", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "driver" ], [ "are" ], [ "from" ], [ "hartford" ], [ "city" ], [ "or" ], [ "younger" ], [ "than" ], [ "40" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "driver", "NN" ], [ "are", "VBP" ], [ "from", "IN" ], [ "hartford", "JJ" ], [ "city", "NN" ], [ "or", "CC" ], [ "younger", "JJR" ], [ "than", "IN" ], [ "40", "CD" ], [ "?", "." ] ], "values": [ "40", "Hartford" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(1) Filter(2) A(0) C(4) T(0) V(1) Filter(4) A(0) C(5) T(0) V(0)" }, { "db_id": "school_bus", "query": "SELECT name FROM driver WHERE home_city = 'Hartford' AND age < 40", "query_toks": [ "SELECT", "name", "FROM", "driver", "WHERE", "home_city", "=", "'Hartford", "'", "AND", "age", "<", "40" ], "query_toks_no_value": [ "select", "name", "from", "driver", "where", "home_city", "=", "value", "and", "age", "<", "value" ], "question": "List names for drivers from Hartford city and younger than 40.", "question_toks": [ "list", "name", "for", "driver", "from", "hartford", "city", "and", "younger", "than", "40", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Hartford\"", null ], "and", [ false, 4, [ 0, [ 0, 5, false ], null ], 40.0, null ] ] }, "names": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "school id", "driver id", "years working", "if full time" ], "table_names": [ "driver", "school", "school bus" ], "col_set": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "years working", "if full time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "List", "names", "for", "drivers", "from", "Hartford", "city", "and", "younger", "than", "40", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "for" ], [ "driver" ], [ "from" ], [ "hartford" ], [ "city" ], [ "and" ], [ "younger" ], [ "than" ], [ "40" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "driver", "NN" ], [ "from", "IN" ], [ "hartford", "JJ" ], [ "city", "NN" ], [ "and", "CC" ], [ "younger", "JJR" ], [ "than", "IN" ], [ "40", "CD" ], [ ".", "." ] ], "values": [ "40", "Hartford" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(4) T(0) V(1) Filter(4) A(0) C(5) T(0) V(0)" }, { "db_id": "school_bus", "query": "SELECT t1.name FROM driver AS t1 JOIN school_bus AS t2 ON t1.driver_id = t2.driver_id ORDER BY years_working DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", "FROM", "driver", "AS", "t1", "JOIN", "school_bus", "AS", "t2", "ON", "t1.driver_id", "=", "t2.driver_id", "ORDER", "BY", "years_working", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "driver", "as", "t1", "join", "school_bus", "as", "t2", "on", "t1", ".", "driver_id", "=", "t2", ".", "driver_id", "order", "by", "years_working", "desc", "limit", "value" ], "question": "find the name of driver who is driving the school bus with the longest working history.", "question_toks": [ "find", "name", "of", "driver", "who", "is", "driving", "school", "bus", "with", "longest", "working", "history", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "school id", "driver id", "years working", "if full time" ], "table_names": [ "driver", "school", "school bus" ], "col_set": [ "*", "driver id", "name", "party", "home city", "age", "school id", "grade", "school", "location", "type", "years working", "if full time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "find", "the", "name", "of", "driver", "who", "is", "driving", "the", "school", "bus", "with", "the", "longest", "working", "history", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "driver" ], [ "who" ], [ "is" ], [ "driving" ], [ "school", "bus" ], [ "with" ], [ "longest" ], [ "working" ], [ "history" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "driver", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "driving", "VBG" ], [ "school", "NN" ], [ "bus", "NN" ], [ "with", "IN" ], [ "longest", "JJ" ], [ "working", "VBG" ], [ "history", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(11) T(2)" }, { "db_id": "flight_company", "query": "SELECT count(*) FROM flight WHERE velocity > 200", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "flight", "WHERE", "velocity", ">", "200" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flight", "where", "velocity", ">", "value" ], "question": "How many flights have a velocity larger than 200?", "question_toks": [ "how", "many", "flight", "have", "a", "velocity", "larger", "than", "200", "?" ], "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, 17, false ], null ], 200.0, null ] ] }, "names": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "How", "many", "flights", "have", "a", "velocity", "larger", "than", "200", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "flight" ], [ "have" ], [ "a" ], [ "velocity" ], [ "larger" ], [ "than" ], [ "200" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "flight", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "velocity", "NN" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "200", "CD" ], [ "?", "." ] ], "values": [ "200" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(5) A(0) C(14) T(2) V(0)" }, { "db_id": "flight_company", "query": "SELECT vehicle_flight_number , date , pilot FROM flight ORDER BY altitude ASC", "query_toks": [ "SELECT", "vehicle_flight_number", ",", "date", ",", "pilot", "FROM", "flight", "ORDER", "BY", "altitude", "ASC" ], "query_toks_no_value": [ "select", "vehicle_flight_number", ",", "date", ",", "pilot", "from", "flight", "order", "by", "altitude", "asc" ], "question": "List the vehicle flight number, date and pilot of all the flights, ordered by altitude.", "question_toks": [ "list", "vehicle", "flight", "number", ",", "date", "and", "pilot", "of", "all", "flight", ",", "ordered", "by", "altitude", "." ], "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, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "List", "the", "vehicle", "flight", "number", ",", "date", "and", "pilot", "of", "all", "the", "flights", ",", "ordered", "by", "altitude", "." ], "question_arg": [ [ "list" ], [ "vehicle", "flight", "number" ], [ "," ], [ "date" ], [ "and" ], [ "pilot" ], [ "of" ], [ "all" ], [ "flight" ], [ "," ], [ "ordered" ], [ "by" ], [ "altitude" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "vehicle", "NN" ], [ "flight", "NN" ], [ "number", "NN" ], [ ",", "," ], [ "date", "NN" ], [ "and", "CC" ], [ "pilot", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "flight", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "altitude", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(11) T(2) A(0) C(12) T(2) A(0) C(13) T(2) Order(1) A(0) C(15) T(2)" }, { "db_id": "flight_company", "query": "SELECT id , country , city , name FROM airport ORDER BY name", "query_toks": [ "SELECT", "id", ",", "country", ",", "city", ",", "name", "FROM", "airport", "ORDER", "BY", "name" ], "query_toks_no_value": [ "select", "id", ",", "country", ",", "city", ",", "name", "from", "airport", "order", "by", "name" ], "question": "List the id, country, city and name of the airports ordered alphabetically by the name.", "question_toks": [ "list", "id", ",", "country", ",", "city", "and", "name", "of", "airport", "ordered", "alphabetically", "by", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "List", "the", "id", ",", "country", ",", "city", "and", "name", "of", "the", "airports", "ordered", "alphabetically", "by", "the", "name", "." ], "question_arg": [ [ "list" ], [ "id" ], [ "," ], [ "country" ], [ "," ], [ "city" ], [ "and" ], [ "name" ], [ "of" ], [ "airport" ], [ "ordered" ], [ "alphabetically" ], [ "by" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "country", "NN" ], [ ",", "," ], [ "city", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "ordered", "VBN" ], [ "alphabetically", "RB" ], [ "by", "IN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(3) A(0) C(1) T(0) A(0) C(3) T(0) A(0) C(2) T(0) A(0) C(6) T(0) Order(1) A(0) C(6) T(0)" }, { "db_id": "flight_company", "query": "SELECT max(group_equity_shareholding) FROM operate_company", "query_toks": [ "SELECT", "max", "(", "group_equity_shareholding", ")", "FROM", "operate_company" ], "query_toks_no_value": [ "select", "max", "(", "group_equity_shareholding", ")", "from", "operate_company" ], "question": "What is maximum group equity shareholding of the companies?", "question_toks": [ "what", "is", "maximum", "group", "equity", "shareholding", "of", "company", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "What", "is", "maximum", "group", "equity", "shareholding", "of", "the", "companies", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "group", "equity", "shareholding" ], [ "of" ], [ "company" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "group", "NN" ], [ "equity", "NN" ], [ "shareholding", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(1) C(10) T(1)" }, { "db_id": "flight_company", "query": "SELECT avg(velocity) FROM flight WHERE pilot = 'Thompson'", "query_toks": [ "SELECT", "avg", "(", "velocity", ")", "FROM", "flight", "WHERE", "pilot", "=", "'Thompson", "'" ], "query_toks_no_value": [ "select", "avg", "(", "velocity", ")", "from", "flight", "where", "pilot", "=", "value" ], "question": "What is the velocity of the pilot named 'Thompson'?", "question_toks": [ "what", "is", "velocity", "of", "pilot", "named", "'", "thompson", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Thompson\"", null ] ] }, "names": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "velocity", "of", "the", "pilot", "named", "'Thompson", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "velocity" ], [ "of" ], [ "pilot" ], [ "named" ], [ "'" ], [ "thompson" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "velocity", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "thompson", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Thompson" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(14) T(2) Filter(2) A(0) C(13) T(2) V(0)" }, { "db_id": "flight_company", "query": "SELECT T1.name , T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id", "query_toks": [ "SELECT", "T1.name", ",", "T1.type", "FROM", "operate_company", "AS", "T1", "JOIN", "flight", "AS", "t2", "ON", "T1.id", "=", "T2.company_id" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "type", "from", "operate_company", "as", "t1", "join", "flight", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "company_id" ], "question": "What are the names and types of the companies that have ever operated a flight?", "question_toks": [ "what", "are", "name", "and", "type", "of", "company", "that", "have", "ever", "operated", "a", "flight", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 8, [ 0, [ 0, 7, 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": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "types", "of", "the", "companies", "that", "have", "ever", "operated", "a", "flight", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "type" ], [ "of" ], [ "company" ], [ "that" ], [ "have" ], [ "ever" ], [ "operated" ], [ "a" ], [ "flight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "type", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "ever", "RB" ], [ "operated", "VBN" ], [ "a", "DT" ], [ "flight", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(1) A(0) C(7) T(1) Filter(18) A(0) C(1) T(1) Root(5) Sel(0) N(0) A(0) C(17) T(2)" }, { "db_id": "flight_company", "query": "SELECT name FROM airport WHERE country != 'Iceland'", "query_toks": [ "SELECT", "name", "FROM", "airport", "WHERE", "country", "!", "=", "'Iceland", "'" ], "query_toks_no_value": [ "select", "name", "from", "airport", "where", "country", "!", "=", "value" ], "question": "What are the names of the airports which are not in the country 'Iceland'?", "question_toks": [ "what", "are", "name", "of", "airport", "which", "are", "not", "in", "country", "'", "iceland", "'", "?" ], "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 ], "\"Iceland\"", null ] ] }, "names": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "airports", "which", "are", "not", "in", "the", "country", "'Iceland", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "airport" ], [ "which" ], [ "are" ], [ "not" ], [ "in" ], [ "country" ], [ "'" ], [ "iceland" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "in", "IN" ], [ "country", "NN" ], [ "'", "''" ], [ "iceland", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Iceland" ], "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": "flight_company", "query": "SELECT DISTINCT T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T2.velocity < 200", "query_toks": [ "SELECT", "DISTINCT", "T1.type", "FROM", "operate_company", "AS", "T1", "JOIN", "flight", "AS", "t2", "ON", "T1.id", "=", "T2.company_id", "WHERE", "T2.velocity", "<", "200" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "type", "from", "operate_company", "as", "t1", "join", "flight", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "company_id", "where", "t2", ".", "velocity", "<", "value" ], "question": "What are the distinct types of the companies that have operated any flights with velocity less than 200?", "question_toks": [ "what", "are", "distinct", "type", "of", "company", "that", "have", "operated", "any", "flight", "with", "velocity", "le", "than", "200", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 17, false ], null ], 200.0, null ] ] }, "names": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "distinct", "types", "of", "the", "companies", "that", "have", "operated", "any", "flights", "with", "velocity", "less", "than", "200", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "type" ], [ "of" ], [ "company" ], [ "that" ], [ "have" ], [ "operated" ], [ "any" ], [ "flight" ], [ "with" ], [ "velocity" ], [ "le" ], [ "than" ], [ "200" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "operated", "VBN" ], [ "any", "DT" ], [ "flight", "NN" ], [ "with", "IN" ], [ "velocity", "NN" ], [ "le", "NN" ], [ "than", "IN" ], [ "200", "CD" ], [ "?", "." ] ], "values": [ "200" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(7) T(1) Filter(4) A(0) C(14) T(2) V(0)" }, { "db_id": "flight_company", "query": "SELECT T1.id , T1.name FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id GROUP BY T1.id HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.id", ",", "T1.name", "FROM", "operate_company", "AS", "T1", "JOIN", "flight", "AS", "t2", "ON", "T1.id", "=", "T2.company_id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", "from", "operate_company", "as", "t1", "join", "flight", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "company_id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the ids and names of the companies that operated more than one flight?", "question_toks": [ "what", "are", "id", "and", "name", "of", "company", "that", "operated", "more", "than", "one", "flight", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 3, [ 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, 7, 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": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "names", "of", "the", "companies", "that", "operated", "more", "than", "one", "flight", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "company" ], [ "that" ], [ "operated" ], [ "more" ], [ "than" ], [ "one" ], [ "flight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "that", "WDT" ], [ "operated", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "flight", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(1) A(0) C(6) T(1) Filter(0) Filter(18) A(0) C(1) T(1) Root(5) Sel(0) N(0) A(0) C(17) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "flight_company", "query": "SELECT T1.id , T1.name , T1.IATA FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.id", ",", "T1.name", ",", "T1.IATA", "FROM", "airport", "AS", "T1", "JOIN", "flight", "AS", "T2", "ON", "T1.id", "=", "T2.airport_id", "GROUP", "BY", "T2.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "iata", "from", "airport", "as", "t1", "join", "flight", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "airport_id", "group", "by", "t2", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the id, name and IATA code of the airport that had most number of flights?", "question_toks": [ "what", "is", "id", ",", "name", "and", "iata", "code", "of", "airport", "that", "had", "most", "number", "of", "flight", "?" ], "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, 13, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "id", ",", "name", "and", "IATA", "code", "of", "the", "airport", "that", "had", "most", "number", "of", "flights", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "," ], [ "name" ], [ "and" ], [ "iata" ], [ "code" ], [ "of" ], [ "airport" ], [ "that" ], [ "had" ], [ "most" ], [ "number" ], [ "of" ], [ "flight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ ",", "," ], [ "name", "NN" ], [ "and", "CC" ], [ "iata", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(1) T(0) A(0) C(6) T(0) A(0) C(4) 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(16) T(2)" }, { "db_id": "flight_company", "query": "SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id WHERE T1.country = 'United States' OR T1.name = 'Billund Airport'", "query_toks": [ "SELECT", "DISTINCT", "T2.pilot", "FROM", "airport", "AS", "T1", "JOIN", "flight", "AS", "T2", "ON", "T1.id", "=", "T2.airport_id", "WHERE", "T1.country", "=", "'United", "States", "'", "OR", "T1.name", "=", "'Billund", "Airport", "'" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "pilot", "from", "airport", "as", "t1", "join", "flight", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "airport_id", "where", "t1", ".", "country", "=", "value", "or", "t1", ".", "name", "=", "value" ], "question": "What are the different pilot names who had piloted a flight in the country 'United States' or in the airport named 'Billund Airport'?", "question_toks": [ "what", "are", "different", "pilot", "name", "who", "had", "piloted", "a", "flight", "in", "country", "'", "united", "state", "'", "or", "in", "airport", "named", "'", "billund", "airport", "'", "?" ], "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": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"United States\"", null ], "or", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Billund Airport\"", null ] ] }, "names": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "What", "are", "the", "different", "pilot", "names", "who", "had", "piloted", "a", "flight", "in", "the", "country", "'United", "States", "'", "or", "in", "the", "airport", "named", "'Billund", "Airport", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "pilot" ], [ "name" ], [ "who" ], [ "had" ], [ "piloted" ], [ "a" ], [ "flight" ], [ "in" ], [ "country" ], [ "'" ], [ "united" ], [ "state" ], [ "'" ], [ "or" ], [ "in" ], [ "airport" ], [ "named" ], [ "'" ], [ "billund" ], [ "airport" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "pilot", "NN" ], [ "name", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "piloted", "VBN" ], [ "a", "DT" ], [ "flight", "NN" ], [ "in", "IN" ], [ "country", "NN" ], [ "'", "''" ], [ "united", "JJ" ], [ "state", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "in", "IN" ], [ "airport", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "billund", "NN" ], [ "airport", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Billund", "United States", "Billund Airport" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(13) T(2) Filter(1) Filter(2) A(0) C(3) T(0) V(1) Filter(2) A(0) C(6) T(0) V(2)" }, { "db_id": "flight_company", "query": "SELECT TYPE , count(*) FROM operate_company GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "TYPE", ",", "count", "(", "*", ")", "FROM", "operate_company", "GROUP", "BY", "TYPE", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "type", ",", "count", "(", "*", ")", "from", "operate_company", "group", "by", "type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most common company type, and how many are there?", "question_toks": [ "what", "is", "most", "common", "company", "type", ",", "and", "how", "many", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "What", "is", "the", "most", "common", "company", "type", ",", "and", "how", "many", "are", "there", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "common" ], [ "company" ], [ "type" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "company", "NN" ], [ "type", "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(7) T(1) A(3) C(0) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "flight_company", "query": "SELECT count(*) FROM airport WHERE id NOT IN ( SELECT airport_id FROM flight WHERE pilot = 'Thompson' );", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "airport", "WHERE", "id", "NOT", "IN", "(", "SELECT", "airport_id", "FROM", "flight", "WHERE", "pilot", "=", "'Thompson", "'", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airport", "where", "id", "not", "in", "(", "select", "airport_id", "from", "flight", "where", "pilot", "=", "value", ")" ], "question": "How many airports haven't the pilot 'Thompson' driven an aircraft?", "question_toks": [ "how", "many", "airport", "have", "n't", "pilot", "'", "thompson", "'", "driven", "an", "aircraft", "?" ], "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, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Thompson\"", null ] ] }, null ] ] }, "names": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "How", "many", "airports", "have", "n't", "the", "pilot", "'Thompson", "'", "driven", "an", "aircraft", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "airport" ], [ "have" ], [ "n't" ], [ "pilot" ], [ "'" ], [ "thompson" ], [ "'" ], [ "driven" ], [ "an" ], [ "aircraft" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "airport", "NN" ], [ "have", "VBP" ], [ "n't", "RB" ], [ "pilot", "VBN" ], [ "'", "''" ], [ "thompson", "NN" ], [ "'", "POS" ], [ "driven", "NN" ], [ "an", "DT" ], [ "aircraft", "NN" ], [ "?", "." ] ], "values": [ "Thompson" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(19) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(2) A(0) C(13) T(2) V(0)" }, { "db_id": "flight_company", "query": "SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Cargo' INTERSECT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Catering services'", "query_toks": [ "SELECT", "T2.pilot", "FROM", "operate_company", "AS", "T1", "JOIN", "flight", "AS", "t2", "ON", "T1.id", "=", "T2.company_id", "WHERE", "T1.principal_activities", "=", "'Cargo", "'", "INTERSECT", "SELECT", "T2.pilot", "FROM", "operate_company", "AS", "T1", "JOIN", "flight", "AS", "t2", "ON", "T1.id", "=", "T2.company_id", "WHERE", "T1.principal_activities", "=", "'Catering", "services", "'" ], "query_toks_no_value": [ "select", "t2", ".", "pilot", "from", "operate_company", "as", "t1", "join", "flight", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "company_id", "where", "t1", ".", "principal_activities", "=", "value", "intersect", "select", "t2", ".", "pilot", "from", "operate_company", "as", "t1", "join", "flight", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "company_id", "where", "t1", ".", "principal_activities", "=", "value" ], "question": "List the name of the pilots who have flied for both a company that mainly provide 'Cargo' services and a company that runs 'Catering services' activities.", "question_toks": [ "list", "name", "of", "pilot", "who", "have", "flied", "for", "both", "a", "company", "that", "mainly", "provide", "'", "cargo", "'", "service", "and", "a", "company", "that", "run", "'", "catering", "service", "'", "activity", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 20, 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Catering services\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Cargo\"", null ] ] }, "names": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "List", "the", "name", "of", "the", "pilots", "who", "have", "flied", "for", "both", "a", "company", "that", "mainly", "provide", "'Cargo", "'", "services", "and", "a", "company", "that", "runs", "'Catering", "services", "'", "activities", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "pilot" ], [ "who" ], [ "have" ], [ "flied" ], [ "for" ], [ "both" ], [ "a" ], [ "company" ], [ "that" ], [ "mainly" ], [ "provide" ], [ "'" ], [ "cargo" ], [ "'" ], [ "service" ], [ "and" ], [ "a" ], [ "company" ], [ "that" ], [ "run" ], [ "'" ], [ "catering" ], [ "service" ], [ "'" ], [ "activity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "pilot", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "flied", "VBN" ], [ "for", "IN" ], [ "both", "DT" ], [ "a", "DT" ], [ "company", "NN" ], [ "that", "WDT" ], [ "mainly", "RB" ], [ "provide", "VBP" ], [ "'", "''" ], [ "cargo", "NN" ], [ "'", "POS" ], [ "service", "NN" ], [ "and", "CC" ], [ "a", "DT" ], [ "company", "NN" ], [ "that", "WDT" ], [ "run", "VBP" ], [ "'", "''" ], [ "catering", "VBG" ], [ "service", "NN" ], [ "'", "''" ], [ "activity", "NN" ], [ ".", "." ] ], "values": [ "Catering services", "Cargo" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(8) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "flight_company", "query": "SELECT name FROM airport WHERE name LIKE '%international%'", "query_toks": [ "SELECT", "name", "FROM", "airport", "WHERE", "name", "LIKE", "'", "%", "international", "%", "'" ], "query_toks_no_value": [ "select", "name", "from", "airport", "where", "name", "like", "value" ], "question": "Which of the airport names contains the word 'international'?", "question_toks": [ "which", "of", "airport", "name", "contains", "word", "'", "international", "'", "?" ], "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, 9, [ 0, [ 0, 6, false ], null ], "\"%international%\"", null ] ] }, "names": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "Which", "of", "the", "airport", "names", "contains", "the", "word", "'international", "'", "?" ], "question_arg": [ [ "which" ], [ "of" ], [ "airport" ], [ "name" ], [ "contains" ], [ "word" ], [ "'" ], [ "international" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "of", "IN" ], [ "airport", "NN" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "word", "NN" ], [ "'", "''" ], [ "international", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "international" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(9) A(0) C(6) T(0) V(0)" }, { "db_id": "flight_company", "query": "SELECT T3.id , count(*) FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id JOIN airport AS T3 ON T2.airport_id = T3.id GROUP BY T3.id", "query_toks": [ "SELECT", "T3.id", ",", "count", "(", "*", ")", "FROM", "operate_company", "AS", "T1", "JOIN", "flight", "AS", "t2", "ON", "T1.id", "=", "T2.company_id", "JOIN", "airport", "AS", "T3", "ON", "T2.airport_id", "=", "T3.id", "GROUP", "BY", "T3.id" ], "query_toks_no_value": [ "select", "t3", ".", "id", ",", "count", "(", "*", ")", "from", "operate_company", "as", "t1", "join", "flight", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "company_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "id", "group", "by", "t3", ".", "id" ], "question": "How many companies operates airlines in each airport?", "question_toks": [ "how", "many", "company", "operates", "airline", "in", "each", "airport", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "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": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "How", "many", "companies", "operates", "airlines", "in", "each", "airport", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "company" ], [ "operates" ], [ "airline" ], [ "in" ], [ "each" ], [ "airport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "company", "NN" ], [ "operates", "VBZ" ], [ "airline", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "airport", "NN" ], [ "?", "." ] ], "values": [ "Airline" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(0) A(3) C(0) T(2) Filter(18) A(0) C(1) T(1) Root(5) Sel(0) N(0) A(0) C(17) T(2)" }, { "db_id": "flight_company", "query": "SELECT count(*) , country FROM airport GROUP BY country", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "country", "FROM", "airport", "GROUP", "BY", "country" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "country", "from", "airport", "group", "by", "country" ], "question": "how many airports are there in each country?", "question_toks": [ "how", "many", "airport", "are", "there", "in", "each", "country", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "how", "many", "airports", "are", "there", "in", "each", "country", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "airport" ], [ "are" ], [ "there" ], [ "in" ], [ "each" ], [ "country" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "airport", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "each", "DT" ], [ "country", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(0) A(0) C(3) T(0)" }, { "db_id": "flight_company", "query": "SELECT country FROM airport GROUP BY country HAVING count(*) > 2", "query_toks": [ "SELECT", "country", "FROM", "airport", "GROUP", "BY", "country", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "country", "from", "airport", "group", "by", "country", "having", "count", "(", "*", ")", ">", "value" ], "question": "which countries have more than 2 airports?", "question_toks": [ "which", "country", "have", "more", "than", "2", "airport", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "which", "countries", "have", "more", "than", "2", "airports", "?" ], "question_arg": [ [ "which" ], [ "country" ], [ "have" ], [ "more" ], [ "than" ], [ "2" ], [ "airport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "airport", "NN" ], [ "?", "." ] ], "values": [ "2" ], "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": "flight_company", "query": "SELECT pilot FROM flight GROUP BY pilot ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "pilot", "FROM", "flight", "GROUP", "BY", "pilot", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "pilot", "from", "flight", "group", "by", "pilot", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "which pilot is in charge of the most number of flights?", "question_toks": [ "which", "pilot", "is", "in", "charge", "of", "most", "number", "of", "flight", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "city", "country", "iata", "icao", "name", "id", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "id", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "table_names": [ "airport", "operate company", "flight" ], "col_set": [ "*", "id", "city", "country", "iata", "icao", "name", "type", "principal activities", "incorporated in", "group equity shareholding", "vehicle flight number", "date", "pilot", "velocity", "altitude", "airport id", "company id" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 7, "7": 7, "19": 1, "1": 1, "13": 13 }, "origin_question_toks": [ "which", "pilot", "is", "in", "charge", "of", "the", "most", "number", "of", "flights", "?" ], "question_arg": [ [ "which" ], [ "pilot" ], [ "is" ], [ "in" ], [ "charge" ], [ "of" ], [ "most" ], [ "number" ], [ "of" ], [ "flight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "pilot", "NN" ], [ "is", "VBZ" ], [ "in", "IN" ], [ "charge", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "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": "cre_Docs_and_Epenses", "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", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "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(6)" }, { "db_id": "cre_Docs_and_Epenses", "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", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "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(6)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT account_id , account_details FROM Accounts", "query_toks": [ "SELECT", "account_id", ",", "account_details", "FROM", "Accounts" ], "query_toks_no_value": [ "select", "account_id", ",", "account_details", "from", "accounts" ], "question": "Show all account ids and account details.", "question_toks": [ "show", "all", "account", "id", "and", "account", "detail", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Show", "all", "account", "ids", "and", "account", "details", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "account", "id" ], [ "and" ], [ "account", "detail" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "account", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "account", "NN" ], [ "detail", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(16) T(6) A(0) C(17) T(6)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT account_id , account_details FROM Accounts", "query_toks": [ "SELECT", "account_id", ",", "account_details", "FROM", "Accounts" ], "query_toks_no_value": [ "select", "account_id", ",", "account_details", "from", "accounts" ], "question": "What are the ids and details of all accounts?", "question_toks": [ "what", "are", "id", "and", "detail", "of", "all", "account", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "details", "of", "all", "accounts", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "detail" ], [ "of" ], [ "all" ], [ "account" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "detail", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "account", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(16) T(6) A(0) C(17) T(6)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT count(*) FROM Statements", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Statements" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "statements" ], "question": "How many statements do we have?", "question_toks": [ "how", "many", "statement", "do", "we", "have", "?" ], "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "How", "many", "statements", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "statement" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "statement", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(4)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT count(*) FROM Statements", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Statements" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "statements" ], "question": "Count the number of statements.", "question_toks": [ "count", "number", "of", "statement", "." ], "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Count", "the", "number", "of", "statements", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "statement" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "statement", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(4)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT STATEMENT_ID , statement_details FROM Statements", "query_toks": [ "SELECT", "STATEMENT_ID", ",", "statement_details", "FROM", "Statements" ], "query_toks_no_value": [ "select", "statement_id", ",", "statement_details", "from", "statements" ], "question": "List all statement ids and statement details.", "question_toks": [ "list", "all", "statement", "id", "and", "statement", "detail", "." ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "List", "all", "statement", "ids", "and", "statement", "details", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "statement", "id" ], [ "and" ], [ "statement", "detail" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "statement", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "statement", "NN" ], [ "detail", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(4) A(0) C(14) T(4)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT STATEMENT_ID , statement_details FROM Statements", "query_toks": [ "SELECT", "STATEMENT_ID", ",", "statement_details", "FROM", "Statements" ], "query_toks_no_value": [ "select", "statement_id", ",", "statement_details", "from", "statements" ], "question": "What are the ids and details of all statements?", "question_toks": [ "what", "are", "id", "and", "detail", "of", "all", "statement", "?" ], "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 ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "details", "of", "all", "statements", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "detail" ], [ "of" ], [ "all" ], [ "statement" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "detail", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "statement", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(4) A(0) C(14) T(4)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T1.statement_id , T2.statement_details , T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id", "query_toks": [ "SELECT", "T1.statement_id", ",", "T2.statement_details", ",", "T1.account_details", "FROM", "Accounts", "AS", "T1", "JOIN", "Statements", "AS", "T2", "ON", "T1.statement_id", "=", "T2.statement_id" ], "query_toks_no_value": [ "select", "t1", ".", "statement_id", ",", "t2", ".", "statement_details", ",", "t1", ".", "account_details", "from", "accounts", "as", "t1", "join", "statements", "as", "t2", "on", "t1", ".", "statement_id", "=", "t2", ".", "statement_id" ], "question": "Show statement id, statement detail, account detail for accounts.", "question_toks": [ "show", "statement", "id", ",", "statement", "detail", ",", "account", "detail", "for", "account", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Show", "statement", "id", ",", "statement", "detail", ",", "account", "detail", "for", "accounts", "." ], "question_arg": [ [ "show" ], [ "statement", "id" ], [ "," ], [ "statement", "detail" ], [ "," ], [ "account", "detail" ], [ "for" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "statement", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "statement", "NN" ], [ "detail", "NN" ], [ ",", "," ], [ "account", "VBP" ], [ "detail", "NN" ], [ "for", "IN" ], [ "account", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(13) T(6) A(0) C(14) T(4) A(0) C(17) T(6)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T1.statement_id , T2.statement_details , T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id", "query_toks": [ "SELECT", "T1.statement_id", ",", "T2.statement_details", ",", "T1.account_details", "FROM", "Accounts", "AS", "T1", "JOIN", "Statements", "AS", "T2", "ON", "T1.statement_id", "=", "T2.statement_id" ], "query_toks_no_value": [ "select", "t1", ".", "statement_id", ",", "t2", ".", "statement_details", ",", "t1", ".", "account_details", "from", "accounts", "as", "t1", "join", "statements", "as", "t2", "on", "t1", ".", "statement_id", "=", "t2", ".", "statement_id" ], "question": "What are the statement ids, statement details, and account details, for all accounts?", "question_toks": [ "what", "are", "statement", "id", ",", "statement", "detail", ",", "and", "account", "detail", ",", "for", "all", "account", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "statement", "ids", ",", "statement", "details", ",", "and", "account", "details", ",", "for", "all", "accounts", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "statement", "id" ], [ "," ], [ "statement", "detail" ], [ "," ], [ "and" ], [ "account", "detail" ], [ "," ], [ "for" ], [ "all" ], [ "account" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "statement", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "statement", "NN" ], [ "detail", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "account", "NN" ], [ "detail", "NN" ], [ ",", "," ], [ "for", "IN" ], [ "all", "DT" ], [ "account", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(13) T(6) A(0) C(14) T(4) A(0) C(17) T(6)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT STATEMENT_ID , count(*) FROM Accounts GROUP BY STATEMENT_ID", "query_toks": [ "SELECT", "STATEMENT_ID", ",", "count", "(", "*", ")", "FROM", "Accounts", "GROUP", "BY", "STATEMENT_ID" ], "query_toks_no_value": [ "select", "statement_id", ",", "count", "(", "*", ")", "from", "accounts", "group", "by", "statement_id" ], "question": "Show all statement id and the number of accounts for each statement.", "question_toks": [ "show", "all", "statement", "id", "and", "number", "of", "account", "for", "each", "statement", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Show", "all", "statement", "id", "and", "the", "number", "of", "accounts", "for", "each", "statement", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "statement", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "account" ], [ "for" ], [ "each" ], [ "statement" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "statement", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "statement", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(6) A(3) C(0) T(6)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT STATEMENT_ID , count(*) FROM Accounts GROUP BY STATEMENT_ID", "query_toks": [ "SELECT", "STATEMENT_ID", ",", "count", "(", "*", ")", "FROM", "Accounts", "GROUP", "BY", "STATEMENT_ID" ], "query_toks_no_value": [ "select", "statement_id", ",", "count", "(", "*", ")", "from", "accounts", "group", "by", "statement_id" ], "question": "What are the different statement ids on accounts, and the number of accounts for each?", "question_toks": [ "what", "are", "different", "statement", "id", "on", "account", ",", "and", "number", "of", "account", "for", "each", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "different", "statement", "ids", "on", "accounts", ",", "and", "the", "number", "of", "accounts", "for", "each", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "statement", "id" ], [ "on" ], [ "account" ], [ "," ], [ "and" ], [ "number" ], [ "of" ], [ "account" ], [ "for" ], [ "each" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "statement", "NN" ], [ "id", "NN" ], [ "on", "IN" ], [ "account", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(6) A(3) C(0) T(6)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T1.statement_id , T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id GROUP BY T1.statement_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.statement_id", ",", "T2.statement_details", "FROM", "Accounts", "AS", "T1", "JOIN", "Statements", "AS", "T2", "ON", "T1.statement_id", "=", "T2.statement_id", "GROUP", "BY", "T1.statement_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "statement_id", ",", "t2", ".", "statement_details", "from", "accounts", "as", "t1", "join", "statements", "as", "t2", "on", "t1", ".", "statement_id", "=", "t2", ".", "statement_id", "group", "by", "t1", ".", "statement_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the statement id and the statement detail for the statement with most number of accounts.", "question_toks": [ "show", "statement", "id", "and", "statement", "detail", "for", "statement", "with", "most", "number", "of", "account", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Show", "the", "statement", "id", "and", "the", "statement", "detail", "for", "the", "statement", "with", "most", "number", "of", "accounts", "." ], "question_arg": [ [ "show" ], [ "statement", "id" ], [ "and" ], [ "statement", "detail" ], [ "for" ], [ "statement" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "statement", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "statement", "NN" ], [ "detail", "NN" ], [ "for", "IN" ], [ "statement", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(13) T(6) A(0) C(14) T(4) Sup(0) A(3) C(0) T(6)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T1.statement_id , T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id GROUP BY T1.statement_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.statement_id", ",", "T2.statement_details", "FROM", "Accounts", "AS", "T1", "JOIN", "Statements", "AS", "T2", "ON", "T1.statement_id", "=", "T2.statement_id", "GROUP", "BY", "T1.statement_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "statement_id", ",", "t2", ".", "statement_details", "from", "accounts", "as", "t1", "join", "statements", "as", "t2", "on", "t1", ".", "statement_id", "=", "t2", ".", "statement_id", "group", "by", "t1", ".", "statement_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the statement id and statement detail for the statement that has the most corresponding accounts?", "question_toks": [ "what", "are", "statement", "id", "and", "statement", "detail", "for", "statement", "that", "ha", "most", "corresponding", "account", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "statement", "id", "and", "statement", "detail", "for", "the", "statement", "that", "has", "the", "most", "corresponding", "accounts", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "statement", "id" ], [ "and" ], [ "statement", "detail" ], [ "for" ], [ "statement" ], [ "that" ], [ "ha" ], [ "most" ], [ "corresponding" ], [ "account" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "statement", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "statement", "NN" ], [ "detail", "NN" ], [ "for", "IN" ], [ "statement", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "corresponding", "JJ" ], [ "account", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(13) T(6) A(0) C(14) T(4) Sup(0) A(3) C(0) T(6)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT count(*) FROM Documents", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Documents" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "documents" ], "question": "Show the number of documents.", "question_toks": [ "show", "number", "of", "document", "." ], "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Show", "the", "number", "of", "documents", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "of" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT count(*) FROM Documents", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Documents" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "documents" ], "question": "Count the number of documents.", "question_toks": [ "count", "number", "of", "document", "." ], "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Count", "the", "number", "of", "documents", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_type_code , document_name , document_description FROM Documents WHERE document_name = 'Noel CV' OR document_name = 'King Book'", "query_toks": [ "SELECT", "document_type_code", ",", "document_name", ",", "document_description", "FROM", "Documents", "WHERE", "document_name", "=", "'Noel", "CV", "'", "OR", "document_name", "=", "'King", "Book", "'" ], "query_toks_no_value": [ "select", "document_type_code", ",", "document_name", ",", "document_description", "from", "documents", "where", "document_name", "=", "value", "or", "document_name", "=", "value" ], "question": "List the document type code, document name, and document description for the document with name 'Noel CV' or name 'King Book'.", "question_toks": [ "list", "document", "type", "code", ",", "document", "name", ",", "and", "document", "description", "for", "document", "with", "name", "'", "noel", "cv", "'", "or", "name", "'", "king", "book", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Noel CV\"", null ], "or", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"King Book\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "List", "the", "document", "type", "code", ",", "document", "name", ",", "and", "document", "description", "for", "the", "document", "with", "name", "'Noel", "CV", "'", "or", "name", "'King", "Book", "'", "." ], "question_arg": [ [ "list" ], [ "document", "type", "code" ], [ "," ], [ "document", "name" ], [ "," ], [ "and" ], [ "document", "description" ], [ "for" ], [ "document" ], [ "with" ], [ "name" ], [ "'" ], [ "noel" ], [ "cv" ], [ "'" ], [ "or" ], [ "name" ], [ "'" ], [ "king" ], [ "book" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "document", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "document", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "document", "JJ" ], [ "description", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "noel", "JJ" ], [ "cv", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "name", "NN" ], [ "'", "''" ], [ "king", "VBG" ], [ "book", "NN" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "Noel CV", "CV", "Book", "King Book" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(1) T(3) A(0) C(10) T(3) A(0) C(11) T(3) Filter(1) Filter(2) A(0) C(10) T(3) V(0) Filter(2) A(0) C(10) T(3) V(3)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_type_code , document_name , document_description FROM Documents WHERE document_name = 'Noel CV' OR document_name = 'King Book'", "query_toks": [ "SELECT", "document_type_code", ",", "document_name", ",", "document_description", "FROM", "Documents", "WHERE", "document_name", "=", "'Noel", "CV", "'", "OR", "document_name", "=", "'King", "Book", "'" ], "query_toks_no_value": [ "select", "document_type_code", ",", "document_name", ",", "document_description", "from", "documents", "where", "document_name", "=", "value", "or", "document_name", "=", "value" ], "question": "What are the type come, name, and description of the document that has either the name 'Noel CV' or 'King Book'?", "question_toks": [ "what", "are", "type", "come", ",", "name", ",", "and", "description", "of", "document", "that", "ha", "either", "name", "'", "noel", "cv", "'", "or", "'", "king", "book", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Noel CV\"", null ], "or", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"King Book\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "type", "come", ",", "name", ",", "and", "description", "of", "the", "document", "that", "has", "either", "the", "name", "'Noel", "CV", "'", "or", "'King", "Book", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "type" ], [ "come" ], [ "," ], [ "name" ], [ "," ], [ "and" ], [ "description" ], [ "of" ], [ "document" ], [ "that" ], [ "ha" ], [ "either" ], [ "name" ], [ "'" ], [ "noel" ], [ "cv" ], [ "'" ], [ "or" ], [ "'" ], [ "king" ], [ "book" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "type", "JJ" ], [ "come", "NN" ], [ ",", "," ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "either", "DT" ], [ "name", "NN" ], [ "'", "POS" ], [ "noel", "JJ" ], [ "cv", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "king", "VBG" ], [ "book", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Noel CV", "CV", "Book", "King Book" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(1) T(3) A(0) C(10) T(3) A(0) C(11) T(3) Filter(1) Filter(2) A(0) C(10) T(3) V(0) Filter(2) A(0) C(10) T(3) V(3)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_id , document_name FROM Documents", "query_toks": [ "SELECT", "document_id", ",", "document_name", "FROM", "Documents" ], "query_toks_no_value": [ "select", "document_id", ",", "document_name", "from", "documents" ], "question": "Show the ids and names of all documents.", "question_toks": [ "show", "id", "and", "name", "of", "all", "document", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Show", "the", "ids", "and", "names", "of", "all", "documents", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "all" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(3) A(0) C(10) T(3)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_id , document_name FROM Documents", "query_toks": [ "SELECT", "document_id", ",", "document_name", "FROM", "Documents" ], "query_toks_no_value": [ "select", "document_id", ",", "document_name", "from", "documents" ], "question": "What are the ids and names for each of the documents?", "question_toks": [ "what", "are", "id", "and", "name", "for", "each", "of", "document", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "names", "for", "each", "of", "the", "documents", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "name" ], [ "for" ], [ "each" ], [ "of" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "of", "IN" ], [ "document", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(3) A(0) C(10) T(3)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_name , document_id FROM Documents WHERE document_type_code = \"BK\"", "query_toks": [ "SELECT", "document_name", ",", "document_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "``", "BK", "''" ], "query_toks_no_value": [ "select", "document_name", ",", "document_id", "from", "documents", "where", "document_type_code", "=", "value" ], "question": "Find names and ids of all documents with document type code BK.", "question_toks": [ "find", "name", "and", "id", "of", "all", "document", "with", "document", "type", "code", "bk", "." ], "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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"BK\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Find", "names", "and", "ids", "of", "all", "documents", "with", "document", "type", "code", "BK", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "all" ], [ "document" ], [ "with" ], [ "document", "type", "code" ], [ "bk" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "document", "NN" ], [ "with", "IN" ], [ "document", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "bk", "NN" ], [ ".", "." ] ], "values": [ "BK" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(8) T(3) Filter(2) A(0) C(1) T(3) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_name , document_id FROM Documents WHERE document_type_code = \"BK\"", "query_toks": [ "SELECT", "document_name", ",", "document_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "``", "BK", "''" ], "query_toks_no_value": [ "select", "document_name", ",", "document_id", "from", "documents", "where", "document_type_code", "=", "value" ], "question": "What are the names and ids of documents that have the type code BK?", "question_toks": [ "what", "are", "name", "and", "id", "of", "document", "that", "have", "type", "code", "bk", "?" ], "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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"BK\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "ids", "of", "documents", "that", "have", "the", "type", "code", "BK", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "document" ], [ "that" ], [ "have" ], [ "type" ], [ "code" ], [ "bk" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "type", "VBN" ], [ "code", "NN" ], [ "bk", "NN" ], [ "?", "." ] ], "values": [ "BK" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(8) T(3) Filter(2) A(0) C(1) T(3) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT count(*) , project_id FROM Documents WHERE document_type_code = \"BK\" GROUP BY project_id", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "project_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "``", "BK", "''", "GROUP", "BY", "project_id" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "project_id", "from", "documents", "where", "document_type_code", "=", "value", "group", "by", "project_id" ], "question": "How many documents are with document type code BK for each product id?", "question_toks": [ "how", "many", "document", "are", "with", "document", "type", "code", "bk", "for", "each", "product", "id", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"BK\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "How", "many", "documents", "are", "with", "document", "type", "code", "BK", "for", "each", "product", "id", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "document" ], [ "are" ], [ "with" ], [ "document", "type", "code" ], [ "bk" ], [ "for" ], [ "each" ], [ "product" ], [ "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "document", "NN" ], [ "are", "VBP" ], [ "with", "IN" ], [ "document", "JJ" ], [ "type", "NN" ], [ "code", "NN" ], [ "bk", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "product", "NN" ], [ "id", "NN" ], [ "?", "." ] ], "values": [ "BK" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(3) A(0) C(6) T(3) Filter(2) A(0) C(1) T(3) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT count(*) , project_id FROM Documents WHERE document_type_code = \"BK\" GROUP BY project_id", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "project_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "``", "BK", "''", "GROUP", "BY", "project_id" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "project_id", "from", "documents", "where", "document_type_code", "=", "value", "group", "by", "project_id" ], "question": "Count the number of documents with the type code BK that correspond to each product id.", "question_toks": [ "count", "number", "of", "document", "with", "type", "code", "bk", "that", "correspond", "to", "each", "product", "id", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"BK\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Count", "the", "number", "of", "documents", "with", "the", "type", "code", "BK", "that", "correspond", "to", "each", "product", "id", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "document" ], [ "with" ], [ "type" ], [ "code" ], [ "bk" ], [ "that" ], [ "correspond" ], [ "to" ], [ "each" ], [ "product" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "type", "JJ" ], [ "code", "NN" ], [ "bk", "NN" ], [ "that", "WDT" ], [ "correspond", "NN" ], [ "to", "TO" ], [ "each", "DT" ], [ "product", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "BK" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(3) A(0) C(6) T(3) Filter(2) A(0) C(1) T(3) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_name , document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project'", "query_toks": [ "SELECT", "document_name", ",", "document_date", "FROM", "Documents", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "WHERE", "T2.project_details", "=", "'Graph", "Database", "project", "'" ], "query_toks_no_value": [ "select", "document_name", ",", "document_date", "from", "documents", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "value" ], "question": "Show the document name and the document date for all documents on project with details 'Graph Database project'.", "question_toks": [ "show", "document", "name", "and", "document", "date", "for", "all", "document", "on", "project", "with", "detail", "'", "graph", "database", "project", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Graph Database project\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Show", "the", "document", "name", "and", "the", "document", "date", "for", "all", "documents", "on", "project", "with", "details", "'Graph", "Database", "project", "'", "." ], "question_arg": [ [ "show" ], [ "document", "name" ], [ "and" ], [ "document", "date" ], [ "for" ], [ "all" ], [ "document" ], [ "on" ], [ "project" ], [ "with" ], [ "detail" ], [ "'" ], [ "graph" ], [ "database" ], [ "project" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "document", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "document", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "document", "NN" ], [ "on", "IN" ], [ "project", "NN" ], [ "with", "IN" ], [ "detail", "NN" ], [ "'", "''" ], [ "graph", "JJ" ], [ "database", "NN" ], [ "project", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Graph Database project" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(9) T(3) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_name , document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project'", "query_toks": [ "SELECT", "document_name", ",", "document_date", "FROM", "Documents", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "WHERE", "T2.project_details", "=", "'Graph", "Database", "project", "'" ], "query_toks_no_value": [ "select", "document_name", ",", "document_date", "from", "documents", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "value" ], "question": "What are the names and dates for documents corresponding to project that has the details 'Graph Database project'?", "question_toks": [ "what", "are", "name", "and", "date", "for", "document", "corresponding", "to", "project", "that", "ha", "detail", "'", "graph", "database", "project", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Graph Database project\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "dates", "for", "documents", "corresponding", "to", "project", "that", "has", "the", "details", "'Graph", "Database", "project", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "date" ], [ "for" ], [ "document" ], [ "corresponding" ], [ "to" ], [ "project" ], [ "that" ], [ "ha" ], [ "detail" ], [ "'" ], [ "graph" ], [ "database" ], [ "project" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "date", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "corresponding", "NN" ], [ "to", "TO" ], [ "project", "VB" ], [ "that", "DT" ], [ "ha", "NN" ], [ "detail", "NN" ], [ "'", "''" ], [ "graph", "JJ" ], [ "database", "NN" ], [ "project", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Graph Database project" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(9) T(3) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT project_id , count(*) FROM Documents GROUP BY project_id", "query_toks": [ "SELECT", "project_id", ",", "count", "(", "*", ")", "FROM", "Documents", "GROUP", "BY", "project_id" ], "query_toks_no_value": [ "select", "project_id", ",", "count", "(", "*", ")", "from", "documents", "group", "by", "project_id" ], "question": "Show project ids and the number of documents in each project.", "question_toks": [ "show", "project", "id", "and", "number", "of", "document", "in", "each", "project", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Show", "project", "ids", "and", "the", "number", "of", "documents", "in", "each", "project", "." ], "question_arg": [ [ "show" ], [ "project", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "document" ], [ "in" ], [ "each" ], [ "project" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "project", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "project", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(3) A(3) C(0) T(3)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT project_id , count(*) FROM Documents GROUP BY project_id", "query_toks": [ "SELECT", "project_id", ",", "count", "(", "*", ")", "FROM", "Documents", "GROUP", "BY", "project_id" ], "query_toks_no_value": [ "select", "project_id", ",", "count", "(", "*", ")", "from", "documents", "group", "by", "project_id" ], "question": "How many documents correspond with each project id?", "question_toks": [ "how", "many", "document", "correspond", "with", "each", "project", "id", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "How", "many", "documents", "correspond", "with", "each", "project", "id", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "document" ], [ "correspond" ], [ "with" ], [ "each" ], [ "project", "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "document", "JJ" ], [ "correspond", "NN" ], [ "with", "IN" ], [ "each", "DT" ], [ "project", "NN" ], [ "id", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(3) A(3) C(0) T(3)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "project_id", "FROM", "Documents", "GROUP", "BY", "project_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "project_id", "from", "documents", "group", "by", "project_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "What is the id of the project with least number of documents?", "question_toks": [ "what", "is", "id", "of", "project", "with", "least", "number", "of", "document", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "project", "with", "least", "number", "of", "documents", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "project" ], [ "with" ], [ "least" ], [ "number" ], [ "of" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "with", "IN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(3) Sup(1) A(3) C(0) T(3)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "project_id", "FROM", "Documents", "GROUP", "BY", "project_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "project_id", "from", "documents", "group", "by", "project_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Return the id of the project that has the fewest corresponding documents.", "question_toks": [ "return", "id", "of", "project", "that", "ha", "fewest", "corresponding", "document", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Return", "the", "id", "of", "the", "project", "that", "has", "the", "fewest", "corresponding", "documents", "." ], "question_arg": [ [ "return" ], [ "id" ], [ "of" ], [ "project" ], [ "that" ], [ "ha" ], [ "fewest" ], [ "corresponding" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "fewest", "JJS" ], [ "corresponding", "VBG" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(3) Sup(1) A(3) C(0) T(3)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT project_id FROM Documents GROUP BY project_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "project_id", "FROM", "Documents", "GROUP", "BY", "project_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "project_id", "from", "documents", "group", "by", "project_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the ids for projects with at least 2 documents.", "question_toks": [ "show", "id", "for", "project", "with", "at", "least", "2", "document", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Show", "the", "ids", "for", "projects", "with", "at", "least", "2", "documents", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "for" ], [ "project" ], [ "with" ], [ "at" ], [ "least" ], [ "2" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "project", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "document", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(3) Filter(7) A(3) C(0) T(3) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT project_id FROM Documents GROUP BY project_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "project_id", "FROM", "Documents", "GROUP", "BY", "project_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "project_id", "from", "documents", "group", "by", "project_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are project ids of projects that have 2 or more corresponding documents?", "question_toks": [ "what", "are", "project", "id", "of", "project", "that", "have", "2", "or", "more", "corresponding", "document", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "project", "ids", "of", "projects", "that", "have", "2", "or", "more", "corresponding", "documents", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "project", "id" ], [ "of" ], [ "project" ], [ "that" ], [ "have" ], [ "2" ], [ "or" ], [ "more" ], [ "corresponding" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "project", "JJ" ], [ "id", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "2", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "corresponding", "JJ" ], [ "document", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(3) Filter(7) A(3) C(0) T(3) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_type_code , count(*) FROM Documents GROUP BY document_type_code", "query_toks": [ "SELECT", "document_type_code", ",", "count", "(", "*", ")", "FROM", "Documents", "GROUP", "BY", "document_type_code" ], "query_toks_no_value": [ "select", "document_type_code", ",", "count", "(", "*", ")", "from", "documents", "group", "by", "document_type_code" ], "question": "List document type codes and the number of documents in each code.", "question_toks": [ "list", "document", "type", "code", "and", "number", "of", "document", "in", "each", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "List", "document", "type", "codes", "and", "the", "number", "of", "documents", "in", "each", "code", "." ], "question_arg": [ [ "list" ], [ "document", "type", "code" ], [ "and" ], [ "number" ], [ "of" ], [ "document" ], [ "in" ], [ "each" ], [ "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "document", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "code", "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": "cre_Docs_and_Epenses", "query": "SELECT document_type_code , count(*) FROM Documents GROUP BY document_type_code", "query_toks": [ "SELECT", "document_type_code", ",", "count", "(", "*", ")", "FROM", "Documents", "GROUP", "BY", "document_type_code" ], "query_toks_no_value": [ "select", "document_type_code", ",", "count", "(", "*", ")", "from", "documents", "group", "by", "document_type_code" ], "question": "How many documents are there of each type?", "question_toks": [ "how", "many", "document", "are", "there", "of", "each", "type", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "How", "many", "documents", "are", "there", "of", "each", "type", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "document" ], [ "are" ], [ "there" ], [ "of" ], [ "each" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "document", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "of", "IN" ], [ "each", "DT" ], [ "type", "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": "cre_Docs_and_Epenses", "query": "SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "document_type_code", "FROM", "Documents", "GROUP", "BY", "document_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "document_type_code", "from", "documents", "group", "by", "document_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the document type code with most number of documents?", "question_toks": [ "what", "is", "document", "type", "code", "with", "most", "number", "of", "document", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "document", "type", "code", "with", "most", "number", "of", "documents", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "document", "type", "code" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "document", "JJ" ], [ "type", "NN" ], [ "code", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(1) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "document_type_code", "FROM", "Documents", "GROUP", "BY", "document_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "document_type_code", "from", "documents", "group", "by", "document_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the code of the document type that is most common.", "question_toks": [ "return", "code", "of", "document", "type", "that", "is", "most", "common", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Return", "the", "code", "of", "the", "document", "type", "that", "is", "most", "common", "." ], "question_arg": [ [ "return" ], [ "code" ], [ "of" ], [ "document" ], [ "type" ], [ "that" ], [ "is" ], [ "most" ], [ "common" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "document", "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(1) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*) < 3", "query_toks": [ "SELECT", "document_type_code", "FROM", "Documents", "GROUP", "BY", "document_type_code", "HAVING", "count", "(", "*", ")", "<", "3" ], "query_toks_no_value": [ "select", "document_type_code", "from", "documents", "group", "by", "document_type_code", "having", "count", "(", "*", ")", "<", "value" ], "question": "Show the document type code with fewer than 3 documents.", "question_toks": [ "show", "document", "type", "code", "with", "fewer", "than", "3", "document", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [ [ false, 4, [ 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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Show", "the", "document", "type", "code", "with", "fewer", "than", "3", "documents", "." ], "question_arg": [ [ "show" ], [ "document", "type", "code" ], [ "with" ], [ "fewer" ], [ "than" ], [ "3" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "document", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "with", "IN" ], [ "fewer", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "document", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(3) Filter(4) A(3) C(0) T(3) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*) < 3", "query_toks": [ "SELECT", "document_type_code", "FROM", "Documents", "GROUP", "BY", "document_type_code", "HAVING", "count", "(", "*", ")", "<", "3" ], "query_toks_no_value": [ "select", "document_type_code", "from", "documents", "group", "by", "document_type_code", "having", "count", "(", "*", ")", "<", "value" ], "question": "What are the codes corresponding to document types for which there are less than 3 documents?", "question_toks": [ "what", "are", "code", "corresponding", "to", "document", "type", "for", "which", "there", "are", "le", "than", "3", "document", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [ [ false, 4, [ 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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "codes", "corresponding", "to", "document", "types", "for", "which", "there", "are", "less", "than", "3", "documents", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "code" ], [ "corresponding" ], [ "to" ], [ "document" ], [ "type" ], [ "for" ], [ "which" ], [ "there" ], [ "are" ], [ "le" ], [ "than" ], [ "3" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "code", "JJ" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "document", "VB" ], [ "type", "NN" ], [ "for", "IN" ], [ "which", "WDT" ], [ "there", "EX" ], [ "are", "VBP" ], [ "le", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "document", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(3) Filter(4) A(3) C(0) T(3) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T1.statement_details , T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id = T2.document_id WHERE T1.statement_details = 'Private Project'", "query_toks": [ "SELECT", "T1.statement_details", ",", "T2.document_name", "FROM", "Statements", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.statement_id", "=", "T2.document_id", "WHERE", "T1.statement_details", "=", "'Private", "Project", "'" ], "query_toks_no_value": [ "select", "t1", ".", "statement_details", ",", "t2", ".", "document_name", "from", "statements", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "statement_id", "=", "t2", ".", "document_id", "where", "t1", ".", "statement_details", "=", "value" ], "question": "Show the statement detail and the corresponding document name for the statement with detail 'Private Project'.", "question_toks": [ "show", "statement", "detail", "and", "corresponding", "document", "name", "for", "statement", "with", "detail", "'", "private", "project", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Private Project\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Show", "the", "statement", "detail", "and", "the", "corresponding", "document", "name", "for", "the", "statement", "with", "detail", "'Private", "Project", "'", "." ], "question_arg": [ [ "show" ], [ "statement", "detail" ], [ "and" ], [ "corresponding" ], [ "document", "name" ], [ "for" ], [ "statement" ], [ "with" ], [ "detail" ], [ "'" ], [ "private" ], [ "project" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "statement", "NN" ], [ "detail", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "document", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "statement", "NN" ], [ "with", "IN" ], [ "detail", "NN" ], [ "'", "''" ], [ "private", "JJ" ], [ "project", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Private Project" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(4) A(0) C(10) T(3) Filter(2) A(0) C(14) T(4) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T1.statement_details , T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id = T2.document_id WHERE T1.statement_details = 'Private Project'", "query_toks": [ "SELECT", "T1.statement_details", ",", "T2.document_name", "FROM", "Statements", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.statement_id", "=", "T2.document_id", "WHERE", "T1.statement_details", "=", "'Private", "Project", "'" ], "query_toks_no_value": [ "select", "t1", ".", "statement_details", ",", "t2", ".", "document_name", "from", "statements", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "statement_id", "=", "t2", ".", "document_id", "where", "t1", ".", "statement_details", "=", "value" ], "question": "What are the details for statements with the details 'Private Project', and what are the names of the corresponding documents?", "question_toks": [ "what", "are", "detail", "for", "statement", "with", "detail", "'", "private", "project", "'", ",", "and", "what", "are", "name", "of", "corresponding", "document", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Private Project\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "details", "for", "statements", "with", "the", "details", "'Private", "Project", "'", ",", "and", "what", "are", "the", "names", "of", "the", "corresponding", "documents", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "for" ], [ "statement" ], [ "with" ], [ "detail" ], [ "'" ], [ "private" ], [ "project" ], [ "'" ], [ "," ], [ "and" ], [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "corresponding" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "JJ" ], [ "for", "IN" ], [ "statement", "NN" ], [ "with", "IN" ], [ "detail", "NN" ], [ "'", "''" ], [ "private", "JJ" ], [ "project", "NN" ], [ "'", "''" ], [ ",", "," ], [ "and", "CC" ], [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "corresponding", "VBG" ], [ "document", "NN" ], [ "?", "." ] ], "values": [ "Private Project" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(4) A(0) C(10) T(3) Filter(2) A(0) C(14) T(4) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_type_code , document_type_name , document_type_description FROM Ref_document_types", "query_toks": [ "SELECT", "document_type_code", ",", "document_type_name", ",", "document_type_description", "FROM", "Ref_document_types" ], "query_toks_no_value": [ "select", "document_type_code", ",", "document_type_name", ",", "document_type_description", "from", "ref_document_types" ], "question": "Show all document type codes, document type names, document type descriptions.", "question_toks": [ "show", "all", "document", "type", "code", ",", "document", "type", "name", ",", "document", "type", "description", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Show", "all", "document", "type", "codes", ",", "document", "type", "names", ",", "document", "type", "descriptions", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "document", "type", "code" ], [ "," ], [ "document", "type", "name" ], [ "," ], [ "document", "type", "description" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "document", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "document", "NN" ], [ "type", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "document", "NN" ], [ "type", "NN" ], [ "description", "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": "cre_Docs_and_Epenses", "query": "SELECT document_type_code , document_type_name , document_type_description FROM Ref_document_types", "query_toks": [ "SELECT", "document_type_code", ",", "document_type_name", ",", "document_type_description", "FROM", "Ref_document_types" ], "query_toks_no_value": [ "select", "document_type_code", ",", "document_type_name", ",", "document_type_description", "from", "ref_document_types" ], "question": "What are the codes, names, and descriptions of the different document types?", "question_toks": [ "what", "are", "code", ",", "name", ",", "and", "description", "of", "different", "document", "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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "codes", ",", "names", ",", "and", "descriptions", "of", "the", "different", "document", "types", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "code" ], [ "," ], [ "name" ], [ "," ], [ "and" ], [ "description" ], [ "of" ], [ "different" ], [ "document" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "code", "JJ" ], [ ",", "," ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "document", "NN" ], [ "type", "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": "cre_Docs_and_Epenses", "query": "SELECT document_type_description FROM Ref_document_types WHERE document_type_name = \"Film\"", "query_toks": [ "SELECT", "document_type_description", "FROM", "Ref_document_types", "WHERE", "document_type_name", "=", "``", "Film", "''" ], "query_toks_no_value": [ "select", "document_type_description", "from", "ref_document_types", "where", "document_type_name", "=", "value" ], "question": "What is the document type description for document type named Film?", "question_toks": [ "what", "is", "document", "type", "description", "for", "document", "type", "named", "film", "?" ], "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 ], "\"Film\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "document", "type", "description", "for", "document", "type", "named", "Film", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "document", "type", "description" ], [ "for" ], [ "document" ], [ "type" ], [ "named" ], [ "film" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "document", "JJ" ], [ "type", "JJ" ], [ "description", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "type", "NN" ], [ "named", "VBN" ], [ "film", "NN" ], [ "?", "." ] ], "values": [ "Film" ], "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": "cre_Docs_and_Epenses", "query": "SELECT document_type_description FROM Ref_document_types WHERE document_type_name = \"Film\"", "query_toks": [ "SELECT", "document_type_description", "FROM", "Ref_document_types", "WHERE", "document_type_name", "=", "``", "Film", "''" ], "query_toks_no_value": [ "select", "document_type_description", "from", "ref_document_types", "where", "document_type_name", "=", "value" ], "question": "Return the description of the document type name 'Film'.", "question_toks": [ "return", "description", "of", "document", "type", "name", "'", "film", "'", "." ], "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 ], "\"Film\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Return", "the", "description", "of", "the", "document", "type", "name", "'Film", "'", "." ], "question_arg": [ [ "return" ], [ "description" ], [ "of" ], [ "document", "type", "name" ], [ "'" ], [ "film" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "description", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "type", "NN" ], [ "name", "NN" ], [ "'", "''" ], [ "film", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Film" ], "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": "cre_Docs_and_Epenses", "query": "SELECT T1.document_type_name , T1.document_type_description , T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code = T2.document_type_code", "query_toks": [ "SELECT", "T1.document_type_name", ",", "T1.document_type_description", ",", "T2.Document_date", "FROM", "Ref_document_types", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_type_code", "=", "T2.document_type_code" ], "query_toks_no_value": [ "select", "t1", ".", "document_type_name", ",", "t1", ".", "document_type_description", ",", "t2", ".", "document_date", "from", "ref_document_types", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_type_code", "=", "t2", ".", "document_type_code" ], "question": "What is the document type name and the document type description and creation date for all the documents?", "question_toks": [ "what", "is", "document", "type", "name", "and", "document", "type", "description", "and", "creation", "date", "for", "all", "document", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "document", "type", "name", "and", "the", "document", "type", "description", "and", "creation", "date", "for", "all", "the", "documents", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "document", "type", "name" ], [ "and" ], [ "document", "type", "description" ], [ "and" ], [ "creation" ], [ "date" ], [ "for" ], [ "all" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "document", "JJ" ], [ "type", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "document", "NN" ], [ "type", "NN" ], [ "description", "NN" ], [ "and", "CC" ], [ "creation", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "document", "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(9) T(3)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T1.document_type_name , T1.document_type_description , T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code = T2.document_type_code", "query_toks": [ "SELECT", "T1.document_type_name", ",", "T1.document_type_description", ",", "T2.Document_date", "FROM", "Ref_document_types", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_type_code", "=", "T2.document_type_code" ], "query_toks_no_value": [ "select", "t1", ".", "document_type_name", ",", "t1", ".", "document_type_description", ",", "t2", ".", "document_date", "from", "ref_document_types", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_type_code", "=", "t2", ".", "document_type_code" ], "question": "Return the type name, type description, and date of creation for each document.", "question_toks": [ "return", "type", "name", ",", "type", "description", ",", "and", "date", "of", "creation", "for", "each", "document", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Return", "the", "type", "name", ",", "type", "description", ",", "and", "date", "of", "creation", "for", "each", "document", "." ], "question_arg": [ [ "return" ], [ "document", "type", "name" ], [ "," ], [ "type" ], [ "description" ], [ "," ], [ "and" ], [ "date" ], [ "of" ], [ "creation" ], [ "for" ], [ "each" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "type", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "type", "JJ" ], [ "description", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "creation", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "document", "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(9) T(3)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT count(*) FROM Projects", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Projects" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "projects" ], "question": "Show the number of projects.", "question_toks": [ "show", "number", "of", "project", "." ], "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Show", "the", "number", "of", "projects", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "of" ], [ "project" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT count(*) FROM Projects", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Projects" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "projects" ], "question": "How many projects are there?", "question_toks": [ "how", "many", "project", "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "How", "many", "projects", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "project" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "project", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT project_id , project_details FROM Projects", "query_toks": [ "SELECT", "project_id", ",", "project_details", "FROM", "Projects" ], "query_toks_no_value": [ "select", "project_id", ",", "project_details", "from", "projects" ], "question": "List ids and details for all projects.", "question_toks": [ "list", "id", "and", "detail", "for", "all", "project", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "List", "ids", "and", "details", "for", "all", "projects", "." ], "question_arg": [ [ "list" ], [ "id" ], [ "and" ], [ "detail" ], [ "for" ], [ "all" ], [ "project" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "project", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(2) A(0) C(7) T(2)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT project_id , project_details FROM Projects", "query_toks": [ "SELECT", "project_id", ",", "project_details", "FROM", "Projects" ], "query_toks_no_value": [ "select", "project_id", ",", "project_details", "from", "projects" ], "question": "What are the ids and details for each project?", "question_toks": [ "what", "are", "id", "and", "detail", "for", "each", "project", "?" ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "details", "for", "each", "project", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "detail" ], [ "for" ], [ "each" ], [ "project" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "detail", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "project", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(2) A(0) C(7) T(2)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T1.project_id , T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id HAVING count(*) > 2", "query_toks": [ "SELECT", "T1.project_id", ",", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "GROUP", "BY", "T1.project_id", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "t1", ".", "project_id", ",", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "group", "by", "t1", ".", "project_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "What is the project id and detail for the project with at least two documents?", "question_toks": [ "what", "is", "project", "id", "and", "detail", "for", "project", "with", "at", "least", "two", "document", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "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 ] ], [ 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", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "project", "id", "and", "detail", "for", "the", "project", "with", "at", "least", "two", "documents", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "project", "id" ], [ "and" ], [ "detail" ], [ "for" ], [ "project" ], [ "with" ], [ "at" ], [ "least" ], [ "two" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "project", "JJ" ], [ "id", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ "for", "IN" ], [ "project", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "document", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(2) 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(3) Filter(5) A(3) C(0) T(3) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T1.project_id , T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id HAVING count(*) > 2", "query_toks": [ "SELECT", "T1.project_id", ",", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "GROUP", "BY", "T1.project_id", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "t1", ".", "project_id", ",", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "group", "by", "t1", ".", "project_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Return the ids and details corresponding to projects for which there are more than two documents.", "question_toks": [ "return", "id", "and", "detail", "corresponding", "to", "project", "for", "which", "there", "are", "more", "than", "two", "document", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "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 ] ], [ 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", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Return", "the", "ids", "and", "details", "corresponding", "to", "projects", "for", "which", "there", "are", "more", "than", "two", "documents", "." ], "question_arg": [ [ "return" ], [ "id" ], [ "and" ], [ "detail" ], [ "corresponding" ], [ "to" ], [ "project" ], [ "for" ], [ "which" ], [ "there" ], [ "are" ], [ "more" ], [ "than" ], [ "two" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ "corresponding", "NN" ], [ "to", "TO" ], [ "project", "NN" ], [ "for", "IN" ], [ "which", "WDT" ], [ "there", "EX" ], [ "are", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "two", "CD" ], [ "document", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(2) 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(3) Filter(5) A(3) C(0) T(3) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.document_name = \"King Book\"", "query_toks": [ "SELECT", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "WHERE", "T2.document_name", "=", "``", "King", "Book", "''" ], "query_toks_no_value": [ "select", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "document_name", "=", "value" ], "question": "What is the project detail for the project with document \"King Book\"?", "question_toks": [ "what", "is", "project", "detail", "for", "project", "with", "document", "'", "king", "book", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "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 ], "\"King Book\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "project", "detail", "for", "the", "project", "with", "document", "``", "King", "Book", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "project", "detail" ], [ "for" ], [ "project" ], [ "with" ], [ "document" ], [ "'" ], [ "king" ], [ "book" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "project", "JJ" ], [ "detail", "NN" ], [ "for", "IN" ], [ "project", "NN" ], [ "with", "IN" ], [ "document", "NN" ], [ "'", "''" ], [ "king", "VBG" ], [ "book", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Book", "King Book" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(10) T(3) V(1)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.document_name = \"King Book\"", "query_toks": [ "SELECT", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "WHERE", "T2.document_name", "=", "``", "King", "Book", "''" ], "query_toks_no_value": [ "select", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "document_name", "=", "value" ], "question": "Give the details of the project with the document name 'King Book'.", "question_toks": [ "give", "detail", "of", "project", "with", "document", "name", "'", "king", "book", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "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 ], "\"King Book\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Give", "the", "details", "of", "the", "project", "with", "the", "document", "name", "'King", "Book", "'", "." ], "question_arg": [ [ "give" ], [ "detail" ], [ "of" ], [ "project" ], [ "with" ], [ "document", "name" ], [ "'" ], [ "king" ], [ "book" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "detail", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "with", "IN" ], [ "document", "NN" ], [ "name", "NN" ], [ "'", "''" ], [ "king", "VBG" ], [ "book", "NN" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "Book", "King Book" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(10) T(3) V(1)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT count(*) FROM Ref_budget_codes", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Ref_budget_codes" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_budget_codes" ], "question": "How many budget types do we have?", "question_toks": [ "how", "many", "budget", "type", "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "How", "many", "budget", "types", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "budget" ], [ "type" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "budget", "NN" ], [ "type", "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": "cre_Docs_and_Epenses", "query": "SELECT count(*) FROM Ref_budget_codes", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Ref_budget_codes" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_budget_codes" ], "question": "Count the number of budget codes.", "question_toks": [ "count", "number", "of", "budget", "code", "." ], "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Count", "the", "number", "of", "budget", "codes", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "budget", "type", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "budget", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT budget_type_code , budget_type_description FROM Ref_budget_codes", "query_toks": [ "SELECT", "budget_type_code", ",", "budget_type_description", "FROM", "Ref_budget_codes" ], "query_toks_no_value": [ "select", "budget_type_code", ",", "budget_type_description", "from", "ref_budget_codes" ], "question": "List all budget type codes and descriptions.", "question_toks": [ "list", "all", "budget", "type", "code", "and", "description", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "List", "all", "budget", "type", "codes", "and", "descriptions", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "budget", "type", "code" ], [ "and" ], [ "description" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "budget", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "description", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(1) A(0) C(5) T(1)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT budget_type_code , budget_type_description FROM Ref_budget_codes", "query_toks": [ "SELECT", "budget_type_code", ",", "budget_type_description", "FROM", "Ref_budget_codes" ], "query_toks_no_value": [ "select", "budget_type_code", ",", "budget_type_description", "from", "ref_budget_codes" ], "question": "What are the type codes and descriptions of each budget type?", "question_toks": [ "what", "are", "type", "code", "and", "description", "of", "each", "budget", "type", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "type", "codes", "and", "descriptions", "of", "each", "budget", "type", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "type" ], [ "code" ], [ "and" ], [ "description" ], [ "of" ], [ "each" ], [ "budget" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "type", "JJ" ], [ "code", "NN" ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "budget", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(1) A(0) C(5) T(1)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code = \"ORG\"", "query_toks": [ "SELECT", "budget_type_description", "FROM", "Ref_budget_codes", "WHERE", "budget_type_code", "=", "``", "ORG", "''" ], "query_toks_no_value": [ "select", "budget_type_description", "from", "ref_budget_codes", "where", "budget_type_code", "=", "value" ], "question": "What is the description for the budget type with code ORG?", "question_toks": [ "what", "is", "description", "for", "budget", "type", "with", "code", "org", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"ORG\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "description", "for", "the", "budget", "type", "with", "code", "ORG", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "for" ], [ "budget" ], [ "type" ], [ "with" ], [ "code" ], [ "org" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "for", "IN" ], [ "budget", "NN" ], [ "type", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "org", "NN" ], [ "?", "." ] ], "values": [ "ORG" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code = \"ORG\"", "query_toks": [ "SELECT", "budget_type_description", "FROM", "Ref_budget_codes", "WHERE", "budget_type_code", "=", "``", "ORG", "''" ], "query_toks_no_value": [ "select", "budget_type_description", "from", "ref_budget_codes", "where", "budget_type_code", "=", "value" ], "question": "Return the description of the budget type that has the code ORG.", "question_toks": [ "return", "description", "of", "budget", "type", "that", "ha", "code", "org", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"ORG\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Return", "the", "description", "of", "the", "budget", "type", "that", "has", "the", "code", "ORG", "." ], "question_arg": [ [ "return" ], [ "description" ], [ "of" ], [ "budget" ], [ "type" ], [ "that" ], [ "ha" ], [ "code" ], [ "org" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "description", "NN" ], [ "of", "IN" ], [ "budget", "NN" ], [ "type", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "code", "NN" ], [ "org", "NN" ], [ ".", "." ] ], "values": [ "ORG" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT count(*) FROM Documents_with_expenses", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Documents_with_expenses" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "documents_with_expenses" ], "question": "How many documents have expenses?", "question_toks": [ "how", "many", "document", "have", "expense", "?" ], "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "How", "many", "documents", "have", "expenses", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "document" ], [ "have" ], [ "expense" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "document", "NN" ], [ "have", "VBP" ], [ "expense", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(5)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT count(*) FROM Documents_with_expenses", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Documents_with_expenses" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "documents_with_expenses" ], "question": "Count the number of documents with expenses.", "question_toks": [ "count", "number", "of", "document", "with", "expense", "." ], "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Count", "the", "number", "of", "documents", "with", "expenses", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "document", "with", "expense" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "expense", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(5)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_id FROM Documents_with_expenses WHERE budget_type_code = 'SF'", "query_toks": [ "SELECT", "document_id", "FROM", "Documents_with_expenses", "WHERE", "budget_type_code", "=", "'SF", "'" ], "query_toks_no_value": [ "select", "document_id", "from", "documents_with_expenses", "where", "budget_type_code", "=", "value" ], "question": "What are the document ids for the budget type code 'SF'?", "question_toks": [ "what", "are", "document", "id", "for", "budget", "type", "code", "'", "sf", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"SF\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "document", "ids", "for", "the", "budget", "type", "code", "'SF", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "document", "id" ], [ "for" ], [ "budget", "type", "code" ], [ "'" ], [ "sf" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "document", "JJ" ], [ "id", "NN" ], [ "for", "IN" ], [ "budget", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "sf", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "SF" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(5) Filter(2) A(0) C(4) T(5) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_id FROM Documents_with_expenses WHERE budget_type_code = 'SF'", "query_toks": [ "SELECT", "document_id", "FROM", "Documents_with_expenses", "WHERE", "budget_type_code", "=", "'SF", "'" ], "query_toks_no_value": [ "select", "document_id", "from", "documents_with_expenses", "where", "budget_type_code", "=", "value" ], "question": "Give the ids of documents with expenses that have the budget code 'SF'.", "question_toks": [ "give", "id", "of", "document", "with", "expense", "that", "have", "budget", "code", "'", "sf", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"SF\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Give", "the", "ids", "of", "documents", "with", "expenses", "that", "have", "the", "budget", "code", "'SF", "'", "." ], "question_arg": [ [ "give" ], [ "id" ], [ "of" ], [ "document", "with", "expense" ], [ "that" ], [ "have" ], [ "budget", "type", "code" ], [ "'" ], [ "sf" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "id", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "expense", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "budget", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "sf", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "SF" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(5) Filter(2) A(0) C(4) T(5) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T2.budget_type_code , T2.budget_type_description , T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code", "query_toks": [ "SELECT", "T2.budget_type_code", ",", "T2.budget_type_description", ",", "T1.document_id", "FROM", "Documents_with_expenses", "AS", "T1", "JOIN", "Ref_budget_codes", "AS", "T2", "ON", "T1.budget_type_code", "=", "T2.budget_type_code" ], "query_toks_no_value": [ "select", "t2", ".", "budget_type_code", ",", "t2", ".", "budget_type_description", ",", "t1", ".", "document_id", "from", "documents_with_expenses", "as", "t1", "join", "ref_budget_codes", "as", "t2", "on", "t1", ".", "budget_type_code", "=", "t2", ".", "budget_type_code" ], "question": "Show the budget type code and description and the corresponding document id.", "question_toks": [ "show", "budget", "type", "code", "and", "description", "and", "corresponding", "document", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Show", "the", "budget", "type", "code", "and", "description", "and", "the", "corresponding", "document", "id", "." ], "question_arg": [ [ "show" ], [ "budget", "type", "code" ], [ "and" ], [ "description" ], [ "and" ], [ "corresponding" ], [ "document", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "budget", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "description", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "document", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(4) T(1) A(0) C(5) T(1) A(0) C(8) T(5)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T2.budget_type_code , T2.budget_type_description , T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code", "query_toks": [ "SELECT", "T2.budget_type_code", ",", "T2.budget_type_description", ",", "T1.document_id", "FROM", "Documents_with_expenses", "AS", "T1", "JOIN", "Ref_budget_codes", "AS", "T2", "ON", "T1.budget_type_code", "=", "T2.budget_type_code" ], "query_toks_no_value": [ "select", "t2", ".", "budget_type_code", ",", "t2", ".", "budget_type_description", ",", "t1", ".", "document_id", "from", "documents_with_expenses", "as", "t1", "join", "ref_budget_codes", "as", "t2", "on", "t1", ".", "budget_type_code", "=", "t2", ".", "budget_type_code" ], "question": "Return the budget type codes, budget type descriptions and document ids for documents with expenses.", "question_toks": [ "return", "budget", "type", "code", ",", "budget", "type", "description", "and", "document", "id", "for", "document", "with", "expense", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Return", "the", "budget", "type", "codes", ",", "budget", "type", "descriptions", "and", "document", "ids", "for", "documents", "with", "expenses", "." ], "question_arg": [ [ "return" ], [ "budget", "type", "code" ], [ "," ], [ "budget", "type", "description" ], [ "and" ], [ "document", "id" ], [ "for" ], [ "document", "with", "expense" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "budget", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "budget", "NN" ], [ "type", "NN" ], [ "description", "NN" ], [ "and", "CC" ], [ "document", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "expense", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(4) T(1) A(0) C(5) T(1) A(0) C(8) T(5)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code = T2.Budget_Type_code WHERE T2.budget_type_Description = \"Government\"", "query_toks": [ "SELECT", "T1.document_id", "FROM", "Documents_with_expenses", "AS", "T1", "JOIN", "Ref_Budget_Codes", "AS", "T2", "ON", "T1.Budget_Type_code", "=", "T2.Budget_Type_code", "WHERE", "T2.budget_type_Description", "=", "``", "Government", "''" ], "query_toks_no_value": [ "select", "t1", ".", "document_id", "from", "documents_with_expenses", "as", "t1", "join", "ref_budget_codes", "as", "t2", "on", "t1", ".", "budget_type_code", "=", "t2", ".", "budget_type_code", "where", "t2", ".", "budget_type_description", "=", "value" ], "question": "Show ids for all documents with budget types described as 'Government'.", "question_toks": [ "show", "id", "for", "all", "document", "with", "budget", "type", "described", "a", "'", "government", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Government\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Show", "ids", "for", "all", "documents", "with", "budget", "types", "described", "as", "'Government", "'", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "for" ], [ "all" ], [ "document" ], [ "with" ], [ "budget" ], [ "type" ], [ "described" ], [ "a" ], [ "'" ], [ "government" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "document", "NN" ], [ "with", "IN" ], [ "budget", "NN" ], [ "type", "NN" ], [ "described", "VBD" ], [ "a", "DT" ], [ "'", "JJ" ], [ "government", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Government", "government" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(5) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code = T2.Budget_Type_code WHERE T2.budget_type_Description = \"Government\"", "query_toks": [ "SELECT", "T1.document_id", "FROM", "Documents_with_expenses", "AS", "T1", "JOIN", "Ref_Budget_Codes", "AS", "T2", "ON", "T1.Budget_Type_code", "=", "T2.Budget_Type_code", "WHERE", "T2.budget_type_Description", "=", "``", "Government", "''" ], "query_toks_no_value": [ "select", "t1", ".", "document_id", "from", "documents_with_expenses", "as", "t1", "join", "ref_budget_codes", "as", "t2", "on", "t1", ".", "budget_type_code", "=", "t2", ".", "budget_type_code", "where", "t2", ".", "budget_type_description", "=", "value" ], "question": "Give the ids for documents that have the budget description 'Government'.", "question_toks": [ "give", "id", "for", "document", "that", "have", "budget", "description", "'", "government", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Government\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Give", "the", "ids", "for", "documents", "that", "have", "the", "budget", "description", "'Government", "'", "." ], "question_arg": [ [ "give" ], [ "id" ], [ "for" ], [ "document" ], [ "that" ], [ "have" ], [ "budget", "type", "description" ], [ "'" ], [ "government" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "id", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "budget", "NN" ], [ "description", "NN" ], [ "'", "POS" ], [ "government", "NN" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "government", "Government" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(5) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT budget_type_code , count(*) FROM Documents_with_expenses GROUP BY budget_type_code", "query_toks": [ "SELECT", "budget_type_code", ",", "count", "(", "*", ")", "FROM", "Documents_with_expenses", "GROUP", "BY", "budget_type_code" ], "query_toks_no_value": [ "select", "budget_type_code", ",", "count", "(", "*", ")", "from", "documents_with_expenses", "group", "by", "budget_type_code" ], "question": "Show budget type codes and the number of documents in each budget type.", "question_toks": [ "show", "budget", "type", "code", "and", "number", "of", "document", "in", "each", "budget", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Show", "budget", "type", "codes", "and", "the", "number", "of", "documents", "in", "each", "budget", "type", "." ], "question_arg": [ [ "show" ], [ "budget", "type", "code" ], [ "and" ], [ "number" ], [ "of" ], [ "document" ], [ "in" ], [ "each" ], [ "budget" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "budget", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "budget", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(5) A(3) C(0) T(5)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT budget_type_code , count(*) FROM Documents_with_expenses GROUP BY budget_type_code", "query_toks": [ "SELECT", "budget_type_code", ",", "count", "(", "*", ")", "FROM", "Documents_with_expenses", "GROUP", "BY", "budget_type_code" ], "query_toks_no_value": [ "select", "budget_type_code", ",", "count", "(", "*", ")", "from", "documents_with_expenses", "group", "by", "budget_type_code" ], "question": "What are the different budget type codes, and how many documents are there for each?", "question_toks": [ "what", "are", "different", "budget", "type", "code", ",", "and", "how", "many", "document", "are", "there", "for", "each", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "different", "budget", "type", "codes", ",", "and", "how", "many", "documents", "are", "there", "for", "each", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "budget", "type", "code" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "document" ], [ "are" ], [ "there" ], [ "for" ], [ "each" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "budget", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "document", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "for", "IN" ], [ "each", "DT" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(5) A(3) C(0) T(5)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "budget_type_code", "FROM", "Documents_with_expenses", "GROUP", "BY", "budget_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "budget_type_code", "from", "documents_with_expenses", "group", "by", "budget_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the budget type code with most number of documents.", "question_toks": [ "what", "is", "budget", "type", "code", "with", "most", "number", "of", "document", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "is", "the", "budget", "type", "code", "with", "most", "number", "of", "documents", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "budget", "type", "code" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "budget", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(5) Sup(0) A(3) C(0) T(5)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "budget_type_code", "FROM", "Documents_with_expenses", "GROUP", "BY", "budget_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "budget_type_code", "from", "documents_with_expenses", "group", "by", "budget_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Give the budget type code that is most common among documents with expenses.", "question_toks": [ "give", "budget", "type", "code", "that", "is", "most", "common", "among", "document", "with", "expense", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "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": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Give", "the", "budget", "type", "code", "that", "is", "most", "common", "among", "documents", "with", "expenses", "." ], "question_arg": [ [ "give" ], [ "budget", "type", "code" ], [ "that" ], [ "is" ], [ "most" ], [ "common" ], [ "among" ], [ "document", "with", "expense" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "budget", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "among", "IN" ], [ "document", "JJ" ], [ "with", "IN" ], [ "expense", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(5) Sup(0) A(3) C(0) T(5)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses", "query_toks": [ "SELECT", "document_id", "FROM", "Documents", "EXCEPT", "SELECT", "document_id", "FROM", "Documents_with_expenses" ], "query_toks_no_value": [ "select", "document_id", "from", "documents", "except", "select", "document_id", "from", "documents_with_expenses" ], "question": "What are the ids of documents which don't have expense budgets?", "question_toks": [ "what", "are", "id", "of", "document", "which", "do", "n't", "have", "expense", "budget", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "documents", "which", "do", "n't", "have", "expense", "budgets", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "document" ], [ "which" ], [ "do" ], [ "n't" ], [ "have" ], [ "expense" ], [ "budget" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "document", "NN" ], [ "which", "WDT" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "have", "VB" ], [ "expense", "JJ" ], [ "budget", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(8) T(3) Root(5) Sel(0) N(0) A(0) C(8) T(5)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses", "query_toks": [ "SELECT", "document_id", "FROM", "Documents", "EXCEPT", "SELECT", "document_id", "FROM", "Documents_with_expenses" ], "query_toks_no_value": [ "select", "document_id", "from", "documents", "except", "select", "document_id", "from", "documents_with_expenses" ], "question": "Return the ids of documents that do not have expenses.", "question_toks": [ "return", "id", "of", "document", "that", "do", "not", "have", "expense", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Return", "the", "ids", "of", "documents", "that", "do", "not", "have", "expenses", "." ], "question_arg": [ [ "return" ], [ "id" ], [ "of" ], [ "document" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "expense" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "expense", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(8) T(3) Root(5) Sel(0) N(0) A(0) C(8) T(5)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_id FROM Documents WHERE document_type_code = \"CV\" EXCEPT SELECT document_id FROM Documents_with_expenses", "query_toks": [ "SELECT", "document_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "``", "CV", "''", "EXCEPT", "SELECT", "document_id", "FROM", "Documents_with_expenses" ], "query_toks_no_value": [ "select", "document_id", "from", "documents", "where", "document_type_code", "=", "value", "except", "select", "document_id", "from", "documents_with_expenses" ], "question": "Show ids for all documents in type CV without expense budgets.", "question_toks": [ "show", "id", "for", "all", "document", "in", "type", "cv", "without", "expense", "budget", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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 ], "\"CV\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Show", "ids", "for", "all", "documents", "in", "type", "CV", "without", "expense", "budgets", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "for" ], [ "all" ], [ "document" ], [ "in" ], [ "type" ], [ "cv" ], [ "without" ], [ "expense" ], [ "budget" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "document", "NN" ], [ "in", "IN" ], [ "type", "NN" ], [ "cv", "NN" ], [ "without", "IN" ], [ "expense", "JJ" ], [ "budget", "NN" ], [ ".", "." ] ], "values": [ "CV" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(2) A(0) C(1) T(3) V(0) Root(5) Sel(0) N(0) A(0) C(8) T(5)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT document_id FROM Documents WHERE document_type_code = \"CV\" EXCEPT SELECT document_id FROM Documents_with_expenses", "query_toks": [ "SELECT", "document_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "``", "CV", "''", "EXCEPT", "SELECT", "document_id", "FROM", "Documents_with_expenses" ], "query_toks_no_value": [ "select", "document_id", "from", "documents", "where", "document_type_code", "=", "value", "except", "select", "document_id", "from", "documents_with_expenses" ], "question": "What are the ids of documents with the type code CV that do not have expenses.", "question_toks": [ "what", "are", "id", "of", "document", "with", "type", "code", "cv", "that", "do", "not", "have", "expense", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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 ], "\"CV\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "documents", "with", "the", "type", "code", "CV", "that", "do", "not", "have", "expenses", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "document" ], [ "with" ], [ "type" ], [ "code" ], [ "cv" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "expense" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "type", "JJ" ], [ "code", "NN" ], [ "cv", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "expense", "NN" ], [ ".", "." ] ], "values": [ "CV" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(2) A(0) C(1) T(3) V(0) Root(5) Sel(0) N(0) A(0) C(8) T(5)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%s%'", "query_toks": [ "SELECT", "T1.document_id", "FROM", "Documents", "AS", "T1", "JOIN", "Documents_with_expenses", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T1.document_name", "LIKE", "'", "%", "s", "%", "'" ], "query_toks_no_value": [ "select", "t1", ".", "document_id", "from", "documents", "as", "t1", "join", "documents_with_expenses", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t1", ".", "document_name", "like", "value" ], "question": "What are the ids of documents with letter 's' in the name with any expense budgets.", "question_toks": [ "what", "are", "id", "of", "document", "with", "letter", "'s", "'", "in", "name", "with", "any", "expense", "budget", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 9, [ 0, [ 0, 12, false ], null ], "\"%s%\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "documents", "with", "letter", "'s", "'", "in", "the", "name", "with", "any", "expense", "budgets", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "document" ], [ "with" ], [ "letter" ], [ "'s" ], [ "'" ], [ "in" ], [ "name" ], [ "with" ], [ "any" ], [ "expense" ], [ "budget" ], [ "." ] ], "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" ], [ "document", "NN" ], [ "with", "IN" ], [ "letter", "NN" ], [ "'s", "POS" ], [ "'", "''" ], [ "in", "IN" ], [ "name", "NN" ], [ "with", "IN" ], [ "any", "DT" ], [ "expense", "JJ" ], [ "budget", "NN" ], [ ".", "." ] ], "values": [ "s" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(0) Filter(18) A(0) C(8) T(3) Root(5) Sel(0) N(0) A(0) C(8) T(5) Filter(9) A(0) C(10) T(3) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%s%'", "query_toks": [ "SELECT", "T1.document_id", "FROM", "Documents", "AS", "T1", "JOIN", "Documents_with_expenses", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T1.document_name", "LIKE", "'", "%", "s", "%", "'" ], "query_toks_no_value": [ "select", "t1", ".", "document_id", "from", "documents", "as", "t1", "join", "documents_with_expenses", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t1", ".", "document_name", "like", "value" ], "question": "Give the ids of documents that have expenses and contain the letter s in their names.", "question_toks": [ "give", "id", "of", "document", "that", "have", "expense", "and", "contain", "letter", "s", "in", "their", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 9, [ 0, [ 0, 12, false ], null ], "\"%s%\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Give", "the", "ids", "of", "documents", "that", "have", "expenses", "and", "contain", "the", "letter", "s", "in", "their", "names", "." ], "question_arg": [ [ "give" ], [ "id" ], [ "of" ], [ "document" ], [ "that" ], [ "have" ], [ "expense" ], [ "and" ], [ "contain" ], [ "letter" ], [ "s" ], [ "in" ], [ "their" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "id", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "expense", "VBN" ], [ "and", "CC" ], [ "contain", "VBP" ], [ "letter", "NN" ], [ "s", "NN" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "s" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(0) Filter(18) A(0) C(8) T(3) Root(5) Sel(0) N(0) A(0) C(8) T(5) Filter(9) A(0) C(10) T(3) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Documents", "WHERE", "document_id", "NOT", "IN", "(", "SELECT", "document_id", "FROM", "Documents_with_expenses", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "documents", "where", "document_id", "not", "in", "(", "select", "document_id", "from", "documents_with_expenses", ")" ], "question": "How many documents do not have any expense?", "question_toks": [ "how", "many", "document", "do", "not", "have", "any", "expense", "?" ], "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": [ [ true, 8, [ 0, [ 0, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "How", "many", "documents", "do", "not", "have", "any", "expense", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "document" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "expense" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "document", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "expense", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(19) A(0) C(8) T(3) Root(5) Sel(0) N(0) A(0) C(8) T(5)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Documents", "WHERE", "document_id", "NOT", "IN", "(", "SELECT", "document_id", "FROM", "Documents_with_expenses", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "documents", "where", "document_id", "not", "in", "(", "select", "document_id", "from", "documents_with_expenses", ")" ], "question": "Count the number of documents that do not have expenses.", "question_toks": [ "count", "number", "of", "document", "that", "do", "not", "have", "expense", "." ], "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": [ [ true, 8, [ 0, [ 0, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Count", "the", "number", "of", "documents", "that", "do", "not", "have", "expenses", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "document" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "expense" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "expense", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(19) A(0) C(8) T(3) Root(5) Sel(0) N(0) A(0) C(8) T(5)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'GV' INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'SF'", "query_toks": [ "SELECT", "T1.document_date", "FROM", "Documents", "AS", "T1", "JOIN", "Documents_with_Expenses", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T2.budget_type_code", "=", "'GV", "'", "INTERSECT", "SELECT", "T1.document_date", "FROM", "Documents", "AS", "T1", "JOIN", "Documents_with_Expenses", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T2.budget_type_code", "=", "'SF", "'" ], "query_toks_no_value": [ "select", "t1", ".", "document_date", "from", "documents", "as", "t1", "join", "documents_with_expenses", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "budget_type_code", "=", "value", "intersect", "select", "t1", ".", "document_date", "from", "documents", "as", "t1", "join", "documents_with_expenses", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "budget_type_code", "=", "value" ], "question": "What are the dates for the documents with both 'GV' type and 'SF' type expenses?", "question_toks": [ "what", "are", "date", "for", "document", "with", "both", "'", "gv", "'", "type", "and", "'", "sf", "'", "type", "expense", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "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, 18, false ], null ], "\"SF\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"GV\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "dates", "for", "the", "documents", "with", "both", "'GV", "'", "type", "and", "'SF", "'", "type", "expenses", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date" ], [ "for" ], [ "document" ], [ "with" ], [ "both" ], [ "'" ], [ "gv" ], [ "'" ], [ "type" ], [ "and" ], [ "'" ], [ "sf" ], [ "'" ], [ "type" ], [ "expense" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "both", "DT" ], [ "'", "''" ], [ "gv", "NN" ], [ "'", "POS" ], [ "type", "NN" ], [ "and", "CC" ], [ "'", "POS" ], [ "sf", "NN" ], [ "'", "''" ], [ "type", "NN" ], [ "expense", "NN" ], [ "?", "." ] ], "values": [ "SF", "GV" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(9) T(3) Filter(2) A(0) C(4) T(5) V(1) Root(3) Sel(0) N(0) A(0) C(9) T(3) Filter(2) A(0) C(4) T(5) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'GV' INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'SF'", "query_toks": [ "SELECT", "T1.document_date", "FROM", "Documents", "AS", "T1", "JOIN", "Documents_with_Expenses", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T2.budget_type_code", "=", "'GV", "'", "INTERSECT", "SELECT", "T1.document_date", "FROM", "Documents", "AS", "T1", "JOIN", "Documents_with_Expenses", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T2.budget_type_code", "=", "'SF", "'" ], "query_toks_no_value": [ "select", "t1", ".", "document_date", "from", "documents", "as", "t1", "join", "documents_with_expenses", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "budget_type_code", "=", "value", "intersect", "select", "t1", ".", "document_date", "from", "documents", "as", "t1", "join", "documents_with_expenses", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "budget_type_code", "=", "value" ], "question": "Give the dates of creation for documents that have both budget type codes 'GV' and 'SF'.", "question_toks": [ "give", "date", "of", "creation", "for", "document", "that", "have", "both", "budget", "type", "code", "'", "gv", "'", "and", "'", "sf", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "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, 18, false ], null ], "\"SF\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"GV\"", null ] ] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Give", "the", "dates", "of", "creation", "for", "documents", "that", "have", "both", "budget", "type", "codes", "'GV", "'", "and", "'SF", "'", "." ], "question_arg": [ [ "give" ], [ "date" ], [ "of" ], [ "creation" ], [ "for" ], [ "document" ], [ "that" ], [ "have" ], [ "both" ], [ "budget", "type", "code" ], [ "'" ], [ "gv" ], [ "'" ], [ "and" ], [ "'" ], [ "sf" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "creation", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "budget", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "gv", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "'", "POS" ], [ "sf", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "SF", "GV" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(9) T(3) Filter(2) A(0) C(4) T(5) V(1) Root(3) Sel(0) N(0) A(0) C(9) T(3) Filter(2) A(0) C(4) T(5) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT max(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE \"%5%\"", "query_toks": [ "SELECT", "max", "(", "Account_details", ")", "FROM", "Accounts", "UNION", "SELECT", "Account_details", "FROM", "Accounts", "WHERE", "Account_details", "LIKE", "``", "%", "5", "%", "''" ], "query_toks_no_value": [ "select", "max", "(", "account_details", ")", "from", "accounts", "union", "select", "account_details", "from", "accounts", "where", "account_details", "like", "value" ], "question": "What are the account details with the largest value or with value having char '5' in it?", "question_toks": [ "what", "are", "account", "detail", "with", "largest", "value", "or", "with", "value", "having", "char", "'5", "'", "in", "it", "?" ], "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 ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 22, false ], null ], "\"%5%\"", null ] ] }, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "What", "are", "the", "account", "details", "with", "the", "largest", "value", "or", "with", "value", "having", "char", "'5", "'", "in", "it", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "account", "detail" ], [ "with" ], [ "largest" ], [ "value" ], [ "or" ], [ "with" ], [ "value" ], [ "having" ], [ "char" ], [ "'5" ], [ "'" ], [ "in" ], [ "it" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "account", "JJ" ], [ "detail", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "value", "NN" ], [ "or", "CC" ], [ "with", "IN" ], [ "value", "NN" ], [ "having", "VBG" ], [ "char", "JJ" ], [ "'5", "NNP" ], [ "'", "''" ], [ "in", "IN" ], [ "it", "PRP" ], [ "?", "." ] ], "values": [ "5" ], "rule_label": "Root1(1) Root(5) Sel(0) N(0) A(1) C(17) T(6) Root(3) Sel(0) N(0) A(0) C(17) T(6) Filter(9) A(0) C(17) T(6) V(0)" }, { "db_id": "cre_Docs_and_Epenses", "query": "SELECT max(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE \"%5%\"", "query_toks": [ "SELECT", "max", "(", "Account_details", ")", "FROM", "Accounts", "UNION", "SELECT", "Account_details", "FROM", "Accounts", "WHERE", "Account_details", "LIKE", "``", "%", "5", "%", "''" ], "query_toks_no_value": [ "select", "max", "(", "account_details", ")", "from", "accounts", "union", "select", "account_details", "from", "accounts", "where", "account_details", "like", "value" ], "question": "Return the account details with the greatest value, as well as those that include the character 5.", "question_toks": [ "return", "account", "detail", "with", "greatest", "value", ",", "a", "well", "a", "those", "that", "include", "character", "5", "." ], "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 ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 22, false ], null ], "\"%5%\"", null ] ] }, "where": [] }, "names": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document type code", "project id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document id", "budget type code", "document details", "account id", "statement id", "account details" ], "table_names": [ "reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts" ], "col_set": [ "*", "document type code", "document type name", "document type description", "budget type code", "budget type description", "project id", "project details", "document id", "document date", "document name", "document description", "other details", "statement id", "statement details", "document details", "account id", "account details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6 ], "keys": { "10": 6, "6": 6, "9": 1, "1": 1, "15": 15, "8": 8, "17": 17, "18": 4, "4": 4, "21": 15, "20": 20 }, "origin_question_toks": [ "Return", "the", "account", "details", "with", "the", "greatest", "value", ",", "as", "well", "as", "those", "that", "include", "the", "character", "5", "." ], "question_arg": [ [ "return" ], [ "account", "detail" ], [ "with" ], [ "greatest" ], [ "value" ], [ "," ], [ "a" ], [ "well" ], [ "a" ], [ "those" ], [ "that" ], [ "include" ], [ "character" ], [ "5" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "account", "NN" ], [ "detail", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "value", "NN" ], [ ",", "," ], [ "a", "DT" ], [ "well", "RB" ], [ "a", "DT" ], [ "those", "DT" ], [ "that", "WDT" ], [ "include", "VBP" ], [ "character", "JJR" ], [ "5", "CD" ], [ ".", "." ] ], "values": [ "5" ], "rule_label": "Root1(1) Root(5) Sel(0) N(0) A(1) C(17) T(6) Root(3) Sel(0) N(0) A(0) C(17) T(6) Filter(9) A(0) C(17) T(6) V(0)" }, { "db_id": "scientist_1", "query": "SELECT count(*) FROM scientists", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "scientists" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "scientists" ], "question": "Find the total number of scientists.", "question_toks": [ "find", "total", "number", "of", "scientist", "." ], "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": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "total", "number", "of", "scientists", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "number" ], [ "of" ], [ "scientist" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "scientist", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "scientist_1", "query": "SELECT count(*) FROM scientists", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "scientists" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "scientists" ], "question": "How many scientists are there?", "question_toks": [ "how", "many", "scientist", "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": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "How", "many", "scientists", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "scientist" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "scientist", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "scientist_1", "query": "SELECT sum(hours) FROM projects", "query_toks": [ "SELECT", "sum", "(", "hours", ")", "FROM", "projects" ], "query_toks_no_value": [ "select", "sum", "(", "hours", ")", "from", "projects" ], "question": "Find the total hours of all projects.", "question_toks": [ "find", "total", "hour", "of", "all", "project", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "total", "hours", "of", "all", "projects", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "hour" ], [ "of" ], [ "all" ], [ "project" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "hour", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "project", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(4) T(1)" }, { "db_id": "scientist_1", "query": "SELECT sum(hours) FROM projects", "query_toks": [ "SELECT", "sum", "(", "hours", ")", "FROM", "projects" ], "query_toks_no_value": [ "select", "sum", "(", "hours", ")", "from", "projects" ], "question": "What is the total number of hours for all projects?", "question_toks": [ "what", "is", "total", "number", "of", "hour", "for", "all", "project", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "hours", "for", "all", "projects", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "hour" ], [ "for" ], [ "all" ], [ "project" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "hour", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "project", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(4) T(1)" }, { "db_id": "scientist_1", "query": "SELECT count(DISTINCT scientist) FROM assignedto", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "scientist", ")", "FROM", "assignedto" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "scientist", ")", "from", "assignedto" ], "question": "How many different scientists are assigned to any project?", "question_toks": [ "how", "many", "different", "scientist", "are", "assigned", "to", "any", "project", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 6, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "How", "many", "different", "scientists", "are", "assigned", "to", "any", "project", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "scientist" ], [ "are" ], [ "assigned", "to" ], [ "any" ], [ "project" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "scientist", "NN" ], [ "are", "VBP" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "any", "DT" ], [ "project", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(5) T(2)" }, { "db_id": "scientist_1", "query": "SELECT count(DISTINCT scientist) FROM assignedto", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "scientist", ")", "FROM", "assignedto" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "scientist", ")", "from", "assignedto" ], "question": "Count the number of different scientists assigned to any project.", "question_toks": [ "count", "number", "of", "different", "scientist", "assigned", "to", "any", "project", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 6, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "scientists", "assigned", "to", "any", "project", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "scientist" ], [ "assigned", "to" ], [ "any" ], [ "project" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "scientist", "NN" ], [ "assigned", "VBD" ], [ "to", "TO" ], [ "any", "DT" ], [ "project", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(5) T(2)" }, { "db_id": "scientist_1", "query": "SELECT count(DISTINCT name) FROM projects", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "name", ")", "FROM", "projects" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "name", ")", "from", "projects" ], "question": "Find the number of distinct projects.", "question_toks": [ "find", "number", "of", "distinct", "project", "." ], "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": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "distinct", "projects", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "distinct" ], [ "project" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "project", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(2) T(1)" }, { "db_id": "scientist_1", "query": "SELECT count(DISTINCT name) FROM projects", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "name", ")", "FROM", "projects" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "name", ")", "from", "projects" ], "question": "How many different projects are there?", "question_toks": [ "how", "many", "different", "project", "are", "there", "?" ], "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": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "How", "many", "different", "projects", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "project" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "project", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(2) T(1)" }, { "db_id": "scientist_1", "query": "SELECT avg(hours) FROM projects", "query_toks": [ "SELECT", "avg", "(", "hours", ")", "FROM", "projects" ], "query_toks_no_value": [ "select", "avg", "(", "hours", ")", "from", "projects" ], "question": "Find the average hours of all projects.", "question_toks": [ "find", "average", "hour", "of", "all", "project", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "average", "hours", "of", "all", "projects", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "hour" ], [ "of" ], [ "all" ], [ "project" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "hour", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "project", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(4) T(1)" }, { "db_id": "scientist_1", "query": "SELECT avg(hours) FROM projects", "query_toks": [ "SELECT", "avg", "(", "hours", ")", "FROM", "projects" ], "query_toks_no_value": [ "select", "avg", "(", "hours", ")", "from", "projects" ], "question": "What is the average hours across all projects?", "question_toks": [ "what", "is", "average", "hour", "across", "all", "project", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "hours", "across", "all", "projects", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "hour" ], [ "across" ], [ "all" ], [ "project" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "hour", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "project", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(4) T(1)" }, { "db_id": "scientist_1", "query": "SELECT name FROM projects ORDER BY hours DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "projects", "ORDER", "BY", "hours", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "projects", "order", "by", "hours", "desc", "limit", "value" ], "question": "Find the name of project that continues for the longest time.", "question_toks": [ "find", "name", "of", "project", "that", "continues", "for", "longest", "time", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "project", "that", "continues", "for", "the", "longest", "time", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "project" ], [ "that" ], [ "continues" ], [ "for" ], [ "longest" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "that", "WDT" ], [ "continues", "VBZ" ], [ "for", "IN" ], [ "longest", "JJ" ], [ "time", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(1) Sup(0) A(0) C(4) T(1)" }, { "db_id": "scientist_1", "query": "SELECT name FROM projects ORDER BY hours DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "projects", "ORDER", "BY", "hours", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "projects", "order", "by", "hours", "desc", "limit", "value" ], "question": "What is the name of the project with the most hours?", "question_toks": [ "what", "is", "name", "of", "project", "with", "most", "hour", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "project", "with", "the", "most", "hours", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "project" ], [ "with" ], [ "most" ], [ "hour" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "hour", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(1) Sup(0) A(0) C(4) T(1)" }, { "db_id": "scientist_1", "query": "SELECT name FROM projects WHERE hours > (SELECT avg(hours) FROM projects)", "query_toks": [ "SELECT", "name", "FROM", "projects", "WHERE", "hours", ">", "(", "SELECT", "avg", "(", "hours", ")", "FROM", "projects", ")" ], "query_toks_no_value": [ "select", "name", "from", "projects", "where", "hours", ">", "(", "select", "avg", "(", "hours", ")", "from", "projects", ")" ], "question": "List the name of all projects that are operated longer than the average working hours of all projects.", "question_toks": [ "list", "name", "of", "all", "project", "that", "are", "operated", "longer", "than", "average", "working", "hour", "of", "all", "project", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "the", "name", "of", "all", "projects", "that", "are", "operated", "longer", "than", "the", "average", "working", "hours", "of", "all", "projects", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "project" ], [ "that" ], [ "are" ], [ "operated" ], [ "longer" ], [ "than" ], [ "average" ], [ "working" ], [ "hour" ], [ "of" ], [ "all" ], [ "project" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "project", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "operated", "VBN" ], [ "longer", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "working", "JJ" ], [ "hour", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "project", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(13) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(5) C(4) T(1)" }, { "db_id": "scientist_1", "query": "SELECT name FROM projects WHERE hours > (SELECT avg(hours) FROM projects)", "query_toks": [ "SELECT", "name", "FROM", "projects", "WHERE", "hours", ">", "(", "SELECT", "avg", "(", "hours", ")", "FROM", "projects", ")" ], "query_toks_no_value": [ "select", "name", "from", "projects", "where", "hours", ">", "(", "select", "avg", "(", "hours", ")", "from", "projects", ")" ], "question": "What are the names of projects that have taken longer than the average number of hours for all projects?", "question_toks": [ "what", "are", "name", "of", "project", "that", "have", "taken", "longer", "than", "average", "number", "of", "hour", "for", "all", "project", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "projects", "that", "have", "taken", "longer", "than", "the", "average", "number", "of", "hours", "for", "all", "projects", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "project" ], [ "that" ], [ "have" ], [ "taken" ], [ "longer" ], [ "than" ], [ "average" ], [ "number" ], [ "of" ], [ "hour" ], [ "for" ], [ "all" ], [ "project" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "taken", "VBN" ], [ "longer", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "hour", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "project", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(13) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(5) C(4) T(1)" }, { "db_id": "scientist_1", "query": "SELECT T1.name , T1.hours FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T2.project ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", ",", "T1.hours", "FROM", "projects", "AS", "T1", "JOIN", "assignedto", "AS", "T2", "ON", "T1.code", "=", "T2.project", "GROUP", "BY", "T2.project", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "hours", "from", "projects", "as", "t1", "join", "assignedto", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "project", "group", "by", "t2", ".", "project", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name and hours of project that has the most number of scientists.", "question_toks": [ "find", "name", "and", "hour", "of", "project", "that", "ha", "most", "number", "of", "scientist", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "hours", "of", "project", "that", "has", "the", "most", "number", "of", "scientists", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "hour" ], [ "of" ], [ "project" ], [ "that" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "scientist" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "hour", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "scientist", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(2) T(1) A(0) C(4) T(1) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "scientist_1", "query": "SELECT T1.name , T1.hours FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T2.project ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", ",", "T1.hours", "FROM", "projects", "AS", "T1", "JOIN", "assignedto", "AS", "T2", "ON", "T1.code", "=", "T2.project", "GROUP", "BY", "T2.project", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "hours", "from", "projects", "as", "t1", "join", "assignedto", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "project", "group", "by", "t2", ".", "project", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name and hours for the project which has the most scientists assigned to it?", "question_toks": [ "what", "is", "name", "and", "hour", "for", "project", "which", "ha", "most", "scientist", "assigned", "to", "it", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "hours", "for", "the", "project", "which", "has", "the", "most", "scientists", "assigned", "to", "it", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "hour" ], [ "for" ], [ "project" ], [ "which" ], [ "ha" ], [ "most" ], [ "scientist" ], [ "assigned", "to" ], [ "it" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "hour", "NN" ], [ "for", "IN" ], [ "project", "NN" ], [ "which", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "scientist", "JJ" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "it", "PRP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(2) T(1) A(0) C(4) T(1) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "scientist_1", "query": "SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name LIKE '%Smith%'", "query_toks": [ "SELECT", "T2.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T3.name", "LIKE", "'", "%", "Smith", "%", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t3", ".", "name", "like", "value" ], "question": "Find the name of the project for which a scientist whose name contains \u2018Smith\u2019 is assigned to.", "question_toks": [ "find", "name", "of", "project", "for", "which", "a", "scientist", "whose", "name", "contains", "\u2018smith\u2019", "is", "assigned", "to", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 9, [ 0, [ 0, 2, false ], null ], "\"%Smith%\"", null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "project", "for", "which", "a", "scientist", "whose", "name", "contains", "\u2018Smith\u2019", "is", "assigned", "to", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "project" ], [ "for" ], [ "which" ], [ "a" ], [ "scientist" ], [ "whose" ], [ "name" ], [ "contains" ], [ "\u2018smith\u2019" ], [ "is" ], [ "assigned", "to" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "for", "IN" ], [ "which", "WDT" ], [ "a", "DT" ], [ "scientist", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "\u2018smith\u2019", "NNP" ], [ "is", "VBZ" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ ".", "." ] ], "values": [ "Smith" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(9) A(0) C(2) T(0) V(0)" }, { "db_id": "scientist_1", "query": "SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name LIKE '%Smith%'", "query_toks": [ "SELECT", "T2.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T3.name", "LIKE", "'", "%", "Smith", "%", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t3", ".", "name", "like", "value" ], "question": "What is the name of the project that has a scientist assigned to it whose name contains 'Smith'?", "question_toks": [ "what", "is", "name", "of", "project", "that", "ha", "a", "scientist", "assigned", "to", "it", "whose", "name", "contains", "'", "smith", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 9, [ 0, [ 0, 2, false ], null ], "\"%Smith%\"", null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "project", "that", "has", "a", "scientist", "assigned", "to", "it", "whose", "name", "contains", "'Smith", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "project" ], [ "that" ], [ "ha" ], [ "a" ], [ "scientist" ], [ "assigned", "to" ], [ "it" ], [ "whose" ], [ "name" ], [ "contains" ], [ "'" ], [ "smith" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "a", "DT" ], [ "scientist", "NN" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "it", "PRP" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "'", "POS" ], [ "smith", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Smith" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(9) A(0) C(2) T(0) V(0)" }, { "db_id": "scientist_1", "query": "SELECT sum(T2.hours) FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name = 'Michael Rogers' OR T3.name = 'Carol Smith'", "query_toks": [ "SELECT", "sum", "(", "T2.hours", ")", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T3.name", "=", "'Michael", "Rogers", "'", "OR", "T3.name", "=", "'Carol", "Smith", "'" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "hours", ")", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t3", ".", "name", "=", "value", "or", "t3", ".", "name", "=", "value" ], "question": "Find the total hours of the projects that scientists named Michael Rogers or Carol Smith are assigned to.", "question_toks": [ "find", "total", "hour", "of", "project", "that", "scientist", "named", "michael", "rogers", "or", "carol", "smith", "are", "assigned", "to", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Michael Rogers\"", null ], "or", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Carol Smith\"", null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "total", "hours", "of", "the", "projects", "that", "scientists", "named", "Michael", "Rogers", "or", "Carol", "Smith", "are", "assigned", "to", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "hour" ], [ "of" ], [ "project" ], [ "that" ], [ "scientist" ], [ "named" ], [ "michael" ], [ "rogers" ], [ "or" ], [ "carol" ], [ "smith" ], [ "are" ], [ "assigned", "to" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "hour", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "that", "IN" ], [ "scientist", "NN" ], [ "named", "VBD" ], [ "michael", "JJ" ], [ "rogers", "NNS" ], [ "or", "CC" ], [ "carol", "NN" ], [ "smith", "NNS" ], [ "are", "VBP" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ ".", "." ] ], "values": [ "Carol Smith", "Michael Rogers" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(4) T(1) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(1) Filter(2) A(0) C(2) T(0) V(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "scientist_1", "query": "SELECT sum(T2.hours) FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name = 'Michael Rogers' OR T3.name = 'Carol Smith'", "query_toks": [ "SELECT", "sum", "(", "T2.hours", ")", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T3.name", "=", "'Michael", "Rogers", "'", "OR", "T3.name", "=", "'Carol", "Smith", "'" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "hours", ")", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t3", ".", "name", "=", "value", "or", "t3", ".", "name", "=", "value" ], "question": "What is the sum of hours for projects that scientists with the name Michael Rogers or Carol Smith are assigned to?", "question_toks": [ "what", "is", "sum", "of", "hour", "for", "project", "that", "scientist", "with", "name", "michael", "rogers", "or", "carol", "smith", "are", "assigned", "to", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Michael Rogers\"", null ], "or", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Carol Smith\"", null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "sum", "of", "hours", "for", "projects", "that", "scientists", "with", "the", "name", "Michael", "Rogers", "or", "Carol", "Smith", "are", "assigned", "to", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "sum" ], [ "of" ], [ "hour" ], [ "for" ], [ "project" ], [ "that" ], [ "scientist" ], [ "with" ], [ "name" ], [ "michael" ], [ "rogers" ], [ "or" ], [ "carol" ], [ "smith" ], [ "are" ], [ "assigned", "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "sum", "NN" ], [ "of", "IN" ], [ "hour", "NN" ], [ "for", "IN" ], [ "project", "NN" ], [ "that", "IN" ], [ "scientist", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "michael", "NN" ], [ "rogers", "NNS" ], [ "or", "CC" ], [ "carol", "NN" ], [ "smith", "NNS" ], [ "are", "VBP" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "?", "." ] ], "values": [ "Michael Rogers", "Carol Smith" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(4) T(1) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(1) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "scientist_1", "query": "SELECT name FROM projects WHERE hours BETWEEN 100 AND 300", "query_toks": [ "SELECT", "name", "FROM", "projects", "WHERE", "hours", "BETWEEN", "100", "AND", "300" ], "query_toks_no_value": [ "select", "name", "from", "projects", "where", "hours", "between", "value", "and", "value" ], "question": "Find the name of projects that require between 100 and 300 hours of work.", "question_toks": [ "find", "name", "of", "project", "that", "require", "between", "100", "and", "300", "hour", "of", "work", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 5, false ], null ], 100.0, 300.0 ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "projects", "that", "require", "between", "100", "and", "300", "hours", "of", "work", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "project" ], [ "that" ], [ "require" ], [ "between" ], [ "100" ], [ "and" ], [ "300" ], [ "hour" ], [ "of" ], [ "work" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "that", "WDT" ], [ "require", "VBP" ], [ "between", "IN" ], [ "100", "CD" ], [ "and", "CC" ], [ "300", "CD" ], [ "hour", "NN" ], [ "of", "IN" ], [ "work", "NN" ], [ ".", "." ] ], "values": [ "300", "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(8) A(0) C(4) T(1) V(1) V(0)" }, { "db_id": "scientist_1", "query": "SELECT name FROM projects WHERE hours BETWEEN 100 AND 300", "query_toks": [ "SELECT", "name", "FROM", "projects", "WHERE", "hours", "BETWEEN", "100", "AND", "300" ], "query_toks_no_value": [ "select", "name", "from", "projects", "where", "hours", "between", "value", "and", "value" ], "question": "What are the names of projects that require between 100 and 300 hours?", "question_toks": [ "what", "are", "name", "of", "project", "that", "require", "between", "100", "and", "300", "hour", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 5, false ], null ], 100.0, 300.0 ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "projects", "that", "require", "between", "100", "and", "300", "hours", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "project" ], [ "that" ], [ "require" ], [ "between" ], [ "100" ], [ "and" ], [ "300" ], [ "hour" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "that", "WDT" ], [ "require", "VBP" ], [ "between", "IN" ], [ "100", "CD" ], [ "and", "CC" ], [ "300", "CD" ], [ "hour", "NN" ], [ "?", "." ] ], "values": [ "300", "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(8) A(0) C(4) T(1) V(1) V(0)" }, { "db_id": "scientist_1", "query": "SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.name = 'Matter of Time' INTERSECT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.name = 'A Puzzling Parallax'", "query_toks": [ "SELECT", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.name", "=", "'Matter", "of", "Time", "'", "INTERSECT", "SELECT", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.name", "=", "'A", "Puzzling", "Parallax", "'" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "name", "=", "value", "intersect", "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "name", "=", "value" ], "question": "Find the name of the scientist who worked on both a project named 'Matter of Time' and a project named 'A Puzzling Parallax'.", "question_toks": [ "find", "name", "of", "scientist", "who", "worked", "on", "both", "a", "project", "named", "'", "matter", "of", "time", "'", "and", "a", "project", "named", "'a", "puzzling", "parallax", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"A Puzzling Parallax\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Matter of Time\"", null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "scientist", "who", "worked", "on", "both", "a", "project", "named", "'Matter", "of", "Time", "'", "and", "a", "project", "named", "'A", "Puzzling", "Parallax", "'", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "scientist" ], [ "who" ], [ "worked" ], [ "on" ], [ "both" ], [ "a" ], [ "project" ], [ "named" ], [ "'" ], [ "matter" ], [ "of" ], [ "time" ], [ "'" ], [ "and" ], [ "a" ], [ "project" ], [ "named" ], [ "'a" ], [ "puzzling" ], [ "parallax" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "scientist", "NN" ], [ "who", "WP" ], [ "worked", "VBD" ], [ "on", "IN" ], [ "both", "DT" ], [ "a", "DT" ], [ "project", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "matter", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "'", "''" ], [ "and", "CC" ], [ "a", "DT" ], [ "project", "NN" ], [ "named", "VBN" ], [ "'a", "CD" ], [ "puzzling", "VBG" ], [ "parallax", "NN" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "Matter of Time", "A Puzzling Parallax" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(2) A(0) C(2) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(2) A(0) C(2) T(1) V(1)" }, { "db_id": "scientist_1", "query": "SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.name = 'Matter of Time' INTERSECT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.name = 'A Puzzling Parallax'", "query_toks": [ "SELECT", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.name", "=", "'Matter", "of", "Time", "'", "INTERSECT", "SELECT", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.name", "=", "'A", "Puzzling", "Parallax", "'" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "name", "=", "value", "intersect", "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "name", "=", "value" ], "question": "What are the names of any scientists who worked on projects named 'Matter of Time' and 'A Puzzling Pattern'?", "question_toks": [ "what", "are", "name", "of", "any", "scientist", "who", "worked", "on", "project", "named", "'", "matter", "of", "time", "'", "and", "'a", "puzzling", "pattern", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"A Puzzling Parallax\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Matter of Time\"", null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "any", "scientists", "who", "worked", "on", "projects", "named", "'Matter", "of", "Time", "'", "and", "'A", "Puzzling", "Pattern", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "any" ], [ "scientist" ], [ "who" ], [ "worked" ], [ "on" ], [ "project" ], [ "named" ], [ "'" ], [ "matter" ], [ "of" ], [ "time" ], [ "'" ], [ "and" ], [ "'a" ], [ "puzzling" ], [ "pattern" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "any", "DT" ], [ "scientist", "NN" ], [ "who", "WP" ], [ "worked", "VBD" ], [ "on", "IN" ], [ "project", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "matter", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "'a", "CD" ], [ "puzzling", "VBG" ], [ "pattern", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "A Puzzling Pattern", "Matter of Time", "A Puzzling Parallax" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(2) A(0) C(2) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(2) A(0) C(2) T(1) V(2)" }, { "db_id": "scientist_1", "query": "SELECT name FROM scientists ORDER BY name", "query_toks": [ "SELECT", "name", "FROM", "scientists", "ORDER", "BY", "name" ], "query_toks_no_value": [ "select", "name", "from", "scientists", "order", "by", "name" ], "question": "List the names of all scientists sorted in alphabetical order.", "question_toks": [ "list", "name", "of", "all", "scientist", "sorted", "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": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "scientists", "sorted", "in", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "scientist" ], [ "sorted" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "scientist", "NN" ], [ "sorted", "VBN" ], [ "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": "scientist_1", "query": "SELECT name FROM scientists ORDER BY name", "query_toks": [ "SELECT", "name", "FROM", "scientists", "ORDER", "BY", "name" ], "query_toks_no_value": [ "select", "name", "from", "scientists", "order", "by", "name" ], "question": "What are the names of all the scientists in alphabetical order?", "question_toks": [ "what", "are", "name", "of", "all", "scientist", "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": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "scientists", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "scientist" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "scientist", "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": "scientist_1", "query": "SELECT count(*) , T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T1.name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "projects", "AS", "T1", "JOIN", "assignedto", "AS", "T2", "ON", "T1.code", "=", "T2.project", "GROUP", "BY", "T1.name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "projects", "as", "t1", "join", "assignedto", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "project", "group", "by", "t1", ".", "name" ], "question": "Find the number of scientists involved for each project name.", "question_toks": [ "find", "number", "of", "scientist", "involved", "for", "each", "project", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "scientists", "involved", "for", "each", "project", "name", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "scientist" ], [ "involved" ], [ "for" ], [ "each" ], [ "project" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "scientist", "NN" ], [ "involved", "VBN" ], [ "for", "IN" ], [ "each", "DT" ], [ "project", "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(1)" }, { "db_id": "scientist_1", "query": "SELECT count(*) , T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T1.name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "projects", "AS", "T1", "JOIN", "assignedto", "AS", "T2", "ON", "T1.code", "=", "T2.project", "GROUP", "BY", "T1.name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "projects", "as", "t1", "join", "assignedto", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "project", "group", "by", "t1", ".", "name" ], "question": "What are the naems of all the projects, and how many scientists were assigned to each of them?", "question_toks": [ "what", "are", "naems", "of", "all", "project", ",", "and", "how", "many", "scientist", "were", "assigned", "to", "each", "of", "them", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "naems", "of", "all", "the", "projects", ",", "and", "how", "many", "scientists", "were", "assigned", "to", "each", "of", "them", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "naems" ], [ "of" ], [ "all" ], [ "project" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "scientist" ], [ "were" ], [ "assigned", "to" ], [ "each" ], [ "of" ], [ "them" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "naems", "NNS" ], [ "of", "IN" ], [ "all", "DT" ], [ "project", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "scientist", "NN" ], [ "were", "VBD" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "each", "DT" ], [ "of", "IN" ], [ "them", "PRP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(2) A(0) C(2) T(1)" }, { "db_id": "scientist_1", "query": "SELECT count(*) , T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours > 300 GROUP BY T1.name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "projects", "AS", "T1", "JOIN", "assignedto", "AS", "T2", "ON", "T1.code", "=", "T2.project", "WHERE", "T1.hours", ">", "300", "GROUP", "BY", "T1.name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "projects", "as", "t1", "join", "assignedto", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "project", "where", "t1", ".", "hours", ">", "value", "group", "by", "t1", ".", "name" ], "question": "Find the number of scientists involved for the projects that require more than 300 hours.", "question_toks": [ "find", "number", "of", "scientist", "involved", "for", "project", "that", "require", "more", "than", "300", "hour", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 300.0, null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "scientists", "involved", "for", "the", "projects", "that", "require", "more", "than", "300", "hours", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "scientist" ], [ "involved" ], [ "for" ], [ "project" ], [ "that" ], [ "require" ], [ "more" ], [ "than" ], [ "300" ], [ "hour" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "scientist", "NN" ], [ "involved", "VBN" ], [ "for", "IN" ], [ "project", "NN" ], [ "that", "WDT" ], [ "require", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "300", "CD" ], [ "hour", "NN" ], [ ".", "." ] ], "values": [ "300" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(2) A(0) C(2) T(1) Filter(5) A(0) C(4) T(1) V(0)" }, { "db_id": "scientist_1", "query": "SELECT count(*) , T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours > 300 GROUP BY T1.name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "projects", "AS", "T1", "JOIN", "assignedto", "AS", "T2", "ON", "T1.code", "=", "T2.project", "WHERE", "T1.hours", ">", "300", "GROUP", "BY", "T1.name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "projects", "as", "t1", "join", "assignedto", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "project", "where", "t1", ".", "hours", ">", "value", "group", "by", "t1", ".", "name" ], "question": "What are the names of projects that require more than 300 hours, and how many scientists are assigned to each?", "question_toks": [ "what", "are", "name", "of", "project", "that", "require", "more", "than", "300", "hour", ",", "and", "how", "many", "scientist", "are", "assigned", "to", "each", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 300.0, null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "projects", "that", "require", "more", "than", "300", "hours", ",", "and", "how", "many", "scientists", "are", "assigned", "to", "each", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "project" ], [ "that" ], [ "require" ], [ "more" ], [ "than" ], [ "300" ], [ "hour" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "scientist" ], [ "are" ], [ "assigned", "to" ], [ "each" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "that", "WDT" ], [ "require", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "300", "CD" ], [ "hour", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "scientist", "NN" ], [ "are", "VBP" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "each", "DT" ], [ "?", "." ] ], "values": [ "300" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(2) A(0) C(2) T(1) Filter(5) A(0) C(4) T(1) V(0)" }, { "db_id": "scientist_1", "query": "SELECT count(*) , T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn = T2.scientist GROUP BY T1.name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "scientists", "AS", "T1", "JOIN", "assignedto", "AS", "T2", "ON", "T1.ssn", "=", "T2.scientist", "GROUP", "BY", "T1.name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "scientists", "as", "t1", "join", "assignedto", "as", "t2", "on", "t1", ".", "ssn", "=", "t2", ".", "scientist", "group", "by", "t1", ".", "name" ], "question": "Find the number of projects which each scientist is working on and scientist's name.", "question_toks": [ "find", "number", "of", "project", "which", "each", "scientist", "is", "working", "on", "and", "scientist", "'s", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 6, 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": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "projects", "which", "each", "scientist", "is", "working", "on", "and", "scientist", "'s", "name", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "project" ], [ "which" ], [ "each" ], [ "scientist" ], [ "is" ], [ "working" ], [ "on" ], [ "and" ], [ "scientist" ], [ "'s" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "which", "WDT" ], [ "each", "DT" ], [ "scientist", "NN" ], [ "is", "VBZ" ], [ "working", "VBG" ], [ "on", "IN" ], [ "and", "CC" ], [ "scientist", "NN" ], [ "'s", "POS" ], [ "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": "scientist_1", "query": "SELECT count(*) , T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn = T2.scientist GROUP BY T1.name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "scientists", "AS", "T1", "JOIN", "assignedto", "AS", "T2", "ON", "T1.ssn", "=", "T2.scientist", "GROUP", "BY", "T1.name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "scientists", "as", "t1", "join", "assignedto", "as", "t2", "on", "t1", ".", "ssn", "=", "t2", ".", "scientist", "group", "by", "t1", ".", "name" ], "question": "What are the names of the scientists, and how many projects are each of them working on?", "question_toks": [ "what", "are", "name", "of", "scientist", ",", "and", "how", "many", "project", "are", "each", "of", "them", "working", "on", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 6, 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": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "scientists", ",", "and", "how", "many", "projects", "are", "each", "of", "them", "working", "on", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "scientist" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "project" ], [ "are" ], [ "each" ], [ "of" ], [ "them" ], [ "working" ], [ "on" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "scientist", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "project", "NN" ], [ "are", "VBP" ], [ "each", "DT" ], [ "of", "IN" ], [ "them", "PRP" ], [ "working", "VBG" ], [ "on", "IN" ], [ "?", "." ] ], "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": "scientist_1", "query": "SELECT T3.ssn , T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT max(hours) FROM projects)", "query_toks": [ "SELECT", "T3.ssn", ",", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")" ], "query_toks_no_value": [ "select", "t3", ".", "ssn", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")" ], "question": "Find the SSN and name of scientists who are assigned to the project with the longest hours.", "question_toks": [ "find", "ssn", "and", "name", "of", "scientist", "who", "are", "assigned", "to", "project", "with", "longest", "hour", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "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, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "SSN", "and", "name", "of", "scientists", "who", "are", "assigned", "to", "the", "project", "with", "the", "longest", "hours", "." ], "question_arg": [ [ "find" ], [ "ssn" ], [ "and" ], [ "name" ], [ "of" ], [ "scientist" ], [ "who" ], [ "are" ], [ "assigned", "to" ], [ "project" ], [ "with" ], [ "longest" ], [ "hour" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "ssn", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "scientist", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "project", "VB" ], [ "with", "IN" ], [ "longest", "JJS" ], [ "hour", "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(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(11) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(1) C(4) T(1)" }, { "db_id": "scientist_1", "query": "SELECT T3.ssn , T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT max(hours) FROM projects)", "query_toks": [ "SELECT", "T3.ssn", ",", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")" ], "query_toks_no_value": [ "select", "t3", ".", "ssn", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")" ], "question": "What are the SSN and names of scientists working on the project with the most hours?", "question_toks": [ "what", "are", "ssn", "and", "name", "of", "scientist", "working", "on", "project", "with", "most", "hour", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "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, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "SSN", "and", "names", "of", "scientists", "working", "on", "the", "project", "with", "the", "most", "hours", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "ssn" ], [ "and" ], [ "name" ], [ "of" ], [ "scientist" ], [ "working" ], [ "on" ], [ "project" ], [ "with" ], [ "most" ], [ "hour" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "ssn", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "scientist", "NN" ], [ "working", "VBG" ], [ "on", "IN" ], [ "project", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "hour", "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(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(11) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(1) C(4) T(1)" }, { "db_id": "scientist_1", "query": "SELECT T2.name FROM assignedto AS T1 JOIN scientists AS T2 ON T1.scientist = T2.ssn", "query_toks": [ "SELECT", "T2.name", "FROM", "assignedto", "AS", "T1", "JOIN", "scientists", "AS", "T2", "ON", "T1.scientist", "=", "T2.ssn" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "assignedto", "as", "t1", "join", "scientists", "as", "t2", "on", "t1", ".", "scientist", "=", "t2", ".", "ssn" ], "question": "Find the name of scientists who are assigned to some project.", "question_toks": [ "find", "name", "of", "scientist", "who", "are", "assigned", "to", "some", "project", "." ], "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, 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": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "scientists", "who", "are", "assigned", "to", "some", "project", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "scientist" ], [ "who" ], [ "are" ], [ "assigned", "to" ], [ "some" ], [ "project" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "scientist", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "some", "DT" ], [ "project", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) 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(5) T(2)" }, { "db_id": "scientist_1", "query": "SELECT T2.name FROM assignedto AS T1 JOIN scientists AS T2 ON T1.scientist = T2.ssn", "query_toks": [ "SELECT", "T2.name", "FROM", "assignedto", "AS", "T1", "JOIN", "scientists", "AS", "T2", "ON", "T1.scientist", "=", "T2.ssn" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "assignedto", "as", "t1", "join", "scientists", "as", "t2", "on", "t1", ".", "scientist", "=", "t2", ".", "ssn" ], "question": "What are the names of scientists who are assigned to any project?", "question_toks": [ "what", "are", "name", "of", "scientist", "who", "are", "assigned", "to", "any", "project", "?" ], "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, 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": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "scientists", "who", "are", "assigned", "to", "any", "project", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "scientist" ], [ "who" ], [ "are" ], [ "assigned", "to" ], [ "any" ], [ "project" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "scientist", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "any", "DT" ], [ "project", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) 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(5) T(2)" }, { "db_id": "scientist_1", "query": "SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo)", "query_toks": [ "SELECT", "Name", "FROM", "Projects", "WHERE", "Code", "NOT", "IN", "(", "SELECT", "Project", "FROM", "AssignedTo", ")" ], "query_toks_no_value": [ "select", "name", "from", "projects", "where", "code", "not", "in", "(", "select", "project", "from", "assignedto", ")" ], "question": "Select the project names which are not assigned yet.", "question_toks": [ "select", "project", "name", "which", "are", "not", "assigned", "yet", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 3, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Select", "the", "project", "names", "which", "are", "not", "assigned", "yet", "." ], "question_arg": [ [ "select" ], [ "project" ], [ "name" ], [ "which" ], [ "are" ], [ "not" ], [ "assigned" ], [ "yet" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "select", "NN" ], [ "project", "NN" ], [ "name", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "assigned", "VBN" ], [ "yet", "RB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(19) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "scientist_1", "query": "SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo)", "query_toks": [ "SELECT", "Name", "FROM", "Projects", "WHERE", "Code", "NOT", "IN", "(", "SELECT", "Project", "FROM", "AssignedTo", ")" ], "query_toks_no_value": [ "select", "name", "from", "projects", "where", "code", "not", "in", "(", "select", "project", "from", "assignedto", ")" ], "question": "What are the names of projects that have not been assigned?", "question_toks": [ "what", "are", "name", "of", "project", "that", "have", "not", "been", "assigned", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 3, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "projects", "that", "have", "not", "been", "assigned", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "project" ], [ "that" ], [ "have" ], [ "not" ], [ "been" ], [ "assigned" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "not", "RB" ], [ "been", "VBN" ], [ "assigned", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(19) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "scientist_1", "query": "SELECT Name FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)", "query_toks": [ "SELECT", "Name", "FROM", "scientists", "WHERE", "ssn", "NOT", "IN", "(", "SELECT", "scientist", "FROM", "AssignedTo", ")" ], "query_toks_no_value": [ "select", "name", "from", "scientists", "where", "ssn", "not", "in", "(", "select", "scientist", "from", "assignedto", ")" ], "question": "Find the name of scientists who are not assigned to any project.", "question_toks": [ "find", "name", "of", "scientist", "who", "are", "not", "assigned", "to", "any", "project", "." ], "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, 6, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "scientists", "who", "are", "not", "assigned", "to", "any", "project", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "scientist" ], [ "who" ], [ "are" ], [ "not" ], [ "assigned", "to" ], [ "any" ], [ "project" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "scientist", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "any", "DT" ], [ "project", "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(5) T(2)" }, { "db_id": "scientist_1", "query": "SELECT Name FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)", "query_toks": [ "SELECT", "Name", "FROM", "scientists", "WHERE", "ssn", "NOT", "IN", "(", "SELECT", "scientist", "FROM", "AssignedTo", ")" ], "query_toks_no_value": [ "select", "name", "from", "scientists", "where", "ssn", "not", "in", "(", "select", "scientist", "from", "assignedto", ")" ], "question": "What are the names of scientists who have not been assigned a project?", "question_toks": [ "what", "are", "name", "of", "scientist", "who", "have", "not", "been", "assigned", "a", "project", "?" ], "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, 6, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "scientists", "who", "have", "not", "been", "assigned", "a", "project", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "scientist" ], [ "who" ], [ "have" ], [ "not" ], [ "been" ], [ "assigned" ], [ "a" ], [ "project" ], [ "?" ] ], "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" ], [ "scientist", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "not", "RB" ], [ "been", "VBN" ], [ "assigned", "VBN" ], [ "a", "DT" ], [ "project", "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(5) T(2)" }, { "db_id": "scientist_1", "query": "SELECT count(*) FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "scientists", "WHERE", "ssn", "NOT", "IN", "(", "SELECT", "scientist", "FROM", "AssignedTo", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "scientists", "where", "ssn", "not", "in", "(", "select", "scientist", "from", "assignedto", ")" ], "question": "Find the number of scientists who are not assigned to any project.", "question_toks": [ "find", "number", "of", "scientist", "who", "are", "not", "assigned", "to", "any", "project", "." ], "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, 6, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "scientists", "who", "are", "not", "assigned", "to", "any", "project", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "scientist" ], [ "who" ], [ "are" ], [ "not" ], [ "assigned", "to" ], [ "any" ], [ "project" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "scientist", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "any", "DT" ], [ "project", "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(5) T(2)" }, { "db_id": "scientist_1", "query": "SELECT count(*) FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "scientists", "WHERE", "ssn", "NOT", "IN", "(", "SELECT", "scientist", "FROM", "AssignedTo", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "scientists", "where", "ssn", "not", "in", "(", "select", "scientist", "from", "assignedto", ")" ], "question": "How many scientists do not have any projects assigned to them?", "question_toks": [ "how", "many", "scientist", "do", "not", "have", "any", "project", "assigned", "to", "them", "?" ], "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, 6, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "How", "many", "scientists", "do", "not", "have", "any", "projects", "assigned", "to", "them", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "scientist" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "project" ], [ "assigned", "to" ], [ "them" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "scientist", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "project", "NN" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "them", "PRP" ], [ "?", "." ] ], "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(5) T(2)" }, { "db_id": "scientist_1", "query": "SELECT name FROM scientists EXCEPT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT max(hours) FROM projects)", "query_toks": [ "SELECT", "name", "FROM", "scientists", "EXCEPT", "SELECT", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")" ], "query_toks_no_value": [ "select", "name", "from", "scientists", "except", "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")" ], "question": "Find the names of scientists who are not working on the project with the highest hours.", "question_toks": [ "find", "name", "of", "scientist", "who", "are", "not", "working", "on", "project", "with", "highest", "hour", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, 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": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "scientists", "who", "are", "not", "working", "on", "the", "project", "with", "the", "highest", "hours", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "scientist" ], [ "who" ], [ "are" ], [ "not" ], [ "working" ], [ "on" ], [ "project" ], [ "with" ], [ "highest" ], [ "hour" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "scientist", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "working", "VBG" ], [ "on", "IN" ], [ "project", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "hour", "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(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(11) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(1) C(4) T(1)" }, { "db_id": "scientist_1", "query": "SELECT name FROM scientists EXCEPT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT max(hours) FROM projects)", "query_toks": [ "SELECT", "name", "FROM", "scientists", "EXCEPT", "SELECT", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")" ], "query_toks_no_value": [ "select", "name", "from", "scientists", "except", "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")" ], "question": "What are the names of scientists who are not working on the project with the most hours?", "question_toks": [ "what", "are", "name", "of", "scientist", "who", "are", "not", "working", "on", "project", "with", "most", "hour", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, 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": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "scientists", "who", "are", "not", "working", "on", "the", "project", "with", "the", "most", "hours", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "scientist" ], [ "who" ], [ "are" ], [ "not" ], [ "working" ], [ "on" ], [ "project" ], [ "with" ], [ "most" ], [ "hour" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "scientist", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "working", "VBG" ], [ "on", "IN" ], [ "project", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "hour", "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(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(11) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(1) C(4) T(1)" }, { "db_id": "scientist_1", "query": "SELECT T1.Name , T3.Name , T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name , T1.Name", "query_toks": [ "SELECT", "T1.Name", ",", "T3.Name", ",", "T3.Hours", "FROM", "Scientists", "AS", "T1", "JOIN", "AssignedTo", "AS", "T2", "ON", "T1.SSN", "=", "T2.Scientist", "JOIN", "Projects", "AS", "T3", "ON", "T2.Project", "=", "T3.Code", "ORDER", "BY", "T3.Name", ",", "T1.Name" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t3", ".", "name", ",", "t3", ".", "hours", "from", "scientists", "as", "t1", "join", "assignedto", "as", "t2", "on", "t1", ".", "ssn", "=", "t2", ".", "scientist", "join", "projects", "as", "t3", "on", "t2", ".", "project", "=", "t3", ".", "code", "order", "by", "t3", ".", "name", ",", "t1", ".", "name" ], "question": "List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name.", "question_toks": [ "list", "all", "scientist", "'", "name", ",", "their", "project", "'", "name", ",", "and", "hour", "worked", "by", "that", "scientist", "on", "each", "project", ",", "in", "alphabetical", "order", "of", "project", "name", ",", "and", "then", "scientist", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ], [ 0, [ 0, 2, false ], null ] ] ], "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, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "all", "the", "scientists", "'", "names", ",", "their", "projects", "'", "names", ",", "and", "the", "hours", "worked", "by", "that", "scientist", "on", "each", "project", ",", "in", "alphabetical", "order", "of", "project", "name", ",", "and", "then", "scientist", "name", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "scientist" ], [ "'" ], [ "name" ], [ "," ], [ "their" ], [ "project" ], [ "'" ], [ "name" ], [ "," ], [ "and" ], [ "hour" ], [ "worked" ], [ "by" ], [ "that" ], [ "scientist" ], [ "on" ], [ "each" ], [ "project" ], [ "," ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "project" ], [ "name" ], [ "," ], [ "and" ], [ "then" ], [ "scientist" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "scientist", "NN" ], [ "'", "''" ], [ "name", "NN" ], [ ",", "," ], [ "their", "PRP$" ], [ "project", "NN" ], [ "'", "''" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "hour", "NN" ], [ "worked", "VBN" ], [ "by", "IN" ], [ "that", "DT" ], [ "scientist", "NN" ], [ "on", "IN" ], [ "each", "DT" ], [ "project", "NN" ], [ ",", "," ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "then", "RB" ], [ "scientist", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(0) C(2) T(0) A(0) C(2) T(1) A(0) C(4) T(1) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(5) T(2) Order(1) A(0) C(2) T(1)" }, { "db_id": "scientist_1", "query": "SELECT T1.Name , T3.Name , T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name , T1.Name", "query_toks": [ "SELECT", "T1.Name", ",", "T3.Name", ",", "T3.Hours", "FROM", "Scientists", "AS", "T1", "JOIN", "AssignedTo", "AS", "T2", "ON", "T1.SSN", "=", "T2.Scientist", "JOIN", "Projects", "AS", "T3", "ON", "T2.Project", "=", "T3.Code", "ORDER", "BY", "T3.Name", ",", "T1.Name" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t3", ".", "name", ",", "t3", ".", "hours", "from", "scientists", "as", "t1", "join", "assignedto", "as", "t2", "on", "t1", ".", "ssn", "=", "t2", ".", "scientist", "join", "projects", "as", "t3", "on", "t2", ".", "project", "=", "t3", ".", "code", "order", "by", "t3", ".", "name", ",", "t1", ".", "name" ], "question": "What are the names of each scientist, the names of the projects that they work on, and the hours for each of those projects, listed in alphabetical order by project name, then scientist name.", "question_toks": [ "what", "are", "name", "of", "each", "scientist", ",", "name", "of", "project", "that", "they", "work", "on", ",", "and", "hour", "for", "each", "of", "those", "project", ",", "listed", "in", "alphabetical", "order", "by", "project", "name", ",", "then", "scientist", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ], [ 0, [ 0, 2, false ], null ] ] ], "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, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "each", "scientist", ",", "the", "names", "of", "the", "projects", "that", "they", "work", "on", ",", "and", "the", "hours", "for", "each", "of", "those", "projects", ",", "listed", "in", "alphabetical", "order", "by", "project", "name", ",", "then", "scientist", "name", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "each" ], [ "scientist" ], [ "," ], [ "name" ], [ "of" ], [ "project" ], [ "that" ], [ "they" ], [ "work" ], [ "on" ], [ "," ], [ "and" ], [ "hour" ], [ "for" ], [ "each" ], [ "of" ], [ "those" ], [ "project" ], [ "," ], [ "listed" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "by" ], [ "project" ], [ "name" ], [ "," ], [ "then" ], [ "scientist" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "scientist", "NN" ], [ ",", "," ], [ "name", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "that", "IN" ], [ "they", "PRP" ], [ "work", "VBP" ], [ "on", "IN" ], [ ",", "," ], [ "and", "CC" ], [ "hour", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "of", "IN" ], [ "those", "DT" ], [ "project", "NN" ], [ ",", "," ], [ "listed", "VBN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "by", "IN" ], [ "project", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "then", "RB" ], [ "scientist", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(0) C(2) T(0) A(0) C(2) T(1) A(0) C(4) T(1) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(5) T(2) Order(1) A(0) C(2) T(1)" }, { "db_id": "scientist_1", "query": "SELECT T2.name , T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT min(hours) FROM projects)", "query_toks": [ "SELECT", "T2.name", ",", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "min", "(", "hours", ")", "FROM", "projects", ")" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "min", "(", "hours", ")", "from", "projects", ")" ], "question": "Find name of the project that needs the least amount of time to finish and the name of scientists who worked on it.", "question_toks": [ "find", "name", "of", "project", "that", "need", "least", "amount", "of", "time", "to", "finish", "and", "name", "of", "scientist", "who", "worked", "on", "it", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "name", "of", "the", "project", "that", "needs", "the", "least", "amount", "of", "time", "to", "finish", "and", "the", "name", "of", "scientists", "who", "worked", "on", "it", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "project" ], [ "that" ], [ "need" ], [ "least" ], [ "amount" ], [ "of" ], [ "time" ], [ "to" ], [ "finish" ], [ "and" ], [ "name" ], [ "of" ], [ "scientist" ], [ "who" ], [ "worked" ], [ "on" ], [ "it" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "that", "WDT" ], [ "need", "VBP" ], [ "least", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "to", "TO" ], [ "finish", "VB" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "scientist", "NN" ], [ "who", "WP" ], [ "worked", "VBD" ], [ "on", "IN" ], [ "it", "PRP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(1) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(11) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(2) C(4) T(1)" }, { "db_id": "scientist_1", "query": "SELECT T2.name , T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT min(hours) FROM projects)", "query_toks": [ "SELECT", "T2.name", ",", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "min", "(", "hours", ")", "FROM", "projects", ")" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "min", "(", "hours", ")", "from", "projects", ")" ], "question": "What is the name of the project that requires the fewest number of hours, and the names of the scientists assigned to it?", "question_toks": [ "what", "is", "name", "of", "project", "that", "requires", "fewest", "number", "of", "hour", ",", "and", "name", "of", "scientist", "assigned", "to", "it", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "ssn", "name", "code", "name", "hours", "scientist", "project" ], "table_names": [ "scientists", "projects", "assigned to" ], "col_set": [ "*", "ssn", "name", "code", "hours", "scientist", "project" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2 ], "keys": { "7": 3, "3": 3, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "project", "that", "requires", "the", "fewest", "number", "of", "hours", ",", "and", "the", "names", "of", "the", "scientists", "assigned", "to", "it", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "project" ], [ "that" ], [ "requires" ], [ "fewest" ], [ "number" ], [ "of" ], [ "hour" ], [ "," ], [ "and" ], [ "name" ], [ "of" ], [ "scientist" ], [ "assigned", "to" ], [ "it" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "project", "NN" ], [ "that", "WDT" ], [ "requires", "VBZ" ], [ "fewest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "hour", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "scientist", "NN" ], [ "assigned", "VBN" ], [ "to", "TO" ], [ "it", "PRP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(1) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(11) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(2) C(4) T(1)" }, { "db_id": "wine_1", "query": "SELECT Name FROM WINE ORDER BY Score LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "WINE", "ORDER", "BY", "Score", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "wine", "order", "by", "score", "limit", "value" ], "question": "What is the name of the highest rated wine?", "question_toks": [ "what", "is", "name", "of", "highest", "rated", "wine", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "highest", "rated", "wine", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "highest" ], [ "rated" ], [ "wine" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "highest", "JJS" ], [ "rated", "VBN" ], [ "wine", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(11) T(2) Sup(1) A(0) C(14) T(2)" }, { "db_id": "wine_1", "query": "SELECT Name FROM WINE ORDER BY Score LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "WINE", "ORDER", "BY", "Score", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "wine", "order", "by", "score", "limit", "value" ], "question": "Give the name of the wine with the highest score.", "question_toks": [ "give", "name", "of", "wine", "with", "highest", "score", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Give", "the", "name", "of", "the", "wine", "with", "the", "highest", "score", "." ], "question_arg": [ [ "give" ], [ "name" ], [ "of" ], [ "wine" ], [ "with" ], [ "highest" ], [ "score" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "score", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(11) T(2) Sup(1) A(0) C(14) T(2)" }, { "db_id": "wine_1", "query": "SELECT Winery FROM WINE ORDER BY SCORE LIMIT 1", "query_toks": [ "SELECT", "Winery", "FROM", "WINE", "ORDER", "BY", "SCORE", "LIMIT", "1" ], "query_toks_no_value": [ "select", "winery", "from", "wine", "order", "by", "score", "limit", "value" ], "question": "Which winery is the wine that has the highest score from?", "question_toks": [ "which", "winery", "is", "wine", "that", "ha", "highest", "score", "from", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Which", "winery", "is", "the", "wine", "that", "has", "the", "highest", "score", "from", "?" ], "question_arg": [ [ "which" ], [ "winery" ], [ "is" ], [ "wine" ], [ "that" ], [ "ha" ], [ "highest" ], [ "score" ], [ "from" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "winery", "NN" ], [ "is", "VBZ" ], [ "wine", "JJ" ], [ "that", "IN" ], [ "ha", "NN" ], [ "highest", "JJS" ], [ "score", "NN" ], [ "from", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(2) Sup(1) A(0) C(14) T(2)" }, { "db_id": "wine_1", "query": "SELECT Winery FROM WINE ORDER BY SCORE LIMIT 1", "query_toks": [ "SELECT", "Winery", "FROM", "WINE", "ORDER", "BY", "SCORE", "LIMIT", "1" ], "query_toks_no_value": [ "select", "winery", "from", "wine", "order", "by", "score", "limit", "value" ], "question": "What is the winery at which the wine with the highest score was made?", "question_toks": [ "what", "is", "winery", "at", "which", "wine", "with", "highest", "score", "wa", "made", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "winery", "at", "which", "the", "wine", "with", "the", "highest", "score", "was", "made", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "winery" ], [ "at" ], [ "which" ], [ "wine" ], [ "with" ], [ "highest" ], [ "score" ], [ "wa" ], [ "made" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "winery", "NN" ], [ "at", "IN" ], [ "which", "WDT" ], [ "wine", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "score", "NN" ], [ "wa", "NN" ], [ "made", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(2) Sup(1) A(0) C(14) T(2)" }, { "db_id": "wine_1", "query": "SELECT Name FROM WINE WHERE YEAR = \"2008\"", "query_toks": [ "SELECT", "Name", "FROM", "WINE", "WHERE", "YEAR", "=", "``", "2008", "''" ], "query_toks_no_value": [ "select", "name", "from", "wine", "where", "year", "=", "value" ], "question": "Find the names of all wines produced in 2008.", "question_toks": [ "find", "name", "of", "all", "wine", "produced", "in", "year", "." ], "sql": { "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": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"2008\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "wines", "produced", "in", "2008", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "wine" ], [ "produced" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "wine", "NN" ], [ "produced", "VBN" ], [ "in", "IN" ], [ "2008", "CD" ], [ ".", "." ] ], "values": [ "2008" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT Name FROM WINE WHERE YEAR = \"2008\"", "query_toks": [ "SELECT", "Name", "FROM", "WINE", "WHERE", "YEAR", "=", "``", "2008", "''" ], "query_toks_no_value": [ "select", "name", "from", "wine", "where", "year", "=", "value" ], "question": "What are the names of all wines produced in 2008?", "question_toks": [ "what", "are", "name", "of", "all", "wine", "produced", "in", "year", "?" ], "sql": { "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": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"2008\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "wines", "produced", "in", "2008", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "wine" ], [ "produced" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "wine", "NN" ], [ "produced", "VBN" ], [ "in", "IN" ], [ "2008", "CD" ], [ "?", "." ] ], "values": [ "2008" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT Grape , Appelation FROM WINE", "query_toks": [ "SELECT", "Grape", ",", "Appelation", "FROM", "WINE" ], "query_toks_no_value": [ "select", "grape", ",", "appelation", "from", "wine" ], "question": "List the grapes and appelations of all wines.", "question_toks": [ "list", "grape", "and", "appelations", "of", "all", "wine", "." ], "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, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "List", "the", "grapes", "and", "appelations", "of", "all", "wines", "." ], "question_arg": [ [ "list" ], [ "grape" ], [ "and" ], [ "appelations" ], [ "of" ], [ "all" ], [ "wine" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "grape", "NN" ], [ "and", "CC" ], [ "appelations", "NNS" ], [ "of", "IN" ], [ "all", "DT" ], [ "wine", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(2) A(0) C(5) T(2)" }, { "db_id": "wine_1", "query": "SELECT Grape , Appelation FROM WINE", "query_toks": [ "SELECT", "Grape", ",", "Appelation", "FROM", "WINE" ], "query_toks_no_value": [ "select", "grape", ",", "appelation", "from", "wine" ], "question": "What are the grapes and appelations of each wine?", "question_toks": [ "what", "are", "grape", "and", "appelations", "of", "each", "wine", "?" ], "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, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "grapes", "and", "appelations", "of", "each", "wine", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "grape" ], [ "and" ], [ "appelations" ], [ "of" ], [ "each" ], [ "wine" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "grape", "JJ" ], [ "and", "CC" ], [ "appelations", "NNS" ], [ "of", "IN" ], [ "each", "DT" ], [ "wine", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(2) A(0) C(5) T(2)" }, { "db_id": "wine_1", "query": "SELECT Name , Score FROM WINE", "query_toks": [ "SELECT", "Name", ",", "Score", "FROM", "WINE" ], "query_toks_no_value": [ "select", "name", ",", "score", "from", "wine" ], "question": "List the names and scores of all wines.", "question_toks": [ "list", "name", "and", "score", "of", "all", "wine", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "List", "the", "names", "and", "scores", "of", "all", "wines", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "score" ], [ "of" ], [ "all" ], [ "wine" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "score", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "wine", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(2) A(0) C(14) T(2)" }, { "db_id": "wine_1", "query": "SELECT Name , Score FROM WINE", "query_toks": [ "SELECT", "Name", ",", "Score", "FROM", "WINE" ], "query_toks_no_value": [ "select", "name", ",", "score", "from", "wine" ], "question": "What are the names and scores of all wines?", "question_toks": [ "what", "are", "name", "and", "score", "of", "all", "wine", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "scores", "of", "all", "wines", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "score" ], [ "of" ], [ "all" ], [ "wine" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "score", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "wine", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(2) A(0) C(14) T(2)" }, { "db_id": "wine_1", "query": "SELECT Area , County FROM APPELLATIONS", "query_toks": [ "SELECT", "Area", ",", "County", "FROM", "APPELLATIONS" ], "query_toks_no_value": [ "select", "area", ",", "county", "from", "appellations" ], "question": "List the area and county of all appelations.", "question_toks": [ "list", "area", "and", "county", "of", "all", "appelations", "." ], "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, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "List", "the", "area", "and", "county", "of", "all", "appelations", "." ], "question_arg": [ [ "list" ], [ "area" ], [ "and" ], [ "county" ], [ "of" ], [ "all" ], [ "appelations" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "area", "NN" ], [ "and", "CC" ], [ "county", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "appelations", "NNS" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(1) A(0) C(6) T(1)" }, { "db_id": "wine_1", "query": "SELECT Area , County FROM APPELLATIONS", "query_toks": [ "SELECT", "Area", ",", "County", "FROM", "APPELLATIONS" ], "query_toks_no_value": [ "select", "area", ",", "county", "from", "appellations" ], "question": "What are the areas and counties for all appelations?", "question_toks": [ "what", "are", "area", "and", "county", "for", "all", "appelations", "?" ], "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, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "areas", "and", "counties", "for", "all", "appelations", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "area" ], [ "and" ], [ "county" ], [ "for" ], [ "all" ], [ "appelations" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "area", "NN" ], [ "and", "CC" ], [ "county", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "appelations", "NNS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(1) A(0) C(6) T(1)" }, { "db_id": "wine_1", "query": "SELECT Price FROM WINE WHERE YEAR < 2010", "query_toks": [ "SELECT", "Price", "FROM", "WINE", "WHERE", "YEAR", "<", "2010" ], "query_toks_no_value": [ "select", "price", "from", "wine", "where", "year", "<", "value" ], "question": "What are the prices of wines produced before the year of 2010?", "question_toks": [ "what", "are", "price", "of", "wine", "produced", "before", "year", "of", "year", "?" ], "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 ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 16, false ], null ], 2010.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "prices", "of", "wines", "produced", "before", "the", "year", "of", "2010", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "price" ], [ "of" ], [ "wine" ], [ "produced" ], [ "before" ], [ "year" ], [ "of" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "price", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "produced", "VBN" ], [ "before", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "2010" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(4) A(0) C(12) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT Price FROM WINE WHERE YEAR < 2010", "query_toks": [ "SELECT", "Price", "FROM", "WINE", "WHERE", "YEAR", "<", "2010" ], "query_toks_no_value": [ "select", "price", "from", "wine", "where", "year", "<", "value" ], "question": "Return the prices of wines produced before 2010.", "question_toks": [ "return", "price", "of", "wine", "produced", "before", "year", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 16, false ], null ], 2010.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Return", "the", "prices", "of", "wines", "produced", "before", "2010", "." ], "question_arg": [ [ "return" ], [ "price" ], [ "of" ], [ "wine" ], [ "produced" ], [ "before" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "produced", "VBN" ], [ "before", "IN" ], [ "2010", "CD" ], [ ".", "." ] ], "values": [ "2010" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(4) A(0) C(12) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT Name FROM WINE WHERE score > 90", "query_toks": [ "SELECT", "Name", "FROM", "WINE", "WHERE", "score", ">", "90" ], "query_toks_no_value": [ "select", "name", "from", "wine", "where", "score", ">", "value" ], "question": "List the names of all distinct wines that have scores higher than 90.", "question_toks": [ "list", "name", "of", "all", "distinct", "wine", "that", "have", "score", "higher", "than", "90", "." ], "sql": { "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": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 90.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "distinct", "wines", "that", "have", "scores", "higher", "than", "90", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "distinct" ], [ "wine" ], [ "that" ], [ "have" ], [ "score" ], [ "higher" ], [ "than" ], [ "90" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "wine", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "score", "JJR" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "90", "CD" ], [ ".", "." ] ], "values": [ "90" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(5) A(0) C(14) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT Name FROM WINE WHERE score > 90", "query_toks": [ "SELECT", "Name", "FROM", "WINE", "WHERE", "score", ">", "90" ], "query_toks_no_value": [ "select", "name", "from", "wine", "where", "score", ">", "value" ], "question": "What are the names of wines with scores higher than 90?", "question_toks": [ "what", "are", "name", "of", "wine", "with", "score", "higher", "than", "90", "?" ], "sql": { "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": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 90.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "wines", "with", "scores", "higher", "than", "90", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "wine" ], [ "with" ], [ "score" ], [ "higher" ], [ "than" ], [ "90" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "with", "IN" ], [ "score", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "90", "CD" ], [ "?", "." ] ], "values": [ "90" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(5) A(0) C(14) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = \"Red\"", "query_toks": [ "SELECT", "DISTINCT", "T2.Name", "FROM", "GRAPES", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Grape", "=", "T2.Grape", "WHERE", "T1.Color", "=", "``", "Red", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", "from", "grapes", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "grape", "=", "t2", ".", "grape", "where", "t1", ".", "color", "=", "value" ], "question": "List the names of all distinct wines that are made of red color grape.", "question_toks": [ "list", "name", "of", "all", "distinct", "wine", "that", "are", "made", "of", "red", "color", "grape", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, 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, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Red\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "distinct", "wines", "that", "are", "made", "of", "red", "color", "grape", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "distinct" ], [ "wine" ], [ "that" ], [ "are" ], [ "made" ], [ "of" ], [ "red" ], [ "color" ], [ "grape" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "wine", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "made", "VBN" ], [ "of", "IN" ], [ "red", "JJ" ], [ "color", "NN" ], [ "grape", "NN" ], [ ".", "." ] ], "values": [ "Red" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(11) T(2) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "wine_1", "query": "SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = \"Red\"", "query_toks": [ "SELECT", "DISTINCT", "T2.Name", "FROM", "GRAPES", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Grape", "=", "T2.Grape", "WHERE", "T1.Color", "=", "``", "Red", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", "from", "grapes", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "grape", "=", "t2", ".", "grape", "where", "t1", ".", "color", "=", "value" ], "question": "What are the names of wines made from red grapes?", "question_toks": [ "what", "are", "name", "of", "wine", "made", "from", "red", "grape", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, 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, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Red\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "wines", "made", "from", "red", "grapes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "wine" ], [ "made" ], [ "from" ], [ "red" ], [ "grape" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "made", "VBN" ], [ "from", "IN" ], [ "red", "JJ" ], [ "grape", "NN" ], [ "?", "." ] ], "values": [ "Red" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(11) T(2) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "wine_1", "query": "SELECT DISTINCT T2.Name FROM APPELLATIONs AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = \"North Coast\"", "query_toks": [ "SELECT", "DISTINCT", "T2.Name", "FROM", "APPELLATIONs", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T1.Area", "=", "``", "North", "Coast", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t1", ".", "area", "=", "value" ], "question": "Find the names of all distinct wines that have appellations in North Coast area.", "question_toks": [ "find", "name", "of", "all", "distinct", "wine", "that", "have", "appellation", "in", "north", "coast", "area", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"North Coast\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "distinct", "wines", "that", "have", "appellations", "in", "North", "Coast", "area", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "distinct" ], [ "wine" ], [ "that" ], [ "have" ], [ "appellation" ], [ "in" ], [ "north" ], [ "coast" ], [ "area" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "wine", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "appellation", "NN" ], [ "in", "IN" ], [ "north", "JJ" ], [ "coast", "JJ" ], [ "area", "NN" ], [ ".", "." ] ], "values": [ "North Coast" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(11) T(2) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "wine_1", "query": "SELECT DISTINCT T2.Name FROM APPELLATIONs AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = \"North Coast\"", "query_toks": [ "SELECT", "DISTINCT", "T2.Name", "FROM", "APPELLATIONs", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T1.Area", "=", "``", "North", "Coast", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t1", ".", "area", "=", "value" ], "question": "What are the distinct names of wines that have appellations in the North Coast area?", "question_toks": [ "what", "are", "distinct", "name", "of", "wine", "that", "have", "appellation", "in", "north", "coast", "area", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"North Coast\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "distinct", "names", "of", "wines", "that", "have", "appellations", "in", "the", "North", "Coast", "area", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "name" ], [ "of" ], [ "wine" ], [ "that" ], [ "have" ], [ "appellation" ], [ "in" ], [ "north" ], [ "coast" ], [ "area" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "appellation", "NN" ], [ "in", "IN" ], [ "north", "JJ" ], [ "coast", "NN" ], [ "area", "NN" ], [ "?", "." ] ], "values": [ "North Coast" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(11) T(2) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "wine_1", "query": "SELECT count(*) FROM WINE WHERE Winery = \"Robert Biale\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "WINE", "WHERE", "Winery", "=", "``", "Robert", "Biale", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "wine", "where", "winery", "=", "value" ], "question": "How many wines are produced at Robert Biale winery?", "question_toks": [ "how", "many", "wine", "are", "produced", "at", "robert", "biale", "winery", "?" ], "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 ], "\"Robert Biale\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "How", "many", "wines", "are", "produced", "at", "Robert", "Biale", "winery", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "wine" ], [ "are" ], [ "produced" ], [ "at" ], [ "robert" ], [ "biale" ], [ "winery" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "wine", "NN" ], [ "are", "VBP" ], [ "produced", "VBN" ], [ "at", "IN" ], [ "robert", "JJ" ], [ "biale", "NN" ], [ "winery", "NN" ], [ "?", "." ] ], "values": [ "Robert Biale" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT count(*) FROM WINE WHERE Winery = \"Robert Biale\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "WINE", "WHERE", "Winery", "=", "``", "Robert", "Biale", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "wine", "where", "winery", "=", "value" ], "question": "Count the number of wines produced at Robert Biale winery.", "question_toks": [ "count", "number", "of", "wine", "produced", "at", "robert", "biale", "winery", "." ], "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 ], "\"Robert Biale\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Count", "the", "number", "of", "wines", "produced", "at", "Robert", "Biale", "winery", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "wine" ], [ "produced" ], [ "at" ], [ "robert" ], [ "biale" ], [ "winery" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "produced", "VBN" ], [ "at", "IN" ], [ "robert", "JJ" ], [ "biale", "JJ" ], [ "winery", "NN" ], [ ".", "." ] ], "values": [ "Robert Biale", "Numbers" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT count(*) FROM APPELLATIONS WHERE County = \"Napa\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "APPELLATIONS", "WHERE", "County", "=", "``", "Napa", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "appellations", "where", "county", "=", "value" ], "question": "How many appelations are in Napa Country?", "question_toks": [ "how", "many", "appelations", "are", "in", "napa", "country", "?" ], "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, 6, false ], null ], "\"Napa\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "How", "many", "appelations", "are", "in", "Napa", "Country", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "appelations" ], [ "are" ], [ "in" ], [ "napa" ], [ "country" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "appelations", "NNS" ], [ "are", "VBP" ], [ "in", "IN" ], [ "napa", "JJ" ], [ "country", "NN" ], [ "?", "." ] ], "values": [ "Napa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "wine_1", "query": "SELECT count(*) FROM APPELLATIONS WHERE County = \"Napa\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "APPELLATIONS", "WHERE", "County", "=", "``", "Napa", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "appellations", "where", "county", "=", "value" ], "question": "Count the number of appelations in Napa County.", "question_toks": [ "count", "number", "of", "appelations", "in", "napa", "county", "." ], "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, 6, false ], null ], "\"Napa\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Count", "the", "number", "of", "appelations", "in", "Napa", "County", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "appelations" ], [ "in" ], [ "napa" ], [ "county" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "appelations", "NNS" ], [ "in", "IN" ], [ "napa", "JJ" ], [ "county", "NN" ], [ ".", "." ] ], "values": [ "Numbers", "Napa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(6) T(1) V(1)" }, { "db_id": "wine_1", "query": "SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = \"Sonoma\"", "query_toks": [ "SELECT", "AVG", "(", "T2.Price", ")", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T1.County", "=", "``", "Sonoma", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "price", ")", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t1", ".", "county", "=", "value" ], "question": "Give me the average prices of wines that are produced by appelations in Sonoma County.", "question_toks": [ "give", "me", "average", "price", "of", "wine", "that", "are", "produced", "by", "appelations", "in", "sonoma", "county", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Sonoma\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Give", "me", "the", "average", "prices", "of", "wines", "that", "are", "produced", "by", "appelations", "in", "Sonoma", "County", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "average" ], [ "price" ], [ "of" ], [ "wine" ], [ "that" ], [ "are" ], [ "produced" ], [ "by" ], [ "appelations" ], [ "in" ], [ "sonoma" ], [ "county" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "appelations", "NNS" ], [ "in", "IN" ], [ "sonoma", "JJ" ], [ "county", "NN" ], [ ".", "." ] ], "values": [ "Sonoma County", "Sonoma" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(13) T(2) Filter(2) A(0) C(6) T(1) V(1)" }, { "db_id": "wine_1", "query": "SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = \"Sonoma\"", "query_toks": [ "SELECT", "AVG", "(", "T2.Price", ")", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T1.County", "=", "``", "Sonoma", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "price", ")", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t1", ".", "county", "=", "value" ], "question": "What is the average price of wines produced in appelations in Sonoma County?", "question_toks": [ "what", "is", "average", "price", "of", "wine", "produced", "in", "appelations", "in", "sonoma", "county", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Sonoma\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "average", "price", "of", "wines", "produced", "in", "appelations", "in", "Sonoma", "County", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "price" ], [ "of" ], [ "wine" ], [ "produced" ], [ "in" ], [ "appelations" ], [ "in" ], [ "sonoma" ], [ "county" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "produced", "VBN" ], [ "in", "IN" ], [ "appelations", "NNS" ], [ "in", "IN" ], [ "sonoma", "JJ" ], [ "county", "NN" ], [ "?", "." ] ], "values": [ "Pride", "Sonoma County", "Prime", "Sonoma" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(13) T(2) Filter(2) A(0) C(6) T(1) V(3)" }, { "db_id": "wine_1", "query": "SELECT T2.Name , T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = \"White\"", "query_toks": [ "SELECT", "T2.Name", ",", "T2.Score", "FROM", "GRAPES", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Grape", "=", "T2.Grape", "WHERE", "T1.Color", "=", "``", "White", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "score", "from", "grapes", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "grape", "=", "t2", ".", "grape", "where", "t1", ".", "color", "=", "value" ], "question": "What are the names and scores of wines that are made of white color grapes?", "question_toks": [ "what", "are", "name", "and", "score", "of", "wine", "that", "are", "made", "of", "white", "color", "grape", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, 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, 15, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"White\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "scores", "of", "wines", "that", "are", "made", "of", "white", "color", "grapes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "score" ], [ "of" ], [ "wine" ], [ "that" ], [ "are" ], [ "made" ], [ "of" ], [ "white" ], [ "color" ], [ "grape" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "score", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "made", "VBN" ], [ "of", "IN" ], [ "white", "JJ" ], [ "color", "NN" ], [ "grape", "NN" ], [ "?", "." ] ], "values": [ "White" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(11) T(2) A(0) C(14) T(2) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "wine_1", "query": "SELECT T2.Name , T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = \"White\"", "query_toks": [ "SELECT", "T2.Name", ",", "T2.Score", "FROM", "GRAPES", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Grape", "=", "T2.Grape", "WHERE", "T1.Color", "=", "``", "White", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "score", "from", "grapes", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "grape", "=", "t2", ".", "grape", "where", "t1", ".", "color", "=", "value" ], "question": "Give the names and scores of wines made from white grapes.", "question_toks": [ "give", "name", "and", "score", "of", "wine", "made", "from", "white", "grape", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, 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, 15, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"White\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Give", "the", "names", "and", "scores", "of", "wines", "made", "from", "white", "grapes", "." ], "question_arg": [ [ "give" ], [ "name" ], [ "and" ], [ "score" ], [ "of" ], [ "wine" ], [ "made" ], [ "from" ], [ "white" ], [ "grape" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "score", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "made", "VBN" ], [ "from", "IN" ], [ "white", "JJ" ], [ "grape", "NN" ], [ ".", "." ] ], "values": [ "White" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(11) T(2) A(0) C(14) T(2) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "wine_1", "query": "SELECT max(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = \"Central Coast\" AND T2.year < 2005", "query_toks": [ "SELECT", "max", "(", "T2.Price", ")", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T1.Area", "=", "``", "Central", "Coast", "''", "AND", "T2.year", "<", "2005" ], "query_toks_no_value": [ "select", "max", "(", "t2", ".", "price", ")", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t1", ".", "area", "=", "value", "and", "t2", ".", "year", "<", "value" ], "question": "Find the maximum price of wins from the appelations in Central Coast area and produced before the year of 2005.", "question_toks": [ "find", "maximum", "price", "of", "win", "from", "appelations", "in", "central", "coast", "area", "and", "produced", "before", "year", "of", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Central Coast\"", null ], "and", [ false, 4, [ 0, [ 0, 16, false ], null ], 2005.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Find", "the", "maximum", "price", "of", "wins", "from", "the", "appelations", "in", "Central", "Coast", "area", "and", "produced", "before", "the", "year", "of", "2005", "." ], "question_arg": [ [ "find" ], [ "maximum" ], [ "price" ], [ "of" ], [ "win" ], [ "from" ], [ "appelations" ], [ "in" ], [ "central" ], [ "coast" ], [ "area" ], [ "and" ], [ "produced" ], [ "before" ], [ "year" ], [ "of" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "maximum", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "win", "NN" ], [ "from", "IN" ], [ "appelations", "NNS" ], [ "in", "IN" ], [ "central", "JJ" ], [ "coast", "NN" ], [ "area", "NN" ], [ "and", "CC" ], [ "produced", "VBD" ], [ "before", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "2005", "CD" ], [ ".", "." ] ], "values": [ "2005", "Pride", "Prime", "Central Coast" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(1) C(13) T(2) Filter(0) Filter(2) A(0) C(8) T(1) V(3) Filter(4) A(0) C(12) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT max(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = \"Central Coast\" AND T2.year < 2005", "query_toks": [ "SELECT", "max", "(", "T2.Price", ")", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T1.Area", "=", "``", "Central", "Coast", "''", "AND", "T2.year", "<", "2005" ], "query_toks_no_value": [ "select", "max", "(", "t2", ".", "price", ")", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t1", ".", "area", "=", "value", "and", "t2", ".", "year", "<", "value" ], "question": "What is the maximum price of wines from the appelation in the Central Coast area, which was produced before 2005?", "question_toks": [ "what", "is", "maximum", "price", "of", "wine", "from", "appelation", "in", "central", "coast", "area", ",", "which", "wa", "produced", "before", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Central Coast\"", null ], "and", [ false, 4, [ 0, [ 0, 16, false ], null ], 2005.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "maximum", "price", "of", "wines", "from", "the", "appelation", "in", "the", "Central", "Coast", "area", ",", "which", "was", "produced", "before", "2005", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "price" ], [ "of" ], [ "wine" ], [ "from" ], [ "appelation" ], [ "in" ], [ "central" ], [ "coast" ], [ "area" ], [ "," ], [ "which" ], [ "wa" ], [ "produced" ], [ "before" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "from", "IN" ], [ "appelation", "NN" ], [ "in", "IN" ], [ "central", "JJ" ], [ "coast", "NN" ], [ "area", "NN" ], [ ",", "," ], [ "which", "WDT" ], [ "wa", "VBP" ], [ "produced", "VBN" ], [ "before", "IN" ], [ "2005", "CD" ], [ "?", "." ] ], "values": [ "2005", "Pride", "Prime", "Central Coast" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(1) C(13) T(2) Filter(0) Filter(2) A(0) C(8) T(1) V(3) Filter(4) A(0) C(12) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = \"White\" AND T2.score > 90", "query_toks": [ "SELECT", "DISTINCT", "T1.Grape", "FROM", "GRAPES", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Grape", "=", "T2.Grape", "WHERE", "T1.Color", "=", "``", "White", "''", "AND", "T2.score", ">", "90" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "grape", "from", "grapes", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "grape", "=", "t2", ".", "grape", "where", "t1", ".", "color", "=", "value", "and", "t2", ".", "score", ">", "value" ], "question": "Find the the grape whose white color grapes are used to produce wines with scores higher than 90.", "question_toks": [ "find", "grape", "whose", "white", "color", "grape", "are", "used", "to", "produce", "wine", "with", "score", "higher", "than", "90", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, 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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"White\"", null ], "and", [ false, 3, [ 0, [ 0, 18, false ], null ], 90.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Find", "the", "the", "grape", "whose", "white", "color", "grapes", "are", "used", "to", "produce", "wines", "with", "scores", "higher", "than", "90", "." ], "question_arg": [ [ "find" ], [ "grape" ], [ "whose" ], [ "white" ], [ "color" ], [ "grape" ], [ "are" ], [ "used" ], [ "to" ], [ "produce" ], [ "wine" ], [ "with" ], [ "score" ], [ "higher" ], [ "than" ], [ "90" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "grape", "NN" ], [ "whose", "WP$" ], [ "white", "JJ" ], [ "color", "NN" ], [ "grape", "NN" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "to", "TO" ], [ "produce", "VB" ], [ "wine", "NN" ], [ "with", "IN" ], [ "score", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "90", "CD" ], [ ".", "." ] ], "values": [ "90", "White" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(3) T(0) V(1) Filter(5) A(0) C(14) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = \"White\" AND T2.score > 90", "query_toks": [ "SELECT", "DISTINCT", "T1.Grape", "FROM", "GRAPES", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Grape", "=", "T2.Grape", "WHERE", "T1.Color", "=", "``", "White", "''", "AND", "T2.score", ">", "90" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "grape", "from", "grapes", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "grape", "=", "t2", ".", "grape", "where", "t1", ".", "color", "=", "value", "and", "t2", ".", "score", ">", "value" ], "question": "Find the white grape used to produce wines with scores above 90.", "question_toks": [ "find", "white", "grape", "used", "to", "produce", "wine", "with", "score", "above", "90", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, 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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"White\"", null ], "and", [ false, 3, [ 0, [ 0, 18, false ], null ], 90.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Find", "the", "white", "grape", "used", "to", "produce", "wines", "with", "scores", "above", "90", "." ], "question_arg": [ [ "find" ], [ "white" ], [ "grape" ], [ "used" ], [ "to" ], [ "produce" ], [ "wine" ], [ "with" ], [ "score" ], [ "above" ], [ "90" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "white", "JJ" ], [ "grape", "NN" ], [ "used", "VBN" ], [ "to", "TO" ], [ "produce", "VB" ], [ "wine", "NN" ], [ "with", "IN" ], [ "score", "NN" ], [ "above", "IN" ], [ "90", "CD" ], [ ".", "." ] ], "values": [ "90", "White" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(3) T(0) V(1) Filter(5) A(0) C(14) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = \"Red\" AND T2.price > 50", "query_toks": [ "SELECT", "T2.Name", "FROM", "Grapes", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Grape", "=", "T2.Grape", "WHERE", "T1.Color", "=", "``", "Red", "''", "AND", "T2.price", ">", "50" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "grapes", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "grape", "=", "t2", ".", "grape", "where", "t1", ".", "color", "=", "value", "and", "t2", ".", "price", ">", "value" ], "question": "What are the wines that have prices higher than 50 and made of Red color grapes?", "question_toks": [ "what", "are", "wine", "that", "have", "price", "higher", "than", "50", "and", "made", "of", "red", "color", "grape", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, 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, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Red\"", null ], "and", [ false, 3, [ 0, [ 0, 17, false ], null ], 50.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "wines", "that", "have", "prices", "higher", "than", "50", "and", "made", "of", "Red", "color", "grapes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "wine" ], [ "that" ], [ "have" ], [ "price" ], [ "higher" ], [ "than" ], [ "50" ], [ "and" ], [ "made" ], [ "of" ], [ "red" ], [ "color" ], [ "grape" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "color" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "wine", "JJ" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "50", "CD" ], [ "and", "CC" ], [ "made", "VBD" ], [ "of", "IN" ], [ "red", "JJ" ], [ "color", "NN" ], [ "grape", "NN" ], [ "?", "." ] ], "values": [ "Red", "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(0) Filter(2) A(0) C(3) T(0) V(0) Filter(5) A(0) C(13) T(2) V(1)" }, { "db_id": "wine_1", "query": "SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = \"Red\" AND T2.price > 50", "query_toks": [ "SELECT", "T2.Name", "FROM", "Grapes", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Grape", "=", "T2.Grape", "WHERE", "T1.Color", "=", "``", "Red", "''", "AND", "T2.price", ">", "50" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "grapes", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "grape", "=", "t2", ".", "grape", "where", "t1", ".", "color", "=", "value", "and", "t2", ".", "price", ">", "value" ], "question": "What are the names of wines made from red grapes and with prices above 50?", "question_toks": [ "what", "are", "name", "of", "wine", "made", "from", "red", "grape", "and", "with", "price", "above", "50", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, 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, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Red\"", null ], "and", [ false, 3, [ 0, [ 0, 17, false ], null ], 50.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "wines", "made", "from", "red", "grapes", "and", "with", "prices", "above", "50", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "wine" ], [ "made" ], [ "from" ], [ "red" ], [ "grape" ], [ "and" ], [ "with" ], [ "price" ], [ "above" ], [ "50" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "made", "VBN" ], [ "from", "IN" ], [ "red", "JJ" ], [ "grape", "NN" ], [ "and", "CC" ], [ "with", "IN" ], [ "price", "NN" ], [ "above", "IN" ], [ "50", "CD" ], [ "?", "." ] ], "values": [ "50", "Red" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(0) Filter(2) A(0) C(3) T(0) V(1) Filter(5) A(0) C(13) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = \"Monterey\" AND T2.price < 50", "query_toks": [ "SELECT", "T2.Name", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T1.County", "=", "``", "Monterey", "''", "AND", "T2.price", "<", "50" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t1", ".", "county", "=", "value", "and", "t2", ".", "price", "<", "value" ], "question": "What are the wines that have prices lower than 50 and have appelations in Monterey county?", "question_toks": [ "what", "are", "wine", "that", "have", "price", "lower", "than", "50", "and", "have", "appelations", "in", "monterey", "county", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Monterey\"", null ], "and", [ false, 4, [ 0, [ 0, 17, false ], null ], 50.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "wines", "that", "have", "prices", "lower", "than", "50", "and", "have", "appelations", "in", "Monterey", "county", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "wine" ], [ "that" ], [ "have" ], [ "price" ], [ "lower" ], [ "than" ], [ "50" ], [ "and" ], [ "have" ], [ "appelations" ], [ "in" ], [ "monterey" ], [ "county" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "wine", "JJ" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "price", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "50", "CD" ], [ "and", "CC" ], [ "have", "VBP" ], [ "appelations", "NNS" ], [ "in", "IN" ], [ "monterey", "JJ" ], [ "county", "NN" ], [ "?", "." ] ], "values": [ "Monterey", "Monterey County", "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(0) Filter(2) A(0) C(6) T(1) V(0) Filter(4) A(0) C(13) T(2) V(2)" }, { "db_id": "wine_1", "query": "SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = \"Monterey\" AND T2.price < 50", "query_toks": [ "SELECT", "T2.Name", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T1.County", "=", "``", "Monterey", "''", "AND", "T2.price", "<", "50" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t1", ".", "county", "=", "value", "and", "t2", ".", "price", "<", "value" ], "question": "Give the neames of wines with prices below 50 and with appelations in Monterey county.", "question_toks": [ "give", "neames", "of", "wine", "with", "price", "below", "50", "and", "with", "appelations", "in", "monterey", "county", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Monterey\"", null ], "and", [ false, 4, [ 0, [ 0, 17, false ], null ], 50.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Give", "the", "neames", "of", "wines", "with", "prices", "below", "50", "and", "with", "appelations", "in", "Monterey", "county", "." ], "question_arg": [ [ "give" ], [ "neames" ], [ "of" ], [ "wine" ], [ "with" ], [ "price" ], [ "below" ], [ "50" ], [ "and" ], [ "with" ], [ "appelations" ], [ "in" ], [ "monterey" ], [ "county" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "neames", "NNS" ], [ "of", "IN" ], [ "wine", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "below", "IN" ], [ "50", "CD" ], [ "and", "CC" ], [ "with", "IN" ], [ "appelations", "NNS" ], [ "in", "IN" ], [ "monterey", "JJ" ], [ "county", "NN" ], [ ".", "." ] ], "values": [ "Monterey", "Monterey County", "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(0) Filter(2) A(0) C(6) T(1) V(0) Filter(4) A(0) C(13) T(2) V(2)" }, { "db_id": "wine_1", "query": "SELECT count(*) , Grape FROM WINE GROUP BY Grape", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "Grape", "FROM", "WINE", "GROUP", "BY", "Grape" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "grape", "from", "wine", "group", "by", "grape" ], "question": "What are the numbers of wines for different grapes?", "question_toks": [ "what", "are", "number", "of", "wine", "for", "different", "grape", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "numbers", "of", "wines", "for", "different", "grapes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "number" ], [ "of" ], [ "wine" ], [ "for" ], [ "different" ], [ "grape" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "for", "IN" ], [ "different", "JJ" ], [ "grape", "NN" ], [ "?", "." ] ], "values": [ "Numbers" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(2) A(0) C(2) T(2)" }, { "db_id": "wine_1", "query": "SELECT count(*) , Grape FROM WINE GROUP BY Grape", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "Grape", "FROM", "WINE", "GROUP", "BY", "Grape" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "grape", "from", "wine", "group", "by", "grape" ], "question": "How many wines are there for each grape?", "question_toks": [ "how", "many", "wine", "are", "there", "for", "each", "grape", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "How", "many", "wines", "are", "there", "for", "each", "grape", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "wine" ], [ "are" ], [ "there" ], [ "for" ], [ "each" ], [ "grape" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "wine", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "for", "IN" ], [ "each", "DT" ], [ "grape", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(2) A(0) C(2) T(2)" }, { "db_id": "wine_1", "query": "SELECT avg(Price) , YEAR FROM WINE GROUP BY YEAR", "query_toks": [ "SELECT", "avg", "(", "Price", ")", ",", "YEAR", "FROM", "WINE", "GROUP", "BY", "YEAR" ], "query_toks_no_value": [ "select", "avg", "(", "price", ")", ",", "year", "from", "wine", "group", "by", "year" ], "question": "What are the average prices of wines for different years?", "question_toks": [ "what", "are", "average", "price", "of", "wine", "for", "different", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "average", "prices", "of", "wines", "for", "different", "years", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "price" ], [ "of" ], [ "wine" ], [ "for" ], [ "different" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "for", "IN" ], [ "different", "JJ" ], [ "year", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(13) T(2) A(0) C(12) T(2)" }, { "db_id": "wine_1", "query": "SELECT avg(Price) , YEAR FROM WINE GROUP BY YEAR", "query_toks": [ "SELECT", "avg", "(", "Price", ")", ",", "YEAR", "FROM", "WINE", "GROUP", "BY", "YEAR" ], "query_toks_no_value": [ "select", "avg", "(", "price", ")", ",", "year", "from", "wine", "group", "by", "year" ], "question": "What is the average prices of wines for each each?", "question_toks": [ "what", "is", "average", "price", "of", "wine", "for", "each", "each", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "average", "prices", "of", "wines", "for", "each", "each", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "price" ], [ "of" ], [ "wine" ], [ "for" ], [ "each" ], [ "each" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "each", "DT" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(13) T(2) A(0) C(12) T(2)" }, { "db_id": "wine_1", "query": "SELECT DISTINCT Name FROM WINE WHERE Price > (SELECT min(Price) FROM wine WHERE Winery = \"John Anthony\")", "query_toks": [ "SELECT", "DISTINCT", "Name", "FROM", "WINE", "WHERE", "Price", ">", "(", "SELECT", "min", "(", "Price", ")", "FROM", "wine", "WHERE", "Winery", "=", "``", "John", "Anthony", "''", ")" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "wine", "where", "price", ">", "(", "select", "min", "(", "price", ")", "from", "wine", "where", "winery", "=", "value", ")" ], "question": "Find the distinct names of all wines that have prices higher than some wines from John Anthony winery.", "question_toks": [ "find", "distinct", "name", "of", "all", "wine", "that", "have", "price", "higher", "than", "some", "wine", "from", "john", "anthony", "winery", "." ], "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, 3, [ 0, [ 0, 17, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"John Anthony\"", null ] ] }, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Find", "the", "distinct", "names", "of", "all", "wines", "that", "have", "prices", "higher", "than", "some", "wines", "from", "John", "Anthony", "winery", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "name" ], [ "of" ], [ "all" ], [ "wine" ], [ "that" ], [ "have" ], [ "price" ], [ "higher" ], [ "than" ], [ "some" ], [ "wine" ], [ "from" ], [ "john" ], [ "anthony" ], [ "winery" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "wine", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "some", "DT" ], [ "wine", "NN" ], [ "from", "IN" ], [ "john", "NN" ], [ "anthony", "NN" ], [ "winery", "NN" ], [ ".", "." ] ], "values": [ "John Anthony" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(11) T(2) Filter(13) A(0) C(13) T(2) Root(3) Sel(0) N(0) A(2) C(13) T(2) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT DISTINCT Name FROM WINE WHERE Price > (SELECT min(Price) FROM wine WHERE Winery = \"John Anthony\")", "query_toks": [ "SELECT", "DISTINCT", "Name", "FROM", "WINE", "WHERE", "Price", ">", "(", "SELECT", "min", "(", "Price", ")", "FROM", "wine", "WHERE", "Winery", "=", "``", "John", "Anthony", "''", ")" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "wine", "where", "price", ">", "(", "select", "min", "(", "price", ")", "from", "wine", "where", "winery", "=", "value", ")" ], "question": "What are the distinct names of wines with prices higher than any wine from John Anthony winery.", "question_toks": [ "what", "are", "distinct", "name", "of", "wine", "with", "price", "higher", "than", "any", "wine", "from", "john", "anthony", "winery", "." ], "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, 3, [ 0, [ 0, 17, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"John Anthony\"", null ] ] }, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "distinct", "names", "of", "wines", "with", "prices", "higher", "than", "any", "wine", "from", "John", "Anthony", "winery", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "name" ], [ "of" ], [ "wine" ], [ "with" ], [ "price" ], [ "higher" ], [ "than" ], [ "any" ], [ "wine" ], [ "from" ], [ "john" ], [ "anthony" ], [ "winery" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "any", "DT" ], [ "wine", "NN" ], [ "from", "IN" ], [ "john", "NN" ], [ "anthony", "NN" ], [ "winery", "NN" ], [ ".", "." ] ], "values": [ "John Anthony" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(11) T(2) Filter(13) A(0) C(13) T(2) Root(3) Sel(0) N(0) A(2) C(13) T(2) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT DISTINCT Name FROM WINE ORDER BY Name", "query_toks": [ "SELECT", "DISTINCT", "Name", "FROM", "WINE", "ORDER", "BY", "Name" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "wine", "order", "by", "name" ], "question": "List the names of all distinct wines in alphabetical order.", "question_toks": [ "list", "name", "of", "all", "distinct", "wine", "in", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "distinct", "wines", "in", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "distinct" ], [ "wine" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "wine", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(11) T(2) Order(1) A(0) C(11) T(2)" }, { "db_id": "wine_1", "query": "SELECT DISTINCT Name FROM WINE ORDER BY Name", "query_toks": [ "SELECT", "DISTINCT", "Name", "FROM", "WINE", "ORDER", "BY", "Name" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "wine", "order", "by", "name" ], "question": "What are the names of wines, sorted in alphabetical order?", "question_toks": [ "what", "are", "name", "of", "wine", ",", "sorted", "in", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "wines", ",", "sorted", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "wine" ], [ "," ], [ "sorted" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(11) T(2) Order(1) A(0) C(11) T(2)" }, { "db_id": "wine_1", "query": "SELECT DISTINCT Name FROM WINE ORDER BY price", "query_toks": [ "SELECT", "DISTINCT", "Name", "FROM", "WINE", "ORDER", "BY", "price" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "wine", "order", "by", "price" ], "question": "List the names of all distinct wines ordered by price.", "question_toks": [ "list", "name", "of", "all", "distinct", "wine", "ordered", "by", "price", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 17, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "distinct", "wines", "ordered", "by", "price", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "distinct" ], [ "wine" ], [ "ordered" ], [ "by" ], [ "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "wine", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "price", "NN" ], [ ".", "." ] ], "values": [ "Pride", "Prime" ], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(11) T(2) Order(1) A(0) C(13) T(2)" }, { "db_id": "wine_1", "query": "SELECT DISTINCT Name FROM WINE ORDER BY price", "query_toks": [ "SELECT", "DISTINCT", "Name", "FROM", "WINE", "ORDER", "BY", "price" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "wine", "order", "by", "price" ], "question": "What are the names of wines, sorted by price ascending?", "question_toks": [ "what", "are", "name", "of", "wine", ",", "sorted", "by", "price", "ascending", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 17, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "wines", ",", "sorted", "by", "price", "ascending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "wine" ], [ "," ], [ "sorted" ], [ "by" ], [ "price" ], [ "ascending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "price", "NN" ], [ "ascending", "NN" ], [ "?", "." ] ], "values": [ "Pride", "Prime" ], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(11) T(2) Order(1) A(0) C(13) T(2)" }, { "db_id": "wine_1", "query": "SELECT T1.Area FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING T2.year < 2010 ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Area", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "GROUP", "BY", "T2.Appelation", "HAVING", "T2.year", "<", "2010", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "area", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "group", "by", "t2", ".", "appelation", "having", "t2", ".", "year", "<", "value", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the area of the appelation that produces the highest number of wines before the year of 2010?", "question_toks": [ "what", "is", "area", "of", "appelation", "that", "produce", "highest", "number", "of", "wine", "before", "year", "of", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 4, [ 0, [ 0, 16, false ], null ], 2010.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "area", "of", "the", "appelation", "that", "produces", "the", "highest", "number", "of", "wines", "before", "the", "year", "of", "2010", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "area" ], [ "of" ], [ "appelation" ], [ "that" ], [ "produce" ], [ "highest" ], [ "number" ], [ "of" ], [ "wine" ], [ "before" ], [ "year" ], [ "of" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "area", "NN" ], [ "of", "IN" ], [ "appelation", "NN" ], [ "that", "IN" ], [ "produce", "VBP" ], [ "highest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "before", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "Numbers", "2010" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(0) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(2) Filter(4) A(0) C(12) T(2) V(1)" }, { "db_id": "wine_1", "query": "SELECT T1.Area FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING T2.year < 2010 ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Area", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "GROUP", "BY", "T2.Appelation", "HAVING", "T2.year", "<", "2010", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "area", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "group", "by", "t2", ".", "appelation", "having", "t2", ".", "year", "<", "value", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the area for the appelation which produced the most wines prior to 2010?", "question_toks": [ "what", "is", "area", "for", "appelation", "which", "produced", "most", "wine", "prior", "to", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 4, [ 0, [ 0, 16, false ], null ], 2010.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "area", "for", "the", "appelation", "which", "produced", "the", "most", "wines", "prior", "to", "2010", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "area" ], [ "for" ], [ "appelation" ], [ "which" ], [ "produced" ], [ "most" ], [ "wine" ], [ "prior" ], [ "to" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "area", "NN" ], [ "for", "IN" ], [ "appelation", "NN" ], [ "which", "WDT" ], [ "produced", "VBD" ], [ "most", "JJS" ], [ "wine", "JJ" ], [ "prior", "RB" ], [ "to", "TO" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "2010" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(0) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(2) Filter(4) A(0) C(12) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Color", "FROM", "GRAPES", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Grape", "=", "T2.Grape", "GROUP", "BY", "T2.Grape", "ORDER", "BY", "AVG", "(", "Price", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "color", "from", "grapes", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "grape", "=", "t2", ".", "grape", "group", "by", "t2", ".", "grape", "order", "by", "avg", "(", "price", ")", "desc", "limit", "value" ], "question": "What is the color of the grape whose wine products has the highest average price?", "question_toks": [ "what", "is", "color", "of", "grape", "whose", "wine", "product", "ha", "highest", "average", "price", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 17, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "color", "of", "the", "grape", "whose", "wine", "products", "has", "the", "highest", "average", "price", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "color" ], [ "of" ], [ "grape" ], [ "whose" ], [ "wine" ], [ "product" ], [ "ha" ], [ "highest" ], [ "average" ], [ "price" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "color", "NN" ], [ "of", "IN" ], [ "grape", "NN" ], [ "whose", "WP$" ], [ "wine", "JJ" ], [ "product", "NN" ], [ "ha", "NN" ], [ "highest", "JJS" ], [ "average", "JJ" ], [ "price", "NN" ], [ "?", "." ] ], "values": [ "Pride", "Prime" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(3) T(0) Sup(0) A(5) C(13) T(2)" }, { "db_id": "wine_1", "query": "SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Color", "FROM", "GRAPES", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Grape", "=", "T2.Grape", "GROUP", "BY", "T2.Grape", "ORDER", "BY", "AVG", "(", "Price", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "color", "from", "grapes", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "grape", "=", "t2", ".", "grape", "group", "by", "t2", ".", "grape", "order", "by", "avg", "(", "price", ")", "desc", "limit", "value" ], "question": "Give the color of the grape whose wine products have the highest average price?", "question_toks": [ "give", "color", "of", "grape", "whose", "wine", "product", "have", "highest", "average", "price", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 17, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Give", "the", "color", "of", "the", "grape", "whose", "wine", "products", "have", "the", "highest", "average", "price", "?" ], "question_arg": [ [ "give" ], [ "color" ], [ "of" ], [ "grape" ], [ "whose" ], [ "wine" ], [ "product" ], [ "have" ], [ "highest" ], [ "average" ], [ "price" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "color", "NN" ], [ "of", "IN" ], [ "grape", "NN" ], [ "whose", "WP$" ], [ "wine", "JJ" ], [ "product", "NN" ], [ "have", "VBP" ], [ "highest", "JJS" ], [ "average", "JJ" ], [ "price", "NN" ], [ "?", "." ] ], "values": [ "Pride", "Prime" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(3) T(0) Sup(0) A(5) C(13) T(2)" }, { "db_id": "wine_1", "query": "SELECT DISTINCT Name FROM WINE WHERE YEAR < 2000 OR YEAR > 2010", "query_toks": [ "SELECT", "DISTINCT", "Name", "FROM", "WINE", "WHERE", "YEAR", "<", "2000", "OR", "YEAR", ">", "2010" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "wine", "where", "year", "<", "value", "or", "year", ">", "value" ], "question": "Find the distinct names of wines produced before the year of 2000 or after the year of 2010.", "question_toks": [ "find", "distinct", "name", "of", "wine", "produced", "before", "year", "of", "year", "or", "after", "year", "of", "year", "." ], "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, 16, false ], null ], 2000.0, null ], "or", [ false, 3, [ 0, [ 0, 16, false ], null ], 2010.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Find", "the", "distinct", "names", "of", "wines", "produced", "before", "the", "year", "of", "2000", "or", "after", "the", "year", "of", "2010", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "name" ], [ "of" ], [ "wine" ], [ "produced" ], [ "before" ], [ "year" ], [ "of" ], [ "year" ], [ "or" ], [ "after" ], [ "year" ], [ "of" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "produced", "VBN" ], [ "before", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "2000", "CD" ], [ "or", "CC" ], [ "after", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "2010", "CD" ], [ ".", "." ] ], "values": [ "2000", "2010" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(11) T(2) Filter(1) Filter(4) A(0) C(12) T(2) V(0) Filter(5) A(0) C(12) T(2) V(1)" }, { "db_id": "wine_1", "query": "SELECT DISTINCT Name FROM WINE WHERE YEAR < 2000 OR YEAR > 2010", "query_toks": [ "SELECT", "DISTINCT", "Name", "FROM", "WINE", "WHERE", "YEAR", "<", "2000", "OR", "YEAR", ">", "2010" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "wine", "where", "year", "<", "value", "or", "year", ">", "value" ], "question": "Give the distinct names of wines made before 2000 or after 2010.", "question_toks": [ "give", "distinct", "name", "of", "wine", "made", "before", "year", "or", "after", "year", "." ], "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, 16, false ], null ], 2000.0, null ], "or", [ false, 3, [ 0, [ 0, 16, false ], null ], 2010.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Give", "the", "distinct", "names", "of", "wines", "made", "before", "2000", "or", "after", "2010", "." ], "question_arg": [ [ "give" ], [ "distinct" ], [ "name" ], [ "of" ], [ "wine" ], [ "made" ], [ "before" ], [ "year" ], [ "or" ], [ "after" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "made", "VBN" ], [ "before", "IN" ], [ "2000", "CD" ], [ "or", "CC" ], [ "after", "IN" ], [ "2010", "CD" ], [ ".", "." ] ], "values": [ "2010", "2000" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(11) T(2) Filter(1) Filter(4) A(0) C(12) T(2) V(1) Filter(5) A(0) C(12) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100", "query_toks": [ "SELECT", "DISTINCT", "Winery", "FROM", "WINE", "WHERE", "Price", "BETWEEN", "50", "AND", "100" ], "query_toks_no_value": [ "select", "distinct", "winery", "from", "wine", "where", "price", "between", "value", "and", "value" ], "question": "Find the distinct winery of wines having price between 50 and 100.", "question_toks": [ "find", "distinct", "winery", "of", "wine", "having", "price", "between", "50", "and", "100", "." ], "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": [ [ false, 1, [ 0, [ 0, 17, false ], null ], 50.0, 100.0 ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Find", "the", "distinct", "winery", "of", "wines", "having", "price", "between", "50", "and", "100", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "winery" ], [ "of" ], [ "wine" ], [ "having" ], [ "price" ], [ "between" ], [ "50" ], [ "and" ], [ "100" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "winery", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "having", "VBG" ], [ "price", "NN" ], [ "between", "IN" ], [ "50", "CD" ], [ "and", "CC" ], [ "100", "CD" ], [ ".", "." ] ], "values": [ "Pride", "100", "Prime", "50" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(10) T(2) Filter(8) A(0) C(13) T(2) V(3) V(1)" }, { "db_id": "wine_1", "query": "SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100", "query_toks": [ "SELECT", "DISTINCT", "Winery", "FROM", "WINE", "WHERE", "Price", "BETWEEN", "50", "AND", "100" ], "query_toks_no_value": [ "select", "distinct", "winery", "from", "wine", "where", "price", "between", "value", "and", "value" ], "question": "What are the distinct wineries which produce wines costing between 50 and 100?", "question_toks": [ "what", "are", "distinct", "winery", "which", "produce", "wine", "costing", "between", "50", "and", "100", "?" ], "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": [ [ false, 1, [ 0, [ 0, 17, false ], null ], 50.0, 100.0 ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "distinct", "wineries", "which", "produce", "wines", "costing", "between", "50", "and", "100", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "winery" ], [ "which" ], [ "produce" ], [ "wine" ], [ "costing" ], [ "between" ], [ "50" ], [ "and" ], [ "100" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "winery", "NN" ], [ "which", "WDT" ], [ "produce", "VBP" ], [ "wine", "NN" ], [ "costing", "NN" ], [ "between", "IN" ], [ "50", "CD" ], [ "and", "CC" ], [ "100", "CD" ], [ "?", "." ] ], "values": [ "100", "50" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(10) T(2) Filter(8) A(0) C(13) T(2) V(1) V(0)" }, { "db_id": "wine_1", "query": "SELECT AVG(Price) , AVG(Cases) FROM WINE WHERE YEAR = 2009 AND Grape = \"Zinfandel\"", "query_toks": [ "SELECT", "AVG", "(", "Price", ")", ",", "AVG", "(", "Cases", ")", "FROM", "WINE", "WHERE", "YEAR", "=", "2009", "AND", "Grape", "=", "``", "Zinfandel", "''" ], "query_toks_no_value": [ "select", "avg", "(", "price", ")", ",", "avg", "(", "cases", ")", "from", "wine", "where", "year", "=", "value", "and", "grape", "=", "value" ], "question": "What are the average prices and cases of wines produced in the year of 2009 and made of Zinfandel grape?", "question_toks": [ "what", "are", "average", "price", "and", "case", "of", "wine", "produced", "in", "year", "of", "year", "and", "made", "of", "zinfandel", "grape", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 17, false ], null ] ], [ 5, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], 2009.0, null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Zinfandel\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "average", "prices", "and", "cases", "of", "wines", "produced", "in", "the", "year", "of", "2009", "and", "made", "of", "Zinfandel", "grape", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "price" ], [ "and" ], [ "case" ], [ "of" ], [ "wine" ], [ "produced" ], [ "in" ], [ "year" ], [ "of" ], [ "year" ], [ "and" ], [ "made" ], [ "of" ], [ "zinfandel" ], [ "grape" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "grape" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "price", "NN" ], [ "and", "CC" ], [ "case", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "produced", "VBN" ], [ "in", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "2009", "CD" ], [ "and", "CC" ], [ "made", "VBD" ], [ "of", "IN" ], [ "zinfandel", "NN" ], [ "grape", "NN" ], [ "?", "." ] ], "values": [ "Zinfandel", "2009" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(13) T(2) A(5) C(15) T(2) Filter(0) Filter(2) A(0) C(12) T(2) V(1) Filter(2) A(0) C(2) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT AVG(Price) , AVG(Cases) FROM WINE WHERE YEAR = 2009 AND Grape = \"Zinfandel\"", "query_toks": [ "SELECT", "AVG", "(", "Price", ")", ",", "AVG", "(", "Cases", ")", "FROM", "WINE", "WHERE", "YEAR", "=", "2009", "AND", "Grape", "=", "``", "Zinfandel", "''" ], "query_toks_no_value": [ "select", "avg", "(", "price", ")", ",", "avg", "(", "cases", ")", "from", "wine", "where", "year", "=", "value", "and", "grape", "=", "value" ], "question": "Give the average price and case of wines made from Zinfandel grapes in the year 2009.", "question_toks": [ "give", "average", "price", "and", "case", "of", "wine", "made", "from", "zinfandel", "grape", "in", "year", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 17, false ], null ] ], [ 5, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], 2009.0, null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Zinfandel\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Give", "the", "average", "price", "and", "case", "of", "wines", "made", "from", "Zinfandel", "grapes", "in", "the", "year", "2009", "." ], "question_arg": [ [ "give" ], [ "average" ], [ "price" ], [ "and" ], [ "case" ], [ "of" ], [ "wine" ], [ "made" ], [ "from" ], [ "zinfandel" ], [ "grape" ], [ "in" ], [ "year" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "grape" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "and", "CC" ], [ "case", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "made", "VBN" ], [ "from", "IN" ], [ "zinfandel", "NN" ], [ "grape", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2009", "CD" ], [ ".", "." ] ], "values": [ "Cade", "2009", "Prime", "Zinfandel", "Pride" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(13) T(2) A(5) C(15) T(2) Filter(0) Filter(2) A(0) C(12) T(2) V(1) Filter(2) A(0) C(2) T(2) V(3)" }, { "db_id": "wine_1", "query": "SELECT max(Price) , max(Score) FROM WINE WHERE Appelation = \"St. Helena\"", "query_toks": [ "SELECT", "max", "(", "Price", ")", ",", "max", "(", "Score", ")", "FROM", "WINE", "WHERE", "Appelation", "=", "``", "St.", "Helena", "''" ], "query_toks_no_value": [ "select", "max", "(", "price", ")", ",", "max", "(", "score", ")", "from", "wine", "where", "appelation", "=", "value" ], "question": "What are the maximum price and score of wines produced by St. Helena appelation?", "question_toks": [ "what", "are", "maximum", "price", "and", "score", "of", "wine", "produced", "by", "st.", "helena", "appelation", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 17, false ], null ] ], [ 1, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"St. Helena\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "maximum", "price", "and", "score", "of", "wines", "produced", "by", "St.", "Helena", "appelation", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "price" ], [ "and" ], [ "score" ], [ "of" ], [ "wine" ], [ "produced" ], [ "by" ], [ "helena" ], [ "appelation" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "price", "NN" ], [ "and", "CC" ], [ "score", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "st.", "JJ" ], [ "helena", "NN" ], [ "appelation", "NN" ], [ "?", "." ] ], "values": [ "Pride", "St. Helena", "Prime" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(13) T(2) A(1) C(14) T(2) Filter(2) A(0) C(5) T(2) V(1)" }, { "db_id": "wine_1", "query": "SELECT max(Price) , max(Score) FROM WINE WHERE Appelation = \"St. Helena\"", "query_toks": [ "SELECT", "max", "(", "Price", ")", ",", "max", "(", "Score", ")", "FROM", "WINE", "WHERE", "Appelation", "=", "``", "St.", "Helena", "''" ], "query_toks_no_value": [ "select", "max", "(", "price", ")", ",", "max", "(", "score", ")", "from", "wine", "where", "appelation", "=", "value" ], "question": "Give the maximum price and score for wines produced in the appelation St. Helena.", "question_toks": [ "give", "maximum", "price", "and", "score", "for", "wine", "produced", "in", "appelation", "st.", "helena", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 17, false ], null ] ], [ 1, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"St. Helena\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Give", "the", "maximum", "price", "and", "score", "for", "wines", "produced", "in", "the", "appelation", "St.", "Helena", "." ], "question_arg": [ [ "give" ], [ "maximum" ], [ "price" ], [ "and" ], [ "score" ], [ "for" ], [ "wine" ], [ "produced" ], [ "in" ], [ "appelation" ], [ "helena" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "maximum", "JJ" ], [ "price", "NN" ], [ "and", "CC" ], [ "score", "NN" ], [ "for", "IN" ], [ "wine", "NN" ], [ "produced", "VBN" ], [ "in", "IN" ], [ "appelation", "NN" ], [ "st.", "NN" ], [ "helena", "NN" ], [ ".", "." ] ], "values": [ "Pride", "St. Helena", "Prime" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(13) T(2) A(1) C(14) T(2) Filter(2) A(0) C(5) T(2) V(1)" }, { "db_id": "wine_1", "query": "SELECT max(Price) , max(Score) , YEAR FROM WINE GROUP BY YEAR", "query_toks": [ "SELECT", "max", "(", "Price", ")", ",", "max", "(", "Score", ")", ",", "YEAR", "FROM", "WINE", "GROUP", "BY", "YEAR" ], "query_toks_no_value": [ "select", "max", "(", "price", ")", ",", "max", "(", "score", ")", ",", "year", "from", "wine", "group", "by", "year" ], "question": "What are the maximum price and score of wines in each year?", "question_toks": [ "what", "are", "maximum", "price", "and", "score", "of", "wine", "in", "each", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 17, false ], null ] ], [ 1, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "maximum", "price", "and", "score", "of", "wines", "in", "each", "year", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "price" ], [ "and" ], [ "score" ], [ "of" ], [ "wine" ], [ "in" ], [ "each" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "price", "NN" ], [ "and", "CC" ], [ "score", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "year", "NN" ], [ "?", "." ] ], "values": [ "Pride", "Prime" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(1) C(13) T(2) A(1) C(14) T(2) A(0) C(12) T(2)" }, { "db_id": "wine_1", "query": "SELECT max(Price) , max(Score) , YEAR FROM WINE GROUP BY YEAR", "query_toks": [ "SELECT", "max", "(", "Price", ")", ",", "max", "(", "Score", ")", ",", "YEAR", "FROM", "WINE", "GROUP", "BY", "YEAR" ], "query_toks_no_value": [ "select", "max", "(", "price", ")", ",", "max", "(", "score", ")", ",", "year", "from", "wine", "group", "by", "year" ], "question": "What are the maximum price and score of wines for each year?", "question_toks": [ "what", "are", "maximum", "price", "and", "score", "of", "wine", "for", "each", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 17, false ], null ] ], [ 1, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "maximum", "price", "and", "score", "of", "wines", "for", "each", "year", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "price" ], [ "and" ], [ "score" ], [ "of" ], [ "wine" ], [ "for" ], [ "each" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "price", "NN" ], [ "and", "CC" ], [ "score", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "year", "NN" ], [ "?", "." ] ], "values": [ "Pride", "Prime" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(1) C(13) T(2) A(1) C(14) T(2) A(0) C(12) T(2)" }, { "db_id": "wine_1", "query": "SELECT avg(Price) , avg(Score) , Appelation FROM WINE GROUP BY Appelation", "query_toks": [ "SELECT", "avg", "(", "Price", ")", ",", "avg", "(", "Score", ")", ",", "Appelation", "FROM", "WINE", "GROUP", "BY", "Appelation" ], "query_toks_no_value": [ "select", "avg", "(", "price", ")", ",", "avg", "(", "score", ")", ",", "appelation", "from", "wine", "group", "by", "appelation" ], "question": "What are the average price and score of wines grouped by appelation?", "question_toks": [ "what", "are", "average", "price", "and", "score", "of", "wine", "grouped", "by", "appelation", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 17, false ], null ] ], [ 5, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "average", "price", "and", "score", "of", "wines", "grouped", "by", "appelation", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "price" ], [ "and" ], [ "score" ], [ "of" ], [ "wine" ], [ "grouped" ], [ "by" ], [ "appelation" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "price", "NN" ], [ "and", "CC" ], [ "score", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "grouped", "VBN" ], [ "by", "IN" ], [ "appelation", "NN" ], [ "?", "." ] ], "values": [ "Pride", "Prime" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(5) C(13) T(2) A(5) C(14) T(2) A(0) C(5) T(2)" }, { "db_id": "wine_1", "query": "SELECT avg(Price) , avg(Score) , Appelation FROM WINE GROUP BY Appelation", "query_toks": [ "SELECT", "avg", "(", "Price", ")", ",", "avg", "(", "Score", ")", ",", "Appelation", "FROM", "WINE", "GROUP", "BY", "Appelation" ], "query_toks_no_value": [ "select", "avg", "(", "price", ")", ",", "avg", "(", "score", ")", ",", "appelation", "from", "wine", "group", "by", "appelation" ], "question": "What are the average price and score of wines for each appelation?", "question_toks": [ "what", "are", "average", "price", "and", "score", "of", "wine", "for", "each", "appelation", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 17, false ], null ] ], [ 5, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "average", "price", "and", "score", "of", "wines", "for", "each", "appelation", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "price" ], [ "and" ], [ "score" ], [ "of" ], [ "wine" ], [ "for" ], [ "each" ], [ "appelation" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "price", "NN" ], [ "and", "CC" ], [ "score", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "appelation", "NN" ], [ "?", "." ] ], "values": [ "Pride", "Prime" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(5) C(13) T(2) A(5) C(14) T(2) A(0) C(5) T(2)" }, { "db_id": "wine_1", "query": "SELECT Winery FROM WINE GROUP BY Winery HAVING count(*) >= 4", "query_toks": [ "SELECT", "Winery", "FROM", "WINE", "GROUP", "BY", "Winery", "HAVING", "count", "(", "*", ")", ">", "=", "4" ], "query_toks_no_value": [ "select", "winery", "from", "wine", "group", "by", "winery", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Find the wineries that have at least four wines.", "question_toks": [ "find", "winery", "that", "have", "at", "least", "four", "wine", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 4.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Find", "the", "wineries", "that", "have", "at", "least", "four", "wines", "." ], "question_arg": [ [ "find" ], [ "winery" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "four" ], [ "wine" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "winery", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "four", "CD" ], [ "wine", "NN" ], [ ".", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT Winery FROM WINE GROUP BY Winery HAVING count(*) >= 4", "query_toks": [ "SELECT", "Winery", "FROM", "WINE", "GROUP", "BY", "Winery", "HAVING", "count", "(", "*", ")", ">", "=", "4" ], "query_toks_no_value": [ "select", "winery", "from", "wine", "group", "by", "winery", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Which wineries produce at least four wines?", "question_toks": [ "which", "winery", "produce", "at", "least", "four", "wine", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 4.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Which", "wineries", "produce", "at", "least", "four", "wines", "?" ], "question_arg": [ [ "which" ], [ "winery" ], [ "produce" ], [ "at" ], [ "least" ], [ "four" ], [ "wine" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "winery", "NN" ], [ "produce", "NN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "four", "CD" ], [ "wine", "NN" ], [ "?", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING count(*) <= 3", "query_toks": [ "SELECT", "T1.County", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "GROUP", "BY", "T2.Appelation", "HAVING", "count", "(", "*", ")", "<", "=", "3" ], "query_toks_no_value": [ "select", "t1", ".", "county", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "group", "by", "t2", ".", "appelation", "having", "count", "(", "*", ")", "<", "=", "value" ], "question": "Find the country of all appelations who have at most three wines.", "question_toks": [ "find", "country", "of", "all", "appelations", "who", "have", "at", "most", "three", "wine", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 6, [ 0, [ 3, 0, false ], null ], 3.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, 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", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Find", "the", "country", "of", "all", "appelations", "who", "have", "at", "most", "three", "wines", "." ], "question_arg": [ [ "find" ], [ "country" ], [ "of" ], [ "all" ], [ "appelations" ], [ "who" ], [ "have" ], [ "at" ], [ "most" ], [ "three" ], [ "wine" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "country", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "appelations", "NNS" ], [ "who", "WP" ], [ "have", "VBP" ], [ "at", "IN" ], [ "most", "JJS" ], [ "three", "CD" ], [ "wine", "NN" ], [ ".", "." ] ], "values": [ "3" ], "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(6) A(3) C(0) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING count(*) <= 3", "query_toks": [ "SELECT", "T1.County", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "GROUP", "BY", "T2.Appelation", "HAVING", "count", "(", "*", ")", "<", "=", "3" ], "query_toks_no_value": [ "select", "t1", ".", "county", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "group", "by", "t2", ".", "appelation", "having", "count", "(", "*", ")", "<", "=", "value" ], "question": "What are the countries for appelations with at most 3 wines?", "question_toks": [ "what", "are", "country", "for", "appelations", "with", "at", "most", "3", "wine", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 6, [ 0, [ 3, 0, false ], null ], 3.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, 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", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "countries", "for", "appelations", "with", "at", "most", "3", "wines", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "country" ], [ "for" ], [ "appelations" ], [ "with" ], [ "at" ], [ "most" ], [ "3" ], [ "wine" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "for", "IN" ], [ "appelations", "NNS" ], [ "with", "IN" ], [ "at", "IN" ], [ "most", "JJS" ], [ "3", "CD" ], [ "wine", "NN" ], [ "?", "." ] ], "values": [ "3" ], "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(6) A(3) C(0) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT Name FROM WINE WHERE YEAR < (SELECT min(YEAR) FROM WINE WHERE Winery = \"Brander\")", "query_toks": [ "SELECT", "Name", "FROM", "WINE", "WHERE", "YEAR", "<", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "WINE", "WHERE", "Winery", "=", "``", "Brander", "''", ")" ], "query_toks_no_value": [ "select", "name", "from", "wine", "where", "year", "<", "(", "select", "min", "(", "year", ")", "from", "wine", "where", "winery", "=", "value", ")" ], "question": "What are the names of wines whose production year are before the year of all wines by Brander winery?", "question_toks": [ "what", "are", "name", "of", "wine", "whose", "production", "year", "are", "before", "year", "of", "all", "wine", "by", "brander", "winery", "?" ], "sql": { "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": [ [ false, 4, [ 0, [ 0, 16, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Brander\"", null ] ] }, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "wines", "whose", "production", "year", "are", "before", "the", "year", "of", "all", "wines", "by", "Brander", "winery", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "wine" ], [ "whose" ], [ "production" ], [ "year" ], [ "are" ], [ "before" ], [ "year" ], [ "of" ], [ "all" ], [ "wine" ], [ "by" ], [ "brander" ], [ "winery" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "whose", "WP$" ], [ "production", "NN" ], [ "year", "NN" ], [ "are", "VBP" ], [ "before", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "wine", "NN" ], [ "by", "IN" ], [ "brander", "NN" ], [ "winery", "NN" ], [ "?", "." ] ], "values": [ "Brander" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(12) A(0) C(12) T(2) Root(3) Sel(0) N(0) A(2) C(12) T(2) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT Name FROM WINE WHERE YEAR < (SELECT min(YEAR) FROM WINE WHERE Winery = \"Brander\")", "query_toks": [ "SELECT", "Name", "FROM", "WINE", "WHERE", "YEAR", "<", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "WINE", "WHERE", "Winery", "=", "``", "Brander", "''", ")" ], "query_toks_no_value": [ "select", "name", "from", "wine", "where", "year", "<", "(", "select", "min", "(", "year", ")", "from", "wine", "where", "winery", "=", "value", ")" ], "question": "What are the names of wines produced before any wine from the Brander winery?", "question_toks": [ "what", "are", "name", "of", "wine", "produced", "before", "any", "wine", "from", "brander", "winery", "?" ], "sql": { "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": [ [ false, 4, [ 0, [ 0, 16, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Brander\"", null ] ] }, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "wines", "produced", "before", "any", "wine", "from", "the", "Brander", "winery", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "wine" ], [ "produced" ], [ "before" ], [ "any" ], [ "wine" ], [ "from" ], [ "brander" ], [ "winery" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "produced", "VBN" ], [ "before", "IN" ], [ "any", "DT" ], [ "wine", "NN" ], [ "from", "IN" ], [ "brander", "NN" ], [ "winery", "NN" ], [ "?", "." ] ], "values": [ "Brander" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(12) A(0) C(12) T(2) Root(3) Sel(0) N(0) A(2) C(12) T(2) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT Name FROM WINE WHERE Price > (SELECT max(Price) FROM WINE WHERE YEAR = 2006)", "query_toks": [ "SELECT", "Name", "FROM", "WINE", "WHERE", "Price", ">", "(", "SELECT", "max", "(", "Price", ")", "FROM", "WINE", "WHERE", "YEAR", "=", "2006", ")" ], "query_toks_no_value": [ "select", "name", "from", "wine", "where", "price", ">", "(", "select", "max", "(", "price", ")", "from", "wine", "where", "year", "=", "value", ")" ], "question": "What are the names of wines that are more expensive then all wines made in the year 2006?", "question_toks": [ "what", "are", "name", "of", "wine", "that", "are", "more", "expensive", "then", "all", "wine", "made", "in", "year", "year", "?" ], "sql": { "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": [ [ false, 3, [ 0, [ 0, 17, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], 2006.0, null ] ] }, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "wines", "that", "are", "more", "expensive", "then", "all", "wines", "made", "in", "the", "year", "2006", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "wine" ], [ "that" ], [ "are" ], [ "more" ], [ "expensive" ], [ "then" ], [ "all" ], [ "wine" ], [ "made" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "more", "RBR" ], [ "expensive", "JJ" ], [ "then", "RB" ], [ "all", "DT" ], [ "wine", "NN" ], [ "made", "VBN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2006", "CD" ], [ "?", "." ] ], "values": [ "2006" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(13) A(0) C(13) T(2) Root(3) Sel(0) N(0) A(1) C(13) T(2) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT Name FROM WINE WHERE Price > (SELECT max(Price) FROM WINE WHERE YEAR = 2006)", "query_toks": [ "SELECT", "Name", "FROM", "WINE", "WHERE", "Price", ">", "(", "SELECT", "max", "(", "Price", ")", "FROM", "WINE", "WHERE", "YEAR", "=", "2006", ")" ], "query_toks_no_value": [ "select", "name", "from", "wine", "where", "price", ">", "(", "select", "max", "(", "price", ")", "from", "wine", "where", "year", "=", "value", ")" ], "question": "Give the names of wines with prices above any wine produced in 2006.", "question_toks": [ "give", "name", "of", "wine", "with", "price", "above", "any", "wine", "produced", "in", "year", "." ], "sql": { "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": [ [ false, 3, [ 0, [ 0, 17, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], 2006.0, null ] ] }, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Give", "the", "names", "of", "wines", "with", "prices", "above", "any", "wine", "produced", "in", "2006", "." ], "question_arg": [ [ "give" ], [ "name" ], [ "of" ], [ "wine" ], [ "with" ], [ "price" ], [ "above" ], [ "any" ], [ "wine" ], [ "produced" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "above", "IN" ], [ "any", "DT" ], [ "wine", "NN" ], [ "produced", "VBN" ], [ "in", "IN" ], [ "2006", "CD" ], [ ".", "." ] ], "values": [ "2006" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(13) A(0) C(13) T(2) Root(3) Sel(0) N(0) A(1) C(13) T(2) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = \"White\" GROUP BY T2.Winery ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "T2.Winery", "FROM", "GRAPES", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.GRAPE", "=", "T2.GRAPE", "WHERE", "T1.Color", "=", "``", "White", "''", "GROUP", "BY", "T2.Winery", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t2", ".", "winery", "from", "grapes", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "grape", "=", "t2", ".", "grape", "where", "t1", ".", "color", "=", "value", "group", "by", "t2", ".", "winery", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the top 3 wineries with the greatest number of wines made of white color grapes.", "question_toks": [ "find", "top", "3", "winery", "with", "greatest", "number", "of", "wine", "made", "of", "white", "color", "grape", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"White\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Find", "the", "top", "3", "wineries", "with", "the", "greatest", "number", "of", "wines", "made", "of", "white", "color", "grapes", "." ], "question_arg": [ [ "find" ], [ "top" ], [ "3" ], [ "winery" ], [ "with" ], [ "greatest" ], [ "number" ], [ "of" ], [ "wine" ], [ "made" ], [ "of" ], [ "white" ], [ "color" ], [ "grape" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "top", "JJ" ], [ "3", "CD" ], [ "winery", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "made", "VBN" ], [ "of", "IN" ], [ "white", "JJ" ], [ "color", "NN" ], [ "grape", "NN" ], [ ".", "." ] ], "values": [ "Numbers", "3", "White" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(2) Sup(0) A(3) C(0) T(2) Filter(2) A(0) C(3) T(0) V(2)" }, { "db_id": "wine_1", "query": "SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = \"White\" GROUP BY T2.Winery ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "T2.Winery", "FROM", "GRAPES", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.GRAPE", "=", "T2.GRAPE", "WHERE", "T1.Color", "=", "``", "White", "''", "GROUP", "BY", "T2.Winery", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t2", ".", "winery", "from", "grapes", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "grape", "=", "t2", ".", "grape", "where", "t1", ".", "color", "=", "value", "group", "by", "t2", ".", "winery", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which 3 wineries produce the most wines made from white grapes?", "question_toks": [ "which", "3", "winery", "produce", "most", "wine", "made", "from", "white", "grape", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"White\"", null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Which", "3", "wineries", "produce", "the", "most", "wines", "made", "from", "white", "grapes", "?" ], "question_arg": [ [ "which" ], [ "3" ], [ "winery" ], [ "produce" ], [ "most" ], [ "wine" ], [ "made" ], [ "from" ], [ "white" ], [ "grape" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "3", "CD" ], [ "winery", "NN" ], [ "produce", "NN" ], [ "most", "RBS" ], [ "wine", "JJ" ], [ "made", "VBN" ], [ "from", "IN" ], [ "white", "JJ" ], [ "grape", "NN" ], [ "?", "." ] ], "values": [ "3", "White" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(2) Sup(0) A(3) C(0) T(2) Filter(2) A(0) C(3) T(0) V(1)" }, { "db_id": "wine_1", "query": "SELECT Grape , Winery , YEAR FROM WINE WHERE Price > 100 ORDER BY YEAR", "query_toks": [ "SELECT", "Grape", ",", "Winery", ",", "YEAR", "FROM", "WINE", "WHERE", "Price", ">", "100", "ORDER", "BY", "YEAR" ], "query_toks_no_value": [ "select", "grape", ",", "winery", ",", "year", "from", "wine", "where", "price", ">", "value", "order", "by", "year" ], "question": "List the grape, winery and year of the wines whose price is bigger than 100 ordered by year.", "question_toks": [ "list", "grape", ",", "winery", "and", "year", "of", "wine", "whose", "price", "is", "bigger", "than", "100", "ordered", "by", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 17, false ], null ], 100.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "List", "the", "grape", ",", "winery", "and", "year", "of", "the", "wines", "whose", "price", "is", "bigger", "than", "100", "ordered", "by", "year", "." ], "question_arg": [ [ "list" ], [ "grape" ], [ "," ], [ "winery" ], [ "and" ], [ "year" ], [ "of" ], [ "wine" ], [ "whose" ], [ "price" ], [ "is" ], [ "bigger" ], [ "than" ], [ "100" ], [ "ordered" ], [ "by" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "grape", "NN" ], [ ",", "," ], [ "winery", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "whose", "WP$" ], [ "price", "NN" ], [ "is", "VBZ" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "year", "NN" ], [ ".", "." ] ], "values": [ "Pride", "100", "Prime" ], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(0) C(2) T(2) A(0) C(10) T(2) A(0) C(12) T(2) Filter(5) A(0) C(13) T(2) V(1) Order(1) A(0) C(12) T(2)" }, { "db_id": "wine_1", "query": "SELECT Grape , Winery , YEAR FROM WINE WHERE Price > 100 ORDER BY YEAR", "query_toks": [ "SELECT", "Grape", ",", "Winery", ",", "YEAR", "FROM", "WINE", "WHERE", "Price", ">", "100", "ORDER", "BY", "YEAR" ], "query_toks_no_value": [ "select", "grape", ",", "winery", ",", "year", "from", "wine", "where", "price", ">", "value", "order", "by", "year" ], "question": "What are the grapes, wineries and years for wines with price higher than 100, sorted by year?", "question_toks": [ "what", "are", "grape", ",", "winery", "and", "year", "for", "wine", "with", "price", "higher", "than", "100", ",", "sorted", "by", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 17, false ], null ], 100.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "grapes", ",", "wineries", "and", "years", "for", "wines", "with", "price", "higher", "than", "100", ",", "sorted", "by", "year", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "grape" ], [ "," ], [ "winery" ], [ "and" ], [ "year" ], [ "for" ], [ "wine" ], [ "with" ], [ "price" ], [ "higher" ], [ "than" ], [ "100" ], [ "," ], [ "sorted" ], [ "by" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "grape", "JJ" ], [ ",", "," ], [ "winery", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "for", "IN" ], [ "wine", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "year", "NN" ], [ "?", "." ] ], "values": [ "Pride", "100", "Prime" ], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(0) C(2) T(2) A(0) C(10) T(2) A(0) C(12) T(2) Filter(5) A(0) C(13) T(2) V(1) Order(1) A(0) C(12) T(2)" }, { "db_id": "wine_1", "query": "SELECT Grape , Appelation , Name FROM WINE WHERE Score > 93 ORDER BY Name", "query_toks": [ "SELECT", "Grape", ",", "Appelation", ",", "Name", "FROM", "WINE", "WHERE", "Score", ">", "93", "ORDER", "BY", "Name" ], "query_toks_no_value": [ "select", "grape", ",", "appelation", ",", "name", "from", "wine", "where", "score", ">", "value", "order", "by", "name" ], "question": "List the grape, appelation and name of wines whose score is higher than 93 ordered by Name.", "question_toks": [ "list", "grape", ",", "appelation", "and", "name", "of", "wine", "whose", "score", "is", "higher", "than", "93", "ordered", "by", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 93.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "List", "the", "grape", ",", "appelation", "and", "name", "of", "wines", "whose", "score", "is", "higher", "than", "93", "ordered", "by", "Name", "." ], "question_arg": [ [ "list" ], [ "grape" ], [ "," ], [ "appelation" ], [ "and" ], [ "name" ], [ "of" ], [ "wine" ], [ "whose" ], [ "score" ], [ "is" ], [ "higher" ], [ "than" ], [ "93" ], [ "ordered" ], [ "by" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "grape", "NN" ], [ ",", "," ], [ "appelation", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "whose", "WP$" ], [ "score", "NN" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "93", "CD" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "93" ], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(0) C(2) T(2) A(0) C(5) T(2) A(0) C(11) T(2) Filter(5) A(0) C(14) T(2) V(0) Order(1) A(0) C(11) T(2)" }, { "db_id": "wine_1", "query": "SELECT Grape , Appelation , Name FROM WINE WHERE Score > 93 ORDER BY Name", "query_toks": [ "SELECT", "Grape", ",", "Appelation", ",", "Name", "FROM", "WINE", "WHERE", "Score", ">", "93", "ORDER", "BY", "Name" ], "query_toks_no_value": [ "select", "grape", ",", "appelation", ",", "name", "from", "wine", "where", "score", ">", "value", "order", "by", "name" ], "question": "What are the grapes, appelations, and wines with scores above 93, sorted by Name?", "question_toks": [ "what", "are", "grape", ",", "appelations", ",", "and", "wine", "with", "score", "above", "93", ",", "sorted", "by", "name", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 93.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "grapes", ",", "appelations", ",", "and", "wines", "with", "scores", "above", "93", ",", "sorted", "by", "Name", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "grape" ], [ "," ], [ "appelations" ], [ "," ], [ "and" ], [ "wine" ], [ "with" ], [ "score" ], [ "above" ], [ "93" ], [ "," ], [ "sorted" ], [ "by" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "grape", "JJ" ], [ ",", "," ], [ "appelations", "NNS" ], [ ",", "," ], [ "and", "CC" ], [ "wine", "NN" ], [ "with", "IN" ], [ "score", "NN" ], [ "above", "IN" ], [ "93", "CD" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "93" ], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(0) C(2) T(2) A(0) C(5) T(2) A(0) C(11) T(2) Filter(5) A(0) C(14) T(2) V(0) Order(1) A(0) C(11) T(2)" }, { "db_id": "wine_1", "query": "SELECT Appelation FROM WINE WHERE YEAR > 2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area = \"Central Coast\"", "query_toks": [ "SELECT", "Appelation", "FROM", "WINE", "WHERE", "YEAR", ">", "2008", "EXCEPT", "SELECT", "Appelation", "FROM", "APPELLATIONS", "WHERE", "Area", "=", "``", "Central", "Coast", "''" ], "query_toks_no_value": [ "select", "appelation", "from", "wine", "where", "year", ">", "value", "except", "select", "appelation", "from", "appellations", "where", "area", "=", "value" ], "question": "Find the appelations that produce wines after the year of 2008 but not in Central Coast area.", "question_toks": [ "find", "appelations", "that", "produce", "wine", "after", "year", "of", "year", "but", "not", "in", "central", "coast", "area", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Central Coast\"", 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, 16, false ], null ], 2008.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Find", "the", "appelations", "that", "produce", "wines", "after", "the", "year", "of", "2008", "but", "not", "in", "Central", "Coast", "area", "." ], "question_arg": [ [ "find" ], [ "appelations" ], [ "that" ], [ "produce" ], [ "wine" ], [ "after" ], [ "year" ], [ "of" ], [ "year" ], [ "but" ], [ "not" ], [ "in" ], [ "central" ], [ "coast" ], [ "area" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "appelations", "NNS" ], [ "that", "WDT" ], [ "produce", "VBP" ], [ "wine", "NN" ], [ "after", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "2008", "CD" ], [ "but", "CC" ], [ "not", "RB" ], [ "in", "IN" ], [ "central", "JJ" ], [ "coast", "NN" ], [ "area", "NN" ], [ ".", "." ] ], "values": [ "Central Coast", "2008" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(5) T(2) Filter(5) A(0) C(12) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "wine_1", "query": "SELECT Appelation FROM WINE WHERE YEAR > 2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area = \"Central Coast\"", "query_toks": [ "SELECT", "Appelation", "FROM", "WINE", "WHERE", "YEAR", ">", "2008", "EXCEPT", "SELECT", "Appelation", "FROM", "APPELLATIONS", "WHERE", "Area", "=", "``", "Central", "Coast", "''" ], "query_toks_no_value": [ "select", "appelation", "from", "wine", "where", "year", ">", "value", "except", "select", "appelation", "from", "appellations", "where", "area", "=", "value" ], "question": "What are the appelations for wines produced after 2008 but not in the Central Coast area?", "question_toks": [ "what", "are", "appelations", "for", "wine", "produced", "after", "year", "but", "not", "in", "central", "coast", "area", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Central Coast\"", 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, 16, false ], null ], 2008.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "are", "the", "appelations", "for", "wines", "produced", "after", "2008", "but", "not", "in", "the", "Central", "Coast", "area", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "appelations" ], [ "for" ], [ "wine" ], [ "produced" ], [ "after" ], [ "year" ], [ "but" ], [ "not" ], [ "in" ], [ "central" ], [ "coast" ], [ "area" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "appelations", "NNS" ], [ "for", "IN" ], [ "wine", "NN" ], [ "produced", "VBN" ], [ "after", "IN" ], [ "2008", "CD" ], [ "but", "CC" ], [ "not", "RB" ], [ "in", "IN" ], [ "central", "JJ" ], [ "coast", "NN" ], [ "area", "NN" ], [ "?", "." ] ], "values": [ "Central Coast", "2008" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(5) T(2) Filter(5) A(0) C(12) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "wine_1", "query": "SELECT avg(price) FROM wine WHERE Appelation NOT IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = 'Sonoma')", "query_toks": [ "SELECT", "avg", "(", "price", ")", "FROM", "wine", "WHERE", "Appelation", "NOT", "IN", "(", "SELECT", "T1.Appelation", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T1.County", "=", "'Sonoma", "'", ")" ], "query_toks_no_value": [ "select", "avg", "(", "price", ")", "from", "wine", "where", "appelation", "not", "in", "(", "select", "t1", ".", "appelation", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t1", ".", "county", "=", "value", ")" ], "question": "Find the average price of wines that are not produced from Sonoma county.", "question_toks": [ "find", "average", "price", "of", "wine", "that", "are", "not", "produced", "from", "sonoma", "county", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 13, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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, 6, false ], null ], "\"Sonoma\"", null ] ] }, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Find", "the", "average", "price", "of", "wines", "that", "are", "not", "produced", "from", "Sonoma", "county", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "price" ], [ "of" ], [ "wine" ], [ "that" ], [ "are" ], [ "not" ], [ "produced" ], [ "from" ], [ "sonoma" ], [ "county" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "produced", "VBN" ], [ "from", "IN" ], [ "sonoma", "JJ" ], [ "county", "NN" ], [ ".", "." ] ], "values": [ "Sonoma Coast", "Sonoma County", "Prime", "Sonoma", "Pride" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(13) T(2) Filter(19) A(0) C(5) T(2) Root(3) Sel(0) N(0) A(0) C(5) 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(2) A(0) C(6) T(1) V(3)" }, { "db_id": "wine_1", "query": "SELECT avg(price) FROM wine WHERE Appelation NOT IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = 'Sonoma')", "query_toks": [ "SELECT", "avg", "(", "price", ")", "FROM", "wine", "WHERE", "Appelation", "NOT", "IN", "(", "SELECT", "T1.Appelation", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T1.County", "=", "'Sonoma", "'", ")" ], "query_toks_no_value": [ "select", "avg", "(", "price", ")", "from", "wine", "where", "appelation", "not", "in", "(", "select", "t1", ".", "appelation", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t1", ".", "county", "=", "value", ")" ], "question": "What is the average price for wines not produced in Sonoma county?", "question_toks": [ "what", "is", "average", "price", "for", "wine", "not", "produced", "in", "sonoma", "county", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 13, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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, 6, false ], null ], "\"Sonoma\"", null ] ] }, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "average", "price", "for", "wines", "not", "produced", "in", "Sonoma", "county", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "price" ], [ "for" ], [ "wine" ], [ "not" ], [ "produced" ], [ "in" ], [ "sonoma" ], [ "county" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "for", "IN" ], [ "wine", "NN" ], [ "not", "RB" ], [ "produced", "VBN" ], [ "in", "IN" ], [ "sonoma", "NN" ], [ "county", "NN" ], [ "?", "." ] ], "values": [ "Sonoma County", "Prime", "Sonoma", "Pride", "Sonoma Coast" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(13) T(2) Filter(19) A(0) C(5) T(2) Root(3) Sel(0) N(0) A(0) C(5) 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(2) A(0) C(6) T(1) V(2)" }, { "db_id": "wine_1", "query": "SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Score > 90 GROUP BY T1.County ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.County", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T2.Score", ">", "90", "GROUP", "BY", "T1.County", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "county", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t2", ".", "score", ">", "value", "group", "by", "t1", ".", "county", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the county where produces the most number of wines with score higher than 90.", "question_toks": [ "find", "county", "where", "produce", "most", "number", "of", "wine", "with", "score", "higher", "than", "90", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 90.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "Find", "the", "county", "where", "produces", "the", "most", "number", "of", "wines", "with", "score", "higher", "than", "90", "." ], "question_arg": [ [ "find" ], [ "county" ], [ "where" ], [ "produce" ], [ "most" ], [ "number" ], [ "of" ], [ "wine" ], [ "with" ], [ "score" ], [ "higher" ], [ "than" ], [ "90" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "county", "NN" ], [ "where", "WRB" ], [ "produce", "NN" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "wine", "NN" ], [ "with", "IN" ], [ "score", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "90", "CD" ], [ ".", "." ] ], "values": [ "90", "Numbers" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(6) T(1) Sup(0) A(3) C(0) T(1) Filter(5) A(0) C(14) T(2) V(0)" }, { "db_id": "wine_1", "query": "SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Score > 90 GROUP BY T1.County ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.County", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T2.Score", ">", "90", "GROUP", "BY", "T1.County", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "county", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t2", ".", "score", ">", "value", "group", "by", "t1", ".", "county", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the county that produces the most wines scoring higher than 90?", "question_toks": [ "what", "is", "county", "that", "produce", "most", "wine", "scoring", "higher", "than", "90", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 90.0, null ] ] }, "names": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "no", "grape", "winery", "appelation", "state", "name", "year", "price", "score", "cases", "drink" ], "table_names": [ "grapes", "appellations", "wine" ], "col_set": [ "*", "id", "grape", "color", "no", "appelation", "county", "state", "area", "isava", "winery", "name", "year", "price", "score", "cases", "drink" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "13": 5, "5": 13, "11": 2, "2": 11, "1": 1, "4": 4 }, "origin_question_toks": [ "What", "is", "the", "county", "that", "produces", "the", "most", "wines", "scoring", "higher", "than", "90", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "county" ], [ "that" ], [ "produce" ], [ "most" ], [ "wine" ], [ "scoring" ], [ "higher" ], [ "than" ], [ "90" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "county", "NN" ], [ "that", "IN" ], [ "produce", "VBP" ], [ "most", "RBS" ], [ "wine", "JJ" ], [ "scoring", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "90", "CD" ], [ "?", "." ] ], "values": [ "90" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(6) T(1) Sup(0) A(3) C(0) T(1) Filter(5) A(0) C(14) T(2) V(0)" }, { "db_id": "train_station", "query": "SELECT count(*) FROM station", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "station" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "station" ], "question": "How many train stations are there?", "question_toks": [ "how", "many", "train", "station", "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": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "How", "many", "train", "stations", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "train", "station" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "train", "NN" ], [ "station", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "train_station", "query": "SELECT name , LOCATION , number_of_platforms FROM station", "query_toks": [ "SELECT", "name", ",", "LOCATION", ",", "number_of_platforms", "FROM", "station" ], "query_toks_no_value": [ "select", "name", ",", "location", ",", "number_of_platforms", "from", "station" ], "question": "Show the name, location, and number of platforms for all stations.", "question_toks": [ "show", "name", ",", "location", ",", "and", "number", "of", "platform", "for", "all", "station", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "Show", "the", "name", ",", "location", ",", "and", "number", "of", "platforms", "for", "all", "stations", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "," ], [ "location" ], [ "," ], [ "and" ], [ "number", "of", "platform" ], [ "for" ], [ "all" ], [ "station" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "location", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "platform", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "station", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(0) C(6) T(0) A(0) C(8) T(0)" }, { "db_id": "train_station", "query": "SELECT DISTINCT LOCATION FROM station", "query_toks": [ "SELECT", "DISTINCT", "LOCATION", "FROM", "station" ], "query_toks_no_value": [ "select", "distinct", "location", "from", "station" ], "question": "What are all locations of train stations?", "question_toks": [ "what", "are", "all", "location", "of", "train", "station", "?" ], "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": [] }, "names": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "What", "are", "all", "locations", "of", "train", "stations", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "location" ], [ "of" ], [ "train", "station" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "location", "NN" ], [ "of", "IN" ], [ "train", "NN" ], [ "station", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(6) T(0)" }, { "db_id": "train_station", "query": "SELECT name , total_passengers FROM station WHERE LOCATION != 'London'", "query_toks": [ "SELECT", "name", ",", "total_passengers", "FROM", "station", "WHERE", "LOCATION", "!", "=", "'London", "'" ], "query_toks_no_value": [ "select", "name", ",", "total_passengers", "from", "station", "where", "location", "!", "=", "value" ], "question": "Show the names and total passengers for all train stations not in London.", "question_toks": [ "show", "name", "and", "total", "passenger", "for", "all", "train", "station", "not", "in", "london", "." ], "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, 7, [ 0, [ 0, 6, false ], null ], "\"London\"", null ] ] }, "names": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "Show", "the", "names", "and", "total", "passengers", "for", "all", "train", "stations", "not", "in", "London", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "total", "passenger" ], [ "for" ], [ "all" ], [ "train", "station" ], [ "not" ], [ "in" ], [ "london" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "passenger", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "train", "NN" ], [ "station", "NN" ], [ "not", "RB" ], [ "in", "IN" ], [ "london", "NN" ], [ ".", "." ] ], "values": [ "London" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(5) T(0) Filter(3) A(0) C(6) T(0) V(0)" }, { "db_id": "train_station", "query": "SELECT name , main_services FROM station ORDER BY total_passengers DESC LIMIT 3", "query_toks": [ "SELECT", "name", ",", "main_services", "FROM", "station", "ORDER", "BY", "total_passengers", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "name", ",", "main_services", "from", "station", "order", "by", "total_passengers", "desc", "limit", "value" ], "question": "Show the names and main services for train stations that have the top three total number of passengers.", "question_toks": [ "show", "name", "and", "main", "service", "for", "train", "station", "that", "have", "top", "three", "total", "number", "of", "passenger", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "Show", "the", "names", "and", "main", "services", "for", "train", "stations", "that", "have", "the", "top", "three", "total", "number", "of", "passengers", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "main", "service" ], [ "for" ], [ "train", "station" ], [ "that" ], [ "have" ], [ "top" ], [ "three" ], [ "total" ], [ "number", "of", "platform" ], [ "passenger" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "main", "JJ" ], [ "service", "NN" ], [ "for", "IN" ], [ "train", "NN" ], [ "station", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "top", "VBN" ], [ "three", "CD" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "passenger", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(0) C(7) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "train_station", "query": "SELECT avg(total_passengers) , max(total_passengers) FROM station WHERE LOCATION = 'London' OR LOCATION = 'Glasgow'", "query_toks": [ "SELECT", "avg", "(", "total_passengers", ")", ",", "max", "(", "total_passengers", ")", "FROM", "station", "WHERE", "LOCATION", "=", "'London", "'", "OR", "LOCATION", "=", "'Glasgow", "'" ], "query_toks_no_value": [ "select", "avg", "(", "total_passengers", ")", ",", "max", "(", "total_passengers", ")", "from", "station", "where", "location", "=", "value", "or", "location", "=", "value" ], "question": "What is the average and maximum number of total passengers for train stations in London or Glasgow?", "question_toks": [ "what", "is", "average", "and", "maximum", "number", "of", "total", "passenger", "for", "train", "station", "in", "london", "or", "glasgow", "?" ], "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 ] ], [ 1, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"London\"", null ], "or", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Glasgow\"", null ] ] }, "names": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "average", "and", "maximum", "number", "of", "total", "passengers", "for", "train", "stations", "in", "London", "or", "Glasgow", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "and" ], [ "maximum" ], [ "number", "of", "platform" ], [ "total", "passenger" ], [ "for" ], [ "train", "station" ], [ "in" ], [ "london" ], [ "or" ], [ "glasgow" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "total", "JJ" ], [ "passenger", "NN" ], [ "for", "IN" ], [ "train", "NN" ], [ "station", "NN" ], [ "in", "IN" ], [ "london", "NN" ], [ "or", "CC" ], [ "glasgow", "NN" ], [ "?", "." ] ], "values": [ "Glasgow", "London" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(5) T(0) A(1) C(5) T(0) Filter(1) Filter(2) A(0) C(6) T(0) V(1) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "train_station", "query": "SELECT LOCATION , sum(number_of_platforms) , sum(total_passengers) FROM station GROUP BY LOCATION", "query_toks": [ "SELECT", "LOCATION", ",", "sum", "(", "number_of_platforms", ")", ",", "sum", "(", "total_passengers", ")", "FROM", "station", "GROUP", "BY", "LOCATION" ], "query_toks_no_value": [ "select", "location", ",", "sum", "(", "number_of_platforms", ")", ",", "sum", "(", "total_passengers", ")", "from", "station", "group", "by", "location" ], "question": "Show all locations and the total number of platforms and passengers for all train stations in each location.", "question_toks": [ "show", "all", "location", "and", "total", "number", "of", "platform", "and", "passenger", "for", "all", "train", "station", "in", "each", "location", "." ], "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 ] ], [ 4, [ 0, [ 0, 8, false ], null ] ], [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "Show", "all", "locations", "and", "the", "total", "number", "of", "platforms", "and", "passengers", "for", "all", "train", "stations", "in", "each", "location", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "location" ], [ "and" ], [ "total" ], [ "number", "of", "platform" ], [ "and" ], [ "passenger" ], [ "for" ], [ "all" ], [ "train", "station" ], [ "in" ], [ "each" ], [ "location" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "location", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "platform", "NN" ], [ "and", "CC" ], [ "passenger", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "train", "NN" ], [ "station", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "location", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(6) T(0) A(4) C(8) T(0) A(4) C(5) T(0)" }, { "db_id": "train_station", "query": "SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms >= 15 AND total_passengers > 25", "query_toks": [ "SELECT", "DISTINCT", "LOCATION", "FROM", "station", "WHERE", "number_of_platforms", ">", "=", "15", "AND", "total_passengers", ">", "25" ], "query_toks_no_value": [ "select", "distinct", "location", "from", "station", "where", "number_of_platforms", ">", "=", "value", "and", "total_passengers", ">", "value" ], "question": "Show all locations that have train stations with at least 15 platforms and train stations with more than 25 total passengers.", "question_toks": [ "show", "all", "location", "that", "have", "train", "station", "with", "at", "least", "15", "platform", "and", "train", "station", "with", "more", "than", "25", "total", "passenger", "." ], "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, 5, [ 0, [ 0, 8, false ], null ], 15.0, null ], "and", [ false, 3, [ 0, [ 0, 5, false ], null ], 25.0, null ] ] }, "names": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "Show", "all", "locations", "that", "have", "train", "stations", "with", "at", "least", "15", "platforms", "and", "train", "stations", "with", "more", "than", "25", "total", "passengers", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "location" ], [ "that" ], [ "have" ], [ "train", "station" ], [ "with" ], [ "at" ], [ "least" ], [ "15" ], [ "platform" ], [ "and" ], [ "train", "station" ], [ "with" ], [ "more" ], [ "than" ], [ "25" ], [ "total", "passenger" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "location", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "train", "VBN" ], [ "station", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "15", "CD" ], [ "platform", "NN" ], [ "and", "CC" ], [ "train", "NN" ], [ "station", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "25", "CD" ], [ "total", "JJ" ], [ "passenger", "NN" ], [ ".", "." ] ], "values": [ "25", "15" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(0) Filter(0) Filter(7) A(0) C(8) T(0) V(1) Filter(5) A(0) C(5) T(0) V(0)" }, { "db_id": "train_station", "query": "SELECT LOCATION FROM station EXCEPT SELECT LOCATION FROM station WHERE number_of_platforms >= 15", "query_toks": [ "SELECT", "LOCATION", "FROM", "station", "EXCEPT", "SELECT", "LOCATION", "FROM", "station", "WHERE", "number_of_platforms", ">", "=", "15" ], "query_toks_no_value": [ "select", "location", "from", "station", "except", "select", "location", "from", "station", "where", "number_of_platforms", ">", "=", "value" ], "question": "Show all locations which don't have a train station with at least 15 platforms.", "question_toks": [ "show", "all", "location", "which", "do", "n't", "have", "a", "train", "station", "with", "at", "least", "15", "platform", "." ], "sql": { "except": { "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, 5, [ 0, [ 0, 8, false ], null ], 15.0, 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": [] }, "names": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "Show", "all", "locations", "which", "do", "n't", "have", "a", "train", "station", "with", "at", "least", "15", "platforms", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "location" ], [ "which" ], [ "do" ], [ "n't" ], [ "have" ], [ "a" ], [ "train", "station" ], [ "with" ], [ "at" ], [ "least" ], [ "15" ], [ "platform" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "location", "NN" ], [ "which", "WDT" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "train", "NN" ], [ "station", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "15", "CD" ], [ "platform", "NN" ], [ ".", "." ] ], "values": [ "15" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(6) T(0) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(7) A(0) C(8) T(0) V(0)" }, { "db_id": "train_station", "query": "SELECT LOCATION FROM station GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "LOCATION", "FROM", "station", "GROUP", "BY", "LOCATION", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "location", "from", "station", "group", "by", "location", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the location with most number of train stations.", "question_toks": [ "show", "location", "with", "most", "number", "of", "train", "station", "." ], "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": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "Show", "the", "location", "with", "most", "number", "of", "train", "stations", "." ], "question_arg": [ [ "show" ], [ "location" ], [ "with" ], [ "most" ], [ "number", "of", "platform" ], [ "train", "station" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "location", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "train", "JJ" ], [ "station", "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": "train_station", "query": "SELECT name , TIME , service FROM train", "query_toks": [ "SELECT", "name", ",", "TIME", ",", "service", "FROM", "train" ], "query_toks_no_value": [ "select", "name", ",", "time", ",", "service", "from", "train" ], "question": "Show the name, time, and service for all trains.", "question_toks": [ "show", "name", ",", "time", ",", "and", "service", "for", "all", "train", "." ], "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 ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "Show", "the", "name", ",", "time", ",", "and", "service", "for", "all", "trains", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "," ], [ "time" ], [ "," ], [ "and" ], [ "service" ], [ "for" ], [ "all" ], [ "train" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "time", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "service", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "train", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(1) A(0) C(10) T(1) A(0) C(11) T(1)" }, { "db_id": "train_station", "query": "SELECT count(*) FROM train", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "train" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "train" ], "question": "Show the number of trains", "question_toks": [ "show", "number", "of", "train" ], "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": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "Show", "the", "number", "of", "trains" ], "question_arg": [ [ "show" ], [ "number", "of", "platform" ], [ "train" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "table" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "train", "NN" ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "train_station", "query": "SELECT name , service FROM train ORDER BY TIME", "query_toks": [ "SELECT", "name", ",", "service", "FROM", "train", "ORDER", "BY", "TIME" ], "query_toks_no_value": [ "select", "name", ",", "service", "from", "train", "order", "by", "time" ], "question": "Show the name and service for all trains in order by time.", "question_toks": [ "show", "name", "and", "service", "for", "all", "train", "in", "order", "by", "time", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "Show", "the", "name", "and", "service", "for", "all", "trains", "in", "order", "by", "time", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "service" ], [ "for" ], [ "all" ], [ "train" ], [ "in" ], [ "order" ], [ "by" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "service", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "train", "NN" ], [ "in", "IN" ], [ "order", "NN" ], [ "by", "IN" ], [ "time", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(1) A(0) C(11) T(1) Order(1) A(0) C(10) T(1)" }, { "db_id": "train_station", "query": "SELECT T2.name , count(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "train_station", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.station_id", "=", "T2.station_id", "GROUP", "BY", "T1.station_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "train_station", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "station_id", "=", "t2", ".", "station_id", "group", "by", "t1", ".", "station_id" ], "question": "Show the station name and number of trains in each station.", "question_toks": [ "show", "station", "name", "and", "number", "of", "train", "in", "each", "station", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 14, 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": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "Show", "the", "station", "name", "and", "number", "of", "trains", "in", "each", "station", "." ], "question_arg": [ [ "show" ], [ "station" ], [ "name" ], [ "and" ], [ "number", "of", "platform" ], [ "train" ], [ "in" ], [ "each" ], [ "station" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "station", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "train", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "station", "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": "train_station", "query": "SELECT T2.name , T3.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id", "query_toks": [ "SELECT", "T2.name", ",", "T3.name", "FROM", "train_station", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.station_id", "=", "T2.station_id", "JOIN", "train", "AS", "T3", "ON", "T3.train_id", "=", "T1.train_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t3", ".", "name", "from", "train_station", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "station_id", "=", "t2", ".", "station_id", "join", "train", "as", "t3", "on", "t3", ".", "train_id", "=", "t1", ".", "train_id" ], "question": "show the train name and station name for each train.", "question_toks": [ "show", "train", "name", "and", "station", "name", "for", "each", "train", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, 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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "show", "the", "train", "name", "and", "station", "name", "for", "each", "train", "." ], "question_arg": [ [ "show" ], [ "train" ], [ "name" ], [ "and" ], [ "station" ], [ "name" ], [ "for" ], [ "each" ], [ "train" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "train", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "station", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "train", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(2) T(1) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "train_station", "query": "SELECT T3.name , T3.time FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T2.location = 'London' ORDER BY T3.time DESC", "query_toks": [ "SELECT", "T3.name", ",", "T3.time", "FROM", "train_station", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.station_id", "=", "T2.station_id", "JOIN", "train", "AS", "T3", "ON", "T3.train_id", "=", "T1.train_id", "WHERE", "T2.location", "=", "'London", "'", "ORDER", "BY", "T3.time", "DESC" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t3", ".", "time", "from", "train_station", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "station_id", "=", "t2", ".", "station_id", "join", "train", "as", "t3", "on", "t3", ".", "train_id", "=", "t1", ".", "train_id", "where", "t2", ".", "location", "=", "value", "order", "by", "t3", ".", "time", "desc" ], "question": "Show all train names and times in stations in London in descending order by train time.", "question_toks": [ "show", "all", "train", "name", "and", "time", "in", "station", "in", "london", "in", "descending", "order", "by", "train", "time", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"London\"", null ] ] }, "names": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "Show", "all", "train", "names", "and", "times", "in", "stations", "in", "London", "in", "descending", "order", "by", "train", "time", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "train" ], [ "name" ], [ "and" ], [ "time" ], [ "in" ], [ "station" ], [ "in" ], [ "london" ], [ "in" ], [ "descending" ], [ "order" ], [ "by" ], [ "train" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "train", "VBP" ], [ "name", "NN" ], [ "and", "CC" ], [ "time", "NN" ], [ "in", "IN" ], [ "station", "NN" ], [ "in", "IN" ], [ "london", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "by", "IN" ], [ "train", "NN" ], [ "time", "NN" ], [ ".", "." ] ], "values": [ "London" ], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(2) T(1) A(0) C(10) 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(6) T(0) V(0) Order(0) A(0) C(10) T(1)" }, { "db_id": "train_station", "query": "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", "FROM", "train_station", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.station_id", "=", "T2.station_id", "GROUP", "BY", "T1.station_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "train_station", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "station_id", "=", "t2", ".", "station_id", "group", "by", "t1", ".", "station_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the station name with greatest number of trains.", "question_toks": [ "show", "station", "name", "with", "greatest", "number", "of", "train", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 14, 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, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "Show", "the", "station", "name", "with", "greatest", "number", "of", "trains", "." ], "question_arg": [ [ "show" ], [ "station" ], [ "name" ], [ "with" ], [ "greatest" ], [ "number", "of", "platform" ], [ "train" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "station", "NN" ], [ "name", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "train", "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": "train_station", "query": "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.name", "FROM", "train_station", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.station_id", "=", "T2.station_id", "GROUP", "BY", "T1.station_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "train_station", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "station_id", "=", "t2", ".", "station_id", "group", "by", "t1", ".", "station_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the station name with at least two trains.", "question_toks": [ "show", "station", "name", "with", "at", "least", "two", "train", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "Show", "the", "station", "name", "with", "at", "least", "two", "trains", "." ], "question_arg": [ [ "show" ], [ "station" ], [ "name" ], [ "with" ], [ "at" ], [ "least" ], [ "two" ], [ "train" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "station", "NN" ], [ "name", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "train", "NN" ], [ ".", "." ] ], "values": [ "2" ], "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(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "train_station", "query": "SELECT LOCATION FROM station GROUP BY LOCATION HAVING count(*) = 1", "query_toks": [ "SELECT", "LOCATION", "FROM", "station", "GROUP", "BY", "LOCATION", "HAVING", "count", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "location", "from", "station", "group", "by", "location", "having", "count", "(", "*", ")", "=", "value" ], "question": "Show all locations with only 1 station.", "question_toks": [ "show", "all", "location", "with", "only", "1", "station", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 2, [ 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": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "Show", "all", "locations", "with", "only", "1", "station", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "location" ], [ "with" ], [ "only" ], [ "1" ], [ "station" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "location", "NN" ], [ "with", "IN" ], [ "only", "RB" ], [ "1", "CD" ], [ "station", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(2) A(3) C(0) T(0) V(0)" }, { "db_id": "train_station", "query": "SELECT name FROM station WHERE station_id NOT IN (SELECT station_id FROM train_station)", "query_toks": [ "SELECT", "name", "FROM", "station", "WHERE", "station_id", "NOT", "IN", "(", "SELECT", "station_id", "FROM", "train_station", ")" ], "query_toks_no_value": [ "select", "name", "from", "station", "where", "station_id", "not", "in", "(", "select", "station_id", "from", "train_station", ")" ], "question": "Show station names without any trains.", "question_toks": [ "show", "station", "name", "without", "any", "train", "." ], "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, 14, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "Show", "station", "names", "without", "any", "trains", "." ], "question_arg": [ [ "show" ], [ "station" ], [ "name" ], [ "without" ], [ "any" ], [ "train" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "station", "NN" ], [ "name", "NN" ], [ "without", "IN" ], [ "any", "DT" ], [ "train", "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": "train_station", "query": "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = \"Ananthapuri Express\" INTERSECT SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = \"Guruvayur Express\"", "query_toks": [ "SELECT", "T2.name", "FROM", "train_station", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.station_id", "=", "T2.station_id", "JOIN", "train", "AS", "T3", "ON", "T3.train_id", "=", "T1.train_id", "WHERE", "T3.Name", "=", "``", "Ananthapuri", "Express", "''", "INTERSECT", "SELECT", "T2.name", "FROM", "train_station", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.station_id", "=", "T2.station_id", "JOIN", "train", "AS", "T3", "ON", "T3.train_id", "=", "T1.train_id", "WHERE", "T3.Name", "=", "``", "Guruvayur", "Express", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "train_station", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "station_id", "=", "t2", ".", "station_id", "join", "train", "as", "t3", "on", "t3", ".", "train_id", "=", "t1", ".", "train_id", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t2", ".", "name", "from", "train_station", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "station_id", "=", "t2", ".", "station_id", "join", "train", "as", "t3", "on", "t3", ".", "train_id", "=", "t1", ".", "train_id", "where", "t3", ".", "name", "=", "value" ], "question": "What are the names of the stations which serve both \"Ananthapuri Express\" and \"Guruvayur Express\" trains?", "question_toks": [ "what", "are", "name", "of", "station", "which", "serve", "both", "'", "ananthapuri", "express", "'", "and", "'", "guruvayur", "express", "'", "train", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, 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, 14, 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, 10, false ], null ], "\"Guruvayur Express\"", 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, 14, 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, 10, false ], null ], "\"Ananthapuri Express\"", null ] ] }, "names": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "stations", "which", "serve", "both", "``", "Ananthapuri", "Express", "''", "and", "``", "Guruvayur", "Express", "''", "trains", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "station" ], [ "which" ], [ "serve" ], [ "both" ], [ "'" ], [ "ananthapuri" ], [ "express" ], [ "'" ], [ "and" ], [ "'" ], [ "guruvayur" ], [ "express" ], [ "'" ], [ "train" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ "which", "WDT" ], [ "serve", "VBP" ], [ "both", "DT" ], [ "'", "''" ], [ "ananthapuri", "NN" ], [ "express", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "'", "POS" ], [ "guruvayur", "NN" ], [ "express", "NN" ], [ "'", "''" ], [ "train", "NN" ], [ "?", "." ] ], "values": [ "Guruvayur Express", "Ananthapuri Express" ], "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(2) Filter(2) A(0) C(2) 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(2) Filter(2) A(0) C(2) T(1) V(0)" }, { "db_id": "train_station", "query": "SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id = T2.train_id WHERE T1.station_id NOT IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id = T4.station_id WHERE t4.location = \"London\")", "query_toks": [ "SELECT", "T2.name", "FROM", "train_station", "AS", "T1", "JOIN", "train", "AS", "T2", "ON", "T1.train_id", "=", "T2.train_id", "WHERE", "T1.station_id", "NOT", "IN", "(", "SELECT", "T4.station_id", "FROM", "train_station", "AS", "T3", "JOIN", "station", "AS", "T4", "ON", "T3.station_id", "=", "T4.station_id", "WHERE", "t4.location", "=", "``", "London", "''", ")" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "train_station", "as", "t1", "join", "train", "as", "t2", "on", "t1", ".", "train_id", "=", "t2", ".", "train_id", "where", "t1", ".", "station_id", "not", "in", "(", "select", "t4", ".", "station_id", "from", "train_station", "as", "t3", "join", "station", "as", "t4", "on", "t3", ".", "station_id", "=", "t4", ".", "station_id", "where", "t4", ".", "location", "=", "value", ")" ], "question": "Find the names of the trains that do not pass any station located in London.", "question_toks": [ "find", "name", "of", "train", "that", "do", "not", "pas", "any", "station", "located", "in", "london", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, 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, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"London\"", null ] ] }, null ] ] }, "names": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "trains", "that", "do", "not", "pass", "any", "station", "located", "in", "London", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "train" ], [ "that" ], [ "do" ], [ "not" ], [ "pas" ], [ "any" ], [ "station" ], [ "located" ], [ "in" ], [ "london" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "train", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "pas", "VB" ], [ "any", "DT" ], [ "station", "NN" ], [ "located", "VBN" ], [ "in", "IN" ], [ "london", "NN" ], [ ".", "." ] ], "values": [ "London" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(19) A(0) C(1) T(2) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "train_station", "query": "SELECT name , LOCATION FROM station ORDER BY Annual_entry_exit , Annual_interchanges", "query_toks": [ "SELECT", "name", ",", "LOCATION", "FROM", "station", "ORDER", "BY", "Annual_entry_exit", ",", "Annual_interchanges" ], "query_toks_no_value": [ "select", "name", ",", "location", "from", "station", "order", "by", "annual_entry_exit", ",", "annual_interchanges" ], "question": "List the names and locations of all stations ordered by their yearly entry exit and interchange amounts.", "question_toks": [ "list", "name", "and", "location", "of", "all", "station", "ordered", "by", "their", "yearly", "entry", "exit", "and", "interchange", "amount", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ], [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "name", "time", "service", "train id", "station id" ], "table_names": [ "station", "train", "train station" ], "col_set": [ "*", "station id", "name", "annual entry exit", "annual interchanges", "total passengers", "location", "main services", "number of platforms", "train id", "time", "service" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2 ], "keys": { "14": 1, "1": 1, "13": 13, "9": 9 }, "origin_question_toks": [ "List", "the", "names", "and", "locations", "of", "all", "stations", "ordered", "by", "their", "yearly", "entry", "exit", "and", "interchange", "amounts", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "location" ], [ "of" ], [ "all" ], [ "station" ], [ "ordered" ], [ "by" ], [ "their" ], [ "yearly" ], [ "annual", "entry", "exit" ], [ "and" ], [ "interchange" ], [ "amount" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "station", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "yearly", "JJ" ], [ "entry", "NN" ], [ "exit", "NN" ], [ "and", "CC" ], [ "interchange", "NN" ], [ "amount", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(0) A(0) C(6) T(0) Order(1) A(0) C(3) T(0)" }, { "db_id": "driving_school", "query": "SELECT vehicle_id FROM Vehicles;", "query_toks": [ "SELECT", "vehicle_id", "FROM", "Vehicles", ";" ], "query_toks_no_value": [ "select", "vehicle_id", "from", "vehicles" ], "question": "List all vehicle id", "question_toks": [ "list", "all", "vehicle", "id" ], "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": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "List", "all", "vehicle", "id" ], "question_arg": [ [ "list" ], [ "all" ], [ "vehicle", "id" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "vehicle", "NN" ], [ "id", "NN" ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(16) T(2)" }, { "db_id": "driving_school", "query": "SELECT vehicle_id FROM Vehicles;", "query_toks": [ "SELECT", "vehicle_id", "FROM", "Vehicles", ";" ], "query_toks_no_value": [ "select", "vehicle_id", "from", "vehicles" ], "question": "What are the ids of all vehicles?", "question_toks": [ "what", "are", "id", "of", "all", "vehicle", "?" ], "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": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "vehicles", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "vehicle" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "vehicle", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(16) T(2)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Vehicles;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Vehicles", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "vehicles" ], "question": "How many vehicle in total?", "question_toks": [ "how", "many", "vehicle", "in", "total", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "vehicle", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "vehicle" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "vehicle", "NN" ], [ "in", "IN" ], [ "total", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Vehicles;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Vehicles", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "vehicles" ], "question": "How many vehicles exist?", "question_toks": [ "how", "many", "vehicle", "exist", "?" ], "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": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "vehicles", "exist", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "vehicle" ], [ "exist" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "vehicle", "NN" ], [ "exist", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "driving_school", "query": "SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1;", "query_toks": [ "SELECT", "vehicle_details", "FROM", "Vehicles", "WHERE", "vehicle_id", "=", "1", ";" ], "query_toks_no_value": [ "select", "vehicle_details", "from", "vehicles", "where", "vehicle_id", "=", "value" ], "question": "Show the detail of vehicle with id 1.", "question_toks": [ "show", "detail", "of", "vehicle", "with", "id", "1", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], 1.0, null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "Show", "the", "detail", "of", "vehicle", "with", "id", "1", "." ], "question_arg": [ [ "show" ], [ "detail" ], [ "of" ], [ "vehicle" ], [ "with" ], [ "id" ], [ "1" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "detail", "NN" ], [ "of", "IN" ], [ "vehicle", "NN" ], [ "with", "IN" ], [ "id", "JJ" ], [ "1", "CD" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(17) T(2) Filter(2) A(0) C(16) T(2) V(0)" }, { "db_id": "driving_school", "query": "SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1;", "query_toks": [ "SELECT", "vehicle_details", "FROM", "Vehicles", "WHERE", "vehicle_id", "=", "1", ";" ], "query_toks_no_value": [ "select", "vehicle_details", "from", "vehicles", "where", "vehicle_id", "=", "value" ], "question": "What are the details of the car with id 1?", "question_toks": [ "what", "are", "detail", "of", "car", "with", "id", "1", "?" ], "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], 1.0, null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "are", "the", "details", "of", "the", "car", "with", "id", "1", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "of" ], [ "car" ], [ "with" ], [ "id" ], [ "1" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "NN" ], [ "of", "IN" ], [ "car", "NN" ], [ "with", "IN" ], [ "id", "NN" ], [ "1", "CD" ], [ "?", "." ] ], "values": [ "Car", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(17) T(2) Filter(2) A(0) C(16) T(2) V(1)" }, { "db_id": "driving_school", "query": "SELECT first_name , middle_name , last_name FROM Staff;", "query_toks": [ "SELECT", "first_name", ",", "middle_name", ",", "last_name", "FROM", "Staff", ";" ], "query_toks_no_value": [ "select", "first_name", ",", "middle_name", ",", "last_name", "from", "staff" ], "question": "List the first name middle name and last name of all staff.", "question_toks": [ "list", "first", "name", "middle", "name", "and", "last", "name", "of", "all", "staff", "." ], "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 ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "List", "the", "first", "name", "middle", "name", "and", "last", "name", "of", "all", "staff", "." ], "question_arg": [ [ "list" ], [ "first", "name" ], [ "middle", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "staff" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "first", "RB" ], [ "name", "VBZ" ], [ "middle", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "staff", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(10) T(1) A(0) C(11) T(1) A(0) C(12) T(1)" }, { "db_id": "driving_school", "query": "SELECT first_name , middle_name , last_name FROM Staff;", "query_toks": [ "SELECT", "first_name", ",", "middle_name", ",", "last_name", "FROM", "Staff", ";" ], "query_toks_no_value": [ "select", "first_name", ",", "middle_name", ",", "last_name", "from", "staff" ], "question": "What are the first, middle, and last names of all staff?", "question_toks": [ "what", "are", "first", ",", "middle", ",", "and", "last", "name", "of", "all", "staff", "?" ], "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 ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "are", "the", "first", ",", "middle", ",", "and", "last", "names", "of", "all", "staff", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "," ], [ "middle" ], [ "," ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "staff" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ ",", "," ], [ "middle", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "staff", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(10) T(1) A(0) C(11) T(1) A(0) C(12) T(1)" }, { "db_id": "driving_school", "query": "SELECT date_of_birth FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";", "query_toks": [ "SELECT", "date_of_birth", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Janessa", "''", "AND", "last_name", "=", "``", "Sawayn", "''", ";" ], "query_toks_no_value": [ "select", "date_of_birth", "from", "staff", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "What is the birthday of the staff member with first name as Janessa and last name as Sawayn?", "question_toks": [ "what", "is", "birthday", "of", "staff", "member", "with", "first", "name", "a", "janessa", "and", "last", "name", "a", "sawayn", "?" ], "sql": { "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, 2, [ 0, [ 0, 10, false ], null ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "birthday", "of", "the", "staff", "member", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "birthday" ], [ "of" ], [ "staff" ], [ "member" ], [ "with" ], [ "first", "name" ], [ "a" ], [ "janessa" ], [ "and" ], [ "last", "name" ], [ "a" ], [ "sawayn" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "birthday", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "member", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "janessa", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "sawayn", "NN" ], [ "?", "." ] ], "values": [ "1", "Sawayn", "Janessa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(1) Filter(0) Filter(2) A(0) C(10) T(1) V(2) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT date_of_birth FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";", "query_toks": [ "SELECT", "date_of_birth", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Janessa", "''", "AND", "last_name", "=", "``", "Sawayn", "''", ";" ], "query_toks_no_value": [ "select", "date_of_birth", "from", "staff", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "What is the date of birth for the staff member named Janessa Sawayn?", "question_toks": [ "what", "is", "date", "of", "birth", "for", "staff", "member", "named", "janessa", "sawayn", "?" ], "sql": { "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, 2, [ 0, [ 0, 10, false ], null ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "date", "of", "birth", "for", "the", "staff", "member", "named", "Janessa", "Sawayn", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "date", "of", "birth" ], [ "for" ], [ "staff" ], [ "member" ], [ "named" ], [ "janessa" ], [ "sawayn" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "date", "NN" ], [ "of", "IN" ], [ "birth", "NN" ], [ "for", "IN" ], [ "staff", "NN" ], [ "member", "NN" ], [ "named", "VBN" ], [ "janessa", "NN" ], [ "sawayn", "NN" ], [ "?", "." ] ], "values": [ "Sawayn", "Janessa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(1) Filter(0) Filter(2) A(0) C(10) T(1) V(1) Filter(2) A(0) C(12) T(1) V(0)" }, { "db_id": "driving_school", "query": "SELECT date_joined_staff FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";", "query_toks": [ "SELECT", "date_joined_staff", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Janessa", "''", "AND", "last_name", "=", "``", "Sawayn", "''", ";" ], "query_toks_no_value": [ "select", "date_joined_staff", "from", "staff", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "When did the staff member with first name as Janessa and last name as Sawayn join the company?", "question_toks": [ "when", "did", "staff", "member", "with", "first", "name", "a", "janessa", "and", "last", "name", "a", "sawayn", "join", "company", "?" ], "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, 2, [ 0, [ 0, 10, false ], null ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "When", "did", "the", "staff", "member", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn", "join", "the", "company", "?" ], "question_arg": [ [ "when" ], [ "did" ], [ "staff" ], [ "member" ], [ "with" ], [ "first", "name" ], [ "a" ], [ "janessa" ], [ "and" ], [ "last", "name" ], [ "a" ], [ "sawayn" ], [ "join" ], [ "company" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "did", "VBD" ], [ "staff", "NN" ], [ "member", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "janessa", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "sawayn", "NN" ], [ "join", "NN" ], [ "company", "NN" ], [ "?", "." ] ], "values": [ "1", "Sawayn", "Janessa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(1) Filter(0) Filter(2) A(0) C(10) T(1) V(2) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT date_joined_staff FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";", "query_toks": [ "SELECT", "date_joined_staff", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Janessa", "''", "AND", "last_name", "=", "``", "Sawayn", "''", ";" ], "query_toks_no_value": [ "select", "date_joined_staff", "from", "staff", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "When did the staff member named Janessa Sawayn join the company?", "question_toks": [ "when", "did", "staff", "member", "named", "janessa", "sawayn", "join", "company", "?" ], "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, 2, [ 0, [ 0, 10, false ], null ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "When", "did", "the", "staff", "member", "named", "Janessa", "Sawayn", "join", "the", "company", "?" ], "question_arg": [ [ "when" ], [ "did" ], [ "staff" ], [ "member" ], [ "named" ], [ "janessa" ], [ "sawayn" ], [ "join" ], [ "company" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "did", "VBD" ], [ "staff", "NN" ], [ "member", "NN" ], [ "named", "VBN" ], [ "janessa", "NN" ], [ "sawayn", "NN" ], [ "join", "NN" ], [ "company", "NN" ], [ "?", "." ] ], "values": [ "Janessa", "Sawayn" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(1) Filter(0) Filter(2) A(0) C(10) T(1) V(0) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT date_left_staff FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";", "query_toks": [ "SELECT", "date_left_staff", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Janessa", "''", "AND", "last_name", "=", "``", "Sawayn", "''", ";" ], "query_toks_no_value": [ "select", "date_left_staff", "from", "staff", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "When did the staff member with first name as Janessa and last name as Sawayn leave the company?", "question_toks": [ "when", "did", "staff", "member", "with", "first", "name", "a", "janessa", "and", "last", "name", "a", "sawayn", "leave", "company", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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 ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "When", "did", "the", "staff", "member", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn", "leave", "the", "company", "?" ], "question_arg": [ [ "when" ], [ "did" ], [ "staff" ], [ "member" ], [ "with" ], [ "first", "name" ], [ "a" ], [ "janessa" ], [ "and" ], [ "last", "name" ], [ "a" ], [ "sawayn" ], [ "leave" ], [ "company" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "did", "VBD" ], [ "staff", "NN" ], [ "member", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "janessa", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "sawayn", "NN" ], [ "leave", "VBP" ], [ "company", "NN" ], [ "?", "." ] ], "values": [ "1", "Sawayn", "Janessa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(1) Filter(0) Filter(2) A(0) C(10) T(1) V(2) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT date_left_staff FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";", "query_toks": [ "SELECT", "date_left_staff", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Janessa", "''", "AND", "last_name", "=", "``", "Sawayn", "''", ";" ], "query_toks_no_value": [ "select", "date_left_staff", "from", "staff", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "When did the staff member Janessa Sawayn leave the company?", "question_toks": [ "when", "did", "staff", "member", "janessa", "sawayn", "leave", "company", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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 ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "When", "did", "the", "staff", "member", "Janessa", "Sawayn", "leave", "the", "company", "?" ], "question_arg": [ [ "when" ], [ "did" ], [ "staff" ], [ "member" ], [ "janessa" ], [ "sawayn" ], [ "leave" ], [ "company" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "did", "VBD" ], [ "staff", "NN" ], [ "member", "NN" ], [ "janessa", "NN" ], [ "sawayn", "NN" ], [ "leave", "VBP" ], [ "company", "NN" ], [ "?", "." ] ], "values": [ "Janessa", "Sawayn" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(1) Filter(0) Filter(2) A(0) C(10) T(1) V(0) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Staff WHERE first_name = \"Ludie\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Ludie", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "staff", "where", "first_name", "=", "value" ], "question": "How many staff have the first name Ludie?", "question_toks": [ "how", "many", "staff", "have", "first", "name", "ludie", "?" ], "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, 10, false ], null ], "\"Ludie\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "staff", "have", "the", "first", "name", "Ludie", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "staff" ], [ "have" ], [ "first", "name" ], [ "ludie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "staff", "NN" ], [ "have", "VBP" ], [ "first", "VBN" ], [ "name", "NN" ], [ "ludie", "NN" ], [ "?", "." ] ], "values": [ "1", "Ludie" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(10) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Staff WHERE first_name = \"Ludie\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Ludie", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "staff", "where", "first_name", "=", "value" ], "question": "How many employees have a first name of Ludie?", "question_toks": [ "how", "many", "employee", "have", "a", "first", "name", "of", "ludie", "?" ], "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, 10, false ], null ], "\"Ludie\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "employees", "have", "a", "first", "name", "of", "Ludie", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "employee" ], [ "have" ], [ "a" ], [ "first", "name" ], [ "of" ], [ "ludie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "employee", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "ludie", "NN" ], [ "?", "." ] ], "values": [ "1", "Ludie" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(10) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT nickname FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";", "query_toks": [ "SELECT", "nickname", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Janessa", "''", "AND", "last_name", "=", "``", "Sawayn", "''", ";" ], "query_toks_no_value": [ "select", "nickname", "from", "staff", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "What is the nickname of staff with first name as Janessa and last name as Sawayn?", "question_toks": [ "what", "is", "nickname", "of", "staff", "with", "first", "name", "a", "janessa", "and", "last", "name", "a", "sawayn", "?" ], "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, 10, false ], null ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "nickname", "of", "staff", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "nickname" ], [ "of" ], [ "staff" ], [ "with" ], [ "first", "name" ], [ "a" ], [ "janessa" ], [ "and" ], [ "last", "name" ], [ "a" ], [ "sawayn" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "nickname", "JJ" ], [ "of", "IN" ], [ "staff", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "janessa", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "sawayn", "NN" ], [ "?", "." ] ], "values": [ "1", "Sawayn", "Janessa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(0) Filter(2) A(0) C(10) T(1) V(2) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT nickname FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";", "query_toks": [ "SELECT", "nickname", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Janessa", "''", "AND", "last_name", "=", "``", "Sawayn", "''", ";" ], "query_toks_no_value": [ "select", "nickname", "from", "staff", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "What is the nickname of the employee named Janessa Sawayn?", "question_toks": [ "what", "is", "nickname", "of", "employee", "named", "janessa", "sawayn", "?" ], "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, 10, false ], null ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "nickname", "of", "the", "employee", "named", "Janessa", "Sawayn", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "nickname" ], [ "of" ], [ "employee" ], [ "named" ], [ "janessa" ], [ "sawayn" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "nickname", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "named", "VBN" ], [ "janessa", "NN" ], [ "sawayn", "NN" ], [ "?", "." ] ], "values": [ "Janessa", "Sawayn" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(0) Filter(2) A(0) C(10) T(1) V(0) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Staff;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Staff", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "staff" ], "question": "How many staff in total?", "question_toks": [ "how", "many", "staff", "in", "total", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "staff", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "staff" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "staff", "NN" ], [ "in", "IN" ], [ "total", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Staff;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Staff", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "staff" ], "question": "How many employees are there?", "question_toks": [ "how", "many", "employee", "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": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "employees", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "employee" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "employee", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "driving_school", "query": "SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";", "query_toks": [ "SELECT", "T1.city", "FROM", "Addresses", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.address_id", "=", "T2.staff_address_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ], "question": "Which city does staff with first name as Janessa and last name as Sawayn live?", "question_toks": [ "which", "city", "doe", "staff", "with", "first", "name", "a", "janessa", "and", "last", "name", "a", "sawayn", "live", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "Which", "city", "does", "staff", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn", "live", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "doe" ], [ "staff" ], [ "with" ], [ "first", "name" ], [ "a" ], [ "janessa" ], [ "and" ], [ "last", "name" ], [ "a" ], [ "sawayn" ], [ "live" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "doe", "NN" ], [ "staff", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "janessa", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "sawayn", "NN" ], [ "live", "NN" ], [ "?", "." ] ], "values": [ "1", "Sawayn", "Janessa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(0) Filter(2) A(0) C(10) T(1) V(2) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";", "query_toks": [ "SELECT", "T1.city", "FROM", "Addresses", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.address_id", "=", "T2.staff_address_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ], "question": "In what city does Janessa Sawayn live?", "question_toks": [ "in", "what", "city", "doe", "janessa", "sawayn", "live", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "In", "what", "city", "does", "Janessa", "Sawayn", "live", "?" ], "question_arg": [ [ "in" ], [ "what" ], [ "city" ], [ "doe" ], [ "janessa" ], [ "sawayn" ], [ "live" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "what", "WP" ], [ "city", "NN" ], [ "doe", "NN" ], [ "janessa", "NN" ], [ "sawayn", "NN" ], [ "live", "CD" ], [ "?", "." ] ], "values": [ "Sawayn", "Janessa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(0) Filter(2) A(0) C(10) T(1) V(1) Filter(2) A(0) C(12) T(1) V(0)" }, { "db_id": "driving_school", "query": "SELECT T1.country , T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";", "query_toks": [ "SELECT", "T1.country", ",", "T1.state_province_county", "FROM", "Addresses", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.address_id", "=", "T2.staff_address_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "country", ",", "t1", ".", "state_province_county", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ], "question": "Which country and state does staff with first name as Janessa and last name as Sawayn lived?", "question_toks": [ "which", "country", "and", "state", "doe", "staff", "with", "first", "name", "a", "janessa", "and", "last", "name", "a", "sawayn", "lived", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "Which", "country", "and", "state", "does", "staff", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn", "lived", "?" ], "question_arg": [ [ "which" ], [ "country" ], [ "and" ], [ "state" ], [ "doe" ], [ "staff" ], [ "with" ], [ "first", "name" ], [ "a" ], [ "janessa" ], [ "and" ], [ "last", "name" ], [ "a" ], [ "sawayn" ], [ "lived" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "and", "CC" ], [ "state", "NN" ], [ "doe", "JJ" ], [ "staff", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "janessa", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "sawayn", "NN" ], [ "lived", "VBN" ], [ "?", "." ] ], "values": [ "1", "Sawayn", "Janessa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(0) A(0) C(5) T(0) Filter(0) Filter(2) A(0) C(10) T(1) V(2) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT T1.country , T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";", "query_toks": [ "SELECT", "T1.country", ",", "T1.state_province_county", "FROM", "Addresses", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.address_id", "=", "T2.staff_address_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "country", ",", "t1", ".", "state_province_county", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ], "question": "In which country and state does Janessa Sawayn live?", "question_toks": [ "in", "which", "country", "and", "state", "doe", "janessa", "sawayn", "live", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "In", "which", "country", "and", "state", "does", "Janessa", "Sawayn", "live", "?" ], "question_arg": [ [ "in" ], [ "which" ], [ "country" ], [ "and" ], [ "state" ], [ "doe" ], [ "janessa" ], [ "sawayn" ], [ "live" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "which", "WDT" ], [ "country", "NN" ], [ "and", "CC" ], [ "state", "NN" ], [ "doe", "NN" ], [ "janessa", "NN" ], [ "sawayn", "NN" ], [ "live", "CD" ], [ "?", "." ] ], "values": [ "Sawayn", "Janessa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(0) A(0) C(5) T(0) Filter(0) Filter(2) A(0) C(10) T(1) V(1) Filter(2) A(0) C(12) T(1) V(0)" }, { "db_id": "driving_school", "query": "SELECT sum(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\";", "query_toks": [ "SELECT", "sum", "(", "T1.lesson_time", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.first_name", "=", "``", "Rylan", "''", "AND", "T2.last_name", "=", "``", "Goodwin", "''", ";" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "lesson_time", ")", "from", "lessons", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ], "question": "How long is the total lesson time took by customer with first name as Rylan and last name as Goodwin?", "question_toks": [ "how", "long", "is", "total", "lesson", "time", "took", "by", "customer", "with", "first", "name", "a", "rylan", "and", "last", "name", "a", "goodwin", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Rylan\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Goodwin\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "long", "is", "the", "total", "lesson", "time", "took", "by", "customer", "with", "first", "name", "as", "Rylan", "and", "last", "name", "as", "Goodwin", "?" ], "question_arg": [ [ "how" ], [ "long" ], [ "is" ], [ "total" ], [ "lesson", "time" ], [ "took" ], [ "by" ], [ "customer" ], [ "with" ], [ "first", "name" ], [ "a" ], [ "rylan" ], [ "and" ], [ "last", "name" ], [ "a" ], [ "goodwin" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "long", "JJ" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "lesson", "JJ" ], [ "time", "NN" ], [ "took", "VBD" ], [ "by", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "rylan", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "goodwin", "NN" ], [ "?", "." ] ], "values": [ "1", "Goodwin", "Rylan" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(32) T(5) Filter(0) Filter(2) A(0) C(10) T(3) V(2) Filter(2) A(0) C(12) T(3) V(1)" }, { "db_id": "driving_school", "query": "SELECT sum(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\";", "query_toks": [ "SELECT", "sum", "(", "T1.lesson_time", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.first_name", "=", "``", "Rylan", "''", "AND", "T2.last_name", "=", "``", "Goodwin", "''", ";" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "lesson_time", ")", "from", "lessons", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ], "question": "How long is the total lesson time took by the customer named Rylan Goodwin?", "question_toks": [ "how", "long", "is", "total", "lesson", "time", "took", "by", "customer", "named", "rylan", "goodwin", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Rylan\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Goodwin\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "long", "is", "the", "total", "lesson", "time", "took", "by", "the", "customer", "named", "Rylan", "Goodwin", "?" ], "question_arg": [ [ "how" ], [ "long" ], [ "is" ], [ "total" ], [ "lesson", "time" ], [ "took" ], [ "by" ], [ "customer" ], [ "named" ], [ "rylan" ], [ "goodwin" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "long", "JJ" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "lesson", "JJ" ], [ "time", "NN" ], [ "took", "VBD" ], [ "by", "IN" ], [ "customer", "NN" ], [ "named", "VBN" ], [ "rylan", "NN" ], [ "goodwin", "NN" ], [ "?", "." ] ], "values": [ "Rylan", "Goodwin" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(32) T(5) Filter(0) Filter(2) A(0) C(10) T(3) V(0) Filter(2) A(0) C(12) T(3) V(1)" }, { "db_id": "driving_school", "query": "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";", "query_toks": [ "SELECT", "T1.zip_postcode", "FROM", "Addresses", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.address_id", "=", "T2.staff_address_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "zip_postcode", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ], "question": "What is the zip code of staff with first name as Janessa and last name as Sawayn lived?", "question_toks": [ "what", "is", "zip", "code", "of", "staff", "with", "first", "name", "a", "janessa", "and", "last", "name", "a", "sawayn", "lived", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "zip", "code", "of", "staff", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn", "lived", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "zip" ], [ "code" ], [ "of" ], [ "staff" ], [ "with" ], [ "first", "name" ], [ "a" ], [ "janessa" ], [ "and" ], [ "last", "name" ], [ "a" ], [ "sawayn" ], [ "lived" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "zip", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "janessa", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "sawayn", "NN" ], [ "lived", "VBN" ], [ "?", "." ] ], "values": [ "1", "Sawayn", "Janessa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(0) Filter(2) A(0) C(10) T(1) V(2) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";", "query_toks": [ "SELECT", "T1.zip_postcode", "FROM", "Addresses", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.address_id", "=", "T2.staff_address_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "zip_postcode", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ], "question": "What is the zip code of the hosue of the employee named Janessa Sawayn?", "question_toks": [ "what", "is", "zip", "code", "of", "hosue", "of", "employee", "named", "janessa", "sawayn", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "zip", "code", "of", "the", "hosue", "of", "the", "employee", "named", "Janessa", "Sawayn", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "zip" ], [ "code" ], [ "of" ], [ "hosue" ], [ "of" ], [ "employee" ], [ "named" ], [ "janessa" ], [ "sawayn" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "zip", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "hosue", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "named", "VBN" ], [ "janessa", "NN" ], [ "sawayn", "NN" ], [ "?", "." ] ], "values": [ "Janessa", "Sawayn" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(0) Filter(2) A(0) C(10) T(1) V(0) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Addresses WHERE state_province_county = \"Georgia\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Addresses", "WHERE", "state_province_county", "=", "``", "Georgia", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "addresses", "where", "state_province_county", "=", "value" ], "question": "How many staff live in state Georgia?", "question_toks": [ "how", "many", "staff", "live", "in", "state", "georgia", "?" ], "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, 5, false ], null ], "\"Georgia\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "staff", "live", "in", "state", "Georgia", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "staff" ], [ "live" ], [ "in" ], [ "state" ], [ "georgia" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "staff", "NN" ], [ "live", "VBP" ], [ "in", "IN" ], [ "state", "NN" ], [ "georgia", "NN" ], [ "?", "." ] ], "values": [ "Georgia" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Addresses WHERE state_province_county = \"Georgia\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Addresses", "WHERE", "state_province_county", "=", "``", "Georgia", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "addresses", "where", "state_province_county", "=", "value" ], "question": "How many employees live in Georgia?", "question_toks": [ "how", "many", "employee", "live", "in", "georgia", "?" ], "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, 5, false ], null ], "\"Georgia\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "employees", "live", "in", "Georgia", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "employee" ], [ "live" ], [ "in" ], [ "georgia" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "employee", "NN" ], [ "live", "VBP" ], [ "in", "IN" ], [ "georgia", "NN" ], [ "?", "." ] ], "values": [ "Georgia" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "driving_school", "query": "SELECT T2.first_name , T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = \"Damianfort\";", "query_toks": [ "SELECT", "T2.first_name", ",", "T2.last_name", "FROM", "Addresses", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.address_id", "=", "T2.staff_address_id", "WHERE", "T1.city", "=", "``", "Damianfort", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "where", "t1", ".", "city", "=", "value" ], "question": "Find out the first name and last name of staff lived in city Damianfort.", "question_toks": [ "find", "out", "first", "name", "and", "last", "name", "of", "staff", "lived", "in", "city", "damianfort", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Damianfort\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "Find", "out", "the", "first", "name", "and", "last", "name", "of", "staff", "lived", "in", "city", "Damianfort", "." ], "question_arg": [ [ "find" ], [ "out" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "staff" ], [ "lived" ], [ "in" ], [ "city" ], [ "damianfort" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "out", "RP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "lived", "VBN" ], [ "in", "IN" ], [ "city", "NN" ], [ "damianfort", "NN" ], [ ".", "." ] ], "values": [ "1", "Damianfort" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(1) A(0) C(12) T(1) Filter(2) A(0) C(3) T(0) V(1)" }, { "db_id": "driving_school", "query": "SELECT T2.first_name , T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = \"Damianfort\";", "query_toks": [ "SELECT", "T2.first_name", ",", "T2.last_name", "FROM", "Addresses", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.address_id", "=", "T2.staff_address_id", "WHERE", "T1.city", "=", "``", "Damianfort", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "where", "t1", ".", "city", "=", "value" ], "question": "What is the first and last name of all employees who live in the city Damianfort?", "question_toks": [ "what", "is", "first", "and", "last", "name", "of", "all", "employee", "who", "live", "in", "city", "damianfort", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Damianfort\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "first", "and", "last", "name", "of", "all", "employees", "who", "live", "in", "the", "city", "Damianfort", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "employee" ], [ "who" ], [ "live" ], [ "in" ], [ "city" ], [ "damianfort" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "live", "VBP" ], [ "in", "IN" ], [ "city", "NN" ], [ "damianfort", "NN" ], [ "?", "." ] ], "values": [ "Damianfort", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(1) A(0) C(12) T(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "driving_school", "query": "SELECT T1.city , count(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.city", ",", "count", "(", "*", ")", "FROM", "Addresses", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.address_id", "=", "T2.staff_address_id", "GROUP", "BY", "T1.city", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "city", ",", "count", "(", "*", ")", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "group", "by", "t1", ".", "city", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which city lives most of staffs? List the city name and number of staffs.", "question_toks": [ "which", "city", "life", "most", "of", "staff", "?", "list", "city", "name", "and", "number", "of", "staff", "." ], "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, 3, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "Which", "city", "lives", "most", "of", "staffs", "?", "List", "the", "city", "name", "and", "number", "of", "staffs", "." ], "question_arg": [ [ "which" ], [ "city" ], [ "life" ], [ "most" ], [ "of" ], [ "staff" ], [ "?" ], [ "list" ], [ "city" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "staff" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "life", "NN" ], [ "most", "JJS" ], [ "of", "IN" ], [ "staff", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "city", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(3) T(0) A(3) C(0) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "driving_school", "query": "SELECT T1.city , count(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.city", ",", "count", "(", "*", ")", "FROM", "Addresses", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.address_id", "=", "T2.staff_address_id", "GROUP", "BY", "T1.city", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "city", ",", "count", "(", "*", ")", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "group", "by", "t1", ".", "city", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "In which city do the most employees live and how many of them live there?", "question_toks": [ "in", "which", "city", "do", "most", "employee", "live", "and", "how", "many", "of", "them", "live", "there", "?" ], "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, 3, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "In", "which", "city", "do", "the", "most", "employees", "live", "and", "how", "many", "of", "them", "live", "there", "?" ], "question_arg": [ [ "in" ], [ "which" ], [ "city" ], [ "do" ], [ "most" ], [ "employee" ], [ "live" ], [ "and" ], [ "how" ], [ "many" ], [ "of" ], [ "them" ], [ "live" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "which", "WDT" ], [ "city", "NN" ], [ "do", "VBP" ], [ "most", "RBS" ], [ "employee", "NN" ], [ "live", "JJ" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "of", "IN" ], [ "them", "PRP" ], [ "live", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(3) T(0) A(3) C(0) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "driving_school", "query": "SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4;", "query_toks": [ "SELECT", "T1.state_province_county", "FROM", "Addresses", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.address_id", "=", "T2.staff_address_id", "GROUP", "BY", "T1.state_province_county", "HAVING", "count", "(", "*", ")", "BETWEEN", "2", "AND", "4", ";" ], "query_toks_no_value": [ "select", "t1", ".", "state_province_county", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "group", "by", "t1", ".", "state_province_county", "having", "count", "(", "*", ")", "between", "value", "and", "value" ], "question": "List the states which have between 2 to 4 staffs living there.", "question_toks": [ "list", "state", "which", "have", "between", "2", "to", "4", "staff", "living", "there", "." ], "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, 5, false ] ], "having": [ [ false, 1, [ 0, [ 3, 0, false ], null ], 2.0, 4.0 ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "List", "the", "states", "which", "have", "between", "2", "to", "4", "staffs", "living", "there", "." ], "question_arg": [ [ "list" ], [ "state" ], [ "which" ], [ "have" ], [ "between" ], [ "2" ], [ "to" ], [ "4" ], [ "staff" ], [ "living" ], [ "there" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "state", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "between", "IN" ], [ "2", "CD" ], [ "to", "TO" ], [ "4", "CD" ], [ "staff", "NN" ], [ "living", "NN" ], [ "there", "RB" ], [ ".", "." ] ], "values": [ "2", "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(8) T(1) Filter(8) A(3) C(0) T(1) V(0) V(1)" }, { "db_id": "driving_school", "query": "SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4;", "query_toks": [ "SELECT", "T1.state_province_county", "FROM", "Addresses", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.address_id", "=", "T2.staff_address_id", "GROUP", "BY", "T1.state_province_county", "HAVING", "count", "(", "*", ")", "BETWEEN", "2", "AND", "4", ";" ], "query_toks_no_value": [ "select", "t1", ".", "state_province_county", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "group", "by", "t1", ".", "state_province_county", "having", "count", "(", "*", ")", "between", "value", "and", "value" ], "question": "What are the names of the states that have 2 to 4 employees living there?", "question_toks": [ "what", "are", "name", "of", "state", "that", "have", "2", "to", "4", "employee", "living", "there", "?" ], "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, 5, false ] ], "having": [ [ false, 1, [ 0, [ 3, 0, false ], null ], 2.0, 4.0 ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "states", "that", "have", "2", "to", "4", "employees", "living", "there", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "state" ], [ "that" ], [ "have" ], [ "2" ], [ "to" ], [ "4" ], [ "employee" ], [ "living" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "state", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "2", "CD" ], [ "to", "TO" ], [ "4", "CD" ], [ "employee", "NN" ], [ "living", "NN" ], [ "there", "RB" ], [ "?", "." ] ], "values": [ "2", "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(8) T(1) Filter(8) A(3) C(0) T(1) V(0) V(1)" }, { "db_id": "driving_school", "query": "SELECT first_name , last_name FROM Customers;", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "Customers", ";" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "customers" ], "question": "List the first name and last name of all customers.", "question_toks": [ "list", "first", "name", "and", "last", "name", "of", "all", "customer", "." ], "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, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "List", "the", "first", "name", "and", "last", "name", "of", "all", "customers", "." ], "question_arg": [ [ "list" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(10) T(3) A(0) C(12) T(3)" }, { "db_id": "driving_school", "query": "SELECT first_name , last_name FROM Customers;", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "Customers", ";" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "customers" ], "question": "What are the first and last names for all customers?", "question_toks": [ "what", "are", "first", "and", "last", "name", "for", "all", "customer", "?" ], "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, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "for", "all", "customers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "for" ], [ "all" ], [ "customer" ], [ "?" ] ], "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" ], [ "for", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(10) T(3) A(0) C(12) T(3)" }, { "db_id": "driving_school", "query": "SELECT email_address , date_of_birth FROM Customers WHERE first_name = \"Carole\"", "query_toks": [ "SELECT", "email_address", ",", "date_of_birth", "FROM", "Customers", "WHERE", "first_name", "=", "``", "Carole", "''" ], "query_toks_no_value": [ "select", "email_address", ",", "date_of_birth", "from", "customers", "where", "first_name", "=", "value" ], "question": "List email address and birthday of customer whose first name as Carole.", "question_toks": [ "list", "email", "address", "and", "birthday", "of", "customer", "whose", "first", "name", "a", "carole", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Carole\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "List", "email", "address", "and", "birthday", "of", "customer", "whose", "first", "name", "as", "Carole", "." ], "question_arg": [ [ "list" ], [ "email", "address" ], [ "and" ], [ "birthday" ], [ "of" ], [ "customer" ], [ "whose" ], [ "first", "name" ], [ "a" ], [ "carole" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "email", "NN" ], [ "address", "NN" ], [ "and", "CC" ], [ "birthday", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "carole", "NN" ], [ ".", "." ] ], "values": [ "Carole", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(23) T(3) A(0) C(13) T(3) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "driving_school", "query": "SELECT email_address , date_of_birth FROM Customers WHERE first_name = \"Carole\"", "query_toks": [ "SELECT", "email_address", ",", "date_of_birth", "FROM", "Customers", "WHERE", "first_name", "=", "``", "Carole", "''" ], "query_toks_no_value": [ "select", "email_address", ",", "date_of_birth", "from", "customers", "where", "first_name", "=", "value" ], "question": "What are the email addresses and date of births for all customers who have a first name of Carole?", "question_toks": [ "what", "are", "email", "address", "and", "date", "of", "birth", "for", "all", "customer", "who", "have", "a", "first", "name", "of", "carole", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Carole\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "are", "the", "email", "addresses", "and", "date", "of", "births", "for", "all", "customers", "who", "have", "a", "first", "name", "of", "Carole", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "email", "address" ], [ "and" ], [ "date", "of", "birth" ], [ "for" ], [ "all" ], [ "customer" ], [ "who" ], [ "have" ], [ "a" ], [ "first", "name" ], [ "of" ], [ "carole" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "email", "JJ" ], [ "address", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "birth", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "carole", "NN" ], [ "?", "." ] ], "values": [ "1", "Carole" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(23) T(3) A(0) C(13) T(3) Filter(2) A(0) C(10) T(3) V(1)" }, { "db_id": "driving_school", "query": "SELECT phone_number , email_address FROM Customers WHERE amount_outstanding > 2000;", "query_toks": [ "SELECT", "phone_number", ",", "email_address", "FROM", "Customers", "WHERE", "amount_outstanding", ">", "2000", ";" ], "query_toks_no_value": [ "select", "phone_number", ",", "email_address", "from", "customers", "where", "amount_outstanding", ">", "value" ], "question": "List phone number and email address of customer with more than 2000 outstanding balance.", "question_toks": [ "list", "phone", "number", "and", "email", "address", "of", "customer", "with", "more", "than", "year", "outstanding", "balance", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 25, false ], null ], 2000.0, null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "List", "phone", "number", "and", "email", "address", "of", "customer", "with", "more", "than", "2000", "outstanding", "balance", "." ], "question_arg": [ [ "list" ], [ "phone", "number" ], [ "and" ], [ "email", "address" ], [ "of" ], [ "customer" ], [ "with" ], [ "more" ], [ "than" ], [ "year" ], [ "outstanding" ], [ "balance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "phone", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "email", "JJ" ], [ "address", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2000", "CD" ], [ "outstanding", "JJ" ], [ "balance", "NN" ], [ ".", "." ] ], "values": [ "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(24) T(3) A(0) C(23) T(3) Filter(5) A(0) C(22) T(3) V(0)" }, { "db_id": "driving_school", "query": "SELECT phone_number , email_address FROM Customers WHERE amount_outstanding > 2000;", "query_toks": [ "SELECT", "phone_number", ",", "email_address", "FROM", "Customers", "WHERE", "amount_outstanding", ">", "2000", ";" ], "query_toks_no_value": [ "select", "phone_number", ",", "email_address", "from", "customers", "where", "amount_outstanding", ">", "value" ], "question": "What are the phone numbers and email addresses of all customers who have an outstanding balance of more than 2000?", "question_toks": [ "what", "are", "phone", "number", "and", "email", "address", "of", "all", "customer", "who", "have", "an", "outstanding", "balance", "of", "more", "than", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 25, false ], null ], 2000.0, null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "are", "the", "phone", "numbers", "and", "email", "addresses", "of", "all", "customers", "who", "have", "an", "outstanding", "balance", "of", "more", "than", "2000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "phone", "number" ], [ "and" ], [ "email", "address" ], [ "of" ], [ "all" ], [ "customer" ], [ "who" ], [ "have" ], [ "an" ], [ "outstanding" ], [ "balance" ], [ "of" ], [ "more" ], [ "than" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "phone", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "email", "JJ" ], [ "address", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "an", "DT" ], [ "outstanding", "JJ" ], [ "balance", "NN" ], [ "of", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2000", "CD" ], [ "?", "." ] ], "values": [ "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(24) T(3) A(0) C(23) T(3) Filter(5) A(0) C(22) T(3) V(0)" }, { "db_id": "driving_school", "query": "SELECT customer_status_code , cell_mobile_phone_number , email_address FROM Customers WHERE first_name = \"Marina\" OR last_name = \"Kohler\"", "query_toks": [ "SELECT", "customer_status_code", ",", "cell_mobile_phone_number", ",", "email_address", "FROM", "Customers", "WHERE", "first_name", "=", "``", "Marina", "''", "OR", "last_name", "=", "``", "Kohler", "''" ], "query_toks_no_value": [ "select", "customer_status_code", ",", "cell_mobile_phone_number", ",", "email_address", "from", "customers", "where", "first_name", "=", "value", "or", "last_name", "=", "value" ], "question": "What is the status code, mobile phone number and email address of customer with last name as Kohler or first name as Marina?", "question_toks": [ "what", "is", "status", "code", ",", "mobile", "phone", "number", "and", "email", "address", "of", "customer", "with", "last", "name", "a", "kohler", "or", "first", "name", "a", "marina", "?" ], "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, 28, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Marina\"", null ], "or", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Kohler\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "status", "code", ",", "mobile", "phone", "number", "and", "email", "address", "of", "customer", "with", "last", "name", "as", "Kohler", "or", "first", "name", "as", "Marina", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "status" ], [ "code" ], [ "," ], [ "mobile" ], [ "phone", "number" ], [ "and" ], [ "email", "address" ], [ "of" ], [ "customer" ], [ "with" ], [ "last", "name" ], [ "a" ], [ "kohler" ], [ "or" ], [ "first", "name" ], [ "a" ], [ "marina" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "status", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "mobile", "JJ" ], [ "phone", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "email", "JJ" ], [ "address", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "kohler", "NN" ], [ "or", "CC" ], [ "first", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "marina", "NN" ], [ "?", "." ] ], "values": [ "Kohler", "Marina", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(20) T(3) A(0) C(25) T(3) A(0) C(23) T(3) Filter(1) Filter(2) A(0) C(10) T(3) V(1) Filter(2) A(0) C(12) T(3) V(0)" }, { "db_id": "driving_school", "query": "SELECT customer_status_code , cell_mobile_phone_number , email_address FROM Customers WHERE first_name = \"Marina\" OR last_name = \"Kohler\"", "query_toks": [ "SELECT", "customer_status_code", ",", "cell_mobile_phone_number", ",", "email_address", "FROM", "Customers", "WHERE", "first_name", "=", "``", "Marina", "''", "OR", "last_name", "=", "``", "Kohler", "''" ], "query_toks_no_value": [ "select", "customer_status_code", ",", "cell_mobile_phone_number", ",", "email_address", "from", "customers", "where", "first_name", "=", "value", "or", "last_name", "=", "value" ], "question": "What is the status code, phone number, and email address of the customer whose last name is Kohler or whose first name is Marina?", "question_toks": [ "what", "is", "status", "code", ",", "phone", "number", ",", "and", "email", "address", "of", "customer", "whose", "last", "name", "is", "kohler", "or", "whose", "first", "name", "is", "marina", "?" ], "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, 28, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Marina\"", null ], "or", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Kohler\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "status", "code", ",", "phone", "number", ",", "and", "email", "address", "of", "the", "customer", "whose", "last", "name", "is", "Kohler", "or", "whose", "first", "name", "is", "Marina", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "status" ], [ "code" ], [ "," ], [ "phone", "number" ], [ "," ], [ "and" ], [ "email", "address" ], [ "of" ], [ "customer" ], [ "whose" ], [ "last", "name" ], [ "is" ], [ "kohler" ], [ "or" ], [ "whose" ], [ "first", "name" ], [ "is" ], [ "marina" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "status", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "phone", "NN" ], [ "number", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "email", "JJ" ], [ "address", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "kohler", "VBN" ], [ "or", "CC" ], [ "whose", "WP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "marina", "VBN" ], [ "?", "." ] ], "values": [ "1", "Kohler", "Marina" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(20) T(3) A(0) C(25) T(3) A(0) C(23) T(3) Filter(1) Filter(2) A(0) C(10) T(3) V(2) Filter(2) A(0) C(12) T(3) V(1)" }, { "db_id": "driving_school", "query": "SELECT date_of_birth FROM Customers WHERE customer_status_code = 'Good Customer'", "query_toks": [ "SELECT", "date_of_birth", "FROM", "Customers", "WHERE", "customer_status_code", "=", "'Good", "Customer", "'" ], "query_toks_no_value": [ "select", "date_of_birth", "from", "customers", "where", "customer_status_code", "=", "value" ], "question": "When are the birthdays of customer who are classified as 'Good Customer' status?", "question_toks": [ "when", "are", "birthday", "of", "customer", "who", "are", "classified", "a", "'", "good", "customer", "'", "status", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Good Customer\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "When", "are", "the", "birthdays", "of", "customer", "who", "are", "classified", "as", "'Good", "Customer", "'", "status", "?" ], "question_arg": [ [ "when" ], [ "are" ], [ "birthday" ], [ "of" ], [ "customer" ], [ "who" ], [ "are" ], [ "classified" ], [ "a" ], [ "'" ], [ "good" ], [ "customer" ], [ "'" ], [ "status" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "are", "VBP" ], [ "birthday", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "classified", "VBN" ], [ "a", "DT" ], [ "'", "POS" ], [ "good", "JJ" ], [ "customer", "NN" ], [ "'", "''" ], [ "status", "NN" ], [ "?", "." ] ], "values": [ "Good Customer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(3) Filter(2) A(0) C(20) T(3) V(0)" }, { "db_id": "driving_school", "query": "SELECT date_of_birth FROM Customers WHERE customer_status_code = 'Good Customer'", "query_toks": [ "SELECT", "date_of_birth", "FROM", "Customers", "WHERE", "customer_status_code", "=", "'Good", "Customer", "'" ], "query_toks_no_value": [ "select", "date_of_birth", "from", "customers", "where", "customer_status_code", "=", "value" ], "question": "What is the date of birth of every customer whose status code is 'Good Customer'?", "question_toks": [ "what", "is", "date", "of", "birth", "of", "every", "customer", "whose", "status", "code", "is", "'", "good", "customer", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Good Customer\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "date", "of", "birth", "of", "every", "customer", "whose", "status", "code", "is", "'Good", "Customer", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "date", "of", "birth" ], [ "of" ], [ "every" ], [ "customer" ], [ "whose" ], [ "status" ], [ "code" ], [ "is" ], [ "'" ], [ "good" ], [ "customer" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "date", "NN" ], [ "of", "IN" ], [ "birth", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "status", "NN" ], [ "code", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "good", "JJ" ], [ "customer", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Good Customer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(3) Filter(2) A(0) C(20) T(3) V(0)" }, { "db_id": "driving_school", "query": "SELECT date_became_customer FROM Customers WHERE first_name = \"Carole\" AND last_name = \"Bernhard\";", "query_toks": [ "SELECT", "date_became_customer", "FROM", "Customers", "WHERE", "first_name", "=", "``", "Carole", "''", "AND", "last_name", "=", "``", "Bernhard", "''", ";" ], "query_toks_no_value": [ "select", "date_became_customer", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "When did customer with first name as Carole and last name as Bernhard became a customer?", "question_toks": [ "when", "did", "customer", "with", "first", "name", "a", "carole", "and", "last", "name", "a", "bernhard", "became", "a", "customer", "?" ], "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, 23, false ], null ], "\"Carole\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Bernhard\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "When", "did", "customer", "with", "first", "name", "as", "Carole", "and", "last", "name", "as", "Bernhard", "became", "a", "customer", "?" ], "question_arg": [ [ "when" ], [ "did" ], [ "customer" ], [ "with" ], [ "first", "name" ], [ "a" ], [ "carole" ], [ "and" ], [ "last", "name" ], [ "a" ], [ "bernhard" ], [ "became" ], [ "a" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "did", "VBD" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "carole", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "bernhard", "NN" ], [ "became", "VBD" ], [ "a", "DT" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [ "Carole", "1", "Bernhard" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(21) T(3) Filter(0) Filter(2) A(0) C(10) T(3) V(0) Filter(2) A(0) C(12) T(3) V(2)" }, { "db_id": "driving_school", "query": "SELECT date_became_customer FROM Customers WHERE first_name = \"Carole\" AND last_name = \"Bernhard\";", "query_toks": [ "SELECT", "date_became_customer", "FROM", "Customers", "WHERE", "first_name", "=", "``", "Carole", "''", "AND", "last_name", "=", "``", "Bernhard", "''", ";" ], "query_toks_no_value": [ "select", "date_became_customer", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "When did Carole Bernhard first become a customer?", "question_toks": [ "when", "did", "carole", "bernhard", "first", "become", "a", "customer", "?" ], "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, 23, false ], null ], "\"Carole\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Bernhard\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "When", "did", "Carole", "Bernhard", "first", "become", "a", "customer", "?" ], "question_arg": [ [ "when" ], [ "did" ], [ "carole" ], [ "bernhard" ], [ "first" ], [ "become" ], [ "a" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "did", "VBD" ], [ "carole", "VB" ], [ "bernhard", "NN" ], [ "first", "RB" ], [ "become", "VB" ], [ "a", "DT" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [ "Carole", "1", "Bernhard" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(21) T(3) Filter(0) Filter(2) A(0) C(10) T(3) V(0) Filter(2) A(0) C(12) T(3) V(2)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Customers;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers" ], "question": "How many customers in total?", "question_toks": [ "how", "many", "customer", "in", "total", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "customers", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "in", "IN" ], [ "total", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Customers;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers" ], "question": "How many customers are there?", "question_toks": [ "how", "many", "customer", "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": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "customers", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "driving_school", "query": "SELECT customer_status_code , count(*) FROM Customers GROUP BY customer_status_code;", "query_toks": [ "SELECT", "customer_status_code", ",", "count", "(", "*", ")", "FROM", "Customers", "GROUP", "BY", "customer_status_code", ";" ], "query_toks_no_value": [ "select", "customer_status_code", ",", "count", "(", "*", ")", "from", "customers", "group", "by", "customer_status_code" ], "question": "List all customer status codes and the number of customers having each status code.", "question_toks": [ "list", "all", "customer", "status", "code", "and", "number", "of", "customer", "having", "each", "status", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "List", "all", "customer", "status", "codes", "and", "the", "number", "of", "customers", "having", "each", "status", "code", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "customer", "status", "code" ], [ "and" ], [ "number" ], [ "of" ], [ "customer" ], [ "having" ], [ "each" ], [ "status" ], [ "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "status", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "having", "VBG" ], [ "each", "DT" ], [ "status", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(20) T(3) A(3) C(0) T(3)" }, { "db_id": "driving_school", "query": "SELECT customer_status_code , count(*) FROM Customers GROUP BY customer_status_code;", "query_toks": [ "SELECT", "customer_status_code", ",", "count", "(", "*", ")", "FROM", "Customers", "GROUP", "BY", "customer_status_code", ";" ], "query_toks_no_value": [ "select", "customer_status_code", ",", "count", "(", "*", ")", "from", "customers", "group", "by", "customer_status_code" ], "question": "For each customer status code, how many customers are classified that way?", "question_toks": [ "for", "each", "customer", "status", "code", ",", "how", "many", "customer", "are", "classified", "that", "way", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "For", "each", "customer", "status", "code", ",", "how", "many", "customers", "are", "classified", "that", "way", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "customer", "status", "code" ], [ "," ], [ "how" ], [ "many" ], [ "customer" ], [ "are" ], [ "classified" ], [ "that" ], [ "way" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "customer", "NN" ], [ "status", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "are", "VBP" ], [ "classified", "VBN" ], [ "that", "IN" ], [ "way", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(20) T(3) A(3) C(0) T(3)" }, { "db_id": "driving_school", "query": "SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1;", "query_toks": [ "SELECT", "customer_status_code", "FROM", "Customers", "GROUP", "BY", "customer_status_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "customer_status_code", "from", "customers", "group", "by", "customer_status_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Which customer status code has least number of customers?", "question_toks": [ "which", "customer", "status", "code", "ha", "least", "number", "of", "customer", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "Which", "customer", "status", "code", "has", "least", "number", "of", "customers", "?" ], "question_arg": [ [ "which" ], [ "customer", "status", "code" ], [ "ha" ], [ "least" ], [ "number" ], [ "of" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "status", "NN" ], [ "code", "NN" ], [ "ha", "NN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(20) T(3) Sup(1) A(3) C(0) T(3)" }, { "db_id": "driving_school", "query": "SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1;", "query_toks": [ "SELECT", "customer_status_code", "FROM", "Customers", "GROUP", "BY", "customer_status_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "customer_status_code", "from", "customers", "group", "by", "customer_status_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "What is the status code with the least number of customers?", "question_toks": [ "what", "is", "status", "code", "with", "least", "number", "of", "customer", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "status", "code", "with", "the", "least", "number", "of", "customers", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "status" ], [ "code" ], [ "with" ], [ "least" ], [ "number" ], [ "of" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "status", "NN" ], [ "code", "NN" ], [ "with", "IN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(20) T(3) Sup(1) A(3) C(0) T(3)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\" AND T1.lesson_status_code = \"Completed\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.first_name", "=", "``", "Rylan", "''", "AND", "T2.last_name", "=", "``", "Goodwin", "''", "AND", "T1.lesson_status_code", "=", "``", "Completed", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "lessons", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value", "and", "t1", ".", "lesson_status_code", "=", "value" ], "question": "How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?", "question_toks": [ "how", "many", "lesson", "taken", "by", "customer", "with", "first", "name", "a", "rylan", "and", "last", "name", "a", "goodwin", "were", "completed", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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 ], "\"Rylan\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Goodwin\"", null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Completed\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "lessons", "taken", "by", "customer", "with", "first", "name", "as", "Rylan", "and", "last", "name", "as", "Goodwin", "were", "completed", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "lesson" ], [ "taken" ], [ "by" ], [ "customer" ], [ "with" ], [ "first", "name" ], [ "a" ], [ "rylan" ], [ "and" ], [ "last", "name" ], [ "a" ], [ "goodwin" ], [ "were" ], [ "completed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "lesson", "NN" ], [ "taken", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "rylan", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "goodwin", "NN" ], [ "were", "VBD" ], [ "completed", "VBN" ], [ "?", "." ] ], "values": [ "1", "Rylan", "Goodwin", "Completed" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(0) Filter(2) A(0) C(10) T(3) V(1) Filter(0) Filter(2) A(0) C(12) T(3) V(2) Filter(2) A(0) C(30) T(5) V(3)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\" AND T1.lesson_status_code = \"Completed\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.first_name", "=", "``", "Rylan", "''", "AND", "T2.last_name", "=", "``", "Goodwin", "''", "AND", "T1.lesson_status_code", "=", "``", "Completed", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "lessons", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value", "and", "t1", ".", "lesson_status_code", "=", "value" ], "question": "How many lessons did the customer Rylan Goodwin complete?", "question_toks": [ "how", "many", "lesson", "did", "customer", "rylan", "goodwin", "complete", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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 ], "\"Rylan\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Goodwin\"", null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Completed\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "lessons", "did", "the", "customer", "Rylan", "Goodwin", "complete", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "lesson" ], [ "did" ], [ "customer" ], [ "rylan" ], [ "goodwin" ], [ "complete" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "lesson", "NN" ], [ "did", "VBD" ], [ "customer", "NN" ], [ "rylan", "NN" ], [ "goodwin", "VB" ], [ "complete", "JJ" ], [ "?", "." ] ], "values": [ "Rylan", "Goodwin", "Completed" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(0) Filter(2) A(0) C(10) T(3) V(0) Filter(0) Filter(2) A(0) C(12) T(3) V(1) Filter(2) A(0) C(30) T(5) V(2)" }, { "db_id": "driving_school", "query": "SELECT max(amount_outstanding) , min(amount_outstanding) , avg(amount_outstanding) FROM Customers;", "query_toks": [ "SELECT", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "FROM", "Customers", ";" ], "query_toks_no_value": [ "select", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "from", "customers" ], "question": "What is maximum, minimum and average amount of outstanding of customer?", "question_toks": [ "what", "is", "maximum", ",", "minimum", "and", "average", "amount", "of", "outstanding", "of", "customer", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 25, false ], null ] ], [ 2, [ 0, [ 0, 25, false ], null ] ], [ 5, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "maximum", ",", "minimum", "and", "average", "amount", "of", "outstanding", "of", "customer", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "," ], [ "minimum" ], [ "and" ], [ "average" ], [ "amount" ], [ "of" ], [ "outstanding" ], [ "of" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ ",", "," ], [ "minimum", "JJ" ], [ "and", "CC" ], [ "average", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "outstanding", "JJ" ], [ "of", "IN" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(1) C(22) T(3) A(2) C(22) T(3) A(5) C(22) T(3)" }, { "db_id": "driving_school", "query": "SELECT max(amount_outstanding) , min(amount_outstanding) , avg(amount_outstanding) FROM Customers;", "query_toks": [ "SELECT", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "FROM", "Customers", ";" ], "query_toks_no_value": [ "select", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "from", "customers" ], "question": "What is the maximum, minimum, and average amount of money outsanding for all customers?", "question_toks": [ "what", "is", "maximum", ",", "minimum", ",", "and", "average", "amount", "of", "money", "outsanding", "for", "all", "customer", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 25, false ], null ] ], [ 2, [ 0, [ 0, 25, false ], null ] ], [ 5, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "maximum", ",", "minimum", ",", "and", "average", "amount", "of", "money", "outsanding", "for", "all", "customers", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "," ], [ "minimum" ], [ "," ], [ "and" ], [ "average" ], [ "amount" ], [ "of" ], [ "money" ], [ "outsanding" ], [ "for" ], [ "all" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ ",", "," ], [ "minimum", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "average", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "money", "NN" ], [ "outsanding", "VBG" ], [ "for", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(1) C(22) T(3) A(2) C(22) T(3) A(5) C(22) T(3)" }, { "db_id": "driving_school", "query": "SELECT first_name , last_name FROM Customers WHERE amount_outstanding BETWEEN 1000 AND 3000;", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "Customers", "WHERE", "amount_outstanding", "BETWEEN", "1000", "AND", "3000", ";" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "customers", "where", "amount_outstanding", "between", "value", "and", "value" ], "question": "List the first name and last name of customers have the amount of outstanding between 1000 and 3000.", "question_toks": [ "list", "first", "name", "and", "last", "name", "of", "customer", "have", "amount", "of", "outstanding", "between", "1000", "and", "3000", "." ], "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, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 25, false ], null ], 1000.0, 3000.0 ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "List", "the", "first", "name", "and", "last", "name", "of", "customers", "have", "the", "amount", "of", "outstanding", "between", "1000", "and", "3000", "." ], "question_arg": [ [ "list" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "customer" ], [ "have" ], [ "amount" ], [ "of" ], [ "outstanding" ], [ "between" ], [ "1000" ], [ "and" ], [ "3000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "amount", "NN" ], [ "of", "IN" ], [ "outstanding", "JJ" ], [ "between", "IN" ], [ "1000", "CD" ], [ "and", "CC" ], [ "3000", "CD" ], [ ".", "." ] ], "values": [ "1", "3000", "1000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(12) T(3) Filter(8) A(0) C(22) T(3) V(2) V(1)" }, { "db_id": "driving_school", "query": "SELECT first_name , last_name FROM Customers WHERE amount_outstanding BETWEEN 1000 AND 3000;", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "Customers", "WHERE", "amount_outstanding", "BETWEEN", "1000", "AND", "3000", ";" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "customers", "where", "amount_outstanding", "between", "value", "and", "value" ], "question": "What are the first and last names of all customers with between 1000 and 3000 dollars outstanding?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "all", "customer", "with", "between", "1000", "and", "3000", "dollar", "outstanding", "?" ], "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, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 25, false ], null ], 1000.0, 3000.0 ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "of", "all", "customers", "with", "between", "1000", "and", "3000", "dollars", "outstanding", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "customer" ], [ "with" ], [ "between" ], [ "1000" ], [ "and" ], [ "3000" ], [ "dollar" ], [ "outstanding" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "with", "IN" ], [ "between", "IN" ], [ "1000", "CD" ], [ "and", "CC" ], [ "3000", "CD" ], [ "dollar", "NN" ], [ "outstanding", "JJ" ], [ "?", "." ] ], "values": [ "3000.000000", "1", "1000", "3000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(12) T(3) Filter(8) A(0) C(22) T(3) V(2) V(3)" }, { "db_id": "driving_school", "query": "SELECT T1.first_name , T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = \"Lockmanfurt\";", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", "FROM", "Customers", "AS", "T1", "JOIN", "Addresses", "AS", "T2", "ON", "T1.customer_address_id", "=", "T2.address_id", "WHERE", "T2.city", "=", "``", "Lockmanfurt", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "customers", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "customer_address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "city", "=", "value" ], "question": "List first name and last name of customers lived in city Lockmanfurt.", "question_toks": [ "list", "first", "name", "and", "last", "name", "of", "customer", "lived", "in", "city", "lockmanfurt", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, 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, 3, false ], null ], "\"Lockmanfurt\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "List", "first", "name", "and", "last", "name", "of", "customers", "lived", "in", "city", "Lockmanfurt", "." ], "question_arg": [ [ "list" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "customer" ], [ "lived" ], [ "in" ], [ "city" ], [ "lockmanfurt" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "lived", "VBN" ], [ "in", "IN" ], [ "city", "NN" ], [ "lockmanfurt", "NN" ], [ ".", "." ] ], "values": [ "1", "Lockmanfurt" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(12) T(3) Filter(2) A(0) C(3) T(0) V(1)" }, { "db_id": "driving_school", "query": "SELECT T1.first_name , T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = \"Lockmanfurt\";", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", "FROM", "Customers", "AS", "T1", "JOIN", "Addresses", "AS", "T2", "ON", "T1.customer_address_id", "=", "T2.address_id", "WHERE", "T2.city", "=", "``", "Lockmanfurt", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "customers", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "customer_address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "city", "=", "value" ], "question": "What are the first and last names of all customers who lived in Lockmanfurt?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "all", "customer", "who", "lived", "in", "lockmanfurt", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, 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, 3, false ], null ], "\"Lockmanfurt\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "of", "all", "customers", "who", "lived", "in", "Lockmanfurt", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "customer" ], [ "who" ], [ "lived" ], [ "in" ], [ "lockmanfurt" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "who", "WP" ], [ "lived", "VBD" ], [ "in", "IN" ], [ "lockmanfurt", "NN" ], [ "?", "." ] ], "values": [ "1", "Lockmanfurt" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(12) T(3) Filter(2) A(0) C(3) T(0) V(1)" }, { "db_id": "driving_school", "query": "SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\"", "query_toks": [ "SELECT", "T2.country", "FROM", "Customers", "AS", "T1", "JOIN", "Addresses", "AS", "T2", "ON", "T1.customer_address_id", "=", "T2.address_id", "WHERE", "T1.first_name", "=", "``", "Carole", "''", "AND", "T1.last_name", "=", "``", "Bernhard", "''" ], "query_toks_no_value": [ "select", "t2", ".", "country", "from", "customers", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "customer_address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ], "question": "Which country does customer with first name as Carole and last name as Bernhard lived in?", "question_toks": [ "which", "country", "doe", "customer", "with", "first", "name", "a", "carole", "and", "last", "name", "a", "bernhard", "lived", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, 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, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Carole\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Bernhard\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "Which", "country", "does", "customer", "with", "first", "name", "as", "Carole", "and", "last", "name", "as", "Bernhard", "lived", "in", "?" ], "question_arg": [ [ "which" ], [ "country" ], [ "doe" ], [ "customer" ], [ "with" ], [ "first", "name" ], [ "a" ], [ "carole" ], [ "and" ], [ "last", "name" ], [ "a" ], [ "bernhard" ], [ "lived" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "doe", "VBZ" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "carole", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "bernhard", "NN" ], [ "lived", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "Bernhard", "1", "Carole" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(0) Filter(2) A(0) C(10) T(3) V(2) Filter(2) A(0) C(12) T(3) V(0)" }, { "db_id": "driving_school", "query": "SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\"", "query_toks": [ "SELECT", "T2.country", "FROM", "Customers", "AS", "T1", "JOIN", "Addresses", "AS", "T2", "ON", "T1.customer_address_id", "=", "T2.address_id", "WHERE", "T1.first_name", "=", "``", "Carole", "''", "AND", "T1.last_name", "=", "``", "Bernhard", "''" ], "query_toks_no_value": [ "select", "t2", ".", "country", "from", "customers", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "customer_address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ], "question": "What is the country in which the customer Carole Bernhard lived?", "question_toks": [ "what", "is", "country", "in", "which", "customer", "carole", "bernhard", "lived", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, 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, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Carole\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Bernhard\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "country", "in", "which", "the", "customer", "Carole", "Bernhard", "lived", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "country" ], [ "in" ], [ "which" ], [ "customer" ], [ "carole" ], [ "bernhard" ], [ "lived" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "country", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "customer", "NN" ], [ "carole", "NN" ], [ "bernhard", "NN" ], [ "lived", "VBD" ], [ "?", "." ] ], "values": [ "Carole", "Bernhard" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(0) Filter(2) A(0) C(10) T(3) V(0) Filter(2) A(0) C(12) T(3) V(1)" }, { "db_id": "driving_school", "query": "SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\"", "query_toks": [ "SELECT", "T2.zip_postcode", "FROM", "Customers", "AS", "T1", "JOIN", "Addresses", "AS", "T2", "ON", "T1.customer_address_id", "=", "T2.address_id", "WHERE", "T1.first_name", "=", "``", "Carole", "''", "AND", "T1.last_name", "=", "``", "Bernhard", "''" ], "query_toks_no_value": [ "select", "t2", ".", "zip_postcode", "from", "customers", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "customer_address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ], "question": "What is zip code of customer with first name as Carole and last name as Bernhard?", "question_toks": [ "what", "is", "zip", "code", "of", "customer", "with", "first", "name", "a", "carole", "and", "last", "name", "a", "bernhard", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, 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, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Carole\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Bernhard\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "zip", "code", "of", "customer", "with", "first", "name", "as", "Carole", "and", "last", "name", "as", "Bernhard", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "zip" ], [ "code" ], [ "of" ], [ "customer" ], [ "with" ], [ "first", "name" ], [ "a" ], [ "carole" ], [ "and" ], [ "last", "name" ], [ "a" ], [ "bernhard" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "zip", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "carole", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "bernhard", "NN" ], [ "?", "." ] ], "values": [ "Bernhard", "1", "Carole" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(0) Filter(2) A(0) C(10) T(3) V(2) Filter(2) A(0) C(12) T(3) V(0)" }, { "db_id": "driving_school", "query": "SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\"", "query_toks": [ "SELECT", "T2.zip_postcode", "FROM", "Customers", "AS", "T1", "JOIN", "Addresses", "AS", "T2", "ON", "T1.customer_address_id", "=", "T2.address_id", "WHERE", "T1.first_name", "=", "``", "Carole", "''", "AND", "T1.last_name", "=", "``", "Bernhard", "''" ], "query_toks_no_value": [ "select", "t2", ".", "zip_postcode", "from", "customers", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "customer_address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ], "question": "What is the zip code of the customer Carole Bernhard?", "question_toks": [ "what", "is", "zip", "code", "of", "customer", "carole", "bernhard", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, 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, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Carole\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Bernhard\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "zip", "code", "of", "the", "customer", "Carole", "Bernhard", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "zip" ], [ "code" ], [ "of" ], [ "customer" ], [ "carole" ], [ "bernhard" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "zip", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "carole", "NN" ], [ "bernhard", "NN" ], [ "?", "." ] ], "values": [ "Carole", "Bernhard" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(0) Filter(2) A(0) C(10) T(3) V(0) Filter(2) A(0) C(12) T(3) V(1)" }, { "db_id": "driving_school", "query": "SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.city", "FROM", "Customers", "AS", "T1", "JOIN", "Addresses", "AS", "T2", "ON", "T1.customer_address_id", "=", "T2.address_id", "GROUP", "BY", "T2.city", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "city", "from", "customers", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "customer_address_id", "=", "t2", ".", "address_id", "group", "by", "t2", ".", "city", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which city does has most number of customers?", "question_toks": [ "which", "city", "doe", "ha", "most", "number", "of", "customer", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "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": [ [ false, 8, [ 0, [ 0, 1, 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": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "Which", "city", "does", "has", "most", "number", "of", "customers", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "doe" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "doe", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "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(3) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(19) T(3)" }, { "db_id": "driving_school", "query": "SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.city", "FROM", "Customers", "AS", "T1", "JOIN", "Addresses", "AS", "T2", "ON", "T1.customer_address_id", "=", "T2.address_id", "GROUP", "BY", "T2.city", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "city", "from", "customers", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "customer_address_id", "=", "t2", ".", "address_id", "group", "by", "t2", ".", "city", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the city with the most customers?", "question_toks": [ "what", "is", "city", "with", "most", "customer", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "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": [ [ false, 8, [ 0, [ 0, 1, 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": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "city", "with", "the", "most", "customers", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "city" ], [ "with" ], [ "most" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "city", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "customer", "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(3) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(19) T(3)" }, { "db_id": "driving_school", "query": "SELECT sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Carole\" AND T2.last_name = \"Bernhard\"", "query_toks": [ "SELECT", "sum", "(", "T1.amount_payment", ")", "FROM", "Customer_Payments", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.first_name", "=", "``", "Carole", "''", "AND", "T2.last_name", "=", "``", "Bernhard", "''" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "amount_payment", ")", "from", "customer_payments", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ], "question": "How much in total does customer with first name as Carole and last name as Bernhard paid?", "question_toks": [ "how", "much", "in", "total", "doe", "customer", "with", "first", "name", "a", "carole", "and", "last", "name", "a", "bernhard", "paid", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Carole\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Bernhard\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "much", "in", "total", "does", "customer", "with", "first", "name", "as", "Carole", "and", "last", "name", "as", "Bernhard", "paid", "?" ], "question_arg": [ [ "how" ], [ "much" ], [ "in" ], [ "total" ], [ "doe" ], [ "customer" ], [ "with" ], [ "first", "name" ], [ "a" ], [ "carole" ], [ "and" ], [ "last", "name" ], [ "a" ], [ "bernhard" ], [ "paid" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "much", "JJ" ], [ "in", "IN" ], [ "total", "JJ" ], [ "doe", "JJ" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "carole", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "bernhard", "NN" ], [ "paid", "VBN" ], [ "?", "." ] ], "values": [ "Bernhard", "1", "Carole" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(28) T(4) Filter(0) Filter(2) A(0) C(10) T(3) V(2) Filter(2) A(0) C(12) T(3) V(0)" }, { "db_id": "driving_school", "query": "SELECT sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Carole\" AND T2.last_name = \"Bernhard\"", "query_toks": [ "SELECT", "sum", "(", "T1.amount_payment", ")", "FROM", "Customer_Payments", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.first_name", "=", "``", "Carole", "''", "AND", "T2.last_name", "=", "``", "Bernhard", "''" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "amount_payment", ")", "from", "customer_payments", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ], "question": "What is the total amount of moeny paid by the customer Carole Bernhard?", "question_toks": [ "what", "is", "total", "amount", "of", "moeny", "paid", "by", "customer", "carole", "bernhard", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"Carole\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Bernhard\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "total", "amount", "of", "moeny", "paid", "by", "the", "customer", "Carole", "Bernhard", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "amount" ], [ "of" ], [ "moeny" ], [ "paid" ], [ "by" ], [ "customer" ], [ "carole" ], [ "bernhard" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "moeny", "NN" ], [ "paid", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "carole", "NN" ], [ "bernhard", "NN" ], [ "?", "." ] ], "values": [ "Carole", "Bernhard" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(28) T(4) Filter(0) Filter(2) A(0) C(10) T(3) V(0) Filter(2) A(0) C(12) T(3) V(1)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payments );", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "Customer_Payments", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "customer_payments", ")" ], "question": "List the number of customers that did not have any payment history.", "question_toks": [ "list", "number", "of", "customer", "that", "did", "not", "have", "any", "payment", "history", "." ], "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": [ [ true, 8, [ 0, [ 0, 18, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "List", "the", "number", "of", "customers", "that", "did", "not", "have", "any", "payment", "history", "." ], "question_arg": [ [ "list" ], [ "number" ], [ "of" ], [ "customer" ], [ "that" ], [ "did" ], [ "not" ], [ "have" ], [ "any" ], [ "payment" ], [ "history" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "that", "WDT" ], [ "did", "VBD" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "payment", "NN" ], [ "history", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(19) A(0) C(18) T(3) Root(5) Sel(0) N(0) A(0) C(18) T(4)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payments );", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "Customer_Payments", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "customer_payments", ")" ], "question": "How many customers have no payment histories?", "question_toks": [ "how", "many", "customer", "have", "no", "payment", "history", "?" ], "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": [ [ true, 8, [ 0, [ 0, 18, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "customers", "have", "no", "payment", "histories", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "have" ], [ "no" ], [ "payment" ], [ "history" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "no", "DT" ], [ "payment", "NN" ], [ "history", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(19) A(0) C(18) T(3) Root(5) Sel(0) N(0) A(0) C(18) T(4)" }, { "db_id": "driving_school", "query": "SELECT T2.first_name , T2.last_name FROM Customer_Payments 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.first_name", ",", "T2.last_name", "FROM", "Customer_Payments", "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", ".", "first_name", ",", "t2", ".", "last_name", "from", "customer_payments", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "List first name and last name of customers that have more than 2 payments.", "question_toks": [ "list", "first", "name", "and", "last", "name", "of", "customer", "that", "have", "more", "than", "2", "payment", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 29, 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 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "List", "first", "name", "and", "last", "name", "of", "customers", "that", "have", "more", "than", "2", "payments", "." ], "question_arg": [ [ "list" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "customer" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "2" ], [ "payment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "payment", "NN" ], [ ".", "." ] ], "values": [ "2", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(12) T(3) Filter(0) Filter(18) A(0) C(18) T(3) Root(5) Sel(0) N(0) A(0) C(18) T(4) Filter(5) A(3) C(0) T(4) V(0)" }, { "db_id": "driving_school", "query": "SELECT T2.first_name , T2.last_name FROM Customer_Payments 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.first_name", ",", "T2.last_name", "FROM", "Customer_Payments", "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", ".", "first_name", ",", "t2", ".", "last_name", "from", "customer_payments", "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 and last names of all customers with more than 2 payments?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "all", "customer", "with", "more", "than", "2", "payment", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 29, 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 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "of", "all", "customers", "with", "more", "than", "2", "payments", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "customer" ], [ "with" ], [ "more" ], [ "than" ], [ "2" ], [ "payment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "payment", "NN" ], [ "?", "." ] ], "values": [ "2", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(12) T(3) Filter(0) Filter(18) A(0) C(18) T(3) Root(5) Sel(0) N(0) A(0) C(18) T(4) Filter(5) A(3) C(0) T(4) V(0)" }, { "db_id": "driving_school", "query": "SELECT payment_method_code , count(*) FROM Customer_Payments GROUP BY payment_method_code;", "query_toks": [ "SELECT", "payment_method_code", ",", "count", "(", "*", ")", "FROM", "Customer_Payments", "GROUP", "BY", "payment_method_code", ";" ], "query_toks_no_value": [ "select", "payment_method_code", ",", "count", "(", "*", ")", "from", "customer_payments", "group", "by", "payment_method_code" ], "question": "List all payment methods and number of payments using each payment methods.", "question_toks": [ "list", "all", "payment", "method", "and", "number", "of", "payment", "using", "each", "payment", "method", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 31, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "List", "all", "payment", "methods", "and", "number", "of", "payments", "using", "each", "payment", "methods", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "payment", "method", "code" ], [ "and" ], [ "number" ], [ "of" ], [ "payment" ], [ "using" ], [ "each" ], [ "payment", "method", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "payment", "NN" ], [ "method", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "payment", "NN" ], [ "using", "VBG" ], [ "each", "DT" ], [ "payment", "NN" ], [ "method", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(27) T(4) A(3) C(0) T(4)" }, { "db_id": "driving_school", "query": "SELECT payment_method_code , count(*) FROM Customer_Payments GROUP BY payment_method_code;", "query_toks": [ "SELECT", "payment_method_code", ",", "count", "(", "*", ")", "FROM", "Customer_Payments", "GROUP", "BY", "payment_method_code", ";" ], "query_toks_no_value": [ "select", "payment_method_code", ",", "count", "(", "*", ")", "from", "customer_payments", "group", "by", "payment_method_code" ], "question": "For each payment method, how many payments were made?", "question_toks": [ "for", "each", "payment", "method", ",", "how", "many", "payment", "were", "made", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 31, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "For", "each", "payment", "method", ",", "how", "many", "payments", "were", "made", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "payment", "method", "code" ], [ "," ], [ "how" ], [ "many" ], [ "payment" ], [ "were" ], [ "made" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "payment", "NN" ], [ "method", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "payment", "NN" ], [ "were", "VBD" ], [ "made", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(27) T(4) A(3) C(0) T(4)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Lessons WHERE lesson_status_code = \"Cancelled\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Lessons", "WHERE", "lesson_status_code", "=", "``", "Cancelled", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "lessons", "where", "lesson_status_code", "=", "value" ], "question": "How many lessons were in cancelled state?", "question_toks": [ "how", "many", "lesson", "were", "in", "cancelled", "state", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Cancelled\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "lessons", "were", "in", "cancelled", "state", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "lesson" ], [ "were" ], [ "in" ], [ "cancelled" ], [ "state" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "lesson", "NN" ], [ "were", "VBD" ], [ "in", "IN" ], [ "cancelled", "JJ" ], [ "state", "NN" ], [ "?", "." ] ], "values": [ "Cancelled" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(30) T(5) V(0)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Lessons WHERE lesson_status_code = \"Cancelled\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Lessons", "WHERE", "lesson_status_code", "=", "``", "Cancelled", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "lessons", "where", "lesson_status_code", "=", "value" ], "question": "How many lessons have been cancelled?", "question_toks": [ "how", "many", "lesson", "have", "been", "cancelled", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Cancelled\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "lessons", "have", "been", "cancelled", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "lesson" ], [ "have" ], [ "been" ], [ "cancelled" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "lesson", "NN" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "cancelled", "VBN" ], [ "?", "." ] ], "values": [ "Cancelled" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(30) T(5) V(0)" }, { "db_id": "driving_school", "query": "SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\" AND nickname LIKE \"%s%\";", "query_toks": [ "SELECT", "T1.lesson_id", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", "AND", "nickname", "LIKE", "``", "%", "s", "%", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "lesson_id", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value", "and", "nickname", "like", "value" ], "question": "List lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn and nickname containing letter 's'.", "question_toks": [ "list", "lesson", "id", "of", "all", "lesson", "taught", "by", "staff", "with", "first", "name", "a", "janessa", ",", "last", "name", "a", "sawayn", "and", "nickname", "containing", "letter", "'s", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ], "and", [ false, 9, [ 0, [ 0, 9, false ], null ], "\"%s%\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "List", "lesson", "id", "of", "all", "lessons", "taught", "by", "staff", "with", "first", "name", "as", "Janessa", ",", "last", "name", "as", "Sawayn", "and", "nickname", "containing", "letter", "'s", "'", "." ], "question_arg": [ [ "list" ], [ "lesson", "id" ], [ "of" ], [ "all" ], [ "lesson" ], [ "taught" ], [ "by" ], [ "staff" ], [ "with" ], [ "first", "name" ], [ "a" ], [ "janessa" ], [ "," ], [ "last", "name" ], [ "a" ], [ "sawayn" ], [ "and" ], [ "nickname" ], [ "containing" ], [ "letter" ], [ "'s" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "lesson", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "lesson", "NN" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "staff", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "janessa", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "sawayn", "NN" ], [ "and", "CC" ], [ "nickname", "NN" ], [ "containing", "VBG" ], [ "letter", "NN" ], [ "'s", "POS" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "1", "s", "Sawayn", "Janessa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(29) T(5) Filter(0) Filter(2) A(0) C(10) T(1) V(3) Filter(0) Filter(2) A(0) C(12) T(1) V(2) Filter(9) A(0) C(9) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\" AND nickname LIKE \"%s%\";", "query_toks": [ "SELECT", "T1.lesson_id", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", "AND", "nickname", "LIKE", "``", "%", "s", "%", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "lesson_id", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value", "and", "nickname", "like", "value" ], "question": "What are the the lesson ids of all staff taught by Janessa Sawayn whose nickname has the letter s?", "question_toks": [ "what", "are", "lesson", "id", "of", "all", "staff", "taught", "by", "janessa", "sawayn", "whose", "nickname", "ha", "letter", "s", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ], "and", [ false, 9, [ 0, [ 0, 9, false ], null ], "\"%s%\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "are", "the", "the", "lesson", "ids", "of", "all", "staff", "taught", "by", "Janessa", "Sawayn", "whose", "nickname", "has", "the", "letter", "s", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "lesson", "id" ], [ "of" ], [ "all" ], [ "staff" ], [ "taught" ], [ "by" ], [ "janessa" ], [ "sawayn" ], [ "whose" ], [ "nickname" ], [ "ha" ], [ "letter" ], [ "s" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "lesson", "JJ" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "staff", "NN" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "janessa", "NN" ], [ "sawayn", "NN" ], [ "whose", "WP$" ], [ "nickname", "JJ" ], [ "ha", "JJ" ], [ "letter", "NN" ], [ "s", "NN" ], [ "?", "." ] ], "values": [ "s", "Janessa", "Sawayn" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(29) T(5) Filter(0) Filter(2) A(0) C(10) T(1) V(1) Filter(0) Filter(2) A(0) C(12) T(1) V(2) Filter(9) A(0) C(9) T(1) V(0)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE \"%a%\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "LIKE", "``", "%", "a", "%", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "like", "value" ], "question": "How many lessons taught by staff whose first name has letter 'a' in it?", "question_toks": [ "how", "many", "lesson", "taught", "by", "staff", "whose", "first", "name", "ha", "letter", "'a", "'", "in", "it", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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, 10, false ], null ], "\"%a%\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "lessons", "taught", "by", "staff", "whose", "first", "name", "has", "letter", "'a", "'", "in", "it", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "lesson" ], [ "taught" ], [ "by" ], [ "staff" ], [ "whose" ], [ "first", "name" ], [ "ha" ], [ "letter" ], [ "'a" ], [ "'" ], [ "in" ], [ "it" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "lesson", "NN" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "staff", "NN" ], [ "whose", "WP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "ha", "JJ" ], [ "letter", "NN" ], [ "'a", "NNP" ], [ "'", "''" ], [ "in", "IN" ], [ "it", "PRP" ], [ "?", "." ] ], "values": [ "1", "a" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(9) A(0) C(10) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE \"%a%\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "LIKE", "``", "%", "a", "%", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "like", "value" ], "question": "How many lessons were taught by a staff member whose first name has the letter 'a' in it?", "question_toks": [ "how", "many", "lesson", "were", "taught", "by", "a", "staff", "member", "whose", "first", "name", "ha", "letter", "'a", "'", "in", "it", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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, 10, false ], null ], "\"%a%\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "lessons", "were", "taught", "by", "a", "staff", "member", "whose", "first", "name", "has", "the", "letter", "'a", "'", "in", "it", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "lesson" ], [ "were" ], [ "taught" ], [ "by" ], [ "a" ], [ "staff" ], [ "member" ], [ "whose" ], [ "first", "name" ], [ "ha" ], [ "letter" ], [ "'a" ], [ "'" ], [ "in" ], [ "it" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "lesson", "NN" ], [ "were", "VBD" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "a", "DT" ], [ "staff", "NN" ], [ "member", "NN" ], [ "whose", "WP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "ha", "JJ" ], [ "letter", "NN" ], [ "'a", "NNP" ], [ "'", "''" ], [ "in", "IN" ], [ "it", "PRP" ], [ "?", "." ] ], "values": [ "1", "a" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(9) A(0) C(10) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";", "query_toks": [ "SELECT", "sum", "(", "lesson_time", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", ";" ], "query_toks_no_value": [ "select", "sum", "(", "lesson_time", ")", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ], "question": "How long is the total lesson time taught by staff with first name as Janessa and last name as Sawayn?", "question_toks": [ "how", "long", "is", "total", "lesson", "time", "taught", "by", "staff", "with", "first", "name", "a", "janessa", "and", "last", "name", "a", "sawayn", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "long", "is", "the", "total", "lesson", "time", "taught", "by", "staff", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn", "?" ], "question_arg": [ [ "how" ], [ "long" ], [ "is" ], [ "total" ], [ "lesson", "time" ], [ "taught" ], [ "by" ], [ "staff" ], [ "with" ], [ "first", "name" ], [ "a" ], [ "janessa" ], [ "and" ], [ "last", "name" ], [ "a" ], [ "sawayn" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "long", "JJ" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "lesson", "JJ" ], [ "time", "NN" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "staff", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "janessa", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "sawayn", "NN" ], [ "?", "." ] ], "values": [ "1", "Sawayn", "Janessa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(32) T(5) Filter(0) Filter(2) A(0) C(10) T(1) V(2) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";", "query_toks": [ "SELECT", "sum", "(", "lesson_time", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", ";" ], "query_toks_no_value": [ "select", "sum", "(", "lesson_time", ")", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ], "question": "What is the total time for all lessons taught by Janessa Sawayn?", "question_toks": [ "what", "is", "total", "time", "for", "all", "lesson", "taught", "by", "janessa", "sawayn", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "total", "time", "for", "all", "lessons", "taught", "by", "Janessa", "Sawayn", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "time" ], [ "for" ], [ "all" ], [ "lesson" ], [ "taught" ], [ "by" ], [ "janessa" ], [ "sawayn" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "time", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "lesson", "NN" ], [ "taught", "VBN" ], [ "by", "IN" ], [ "janessa", "NN" ], [ "sawayn", "NN" ], [ "?", "." ] ], "values": [ "Janessa", "Sawayn" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(32) T(5) Filter(0) Filter(2) A(0) C(10) T(1) V(0) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";", "query_toks": [ "SELECT", "avg", "(", "price", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", ";" ], "query_toks_no_value": [ "select", "avg", "(", "price", ")", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ], "question": "What is average lesson price taught by staff with first name as Janessa and last name as Sawayn?", "question_toks": [ "what", "is", "average", "lesson", "price", "taught", "by", "staff", "with", "first", "name", "a", "janessa", "and", "last", "name", "a", "sawayn", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 40, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "average", "lesson", "price", "taught", "by", "staff", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "lesson" ], [ "price" ], [ "taught" ], [ "by" ], [ "staff" ], [ "with" ], [ "first", "name" ], [ "a" ], [ "janessa" ], [ "and" ], [ "last", "name" ], [ "a" ], [ "sawayn" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "lesson", "JJ" ], [ "price", "NN" ], [ "taught", "NN" ], [ "by", "IN" ], [ "staff", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "janessa", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "a", "DT" ], [ "sawayn", "NN" ], [ "?", "." ] ], "values": [ "1", "Sawayn", "Janessa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(33) T(5) Filter(0) Filter(2) A(0) C(10) T(1) V(2) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "driving_school", "query": "SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";", "query_toks": [ "SELECT", "avg", "(", "price", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", ";" ], "query_toks_no_value": [ "select", "avg", "(", "price", ")", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ], "question": "What is the average price for a lesson taught by Janessa Sawayn?", "question_toks": [ "what", "is", "average", "price", "for", "a", "lesson", "taught", "by", "janessa", "sawayn", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 40, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Janessa\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Sawayn\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "average", "price", "for", "a", "lesson", "taught", "by", "Janessa", "Sawayn", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "price" ], [ "for" ], [ "a" ], [ "lesson" ], [ "taught" ], [ "by" ], [ "janessa" ], [ "sawayn" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "for", "IN" ], [ "a", "DT" ], [ "lesson", "NN" ], [ "taught", "NN" ], [ "by", "IN" ], [ "janessa", "NN" ], [ "sawayn", "NN" ], [ "?", "." ] ], "values": [ "Sawayn", "Janessa" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(33) T(5) Filter(0) Filter(2) A(0) C(10) T(1) V(1) Filter(2) A(0) C(12) T(1) V(0)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Ray\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.first_name", "=", "``", "Ray", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "lessons", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value" ], "question": "How many lesson does customer with first name Ray took?", "question_toks": [ "how", "many", "lesson", "doe", "customer", "with", "first", "name", "ray", "took", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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 ], "\"Ray\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "lesson", "does", "customer", "with", "first", "name", "Ray", "took", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "lesson" ], [ "doe" ], [ "customer" ], [ "with" ], [ "first", "name" ], [ "ray" ], [ "took" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "lesson", "NN" ], [ "doe", "NNS" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "ray", "NN" ], [ "took", "VBD" ], [ "?", "." ] ], "values": [ "1", "Ray" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(10) T(3) V(1)" }, { "db_id": "driving_school", "query": "SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Ray\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.first_name", "=", "``", "Ray", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "lessons", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value" ], "question": "How many lessons did the customer with the first name Ray take?", "question_toks": [ "how", "many", "lesson", "did", "customer", "with", "first", "name", "ray", "take", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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 ], "\"Ray\"", null ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "How", "many", "lessons", "did", "the", "customer", "with", "the", "first", "name", "Ray", "take", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "lesson" ], [ "did" ], [ "customer" ], [ "with" ], [ "first", "name" ], [ "ray" ], [ "take" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "lesson", "NN" ], [ "did", "VBD" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "ray", "NN" ], [ "take", "VB" ], [ "?", "." ] ], "values": [ "Ray", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "driving_school", "query": "SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff", "query_toks": [ "SELECT", "last_name", "FROM", "Customers", "INTERSECT", "SELECT", "last_name", "FROM", "Staff" ], "query_toks_no_value": [ "select", "last_name", "from", "customers", "intersect", "select", "last_name", "from", "staff" ], "question": "Which last names are both used by customers and by staff?", "question_toks": [ "which", "last", "name", "are", "both", "used", "by", "customer", "and", "by", "staff", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "Which", "last", "names", "are", "both", "used", "by", "customers", "and", "by", "staff", "?" ], "question_arg": [ [ "which" ], [ "last", "name" ], [ "are" ], [ "both" ], [ "used" ], [ "by" ], [ "customer" ], [ "and" ], [ "by" ], [ "staff" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "last", "JJ" ], [ "name", "NN" ], [ "are", "VBP" ], [ "both", "DT" ], [ "used", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "and", "CC" ], [ "by", "IN" ], [ "staff", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(0) Root(5) Sel(0) N(0) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(12) T(1)" }, { "db_id": "driving_school", "query": "SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff", "query_toks": [ "SELECT", "last_name", "FROM", "Customers", "INTERSECT", "SELECT", "last_name", "FROM", "Staff" ], "query_toks_no_value": [ "select", "last_name", "from", "customers", "intersect", "select", "last_name", "from", "staff" ], "question": "What are the last names that are used by customers and staff?", "question_toks": [ "what", "are", "last", "name", "that", "are", "used", "by", "customer", "and", "staff", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "are", "the", "last", "names", "that", "are", "used", "by", "customers", "and", "staff", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "last", "name" ], [ "that" ], [ "are" ], [ "used" ], [ "by" ], [ "customer" ], [ "and" ], [ "staff" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "and", "CC" ], [ "staff", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(0) Root(5) Sel(0) N(0) A(0) C(12) T(3) Root(5) Sel(0) N(0) A(0) C(12) T(1)" }, { "db_id": "driving_school", "query": "SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id", "query_toks": [ "SELECT", "first_name", "FROM", "Staff", "EXCEPT", "SELECT", "T2.first_name", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id" ], "query_toks_no_value": [ "select", "first_name", "from", "staff", "except", "select", "t2", ".", "first_name", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id" ], "question": "What is the first name of the staff who did not give any lesson?", "question_toks": [ "what", "is", "first", "name", "of", "staff", "who", "did", "not", "give", "any", "lesson", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "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, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "first", "name", "of", "the", "staff", "who", "did", "not", "give", "any", "lesson", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first", "name" ], [ "of" ], [ "staff" ], [ "who" ], [ "did" ], [ "not" ], [ "give" ], [ "any" ], [ "lesson" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "give", "VB" ], [ "any", "DT" ], [ "lesson", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(10) T(1) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(5)" }, { "db_id": "driving_school", "query": "SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id", "query_toks": [ "SELECT", "first_name", "FROM", "Staff", "EXCEPT", "SELECT", "T2.first_name", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id" ], "query_toks_no_value": [ "select", "first_name", "from", "staff", "except", "select", "t2", ".", "first_name", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id" ], "question": "What is the first name of all employees who do not give any lessons?", "question_toks": [ "what", "is", "first", "name", "of", "all", "employee", "who", "do", "not", "give", "any", "lesson", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "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, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "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, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "first", "name", "of", "all", "employees", "who", "do", "not", "give", "any", "lessons", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first", "name" ], [ "of" ], [ "all" ], [ "employee" ], [ "who" ], [ "do" ], [ "not" ], [ "give" ], [ "any" ], [ "lesson" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "give", "VB" ], [ "any", "DT" ], [ "lesson", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(10) T(1) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(18) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(0) C(7) T(5)" }, { "db_id": "driving_school", "query": "SELECT T1.vehicle_id , T1.vehicle_details FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T1.vehicle_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.vehicle_id", ",", "T1.vehicle_details", "FROM", "Vehicles", "AS", "T1", "JOIN", "Lessons", "AS", "T2", "ON", "T1.vehicle_id", "=", "T2.vehicle_id", "GROUP", "BY", "T1.vehicle_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "vehicle_id", ",", "t1", ".", "vehicle_details", "from", "vehicles", "as", "t1", "join", "lessons", "as", "t2", "on", "t1", ".", "vehicle_id", "=", "t2", ".", "vehicle_id", "group", "by", "t1", ".", "vehicle_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the id and detail of the vehicle used in lessons for most of the times?", "question_toks": [ "what", "is", "id", "and", "detail", "of", "vehicle", "used", "in", "lesson", "for", "most", "of", "time", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 37, 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, 16, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 16, 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 ] ] }, "names": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "date of birth", "first name", "last name", "amount outstanding", "email address", "phone number", "cell mobile phone number", "customer id", "datetime payment", "payment method code", "amount payment", "lesson id", "customer id", "lesson status code", "staff id", "vehicle id", "lesson date", "lesson time", "price" ], "table_names": [ "addresses", "staff", "vehicles", "customers", "customer payments", "lessons" ], "col_set": [ "*", "address id", "line 1 number building", "city", "zip postcode", "state province county", "country", "staff id", "staff address id", "nickname", "first name", "middle name", "last name", "date of birth", "date joined staff", "date left staff", "vehicle id", "vehicle details", "customer id", "customer address id", "customer status code", "date became customer", "amount outstanding", "email address", "phone number", "cell mobile phone number", "datetime payment", "payment method code", "amount payment", "lesson id", "lesson status code", "lesson date", "lesson time", "price" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "8": 1, "1": 1, "19": 1, "29": 29, "18": 18, "34": 18, "36": 7, "7": 7, "37": 16, "16": 16, "33": 33 }, "origin_question_toks": [ "What", "is", "the", "id", "and", "detail", "of", "the", "vehicle", "used", "in", "lessons", "for", "most", "of", "the", "times", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "and" ], [ "detail" ], [ "of" ], [ "vehicle" ], [ "used" ], [ "in" ], [ "lesson" ], [ "for" ], [ "most" ], [ "of" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "and", "CC" ], [ "detail", "NN" ], [ "of", "IN" ], [ "vehicle", "NN" ], [ "used", "VBN" ], [ "in", "IN" ], [ "lesson", "NN" ], [ "for", "IN" ], [ "most", "JJS" ], [ "of", "IN" ], [ "time", "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(5) Filter(18) A(0) C(16) T(2) Root(5) Sel(0) N(0) A(0) C(16) T(5)" }, { "db_id": "activity_1", "query": "SELECT count(*) FROM Faculty", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Faculty" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "faculty" ], "question": "How many faculty do we have?", "question_toks": [ "how", "many", "faculty", "do", "we", "have", "?" ], "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": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "How", "many", "faculty", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "faculty" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "faculty", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(4)" }, { "db_id": "activity_1", "query": "SELECT count(*) FROM Faculty", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Faculty" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "faculty" ], "question": "What is the total number of faculty members?", "question_toks": [ "what", "is", "total", "number", "of", "faculty", "member", "?" ], "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": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "faculty", "members", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "faculty" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(4)" }, { "db_id": "activity_1", "query": "SELECT DISTINCT rank FROM Faculty", "query_toks": [ "SELECT", "DISTINCT", "rank", "FROM", "Faculty" ], "query_toks_no_value": [ "select", "distinct", "rank", "from", "faculty" ], "question": "What ranks do we have for faculty?", "question_toks": [ "what", "rank", "do", "we", "have", "for", "faculty", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "ranks", "do", "we", "have", "for", "faculty", "?" ], "question_arg": [ [ "what" ], [ "rank" ], [ "do" ], [ "we" ], [ "have" ], [ "for" ], [ "faculty" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "rank", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "for", "IN" ], [ "faculty", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(12) T(4)" }, { "db_id": "activity_1", "query": "SELECT DISTINCT rank FROM Faculty", "query_toks": [ "SELECT", "DISTINCT", "rank", "FROM", "Faculty" ], "query_toks_no_value": [ "select", "distinct", "rank", "from", "faculty" ], "question": "Find the list of distinct ranks for faculty.", "question_toks": [ "find", "list", "of", "distinct", "rank", "for", "faculty", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "list", "of", "distinct", "ranks", "for", "faculty", "." ], "question_arg": [ [ "find" ], [ "list" ], [ "of" ], [ "distinct" ], [ "rank" ], [ "for" ], [ "faculty" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "list", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "rank", "NN" ], [ "for", "IN" ], [ "faculty", "NN" ], [ ".", "." ] ], "values": [ "Lisa" ], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(12) T(4)" }, { "db_id": "activity_1", "query": "SELECT DISTINCT building FROM Faculty", "query_toks": [ "SELECT", "DISTINCT", "building", "FROM", "Faculty" ], "query_toks_no_value": [ "select", "distinct", "building", "from", "faculty" ], "question": "Show all the distinct buildings that have faculty rooms.", "question_toks": [ "show", "all", "distinct", "building", "that", "have", "faculty", "room", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "all", "the", "distinct", "buildings", "that", "have", "faculty", "rooms", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "distinct" ], [ "building" ], [ "that" ], [ "have" ], [ "faculty" ], [ "room" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "building", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "faculty", "NN" ], [ "room", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(15) T(4)" }, { "db_id": "activity_1", "query": "SELECT DISTINCT building FROM Faculty", "query_toks": [ "SELECT", "DISTINCT", "building", "FROM", "Faculty" ], "query_toks_no_value": [ "select", "distinct", "building", "from", "faculty" ], "question": "What buildings have faculty offices?", "question_toks": [ "what", "building", "have", "faculty", "office", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "buildings", "have", "faculty", "offices", "?" ], "question_arg": [ [ "what" ], [ "building" ], [ "have" ], [ "faculty" ], [ "office" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "building", "NN" ], [ "have", "VBP" ], [ "faculty", "NN" ], [ "office", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(15) T(4)" }, { "db_id": "activity_1", "query": "SELECT rank , Fname , Lname FROM Faculty", "query_toks": [ "SELECT", "rank", ",", "Fname", ",", "Lname", "FROM", "Faculty" ], "query_toks_no_value": [ "select", "rank", ",", "fname", ",", "lname", "from", "faculty" ], "question": "Show the rank, first name, and last name for all the faculty.", "question_toks": [ "show", "rank", ",", "first", "name", ",", "and", "last", "name", "for", "all", "faculty", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "the", "rank", ",", "first", "name", ",", "and", "last", "name", "for", "all", "the", "faculty", "." ], "question_arg": [ [ "show" ], [ "rank" ], [ "," ], [ "first", "name" ], [ "," ], [ "and" ], [ "last", "name" ], [ "for" ], [ "all" ], [ "faculty" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "rank", "NN" ], [ ",", "," ], [ "first", "RB" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "faculty", "NN" ], [ ".", "." ] ], "values": [ "1", "Frank" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(12) T(4) A(0) C(6) T(4) A(0) C(5) T(4)" }, { "db_id": "activity_1", "query": "SELECT rank , Fname , Lname FROM Faculty", "query_toks": [ "SELECT", "rank", ",", "Fname", ",", "Lname", "FROM", "Faculty" ], "query_toks_no_value": [ "select", "rank", ",", "fname", ",", "lname", "from", "faculty" ], "question": "What are the rank, first name, and last name of the faculty members?", "question_toks": [ "what", "are", "rank", ",", "first", "name", ",", "and", "last", "name", "of", "faculty", "member", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "rank", ",", "first", "name", ",", "and", "last", "name", "of", "the", "faculty", "members", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "rank" ], [ "," ], [ "first", "name" ], [ "," ], [ "and" ], [ "last", "name" ], [ "of" ], [ "faculty" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "rank", "JJ" ], [ ",", "," ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "?", "." ] ], "values": [ "1", "Frank" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(12) T(4) A(0) C(6) T(4) A(0) C(5) T(4)" }, { "db_id": "activity_1", "query": "SELECT Fname , Lname , phone FROM Faculty WHERE Sex = 'F'", "query_toks": [ "SELECT", "Fname", ",", "Lname", ",", "phone", "FROM", "Faculty", "WHERE", "Sex", "=", "'F", "'" ], "query_toks_no_value": [ "select", "fname", ",", "lname", ",", "phone", "from", "faculty", "where", "sex", "=", "value" ], "question": "Show the first name, last name, and phone number for all female faculty members.", "question_toks": [ "show", "first", "name", ",", "last", "name", ",", "and", "phone", "number", "for", "all", "female", "faculty", "member", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "the", "first", "name", ",", "last", "name", ",", "and", "phone", "number", "for", "all", "female", "faculty", "members", "." ], "question_arg": [ [ "show" ], [ "first", "name" ], [ "," ], [ "last", "name" ], [ "," ], [ "and" ], [ "phone" ], [ "number" ], [ "for" ], [ "all" ], [ "female" ], [ "faculty" ], [ "member" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "female", "JJ" ], [ "faculty", "NN" ], [ "member", "NN" ], [ ".", "." ] ], "values": [ "F", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(6) T(4) A(0) C(5) T(4) A(0) C(13) T(4) Filter(2) A(0) C(8) T(4) V(0)" }, { "db_id": "activity_1", "query": "SELECT Fname , Lname , phone FROM Faculty WHERE Sex = 'F'", "query_toks": [ "SELECT", "Fname", ",", "Lname", ",", "phone", "FROM", "Faculty", "WHERE", "Sex", "=", "'F", "'" ], "query_toks_no_value": [ "select", "fname", ",", "lname", ",", "phone", "from", "faculty", "where", "sex", "=", "value" ], "question": "What are the first name, last name, and phone number of all the female faculty members?", "question_toks": [ "what", "are", "first", "name", ",", "last", "name", ",", "and", "phone", "number", "of", "all", "female", "faculty", "member", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "first", "name", ",", "last", "name", ",", "and", "phone", "number", "of", "all", "the", "female", "faculty", "members", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "," ], [ "last", "name" ], [ "," ], [ "and" ], [ "phone" ], [ "number" ], [ "of" ], [ "all" ], [ "female" ], [ "faculty" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "female", "JJ" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "?", "." ] ], "values": [ "1", "F" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(6) T(4) A(0) C(5) T(4) A(0) C(13) T(4) Filter(2) A(0) C(8) T(4) V(1)" }, { "db_id": "activity_1", "query": "SELECT FacID FROM Faculty WHERE Sex = 'M'", "query_toks": [ "SELECT", "FacID", "FROM", "Faculty", "WHERE", "Sex", "=", "'M", "'" ], "query_toks_no_value": [ "select", "facid", "from", "faculty", "where", "sex", "=", "value" ], "question": "Show ids for all the male faculty.", "question_toks": [ "show", "id", "for", "all", "male", "faculty", "." ], "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": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"M\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "ids", "for", "all", "the", "male", "faculty", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "for" ], [ "all" ], [ "male" ], [ "faculty" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "male", "NN" ], [ "faculty", "NN" ], [ ".", "." ] ], "values": [ "M" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(4) Filter(2) A(0) C(8) T(4) V(0)" }, { "db_id": "activity_1", "query": "SELECT FacID FROM Faculty WHERE Sex = 'M'", "query_toks": [ "SELECT", "FacID", "FROM", "Faculty", "WHERE", "Sex", "=", "'M", "'" ], "query_toks_no_value": [ "select", "facid", "from", "faculty", "where", "sex", "=", "value" ], "question": "What are the faculty ids of all the male faculty members?", "question_toks": [ "what", "are", "faculty", "id", "of", "all", "male", "faculty", "member", "?" ], "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": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"M\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "faculty", "ids", "of", "all", "the", "male", "faculty", "members", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "faculty", "id" ], [ "of" ], [ "all" ], [ "male" ], [ "faculty" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "faculty", "JJ" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "male", "JJ" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "?", "." ] ], "values": [ "M" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(4) Filter(2) A(0) C(8) T(4) V(0)" }, { "db_id": "activity_1", "query": "SELECT count(*) FROM Faculty WHERE Sex = 'F' AND Rank = \"Professor\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Faculty", "WHERE", "Sex", "=", "'F", "'", "AND", "Rank", "=", "``", "Professor", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "faculty", "where", "sex", "=", "value", "and", "rank", "=", "value" ], "question": "How many female Professors do we have?", "question_toks": [ "how", "many", "female", "professor", "do", "we", "have", "?" ], "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, 19, false ], null ], "\"F\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Professor\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "How", "many", "female", "Professors", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "female" ], [ "professor" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "female", "NN" ], [ "professor", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "F", "Professor" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(0) Filter(2) A(0) C(8) T(4) V(0) Filter(2) A(0) C(12) T(4) V(1)" }, { "db_id": "activity_1", "query": "SELECT count(*) FROM Faculty WHERE Sex = 'F' AND Rank = \"Professor\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Faculty", "WHERE", "Sex", "=", "'F", "'", "AND", "Rank", "=", "``", "Professor", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "faculty", "where", "sex", "=", "value", "and", "rank", "=", "value" ], "question": "Count the number of female Professors we have.", "question_toks": [ "count", "number", "of", "female", "professor", "we", "have", "." ], "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, 19, false ], null ], "\"F\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Professor\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Count", "the", "number", "of", "female", "Professors", "we", "have", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "female" ], [ "professor" ], [ "we" ], [ "have" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "female", "JJ" ], [ "professor", "NN" ], [ "we", "PRP" ], [ "have", "VBP" ], [ ".", "." ] ], "values": [ "Professor", "F" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(0) Filter(2) A(0) C(8) T(4) V(1) Filter(2) A(0) C(12) T(4) V(0)" }, { "db_id": "activity_1", "query": "SELECT phone , room , building FROM Faculty WHERE Fname = \"Jerry\" AND Lname = \"Prince\"", "query_toks": [ "SELECT", "phone", ",", "room", ",", "building", "FROM", "Faculty", "WHERE", "Fname", "=", "``", "Jerry", "''", "AND", "Lname", "=", "``", "Prince", "''" ], "query_toks_no_value": [ "select", "phone", ",", "room", ",", "building", "from", "faculty", "where", "fname", "=", "value", "and", "lname", "=", "value" ], "question": "Show the phone, room, and building for the faculty named Jerry Prince.", "question_toks": [ "show", "phone", ",", "room", ",", "and", "building", "for", "faculty", "named", "jerry", "prince", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Jerry\"", null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Prince\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "the", "phone", ",", "room", ",", "and", "building", "for", "the", "faculty", "named", "Jerry", "Prince", "." ], "question_arg": [ [ "show" ], [ "phone" ], [ "," ], [ "room" ], [ "," ], [ "and" ], [ "building" ], [ "for" ], [ "faculty" ], [ "named" ], [ "jerry" ], [ "prince" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "phone", "NN" ], [ ",", "," ], [ "room", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "building", "NN" ], [ "for", "IN" ], [ "faculty", "NN" ], [ "named", "VBN" ], [ "jerry", "NN" ], [ "prince", "NN" ], [ ".", "." ] ], "values": [ "Prince", "Jerry" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(13) T(4) A(0) C(14) T(4) A(0) C(15) T(4) Filter(0) Filter(2) A(0) C(6) T(4) V(1) Filter(2) A(0) C(5) T(4) V(0)" }, { "db_id": "activity_1", "query": "SELECT phone , room , building FROM Faculty WHERE Fname = \"Jerry\" AND Lname = \"Prince\"", "query_toks": [ "SELECT", "phone", ",", "room", ",", "building", "FROM", "Faculty", "WHERE", "Fname", "=", "``", "Jerry", "''", "AND", "Lname", "=", "``", "Prince", "''" ], "query_toks_no_value": [ "select", "phone", ",", "room", ",", "building", "from", "faculty", "where", "fname", "=", "value", "and", "lname", "=", "value" ], "question": "What are the phone, room, and building of the faculty member called Jerry Prince?", "question_toks": [ "what", "are", "phone", ",", "room", ",", "and", "building", "of", "faculty", "member", "called", "jerry", "prince", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Jerry\"", null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Prince\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "phone", ",", "room", ",", "and", "building", "of", "the", "faculty", "member", "called", "Jerry", "Prince", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "phone" ], [ "," ], [ "room" ], [ "," ], [ "and" ], [ "building" ], [ "of" ], [ "faculty" ], [ "member" ], [ "called" ], [ "jerry" ], [ "prince" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "phone", "NN" ], [ ",", "," ], [ "room", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "building", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "called", "VBN" ], [ "jerry", "NN" ], [ "prince", "NN" ], [ "?", "." ] ], "values": [ "Prince", "Jerry" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(13) T(4) A(0) C(14) T(4) A(0) C(15) T(4) Filter(0) Filter(2) A(0) C(6) T(4) V(1) Filter(2) A(0) C(5) T(4) V(0)" }, { "db_id": "activity_1", "query": "SELECT count(*) FROM Faculty WHERE Rank = \"Professor\" AND building = \"NEB\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Faculty", "WHERE", "Rank", "=", "``", "Professor", "''", "AND", "building", "=", "``", "NEB", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "faculty", "where", "rank", "=", "value", "and", "building", "=", "value" ], "question": "How many Professors are in building NEB?", "question_toks": [ "how", "many", "professor", "are", "in", "building", "neb", "?" ], "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, 18, false ], null ], "\"Professor\"", null ], "and", [ false, 2, [ 0, [ 0, 22, false ], null ], "\"NEB\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "How", "many", "Professors", "are", "in", "building", "NEB", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "professor" ], [ "are" ], [ "in" ], [ "building" ], [ "neb" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "professor", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "building", "VBG" ], [ "neb", "NN" ], [ "?", "." ] ], "values": [ "NEB", "Professor" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(0) Filter(2) A(0) C(12) T(4) V(1) Filter(2) A(0) C(15) T(4) V(0)" }, { "db_id": "activity_1", "query": "SELECT count(*) FROM Faculty WHERE Rank = \"Professor\" AND building = \"NEB\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Faculty", "WHERE", "Rank", "=", "``", "Professor", "''", "AND", "building", "=", "``", "NEB", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "faculty", "where", "rank", "=", "value", "and", "building", "=", "value" ], "question": "Count the number of Professors who have office in building NEB.", "question_toks": [ "count", "number", "of", "professor", "who", "have", "office", "in", "building", "neb", "." ], "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, 18, false ], null ], "\"Professor\"", null ], "and", [ false, 2, [ 0, [ 0, 22, false ], null ], "\"NEB\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Count", "the", "number", "of", "Professors", "who", "have", "office", "in", "building", "NEB", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "professor" ], [ "who" ], [ "have" ], [ "office" ], [ "in" ], [ "building" ], [ "neb" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "office", "NN" ], [ "in", "IN" ], [ "building", "NN" ], [ "neb", "NN" ], [ ".", "." ] ], "values": [ "NEB", "Professor" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(0) Filter(2) A(0) C(12) T(4) V(1) Filter(2) A(0) C(15) T(4) V(0)" }, { "db_id": "activity_1", "query": "SELECT fname , lname FROM Faculty WHERE Rank = \"Instructor\"", "query_toks": [ "SELECT", "fname", ",", "lname", "FROM", "Faculty", "WHERE", "Rank", "=", "``", "Instructor", "''" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "faculty", "where", "rank", "=", "value" ], "question": "Show the first name and last name for all the instructors.", "question_toks": [ "show", "first", "name", "and", "last", "name", "for", "all", "instructor", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Instructor\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "the", "first", "name", "and", "last", "name", "for", "all", "the", "instructors", "." ], "question_arg": [ [ "show" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "for" ], [ "all" ], [ "instructor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ ".", "." ] ], "values": [ "Instructor", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(4) A(0) C(5) T(4) Filter(2) A(0) C(12) T(4) V(0)" }, { "db_id": "activity_1", "query": "SELECT fname , lname FROM Faculty WHERE Rank = \"Instructor\"", "query_toks": [ "SELECT", "fname", ",", "lname", "FROM", "Faculty", "WHERE", "Rank", "=", "``", "Instructor", "''" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "faculty", "where", "rank", "=", "value" ], "question": "What are the first name and last name of all the instructors?", "question_toks": [ "what", "are", "first", "name", "and", "last", "name", "of", "all", "instructor", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Instructor\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "first", "name", "and", "last", "name", "of", "all", "the", "instructors", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "instructor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "?", "." ] ], "values": [ "Instructor", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(4) A(0) C(5) T(4) Filter(2) A(0) C(12) T(4) V(0)" }, { "db_id": "activity_1", "query": "SELECT building , count(*) FROM Faculty GROUP BY building", "query_toks": [ "SELECT", "building", ",", "count", "(", "*", ")", "FROM", "Faculty", "GROUP", "BY", "building" ], "query_toks_no_value": [ "select", "building", ",", "count", "(", "*", ")", "from", "faculty", "group", "by", "building" ], "question": "Show all the buildings along with the number of faculty members the buildings have.", "question_toks": [ "show", "all", "building", "along", "with", "number", "of", "faculty", "member", "building", "have", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 22, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "all", "the", "buildings", "along", "with", "the", "number", "of", "faculty", "members", "the", "buildings", "have", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "building" ], [ "along" ], [ "with" ], [ "number" ], [ "of" ], [ "faculty" ], [ "member" ], [ "building" ], [ "have" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "building", "NN" ], [ "along", "IN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "faculty", "JJ" ], [ "member", "NN" ], [ "building", "NN" ], [ "have", "VBP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(15) T(4) A(3) C(0) T(4)" }, { "db_id": "activity_1", "query": "SELECT building , count(*) FROM Faculty GROUP BY building", "query_toks": [ "SELECT", "building", ",", "count", "(", "*", ")", "FROM", "Faculty", "GROUP", "BY", "building" ], "query_toks_no_value": [ "select", "building", ",", "count", "(", "*", ")", "from", "faculty", "group", "by", "building" ], "question": "How many faculty members does each building have? List the result with the name of the building.", "question_toks": [ "how", "many", "faculty", "member", "doe", "each", "building", "have", "?", "list", "result", "with", "name", "of", "building", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 22, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "How", "many", "faculty", "members", "does", "each", "building", "have", "?", "List", "the", "result", "with", "the", "name", "of", "the", "building", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "faculty" ], [ "member" ], [ "doe" ], [ "each" ], [ "building" ], [ "have" ], [ "?" ], [ "list" ], [ "result" ], [ "with" ], [ "name" ], [ "of" ], [ "building" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "doe", "VBZ" ], [ "each", "DT" ], [ "building", "NN" ], [ "have", "VB" ], [ "?", "." ], [ "list", "JJ" ], [ "result", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "of", "IN" ], [ "building", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(15) T(4) A(3) C(0) T(4)" }, { "db_id": "activity_1", "query": "SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "building", "FROM", "Faculty", "GROUP", "BY", "building", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "building", "from", "faculty", "group", "by", "building", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which building has most faculty members?", "question_toks": [ "which", "building", "ha", "most", "faculty", "member", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 22, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Which", "building", "has", "most", "faculty", "members", "?" ], "question_arg": [ [ "which" ], [ "building" ], [ "ha" ], [ "most" ], [ "faculty" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "building", "VBG" ], [ "ha", "NN" ], [ "most", "JJS" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(15) T(4) Sup(0) A(3) C(0) T(4)" }, { "db_id": "activity_1", "query": "SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "building", "FROM", "Faculty", "GROUP", "BY", "building", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "building", "from", "faculty", "group", "by", "building", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the building that has the largest number of faculty members.", "question_toks": [ "find", "building", "that", "ha", "largest", "number", "of", "faculty", "member", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 22, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "building", "that", "has", "the", "largest", "number", "of", "faculty", "members", "." ], "question_arg": [ [ "find" ], [ "building" ], [ "that" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "faculty" ], [ "member" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "building", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "faculty", "JJ" ], [ "member", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(15) T(4) Sup(0) A(3) C(0) T(4)" }, { "db_id": "activity_1", "query": "SELECT building FROM Faculty WHERE rank = \"Professor\" GROUP BY building HAVING count(*) >= 10", "query_toks": [ "SELECT", "building", "FROM", "Faculty", "WHERE", "rank", "=", "``", "Professor", "''", "GROUP", "BY", "building", "HAVING", "count", "(", "*", ")", ">", "=", "10" ], "query_toks_no_value": [ "select", "building", "from", "faculty", "where", "rank", "=", "value", "group", "by", "building", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show all the buildings that have at least 10 professors.", "question_toks": [ "show", "all", "building", "that", "have", "at", "least", "10", "professor", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 22, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 10.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Professor\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "all", "the", "buildings", "that", "have", "at", "least", "10", "professors", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "building" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "10" ], [ "professor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "building", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "10", "CD" ], [ "professor", "NN" ], [ ".", "." ] ], "values": [ "10", "Professor" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(4) Filter(0) Filter(2) A(0) C(12) T(4) V(1) Filter(7) A(3) C(0) T(4) V(0)" }, { "db_id": "activity_1", "query": "SELECT building FROM Faculty WHERE rank = \"Professor\" GROUP BY building HAVING count(*) >= 10", "query_toks": [ "SELECT", "building", "FROM", "Faculty", "WHERE", "rank", "=", "``", "Professor", "''", "GROUP", "BY", "building", "HAVING", "count", "(", "*", ")", ">", "=", "10" ], "query_toks_no_value": [ "select", "building", "from", "faculty", "where", "rank", "=", "value", "group", "by", "building", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "In which buildings are there at least ten professors?", "question_toks": [ "in", "which", "building", "are", "there", "at", "least", "ten", "professor", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 22, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 10.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Professor\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "In", "which", "buildings", "are", "there", "at", "least", "ten", "professors", "?" ], "question_arg": [ [ "in" ], [ "which" ], [ "building" ], [ "are" ], [ "there" ], [ "at" ], [ "least" ], [ "ten" ], [ "professor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "which", "WDT" ], [ "building", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "at", "IN" ], [ "least", "JJS" ], [ "ten", "NN" ], [ "professor", "NN" ], [ "?", "." ] ], "values": [ "10", "Professor" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(4) Filter(0) Filter(2) A(0) C(12) T(4) V(1) Filter(7) A(3) C(0) T(4) V(0)" }, { "db_id": "activity_1", "query": "SELECT rank , count(*) FROM Faculty GROUP BY rank", "query_toks": [ "SELECT", "rank", ",", "count", "(", "*", ")", "FROM", "Faculty", "GROUP", "BY", "rank" ], "query_toks_no_value": [ "select", "rank", ",", "count", "(", "*", ")", "from", "faculty", "group", "by", "rank" ], "question": "For each faculty rank, show the number of faculty members who have it.", "question_toks": [ "for", "each", "faculty", "rank", ",", "show", "number", "of", "faculty", "member", "who", "have", "it", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "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": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "For", "each", "faculty", "rank", ",", "show", "the", "number", "of", "faculty", "members", "who", "have", "it", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "faculty" ], [ "rank" ], [ "," ], [ "show" ], [ "number" ], [ "of" ], [ "faculty" ], [ "member" ], [ "who" ], [ "have" ], [ "it" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "faculty", "NN" ], [ "rank", "NN" ], [ ",", "," ], [ "show", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "faculty", "JJ" ], [ "member", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "it", "PRP" ], [ ".", "." ] ], "values": [ "Frank" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(12) T(4) A(3) C(0) T(4)" }, { "db_id": "activity_1", "query": "SELECT rank , count(*) FROM Faculty GROUP BY rank", "query_toks": [ "SELECT", "rank", ",", "count", "(", "*", ")", "FROM", "Faculty", "GROUP", "BY", "rank" ], "query_toks_no_value": [ "select", "rank", ",", "count", "(", "*", ")", "from", "faculty", "group", "by", "rank" ], "question": "How many faculty members do we have for each faculty rank?", "question_toks": [ "how", "many", "faculty", "member", "do", "we", "have", "for", "each", "faculty", "rank", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "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": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "How", "many", "faculty", "members", "do", "we", "have", "for", "each", "faculty", "rank", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "faculty" ], [ "member" ], [ "do" ], [ "we" ], [ "have" ], [ "for" ], [ "each" ], [ "faculty" ], [ "rank" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "for", "IN" ], [ "each", "DT" ], [ "faculty", "NN" ], [ "rank", "NN" ], [ "?", "." ] ], "values": [ "Frank" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(12) T(4) A(3) C(0) T(4)" }, { "db_id": "activity_1", "query": "SELECT rank , sex , count(*) FROM Faculty GROUP BY rank , sex", "query_toks": [ "SELECT", "rank", ",", "sex", ",", "count", "(", "*", ")", "FROM", "Faculty", "GROUP", "BY", "rank", ",", "sex" ], "query_toks_no_value": [ "select", "rank", ",", "sex", ",", "count", "(", "*", ")", "from", "faculty", "group", "by", "rank", ",", "sex" ], "question": "Show all the ranks and the number of male and female faculty for each rank.", "question_toks": [ "show", "all", "rank", "and", "number", "of", "male", "and", "female", "faculty", "for", "each", "rank", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 18, false ], [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "all", "the", "ranks", "and", "the", "number", "of", "male", "and", "female", "faculty", "for", "each", "rank", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "rank" ], [ "and" ], [ "number" ], [ "of" ], [ "male" ], [ "and" ], [ "female" ], [ "faculty" ], [ "for" ], [ "each" ], [ "rank" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "rank", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "male", "NN" ], [ "and", "CC" ], [ "female", "JJ" ], [ "faculty", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "rank", "NN" ], [ ".", "." ] ], "values": [ "M", "Frank", "F" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(12) T(4) A(0) C(8) T(4) A(3) C(0) T(4)" }, { "db_id": "activity_1", "query": "SELECT rank , sex , count(*) FROM Faculty GROUP BY rank , sex", "query_toks": [ "SELECT", "rank", ",", "sex", ",", "count", "(", "*", ")", "FROM", "Faculty", "GROUP", "BY", "rank", ",", "sex" ], "query_toks_no_value": [ "select", "rank", ",", "sex", ",", "count", "(", "*", ")", "from", "faculty", "group", "by", "rank", ",", "sex" ], "question": "How many faculty members do we have for each rank and gender?", "question_toks": [ "how", "many", "faculty", "member", "do", "we", "have", "for", "each", "rank", "and", "gender", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 18, false ], [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "How", "many", "faculty", "members", "do", "we", "have", "for", "each", "rank", "and", "gender", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "faculty" ], [ "member" ], [ "do" ], [ "we" ], [ "have" ], [ "for" ], [ "each" ], [ "rank" ], [ "and" ], [ "gender" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "for", "IN" ], [ "each", "DT" ], [ "rank", "NN" ], [ "and", "CC" ], [ "gender", "NN" ], [ "?", "." ] ], "values": [ "Frank" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(12) T(4) A(0) C(8) T(4) A(3) C(0) T(4)" }, { "db_id": "activity_1", "query": "SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "rank", "FROM", "Faculty", "GROUP", "BY", "rank", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "rank", "from", "faculty", "group", "by", "rank", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Which rank has the smallest number of faculty members?", "question_toks": [ "which", "rank", "ha", "smallest", "number", "of", "faculty", "member", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Which", "rank", "has", "the", "smallest", "number", "of", "faculty", "members", "?" ], "question_arg": [ [ "which" ], [ "rank" ], [ "ha" ], [ "smallest" ], [ "number" ], [ "of" ], [ "faculty" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "rank", "VBD" ], [ "ha", "NN" ], [ "smallest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "?", "." ] ], "values": [ "Frank" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(12) T(4) Sup(1) A(3) C(0) T(4)" }, { "db_id": "activity_1", "query": "SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "rank", "FROM", "Faculty", "GROUP", "BY", "rank", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "rank", "from", "faculty", "group", "by", "rank", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Find the faculty rank that has the least members.", "question_toks": [ "find", "faculty", "rank", "that", "ha", "least", "member", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "faculty", "rank", "that", "has", "the", "least", "members", "." ], "question_arg": [ [ "find" ], [ "faculty" ], [ "rank" ], [ "that" ], [ "ha" ], [ "least" ], [ "member" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "faculty", "NN" ], [ "rank", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "least", "JJS" ], [ "member", "NN" ], [ ".", "." ] ], "values": [ "Frank" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(12) T(4) Sup(1) A(3) C(0) T(4)" }, { "db_id": "activity_1", "query": "SELECT sex , count(*) FROM Faculty WHERE rank = \"AsstProf\" GROUP BY sex", "query_toks": [ "SELECT", "sex", ",", "count", "(", "*", ")", "FROM", "Faculty", "WHERE", "rank", "=", "``", "AsstProf", "''", "GROUP", "BY", "sex" ], "query_toks_no_value": [ "select", "sex", ",", "count", "(", "*", ")", "from", "faculty", "where", "rank", "=", "value", "group", "by", "sex" ], "question": "Show the number of male and female assistant professors.", "question_toks": [ "show", "number", "of", "male", "and", "female", "assistant", "professor", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 19, 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, 2, [ 0, [ 0, 18, false ], null ], "\"AsstProf\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "the", "number", "of", "male", "and", "female", "assistant", "professors", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "of" ], [ "male" ], [ "and" ], [ "female" ], [ "assistant" ], [ "professor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "male", "NN" ], [ "and", "CC" ], [ "female", "JJ" ], [ "assistant", "NN" ], [ "professor", "NN" ], [ ".", "." ] ], "values": [ "Professor", "M", "F", "AsstProf" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(4) A(3) C(0) T(4) Filter(2) A(0) C(12) T(4) V(3)" }, { "db_id": "activity_1", "query": "SELECT sex , count(*) FROM Faculty WHERE rank = \"AsstProf\" GROUP BY sex", "query_toks": [ "SELECT", "sex", ",", "count", "(", "*", ")", "FROM", "Faculty", "WHERE", "rank", "=", "``", "AsstProf", "''", "GROUP", "BY", "sex" ], "query_toks_no_value": [ "select", "sex", ",", "count", "(", "*", ")", "from", "faculty", "where", "rank", "=", "value", "group", "by", "sex" ], "question": "How many male and female assistant professors do we have?", "question_toks": [ "how", "many", "male", "and", "female", "assistant", "professor", "do", "we", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 19, 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, 2, [ 0, [ 0, 18, false ], null ], "\"AsstProf\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "How", "many", "male", "and", "female", "assistant", "professors", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "male" ], [ "and" ], [ "female" ], [ "assistant" ], [ "professor" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "male", "NN" ], [ "and", "CC" ], [ "female", "JJ" ], [ "assistant", "NN" ], [ "professor", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "F", "M", "Professor", "AsstProf" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(4) A(3) C(0) T(4) Filter(2) A(0) C(12) T(4) V(3)" }, { "db_id": "activity_1", "query": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T2.fname = \"Linda\" AND T2.lname = \"Smith\"", "query_toks": [ "SELECT", "T1.fname", ",", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "WHERE", "T2.fname", "=", "``", "Linda", "''", "AND", "T2.lname", "=", "``", "Smith", "''" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "where", "t2", ".", "fname", "=", "value", "and", "t2", ".", "lname", "=", "value" ], "question": "What are the first name and last name of Linda Smith's advisor?", "question_toks": [ "what", "are", "first", "name", "and", "last", "name", "of", "linda", "smith", "'s", "advisor", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Linda\"", null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Smith\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "first", "name", "and", "last", "name", "of", "Linda", "Smith", "'s", "advisor", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "linda" ], [ "smith" ], [ "'s" ], [ "advisor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "linda", "NN" ], [ "smith", "NN" ], [ "'s", "POS" ], [ "advisor", "NN" ], [ "?", "." ] ], "values": [ "1", "Linda", "Smith" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(4) A(0) C(5) T(4) Filter(0) Filter(2) A(0) C(6) T(3) V(1) Filter(2) A(0) C(5) T(3) V(2)" }, { "db_id": "activity_1", "query": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T2.fname = \"Linda\" AND T2.lname = \"Smith\"", "query_toks": [ "SELECT", "T1.fname", ",", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "WHERE", "T2.fname", "=", "``", "Linda", "''", "AND", "T2.lname", "=", "``", "Smith", "''" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "where", "t2", ".", "fname", "=", "value", "and", "t2", ".", "lname", "=", "value" ], "question": "Who is the advisor of Linda Smith? Give me the first name and last name.", "question_toks": [ "who", "is", "advisor", "of", "linda", "smith", "?", "give", "me", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Linda\"", null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Smith\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Who", "is", "the", "advisor", "of", "Linda", "Smith", "?", "Give", "me", "the", "first", "name", "and", "last", "name", "." ], "question_arg": [ [ "who" ], [ "is" ], [ "advisor" ], [ "of" ], [ "linda" ], [ "smith" ], [ "?" ], [ "give" ], [ "me" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "advisor", "NN" ], [ "of", "IN" ], [ "linda", "NN" ], [ "smith", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Linda", "Smith", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(4) A(0) C(5) T(4) Filter(0) Filter(2) A(0) C(6) T(3) V(0) Filter(2) A(0) C(5) T(3) V(1)" }, { "db_id": "activity_1", "query": "SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.rank = \"Professor\"", "query_toks": [ "SELECT", "T2.StuID", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "WHERE", "T1.rank", "=", "``", "Professor", "''" ], "query_toks_no_value": [ "select", "t2", ".", "stuid", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "where", "t1", ".", "rank", "=", "value" ], "question": "Show the ids of students whose advisors are professors.", "question_toks": [ "show", "id", "of", "student", "whose", "advisor", "are", "professor", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Professor\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "the", "ids", "of", "students", "whose", "advisors", "are", "professors", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "of" ], [ "student" ], [ "whose" ], [ "advisor" ], [ "are" ], [ "professor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "advisor", "NN" ], [ "are", "VBP" ], [ "professor", "NN" ], [ ".", "." ] ], "values": [ "Professor" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(3) Filter(2) A(0) C(12) T(4) V(0)" }, { "db_id": "activity_1", "query": "SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.rank = \"Professor\"", "query_toks": [ "SELECT", "T2.StuID", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "WHERE", "T1.rank", "=", "``", "Professor", "''" ], "query_toks_no_value": [ "select", "t2", ".", "stuid", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "where", "t1", ".", "rank", "=", "value" ], "question": "Which students have professors as their advisors? Find their student ids.", "question_toks": [ "which", "student", "have", "professor", "a", "their", "advisor", "?", "find", "their", "student", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Professor\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Which", "students", "have", "professors", "as", "their", "advisors", "?", "Find", "their", "student", "ids", "." ], "question_arg": [ [ "which" ], [ "student" ], [ "have" ], [ "professor" ], [ "a" ], [ "their" ], [ "advisor" ], [ "?" ], [ "find" ], [ "their" ], [ "student", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "student", "NN" ], [ "have", "VBP" ], [ "professor", "VBN" ], [ "a", "DT" ], [ "their", "PRP$" ], [ "advisor", "NN" ], [ "?", "." ], [ "find", "VB" ], [ "their", "PRP$" ], [ "student", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "Professor" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(3) Filter(2) A(0) C(12) T(4) V(0)" }, { "db_id": "activity_1", "query": "SELECT T2.fname , T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = \"Michael\" AND T1.lname = \"Goodrich\"", "query_toks": [ "SELECT", "T2.fname", ",", "T2.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "WHERE", "T1.fname", "=", "``", "Michael", "''", "AND", "T1.lname", "=", "``", "Goodrich", "''" ], "query_toks_no_value": [ "select", "t2", ".", "fname", ",", "t2", ".", "lname", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "Show first name and last name for all the students advised by Michael Goodrich.", "question_toks": [ "show", "first", "name", "and", "last", "name", "for", "all", "student", "advised", "by", "michael", "goodrich", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Michael\"", null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Goodrich\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "first", "name", "and", "last", "name", "for", "all", "the", "students", "advised", "by", "Michael", "Goodrich", "." ], "question_arg": [ [ "show" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "for" ], [ "all" ], [ "student" ], [ "advised" ], [ "by" ], [ "michael" ], [ "goodrich" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "advised", "VBN" ], [ "by", "IN" ], [ "michael", "NN" ], [ "goodrich", "NN" ], [ ".", "." ] ], "values": [ "1", "Goodrich", "Michael" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(3) A(0) C(5) T(3) Filter(0) Filter(2) A(0) C(6) T(4) V(2) Filter(2) A(0) C(5) T(4) V(1)" }, { "db_id": "activity_1", "query": "SELECT T2.fname , T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = \"Michael\" AND T1.lname = \"Goodrich\"", "query_toks": [ "SELECT", "T2.fname", ",", "T2.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "WHERE", "T1.fname", "=", "``", "Michael", "''", "AND", "T1.lname", "=", "``", "Goodrich", "''" ], "query_toks_no_value": [ "select", "t2", ".", "fname", ",", "t2", ".", "lname", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "Which students are advised by Michael Goodrich? Give me their first and last names.", "question_toks": [ "which", "student", "are", "advised", "by", "michael", "goodrich", "?", "give", "me", "their", "first", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Michael\"", null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Goodrich\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Which", "students", "are", "advised", "by", "Michael", "Goodrich", "?", "Give", "me", "their", "first", "and", "last", "names", "." ], "question_arg": [ [ "which" ], [ "student" ], [ "are" ], [ "advised" ], [ "by" ], [ "michael" ], [ "goodrich" ], [ "?" ], [ "give" ], [ "me" ], [ "their" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "student", "NN" ], [ "are", "VBP" ], [ "advised", "VBN" ], [ "by", "IN" ], [ "michael", "NN" ], [ "goodrich", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Goodrich", "Michael", "1", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(3) A(0) C(5) T(3) Filter(0) Filter(2) A(0) C(6) T(4) V(1) Filter(2) A(0) C(5) T(4) V(0)" }, { "db_id": "activity_1", "query": "SELECT T1.FacID , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID", "query_toks": [ "SELECT", "T1.FacID", ",", "count", "(", "*", ")", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "GROUP", "BY", "T1.FacID" ], "query_toks_no_value": [ "select", "t1", ".", "facid", ",", "count", "(", "*", ")", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "group", "by", "t1", ".", "facid" ], "question": "Show the faculty id of each faculty member, along with the number of students he or she advises.", "question_toks": [ "show", "faculty", "id", "of", "each", "faculty", "member", ",", "along", "with", "number", "of", "student", "he", "or", "she", "advises", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "the", "faculty", "id", "of", "each", "faculty", "member", ",", "along", "with", "the", "number", "of", "students", "he", "or", "she", "advises", "." ], "question_arg": [ [ "show" ], [ "faculty", "id" ], [ "of" ], [ "each" ], [ "faculty" ], [ "member" ], [ "," ], [ "along" ], [ "with" ], [ "number" ], [ "of" ], [ "student" ], [ "he" ], [ "or" ], [ "she" ], [ "advises" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "faculty", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "faculty", "NN" ], [ "member", "NN" ], [ ",", "," ], [ "along", "IN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "he", "PRP" ], [ "or", "CC" ], [ "she", "PRP" ], [ "advises", "VBZ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(4) A(3) C(0) T(3)" }, { "db_id": "activity_1", "query": "SELECT T1.FacID , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID", "query_toks": [ "SELECT", "T1.FacID", ",", "count", "(", "*", ")", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "GROUP", "BY", "T1.FacID" ], "query_toks_no_value": [ "select", "t1", ".", "facid", ",", "count", "(", "*", ")", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "group", "by", "t1", ".", "facid" ], "question": "What are the faculty id and the number of students each faculty has?", "question_toks": [ "what", "are", "faculty", "id", "and", "number", "of", "student", "each", "faculty", "ha", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "faculty", "id", "and", "the", "number", "of", "students", "each", "faculty", "has", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "faculty", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "student" ], [ "each" ], [ "faculty" ], [ "ha" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "faculty", "JJ" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "each", "DT" ], [ "faculty", "NN" ], [ "ha", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(4) A(3) C(0) T(3)" }, { "db_id": "activity_1", "query": "SELECT T1.rank , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank", "query_toks": [ "SELECT", "T1.rank", ",", "count", "(", "*", ")", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "GROUP", "BY", "T1.rank" ], "query_toks_no_value": [ "select", "t1", ".", "rank", ",", "count", "(", "*", ")", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "group", "by", "t1", ".", "rank" ], "question": "Show all the faculty ranks and the number of students advised by each rank.", "question_toks": [ "show", "all", "faculty", "rank", "and", "number", "of", "student", "advised", "by", "each", "rank", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "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": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "all", "the", "faculty", "ranks", "and", "the", "number", "of", "students", "advised", "by", "each", "rank", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "faculty" ], [ "rank" ], [ "and" ], [ "number" ], [ "of" ], [ "student" ], [ "advised" ], [ "by" ], [ "each" ], [ "rank" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "faculty", "NN" ], [ "rank", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "advised", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "rank", "NN" ], [ ".", "." ] ], "values": [ "Frank" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(12) T(4) A(3) C(0) T(3)" }, { "db_id": "activity_1", "query": "SELECT T1.rank , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank", "query_toks": [ "SELECT", "T1.rank", ",", "count", "(", "*", ")", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "GROUP", "BY", "T1.rank" ], "query_toks_no_value": [ "select", "t1", ".", "rank", ",", "count", "(", "*", ")", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "group", "by", "t1", ".", "rank" ], "question": "How many students are advised by each rank of faculty? List the rank and the number of students.", "question_toks": [ "how", "many", "student", "are", "advised", "by", "each", "rank", "of", "faculty", "?", "list", "rank", "and", "number", "of", "student", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "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": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "How", "many", "students", "are", "advised", "by", "each", "rank", "of", "faculty", "?", "List", "the", "rank", "and", "the", "number", "of", "students", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "advised" ], [ "by" ], [ "each" ], [ "rank" ], [ "of" ], [ "faculty" ], [ "?" ], [ "list" ], [ "rank" ], [ "and" ], [ "number" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "advised", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "rank", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "rank", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "Frank" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(12) T(4) A(3) C(0) T(3)" }, { "db_id": "activity_1", "query": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.fname", ",", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "GROUP", "BY", "T1.FacID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "group", "by", "t1", ".", "facid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the first and last name of the faculty who has the most students?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "faculty", "who", "ha", "most", "student", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "name", "of", "the", "faculty", "who", "has", "the", "most", "students", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "faculty" ], [ "who" ], [ "ha" ], [ "most" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(6) T(4) A(0) C(5) T(4) Sup(0) A(3) C(0) T(3) Filter(18) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(10) T(3)" }, { "db_id": "activity_1", "query": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.fname", ",", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "GROUP", "BY", "T1.FacID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "group", "by", "t1", ".", "facid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Give me the the first and last name of the faculty who advises the most students.", "question_toks": [ "give", "me", "first", "and", "last", "name", "of", "faculty", "who", "advises", "most", "student", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Give", "me", "the", "the", "first", "and", "last", "name", "of", "the", "faculty", "who", "advises", "the", "most", "students", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "faculty" ], [ "who" ], [ "advises" ], [ "most" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "who", "WP" ], [ "advises", "VBZ" ], [ "most", "RBS" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(6) T(4) A(0) C(5) T(4) Sup(0) A(3) C(0) T(3) Filter(18) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(10) T(3)" }, { "db_id": "activity_1", "query": "SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.FacID", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "GROUP", "BY", "T1.FacID", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "facid", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "group", "by", "t1", ".", "facid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the ids for all the faculty members who have at least 2 students.", "question_toks": [ "show", "id", "for", "all", "faculty", "member", "who", "have", "at", "least", "2", "student", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "the", "ids", "for", "all", "the", "faculty", "members", "who", "have", "at", "least", "2", "students", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "for" ], [ "all" ], [ "faculty" ], [ "member" ], [ "who" ], [ "have" ], [ "at" ], [ "least" ], [ "2" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(4) Filter(0) Filter(18) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(10) T(3) Filter(7) A(3) C(0) T(3) V(0)" }, { "db_id": "activity_1", "query": "SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.FacID", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "GROUP", "BY", "T1.FacID", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "facid", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "group", "by", "t1", ".", "facid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Which faculty members advise two ore more students? Give me their faculty ids.", "question_toks": [ "which", "faculty", "member", "advise", "two", "ore", "more", "student", "?", "give", "me", "their", "faculty", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Which", "faculty", "members", "advise", "two", "ore", "more", "students", "?", "Give", "me", "their", "faculty", "ids", "." ], "question_arg": [ [ "which" ], [ "faculty" ], [ "member" ], [ "advise" ], [ "two" ], [ "ore" ], [ "more" ], [ "student" ], [ "?" ], [ "give" ], [ "me" ], [ "their" ], [ "faculty", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "advise", "NN" ], [ "two", "CD" ], [ "ore", "IN" ], [ "more", "RBR" ], [ "student", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "faculty", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(4) Filter(0) Filter(18) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(10) T(3) Filter(7) A(3) C(0) T(3) V(0)" }, { "db_id": "activity_1", "query": "SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student", "query_toks": [ "SELECT", "FacID", "FROM", "Faculty", "EXCEPT", "SELECT", "advisor", "FROM", "Student" ], "query_toks_no_value": [ "select", "facid", "from", "faculty", "except", "select", "advisor", "from", "student" ], "question": "Show ids for the faculty members who don't advise any student.", "question_toks": [ "show", "id", "for", "faculty", "member", "who", "do", "n't", "advise", "any", "student", "." ], "sql": { "except": { "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": [] }, "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": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "ids", "for", "the", "faculty", "members", "who", "do", "n't", "advise", "any", "student", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "for" ], [ "faculty" ], [ "member" ], [ "who" ], [ "do" ], [ "n't" ], [ "advise" ], [ "any" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "advise", "VB" ], [ "any", "DT" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(10) T(3)" }, { "db_id": "activity_1", "query": "SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student", "query_toks": [ "SELECT", "FacID", "FROM", "Faculty", "EXCEPT", "SELECT", "advisor", "FROM", "Student" ], "query_toks_no_value": [ "select", "facid", "from", "faculty", "except", "select", "advisor", "from", "student" ], "question": "What are the ids of the faculty members who do not advise any student.", "question_toks": [ "what", "are", "id", "of", "faculty", "member", "who", "do", "not", "advise", "any", "student", "." ], "sql": { "except": { "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": [] }, "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": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "faculty", "members", "who", "do", "not", "advise", "any", "student", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "faculty" ], [ "member" ], [ "who" ], [ "do" ], [ "not" ], [ "advise" ], [ "any" ], [ "student" ], [ "." ] ], "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" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "advise", "VB" ], [ "any", "DT" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(10) T(3)" }, { "db_id": "activity_1", "query": "SELECT activity_name FROM Activity", "query_toks": [ "SELECT", "activity_name", "FROM", "Activity" ], "query_toks_no_value": [ "select", "activity_name", "from", "activity" ], "question": "What activities do we have?", "question_toks": [ "what", "activity", "do", "we", "have", "?" ], "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": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "activities", "do", "we", "have", "?" ], "question_arg": [ [ "what" ], [ "activity" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "activity", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "activity_1", "query": "SELECT activity_name FROM Activity", "query_toks": [ "SELECT", "activity_name", "FROM", "Activity" ], "query_toks_no_value": [ "select", "activity_name", "from", "activity" ], "question": "List all the activities we have.", "question_toks": [ "list", "all", "activity", "we", "have", "." ], "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": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "List", "all", "the", "activities", "we", "have", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "activity" ], [ "we" ], [ "have" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "activity", "NN" ], [ "we", "PRP" ], [ "have", "VBP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "activity_1", "query": "SELECT count(*) FROM Activity", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Activity" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "activity" ], "question": "How many activities do we have?", "question_toks": [ "how", "many", "activity", "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": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "How", "many", "activities", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "activity" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "activity", "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": "activity_1", "query": "SELECT count(*) FROM Activity", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Activity" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "activity" ], "question": "Find the number of activities available.", "question_toks": [ "find", "number", "of", "activity", "available", "." ], "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": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "number", "of", "activities", "available", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "activity" ], [ "available" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "activity", "NN" ], [ "available", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "activity_1", "query": "SELECT count(DISTINCT FacID) FROM Faculty_participates_in", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "FacID", ")", "FROM", "Faculty_participates_in" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "facid", ")", "from", "faculty_participates_in" ], "question": "How many faculty members participate in an activity?", "question_toks": [ "how", "many", "faculty", "member", "participate", "in", "an", "activity", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 5, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "How", "many", "faculty", "members", "participate", "in", "an", "activity", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "faculty" ], [ "member" ], [ "participate" ], [ "in" ], [ "an" ], [ "activity" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "participate", "NN" ], [ "in", "IN" ], [ "an", "DT" ], [ "activity", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(4) T(2)" }, { "db_id": "activity_1", "query": "SELECT count(DISTINCT FacID) FROM Faculty_participates_in", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "FacID", ")", "FROM", "Faculty_participates_in" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "facid", ")", "from", "faculty_participates_in" ], "question": "Give me the number of faculty members who participate in an activity", "question_toks": [ "give", "me", "number", "of", "faculty", "member", "who", "participate", "in", "an", "activity" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 5, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Give", "me", "the", "number", "of", "faculty", "members", "who", "participate", "in", "an", "activity" ], "question_arg": [ [ "give" ], [ "me" ], [ "number" ], [ "of" ], [ "faculty" ], [ "member" ], [ "who" ], [ "participate" ], [ "in" ], [ "an" ], [ "activity" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "number", "NN" ], [ "of", "IN" ], [ "faculty", "JJ" ], [ "member", "NN" ], [ "who", "WP" ], [ "participate", "VBP" ], [ "in", "IN" ], [ "an", "DT" ], [ "activity", "NN" ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(4) T(2)" }, { "db_id": "activity_1", "query": "SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in", "query_toks": [ "SELECT", "FacID", "FROM", "Faculty", "EXCEPT", "SELECT", "FacID", "FROM", "Faculty_participates_in" ], "query_toks_no_value": [ "select", "facid", "from", "faculty", "except", "select", "facid", "from", "faculty_participates_in" ], "question": "Show the ids of the faculty who don't participate in any activity.", "question_toks": [ "show", "id", "of", "faculty", "who", "do", "n't", "participate", "in", "any", "activity", "." ], "sql": { "except": { "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": [] }, "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": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "the", "ids", "of", "the", "faculty", "who", "do", "n't", "participate", "in", "any", "activity", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "of" ], [ "faculty" ], [ "who" ], [ "do" ], [ "n't" ], [ "participate" ], [ "in" ], [ "any" ], [ "activity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "participate", "VB" ], [ "in", "IN" ], [ "any", "DT" ], [ "activity", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(4) T(2)" }, { "db_id": "activity_1", "query": "SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in", "query_toks": [ "SELECT", "FacID", "FROM", "Faculty", "EXCEPT", "SELECT", "FacID", "FROM", "Faculty_participates_in" ], "query_toks_no_value": [ "select", "facid", "from", "faculty", "except", "select", "facid", "from", "faculty_participates_in" ], "question": "Which faculty do not participate in any activity? Find their faculty ids.", "question_toks": [ "which", "faculty", "do", "not", "participate", "in", "any", "activity", "?", "find", "their", "faculty", "id", "." ], "sql": { "except": { "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": [] }, "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": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Which", "faculty", "do", "not", "participate", "in", "any", "activity", "?", "Find", "their", "faculty", "ids", "." ], "question_arg": [ [ "which" ], [ "faculty" ], [ "do" ], [ "not" ], [ "participate" ], [ "in" ], [ "any" ], [ "activity" ], [ "?" ], [ "find" ], [ "their" ], [ "faculty", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "faculty", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "participate", "VB" ], [ "in", "IN" ], [ "any", "DT" ], [ "activity", "NN" ], [ "?", "." ], [ "find", "VBP" ], [ "their", "PRP$" ], [ "faculty", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(4) T(2)" }, { "db_id": "activity_1", "query": "SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student", "query_toks": [ "SELECT", "FacID", "FROM", "Faculty_participates_in", "INTERSECT", "SELECT", "advisor", "FROM", "Student" ], "query_toks_no_value": [ "select", "facid", "from", "faculty_participates_in", "intersect", "select", "advisor", "from", "student" ], "question": "Show the ids of all the faculty members who participate in an activity and advise a student.", "question_toks": [ "show", "id", "of", "all", "faculty", "member", "who", "participate", "in", "an", "activity", "and", "advise", "a", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "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": [] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "the", "ids", "of", "all", "the", "faculty", "members", "who", "participate", "in", "an", "activity", "and", "advise", "a", "student", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "of" ], [ "all" ], [ "faculty" ], [ "member" ], [ "who" ], [ "participate" ], [ "in" ], [ "an" ], [ "activity" ], [ "and" ], [ "advise" ], [ "a" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "who", "WP" ], [ "participate", "VBP" ], [ "in", "IN" ], [ "an", "DT" ], [ "activity", "NN" ], [ "and", "CC" ], [ "advise", "VB" ], [ "a", "DT" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(0) Root(5) Sel(0) N(0) A(0) C(4) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3)" }, { "db_id": "activity_1", "query": "SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student", "query_toks": [ "SELECT", "FacID", "FROM", "Faculty_participates_in", "INTERSECT", "SELECT", "advisor", "FROM", "Student" ], "query_toks_no_value": [ "select", "facid", "from", "faculty_participates_in", "intersect", "select", "advisor", "from", "student" ], "question": "What are ids of the faculty members who not only participate in an activity but also advise a student.", "question_toks": [ "what", "are", "id", "of", "faculty", "member", "who", "not", "only", "participate", "in", "an", "activity", "but", "also", "advise", "a", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "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": [] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "ids", "of", "the", "faculty", "members", "who", "not", "only", "participate", "in", "an", "activity", "but", "also", "advise", "a", "student", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "faculty" ], [ "member" ], [ "who" ], [ "not" ], [ "only" ], [ "participate" ], [ "in" ], [ "an" ], [ "activity" ], [ "but" ], [ "also" ], [ "advise" ], [ "a" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "who", "WP" ], [ "not", "RB" ], [ "only", "RB" ], [ "participate", "VB" ], [ "in", "IN" ], [ "an", "DT" ], [ "activity", "NN" ], [ "but", "CC" ], [ "also", "RB" ], [ "advise", "VB" ], [ "a", "DT" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(0) Root(5) Sel(0) N(0) A(0) C(4) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3)" }, { "db_id": "activity_1", "query": "SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID WHERE T1.fname = \"Mark\" AND T1.lname = \"Giuliano\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "WHERE", "T1.fname", "=", "``", "Mark", "''", "AND", "T1.lname", "=", "``", "Giuliano", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "How many activities does Mark Giuliano participate in?", "question_toks": [ "how", "many", "activity", "doe", "mark", "giuliano", "participate", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 17, false ], null ], "\"Mark\"", null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Giuliano\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "How", "many", "activities", "does", "Mark", "Giuliano", "participate", "in", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "activity" ], [ "doe" ], [ "mark" ], [ "giuliano" ], [ "participate" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "activity", "NN" ], [ "doe", "VBP" ], [ "mark", "NN" ], [ "giuliano", "NN" ], [ "participate", "NN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "Mark", "Giuliano" ], "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(4) V(0) Filter(2) A(0) C(5) T(4) V(1)" }, { "db_id": "activity_1", "query": "SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID WHERE T1.fname = \"Mark\" AND T1.lname = \"Giuliano\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "WHERE", "T1.fname", "=", "``", "Mark", "''", "AND", "T1.lname", "=", "``", "Giuliano", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "Find the number of activities Mark Giuliano is involved in.", "question_toks": [ "find", "number", "of", "activity", "mark", "giuliano", "is", "involved", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 17, false ], null ], "\"Mark\"", null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Giuliano\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "number", "of", "activities", "Mark", "Giuliano", "is", "involved", "in", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "activity" ], [ "mark" ], [ "giuliano" ], [ "is" ], [ "involved" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "activity", "NN" ], [ "mark", "NN" ], [ "giuliano", "NN" ], [ "is", "VBZ" ], [ "involved", "VBN" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "Giuliano", "Mark" ], "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(4) V(1) Filter(2) A(0) C(5) T(4) V(0)" }, { "db_id": "activity_1", "query": "SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = \"Mark\" AND T1.lname = \"Giuliano\"", "query_toks": [ "SELECT", "T3.activity_name", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "Activity", "AS", "T3", "ON", "T3.actid", "=", "T2.actid", "WHERE", "T1.fname", "=", "``", "Mark", "''", "AND", "T1.lname", "=", "``", "Giuliano", "''" ], "query_toks_no_value": [ "select", "t3", ".", "activity_name", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t3", ".", "actid", "=", "t2", ".", "actid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "Show the names of all the activities Mark Giuliano participates in.", "question_toks": [ "show", "name", "of", "all", "activity", "mark", "giuliano", "participates", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 15, 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 ], "\"Mark\"", null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Giuliano\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "the", "names", "of", "all", "the", "activities", "Mark", "Giuliano", "participates", "in", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "all" ], [ "activity" ], [ "mark" ], [ "giuliano" ], [ "participates", "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "activity", "NN" ], [ "mark", "NN" ], [ "giuliano", "NN" ], [ "participates", "NNS" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "James", "Mark", "Giuliano" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(4) T(2) Filter(0) Filter(2) A(0) C(6) T(4) V(1) Filter(2) A(0) C(5) T(4) V(2)" }, { "db_id": "activity_1", "query": "SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = \"Mark\" AND T1.lname = \"Giuliano\"", "query_toks": [ "SELECT", "T3.activity_name", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "Activity", "AS", "T3", "ON", "T3.actid", "=", "T2.actid", "WHERE", "T1.fname", "=", "``", "Mark", "''", "AND", "T1.lname", "=", "``", "Giuliano", "''" ], "query_toks_no_value": [ "select", "t3", ".", "activity_name", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t3", ".", "actid", "=", "t2", ".", "actid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ], "question": "What are the names of the activities Mark Giuliano is involved in", "question_toks": [ "what", "are", "name", "of", "activity", "mark", "giuliano", "is", "involved", "in" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 15, 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 ], "\"Mark\"", null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Giuliano\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "activities", "Mark", "Giuliano", "is", "involved", "in" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "activity" ], [ "mark" ], [ "giuliano" ], [ "is" ], [ "involved" ], [ "in" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "of", "IN" ], [ "activity", "NN" ], [ "mark", "NN" ], [ "giuliano", "NN" ], [ "is", "VBZ" ], [ "involved", "VBN" ], [ "in", "IN" ] ], "values": [ "Giuliano", "Mark", "James" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(4) T(2) Filter(0) Filter(2) A(0) C(6) T(4) V(1) Filter(2) A(0) C(5) T(4) V(0)" }, { "db_id": "activity_1", "query": "SELECT T1.fname , T1.lname , count(*) , T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID", "query_toks": [ "SELECT", "T1.fname", ",", "T1.lname", ",", "count", "(", "*", ")", ",", "T1.FacID", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "GROUP", "BY", "T1.FacID" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "lname", ",", "count", "(", "*", ")", ",", "t1", ".", "facid", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "group", "by", "t1", ".", "facid" ], "question": "Show the first and last name of all the faculty members who participated in some activity, together with the number of activities they participated in.", "question_toks": [ "show", "first", "and", "last", "name", "of", "all", "faculty", "member", "who", "participated", "in", "some", "activity", ",", "together", "with", "number", "of", "activity", "they", "participated", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "the", "first", "and", "last", "name", "of", "all", "the", "faculty", "members", "who", "participated", "in", "some", "activity", ",", "together", "with", "the", "number", "of", "activities", "they", "participated", "in", "." ], "question_arg": [ [ "show" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "faculty" ], [ "member" ], [ "who" ], [ "participated" ], [ "in" ], [ "some" ], [ "activity" ], [ "," ], [ "together" ], [ "with" ], [ "number" ], [ "of" ], [ "activity" ], [ "they" ], [ "participated" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "who", "WP" ], [ "participated", "VBD" ], [ "in", "IN" ], [ "some", "DT" ], [ "activity", "NN" ], [ ",", "," ], [ "together", "RB" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "activity", "NN" ], [ "they", "PRP" ], [ "participated", "VBD" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(6) T(4) A(0) C(5) T(4) A(3) C(0) T(2) A(0) C(4) T(4)" }, { "db_id": "activity_1", "query": "SELECT T1.fname , T1.lname , count(*) , T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID", "query_toks": [ "SELECT", "T1.fname", ",", "T1.lname", ",", "count", "(", "*", ")", ",", "T1.FacID", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "GROUP", "BY", "T1.FacID" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "lname", ",", "count", "(", "*", ")", ",", "t1", ".", "facid", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "group", "by", "t1", ".", "facid" ], "question": "What is the first and last name of the faculty members who participated in at least one activity? For each of them, also show the number of activities they participated in.", "question_toks": [ "what", "is", "first", "and", "last", "name", "of", "faculty", "member", "who", "participated", "in", "at", "least", "one", "activity", "?", "for", "each", "of", "them", ",", "also", "show", "number", "of", "activity", "they", "participated", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "first", "and", "last", "name", "of", "the", "faculty", "members", "who", "participated", "in", "at", "least", "one", "activity", "?", "For", "each", "of", "them", ",", "also", "show", "the", "number", "of", "activities", "they", "participated", "in", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "faculty" ], [ "member" ], [ "who" ], [ "participated" ], [ "in" ], [ "at" ], [ "least" ], [ "one" ], [ "activity" ], [ "?" ], [ "for" ], [ "each" ], [ "of" ], [ "them" ], [ "," ], [ "also" ], [ "show" ], [ "number" ], [ "of" ], [ "activity" ], [ "they" ], [ "participated" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "who", "WP" ], [ "participated", "VBD" ], [ "in", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "activity", "NN" ], [ "?", "." ], [ "for", "IN" ], [ "each", "DT" ], [ "of", "IN" ], [ "them", "PRP" ], [ ",", "," ], [ "also", "RB" ], [ "show", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "activity", "NN" ], [ "they", "PRP" ], [ "participated", "VBD" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "1", "Beach" ], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(6) T(4) A(0) C(5) T(4) A(3) C(0) T(2) A(0) C(4) T(4)" }, { "db_id": "activity_1", "query": "SELECT T1.activity_name , count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID", "query_toks": [ "SELECT", "T1.activity_name", ",", "count", "(", "*", ")", "FROM", "Activity", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.actID", "=", "T2.actID", "GROUP", "BY", "T1.actID" ], "query_toks_no_value": [ "select", "t1", ".", "activity_name", ",", "count", "(", "*", ")", "from", "activity", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "actid", "=", "t2", ".", "actid", "group", "by", "t1", ".", "actid" ], "question": "Show all the activity names and the number of faculty involved in each activity.", "question_toks": [ "show", "all", "activity", "name", "and", "number", "of", "faculty", "involved", "in", "each", "activity", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, 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": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "all", "the", "activity", "names", "and", "the", "number", "of", "faculty", "involved", "in", "each", "activity", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "activity", "name" ], [ "and" ], [ "number" ], [ "of" ], [ "faculty" ], [ "involved" ], [ "in" ], [ "each" ], [ "activity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "activity", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "each", "DT" ], [ "activity", "NN" ], [ ".", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(2)" }, { "db_id": "activity_1", "query": "SELECT T1.activity_name , count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID", "query_toks": [ "SELECT", "T1.activity_name", ",", "count", "(", "*", ")", "FROM", "Activity", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.actID", "=", "T2.actID", "GROUP", "BY", "T1.actID" ], "query_toks_no_value": [ "select", "t1", ".", "activity_name", ",", "count", "(", "*", ")", "from", "activity", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "actid", "=", "t2", ".", "actid", "group", "by", "t1", ".", "actid" ], "question": "How many faculty members participate in each activity? Return the activity names and the number of faculty members.", "question_toks": [ "how", "many", "faculty", "member", "participate", "in", "each", "activity", "?", "return", "activity", "name", "and", "number", "of", "faculty", "member", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, 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": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "How", "many", "faculty", "members", "participate", "in", "each", "activity", "?", "Return", "the", "activity", "names", "and", "the", "number", "of", "faculty", "members", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "faculty" ], [ "member" ], [ "participate" ], [ "in" ], [ "each" ], [ "activity" ], [ "?" ], [ "return" ], [ "activity", "name" ], [ "and" ], [ "number" ], [ "of" ], [ "faculty" ], [ "member" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "participate", "VB" ], [ "in", "IN" ], [ "each", "DT" ], [ "activity", "NN" ], [ "?", "." ], [ "return", "NN" ], [ "activity", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "faculty", "JJ" ], [ "member", "NN" ], [ ".", "." ] ], "values": [ "James" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(2)" }, { "db_id": "activity_1", "query": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.fname", ",", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "GROUP", "BY", "T1.FacID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "group", "by", "t1", ".", "facid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the first and last name of the faculty participating in the most activities?", "question_toks": [ "what", "is", "first", "and", "last", "name", "of", "faculty", "participating", "in", "most", "activity", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, 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 ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "first", "and", "last", "name", "of", "the", "faculty", "participating", "in", "the", "most", "activities", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "faculty" ], [ "participating" ], [ "in" ], [ "most" ], [ "activity" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "participating", "VBG" ], [ "in", "IN" ], [ "most", "JJS" ], [ "activity", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(6) T(4) A(0) C(5) T(4) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(4) T(2)" }, { "db_id": "activity_1", "query": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.fname", ",", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "GROUP", "BY", "T1.FacID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "group", "by", "t1", ".", "facid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the first and last name of the faculty who is involved in the largest number of activities.", "question_toks": [ "find", "first", "and", "last", "name", "of", "faculty", "who", "is", "involved", "in", "largest", "number", "of", "activity", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, 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 ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "first", "and", "last", "name", "of", "the", "faculty", "who", "is", "involved", "in", "the", "largest", "number", "of", "activities", "." ], "question_arg": [ [ "find" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "faculty" ], [ "who" ], [ "is" ], [ "involved" ], [ "in" ], [ "largest" ], [ "number" ], [ "of" ], [ "activity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "activity", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(6) T(4) A(0) C(5) T(4) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(4) T(2)" }, { "db_id": "activity_1", "query": "SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.activity_name", "FROM", "Activity", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.actID", "=", "T2.actID", "GROUP", "BY", "T1.actID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "activity_name", "from", "activity", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "actid", "=", "t2", ".", "actid", "group", "by", "t1", ".", "actid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the activity that has the most faculty members involved in?", "question_toks": [ "what", "is", "name", "of", "activity", "that", "ha", "most", "faculty", "member", "involved", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 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": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "activity", "that", "has", "the", "most", "faculty", "members", "involved", "in", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "activity" ], [ "that" ], [ "ha" ], [ "most" ], [ "faculty" ], [ "member" ], [ "involved" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "activity", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "faculty", "JJ" ], [ "member", "NN" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "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": "activity_1", "query": "SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.activity_name", "FROM", "Activity", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.actID", "=", "T2.actID", "GROUP", "BY", "T1.actID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "activity_name", "from", "activity", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "actid", "=", "t2", ".", "actid", "group", "by", "t1", ".", "actid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which activity has the most faculty members participating in? Find the activity name.", "question_toks": [ "which", "activity", "ha", "most", "faculty", "member", "participating", "in", "?", "find", "activity", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 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": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Which", "activity", "has", "the", "most", "faculty", "members", "participating", "in", "?", "Find", "the", "activity", "name", "." ], "question_arg": [ [ "which" ], [ "activity" ], [ "ha" ], [ "most" ], [ "faculty" ], [ "member" ], [ "participating" ], [ "in" ], [ "?" ], [ "find" ], [ "activity", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "activity", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "faculty", "JJ" ], [ "member", "NN" ], [ "participating", "VBG" ], [ "in", "IN" ], [ "?", "." ], [ "find", "VBP" ], [ "activity", "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(2) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "activity_1", "query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Participates_in" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "except", "select", "stuid", "from", "participates_in" ], "question": "Show the ids of the students who don't participate in any activity.", "question_toks": [ "show", "id", "of", "student", "who", "do", "n't", "participate", "in", "any", "activity", "." ], "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", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "the", "ids", "of", "the", "students", "who", "do", "n't", "participate", "in", "any", "activity", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "do" ], [ "n't" ], [ "participate" ], [ "in" ], [ "any" ], [ "activity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "participate", "VB" ], [ "in", "IN" ], [ "any", "DT" ], [ "activity", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(3) T(3) Root(5) Sel(0) N(0) A(0) C(3) T(1)" }, { "db_id": "activity_1", "query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Participates_in" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "except", "select", "stuid", "from", "participates_in" ], "question": "What are the ids of the students who are not involved in any activity", "question_toks": [ "what", "are", "id", "of", "student", "who", "are", "not", "involved", "in", "any", "activity" ], "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", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "students", "who", "are", "not", "involved", "in", "any", "activity" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "not" ], [ "involved" ], [ "in" ], [ "any" ], [ "activity" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "any", "DT" ], [ "activity", "NN" ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(3) T(3) Root(5) Sel(0) N(0) A(0) C(3) T(1)" }, { "db_id": "activity_1", "query": "SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age < 20", "query_toks": [ "SELECT", "StuID", "FROM", "Participates_in", "INTERSECT", "SELECT", "StuID", "FROM", "Student", "WHERE", "age", "<", "20" ], "query_toks_no_value": [ "select", "stuid", "from", "participates_in", "intersect", "select", "stuid", "from", "student", "where", "age", "<", "value" ], "question": "Show the ids for all the students who participate in an activity and are under 20.", "question_toks": [ "show", "id", "for", "all", "student", "who", "participate", "in", "an", "activity", "and", "are", "under", "20", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 10, false ], null ], 20.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Show", "the", "ids", "for", "all", "the", "students", "who", "participate", "in", "an", "activity", "and", "are", "under", "20", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "for" ], [ "all" ], [ "student" ], [ "who" ], [ "participate" ], [ "in" ], [ "an" ], [ "activity" ], [ "and" ], [ "are" ], [ "under" ], [ "20" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "participate", "VBP" ], [ "in", "IN" ], [ "an", "DT" ], [ "activity", "NN" ], [ "and", "CC" ], [ "are", "VBP" ], [ "under", "IN" ], [ "20", "CD" ], [ ".", "." ] ], "values": [ "20" ], "rule_label": "Root1(0) Root(5) Sel(0) N(0) A(0) C(3) T(1) Root(3) Sel(0) N(0) A(0) C(3) T(3) Filter(4) A(0) C(7) T(3) V(0)" }, { "db_id": "activity_1", "query": "SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age < 20", "query_toks": [ "SELECT", "StuID", "FROM", "Participates_in", "INTERSECT", "SELECT", "StuID", "FROM", "Student", "WHERE", "age", "<", "20" ], "query_toks_no_value": [ "select", "stuid", "from", "participates_in", "intersect", "select", "stuid", "from", "student", "where", "age", "<", "value" ], "question": "What are the ids of the students who are under 20 years old and are involved in at least one activity.", "question_toks": [ "what", "are", "id", "of", "student", "who", "are", "under", "20", "year", "old", "and", "are", "involved", "in", "at", "least", "one", "activity", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 10, false ], null ], 20.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "students", "who", "are", "under", "20", "years", "old", "and", "are", "involved", "in", "at", "least", "one", "activity", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "under" ], [ "20" ], [ "year" ], [ "old" ], [ "and" ], [ "are" ], [ "involved" ], [ "in" ], [ "at" ], [ "least" ], [ "one" ], [ "activity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "under", "IN" ], [ "20", "CD" ], [ "year", "NN" ], [ "old", "JJ" ], [ "and", "CC" ], [ "are", "VBP" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "activity", "NN" ], [ ".", "." ] ], "values": [ "20", "1" ], "rule_label": "Root1(0) Root(5) Sel(0) N(0) A(0) C(3) T(1) Root(3) Sel(0) N(0) A(0) C(3) T(3) Filter(4) A(0) C(7) T(3) V(0)" }, { "db_id": "activity_1", "query": "SELECT T1.fname , T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.fname", ",", "T1.lname", "FROM", "Student", "AS", "T1", "JOIN", "Participates_in", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "GROUP", "BY", "T1.StuID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "student", "as", "t1", "join", "participates_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "group", "by", "t1", ".", "stuid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the first and last name of the student participating in the most activities?", "question_toks": [ "what", "is", "first", "and", "last", "name", "of", "student", "participating", "in", "most", "activity", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "first", "and", "last", "name", "of", "the", "student", "participating", "in", "the", "most", "activities", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "participating" ], [ "in" ], [ "most" ], [ "activity" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "participating", "VBG" ], [ "in", "IN" ], [ "most", "JJS" ], [ "activity", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(6) T(3) A(0) C(5) T(3) Sup(0) A(3) C(0) T(1) Filter(18) A(0) C(3) T(3) Root(5) Sel(0) N(0) A(0) C(3) T(1)" }, { "db_id": "activity_1", "query": "SELECT T1.fname , T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.fname", ",", "T1.lname", "FROM", "Student", "AS", "T1", "JOIN", "Participates_in", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "GROUP", "BY", "T1.StuID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "student", "as", "t1", "join", "participates_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "group", "by", "t1", ".", "stuid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Tell me the first and last name of the student who has the most activities.", "question_toks": [ "tell", "me", "first", "and", "last", "name", "of", "student", "who", "ha", "most", "activity", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Tell", "me", "the", "first", "and", "last", "name", "of", "the", "student", "who", "has", "the", "most", "activities", "." ], "question_arg": [ [ "tell" ], [ "me" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "ha" ], [ "most" ], [ "activity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "tell", "VB" ], [ "me", "PRP" ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "activity", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(6) T(3) A(0) C(5) T(3) Sup(0) A(3) C(0) T(1) Filter(18) A(0) C(3) T(3) Root(5) Sel(0) N(0) A(0) C(3) T(1)" }, { "db_id": "activity_1", "query": "SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.activity_name", "FROM", "Activity", "AS", "T1", "JOIN", "Participates_in", "AS", "T2", "ON", "T1.actID", "=", "T2.actID", "GROUP", "BY", "T1.actID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "activity_name", "from", "activity", "as", "t1", "join", "participates_in", "as", "t2", "on", "t1", ".", "actid", "=", "t2", ".", "actid", "group", "by", "t1", ".", "actid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the activity with the most students?", "question_toks": [ "what", "is", "name", "of", "activity", "with", "most", "student", "?" ], "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": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "activity", "with", "the", "most", "students", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "activity" ], [ "with" ], [ "most" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "activity", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "student", "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(1) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1)" }, { "db_id": "activity_1", "query": "SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.activity_name", "FROM", "Activity", "AS", "T1", "JOIN", "Participates_in", "AS", "T2", "ON", "T1.actID", "=", "T2.actID", "GROUP", "BY", "T1.actID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "activity_name", "from", "activity", "as", "t1", "join", "participates_in", "as", "t2", "on", "t1", ".", "actid", "=", "t2", ".", "actid", "group", "by", "t1", ".", "actid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name of the activity that has the largest number of student participants.", "question_toks": [ "find", "name", "of", "activity", "that", "ha", "largest", "number", "of", "student", "participant", "." ], "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": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "activity", "that", "has", "the", "largest", "number", "of", "student", "participants", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "activity" ], [ "that" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "student" ], [ "participant" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "activity", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "participant", "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(1) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1)" }, { "db_id": "activity_1", "query": "SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'", "query_toks": [ "SELECT", "DISTINCT", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "activity", "AS", "T3", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T3.activity_name", "=", "'Canoeing", "'", "OR", "T3.activity_name", "=", "'Kayaking", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value", "or", "t3", ".", "activity_name", "=", "value" ], "question": "Find the first names of the faculty members who are playing Canoeing or Kayaking.", "question_toks": [ "find", "first", "name", "of", "faculty", "member", "who", "are", "playing", "canoeing", "or", "kayaking", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, 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, 2, false ], null ], "\"Canoeing\"", null ], "or", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Kayaking\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "first", "names", "of", "the", "faculty", "members", "who", "are", "playing", "Canoeing", "or", "Kayaking", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "faculty" ], [ "member" ], [ "who" ], [ "are" ], [ "playing" ], [ "canoeing" ], [ "or" ], [ "kayaking" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "playing", "VBG" ], [ "canoeing", "VBG" ], [ "or", "CC" ], [ "kayaking", "VBG" ], [ ".", "." ] ], "values": [ "Kayaking", "1", "Canoeing", "James" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(5) T(4) Filter(0) Filter(18) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(4) T(2) Filter(1) Filter(2) A(0) C(2) T(0) V(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "activity_1", "query": "SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'", "query_toks": [ "SELECT", "DISTINCT", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "activity", "AS", "T3", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T3.activity_name", "=", "'Canoeing", "'", "OR", "T3.activity_name", "=", "'Kayaking", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value", "or", "t3", ".", "activity_name", "=", "value" ], "question": "Which faculty members are playing either Canoeing or Kayaking? Tell me their first names.", "question_toks": [ "which", "faculty", "member", "are", "playing", "either", "canoeing", "or", "kayaking", "?", "tell", "me", "their", "first", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, 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, 2, false ], null ], "\"Canoeing\"", null ], "or", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Kayaking\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Which", "faculty", "members", "are", "playing", "either", "Canoeing", "or", "Kayaking", "?", "Tell", "me", "their", "first", "names", "." ], "question_arg": [ [ "which" ], [ "faculty" ], [ "member" ], [ "are" ], [ "playing" ], [ "either" ], [ "canoeing" ], [ "or" ], [ "kayaking" ], [ "?" ], [ "tell" ], [ "me" ], [ "their" ], [ "first", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "are", "VBP" ], [ "playing", "VBG" ], [ "either", "CC" ], [ "canoeing", "VBG" ], [ "or", "CC" ], [ "kayaking", "VBG" ], [ "?", "." ], [ "tell", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Kayaking", "1", "Canoeing", "James" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(5) T(4) Filter(0) Filter(18) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(4) T(2) Filter(1) Filter(2) A(0) C(2) T(0) V(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "activity_1", "query": "SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'", "query_toks": [ "SELECT", "lname", "FROM", "faculty", "WHERE", "rank", "=", "'Professor", "'", "EXCEPT", "SELECT", "DISTINCT", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "activity", "AS", "T3", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T3.activity_name", "=", "'Canoeing", "'", "OR", "T3.activity_name", "=", "'Kayaking", "'" ], "query_toks_no_value": [ "select", "lname", "from", "faculty", "where", "rank", "=", "value", "except", "select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value", "or", "t3", ".", "activity_name", "=", "value" ], "question": "Find the first names of professors who are not playing Canoeing or Kayaking.", "question_toks": [ "find", "first", "name", "of", "professor", "who", "are", "not", "playing", "canoeing", "or", "kayaking", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, 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, 2, false ], null ], "\"Canoeing\"", null ], "or", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Kayaking\"", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Professor\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "first", "names", "of", "professors", "who", "are", "not", "playing", "Canoeing", "or", "Kayaking", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "professor" ], [ "who" ], [ "are" ], [ "not" ], [ "playing" ], [ "canoeing" ], [ "or" ], [ "kayaking" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "playing", "VBG" ], [ "canoeing", "VBG" ], [ "or", "CC" ], [ "kayaking", "VBG" ], [ ".", "." ] ], "values": [ "Professor", "James", "1", "Kayaking", "Canoeing" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(5) T(4) Filter(2) A(0) C(12) T(4) V(0) Root(3) Sel(1) N(0) A(0) C(5) T(4) Filter(0) Filter(18) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(4) T(2) Filter(1) Filter(2) A(0) C(2) T(0) V(4) Filter(2) A(0) C(2) T(0) V(3)" }, { "db_id": "activity_1", "query": "SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'", "query_toks": [ "SELECT", "lname", "FROM", "faculty", "WHERE", "rank", "=", "'Professor", "'", "EXCEPT", "SELECT", "DISTINCT", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "activity", "AS", "T3", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T3.activity_name", "=", "'Canoeing", "'", "OR", "T3.activity_name", "=", "'Kayaking", "'" ], "query_toks_no_value": [ "select", "lname", "from", "faculty", "where", "rank", "=", "value", "except", "select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value", "or", "t3", ".", "activity_name", "=", "value" ], "question": "What are the first names of the professors who do not play Canoeing or Kayaking as activities?", "question_toks": [ "what", "are", "first", "name", "of", "professor", "who", "do", "not", "play", "canoeing", "or", "kayaking", "a", "activity", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, 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, 2, false ], null ], "\"Canoeing\"", null ], "or", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Kayaking\"", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Professor\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "the", "professors", "who", "do", "not", "play", "Canoeing", "or", "Kayaking", "as", "activities", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "of" ], [ "professor" ], [ "who" ], [ "do" ], [ "not" ], [ "play" ], [ "canoeing" ], [ "or" ], [ "kayaking" ], [ "a" ], [ "activity" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "play", "VB" ], [ "canoeing", "VBG" ], [ "or", "CC" ], [ "kayaking", "VBG" ], [ "a", "DT" ], [ "activity", "NN" ], [ "?", "." ] ], "values": [ "1", "Canoeing", "Kayaking", "James", "Professor" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(5) T(4) Filter(2) A(0) C(12) T(4) V(4) Root(3) Sel(1) N(0) A(0) C(5) T(4) Filter(0) Filter(18) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(4) T(2) Filter(1) Filter(2) A(0) C(2) T(0) V(1) Filter(2) A(0) C(2) T(0) V(2)" }, { "db_id": "activity_1", "query": "SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking'", "query_toks": [ "SELECT", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "activity", "AS", "T3", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T3.activity_name", "=", "'Canoeing", "'", "INTERSECT", "SELECT", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "activity", "AS", "T3", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T3.activity_name", "=", "'Kayaking", "'" ], "query_toks_no_value": [ "select", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value", "intersect", "select", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value" ], "question": "Find the first names of the faculty members who participate in Canoeing and Kayaking.", "question_toks": [ "find", "first", "name", "of", "faculty", "member", "who", "participate", "in", "canoeing", "and", "kayaking", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, 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, 2, false ], null ], "\"Kayaking\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, 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, 2, false ], null ], "\"Canoeing\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "first", "names", "of", "the", "faculty", "members", "who", "participate", "in", "Canoeing", "and", "Kayaking", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "faculty" ], [ "member" ], [ "who" ], [ "participate" ], [ "in" ], [ "canoeing" ], [ "and" ], [ "kayaking" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "who", "WP" ], [ "participate", "VBP" ], [ "in", "IN" ], [ "canoeing", "NN" ], [ "and", "CC" ], [ "kayaking", "NN" ], [ ".", "." ] ], "values": [ "Kayaking", "1", "Canoeing", "James" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(5) T(4) Filter(0) Filter(18) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(4) T(2) Filter(2) A(0) C(2) T(0) V(2) Root(3) Sel(0) N(0) A(0) C(5) T(4) Filter(0) Filter(18) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(4) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "activity_1", "query": "SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking'", "query_toks": [ "SELECT", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "activity", "AS", "T3", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T3.activity_name", "=", "'Canoeing", "'", "INTERSECT", "SELECT", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "activity", "AS", "T3", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T3.activity_name", "=", "'Kayaking", "'" ], "query_toks_no_value": [ "select", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value", "intersect", "select", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value" ], "question": "What are the first names of the faculty members playing both Canoeing and Kayaking?", "question_toks": [ "what", "are", "first", "name", "of", "faculty", "member", "playing", "both", "canoeing", "and", "kayaking", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, 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, 2, false ], null ], "\"Kayaking\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 15, 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, 2, false ], null ], "\"Canoeing\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "the", "faculty", "members", "playing", "both", "Canoeing", "and", "Kayaking", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "of" ], [ "faculty" ], [ "member" ], [ "playing" ], [ "both" ], [ "canoeing" ], [ "and" ], [ "kayaking" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "faculty", "NN" ], [ "member", "NN" ], [ "playing", "VBG" ], [ "both", "DT" ], [ "canoeing", "VBG" ], [ "and", "CC" ], [ "kayaking", "VBG" ], [ "?", "." ] ], "values": [ "Kayaking", "1", "Canoeing", "James" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(5) T(4) Filter(0) Filter(18) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(4) T(2) Filter(2) A(0) C(2) T(0) V(2) Root(3) Sel(0) N(0) A(0) C(5) T(4) Filter(0) Filter(18) A(0) C(4) T(4) Root(5) Sel(0) N(0) A(0) C(4) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "activity_1", "query": "SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking'", "query_toks": [ "SELECT", "T1.stuid", "FROM", "participates_in", "AS", "T1", "JOIN", "activity", "AS", "T2", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T2.activity_name", "=", "'Canoeing", "'", "INTERSECT", "SELECT", "T1.stuid", "FROM", "participates_in", "AS", "T1", "JOIN", "activity", "AS", "T2", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T2.activity_name", "=", "'Kayaking", "'" ], "query_toks_no_value": [ "select", "t1", ".", "stuid", "from", "participates_in", "as", "t1", "join", "activity", "as", "t2", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t2", ".", "activity_name", "=", "value", "intersect", "select", "t1", ".", "stuid", "from", "participates_in", "as", "t1", "join", "activity", "as", "t2", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t2", ".", "activity_name", "=", "value" ], "question": "Find the ids of the students who participate in Canoeing and Kayaking.", "question_toks": [ "find", "id", "of", "student", "who", "participate", "in", "canoeing", "and", "kayaking", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, 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, 1, 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 ], "\"Kayaking\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Canoeing\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "ids", "of", "the", "students", "who", "participate", "in", "Canoeing", "and", "Kayaking", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "participate" ], [ "in" ], [ "canoeing" ], [ "and" ], [ "kayaking" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "participate", "VBP" ], [ "in", "IN" ], [ "canoeing", "NN" ], [ "and", "CC" ], [ "kayaking", "NN" ], [ ".", "." ] ], "values": [ "Kayaking", "Canoeing" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(2) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "activity_1", "query": "SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking'", "query_toks": [ "SELECT", "T1.stuid", "FROM", "participates_in", "AS", "T1", "JOIN", "activity", "AS", "T2", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T2.activity_name", "=", "'Canoeing", "'", "INTERSECT", "SELECT", "T1.stuid", "FROM", "participates_in", "AS", "T1", "JOIN", "activity", "AS", "T2", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T2.activity_name", "=", "'Kayaking", "'" ], "query_toks_no_value": [ "select", "t1", ".", "stuid", "from", "participates_in", "as", "t1", "join", "activity", "as", "t2", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t2", ".", "activity_name", "=", "value", "intersect", "select", "t1", ".", "stuid", "from", "participates_in", "as", "t1", "join", "activity", "as", "t2", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t2", ".", "activity_name", "=", "value" ], "question": "Which students participate in both Canoeing and Kayaking as their activities? Tell me their student ids.", "question_toks": [ "which", "student", "participate", "in", "both", "canoeing", "and", "kayaking", "a", "their", "activity", "?", "tell", "me", "their", "student", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, 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, 1, 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 ], "\"Kayaking\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Canoeing\"", null ] ] }, "names": [ "*", "activity id", "activity name", "student id", "activity id", "faculty id", "activity id", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "faculty id", "last name", "first name", "rank", "sex", "phone", "room", "building" ], "table_names": [ "activity", "participates in", "faculty participates in", "student", "faculty" ], "col_set": [ "*", "activity id", "activity name", "student id", "faculty id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "rank", "phone", "room", "building" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "4": 1, "1": 1, "3": 7, "7": 7, "6": 1, "5": 15, "15": 15 }, "origin_question_toks": [ "Which", "students", "participate", "in", "both", "Canoeing", "and", "Kayaking", "as", "their", "activities", "?", "Tell", "me", "their", "student", "ids", "." ], "question_arg": [ [ "which" ], [ "student" ], [ "participate" ], [ "in" ], [ "both" ], [ "canoeing" ], [ "and" ], [ "kayaking" ], [ "a" ], [ "their" ], [ "activity" ], [ "?" ], [ "tell" ], [ "me" ], [ "their" ], [ "student", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "student", "NN" ], [ "participate", "NN" ], [ "in", "IN" ], [ "both", "DT" ], [ "canoeing", "NN" ], [ "and", "CC" ], [ "kayaking", "VBG" ], [ "a", "DT" ], [ "their", "PRP$" ], [ "activity", "NN" ], [ "?", "." ], [ "tell", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "student", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "Kayaking", "Canoeing" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(2) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "flight_4", "query": "SELECT name FROM airports WHERE city = 'Goroka'", "query_toks": [ "SELECT", "name", "FROM", "airports", "WHERE", "city", "=", "'Goroka", "'" ], "query_toks_no_value": [ "select", "name", "from", "airports", "where", "city", "=", "value" ], "question": "Find the name of the airport in the city of Goroka.", "question_toks": [ "find", "name", "of", "airport", "in", "city", "of", "goroka", "." ], "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, 2, [ 0, [ 0, 11, false ], null ], "\"Goroka\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "airport", "in", "the", "city", "of", "Goroka", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "airport" ], [ "in" ], [ "city" ], [ "of" ], [ "goroka" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "in", "IN" ], [ "city", "NN" ], [ "of", "IN" ], [ "goroka", "NN" ], [ ".", "." ] ], "values": [ "Nome", "TAME", "Goroka", "CTY", "Air Sport", "NME", "CIT", "NAM", "NAE", "CITY", "PITY", "Airnorth", "CIY", "SAME", "Tame", "AME", "AIR SPORT" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(11) T(1) V(2)" }, { "db_id": "flight_4", "query": "SELECT name FROM airports WHERE city = 'Goroka'", "query_toks": [ "SELECT", "name", "FROM", "airports", "WHERE", "city", "=", "'Goroka", "'" ], "query_toks_no_value": [ "select", "name", "from", "airports", "where", "city", "=", "value" ], "question": "What are the names of the airports in the city of Goroka?", "question_toks": [ "what", "are", "name", "of", "airport", "in", "city", "of", "goroka", "?" ], "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, 2, [ 0, [ 0, 11, false ], null ], "\"Goroka\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "airports", "in", "the", "city", "of", "Goroka", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "airport" ], [ "in" ], [ "city" ], [ "of" ], [ "goroka" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "in", "IN" ], [ "city", "NN" ], [ "of", "IN" ], [ "goroka", "NN" ], [ "?", "." ] ], "values": [ "Namest", "CITY", "Goroka", "CIT", "CTY", "PITY", "Nimes", "Airnorth", "CIY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(11) T(1) V(2)" }, { "db_id": "flight_4", "query": "SELECT name , city , country , elevation FROM airports WHERE city = 'New York'", "query_toks": [ "SELECT", "name", ",", "city", ",", "country", ",", "elevation", "FROM", "airports", "WHERE", "city", "=", "'New", "York", "'" ], "query_toks_no_value": [ "select", "name", ",", "city", ",", "country", ",", "elevation", "from", "airports", "where", "city", "=", "value" ], "question": "Find the name, city, country, and altitude (or elevation) of the airports in the city of New York.", "question_toks": [ "find", "name", ",", "city", ",", "country", ",", "and", "altitude", "(", "or", "elevation", ")", "of", "airport", "in", "city", "of", "new", "york", "." ], "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 ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"New York\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", ",", "city", ",", "country", ",", "and", "altitude", "(", "or", "elevation", ")", "of", "the", "airports", "in", "the", "city", "of", "New", "York", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "," ], [ "city" ], [ "," ], [ "country" ], [ "," ], [ "and" ], [ "altitude" ], [ "(" ], [ "or" ], [ "elevation" ], [ ")" ], [ "of" ], [ "airport" ], [ "in" ], [ "city" ], [ "of" ], [ "new" ], [ "york" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "city", "NN" ], [ ",", "," ], [ "country", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "altitude", "NN" ], [ "(", "(" ], [ "or", "CC" ], [ "elevation", "NN" ], [ ")", ")" ], [ "of", "IN" ], [ "airport", "NN" ], [ "in", "IN" ], [ "city", "NN" ], [ "of", "IN" ], [ "new", "JJ" ], [ "york", "NN" ], [ ".", "." ] ], "values": [ "NEW", "CTY", "NAM", "CIY", "Tame", "RORK", "NY", "York", "CITY", "NME", "TAME", "SAME", "NEW YORK", "CIT", "Nome", "KNEW", "Cork", "Airnorth", "PITY", "ORK", "Coventry", "New York", "COUNTY", "YORG", "NAE", "AME", "YBRK" ], "rule_label": "Root1(3) Root(3) Sel(0) N(3) A(0) C(10) T(1) A(0) C(11) T(1) A(0) C(12) T(1) A(0) C(15) T(1) Filter(2) A(0) C(11) T(1) V(21)" }, { "db_id": "flight_4", "query": "SELECT name , city , country , elevation FROM airports WHERE city = 'New York'", "query_toks": [ "SELECT", "name", ",", "city", ",", "country", ",", "elevation", "FROM", "airports", "WHERE", "city", "=", "'New", "York", "'" ], "query_toks_no_value": [ "select", "name", ",", "city", ",", "country", ",", "elevation", "from", "airports", "where", "city", "=", "value" ], "question": "What is the name, city, country, and elevation for every airport in the city of New York?", "question_toks": [ "what", "is", "name", ",", "city", ",", "country", ",", "and", "elevation", "for", "every", "airport", "in", "city", "of", "new", "york", "?" ], "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 ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"New York\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", ",", "city", ",", "country", ",", "and", "elevation", "for", "every", "airport", "in", "the", "city", "of", "New", "York", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "," ], [ "city" ], [ "," ], [ "country" ], [ "," ], [ "and" ], [ "elevation" ], [ "for" ], [ "every" ], [ "airport" ], [ "in" ], [ "city" ], [ "of" ], [ "new" ], [ "york" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "JJ" ], [ ",", "," ], [ "city", "NN" ], [ ",", "," ], [ "country", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "elevation", "NN" ], [ "for", "IN" ], [ "every", "DT" ], [ "airport", "NN" ], [ "in", "IN" ], [ "city", "NN" ], [ "of", "IN" ], [ "new", "JJ" ], [ "york", "NN" ], [ "?", "." ] ], "values": [ "TAME", "CTY", "RORK", "Airnorth", "CIY", "Cork", "Tame", "YORG", "York", "Nome", "COUNTY", "NEW", "CIT", "NAM", "NAE", "YBRK", "ORK", "CITY", "PITY", "SAME", "NEW YORK", "AIR SPORT", "KNEW", "NY", "Air Sport", "NME", "New York", "Coventry", "AME" ], "rule_label": "Root1(3) Root(3) Sel(0) N(3) A(0) C(10) T(1) A(0) C(11) T(1) A(0) C(12) T(1) A(0) C(15) T(1) Filter(2) A(0) C(11) T(1) V(26)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM airlines", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "airlines" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airlines" ], "question": "How many airlines are there?", "question_toks": [ "how", "many", "airline", "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": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "airlines", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "airline" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "airline", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [ "Fairlines", "AIRWINGS", "AIRLIN", "TRILINES", "DARLINES", "Airailes", "S-AIRLINES", "FAIRLINE", "Airlink", "ADLINES", "AIRLINK" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM airlines", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "airlines" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airlines" ], "question": "What is the total number of airlines?", "question_toks": [ "what", "is", "total", "number", "of", "airline", "?" ], "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": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "airlines", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "airline" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "airline", "NN" ], [ "?", "." ] ], "values": [ "Fairlines", "AIRWINGS", "AIRLIN", "TRILINES", "DARLINES", "Airailes", "S-AIRLINES", "FAIRLINE", "Airlink", "ADLINES", "AIRLINK" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM airlines WHERE country = 'Russia'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "airlines", "WHERE", "country", "=", "'Russia", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airlines", "where", "country", "=", "value" ], "question": "How many airlines does Russia has?", "question_toks": [ "how", "many", "airline", "doe", "russia", "ha", "?" ], "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, 23, false ], null ], "\"Russia\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "airlines", "does", "Russia", "has", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "airline" ], [ "doe" ], [ "russia" ], [ "ha" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "airline", "NN" ], [ "doe", "NN" ], [ "russia", "NN" ], [ "ha", "NN" ], [ "?", "." ] ], "values": [ "Fairlines", "AIRWINGS", "AIRLIN", "TRILINES", "DARLINES", "Airailes", "S-AIRLINES", "Airlink", "FAIRLINE", "Russia", "ADLINES", "AIRLINK" ], "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(9)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM airlines WHERE country = 'Russia'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "airlines", "WHERE", "country", "=", "'Russia", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airlines", "where", "country", "=", "value" ], "question": "What is the number of airlines based in Russia?", "question_toks": [ "what", "is", "number", "of", "airline", "based", "in", "russia", "?" ], "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, 23, false ], null ], "\"Russia\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "airlines", "based", "in", "Russia", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "airline" ], [ "based" ], [ "in" ], [ "russia" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "airline", "NN" ], [ "based", "VBN" ], [ "in", "IN" ], [ "russia", "NN" ], [ "?", "." ] ], "values": [ "S-AIRLINES", "AIRLINK", "ADLINES", "AIRLIN", "FAIRLINE", "Airlink", "DARLINES", "AIRWINGS", "Fairlines", "TRILINES", "Airailes", "Russia" ], "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(11)" }, { "db_id": "flight_4", "query": "SELECT max(elevation) FROM airports WHERE country = 'Iceland'", "query_toks": [ "SELECT", "max", "(", "elevation", ")", "FROM", "airports", "WHERE", "country", "=", "'Iceland", "'" ], "query_toks_no_value": [ "select", "max", "(", "elevation", ")", "from", "airports", "where", "country", "=", "value" ], "question": "What is the maximum elevation of all airports in the country of Iceland?", "question_toks": [ "what", "is", "maximum", "elevation", "of", "all", "airport", "in", "country", "of", "iceland", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Iceland\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "maximum", "elevation", "of", "all", "airports", "in", "the", "country", "of", "Iceland", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "elevation" ], [ "of" ], [ "all" ], [ "airport" ], [ "in" ], [ "country" ], [ "of" ], [ "iceland" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "elevation", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "airport", "NN" ], [ "in", "IN" ], [ "country", "NN" ], [ "of", "IN" ], [ "iceland", "NN" ], [ "?", "." ] ], "values": [ "COUNTY", "Coventry", "Ireland", "Iceland", "Airnorth" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(1) C(15) T(1) Filter(2) A(0) C(12) T(1) V(3)" }, { "db_id": "flight_4", "query": "SELECT max(elevation) FROM airports WHERE country = 'Iceland'", "query_toks": [ "SELECT", "max", "(", "elevation", ")", "FROM", "airports", "WHERE", "country", "=", "'Iceland", "'" ], "query_toks_no_value": [ "select", "max", "(", "elevation", ")", "from", "airports", "where", "country", "=", "value" ], "question": "What is the highest elevation of an airport in the country of Iceland?", "question_toks": [ "what", "is", "highest", "elevation", "of", "an", "airport", "in", "country", "of", "iceland", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Iceland\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "highest", "elevation", "of", "an", "airport", "in", "the", "country", "of", "Iceland", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "highest" ], [ "elevation" ], [ "of" ], [ "an" ], [ "airport" ], [ "in" ], [ "country" ], [ "of" ], [ "iceland" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "highest", "JJS" ], [ "elevation", "NN" ], [ "of", "IN" ], [ "an", "DT" ], [ "airport", "NN" ], [ "in", "IN" ], [ "country", "NN" ], [ "of", "IN" ], [ "iceland", "NN" ], [ "?", "." ] ], "values": [ "Air Sport", "Airnorth", "Ireland", "Iceland", "COUNTY", "Coventry", "AIR SPORT" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(1) C(15) T(1) Filter(2) A(0) C(12) T(1) V(3)" }, { "db_id": "flight_4", "query": "SELECT name FROM airports WHERE country = 'Cuba' OR country = 'Argentina'", "query_toks": [ "SELECT", "name", "FROM", "airports", "WHERE", "country", "=", "'Cuba", "'", "OR", "country", "=", "'Argentina", "'" ], "query_toks_no_value": [ "select", "name", "from", "airports", "where", "country", "=", "value", "or", "country", "=", "value" ], "question": "Find the name of the airports located in Cuba or Argentina.", "question_toks": [ "find", "name", "of", "airport", "located", "in", "cuba", "or", "argentina", "." ], "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, 2, [ 0, [ 0, 12, false ], null ], "\"Cuba\"", null ], "or", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Argentina\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "airports", "located", "in", "Cuba", "or", "Argentina", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "airport" ], [ "located" ], [ "in" ], [ "cuba" ], [ "or" ], [ "argentina" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "located", "VBN" ], [ "in", "IN" ], [ "cuba", "NN" ], [ "or", "CC" ], [ "argentina", "NN" ], [ ".", "." ] ], "values": [ "NAM", "SAME", "Tame", "Airnorth", "NAE", "Cuba", "ARGENTINA", "AME", "NME", "TAME", "Nome", "Argentina" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(1) Filter(2) A(0) C(12) T(1) V(5) Filter(2) A(0) C(12) T(1) V(11)" }, { "db_id": "flight_4", "query": "SELECT name FROM airports WHERE country = 'Cuba' OR country = 'Argentina'", "query_toks": [ "SELECT", "name", "FROM", "airports", "WHERE", "country", "=", "'Cuba", "'", "OR", "country", "=", "'Argentina", "'" ], "query_toks_no_value": [ "select", "name", "from", "airports", "where", "country", "=", "value", "or", "country", "=", "value" ], "question": "What are the names of all airports in Cuba or Argentina?", "question_toks": [ "what", "are", "name", "of", "all", "airport", "in", "cuba", "or", "argentina", "?" ], "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, 2, [ 0, [ 0, 12, false ], null ], "\"Cuba\"", null ], "or", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Argentina\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "airports", "in", "Cuba", "or", "Argentina", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "airport" ], [ "in" ], [ "cuba" ], [ "or" ], [ "argentina" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "airport", "NN" ], [ "in", "IN" ], [ "cuba", "NN" ], [ "or", "CC" ], [ "argentina", "NN" ], [ "?", "." ] ], "values": [ "Argentina", "Nimes", "ARGENTINA", "Namest", "Airnorth", "Cuba" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(1) Filter(2) A(0) C(12) T(1) V(5) Filter(2) A(0) C(12) T(1) V(0)" }, { "db_id": "flight_4", "query": "SELECT country FROM airlines WHERE name LIKE 'Orbit%'", "query_toks": [ "SELECT", "country", "FROM", "airlines", "WHERE", "name", "LIKE", "'Orbit", "%", "'" ], "query_toks_no_value": [ "select", "country", "from", "airlines", "where", "name", "like", "value" ], "question": "Find the country of the airlines whose name starts with 'Orbit'.", "question_toks": [ "find", "country", "of", "airline", "whose", "name", "start", "with", "'", "orbit", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 19, false ], null ], "\"Orbit%\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "country", "of", "the", "airlines", "whose", "name", "starts", "with", "'Orbit", "'", "." ], "question_arg": [ [ "find" ], [ "country" ], [ "of" ], [ "airline" ], [ "whose" ], [ "name" ], [ "start" ], [ "with" ], [ "'" ], [ "orbit" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "country", "NN" ], [ "of", "IN" ], [ "airline", "NN" ], [ "whose", "WP$" ], [ "name", "JJ" ], [ "start", "NN" ], [ "with", "IN" ], [ "'", "''" ], [ "orbit", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "S-AIRLINES", "TAME", "AIRLINK", "Tame", "Airlink", "TRILINES", "Nome", "COUNTY", "NAM", "NAE", "AME", "AIRLIN", "SAME", "FAIRLINE", "ADLINES", "NME", "DARLINES", "Orbit", "Airailes", "Fairlines", "Coventry", "AIRWINGS" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(9) A(0) C(10) T(2) V(17)" }, { "db_id": "flight_4", "query": "SELECT country FROM airlines WHERE name LIKE 'Orbit%'", "query_toks": [ "SELECT", "country", "FROM", "airlines", "WHERE", "name", "LIKE", "'Orbit", "%", "'" ], "query_toks_no_value": [ "select", "country", "from", "airlines", "where", "name", "like", "value" ], "question": "What are the countries of all airlines whose names start with Orbit?", "question_toks": [ "what", "are", "country", "of", "all", "airline", "whose", "name", "start", "with", "orbit", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 19, false ], null ], "\"Orbit%\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "countries", "of", "all", "airlines", "whose", "names", "start", "with", "Orbit", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "country" ], [ "of" ], [ "all" ], [ "airline" ], [ "whose" ], [ "name" ], [ "start" ], [ "with" ], [ "orbit" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "airline", "NN" ], [ "whose", "WP$" ], [ "name", "JJ" ], [ "start", "NN" ], [ "with", "IN" ], [ "orbit", "NN" ], [ "?", "." ] ], "values": [ "Namest", "Fairlines", "ORBI", "AIRWINGS", "AIRLIN", "TRILINES", "DARLINES", "Airailes", "Orbit", "S-AIRLINES", "Nimes", "FAIRLINE", "Airlink", "ADLINES", "AIRLINK" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(9) A(0) C(10) T(2) V(8)" }, { "db_id": "flight_4", "query": "SELECT name FROM airports WHERE elevation BETWEEN -50 AND 50", "query_toks": [ "SELECT", "name", "FROM", "airports", "WHERE", "elevation", "BETWEEN", "-50", "AND", "50" ], "query_toks_no_value": [ "select", "name", "from", "airports", "where", "elevation", "between", "value", "and", "value" ], "question": "Find the name of airports whose altitude is between -50 and 50.", "question_toks": [ "find", "name", "of", "airport", "whose", "altitude", "is", "between", "-50", "and", "50", "." ], "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, 15, false ], null ], -50.0, 50.0 ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "airports", "whose", "altitude", "is", "between", "-50", "and", "50", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "airport" ], [ "whose" ], [ "altitude" ], [ "is" ], [ "between" ], [ "-50" ], [ "and" ], [ "50" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "whose", "WP$" ], [ "altitude", "NN" ], [ "is", "VBZ" ], [ "between", "IN" ], [ "-50", "NNP" ], [ "and", "CC" ], [ "50", "CD" ], [ ".", "." ] ], "values": [ "50", "Nome", "Airnorth", "SAME", "NAM", "NAE", "-50", "NME", "TAME", "Tame", "AME" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(8) A(0) C(15) T(1) V(6) V(0)" }, { "db_id": "flight_4", "query": "SELECT name FROM airports WHERE elevation BETWEEN -50 AND 50", "query_toks": [ "SELECT", "name", "FROM", "airports", "WHERE", "elevation", "BETWEEN", "-50", "AND", "50" ], "query_toks_no_value": [ "select", "name", "from", "airports", "where", "elevation", "between", "value", "and", "value" ], "question": "What are the names of all airports whose elevation is between -50 and 50?", "question_toks": [ "what", "are", "name", "of", "all", "airport", "whose", "elevation", "is", "between", "-50", "and", "50", "?" ], "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, 15, false ], null ], -50.0, 50.0 ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "airports", "whose", "elevation", "is", "between", "-50", "and", "50", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "airport" ], [ "whose" ], [ "elevation" ], [ "is" ], [ "between" ], [ "-50" ], [ "and" ], [ "50" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "airport", "NN" ], [ "whose", "WP$" ], [ "elevation", "NN" ], [ "is", "VBZ" ], [ "between", "IN" ], [ "-50", "NNP" ], [ "and", "CC" ], [ "50", "CD" ], [ "?", "." ] ], "values": [ "50", "Namest", "Airnorth", "-50", "Nimes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(8) A(0) C(15) T(1) V(3) V(0)" }, { "db_id": "flight_4", "query": "SELECT country FROM airports ORDER BY elevation DESC LIMIT 1", "query_toks": [ "SELECT", "country", "FROM", "airports", "ORDER", "BY", "elevation", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "country", "from", "airports", "order", "by", "elevation", "desc", "limit", "value" ], "question": "Which country is the airport that has the highest altitude located in?", "question_toks": [ "which", "country", "is", "airport", "that", "ha", "highest", "altitude", "located", "in", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Which", "country", "is", "the", "airport", "that", "has", "the", "highest", "altitude", "located", "in", "?" ], "question_arg": [ [ "which" ], [ "country" ], [ "is" ], [ "airport" ], [ "that" ], [ "ha" ], [ "highest" ], [ "altitude" ], [ "located" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "is", "VBZ" ], [ "airport", "JJ" ], [ "that", "IN" ], [ "ha", "NN" ], [ "highest", "JJS" ], [ "altitude", "NN" ], [ "located", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "COUNTY", "Coventry", "AIR SPORT", "Airnorth", "Air Sport" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(12) T(1) Sup(0) A(0) C(15) T(1)" }, { "db_id": "flight_4", "query": "SELECT country FROM airports ORDER BY elevation DESC LIMIT 1", "query_toks": [ "SELECT", "country", "FROM", "airports", "ORDER", "BY", "elevation", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "country", "from", "airports", "order", "by", "elevation", "desc", "limit", "value" ], "question": "What is the country of the airport with the highest elevation?", "question_toks": [ "what", "is", "country", "of", "airport", "with", "highest", "elevation", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "country", "of", "the", "airport", "with", "the", "highest", "elevation", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "country" ], [ "of" ], [ "airport" ], [ "with" ], [ "highest" ], [ "elevation" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "country", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "elevation", "NN" ], [ "?", "." ] ], "values": [ "COUNTY", "Air Sport", "Airnorth", "Coventry", "AIR SPORT" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(12) T(1) Sup(0) A(0) C(15) T(1)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM airports WHERE name LIKE '%International%'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "airports", "WHERE", "name", "LIKE", "'", "%", "International", "%", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airports", "where", "name", "like", "value" ], "question": "Find the number of airports whose name contain the word 'International'.", "question_toks": [ "find", "number", "of", "airport", "whose", "name", "contain", "word", "'", "international", "'", "." ], "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, 10, false ], null ], "\"%International%\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "airports", "whose", "name", "contain", "the", "word", "'International", "'", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "airport" ], [ "whose" ], [ "name" ], [ "contain" ], [ "word" ], [ "'" ], [ "international" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contain", "NN" ], [ "word", "NN" ], [ "'", "''" ], [ "international", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "WORLD", "NAE", "Nome", "NAM", "TAME", "KORD", "SAME", "NME", "ORD", "FORD", "AME", "Tame", "Airnorth", "INTERNACIONAL", "International" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(9) A(0) C(10) T(1) V(14)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM airports WHERE name LIKE '%International%'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "airports", "WHERE", "name", "LIKE", "'", "%", "International", "%", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airports", "where", "name", "like", "value" ], "question": "How many airports' names have the word Interanation in them?", "question_toks": [ "how", "many", "airport", "'", "name", "have", "word", "interanation", "in", "them", "?" ], "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, 10, false ], null ], "\"%International%\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "airports", "'", "names", "have", "the", "word", "Interanation", "in", "them", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "airport" ], [ "'" ], [ "name" ], [ "have" ], [ "word" ], [ "interanation" ], [ "in" ], [ "them" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "airport", "NN" ], [ "'", "POS" ], [ "name", "NN" ], [ "have", "VBP" ], [ "word", "NN" ], [ "interanation", "NN" ], [ "in", "IN" ], [ "them", "PRP" ], [ "?", "." ] ], "values": [ "Airnorth", "Nimes", "Namest", "International" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(9) A(0) C(10) T(1) V(3)" }, { "db_id": "flight_4", "query": "SELECT count(DISTINCT city) FROM airports WHERE country = 'Greenland'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "city", ")", "FROM", "airports", "WHERE", "country", "=", "'Greenland", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "city", ")", "from", "airports", "where", "country", "=", "value" ], "question": "How many different cities do have some airport in the country of Greenland?", "question_toks": [ "how", "many", "different", "city", "do", "have", "some", "airport", "in", "country", "of", "greenland", "?" ], "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": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Greenland\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "different", "cities", "do", "have", "some", "airport", "in", "the", "country", "of", "Greenland", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "city" ], [ "do" ], [ "have" ], [ "some" ], [ "airport" ], [ "in" ], [ "country" ], [ "of" ], [ "greenland" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "city", "NN" ], [ "do", "VBP" ], [ "have", "VB" ], [ "some", "DT" ], [ "airport", "NN" ], [ "in", "IN" ], [ "country", "NN" ], [ "of", "IN" ], [ "greenland", "NN" ], [ "?", "." ] ], "values": [ "Air Sport", "Greenland", "GREENLAND", "Airnorth", "COUNTY", "Coventry", "AIR SPORT" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(11) T(1) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "flight_4", "query": "SELECT count(DISTINCT city) FROM airports WHERE country = 'Greenland'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "city", ")", "FROM", "airports", "WHERE", "country", "=", "'Greenland", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "city", ")", "from", "airports", "where", "country", "=", "value" ], "question": "In how many cities are there airports in the country of Greenland?", "question_toks": [ "in", "how", "many", "city", "are", "there", "airport", "in", "country", "of", "greenland", "?" ], "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": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Greenland\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "In", "how", "many", "cities", "are", "there", "airports", "in", "the", "country", "of", "Greenland", "?" ], "question_arg": [ [ "in" ], [ "how" ], [ "many" ], [ "city" ], [ "are" ], [ "there" ], [ "airport" ], [ "in" ], [ "country" ], [ "of" ], [ "greenland" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "city", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "airport", "RB" ], [ "in", "IN" ], [ "country", "NN" ], [ "of", "IN" ], [ "greenland", "NN" ], [ "?", "." ] ], "values": [ "COUNTY", "Greenland", "GREENLAND", "Airnorth", "Coventry" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(11) T(1) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "WHERE", "T1.name", "=", "'American", "Airlines", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "where", "t1", ".", "name", "=", "value" ], "question": "Find the number of routes operated by American Airlines.", "question_toks": [ "find", "number", "of", "route", "operated", "by", "american", "airline", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 6, 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, 19, false ], null ], "\"American Airlines\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "routes", "operated", "by", "American", "Airlines", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "route" ], [ "operated" ], [ "by" ], [ "american" ], [ "airline" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "operated", "VBN" ], [ "by", "IN" ], [ "american", "JJ" ], [ "airline", "NN" ], [ ".", "." ] ], "values": [ "Americana", "Airailes", "Airlink", "African Airlines", "TRILINES", "S-AIRLINES", "Meridian Airlines", "Africa Airlines", "ADLINES", "FAIRLINE", "Armenian Airlines", "AFRICAN AIRLINES", "AIRWINGS", "AIRLIN", "AIRLINK", "AMERICAN", "American Airlines", "Fairlines", "DARLINES", "Americus", "Domenican Airlines", "Aserca Airlines" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(10) T(2) V(16)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "WHERE", "T1.name", "=", "'American", "Airlines", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "where", "t1", ".", "name", "=", "value" ], "question": "How many routes does American Airlines operate?", "question_toks": [ "how", "many", "route", "doe", "american", "airline", "operate", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 6, 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, 19, false ], null ], "\"American Airlines\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "routes", "does", "American", "Airlines", "operate", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "route" ], [ "doe" ], [ "american" ], [ "airline" ], [ "operate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "route", "NN" ], [ "doe", "JJ" ], [ "american", "JJ" ], [ "airline", "NN" ], [ "operate", "NN" ], [ "?", "." ] ], "values": [ "ADLINES", "AIRWINGS", "Aserca Airlines", "AIRLIN", "Airailes", "African Airlines", "Fairlines", "AMERICAN", "Domenican Airlines", "Americus", "AFRICAN AIRLINES", "FAIRLINE", "Airlink", "TRILINES", "Africa Airlines", "DARLINES", "Armenian Airlines", "Americana", "American Airlines", "S-AIRLINES", "AIRLINK", "Meridian Airlines" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(10) T(2) V(18)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE country = 'Canada'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "WHERE", "country", "=", "'Canada", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "where", "country", "=", "value" ], "question": "Find the number of routes whose destination airports are in Canada.", "question_toks": [ "find", "number", "of", "route", "whose", "destination", "airport", "are", "in", "canada", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, 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, 12, false ], null ], "\"Canada\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "routes", "whose", "destination", "airports", "are", "in", "Canada", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "route" ], [ "whose" ], [ "destination", "airport" ], [ "are" ], [ "in" ], [ "canada" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "whose", "WP$" ], [ "destination", "NN" ], [ "airport", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "canada", "NN" ], [ ".", "." ] ], "values": [ "Airnorth", "Canada" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE country = 'Canada'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "WHERE", "country", "=", "'Canada", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "where", "country", "=", "value" ], "question": "How many routes end in a Canadian airport?", "question_toks": [ "how", "many", "route", "end", "in", "a", "canadian", "airport", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, 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, 12, false ], null ], "\"Canada\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "routes", "end", "in", "a", "Canadian", "airport", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "route" ], [ "end" ], [ "in" ], [ "a" ], [ "canadian" ], [ "airport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "route", "JJ" ], [ "end", "NN" ], [ "in", "IN" ], [ "a", "DT" ], [ "canadian", "JJ" ], [ "airport", "NN" ], [ "?", "." ] ], "values": [ "Canadian", "CANADIAN", "AIR SPORT", "Airnorth", "Air Sport", "Canada" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(12) T(1) V(5)" }, { "db_id": "flight_4", "query": "SELECT name , city , country FROM airports ORDER BY elevation LIMIT 1", "query_toks": [ "SELECT", "name", ",", "city", ",", "country", "FROM", "airports", "ORDER", "BY", "elevation", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "city", ",", "country", "from", "airports", "order", "by", "elevation", "limit", "value" ], "question": "Find the name, city, and country of the airport that has the lowest altitude.", "question_toks": [ "find", "name", ",", "city", ",", "and", "country", "of", "airport", "that", "ha", "lowest", "altitude", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", ",", "city", ",", "and", "country", "of", "the", "airport", "that", "has", "the", "lowest", "altitude", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "," ], [ "city" ], [ "," ], [ "and" ], [ "country" ], [ "of" ], [ "airport" ], [ "that" ], [ "ha" ], [ "lowest" ], [ "altitude" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "city", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "country", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "lowest", "JJS" ], [ "altitude", "NN" ], [ ".", "." ] ], "values": [ "Air Sport", "CIT", "PITY", "Nome", "Airnorth", "SAME", "CITY", "NAE", "CIY", "NAM", "NME", "TAME", "Tame", "COUNTY", "CTY", "Coventry", "AIR SPORT", "AME" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(10) T(1) A(0) C(11) T(1) A(0) C(12) T(1) Sup(1) A(0) C(15) T(1)" }, { "db_id": "flight_4", "query": "SELECT name , city , country FROM airports ORDER BY elevation LIMIT 1", "query_toks": [ "SELECT", "name", ",", "city", ",", "country", "FROM", "airports", "ORDER", "BY", "elevation", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "city", ",", "country", "from", "airports", "order", "by", "elevation", "limit", "value" ], "question": "What is the name, city, and country of the airport with the lowest altitude?", "question_toks": [ "what", "is", "name", ",", "city", ",", "and", "country", "of", "airport", "with", "lowest", "altitude", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", ",", "city", ",", "and", "country", "of", "the", "airport", "with", "the", "lowest", "altitude", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "," ], [ "city" ], [ "," ], [ "and" ], [ "country" ], [ "of" ], [ "airport" ], [ "with" ], [ "lowest" ], [ "altitude" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "JJ" ], [ ",", "," ], [ "city", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "country", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "with", "IN" ], [ "lowest", "JJS" ], [ "altitude", "NN" ], [ "?", "." ] ], "values": [ "Nome", "COUNTY", "TAME", "CTY", "Air Sport", "NME", "CIT", "NAM", "NAE", "CITY", "PITY", "Airnorth", "CIY", "SAME", "Tame", "Coventry", "AME", "AIR SPORT" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(10) T(1) A(0) C(11) T(1) A(0) C(12) T(1) Sup(1) A(0) C(15) T(1)" }, { "db_id": "flight_4", "query": "SELECT name , city , country FROM airports ORDER BY elevation DESC LIMIT 1", "query_toks": [ "SELECT", "name", ",", "city", ",", "country", "FROM", "airports", "ORDER", "BY", "elevation", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "city", ",", "country", "from", "airports", "order", "by", "elevation", "desc", "limit", "value" ], "question": "Find the name, city, and country of the airport that has the highest latitude.", "question_toks": [ "find", "name", ",", "city", ",", "and", "country", "of", "airport", "that", "ha", "highest", "latitude", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", ",", "city", ",", "and", "country", "of", "the", "airport", "that", "has", "the", "highest", "latitude", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "," ], [ "city" ], [ "," ], [ "and" ], [ "country" ], [ "of" ], [ "airport" ], [ "that" ], [ "ha" ], [ "highest" ], [ "latitude" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "city", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "country", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "highest", "JJS" ], [ "latitude", "NN" ], [ ".", "." ] ], "values": [ "Tame", "TAME", "Airnorth", "SAME", "Nome", "PITY", "CITY", "Air Sport", "CTY", "COUNTY", "AIR SPORT", "CIY", "NAE", "NME", "NAM", "Coventry", "CIT", "AME" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(10) T(1) A(0) C(11) T(1) A(0) C(12) T(1) Sup(0) A(0) C(15) T(1)" }, { "db_id": "flight_4", "query": "SELECT name , city , country FROM airports ORDER BY elevation DESC LIMIT 1", "query_toks": [ "SELECT", "name", ",", "city", ",", "country", "FROM", "airports", "ORDER", "BY", "elevation", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "city", ",", "country", "from", "airports", "order", "by", "elevation", "desc", "limit", "value" ], "question": "What is the name, city, and country of the airport with the highest elevation?", "question_toks": [ "what", "is", "name", ",", "city", ",", "and", "country", "of", "airport", "with", "highest", "elevation", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", ",", "city", ",", "and", "country", "of", "the", "airport", "with", "the", "highest", "elevation", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "," ], [ "city" ], [ "," ], [ "and" ], [ "country" ], [ "of" ], [ "airport" ], [ "with" ], [ "highest" ], [ "elevation" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "JJ" ], [ ",", "," ], [ "city", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "country", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "elevation", "NN" ], [ "?", "." ] ], "values": [ "SAME", "NAM", "Air Sport", "Airnorth", "CTY", "AIR SPORT", "COUNTY", "Tame", "CIY", "CIT", "CITY", "PITY", "AME", "NME", "TAME", "Coventry", "Nome", "NAE" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(10) T(1) A(0) C(11) T(1) A(0) C(12) T(1) Sup(0) A(0) C(15) T(1)" }, { "db_id": "flight_4", "query": "SELECT T1.name , T1.city , T2.dst_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid GROUP BY T2.dst_apid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", ",", "T1.city", ",", "T2.dst_apid", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "GROUP", "BY", "T2.dst_apid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "city", ",", "t2", ".", "dst_apid", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "group", "by", "t2", ".", "dst_apid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name and city of the airport which is the destination of the most number of routes.", "question_toks": [ "find", "name", "and", "city", "of", "airport", "which", "is", "destination", "of", "most", "number", "of", "route", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "city", "of", "the", "airport", "which", "is", "the", "destination", "of", "the", "most", "number", "of", "routes", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "city" ], [ "of" ], [ "airport" ], [ "which" ], [ "is" ], [ "destination" ], [ "of" ], [ "most" ], [ "number" ], [ "of" ], [ "route" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "city", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "which", "WDT" ], [ "is", "VBZ" ], [ "destination", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ ".", "." ] ], "values": [ "CITY", "NME", "TAME", "SAME", "CIT", "PITY", "CTY", "Nome", "CIY", "NAM", "NAE", "Tame", "AME" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(10) T(1) A(0) C(11) T(1) A(0) C(2) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "flight_4", "query": "SELECT T1.name , T1.city , T2.dst_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid GROUP BY T2.dst_apid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", ",", "T1.city", ",", "T2.dst_apid", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "GROUP", "BY", "T2.dst_apid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "city", ",", "t2", ".", "dst_apid", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "group", "by", "t2", ".", "dst_apid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name and city of the airport that the most routes end at?", "question_toks": [ "what", "is", "name", "and", "city", "of", "airport", "that", "most", "route", "end", "at", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "city", "of", "the", "airport", "that", "the", "most", "routes", "end", "at", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "city" ], [ "of" ], [ "airport" ], [ "that" ], [ "most" ], [ "route" ], [ "end" ], [ "at" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "JJ" ], [ "and", "CC" ], [ "city", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "that", "IN" ], [ "most", "JJS" ], [ "route", "JJ" ], [ "end", "NN" ], [ "at", "IN" ], [ "?", "." ] ], "values": [ "NAE", "Nome", "NAM", "CITY", "TAME", "SAME", "CIT", "CTY", "NME", "AME", "Tame", "PITY", "AIR SPORT", "Air Sport", "Airnorth", "CIY" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(10) T(1) A(0) C(11) T(1) A(0) C(2) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "flight_4", "query": "SELECT T1.name , T2.alid FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T2.alid ORDER BY count(*) DESC LIMIT 10", "query_toks": [ "SELECT", "T1.name", ",", "T2.alid", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "GROUP", "BY", "T2.alid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "10" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "alid", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "group", "by", "t2", ".", "alid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the names of the top 10 airlines that operate the most number of routes.", "question_toks": [ "find", "name", "of", "top", "10", "airline", "that", "operate", "most", "number", "of", "route", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": 10, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "top", "10", "airlines", "that", "operate", "the", "most", "number", "of", "routes", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "top" ], [ "10" ], [ "airline" ], [ "that" ], [ "operate" ], [ "most" ], [ "number" ], [ "of" ], [ "route" ], [ "." ] ], "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" ], [ "10", "CD" ], [ "airline", "NN" ], [ "that", "WDT" ], [ "operate", "VBP" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ ".", "." ] ], "values": [ "S-AIRLINES", "AIRLINK", "ADLINES", "AIRLIN", "FAIRLINE", "Airlink", "DARLINES", "10", "Nimes", "AIRWINGS", "Fairlines", "TRILINES", "Namest", "Airailes" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(10) T(2) A(0) C(6) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "flight_4", "query": "SELECT T1.name , T2.alid FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T2.alid ORDER BY count(*) DESC LIMIT 10", "query_toks": [ "SELECT", "T1.name", ",", "T2.alid", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "GROUP", "BY", "T2.alid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "10" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "alid", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "group", "by", "t2", ".", "alid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "For the airline ids with the top 10 most routes operated, what are their names?", "question_toks": [ "for", "airline", "id", "with", "top", "10", "most", "route", "operated", ",", "what", "are", "their", "name", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": 10, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "For", "the", "airline", "ids", "with", "the", "top", "10", "most", "routes", "operated", ",", "what", "are", "their", "names", "?" ], "question_arg": [ [ "for" ], [ "airline", "id" ], [ "with" ], [ "top" ], [ "10" ], [ "most" ], [ "route" ], [ "operated" ], [ "," ], [ "what" ], [ "are" ], [ "their" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "airline", "NN" ], [ "id", "NN" ], [ "with", "IN" ], [ "top", "JJ" ], [ "10", "CD" ], [ "most", "JJS" ], [ "route", "NN" ], [ "operated", "VBD" ], [ ",", "," ], [ "what", "WP" ], [ "are", "VBP" ], [ "their", "PRP$" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "FAIRLINE", "WIDS", "Namest", "IDS", "AIRLINK", "AFRALINE", "10", "AIRLIN", "AEROLINE", "Nimes", "Fairlines", "Airlink" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(10) T(2) A(0) C(6) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "flight_4", "query": "SELECT T1.name , T1.city , T2.src_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T2.src_apid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", ",", "T1.city", ",", "T2.src_apid", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.src_apid", "GROUP", "BY", "T2.src_apid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "city", ",", "t2", ".", "src_apid", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "src_apid", "group", "by", "t2", ".", "src_apid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name and city of the airport which is the source for the most number of flight routes.", "question_toks": [ "find", "name", "and", "city", "of", "airport", "which", "is", "source", "for", "most", "number", "of", "flight", "route", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "city", "of", "the", "airport", "which", "is", "the", "source", "for", "the", "most", "number", "of", "flight", "routes", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "city" ], [ "of" ], [ "airport" ], [ "which" ], [ "is" ], [ "source" ], [ "for" ], [ "most" ], [ "number" ], [ "of" ], [ "flight" ], [ "route" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "city", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "which", "WDT" ], [ "is", "VBZ" ], [ "source", "NN" ], [ "for", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "route", "NN" ], [ ".", "." ] ], "values": [ "Tame", "TAME", "Airnorth", "SAME", "Nome", "PITY", "CITY", "Air Sport", "CTY", "AIR SPORT", "CIY", "NAE", "NME", "AMFLIGHT", "Soure", "NAM", "CIT", "AME" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(10) T(1) A(0) C(11) T(1) A(0) C(4) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "flight_4", "query": "SELECT T1.name , T1.city , T2.src_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T2.src_apid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", ",", "T1.city", ",", "T2.src_apid", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.src_apid", "GROUP", "BY", "T2.src_apid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "city", ",", "t2", ".", "src_apid", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "src_apid", "group", "by", "t2", ".", "src_apid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name and city of the airport from most of the routes start?", "question_toks": [ "what", "is", "name", "and", "city", "of", "airport", "from", "most", "of", "route", "start", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "city", "of", "the", "airport", "from", "most", "of", "the", "routes", "start", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "city" ], [ "of" ], [ "airport" ], [ "from" ], [ "most" ], [ "of" ], [ "route" ], [ "start" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "JJ" ], [ "and", "CC" ], [ "city", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "from", "IN" ], [ "most", "JJS" ], [ "of", "IN" ], [ "route", "JJ" ], [ "start", "NN" ], [ "?", "." ] ], "values": [ "CIT", "NME", "MOS", "SAME", "Tame", "Airnorth", "AIR SPORT", "CITY", "MRST", "AME", "CIY", "NAM", "MOT", "Air Sport", "CTY", "MDST", "MST", "PITY", "OST", "TAME", "Nome", "NAE" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(10) T(1) A(0) C(11) T(1) A(0) C(4) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "flight_4", "query": "SELECT count(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dst_apid", ")", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "WHERE", "T1.name", "=", "'American", "Airlines", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dst_apid", ")", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "where", "t1", ".", "name", "=", "value" ], "question": "Find the number of different airports which are the destinations of the American Airlines.", "question_toks": [ "find", "number", "of", "different", "airport", "which", "are", "destination", "of", "american", "airline", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 2, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"American Airlines\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "different", "airports", "which", "are", "the", "destinations", "of", "the", "American", "Airlines", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "different" ], [ "airport" ], [ "which" ], [ "are" ], [ "destination" ], [ "of" ], [ "american" ], [ "airline" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "airport", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "destination", "NN" ], [ "of", "IN" ], [ "american", "JJ" ], [ "airline", "NN" ], [ ".", "." ] ], "values": [ "AIRLINK", "DARLINES", "FAIRLINE", "AMERICAN", "Armenian Airlines", "AIRLIN", "Meridian Airlines", "Americana", "Americus", "ADLINES", "AIRWINGS", "TRILINES", "Domenican Airlines", "American Airlines", "AFRICAN AIRLINES", "Fairlines", "S-AIRLINES", "Aserca Airlines", "Africa Airlines", "African Airlines", "Airailes", "Airlink" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(2) T(0) Filter(2) A(0) C(10) T(2) V(13)" }, { "db_id": "flight_4", "query": "SELECT count(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dst_apid", ")", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "WHERE", "T1.name", "=", "'American", "Airlines", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dst_apid", ")", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "where", "t1", ".", "name", "=", "value" ], "question": "What is the number of different different airports that are destinations for American Airlines?", "question_toks": [ "what", "is", "number", "of", "different", "different", "airport", "that", "are", "destination", "for", "american", "airline", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 2, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"American Airlines\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "different", "different", "airports", "that", "are", "destinations", "for", "American", "Airlines", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "different" ], [ "different" ], [ "airport" ], [ "that" ], [ "are" ], [ "destination" ], [ "for" ], [ "american" ], [ "airline" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "different", "JJ" ], [ "airport", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "destination", "NN" ], [ "for", "IN" ], [ "american", "JJ" ], [ "airline", "NN" ], [ "?", "." ] ], "values": [ "African Airlines", "AIRWINGS", "FAIRLINE", "Airlink", "DARLINES", "AMERICAN", "S-AIRLINES", "AIRLINK", "Fairlines", "AFRICAN AIRLINES", "Americus", "Aserca Airlines", "Africa Airlines", "Meridian Airlines", "ADLINES", "AIRLIN", "TRILINES", "Domenican Airlines", "Airailes", "Armenian Airlines", "American Airlines", "Americana" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(2) T(0) Filter(2) A(0) C(10) T(2) V(20)" }, { "db_id": "flight_4", "query": "SELECT country FROM airlines GROUP BY country ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "country", "FROM", "airlines", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "country", "from", "airlines", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which countries has the most number of airlines?", "question_toks": [ "which", "country", "ha", "most", "number", "of", "airline", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Which", "countries", "has", "the", "most", "number", "of", "airlines", "?" ], "question_arg": [ [ "which" ], [ "country" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "airline" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "airline", "NN" ], [ "?", "." ] ], "values": [ "S-AIRLINES", "AIRLINK", "ADLINES", "AIRLIN", "FAIRLINE", "Airlink", "DARLINES", "AIRWINGS", "Fairlines", "TRILINES", "Airailes" ], "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": "flight_4", "query": "SELECT country FROM airlines GROUP BY country ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "country", "FROM", "airlines", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "country", "from", "airlines", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the country with the most number of home airlines?", "question_toks": [ "what", "is", "name", "of", "country", "with", "most", "number", "of", "home", "airline", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "country", "with", "the", "most", "number", "of", "home", "airlines", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "country" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "home" ], [ "airline" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "home", "NN" ], [ "airline", "NN" ], [ "?", "." ] ], "values": [ "JMC Airlines", "AMC Airlines", "S-AIRLINES", "TMC Airlines", "Pace Airlines", "HOM", "Comores Airlines", "Hub Airlines", "Hebei Airlines", "HC Airlines", "AIRLINK", "LCM AIRLINES", "Rome", "OME", "BLUE AIRLINES", "Blue Airlines", "Tame", "Bhoja Airlines", "Comet Airlines", "Airlink", "COUNTY", "CCML Airlines", "Hermes Airlines", "Fairlines", "NAM", "Tomp Airlines", "LSM Airlines", "GoJet Airlines", "HME", "Copa Airlines", "TOJ Airlines", "SMA Airlines", "Fine Airlines", "AIRLIN", "Homer", "Sama Airlines", "FAIRLINE", "Eos Airlines", "NME", "Hola Airlines", "Gomel Airlines", "UM Airlines", "Zoom Airlines", "VLM Airlines", "VIM Airlines", "Coventry" ], "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": "flight_4", "query": "SELECT country FROM airlines WHERE active = 'Y' GROUP BY country ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "country", "FROM", "airlines", "WHERE", "active", "=", "'Y", "'", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "country", "from", "airlines", "where", "active", "=", "value", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which countries has the most number of airlines whose active status is 'Y'?", "question_toks": [ "which", "country", "ha", "most", "number", "of", "airline", "whose", "active", "status", "is", "'y", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Y\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Which", "countries", "has", "the", "most", "number", "of", "airlines", "whose", "active", "status", "is", "'Y", "'", "?" ], "question_arg": [ [ "which" ], [ "country" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "airline" ], [ "whose" ], [ "active" ], [ "status" ], [ "is" ], [ "'y" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "airline", "NN" ], [ "whose", "WP$" ], [ "active", "JJ" ], [ "status", "NN" ], [ "is", "VBZ" ], [ "'y", "VBN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "ADLINES", "FAIRLINE", "Fairlines", "DARLINES", "Airailes", "Y", "TRILINES", "STATES", "AIRLIN", "AIRWINGS", "S-AIRLINES", "AIRLINK", "Airlink" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(12) T(2) Sup(0) A(3) C(0) T(2) Filter(2) A(0) C(19) T(2) V(5)" }, { "db_id": "flight_4", "query": "SELECT country FROM airlines WHERE active = 'Y' GROUP BY country ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "country", "FROM", "airlines", "WHERE", "active", "=", "'Y", "'", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "country", "from", "airlines", "where", "active", "=", "value", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the countries with the most airlines whose active status is Y?", "question_toks": [ "what", "are", "country", "with", "most", "airline", "whose", "active", "status", "is", "y", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Y\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "countries", "with", "the", "most", "airlines", "whose", "active", "status", "is", "Y", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "country" ], [ "with" ], [ "most" ], [ "airline" ], [ "whose" ], [ "active" ], [ "status" ], [ "is" ], [ "y" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "airline", "NN" ], [ "whose", "WP$" ], [ "active", "JJ" ], [ "status", "NN" ], [ "is", "VBZ" ], [ "y", "RB" ], [ "?", "." ] ], "values": [ "STATES", "ADLINES", "AIRWINGS", "TRILINES", "AIRLINK", "AIRLIN", "Airailes", "DARLINES", "Fairlines", "FAIRLINE", "S-AIRLINES", "Airlink", "Y" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(12) T(2) Sup(0) A(3) C(0) T(2) Filter(2) A(0) C(19) T(2) V(12)" }, { "db_id": "flight_4", "query": "SELECT country , count(*) FROM airlines GROUP BY country ORDER BY count(*) DESC", "query_toks": [ "SELECT", "country", ",", "count", "(", "*", ")", "FROM", "airlines", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "country", ",", "count", "(", "*", ")", "from", "airlines", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc" ], "question": "List all countries and their number of airlines in the descending order of number of airlines.", "question_toks": [ "list", "all", "country", "and", "their", "number", "of", "airline", "in", "descending", "order", "of", "number", "of", "airline", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "List", "all", "countries", "and", "their", "number", "of", "airlines", "in", "the", "descending", "order", "of", "number", "of", "airlines", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "country" ], [ "and" ], [ "their" ], [ "number" ], [ "of" ], [ "airline" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "number" ], [ "of" ], [ "airline" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "country", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "number", "NN" ], [ "of", "IN" ], [ "airline", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "airline", "NN" ], [ ".", "." ] ], "values": [ "S-AIRLINES", "AIRLINK", "ADLINES", "AIRLIN", "FAIRLINE", "Airlink", "DARLINES", "ORER", "AIRWINGS", "Fairlines", "TRILINES", "Airailes" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(12) T(2) A(3) C(0) T(2) Order(0) A(3) C(0) T(2)" }, { "db_id": "flight_4", "query": "SELECT country , count(*) FROM airlines GROUP BY country ORDER BY count(*) DESC", "query_toks": [ "SELECT", "country", ",", "count", "(", "*", ")", "FROM", "airlines", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "country", ",", "count", "(", "*", ")", "from", "airlines", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc" ], "question": "How many airlines operate out of each country in descending order?", "question_toks": [ "how", "many", "airline", "operate", "out", "of", "each", "country", "in", "descending", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "airlines", "operate", "out", "of", "each", "country", "in", "descending", "order", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "airline" ], [ "operate" ], [ "out" ], [ "of" ], [ "each" ], [ "country" ], [ "in" ], [ "descending" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "airline", "NN" ], [ "operate", "VBP" ], [ "out", "IN" ], [ "of", "IN" ], [ "each", "DT" ], [ "country", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "?", "." ] ], "values": [ "AIRLIN", "DARLINES", "Fairlines", "ADLINES", "COUNTY", "S-AIRLINES", "AIRLINK", "AIRWINGS", "ORER", "Airailes", "FAIRLINE", "Coventry", "Airlink", "TRILINES" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(12) T(2) A(3) C(0) T(2) Order(0) A(3) C(0) T(2)" }, { "db_id": "flight_4", "query": "SELECT count(*) , country FROM airports GROUP BY country ORDER BY count(*) DESC", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "country", "FROM", "airports", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "country", "from", "airports", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc" ], "question": "How many airports are there per country? Order the countries by decreasing number of airports.", "question_toks": [ "how", "many", "airport", "are", "there", "per", "country", "?", "order", "country", "by", "decreasing", "number", "of", "airport", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "airports", "are", "there", "per", "country", "?", "Order", "the", "countries", "by", "decreasing", "number", "of", "airports", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "airport" ], [ "are" ], [ "there" ], [ "per" ], [ "country" ], [ "?" ], [ "order" ], [ "country" ], [ "by" ], [ "decreasing" ], [ "number" ], [ "of" ], [ "airport" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "airport", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "per", "IN" ], [ "country", "NN" ], [ "?", "." ], [ "order", "NN" ], [ "country", "NN" ], [ "by", "IN" ], [ "decreasing", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ ".", "." ] ], "values": [ "ORER", "COUNTY", "Airnorth", "Coventry" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(3) C(0) T(1) A(0) C(12) T(1) Order(0) A(3) C(0) T(1)" }, { "db_id": "flight_4", "query": "SELECT count(*) , country FROM airports GROUP BY country ORDER BY count(*) DESC", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "country", "FROM", "airports", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "country", "from", "airports", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc" ], "question": "What is the number of airports per country, ordered from most to least?", "question_toks": [ "what", "is", "number", "of", "airport", "per", "country", ",", "ordered", "from", "most", "to", "least", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "airports", "per", "country", ",", "ordered", "from", "most", "to", "least", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "airport" ], [ "per" ], [ "country" ], [ "," ], [ "ordered" ], [ "from" ], [ "most" ], [ "to" ], [ "least" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "airport", "JJ" ], [ "per", "IN" ], [ "country", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "from", "IN" ], [ "most", "JJS" ], [ "to", "TO" ], [ "least", "VB" ], [ "?", "." ] ], "values": [ "COUNTY", "Coventry", "LEAS", "LEST", "Airnorth" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(3) C(0) T(1) A(0) C(12) T(1) Order(0) A(3) C(0) T(1)" }, { "db_id": "flight_4", "query": "SELECT count(*) , city FROM airports WHERE country = 'United States' GROUP BY city ORDER BY count(*) DESC", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "city", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", "GROUP", "BY", "city", "ORDER", "BY", "count", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "city", "from", "airports", "where", "country", "=", "value", "group", "by", "city", "order", "by", "count", "(", "*", ")", "desc" ], "question": "How many airports are there per city in the United States? Order the cities by decreasing number of airports.", "question_toks": [ "how", "many", "airport", "are", "there", "per", "city", "in", "united", "state", "?", "order", "city", "by", "decreasing", "number", "of", "airport", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"United States\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "airports", "are", "there", "per", "city", "in", "the", "United", "States", "?", "Order", "the", "cities", "by", "decreasing", "number", "of", "airports", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "airport" ], [ "are" ], [ "there" ], [ "per" ], [ "city" ], [ "in" ], [ "united" ], [ "state" ], [ "?" ], [ "order" ], [ "city" ], [ "by" ], [ "decreasing" ], [ "number" ], [ "of" ], [ "airport" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "airport", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "per", "IN" ], [ "city", "NN" ], [ "in", "IN" ], [ "united", "JJ" ], [ "state", "NN" ], [ "?", "." ], [ "order", "NN" ], [ "city", "NN" ], [ "by", "IN" ], [ "decreasing", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ ".", "." ] ], "values": [ "Airnorth", "USA", "United States", "CTY", "STATES", "ORER", "CIY", "CITY", "US", "CIT", "UNITED", "PITY", "WESTATES" ], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(3) C(0) T(1) A(0) C(11) T(1) Filter(2) A(0) C(12) T(1) V(2) Order(0) A(3) C(0) T(1)" }, { "db_id": "flight_4", "query": "SELECT count(*) , city FROM airports WHERE country = 'United States' GROUP BY city ORDER BY count(*) DESC", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "city", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", "GROUP", "BY", "city", "ORDER", "BY", "count", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "city", "from", "airports", "where", "country", "=", "value", "group", "by", "city", "order", "by", "count", "(", "*", ")", "desc" ], "question": "How many airports are there per city in the US ordered from most to least?", "question_toks": [ "how", "many", "airport", "are", "there", "per", "city", "in", "u", "ordered", "from", "most", "to", "least", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"United States\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "airports", "are", "there", "per", "city", "in", "the", "US", "ordered", "from", "most", "to", "least", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "airport" ], [ "are" ], [ "there" ], [ "per" ], [ "city" ], [ "in" ], [ "u" ], [ "ordered" ], [ "from" ], [ "most" ], [ "to" ], [ "least" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "airport", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "per", "IN" ], [ "city", "NN" ], [ "in", "IN" ], [ "u", "JJ" ], [ "ordered", "VBN" ], [ "from", "IN" ], [ "most", "JJS" ], [ "to", "TO" ], [ "least", "VB" ], [ "?", "." ] ], "values": [ "US", "Airnorth", "LEAS", "PITY", "CITY", "USA", "CTY", "CIY", "LEST", "CIT", "United States" ], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(3) C(0) T(1) A(0) C(11) T(1) Filter(2) A(0) C(12) T(1) V(10) Order(0) A(3) C(0) T(1)" }, { "db_id": "flight_4", "query": "SELECT city FROM airports WHERE country = 'United States' GROUP BY city HAVING count(*) > 3", "query_toks": [ "SELECT", "city", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "3" ], "query_toks_no_value": [ "select", "city", "from", "airports", "where", "country", "=", "value", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value" ], "question": "Return the cities with more than 3 airports in the United States.", "question_toks": [ "return", "city", "with", "more", "than", "3", "airport", "in", "united", "state", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"United States\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Return", "the", "cities", "with", "more", "than", "3", "airports", "in", "the", "United", "States", "." ], "question_arg": [ [ "return" ], [ "city" ], [ "with" ], [ "more" ], [ "than" ], [ "3" ], [ "airport" ], [ "in" ], [ "united" ], [ "state" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "city", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "airport", "NN" ], [ "in", "IN" ], [ "united", "JJ" ], [ "state", "NN" ], [ ".", "." ] ], "values": [ "3", "WESTATES", "UNITED", "Airnorth", "United States", "US", "STATES", "USA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(0) Filter(2) A(0) C(12) T(1) V(4) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "flight_4", "query": "SELECT city FROM airports WHERE country = 'United States' GROUP BY city HAVING count(*) > 3", "query_toks": [ "SELECT", "city", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "3" ], "query_toks_no_value": [ "select", "city", "from", "airports", "where", "country", "=", "value", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value" ], "question": "What is the number of cities in the United States with more than 3 airports?", "question_toks": [ "what", "is", "number", "of", "city", "in", "united", "state", "with", "more", "than", "3", "airport", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"United States\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "cities", "in", "the", "United", "States", "with", "more", "than", "3", "airports", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "city" ], [ "in" ], [ "united" ], [ "state" ], [ "with" ], [ "more" ], [ "than" ], [ "3" ], [ "airport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "in", "IN" ], [ "united", "JJ" ], [ "state", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "airport", "NN" ], [ "?", "." ] ], "values": [ "US", "STATES", "USA", "UNITED", "United States", "Airnorth", "3", "WESTATES" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(0) Filter(2) A(0) C(12) T(1) V(4) Filter(5) A(3) C(0) T(1) V(6)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM (SELECT city FROM airports GROUP BY city HAVING count(*) > 3)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "(", "SELECT", "city", "FROM", "airports", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "3", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "(", "select", "city", "from", "airports", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value", ")" ], "question": "How many cities are there that have more than 3 airports?", "question_toks": [ "how", "many", "city", "are", "there", "that", "have", "more", "than", "3", "airport", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "sql", { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] } ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "cities", "are", "there", "that", "have", "more", "than", "3", "airports", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "city" ], [ "are" ], [ "there" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "3" ], [ "airport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "city", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "that", "RB" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "airport", "NN" ], [ "?", "." ] ], "values": [ "Airnorth", "3" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM (SELECT city FROM airports GROUP BY city HAVING count(*) > 3)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "(", "SELECT", "city", "FROM", "airports", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "3", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "(", "select", "city", "from", "airports", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value", ")" ], "question": "What is the count of cities with more than 3 airports?", "question_toks": [ "what", "is", "count", "of", "city", "with", "more", "than", "3", "airport", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "sql", { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] } ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "count", "of", "cities", "with", "more", "than", "3", "airports", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "count" ], [ "of" ], [ "city" ], [ "with" ], [ "more" ], [ "than" ], [ "3" ], [ "airport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "count", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "airport", "NN" ], [ "?", "." ] ], "values": [ "COUNTY", "Airnorth", "3" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "flight_4", "query": "SELECT city , count(*) FROM airports GROUP BY city HAVING count(*) > 1", "query_toks": [ "SELECT", "city", ",", "count", "(", "*", ")", "FROM", "airports", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "city", ",", "count", "(", "*", ")", "from", "airports", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value" ], "question": "List the cities which have more than one airport and number of airports.", "question_toks": [ "list", "city", "which", "have", "more", "than", "one", "airport", "and", "number", "of", "airport", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "List", "the", "cities", "which", "have", "more", "than", "one", "airport", "and", "number", "of", "airports", "." ], "question_arg": [ [ "list" ], [ "city" ], [ "which" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "airport" ], [ "and" ], [ "number" ], [ "of" ], [ "airport" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "city", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "airport", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ ".", "." ] ], "values": [ "1", "Airnorth", "AIR SPORT", "Air Sport" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(11) T(1) A(3) C(0) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "flight_4", "query": "SELECT city , count(*) FROM airports GROUP BY city HAVING count(*) > 1", "query_toks": [ "SELECT", "city", ",", "count", "(", "*", ")", "FROM", "airports", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "city", ",", "count", "(", "*", ")", "from", "airports", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the names of all cities with more than one airport and how many airports do they have?", "question_toks": [ "what", "are", "name", "of", "all", "city", "with", "more", "than", "one", "airport", "and", "how", "many", "airport", "do", "they", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "cities", "with", "more", "than", "one", "airport", "and", "how", "many", "airports", "do", "they", "have", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "city" ], [ "with" ], [ "more" ], [ "than" ], [ "one" ], [ "airport" ], [ "and" ], [ "how" ], [ "many" ], [ "airport" ], [ "do" ], [ "they" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "city", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "airport", "NN" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "airport", "NN" ], [ "do", "VBP" ], [ "they", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "Nimes", "Air Sport", "1", "Airnorth", "Namest", "AIR SPORT" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(11) T(1) A(3) C(0) T(1) Filter(5) A(3) C(0) T(1) V(2)" }, { "db_id": "flight_4", "query": "SELECT city FROM airports GROUP BY city HAVING count(*) > 2 ORDER BY count(*)", "query_toks": [ "SELECT", "city", "FROM", "airports", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "2", "ORDER", "BY", "count", "(", "*", ")" ], "query_toks_no_value": [ "select", "city", "from", "airports", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value", "order", "by", "count", "(", "*", ")" ], "question": "List the cities which have more than 2 airports sorted by the number of airports.", "question_toks": [ "list", "city", "which", "have", "more", "than", "2", "airport", "sorted", "by", "number", "of", "airport", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 3, [ 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": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "List", "the", "cities", "which", "have", "more", "than", "2", "airports", "sorted", "by", "the", "number", "of", "airports", "." ], "question_arg": [ [ "list" ], [ "city" ], [ "which" ], [ "have" ], [ "more" ], [ "than" ], [ "2" ], [ "airport" ], [ "sorted" ], [ "by" ], [ "number" ], [ "of" ], [ "airport" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "city", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "airport", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ ".", "." ] ], "values": [ "2", "Airnorth" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "flight_4", "query": "SELECT city FROM airports GROUP BY city HAVING count(*) > 2 ORDER BY count(*)", "query_toks": [ "SELECT", "city", "FROM", "airports", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "2", "ORDER", "BY", "count", "(", "*", ")" ], "query_toks_no_value": [ "select", "city", "from", "airports", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value", "order", "by", "count", "(", "*", ")" ], "question": "What are the cities that have more than 2 airports sorted by number of airports?", "question_toks": [ "what", "are", "city", "that", "have", "more", "than", "2", "airport", "sorted", "by", "number", "of", "airport", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 3, [ 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": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "cities", "that", "have", "more", "than", "2", "airports", "sorted", "by", "number", "of", "airports", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "city" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "2" ], [ "airport" ], [ "sorted" ], [ "by" ], [ "number" ], [ "of" ], [ "airport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "city", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "airport", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "?", "." ] ], "values": [ "Airnorth", "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(5) A(3) C(0) T(1) V(1)" }, { "db_id": "flight_4", "query": "SELECT count(*) , T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.src_apid", "GROUP", "BY", "T1.name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "src_apid", "group", "by", "t1", ".", "name" ], "question": "Find the number of routes for each source airport and the airport name.", "question_toks": [ "find", "number", "of", "route", "for", "each", "source", "airport", "and", "airport", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "routes", "for", "each", "source", "airport", "and", "the", "airport", "name", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "route" ], [ "for" ], [ "each" ], [ "source", "airport" ], [ "and" ], [ "airport" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "source", "NN" ], [ "airport", "NN" ], [ "and", "CC" ], [ "airport", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "SAME", "Sumbe Airport", "Somerset Airport", "Rourkela Airport", "NME", "Bourges Airport", "Sobral Airport", "Tame", "Airnorth", "Nome", "Ko\u0161ice Airport", "Soure Airport", "Bourke Airport", "Air Sport", "NAE", "NAM", "Moree Airport", "AME", "Urbe Airport", "TAME", "Roudnice Airport", "Surat Airport", "Gore Airport", "Surin Airport", "Corte Airport", "AIR SPORT", "Bedourie Airport", "Southend Airport", "Soure", "Akure Airport" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(0) A(0) C(10) T(1)" }, { "db_id": "flight_4", "query": "SELECT count(*) , T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.src_apid", "GROUP", "BY", "T1.name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "src_apid", "group", "by", "t1", ".", "name" ], "question": "For each airport name, how many routes start at that airport?", "question_toks": [ "for", "each", "airport", "name", ",", "how", "many", "route", "start", "at", "that", "airport", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "For", "each", "airport", "name", ",", "how", "many", "routes", "start", "at", "that", "airport", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "airport" ], [ "name" ], [ "," ], [ "how" ], [ "many" ], [ "route" ], [ "start" ], [ "at" ], [ "that" ], [ "airport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "airport", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "route", "JJ" ], [ "start", "NN" ], [ "at", "IN" ], [ "that", "DT" ], [ "airport", "NN" ], [ "?", "." ] ], "values": [ "Nome", "Air Sport", "TAME", "Airnorth", "Tame", "SAME", "NAM", "AME", "NME", "NAE", "AIR SPORT" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(0) A(0) C(10) T(1)" }, { "db_id": "flight_4", "query": "SELECT count(*) , T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name ORDER BY count(*) DESC", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.src_apid", "GROUP", "BY", "T1.name", "ORDER", "BY", "count", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "src_apid", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc" ], "question": "Find the number of routes and airport name for each source airport, order the results by decreasing number of routes.", "question_toks": [ "find", "number", "of", "route", "and", "airport", "name", "for", "each", "source", "airport", ",", "order", "result", "by", "decreasing", "number", "of", "route", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "routes", "and", "airport", "name", "for", "each", "source", "airport", ",", "order", "the", "results", "by", "decreasing", "number", "of", "routes", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "route" ], [ "and" ], [ "airport" ], [ "name" ], [ "for" ], [ "each" ], [ "source", "airport" ], [ "," ], [ "order" ], [ "result" ], [ "by" ], [ "decreasing" ], [ "number" ], [ "of" ], [ "route" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "and", "CC" ], [ "airport", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "source", "NN" ], [ "airport", "NN" ], [ ",", "," ], [ "order", "NN" ], [ "result", "NN" ], [ "by", "IN" ], [ "decreasing", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ ".", "." ] ], "values": [ "Corte Airport", "Sobral Airport", "Airnorth", "NAE", "Urbe Airport", "TAME", "Nome", "Rourkela Airport", "SAME", "Bedourie Airport", "NAM", "Bourges Airport", "NME", "AIR SPORT", "Moree Airport", "Surin Airport", "Gore Airport", "Bourke Airport", "Tame", "AME", "Air Sport", "Akure Airport", "Soure Airport", "Roudnice Airport", "Somerset Airport", "Surat Airport", "Southend Airport", "Ko\u0161ice Airport", "Soure", "Sumbe Airport" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(3) C(0) T(0) A(0) C(10) T(1) Order(0) A(3) C(0) T(0)" }, { "db_id": "flight_4", "query": "SELECT count(*) , T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name ORDER BY count(*) DESC", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.src_apid", "GROUP", "BY", "T1.name", "ORDER", "BY", "count", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "src_apid", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc" ], "question": "For each airport name, how many routes start at that airport, ordered from most to least?", "question_toks": [ "for", "each", "airport", "name", ",", "how", "many", "route", "start", "at", "that", "airport", ",", "ordered", "from", "most", "to", "least", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "For", "each", "airport", "name", ",", "how", "many", "routes", "start", "at", "that", "airport", ",", "ordered", "from", "most", "to", "least", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "airport" ], [ "name" ], [ "," ], [ "how" ], [ "many" ], [ "route" ], [ "start" ], [ "at" ], [ "that" ], [ "airport" ], [ "," ], [ "ordered" ], [ "from" ], [ "most" ], [ "to" ], [ "least" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "airport", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "route", "JJ" ], [ "start", "NN" ], [ "at", "IN" ], [ "that", "DT" ], [ "airport", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "from", "IN" ], [ "most", "JJS" ], [ "to", "TO" ], [ "least", "VB" ], [ "?", "." ] ], "values": [ "NAE", "Nome", "NAM", "TAME", "SAME", "NME", "AME", "Tame", "LEST", "AIR SPORT", "Air Sport", "LEAS", "Airnorth" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(3) C(0) T(0) A(0) C(10) T(1) Order(0) A(3) C(0) T(0)" }, { "db_id": "flight_4", "query": "SELECT avg(elevation) , country FROM airports GROUP BY country", "query_toks": [ "SELECT", "avg", "(", "elevation", ")", ",", "country", "FROM", "airports", "GROUP", "BY", "country" ], "query_toks_no_value": [ "select", "avg", "(", "elevation", ")", ",", "country", "from", "airports", "group", "by", "country" ], "question": "Find the average elevation of all airports for each country.", "question_toks": [ "find", "average", "elevation", "of", "all", "airport", "for", "each", "country", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "average", "elevation", "of", "all", "airports", "for", "each", "country", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "elevation" ], [ "of" ], [ "all" ], [ "airport" ], [ "for" ], [ "each" ], [ "country" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "elevation", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "airport", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "country", "NN" ], [ ".", "." ] ], "values": [ "COUNTY", "Coventry", "Airnorth" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(15) T(1) A(0) C(12) T(1)" }, { "db_id": "flight_4", "query": "SELECT avg(elevation) , country FROM airports GROUP BY country", "query_toks": [ "SELECT", "avg", "(", "elevation", ")", ",", "country", "FROM", "airports", "GROUP", "BY", "country" ], "query_toks_no_value": [ "select", "avg", "(", "elevation", ")", ",", "country", "from", "airports", "group", "by", "country" ], "question": "For each country, what is the average elevation of that country's airports?", "question_toks": [ "for", "each", "country", ",", "what", "is", "average", "elevation", "of", "that", "country", "'s", "airport", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "For", "each", "country", ",", "what", "is", "the", "average", "elevation", "of", "that", "country", "'s", "airports", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "country" ], [ "," ], [ "what" ], [ "is" ], [ "average" ], [ "elevation" ], [ "of" ], [ "that" ], [ "country" ], [ "'s" ], [ "airport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "country", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "elevation", "NN" ], [ "of", "IN" ], [ "that", "DT" ], [ "country", "NN" ], [ "'s", "POS" ], [ "airport", "NN" ], [ "?", "." ] ], "values": [ "COUNTY", "Airnorth", "Coventry" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(15) T(1) A(0) C(12) T(1)" }, { "db_id": "flight_4", "query": "SELECT city FROM airports GROUP BY city HAVING count(*) = 2", "query_toks": [ "SELECT", "city", "FROM", "airports", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", "=", "2" ], "query_toks_no_value": [ "select", "city", "from", "airports", "group", "by", "city", "having", "count", "(", "*", ")", "=", "value" ], "question": "Find the cities which have exactly two airports.", "question_toks": [ "find", "city", "which", "have", "exactly", "two", "airport", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 2, [ 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": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "cities", "which", "have", "exactly", "two", "airports", "." ], "question_arg": [ [ "find" ], [ "city" ], [ "which" ], [ "have" ], [ "exactly" ], [ "two" ], [ "airport" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "city", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "exactly", "RB" ], [ "two", "CD" ], [ "airport", "NN" ], [ ".", "." ] ], "values": [ "Airnorth", "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(2) A(3) C(0) T(1) V(1)" }, { "db_id": "flight_4", "query": "SELECT city FROM airports GROUP BY city HAVING count(*) = 2", "query_toks": [ "SELECT", "city", "FROM", "airports", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", "=", "2" ], "query_toks_no_value": [ "select", "city", "from", "airports", "group", "by", "city", "having", "count", "(", "*", ")", "=", "value" ], "question": "What are the cities with exactly two airports?", "question_toks": [ "what", "are", "city", "with", "exactly", "two", "airport", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 2, [ 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": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "cities", "with", "exactly", "two", "airports", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "city" ], [ "with" ], [ "exactly" ], [ "two" ], [ "airport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "city", "NN" ], [ "with", "IN" ], [ "exactly", "RB" ], [ "two", "CD" ], [ "airport", "NN" ], [ "?", "." ] ], "values": [ "Airnorth", "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(2) A(3) C(0) T(1) V(1)" }, { "db_id": "flight_4", "query": "SELECT T1.country , T1.name , count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.country , T1.name", "query_toks": [ "SELECT", "T1.country", ",", "T1.name", ",", "count", "(", "*", ")", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "GROUP", "BY", "T1.country", ",", "T1.name" ], "query_toks_no_value": [ "select", "t1", ".", "country", ",", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "group", "by", "t1", ".", "country", ",", "t1", ".", "name" ], "question": "For each country and airline name, how many routes are there?", "question_toks": [ "for", "each", "country", "and", "airline", "name", ",", "how", "many", "route", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 23, false ], [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "For", "each", "country", "and", "airline", "name", ",", "how", "many", "routes", "are", "there", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "country" ], [ "and" ], [ "airline" ], [ "name" ], [ "," ], [ "how" ], [ "many" ], [ "route" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "country", "NN" ], [ "and", "CC" ], [ "airline", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "route", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [ "COUNTY", "NME", "TAME", "Fairlines", "SAME", "Coventry", "AIRLINK", "Nome", "AEROLINE", "NAM", "AIRLIN", "Tame", "NAE", "FAIRLINE", "AFRALINE", "AME", "Airlink" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(12) T(2) A(0) C(10) T(2) A(3) C(0) T(0)" }, { "db_id": "flight_4", "query": "SELECT T1.country , T1.name , count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.country , T1.name", "query_toks": [ "SELECT", "T1.country", ",", "T1.name", ",", "count", "(", "*", ")", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "GROUP", "BY", "T1.country", ",", "T1.name" ], "query_toks_no_value": [ "select", "t1", ".", "country", ",", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "group", "by", "t1", ".", "country", ",", "t1", ".", "name" ], "question": "What is the total number of routes for each country and airline in that country?", "question_toks": [ "what", "is", "total", "number", "of", "route", "for", "each", "country", "and", "airline", "in", "that", "country", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 23, false ], [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "routes", "for", "each", "country", "and", "airline", "in", "that", "country", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "route" ], [ "for" ], [ "each" ], [ "country" ], [ "and" ], [ "airline" ], [ "in" ], [ "that" ], [ "country" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "country", "NN" ], [ "and", "CC" ], [ "airline", "NN" ], [ "in", "IN" ], [ "that", "DT" ], [ "country", "NN" ], [ "?", "." ] ], "values": [ "FAIRLINE", "COUNTY", "AIRLINK", "AFRALINE", "AIRLIN", "AEROLINE", "Fairlines", "Coventry", "Airlink" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(12) T(2) A(0) C(10) T(2) A(3) C(0) T(0)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "routes", "AS", "T1", "JOIN", "airports", "AS", "T2", "ON", "T1.dst_apid", "=", "T2.apid", "WHERE", "T2.country", "=", "'Italy", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "routes", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "dst_apid", "=", "t2", ".", "apid", "where", "t2", ".", "country", "=", "value" ], "question": "Find the number of routes with destination airports in Italy.", "question_toks": [ "find", "number", "of", "route", "with", "destination", "airport", "in", "italy", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Italy\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "routes", "with", "destination", "airports", "in", "Italy", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "route" ], [ "with" ], [ "destination", "airport" ], [ "in" ], [ "italy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "with", "IN" ], [ "destination", "NN" ], [ "airport", "NN" ], [ "in", "IN" ], [ "italy", "NN" ], [ ".", "." ] ], "values": [ "ITALI", "Italy", "Airnorth" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "routes", "AS", "T1", "JOIN", "airports", "AS", "T2", "ON", "T1.dst_apid", "=", "T2.apid", "WHERE", "T2.country", "=", "'Italy", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "routes", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "dst_apid", "=", "t2", ".", "apid", "where", "t2", ".", "country", "=", "value" ], "question": "What is the number of routes whose destinations are Italian airports?", "question_toks": [ "what", "is", "number", "of", "route", "whose", "destination", "are", "italian", "airport", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Italy\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "routes", "whose", "destinations", "are", "Italian", "airports", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "route" ], [ "whose" ], [ "destination" ], [ "are" ], [ "italian" ], [ "airport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "whose", "WP$" ], [ "destination", "NN" ], [ "are", "VBP" ], [ "italian", "JJ" ], [ "airport", "NN" ], [ "?", "." ] ], "values": [ "Airnorth", "Italy" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid JOIN airlines AS T3 ON T1.alid = T3.alid WHERE T2.country = 'Italy' AND T3.name = 'American Airlines'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "routes", "AS", "T1", "JOIN", "airports", "AS", "T2", "ON", "T1.dst_apid", "=", "T2.apid", "JOIN", "airlines", "AS", "T3", "ON", "T1.alid", "=", "T3.alid", "WHERE", "T2.country", "=", "'Italy", "'", "AND", "T3.name", "=", "'American", "Airlines", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "routes", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "dst_apid", "=", "t2", ".", "apid", "join", "airlines", "as", "t3", "on", "t1", ".", "alid", "=", "t3", ".", "alid", "where", "t2", ".", "country", "=", "value", "and", "t3", ".", "name", "=", "value" ], "question": "Return the number of routes with destination airport in Italy operated by the airline with name 'American Airlines'.", "question_toks": [ "return", "number", "of", "route", "with", "destination", "airport", "in", "italy", "operated", "by", "airline", "with", "name", "'", "american", "airline", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Italy\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"American Airlines\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Return", "the", "number", "of", "routes", "with", "destination", "airport", "in", "Italy", "operated", "by", "the", "airline", "with", "name", "'American", "Airlines", "'", "." ], "question_arg": [ [ "return" ], [ "number" ], [ "of" ], [ "route" ], [ "with" ], [ "destination", "airport" ], [ "in" ], [ "italy" ], [ "operated" ], [ "by" ], [ "airline" ], [ "with" ], [ "name" ], [ "'" ], [ "american" ], [ "airline" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "with", "IN" ], [ "destination", "NN" ], [ "airport", "NN" ], [ "in", "IN" ], [ "italy", "NN" ], [ "operated", "VBN" ], [ "by", "IN" ], [ "airline", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "american", "JJ" ], [ "airline", "NN" ], [ "'", "''" ], [ ".", "." ] ], "values": [ "SAME", "ADLINES", "AIRWINGS", "NME", "AIRLIN", "Tame", "Airnorth", "Nome", "Airailes", "ITALI", "Fairlines", "Italy", "Air Sport", "AMERICAN", "Americus", "NAE", "NAM", "Airlink", "FAIRLINE", "TRILINES", "AME", "TAME", "DARLINES", "Americana", "American Airlines", "S-AIRLINES", "AIRLINK", "AIR SPORT", "AFRALINE", "AEROLINE" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(2) A(0) C(12) T(1) V(11) Filter(2) A(0) C(10) T(2) V(24)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid JOIN airlines AS T3 ON T1.alid = T3.alid WHERE T2.country = 'Italy' AND T3.name = 'American Airlines'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "routes", "AS", "T1", "JOIN", "airports", "AS", "T2", "ON", "T1.dst_apid", "=", "T2.apid", "JOIN", "airlines", "AS", "T3", "ON", "T1.alid", "=", "T3.alid", "WHERE", "T2.country", "=", "'Italy", "'", "AND", "T3.name", "=", "'American", "Airlines", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "routes", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "dst_apid", "=", "t2", ".", "apid", "join", "airlines", "as", "t3", "on", "t1", ".", "alid", "=", "t3", ".", "alid", "where", "t2", ".", "country", "=", "value", "and", "t3", ".", "name", "=", "value" ], "question": "What is the number of routes operated by the airline American Airlines whose destinations are in Italy?", "question_toks": [ "what", "is", "number", "of", "route", "operated", "by", "airline", "american", "airline", "whose", "destination", "are", "in", "italy", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Italy\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"American Airlines\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "routes", "operated", "by", "the", "airline", "American", "Airlines", "whose", "destinations", "are", "in", "Italy", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "route" ], [ "operated" ], [ "by" ], [ "airline" ], [ "american" ], [ "airline" ], [ "whose" ], [ "destination" ], [ "are" ], [ "in" ], [ "italy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "operated", "VBN" ], [ "by", "IN" ], [ "airline", "NN" ], [ "american", "JJ" ], [ "airline", "NN" ], [ "whose", "WP$" ], [ "destination", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "italy", "NN" ], [ "?", "." ] ], "values": [ "Italy", "ADLINES", "Fairlines", "DARLINES", "AMERICAN", "Airlink", "AIRLINK", "Aserca Airlines", "AIRWINGS", "Africa Airlines", "ITALI", "TRILINES", "Domenican Airlines", "African Airlines", "Americus", "AFRICAN AIRLINES", "American Airlines", "FAIRLINE", "Airailes", "Americana", "S-AIRLINES", "Meridian Airlines", "Armenian Airlines", "AIRLIN" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(2) A(0) C(12) T(1) V(0) Filter(2) A(0) C(10) T(2) V(16)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.name = 'John F Kennedy International Airport'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "WHERE", "T1.name", "=", "'John", "F", "Kennedy", "International", "Airport", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "where", "t1", ".", "name", "=", "value" ], "question": "Find the number of routes that have destination John F Kennedy International Airport.", "question_toks": [ "find", "number", "of", "route", "that", "have", "destination", "john", "f", "kennedy", "international", "airport", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, 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, 10, false ], null ], "\"John F Kennedy International Airport\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "routes", "that", "have", "destination", "John", "F", "Kennedy", "International", "Airport", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "route" ], [ "that" ], [ "have" ], [ "destination" ], [ "john" ], [ "f" ], [ "kennedy" ], [ "international" ], [ "airport" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "destination", "NN" ], [ "john", "NN" ], [ "f", "NN" ], [ "kennedy", "VBD" ], [ "international", "JJ" ], [ "airport", "NN" ], [ ".", "." ] ], "values": [ "Kent International Airport", "Nadi International Airport", "Hato International Airport", "Doha International Airport", "Hilo International Airport", "Gan International Airport", "Key West International Airport", "Riga International Airport", "Taba International Airport", "Senai International Airport", "Conakry International Airport", "Minsk National Airport", "Juneau International Airport", "International AirLink", "Pisa International Airport", "Laredo International Airport", "Denver International Airport", "Brunei International Airport", "Kelowna International Airport", "Cassidy International Airport", "Penang International Airport", "Gander International Airport", "Kansai International Airport", "Aden International Airport", "F", "Juba International Airport", "INTERNACIONAL", "Rivne International Airport", "Kaunas International Airport", "Cuneo International Airport", "Juanda International Airport", "John F Kennedy International Airport", "Benina International Airport", "Yap International Airport", "Ufa International Airport", "Valley International Airport", "Mati National Airport", "Entebbe International Airport", "Chennai International Airport", "MBS International Airport", "Jinnah International Airport", "Atar International Airport", "Kempegowda International Airport", "Goma International Airport", "Vienna International Airport" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(10) T(1) V(31)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.name = 'John F Kennedy International Airport'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "WHERE", "T1.name", "=", "'John", "F", "Kennedy", "International", "Airport", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "where", "t1", ".", "name", "=", "value" ], "question": "What is the number of routes that end at John F Kennedy International Airport?", "question_toks": [ "what", "is", "number", "of", "route", "that", "end", "at", "john", "f", "kennedy", "international", "airport", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, 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, 10, false ], null ], "\"John F Kennedy International Airport\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "routes", "that", "end", "at", "John", "F", "Kennedy", "International", "Airport", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "route" ], [ "that" ], [ "end" ], [ "at" ], [ "john" ], [ "f" ], [ "kennedy" ], [ "international" ], [ "airport" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "that", "WDT" ], [ "end", "VBP" ], [ "at", "IN" ], [ "john", "NN" ], [ "f", "NN" ], [ "kennedy", "VBD" ], [ "international", "JJ" ], [ "airport", "NN" ], [ "?", "." ] ], "values": [ "Vienna International Airport", "Ovda International Airport", "Nadi International Airport", "Penang International Airport", "Juanda International Airport", "Jeju International Airport", "Chennai International Airport", "INTERNACIONAL", "Mati National Airport", "Kempegowda International Airport", "Muan International Airport", "Brunei International Airport", "Yap International Airport", "Denver International Airport", "F", "Rivne International Airport", "Valley International Airport", "Riga International Airport", "Kish International Airport", "Doha International Airport", "Arad International Airport", "Mal\u00e9 International Airport", "Pisa International Airport", "Ufa International Airport", "International AirLink", "Key West International Airport", "Cassidy International Airport", "Laredo International Airport", "Benina International Airport", "Minsk National Airport", "Gander International Airport", "Kent International Airport", "Juneau International Airport", "Entebbe International Airport", "Kaunas International Airport", "MBS International Airport", "Gan International Airport", "Conakry International Airport", "Cuneo International Airport", "Goma International Airport", "Kelowna International Airport", "Atar International Airport", "Niue International Airport", "Jinnah International Airport", "Kansai International Airport", "Senai International Airport", "John F Kennedy International Airport" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(10) T(1) V(46)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "routes", "WHERE", "dst_apid", "IN", "(", "SELECT", "apid", "FROM", "airports", "WHERE", "country", "=", "'Canada", "'", ")", "AND", "src_apid", "IN", "(", "SELECT", "apid", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "routes", "where", "dst_apid", "in", "(", "select", "apid", "from", "airports", "where", "country", "=", "value", ")", "and", "src_apid", "in", "(", "select", "apid", "from", "airports", "where", "country", "=", "value", ")" ], "question": "Find the number of routes from the United States to Canada.", "question_toks": [ "find", "number", "of", "route", "from", "united", "state", "to", "canada", "." ], "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, 8, [ 0, [ 0, 2, 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": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Canada\"", null ] ] }, null ], "and", [ false, 8, [ 0, [ 0, 4, 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": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"United States\"", null ] ] }, null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "routes", "from", "the", "United", "States", "to", "Canada", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "route" ], [ "from" ], [ "united" ], [ "state" ], [ "to" ], [ "canada" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "from", "IN" ], [ "united", "JJ" ], [ "state", "NN" ], [ "to", "TO" ], [ "canada", "VB" ], [ ".", "." ] ], "values": [ "US", "Canada", "STATES", "WESTATES", "United States", "UNITED", "USA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(18) A(0) C(2) T(0) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(2) A(0) C(12) T(1) V(1) Filter(18) A(0) C(4) T(0) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(2) A(0) C(12) T(1) V(4)" }, { "db_id": "flight_4", "query": "SELECT count(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "routes", "WHERE", "dst_apid", "IN", "(", "SELECT", "apid", "FROM", "airports", "WHERE", "country", "=", "'Canada", "'", ")", "AND", "src_apid", "IN", "(", "SELECT", "apid", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "routes", "where", "dst_apid", "in", "(", "select", "apid", "from", "airports", "where", "country", "=", "value", ")", "and", "src_apid", "in", "(", "select", "apid", "from", "airports", "where", "country", "=", "value", ")" ], "question": "How many routes go from the United States to Canada?", "question_toks": [ "how", "many", "route", "go", "from", "united", "state", "to", "canada", "?" ], "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, 8, [ 0, [ 0, 2, 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": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Canada\"", null ] ] }, null ], "and", [ false, 8, [ 0, [ 0, 4, 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": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"United States\"", null ] ] }, null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "routes", "go", "from", "the", "United", "States", "to", "Canada", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "route" ], [ "go" ], [ "from" ], [ "united" ], [ "state" ], [ "to" ], [ "canada" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "route", "NN" ], [ "go", "VBP" ], [ "from", "IN" ], [ "united", "JJ" ], [ "state", "NN" ], [ "to", "TO" ], [ "canada", "VB" ], [ "?", "." ] ], "values": [ "WESTATES", "USA", "United States", "US", "STATES", "Canada", "UNITED" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(18) A(0) C(2) T(0) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(2) A(0) C(12) T(1) V(5) Filter(18) A(0) C(4) T(0) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(2) A(0) C(12) T(1) V(2)" }, { "db_id": "flight_4", "query": "SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'United States') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')", "query_toks": [ "SELECT", "rid", "FROM", "routes", "WHERE", "dst_apid", "IN", "(", "SELECT", "apid", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", ")", "AND", "src_apid", "IN", "(", "SELECT", "apid", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", ")" ], "query_toks_no_value": [ "select", "rid", "from", "routes", "where", "dst_apid", "in", "(", "select", "apid", "from", "airports", "where", "country", "=", "value", ")", "and", "src_apid", "in", "(", "select", "apid", "from", "airports", "where", "country", "=", "value", ")" ], "question": "Find the id of routes whose source and destination airports are in the United States.", "question_toks": [ "find", "id", "of", "route", "whose", "source", "and", "destination", "airport", "are", "in", "united", "state", "." ], "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, 8, [ 0, [ 0, 2, 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": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"United States\"", null ] ] }, null ], "and", [ false, 8, [ 0, [ 0, 4, 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": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"United States\"", null ] ] }, null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "id", "of", "routes", "whose", "source", "and", "destination", "airports", "are", "in", "the", "United", "States", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "route" ], [ "whose" ], [ "source" ], [ "and" ], [ "destination", "airport" ], [ "are" ], [ "in" ], [ "united" ], [ "state" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "whose", "WP$" ], [ "source", "NN" ], [ "and", "CC" ], [ "destination", "NN" ], [ "airport", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "united", "JJ" ], [ "state", "NN" ], [ ".", "." ] ], "values": [ "ID", "Airnorth", "USA", "United States", "STATES", "US", "UNITED", "Soure", "WESTATES" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(18) A(0) C(2) T(0) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(2) A(0) C(12) T(1) V(3) Filter(18) A(0) C(4) T(0) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(2) A(0) C(12) T(1) V(3)" }, { "db_id": "flight_4", "query": "SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'United States') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')", "query_toks": [ "SELECT", "rid", "FROM", "routes", "WHERE", "dst_apid", "IN", "(", "SELECT", "apid", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", ")", "AND", "src_apid", "IN", "(", "SELECT", "apid", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", ")" ], "query_toks_no_value": [ "select", "rid", "from", "routes", "where", "dst_apid", "in", "(", "select", "apid", "from", "airports", "where", "country", "=", "value", ")", "and", "src_apid", "in", "(", "select", "apid", "from", "airports", "where", "country", "=", "value", ")" ], "question": "What is the id of the routes whose source and destination airports are in the United States?", "question_toks": [ "what", "is", "id", "of", "route", "whose", "source", "and", "destination", "airport", "are", "in", "united", "state", "?" ], "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, 8, [ 0, [ 0, 2, 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": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"United States\"", null ] ] }, null ], "and", [ false, 8, [ 0, [ 0, 4, 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": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"United States\"", null ] ] }, null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "routes", "whose", "source", "and", "destination", "airports", "are", "in", "the", "United", "States", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "route" ], [ "whose" ], [ "source" ], [ "and" ], [ "destination", "airport" ], [ "are" ], [ "in" ], [ "united" ], [ "state" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "whose", "WP$" ], [ "source", "NN" ], [ "and", "CC" ], [ "destination", "NN" ], [ "airport", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "united", "JJ" ], [ "state", "NN" ], [ "?", "." ] ], "values": [ "UNITED", "United States", "Soure", "Airnorth", "STATES", "US", "ID", "WESTATES", "USA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(18) A(0) C(2) T(0) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(2) A(0) C(12) T(1) V(1) Filter(18) A(0) C(4) T(0) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(2) A(0) C(12) T(1) V(1)" }, { "db_id": "flight_4", "query": "SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "GROUP", "BY", "T1.name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name of airline which runs the most number of routes.", "question_toks": [ "find", "name", "of", "airline", "which", "run", "most", "number", "of", "route", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "airline", "which", "runs", "the", "most", "number", "of", "routes", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "airline" ], [ "which" ], [ "run" ], [ "most" ], [ "number" ], [ "of" ], [ "route" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "airline", "NN" ], [ "which", "WDT" ], [ "run", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ ".", "." ] ], "values": [ "TAME", "Airlink", "NAE", "AIRLINK", "NAM", "AFRALINE", "Fairlines", "Nome", "SAME", "Tame", "AME", "AEROLINE", "AIRLIN", "NME", "FAIRLINE" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(2) Sup(0) A(3) C(0) T(0) Filter(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(0)" }, { "db_id": "flight_4", "query": "SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "GROUP", "BY", "T1.name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the airline with the most routes?", "question_toks": [ "what", "is", "name", "of", "airline", "with", "most", "route", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "airline", "with", "the", "most", "routes", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "airline" ], [ "with" ], [ "most" ], [ "route" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "airline", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "route", "NN" ], [ "?", "." ] ], "values": [ "Nome", "AFRALINE", "AIRLIN", "NAE", "AEROLINE", "TAME", "Tame", "SAME", "Fairlines", "NAM", "AME", "Airlink", "NME", "AIRLINK", "FAIRLINE" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(2) Sup(0) A(3) C(0) T(0) Filter(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(0)" }, { "db_id": "flight_4", "query": "SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.src_apid", "WHERE", "T1.country", "=", "'China", "'", "GROUP", "BY", "T1.name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "src_apid", "where", "t1", ".", "country", "=", "value", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the busiest source airport that runs most number of routes in China.", "question_toks": [ "find", "busiest", "source", "airport", "that", "run", "most", "number", "of", "route", "in", "china", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"China\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "busiest", "source", "airport", "that", "runs", "most", "number", "of", "routes", "in", "China", "." ], "question_arg": [ [ "find" ], [ "busiest" ], [ "source", "airport" ], [ "that" ], [ "run" ], [ "most" ], [ "number" ], [ "of" ], [ "route" ], [ "in" ], [ "china" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "name" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "busiest", "JJS" ], [ "source", "NN" ], [ "airport", "NN" ], [ "that", "WDT" ], [ "run", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "in", "IN" ], [ "china", "NN" ], [ ".", "." ] ], "values": [ "Soure Airport", "Somerset Airport", "Sumbe Airport", "AIR SPORT", "Urbe Airport", "Bourke Airport", "Chino", "Airnorth", "China", "Bourges Airport", "Surat Airport", "Air Sport", "Akure Airport", "Gore Airport", "Chita", "Bedourie Airport", "Rourkela Airport", "Southend Airport", "Ko\u0161ice Airport", "Roudnice Airport", "Sobral Airport", "CHITA", "Moree Airport", "Surin Airport", "Soure", "Corte Airport" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(3) C(0) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(12) T(1) V(8)" }, { "db_id": "flight_4", "query": "SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.src_apid", "WHERE", "T1.country", "=", "'China", "'", "GROUP", "BY", "T1.name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "src_apid", "where", "t1", ".", "country", "=", "value", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the airport with the most number of routes that start in China?", "question_toks": [ "what", "is", "name", "of", "airport", "with", "most", "number", "of", "route", "that", "start", "in", "china", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"China\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "airport", "with", "the", "most", "number", "of", "routes", "that", "start", "in", "China", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "airport" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "route" ], [ "that" ], [ "start" ], [ "in" ], [ "china" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "name" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "that", "WDT" ], [ "start", "VBP" ], [ "in", "IN" ], [ "china", "NN" ], [ "?", "." ] ], "values": [ "Chita", "Chino", "TAME", "NAE", "NAM", "CHITA", "Nome", "SAME", "AIR SPORT", "Tame", "China", "Airnorth", "AME", "NME", "Air Sport" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(3) C(0) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(12) T(1) V(10)" }, { "db_id": "flight_4", "query": "SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "WHERE", "T1.country", "=", "'China", "'", "GROUP", "BY", "T1.name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "where", "t1", ".", "country", "=", "value", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the busiest destination airport that runs most number of routes in China.", "question_toks": [ "find", "busiest", "destination", "airport", "that", "run", "most", "number", "of", "route", "in", "china", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"China\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "busiest", "destination", "airport", "that", "runs", "most", "number", "of", "routes", "in", "China", "." ], "question_arg": [ [ "find" ], [ "busiest" ], [ "destination", "airport" ], [ "that" ], [ "run" ], [ "most" ], [ "number" ], [ "of" ], [ "route" ], [ "in" ], [ "china" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "name" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "busiest", "JJS" ], [ "destination", "NN" ], [ "airport", "NN" ], [ "that", "WDT" ], [ "run", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "in", "IN" ], [ "china", "NN" ], [ ".", "." ] ], "values": [ "Chino", "Airnorth", "Air Sport", "AIR SPORT", "Chita", "China", "CHITA" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(3) C(0) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(12) T(1) V(5)" }, { "db_id": "flight_4", "query": "SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "WHERE", "T1.country", "=", "'China", "'", "GROUP", "BY", "T1.name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "where", "t1", ".", "country", "=", "value", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the airport that is the destination of the most number of routes that start in China?", "question_toks": [ "what", "is", "name", "of", "airport", "that", "is", "destination", "of", "most", "number", "of", "route", "that", "start", "in", "china", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"China\"", null ] ] }, "names": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "airline id", "name", "iata", "icao", "call sign", "country", "active" ], "table_names": [ "routes", "airports", "airlines" ], "col_set": [ "*", "route id", "destination airport id", "destination airport", "source airport id", "source airport", "airline id", "airline", "code share", "airport id", "name", "city", "country", "x", "y", "elevation", "iata", "icao", "call sign", "active" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "6": 18, "18": 18, "4": 9, "9": 9, "2": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "airport", "that", "is", "the", "destination", "of", "the", "most", "number", "of", "routes", "that", "start", "in", "China", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "airport" ], [ "that" ], [ "is" ], [ "destination" ], [ "of" ], [ "most" ], [ "number" ], [ "of" ], [ "route" ], [ "that" ], [ "start" ], [ "in" ], [ "china" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "name" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "destination", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "route", "NN" ], [ "that", "WDT" ], [ "start", "VBP" ], [ "in", "IN" ], [ "china", "NN" ], [ "?", "." ] ], "values": [ "NME", "TAME", "SAME", "Nome", "NAM", "Chita", "Tame", "Chino", "CHITA", "NAE", "China", "AME" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(3) C(0) T(0) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(12) T(1) V(10)" }, { "db_id": "tracking_orders", "query": "SELECT order_id FROM orders ORDER BY date_order_placed DESC LIMIT 1", "query_toks": [ "SELECT", "order_id", "FROM", "orders", "ORDER", "BY", "date_order_placed", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "order_id", "from", "orders", "order", "by", "date_order_placed", "desc", "limit", "value" ], "question": "What is the id of the most recent order?", "question_toks": [ "what", "is", "id", "of", "most", "recent", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "most", "recent", "order", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "most" ], [ "recent" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "VBN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "recent", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(2) Sup(0) A(0) C(9) T(2)" }, { "db_id": "tracking_orders", "query": "SELECT order_id FROM orders ORDER BY date_order_placed DESC LIMIT 1", "query_toks": [ "SELECT", "order_id", "FROM", "orders", "ORDER", "BY", "date_order_placed", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "order_id", "from", "orders", "order", "by", "date_order_placed", "desc", "limit", "value" ], "question": "Find the id of the order made most recently.", "question_toks": [ "find", "id", "of", "order", "made", "most", "recently", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "id", "of", "the", "order", "made", "most", "recently", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "order" ], [ "made" ], [ "most" ], [ "recently" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "made", "VBN" ], [ "most", "RBS" ], [ "recently", "RB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(2) Sup(0) A(0) C(9) T(2)" }, { "db_id": "tracking_orders", "query": "SELECT order_id , customer_id FROM orders ORDER BY date_order_placed LIMIT 1", "query_toks": [ "SELECT", "order_id", ",", "customer_id", "FROM", "orders", "ORDER", "BY", "date_order_placed", "LIMIT", "1" ], "query_toks_no_value": [ "select", "order_id", ",", "customer_id", "from", "orders", "order", "by", "date_order_placed", "limit", "value" ], "question": "what are the order id and customer id of the oldest order?", "question_toks": [ "what", "are", "order", "id", "and", "customer", "id", "of", "oldest", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "what", "are", "the", "order", "id", "and", "customer", "id", "of", "the", "oldest", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "order", "id" ], [ "and" ], [ "customer", "id" ], [ "of" ], [ "oldest" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "order", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "customer", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "oldest", "JJS" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(7) T(2) A(0) C(1) T(2) Sup(1) A(0) C(9) T(2)" }, { "db_id": "tracking_orders", "query": "SELECT order_id , customer_id FROM orders ORDER BY date_order_placed LIMIT 1", "query_toks": [ "SELECT", "order_id", ",", "customer_id", "FROM", "orders", "ORDER", "BY", "date_order_placed", "LIMIT", "1" ], "query_toks_no_value": [ "select", "order_id", ",", "customer_id", "from", "orders", "order", "by", "date_order_placed", "limit", "value" ], "question": "Find the order id and customer id associated with the oldest order.", "question_toks": [ "find", "order", "id", "and", "customer", "id", "associated", "with", "oldest", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "order", "id", "and", "customer", "id", "associated", "with", "the", "oldest", "order", "." ], "question_arg": [ [ "find" ], [ "order", "id" ], [ "and" ], [ "customer", "id" ], [ "associated" ], [ "with" ], [ "oldest" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "order", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "customer", "NN" ], [ "id", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "oldest", "JJS" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(7) T(2) A(0) C(1) T(2) Sup(1) A(0) C(9) T(2)" }, { "db_id": "tracking_orders", "query": "SELECT order_id FROM shipments WHERE shipment_tracking_number = \"3452\"", "query_toks": [ "SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_tracking_number", "=", "``", "3452", "''" ], "query_toks_no_value": [ "select", "order_id", "from", "shipments", "where", "shipment_tracking_number", "=", "value" ], "question": "Find the id of the order whose shipment tracking number is \"3452\".", "question_toks": [ "find", "id", "of", "order", "whose", "shipment", "tracking", "number", "is", "'", "3452", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"3452\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "id", "of", "the", "order", "whose", "shipment", "tracking", "number", "is", "``", "3452", "''", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "order" ], [ "whose" ], [ "shipment", "tracking", "number" ], [ "is" ], [ "'" ], [ "3452" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "whose", "WP$" ], [ "shipment", "NN" ], [ "tracking", "VBG" ], [ "number", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "3452", "CD" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Packing", "3452" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(5) Filter(2) A(0) C(18) T(5) V(1)" }, { "db_id": "tracking_orders", "query": "SELECT order_id FROM shipments WHERE shipment_tracking_number = \"3452\"", "query_toks": [ "SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_tracking_number", "=", "``", "3452", "''" ], "query_toks_no_value": [ "select", "order_id", "from", "shipments", "where", "shipment_tracking_number", "=", "value" ], "question": "Which order's shipment tracking number is \"3452\"? Give me the id of the order.", "question_toks": [ "which", "order", "'s", "shipment", "tracking", "number", "is", "'", "3452", "'", "?", "give", "me", "id", "of", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"3452\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Which", "order", "'s", "shipment", "tracking", "number", "is", "``", "3452", "''", "?", "Give", "me", "the", "id", "of", "the", "order", "." ], "question_arg": [ [ "which" ], [ "order" ], [ "'s" ], [ "shipment", "tracking", "number" ], [ "is" ], [ "'" ], [ "3452" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "id" ], [ "of" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "order", "NN" ], [ "'s", "POS" ], [ "shipment", "NN" ], [ "tracking", "VBG" ], [ "number", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "3452", "CD" ], [ "'", "''" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "id", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "Packing", "3452" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(5) Filter(2) A(0) C(18) T(5) V(1)" }, { "db_id": "tracking_orders", "query": "SELECT order_item_id FROM order_items WHERE product_id = 11", "query_toks": [ "SELECT", "order_item_id", "FROM", "order_items", "WHERE", "product_id", "=", "11" ], "query_toks_no_value": [ "select", "order_item_id", "from", "order_items", "where", "product_id", "=", "value" ], "question": "Find the ids of all the order items whose product id is 11.", "question_toks": [ "find", "id", "of", "all", "order", "item", "whose", "product", "id", "is", "11", "." ], "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": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], 11.0, null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "ids", "of", "all", "the", "order", "items", "whose", "product", "id", "is", "11", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "all" ], [ "order", "item" ], [ "whose" ], [ "product", "id" ], [ "is" ], [ "11" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "order", "NN" ], [ "item", "NN" ], [ "whose", "WP$" ], [ "product", "NN" ], [ "id", "NN" ], [ "is", "VBZ" ], [ "11", "CD" ], [ ".", "." ] ], "values": [ "11" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(4) Filter(2) A(0) C(11) T(4) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT order_item_id FROM order_items WHERE product_id = 11", "query_toks": [ "SELECT", "order_item_id", "FROM", "order_items", "WHERE", "product_id", "=", "11" ], "query_toks_no_value": [ "select", "order_item_id", "from", "order_items", "where", "product_id", "=", "value" ], "question": "Find all the order items whose product id is 11. What are the order item ids?", "question_toks": [ "find", "all", "order", "item", "whose", "product", "id", "is", "11", ".", "what", "are", "order", "item", "id", "?" ], "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": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], 11.0, null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Find", "all", "the", "order", "items", "whose", "product", "id", "is", "11", ".", "What", "are", "the", "order", "item", "ids", "?" ], "question_arg": [ [ "find" ], [ "all" ], [ "order", "item" ], [ "whose" ], [ "product", "id" ], [ "is" ], [ "11" ], [ "." ], [ "what" ], [ "are" ], [ "order", "item", "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "order", "NN" ], [ "item", "NN" ], [ "whose", "WP$" ], [ "product", "NN" ], [ "id", "NN" ], [ "is", "VBZ" ], [ "11", "CD" ], [ ".", "." ], [ "what", "WDT" ], [ "are", "VBP" ], [ "order", "NN" ], [ "item", "NN" ], [ "id", "NN" ], [ "?", "." ] ], "values": [ "11" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(4) Filter(2) A(0) C(11) T(4) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Packing\"", "query_toks": [ "SELECT", "DISTINCT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status", "=", "``", "Packing", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status", "=", "value" ], "question": "List the name of all the distinct customers who have orders with status \"Packing\".", "question_toks": [ "list", "name", "of", "all", "distinct", "customer", "who", "have", "order", "with", "status", "'", "packing", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, 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, 2, [ 0, [ 0, 9, false ], null ], "\"Packing\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "List", "the", "name", "of", "all", "the", "distinct", "customers", "who", "have", "orders", "with", "status", "``", "Packing", "''", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "distinct" ], [ "customer" ], [ "who" ], [ "have" ], [ "order" ], [ "with" ], [ "status" ], [ "'" ], [ "packing" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "order", "NN" ], [ "with", "IN" ], [ "status", "NN" ], [ "'", "''" ], [ "packing", "VBG" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Packing" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Packing\"", "query_toks": [ "SELECT", "DISTINCT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status", "=", "``", "Packing", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status", "=", "value" ], "question": "Which customers have orders with status \"Packing\"? Give me the customer names.", "question_toks": [ "which", "customer", "have", "order", "with", "status", "'", "packing", "'", "?", "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", 2 ] ] }, "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 ], "\"Packing\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Which", "customers", "have", "orders", "with", "status", "``", "Packing", "''", "?", "Give", "me", "the", "customer", "names", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "have" ], [ "order" ], [ "with" ], [ "status" ], [ "'" ], [ "packing" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "customer", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "order", "NN" ], [ "with", "IN" ], [ "status", "NN" ], [ "'", "''" ], [ "packing", "VBG" ], [ "'", "''" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "customer", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Packing" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\"", "query_toks": [ "SELECT", "DISTINCT", "T1.customer_details", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status", "=", "``", "On", "Road", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "customer_details", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status", "=", "value" ], "question": "Find the details of all the distinct customers who have orders with status \"On Road\".", "question_toks": [ "find", "detail", "of", "all", "distinct", "customer", "who", "have", "order", "with", "status", "'", "on", "road", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, 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, 2, [ 0, [ 0, 9, false ], null ], "\"On Road\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "details", "of", "all", "the", "distinct", "customers", "who", "have", "orders", "with", "status", "``", "On", "Road", "''", "." ], "question_arg": [ [ "find" ], [ "detail" ], [ "of" ], [ "all" ], [ "distinct" ], [ "customer" ], [ "who" ], [ "have" ], [ "order" ], [ "with" ], [ "status" ], [ "'" ], [ "on" ], [ "road" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "detail", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "order", "NN" ], [ "with", "IN" ], [ "status", "NN" ], [ "'", "''" ], [ "on", "IN" ], [ "road", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "On Road" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\"", "query_toks": [ "SELECT", "DISTINCT", "T1.customer_details", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status", "=", "``", "On", "Road", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "customer_details", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status", "=", "value" ], "question": "What are the distinct customers who have orders with status \"On Road\"? Give me the customer details?", "question_toks": [ "what", "are", "distinct", "customer", "who", "have", "order", "with", "status", "'", "on", "road", "'", "?", "give", "me", "customer", "detail", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, 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, 2, [ 0, [ 0, 9, false ], null ], "\"On Road\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "distinct", "customers", "who", "have", "orders", "with", "status", "``", "On", "Road", "''", "?", "Give", "me", "the", "customer", "details", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "customer" ], [ "who" ], [ "have" ], [ "order" ], [ "with" ], [ "status" ], [ "'" ], [ "on" ], [ "road" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "customer", "detail" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "order", "NN" ], [ "with", "IN" ], [ "status", "NN" ], [ "'", "''" ], [ "on", "IN" ], [ "road", "NN" ], [ "'", "''" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "customer", "NN" ], [ "detail", "NN" ], [ "?", "." ] ], "values": [ "On Road" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT T1.customer_name FROM customers AS T1 JOIN orders 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_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "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_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the customer who has the most orders?", "question_toks": [ "what", "is", "name", "of", "customer", "who", "ha", "most", "order", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 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", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "customer", "who", "has", "the", "most", "orders", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "ha" ], [ "most" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "order", "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": "tracking_orders", "query": "SELECT T1.customer_name FROM customers AS T1 JOIN orders 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_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "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_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which customer made the most orders? Find the customer name.", "question_toks": [ "which", "customer", "made", "most", "order", "?", "find", "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", 2 ] ] }, "groupBy": [ [ 0, 1, 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", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Which", "customer", "made", "the", "most", "orders", "?", "Find", "the", "customer", "name", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "made" ], [ "most" ], [ "order" ], [ "?" ], [ "find" ], [ "customer", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "made", "VBD" ], [ "most", "JJS" ], [ "order", "NN" ], [ "?", "." ], [ "find", "VB" ], [ "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(2) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "tracking_orders", "query": "SELECT T1.customer_id FROM customers AS T1 JOIN orders 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", "FROM", "customers", "AS", "T1", "JOIN", "orders", "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", "from", "customers", "as", "t1", "join", "orders", "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 of the customer who has the most orders?", "question_toks": [ "what", "is", "customer", "id", "of", "customer", "who", "ha", "most", "order", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "customer", "id", "of", "the", "customer", "who", "has", "the", "most", "orders", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "customer", "id" ], [ "of" ], [ "customer" ], [ "who" ], [ "ha" ], [ "most" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "customer", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(1) T(0) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "tracking_orders", "query": "SELECT T1.customer_id FROM customers AS T1 JOIN orders 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", "FROM", "customers", "AS", "T1", "JOIN", "orders", "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", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the id of the customer who made the most orders.", "question_toks": [ "find", "id", "of", "customer", "who", "made", "most", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "id", "of", "the", "customer", "who", "made", "the", "most", "orders", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "customer" ], [ "who" ], [ "made" ], [ "most" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "most", "RBS" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(1) T(0) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "tracking_orders", "query": "SELECT T2.order_id , T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = \"Jeramie\"", "query_toks": [ "SELECT", "T2.order_id", ",", "T2.order_status", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T1.customer_name", "=", "``", "Jeramie", "''" ], "query_toks_no_value": [ "select", "t2", ".", "order_id", ",", "t2", ".", "order_status", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "=", "value" ], "question": "Give me a list of id and status of orders which belong to the customer named \"Jeramie\".", "question_toks": [ "give", "me", "a", "list", "of", "id", "and", "status", "of", "order", "which", "belong", "to", "customer", "named", "'", "jeramie", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, 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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Jeramie\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Give", "me", "a", "list", "of", "id", "and", "status", "of", "orders", "which", "belong", "to", "the", "customer", "named", "``", "Jeramie", "''", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "a" ], [ "list" ], [ "of" ], [ "id" ], [ "and" ], [ "status" ], [ "of" ], [ "order" ], [ "which" ], [ "belong" ], [ "to" ], [ "customer" ], [ "named" ], [ "'" ], [ "jeramie" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "a", "DT" ], [ "list", "NN" ], [ "of", "IN" ], [ "id", "NN" ], [ "and", "CC" ], [ "status", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "which", "WDT" ], [ "belong", "NN" ], [ "to", "TO" ], [ "customer", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "jeramie", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Jeramie" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(2) A(0) C(8) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT T2.order_id , T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = \"Jeramie\"", "query_toks": [ "SELECT", "T2.order_id", ",", "T2.order_status", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T1.customer_name", "=", "``", "Jeramie", "''" ], "query_toks_no_value": [ "select", "t2", ".", "order_id", ",", "t2", ".", "order_status", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "=", "value" ], "question": "Which orders are made by the customer named \"Jeramie\"? Give me the order ids and status.", "question_toks": [ "which", "order", "are", "made", "by", "customer", "named", "'", "jeramie", "'", "?", "give", "me", "order", "id", "and", "status", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, 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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Jeramie\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Which", "orders", "are", "made", "by", "the", "customer", "named", "``", "Jeramie", "''", "?", "Give", "me", "the", "order", "ids", "and", "status", "." ], "question_arg": [ [ "which" ], [ "order" ], [ "are" ], [ "made" ], [ "by" ], [ "customer" ], [ "named" ], [ "'" ], [ "jeramie" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "order", "id" ], [ "and" ], [ "status" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "order", "NN" ], [ "are", "VBP" ], [ "made", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "jeramie", "NN" ], [ "'", "''" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "order", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "status", "NN" ], [ ".", "." ] ], "values": [ "Jeramie" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(2) A(0) C(8) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = \"Jeramie\"", "query_toks": [ "SELECT", "T2.date_order_placed", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T1.customer_name", "=", "``", "Jeramie", "''" ], "query_toks_no_value": [ "select", "t2", ".", "date_order_placed", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "=", "value" ], "question": "Find the dates of orders which belong to the customer named \"Jeramie\".", "question_toks": [ "find", "date", "of", "order", "which", "belong", "to", "customer", "named", "'", "jeramie", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Jeramie\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "dates", "of", "orders", "which", "belong", "to", "the", "customer", "named", "``", "Jeramie", "''", "." ], "question_arg": [ [ "find" ], [ "date" ], [ "of" ], [ "order" ], [ "which" ], [ "belong" ], [ "to" ], [ "customer" ], [ "named" ], [ "'" ], [ "jeramie" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "date", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "which", "WDT" ], [ "belong", "NN" ], [ "to", "TO" ], [ "customer", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "jeramie", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Jeramie" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = \"Jeramie\"", "query_toks": [ "SELECT", "T2.date_order_placed", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T1.customer_name", "=", "``", "Jeramie", "''" ], "query_toks_no_value": [ "select", "t2", ".", "date_order_placed", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "=", "value" ], "question": "What are the dates of the orders made by the customer named \"Jeramie\"?", "question_toks": [ "what", "are", "date", "of", "order", "made", "by", "customer", "named", "'", "jeramie", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Jeramie\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "dates", "of", "the", "orders", "made", "by", "the", "customer", "named", "``", "Jeramie", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date" ], [ "of" ], [ "order" ], [ "made" ], [ "by" ], [ "customer" ], [ "named" ], [ "'" ], [ "jeramie" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "made", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "jeramie", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Jeramie" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= \"2009-01-01\" AND T2.date_order_placed <= \"2010-01-01\"", "query_toks": [ "SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.date_order_placed", ">", "=", "``", "2009-01-01", "''", "AND", "T2.date_order_placed", "<", "=", "``", "2010-01-01", "''" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "date_order_placed", ">", "=", "value", "and", "t2", ".", "date_order_placed", "<", "=", "value" ], "question": "Give me the names of customers who have placed orders between 2009-01-01 and 2010-01-01.", "question_toks": [ "give", "me", "name", "of", "customer", "who", "have", "placed", "order", "between", "2009-01-01", "and", "2010-01-01", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, 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, 5, [ 0, [ 0, 10, false ], null ], "\"2009-01-01\"", null ], "and", [ false, 6, [ 0, [ 0, 10, false ], null ], "\"2010-01-01\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Give", "me", "the", "names", "of", "customers", "who", "have", "placed", "orders", "between", "2009-01-01", "and", "2010-01-01", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "date", "order", "placed" ], [ "between" ], [ "2009-01-01" ], [ "and" ], [ "2010-01-01" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "placed", "VBN" ], [ "order", "NN" ], [ "between", "IN" ], [ "2009-01-01", "JJ" ], [ "and", "CC" ], [ "2010-01-01", "JJ" ], [ ".", "." ] ], "values": [ "2009-01-01", "2010", "2009", "1", "2010-01-01" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(7) A(0) C(9) T(2) V(0) Filter(6) A(0) C(9) T(2) V(4)" }, { "db_id": "tracking_orders", "query": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= \"2009-01-01\" AND T2.date_order_placed <= \"2010-01-01\"", "query_toks": [ "SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.date_order_placed", ">", "=", "``", "2009-01-01", "''", "AND", "T2.date_order_placed", "<", "=", "``", "2010-01-01", "''" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "date_order_placed", ">", "=", "value", "and", "t2", ".", "date_order_placed", "<", "=", "value" ], "question": "Which customers made orders between 2009-01-01 and 2010-01-01? Find their names.", "question_toks": [ "which", "customer", "made", "order", "between", "2009-01-01", "and", "2010-01-01", "?", "find", "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", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 10, false ], null ], "\"2009-01-01\"", null ], "and", [ false, 6, [ 0, [ 0, 10, false ], null ], "\"2010-01-01\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Which", "customers", "made", "orders", "between", "2009-01-01", "and", "2010-01-01", "?", "Find", "their", "names", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "made" ], [ "order" ], [ "between" ], [ "2009-01-01" ], [ "and" ], [ "2010-01-01" ], [ "?" ], [ "find" ], [ "their" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "made", "VBD" ], [ "order", "NN" ], [ "between", "IN" ], [ "2009-01-01", "JJ" ], [ "and", "CC" ], [ "2010-01-01", "JJ" ], [ "?", "." ], [ "find", "VB" ], [ "their", "PRP$" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "2009-01-01", "2010", "2009", "1", "2010-01-01" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(7) A(0) C(9) T(2) V(0) Filter(6) A(0) C(9) T(2) V(4)" }, { "db_id": "tracking_orders", "query": "SELECT DISTINCT T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed >= \"1975-01-01\" AND T1.date_order_placed <= \"1976-01-01\"", "query_toks": [ "SELECT", "DISTINCT", "T2.product_id", "FROM", "orders", "AS", "T1", "JOIN", "order_items", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "WHERE", "T1.date_order_placed", ">", "=", "``", "1975-01-01", "''", "AND", "T1.date_order_placed", "<", "=", "``", "1976-01-01", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "product_id", "from", "orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "date_order_placed", ">", "=", "value", "and", "t1", ".", "date_order_placed", "<", "=", "value" ], "question": "Give me a list of distinct product ids from orders placed between 1975-01-01 and 1976-01-01?", "question_toks": [ "give", "me", "a", "list", "of", "distinct", "product", "id", "from", "order", "placed", "between", "1975-01-01", "and", "1976-01-01", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 10, false ], null ], "\"1975-01-01\"", null ], "and", [ false, 6, [ 0, [ 0, 10, false ], null ], "\"1976-01-01\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Give", "me", "a", "list", "of", "distinct", "product", "ids", "from", "orders", "placed", "between", "1975-01-01", "and", "1976-01-01", "?" ], "question_arg": [ [ "give" ], [ "me" ], [ "a" ], [ "list" ], [ "of" ], [ "distinct" ], [ "product", "id" ], [ "from" ], [ "order" ], [ "placed" ], [ "between" ], [ "1975-01-01" ], [ "and" ], [ "1976-01-01" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "a", "DT" ], [ "list", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "product", "NN" ], [ "id", "NN" ], [ "from", "IN" ], [ "order", "NN" ], [ "placed", "VBN" ], [ "between", "IN" ], [ "1975-01-01", "JJ" ], [ "and", "CC" ], [ "1976-01-01", "JJ" ], [ "?", "." ] ], "values": [ "1976-01-01", "1975-01-01", "1", "1975", "1976" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(11) T(4) Filter(0) Filter(7) A(0) C(9) T(2) V(1) Filter(6) A(0) C(9) T(2) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT DISTINCT T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed >= \"1975-01-01\" AND T1.date_order_placed <= \"1976-01-01\"", "query_toks": [ "SELECT", "DISTINCT", "T2.product_id", "FROM", "orders", "AS", "T1", "JOIN", "order_items", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "WHERE", "T1.date_order_placed", ">", "=", "``", "1975-01-01", "''", "AND", "T1.date_order_placed", "<", "=", "``", "1976-01-01", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "product_id", "from", "orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "date_order_placed", ">", "=", "value", "and", "t1", ".", "date_order_placed", "<", "=", "value" ], "question": "What are the distinct ids of products ordered between 1975-01-01 and 1976-01-01??", "question_toks": [ "what", "are", "distinct", "id", "of", "product", "ordered", "between", "1975-01-01", "and", "1976-01-01", "?", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 10, false ], null ], "\"1975-01-01\"", null ], "and", [ false, 6, [ 0, [ 0, 10, false ], null ], "\"1976-01-01\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "distinct", "ids", "of", "products", "ordered", "between", "1975-01-01", "and", "1976-01-01", "?", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "id" ], [ "of" ], [ "product" ], [ "ordered" ], [ "between" ], [ "1975-01-01" ], [ "and" ], [ "1976-01-01" ], [ "?" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "id", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "ordered", "VBN" ], [ "between", "IN" ], [ "1975-01-01", "JJ" ], [ "and", "CC" ], [ "1976-01-01", "JJ" ], [ "?", "." ], [ "?", "." ] ], "values": [ "1976-01-01", "1975-01-01", "1", "1975", "1976" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(11) T(4) Filter(0) Filter(7) A(0) C(9) T(2) V(1) Filter(6) A(0) C(9) T(2) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Shipped\"", "query_toks": [ "SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status", "=", "``", "On", "Road", "''", "INTERSECT", "SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status", "=", "``", "Shipped", "''" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status", "=", "value", "intersect", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status", "=", "value" ], "question": "Find the names of the customers who have order status both \"On Road\" and \"Shipped\".", "question_toks": [ "find", "name", "of", "customer", "who", "have", "order", "status", "both", "'", "on", "road", "'", "and", "'", "shipped", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, 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, 8, 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 ], "\"Shipped\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"On Road\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "customers", "who", "have", "order", "status", "both", "``", "On", "Road", "''", "and", "``", "Shipped", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "order", "status" ], [ "both" ], [ "'" ], [ "on" ], [ "road" ], [ "'" ], [ "and" ], [ "'" ], [ "shipped" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "order", "NN" ], [ "status", "NN" ], [ "both", "DT" ], [ "'", "POS" ], [ "on", "IN" ], [ "road", "NN" ], [ "'", "''" ], [ "and", "CC" ], [ "'", "POS" ], [ "shipped", "VBN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "On Road", "Shipped" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(8) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(8) T(2) V(1)" }, { "db_id": "tracking_orders", "query": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Shipped\"", "query_toks": [ "SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status", "=", "``", "On", "Road", "''", "INTERSECT", "SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status", "=", "``", "Shipped", "''" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status", "=", "value", "intersect", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status", "=", "value" ], "question": "Which customers have both \"On Road\" and \"Shipped\" as order status? List the customer names.", "question_toks": [ "which", "customer", "have", "both", "'", "on", "road", "'", "and", "'", "shipped", "'", "a", "order", "status", "?", "list", "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", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, 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 ], "\"Shipped\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"On Road\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Which", "customers", "have", "both", "``", "On", "Road", "''", "and", "``", "Shipped", "''", "as", "order", "status", "?", "List", "the", "customer", "names", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "have" ], [ "both" ], [ "'" ], [ "on" ], [ "road" ], [ "'" ], [ "and" ], [ "'" ], [ "shipped" ], [ "'" ], [ "a" ], [ "order", "status" ], [ "?" ], [ "list" ], [ "customer", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "both", "DT" ], [ "'", "''" ], [ "on", "IN" ], [ "road", "NN" ], [ "'", "''" ], [ "and", "CC" ], [ "'", "POS" ], [ "shipped", "VBN" ], [ "'", "''" ], [ "a", "DT" ], [ "order", "NN" ], [ "status", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "customer", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "On Road", "Shipped" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(8) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(8) T(2) V(1)" }, { "db_id": "tracking_orders", "query": "SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Shipped\"", "query_toks": [ "SELECT", "T1.customer_id", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status", "=", "``", "On", "Road", "''", "INTERSECT", "SELECT", "T1.customer_id", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status", "=", "``", "Shipped", "''" ], "query_toks_no_value": [ "select", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status", "=", "value", "intersect", "select", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status", "=", "value" ], "question": "Find the id of the customers who have order status both \"On Road\" and \"Shipped\".", "question_toks": [ "find", "id", "of", "customer", "who", "have", "order", "status", "both", "'", "on", "road", "'", "and", "'", "shipped", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, 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, 8, 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Shipped\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"On Road\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "id", "of", "the", "customers", "who", "have", "order", "status", "both", "``", "On", "Road", "''", "and", "``", "Shipped", "''", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "order", "status" ], [ "both" ], [ "'" ], [ "on" ], [ "road" ], [ "'" ], [ "and" ], [ "'" ], [ "shipped" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "order", "NN" ], [ "status", "NN" ], [ "both", "DT" ], [ "'", "POS" ], [ "on", "IN" ], [ "road", "NN" ], [ "'", "''" ], [ "and", "CC" ], [ "'", "POS" ], [ "shipped", "VBN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "On Road", "Shipped" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(8) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(8) T(2) V(1)" }, { "db_id": "tracking_orders", "query": "SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Shipped\"", "query_toks": [ "SELECT", "T1.customer_id", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status", "=", "``", "On", "Road", "''", "INTERSECT", "SELECT", "T1.customer_id", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status", "=", "``", "Shipped", "''" ], "query_toks_no_value": [ "select", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status", "=", "value", "intersect", "select", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status", "=", "value" ], "question": "Which customers have both \"On Road\" and \"Shipped\" as order status? List the customer ids.", "question_toks": [ "which", "customer", "have", "both", "'", "on", "road", "'", "and", "'", "shipped", "'", "a", "order", "status", "?", "list", "customer", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, 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, 8, 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Shipped\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"On Road\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Which", "customers", "have", "both", "``", "On", "Road", "''", "and", "``", "Shipped", "''", "as", "order", "status", "?", "List", "the", "customer", "ids", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "have" ], [ "both" ], [ "'" ], [ "on" ], [ "road" ], [ "'" ], [ "and" ], [ "'" ], [ "shipped" ], [ "'" ], [ "a" ], [ "order", "status" ], [ "?" ], [ "list" ], [ "customer", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "both", "DT" ], [ "'", "''" ], [ "on", "IN" ], [ "road", "NN" ], [ "'", "''" ], [ "and", "CC" ], [ "'", "POS" ], [ "shipped", "VBN" ], [ "'", "''" ], [ "a", "DT" ], [ "order", "NN" ], [ "status", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "customer", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "On Road", "Shipped" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(8) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(8) T(2) V(1)" }, { "db_id": "tracking_orders", "query": "SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452", "query_toks": [ "SELECT", "T1.date_order_placed", "FROM", "orders", "AS", "T1", "JOIN", "shipments", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "WHERE", "T2.shipment_tracking_number", "=", "3452" ], "query_toks_no_value": [ "select", "t1", ".", "date_order_placed", "from", "orders", "as", "t1", "join", "shipments", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t2", ".", "shipment_tracking_number", "=", "value" ], "question": "When was the order placed whose shipment tracking number is 3452? Give me the date.", "question_toks": [ "when", "wa", "order", "placed", "whose", "shipment", "tracking", "number", "is", "3452", "?", "give", "me", "date", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], 3452.0, null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "When", "was", "the", "order", "placed", "whose", "shipment", "tracking", "number", "is", "3452", "?", "Give", "me", "the", "date", "." ], "question_arg": [ [ "when" ], [ "wa" ], [ "order" ], [ "placed" ], [ "whose" ], [ "shipment", "tracking", "number" ], [ "is" ], [ "3452" ], [ "?" ], [ "give" ], [ "me" ], [ "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "wa", "JJ" ], [ "order", "NN" ], [ "placed", "VBD" ], [ "whose", "WP$" ], [ "shipment", "JJ" ], [ "tracking", "VBG" ], [ "number", "NN" ], [ "is", "VBZ" ], [ "3452", "CD" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "date", "NN" ], [ ".", "." ] ], "values": [ "Packing", "3452" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(18) T(5) V(1)" }, { "db_id": "tracking_orders", "query": "SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452", "query_toks": [ "SELECT", "T1.date_order_placed", "FROM", "orders", "AS", "T1", "JOIN", "shipments", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "WHERE", "T2.shipment_tracking_number", "=", "3452" ], "query_toks_no_value": [ "select", "t1", ".", "date_order_placed", "from", "orders", "as", "t1", "join", "shipments", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t2", ".", "shipment_tracking_number", "=", "value" ], "question": "On which day was the order placed whose shipment tracking number is 3452?", "question_toks": [ "on", "which", "day", "wa", "order", "placed", "whose", "shipment", "tracking", "number", "is", "3452", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], 3452.0, null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "On", "which", "day", "was", "the", "order", "placed", "whose", "shipment", "tracking", "number", "is", "3452", "?" ], "question_arg": [ [ "on" ], [ "which" ], [ "day" ], [ "wa" ], [ "order" ], [ "placed" ], [ "whose" ], [ "shipment", "tracking", "number" ], [ "is" ], [ "3452" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "on", "IN" ], [ "which", "WDT" ], [ "day", "NN" ], [ "wa", "VBD" ], [ "order", "NN" ], [ "placed", "VBD" ], [ "whose", "WP$" ], [ "shipment", "JJ" ], [ "tracking", "VBG" ], [ "number", "NN" ], [ "is", "VBZ" ], [ "3452", "CD" ], [ "?", "." ] ], "values": [ "Packing", "3452" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(18) T(5) V(1)" }, { "db_id": "tracking_orders", "query": "SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.invoice_number = 10", "query_toks": [ "SELECT", "T1.date_order_placed", "FROM", "orders", "AS", "T1", "JOIN", "shipments", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "WHERE", "T2.invoice_number", "=", "10" ], "query_toks_no_value": [ "select", "t1", ".", "date_order_placed", "from", "orders", "as", "t1", "join", "shipments", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t2", ".", "invoice_number", "=", "value" ], "question": "What is the placement date of the order whose invoice number is 10?", "question_toks": [ "what", "is", "placement", "date", "of", "order", "whose", "invoice", "number", "is", "10", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 10.0, null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "placement", "date", "of", "the", "order", "whose", "invoice", "number", "is", "10", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "placement" ], [ "date" ], [ "of" ], [ "order" ], [ "whose" ], [ "invoice", "number" ], [ "is" ], [ "10" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "placement", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "whose", "WP$" ], [ "invoice", "NN" ], [ "number", "NN" ], [ "is", "VBZ" ], [ "10", "CD" ], [ "?", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(4) T(5) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.invoice_number = 10", "query_toks": [ "SELECT", "T1.date_order_placed", "FROM", "orders", "AS", "T1", "JOIN", "shipments", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "WHERE", "T2.invoice_number", "=", "10" ], "query_toks_no_value": [ "select", "t1", ".", "date_order_placed", "from", "orders", "as", "t1", "join", "shipments", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t2", ".", "invoice_number", "=", "value" ], "question": "On what day was the order with invoice number 10 placed?", "question_toks": [ "on", "what", "day", "wa", "order", "with", "invoice", "number", "10", "placed", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 10.0, null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "On", "what", "day", "was", "the", "order", "with", "invoice", "number", "10", "placed", "?" ], "question_arg": [ [ "on" ], [ "what" ], [ "day" ], [ "wa" ], [ "order" ], [ "with" ], [ "invoice", "number" ], [ "10" ], [ "placed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "on", "IN" ], [ "what", "WP" ], [ "day", "NN" ], [ "wa", "VBD" ], [ "order", "NN" ], [ "with", "IN" ], [ "invoice", "JJ" ], [ "number", "NN" ], [ "10", "CD" ], [ "placed", "VBN" ], [ "?", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(4) T(5) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT count(*) , T3.product_id FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T3.product_id", "FROM", "orders", "AS", "T1", "JOIN", "order_items", "AS", "T2", "JOIN", "products", "AS", "T3", "ON", "T1.order_id", "=", "T2.order_id", "AND", "T2.product_id", "=", "T3.product_id", "GROUP", "BY", "T3.product_id" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t3", ".", "product_id", "from", "orders", "as", "t1", "join", "order_items", "as", "t2", "join", "products", "as", "t3", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "and", "t2", ".", "product_id", "=", "t3", ".", "product_id", "group", "by", "t3", ".", "product_id" ], "question": "List the count and id of each product in all the orders.", "question_toks": [ "list", "count", "and", "id", "of", "each", "product", "in", "all", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 17, false ], null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "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": [ [ false, 8, [ 0, [ 0, 12, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 16, 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, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "List", "the", "count", "and", "id", "of", "each", "product", "in", "all", "the", "orders", "." ], "question_arg": [ [ "list" ], [ "count" ], [ "and" ], [ "id" ], [ "of" ], [ "each" ], [ "product" ], [ "in" ], [ "all" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "count", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "product", "NN" ], [ "in", "IN" ], [ "all", "DT" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(4) A(0) C(11) T(3) Filter(0) Filter(18) A(0) C(11) T(3) Root(5) Sel(0) N(0) A(0) C(11) T(4) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(4)" }, { "db_id": "tracking_orders", "query": "SELECT count(*) , T3.product_id FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T3.product_id", "FROM", "orders", "AS", "T1", "JOIN", "order_items", "AS", "T2", "JOIN", "products", "AS", "T3", "ON", "T1.order_id", "=", "T2.order_id", "AND", "T2.product_id", "=", "T3.product_id", "GROUP", "BY", "T3.product_id" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t3", ".", "product_id", "from", "orders", "as", "t1", "join", "order_items", "as", "t2", "join", "products", "as", "t3", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "and", "t2", ".", "product_id", "=", "t3", ".", "product_id", "group", "by", "t3", ".", "product_id" ], "question": "For each product, return its id and the number of times it was ordered.", "question_toks": [ "for", "each", "product", ",", "return", "it", "id", "and", "number", "of", "time", "it", "wa", "ordered", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 17, false ], null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "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": [ [ false, 8, [ 0, [ 0, 12, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 16, 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, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "For", "each", "product", ",", "return", "its", "id", "and", "the", "number", "of", "times", "it", "was", "ordered", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "product" ], [ "," ], [ "return" ], [ "it" ], [ "id" ], [ "and" ], [ "number" ], [ "of" ], [ "time" ], [ "it" ], [ "wa" ], [ "ordered" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "product", "NN" ], [ ",", "," ], [ "return", "VB" ], [ "it", "PRP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "it", "PRP" ], [ "wa", "VBZ" ], [ "ordered", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(4) A(0) C(11) T(3) Filter(0) Filter(18) A(0) C(11) T(3) Root(5) Sel(0) N(0) A(0) C(11) T(4) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(4)" }, { "db_id": "tracking_orders", "query": "SELECT T3.product_name , count(*) FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id", "query_toks": [ "SELECT", "T3.product_name", ",", "count", "(", "*", ")", "FROM", "orders", "AS", "T1", "JOIN", "order_items", "AS", "T2", "JOIN", "products", "AS", "T3", "ON", "T1.order_id", "=", "T2.order_id", "AND", "T2.product_id", "=", "T3.product_id", "GROUP", "BY", "T3.product_id" ], "query_toks_no_value": [ "select", "t3", ".", "product_name", ",", "count", "(", "*", ")", "from", "orders", "as", "t1", "join", "order_items", "as", "t2", "join", "products", "as", "t3", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "and", "t2", ".", "product_id", "=", "t3", ".", "product_id", "group", "by", "t3", ".", "product_id" ], "question": "List the name and count of each product in all orders.", "question_toks": [ "list", "name", "and", "count", "of", "each", "product", "in", "all", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 17, false ], null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 16, 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, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "List", "the", "name", "and", "count", "of", "each", "product", "in", "all", "orders", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "count" ], [ "of" ], [ "each" ], [ "product" ], [ "in" ], [ "all" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "count", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "product", "NN" ], [ "in", "IN" ], [ "all", "DT" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(12) T(3) A(3) C(0) T(4) Filter(0) Filter(18) A(0) C(11) T(3) Root(5) Sel(0) N(0) A(0) C(11) T(4) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(4)" }, { "db_id": "tracking_orders", "query": "SELECT T3.product_name , count(*) FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id", "query_toks": [ "SELECT", "T3.product_name", ",", "count", "(", "*", ")", "FROM", "orders", "AS", "T1", "JOIN", "order_items", "AS", "T2", "JOIN", "products", "AS", "T3", "ON", "T1.order_id", "=", "T2.order_id", "AND", "T2.product_id", "=", "T3.product_id", "GROUP", "BY", "T3.product_id" ], "query_toks_no_value": [ "select", "t3", ".", "product_name", ",", "count", "(", "*", ")", "from", "orders", "as", "t1", "join", "order_items", "as", "t2", "join", "products", "as", "t3", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "and", "t2", ".", "product_id", "=", "t3", ".", "product_id", "group", "by", "t3", ".", "product_id" ], "question": "For each product, show its name and the number of times it was ordered.", "question_toks": [ "for", "each", "product", ",", "show", "it", "name", "and", "number", "of", "time", "it", "wa", "ordered", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 17, false ], null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 16, 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, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "For", "each", "product", ",", "show", "its", "name", "and", "the", "number", "of", "times", "it", "was", "ordered", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "product" ], [ "," ], [ "show" ], [ "it" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "time" ], [ "it" ], [ "wa" ], [ "ordered" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "product", "NN" ], [ ",", "," ], [ "show", "VBP" ], [ "it", "PRP" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "it", "PRP" ], [ "wa", "VBZ" ], [ "ordered", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(12) T(3) A(3) C(0) T(4) Filter(0) Filter(18) A(0) C(11) T(3) Root(5) Sel(0) N(0) A(0) C(11) T(4) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(4)" }, { "db_id": "tracking_orders", "query": "SELECT order_id FROM shipments WHERE shipment_date > \"2000-01-01\"", "query_toks": [ "SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", ">", "``", "2000-01-01", "''" ], "query_toks_no_value": [ "select", "order_id", "from", "shipments", "where", "shipment_date", ">", "value" ], "question": "Find the ids of orders which are shipped after 2000-01-01.", "question_toks": [ "find", "id", "of", "order", "which", "are", "shipped", "after", "2000-01-01", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 24, false ], null ], "\"2000-01-01\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "ids", "of", "orders", "which", "are", "shipped", "after", "2000-01-01", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "order" ], [ "which" ], [ "are" ], [ "shipped" ], [ "after" ], [ "2000-01-01" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "shipped", "VBN" ], [ "after", "IN" ], [ "2000-01-01", "JJ" ], [ ".", "." ] ], "values": [ "1", "2000-01-01", "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(5) Filter(5) A(0) C(19) T(5) V(1)" }, { "db_id": "tracking_orders", "query": "SELECT order_id FROM shipments WHERE shipment_date > \"2000-01-01\"", "query_toks": [ "SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", ">", "``", "2000-01-01", "''" ], "query_toks_no_value": [ "select", "order_id", "from", "shipments", "where", "shipment_date", ">", "value" ], "question": "Which orders have shipment after 2000-01-01? Give me the order ids.", "question_toks": [ "which", "order", "have", "shipment", "after", "2000-01-01", "?", "give", "me", "order", "id", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 24, false ], null ], "\"2000-01-01\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Which", "orders", "have", "shipment", "after", "2000-01-01", "?", "Give", "me", "the", "order", "ids", "." ], "question_arg": [ [ "which" ], [ "order" ], [ "have" ], [ "shipment" ], [ "after" ], [ "2000-01-01" ], [ "?" ], [ "give" ], [ "me" ], [ "order", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "order", "NN" ], [ "have", "VBP" ], [ "shipment", "VBN" ], [ "after", "IN" ], [ "2000-01-01", "JJ" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "order", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "1", "2000-01-01", "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(5) Filter(5) A(0) C(19) T(5) V(1)" }, { "db_id": "tracking_orders", "query": "SELECT order_id FROM shipments WHERE shipment_date = (SELECT max(shipment_date) FROM shipments)", "query_toks": [ "SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", "=", "(", "SELECT", "max", "(", "shipment_date", ")", "FROM", "shipments", ")" ], "query_toks_no_value": [ "select", "order_id", "from", "shipments", "where", "shipment_date", "=", "(", "select", "max", "(", "shipment_date", ")", "from", "shipments", ")" ], "question": "Find the id of the order which is shipped most recently.", "question_toks": [ "find", "id", "of", "order", "which", "is", "shipped", "most", "recently", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "id", "of", "the", "order", "which", "is", "shipped", "most", "recently", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "order" ], [ "which" ], [ "is" ], [ "shipped" ], [ "most" ], [ "recently" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "which", "WDT" ], [ "is", "VBZ" ], [ "shipped", "VBN" ], [ "most", "RBS" ], [ "recently", "RB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(5) Filter(11) A(0) C(19) T(5) Root(5) Sel(0) N(0) A(1) C(19) T(5)" }, { "db_id": "tracking_orders", "query": "SELECT order_id FROM shipments WHERE shipment_date = (SELECT max(shipment_date) FROM shipments)", "query_toks": [ "SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", "=", "(", "SELECT", "max", "(", "shipment_date", ")", "FROM", "shipments", ")" ], "query_toks_no_value": [ "select", "order_id", "from", "shipments", "where", "shipment_date", "=", "(", "select", "max", "(", "shipment_date", ")", "from", "shipments", ")" ], "question": "Which order has the most recent shipment? Give me the order id.", "question_toks": [ "which", "order", "ha", "most", "recent", "shipment", "?", "give", "me", "order", "id", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Which", "order", "has", "the", "most", "recent", "shipment", "?", "Give", "me", "the", "order", "id", "." ], "question_arg": [ [ "which" ], [ "order" ], [ "ha" ], [ "most" ], [ "recent" ], [ "shipment" ], [ "?" ], [ "give" ], [ "me" ], [ "order", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "order", "NN" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "recent", "JJ" ], [ "shipment", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "order", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(5) Filter(11) A(0) C(19) T(5) Root(5) Sel(0) N(0) A(1) C(19) T(5)" }, { "db_id": "tracking_orders", "query": "SELECT DISTINCT product_name FROM products ORDER BY product_name", "query_toks": [ "SELECT", "DISTINCT", "product_name", "FROM", "products", "ORDER", "BY", "product_name" ], "query_toks_no_value": [ "select", "distinct", "product_name", "from", "products", "order", "by", "product_name" ], "question": "List the names of all distinct products in alphabetical order.", "question_toks": [ "list", "name", "of", "all", "distinct", "product", "in", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "distinct", "products", "in", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "distinct" ], [ "product" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "product", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(12) T(3) Order(1) A(0) C(12) T(3)" }, { "db_id": "tracking_orders", "query": "SELECT DISTINCT product_name FROM products ORDER BY product_name", "query_toks": [ "SELECT", "DISTINCT", "product_name", "FROM", "products", "ORDER", "BY", "product_name" ], "query_toks_no_value": [ "select", "distinct", "product_name", "from", "products", "order", "by", "product_name" ], "question": "Sort all the distinct products in alphabetical order.", "question_toks": [ "sort", "all", "distinct", "product", "in", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Sort", "all", "the", "distinct", "products", "in", "alphabetical", "order", "." ], "question_arg": [ [ "sort" ], [ "all" ], [ "distinct" ], [ "product" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "sort", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "product", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(12) T(3) Order(1) A(0) C(12) T(3)" }, { "db_id": "tracking_orders", "query": "SELECT DISTINCT order_id FROM orders ORDER BY date_order_placed", "query_toks": [ "SELECT", "DISTINCT", "order_id", "FROM", "orders", "ORDER", "BY", "date_order_placed" ], "query_toks_no_value": [ "select", "distinct", "order_id", "from", "orders", "order", "by", "date_order_placed" ], "question": "List the ids of all distinct orders ordered by placed date.", "question_toks": [ "list", "id", "of", "all", "distinct", "order", "ordered", "by", "placed", "date", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "List", "the", "ids", "of", "all", "distinct", "orders", "ordered", "by", "placed", "date", "." ], "question_arg": [ [ "list" ], [ "id" ], [ "of" ], [ "all" ], [ "distinct" ], [ "order" ], [ "ordered" ], [ "by" ], [ "date", "order", "placed" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "order", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "placed", "JJ" ], [ "date", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(7) T(2) Order(1) A(0) C(9) T(2)" }, { "db_id": "tracking_orders", "query": "SELECT DISTINCT order_id FROM orders ORDER BY date_order_placed", "query_toks": [ "SELECT", "DISTINCT", "order_id", "FROM", "orders", "ORDER", "BY", "date_order_placed" ], "query_toks_no_value": [ "select", "distinct", "order_id", "from", "orders", "order", "by", "date_order_placed" ], "question": "What are ids of the all distinct orders, sorted by placement date?", "question_toks": [ "what", "are", "id", "of", "all", "distinct", "order", ",", "sorted", "by", "placement", "date", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "ids", "of", "the", "all", "distinct", "orders", ",", "sorted", "by", "placement", "date", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "distinct" ], [ "order" ], [ "," ], [ "sorted" ], [ "by" ], [ "placement" ], [ "date" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "order", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "placement", "NN" ], [ "date", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(7) T(2) Order(1) A(0) C(9) T(2)" }, { "db_id": "tracking_orders", "query": "SELECT T1.order_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.order_id", "FROM", "orders", "AS", "T1", "JOIN", "order_items", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "GROUP", "BY", "T1.order_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "order_id", "from", "orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "group", "by", "t1", ".", "order_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the id of the order which has the most items?", "question_toks": [ "what", "is", "id", "of", "order", "which", "ha", "most", "item", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "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": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "order", "which", "has", "the", "most", "items", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "order" ], [ "which" ], [ "ha" ], [ "most" ], [ "item" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "which", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "item", "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(4) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(4)" }, { "db_id": "tracking_orders", "query": "SELECT T1.order_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.order_id", "FROM", "orders", "AS", "T1", "JOIN", "order_items", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "GROUP", "BY", "T1.order_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "order_id", "from", "orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "group", "by", "t1", ".", "order_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which order deals with the most items? Return the order id.", "question_toks": [ "which", "order", "deal", "with", "most", "item", "?", "return", "order", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "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": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Which", "order", "deals", "with", "the", "most", "items", "?", "Return", "the", "order", "id", "." ], "question_arg": [ [ "which" ], [ "order" ], [ "deal" ], [ "with" ], [ "most" ], [ "item" ], [ "?" ], [ "return" ], [ "order", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "order", "NN" ], [ "deal", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "item", "NN" ], [ "?", "." ], [ "return", "NN" ], [ "order", "NN" ], [ "id", "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(4) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(4)" }, { "db_id": "tracking_orders", "query": "SELECT T1.customer_name FROM customers AS T1 JOIN orders 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_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "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_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the customer who has the largest number of orders?", "question_toks": [ "what", "is", "name", "of", "customer", "who", "ha", "largest", "number", "of", "order", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 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", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "customer", "who", "has", "the", "largest", "number", "of", "orders", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "order", "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": "tracking_orders", "query": "SELECT T1.customer_name FROM customers AS T1 JOIN orders 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_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "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_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name of the customer who made the most orders.", "question_toks": [ "find", "name", "of", "customer", "who", "made", "most", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 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", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "customer", "who", "made", "the", "most", "orders", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "made" ], [ "most" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "most", "RBS" ], [ "order", "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": "tracking_orders", "query": "SELECT invoice_number FROM invoices WHERE invoice_date < \"1989-09-03\" OR invoice_date > \"2007-12-25\"", "query_toks": [ "SELECT", "invoice_number", "FROM", "invoices", "WHERE", "invoice_date", "<", "``", "1989-09-03", "''", "OR", "invoice_date", ">", "``", "2007-12-25", "''" ], "query_toks_no_value": [ "select", "invoice_number", "from", "invoices", "where", "invoice_date", "<", "value", "or", "invoice_date", ">", "value" ], "question": "Find the invoice numbers which are created before 1989-09-03 or after 2007-12-25.", "question_toks": [ "find", "invoice", "number", "which", "are", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 5, false ], null ], "\"1989-09-03\"", null ], "or", [ false, 3, [ 0, [ 0, 5, false ], null ], "\"2007-12-25\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "invoice", "numbers", "which", "are", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "." ], "question_arg": [ [ "find" ], [ "invoice", "number" ], [ "which" ], [ "are" ], [ "created" ], [ "before" ], [ "1989-09-03" ], [ "or" ], [ "after" ], [ "2007-12-25" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "invoice", "NN" ], [ "number", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "created", "VBN" ], [ "before", "IN" ], [ "1989-09-03", "CD" ], [ "or", "CC" ], [ "after", "IN" ], [ "2007-12-25", "JJ" ], [ ".", "." ] ], "values": [ "1989-09-03", "12", "1989", "9", "25", "2007", "2007-12-25", "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(1) Filter(4) A(0) C(5) T(1) V(0) Filter(5) A(0) C(5) T(1) V(6)" }, { "db_id": "tracking_orders", "query": "SELECT invoice_number FROM invoices WHERE invoice_date < \"1989-09-03\" OR invoice_date > \"2007-12-25\"", "query_toks": [ "SELECT", "invoice_number", "FROM", "invoices", "WHERE", "invoice_date", "<", "``", "1989-09-03", "''", "OR", "invoice_date", ">", "``", "2007-12-25", "''" ], "query_toks_no_value": [ "select", "invoice_number", "from", "invoices", "where", "invoice_date", "<", "value", "or", "invoice_date", ">", "value" ], "question": "What are the invoice numbers created before 1989-09-03 or after 2007-12-25?", "question_toks": [ "what", "are", "invoice", "number", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 5, false ], null ], "\"1989-09-03\"", null ], "or", [ false, 3, [ 0, [ 0, 5, false ], null ], "\"2007-12-25\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "invoice", "numbers", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "invoice", "number" ], [ "created" ], [ "before" ], [ "1989-09-03" ], [ "or" ], [ "after" ], [ "2007-12-25" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "invoice", "JJ" ], [ "number", "NN" ], [ "created", "VBN" ], [ "before", "IN" ], [ "1989-09-03", "CD" ], [ "or", "CC" ], [ "after", "IN" ], [ "2007-12-25", "CD" ], [ "?", "." ] ], "values": [ "1989-09-03", "1989", "12", "9", "25", "2007", "2007-12-25", "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(1) Filter(4) A(0) C(5) T(1) V(0) Filter(5) A(0) C(5) T(1) V(6)" }, { "db_id": "tracking_orders", "query": "SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < \"1989-09-03\" OR invoice_date > \"2007-12-25\"", "query_toks": [ "SELECT", "DISTINCT", "invoice_details", "FROM", "invoices", "WHERE", "invoice_date", "<", "``", "1989-09-03", "''", "OR", "invoice_date", ">", "``", "2007-12-25", "''" ], "query_toks_no_value": [ "select", "distinct", "invoice_details", "from", "invoices", "where", "invoice_date", "<", "value", "or", "invoice_date", ">", "value" ], "question": "Find the distinct details of invoices which are created before 1989-09-03 or after 2007-12-25.", "question_toks": [ "find", "distinct", "detail", "of", "invoice", "which", "are", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "." ], "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, 4, [ 0, [ 0, 5, false ], null ], "\"1989-09-03\"", null ], "or", [ false, 3, [ 0, [ 0, 5, false ], null ], "\"2007-12-25\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "distinct", "details", "of", "invoices", "which", "are", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "detail" ], [ "of" ], [ "invoice" ], [ "which" ], [ "are" ], [ "created" ], [ "before" ], [ "1989-09-03" ], [ "or" ], [ "after" ], [ "2007-12-25" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "detail", "NN" ], [ "of", "IN" ], [ "invoice", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "created", "VBN" ], [ "before", "IN" ], [ "1989-09-03", "CD" ], [ "or", "CC" ], [ "after", "IN" ], [ "2007-12-25", "JJ" ], [ ".", "." ] ], "values": [ "1989-09-03", "12", "1989", "9", "25", "2007", "2007-12-25", "3" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(1) Filter(1) Filter(4) A(0) C(5) T(1) V(0) Filter(5) A(0) C(5) T(1) V(6)" }, { "db_id": "tracking_orders", "query": "SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < \"1989-09-03\" OR invoice_date > \"2007-12-25\"", "query_toks": [ "SELECT", "DISTINCT", "invoice_details", "FROM", "invoices", "WHERE", "invoice_date", "<", "``", "1989-09-03", "''", "OR", "invoice_date", ">", "``", "2007-12-25", "''" ], "query_toks_no_value": [ "select", "distinct", "invoice_details", "from", "invoices", "where", "invoice_date", "<", "value", "or", "invoice_date", ">", "value" ], "question": "What are the distinct details of invoices created before 1989-09-03 or after 2007-12-25?", "question_toks": [ "what", "are", "distinct", "detail", "of", "invoice", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "?" ], "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, 4, [ 0, [ 0, 5, false ], null ], "\"1989-09-03\"", null ], "or", [ false, 3, [ 0, [ 0, 5, false ], null ], "\"2007-12-25\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "distinct", "details", "of", "invoices", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "detail" ], [ "of" ], [ "invoice" ], [ "created" ], [ "before" ], [ "1989-09-03" ], [ "or" ], [ "after" ], [ "2007-12-25" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "detail", "NN" ], [ "of", "IN" ], [ "invoice", "NN" ], [ "created", "VBN" ], [ "before", "IN" ], [ "1989-09-03", "CD" ], [ "or", "CC" ], [ "after", "IN" ], [ "2007-12-25", "CD" ], [ "?", "." ] ], "values": [ "1989-09-03", "1989", "12", "9", "25", "2007", "2007-12-25", "3" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(1) Filter(1) Filter(4) A(0) C(5) T(1) V(0) Filter(5) A(0) C(5) T(1) V(6)" }, { "db_id": "tracking_orders", "query": "SELECT T2.customer_name , count(*) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.customer_name", ",", "count", "(", "*", ")", "FROM", "orders", "AS", "T1", "JOIN", "customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T2.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "customer_name", ",", "count", "(", "*", ")", "from", "orders", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t2", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "For each customer who has at least two orders, find the customer name and number of orders made.", "question_toks": [ "for", "each", "customer", "who", "ha", "at", "least", "two", "order", ",", "find", "customer", "name", "and", "number", "of", "order", "made", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, 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 ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "For", "each", "customer", "who", "has", "at", "least", "two", "orders", ",", "find", "the", "customer", "name", "and", "number", "of", "orders", "made", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "customer" ], [ "who" ], [ "ha" ], [ "at" ], [ "least" ], [ "two" ], [ "order" ], [ "," ], [ "find" ], [ "customer", "name" ], [ "and" ], [ "number" ], [ "of" ], [ "order" ], [ "made" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "order", "NN" ], [ ",", "," ], [ "find", "VB" ], [ "customer", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "made", "VBN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT T2.customer_name , count(*) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.customer_name", ",", "count", "(", "*", ")", "FROM", "orders", "AS", "T1", "JOIN", "customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T2.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "customer_name", ",", "count", "(", "*", ")", "from", "orders", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t2", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Which customers have made at least two orders? Give me each customer name and number of orders made.", "question_toks": [ "which", "customer", "have", "made", "at", "least", "two", "order", "?", "give", "me", "each", "customer", "name", "and", "number", "of", "order", "made", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, 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 ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Which", "customers", "have", "made", "at", "least", "two", "orders", "?", "Give", "me", "each", "customer", "name", "and", "number", "of", "orders", "made", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "have" ], [ "made" ], [ "at" ], [ "least" ], [ "two" ], [ "order" ], [ "?" ], [ "give" ], [ "me" ], [ "each" ], [ "customer", "name" ], [ "and" ], [ "number" ], [ "of" ], [ "order" ], [ "made" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "made", "VBN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "order", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "each", "DT" ], [ "customer", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "made", "VBN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*) <= 2", "query_toks": [ "SELECT", "T2.customer_name", "FROM", "orders", "AS", "T1", "JOIN", "customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T2.customer_id", "HAVING", "count", "(", "*", ")", "<", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "customer_name", "from", "orders", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t2", ".", "customer_id", "having", "count", "(", "*", ")", "<", "=", "value" ], "question": "Find the name of the customers who have at most two orders.", "question_toks": [ "find", "name", "of", "customer", "who", "have", "at", "most", "two", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 6, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, 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 name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "customers", "who", "have", "at", "most", "two", "orders", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "at" ], [ "most" ], [ "two" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "at", "IN" ], [ "most", "JJS" ], [ "two", "CD" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "2" ], "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(2) Filter(6) A(3) C(0) T(2) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*) <= 2", "query_toks": [ "SELECT", "T2.customer_name", "FROM", "orders", "AS", "T1", "JOIN", "customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T2.customer_id", "HAVING", "count", "(", "*", ")", "<", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "customer_name", "from", "orders", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t2", ".", "customer_id", "having", "count", "(", "*", ")", "<", "=", "value" ], "question": "What are the names of the customers who have made two or less orders?", "question_toks": [ "what", "are", "name", "of", "customer", "who", "have", "made", "two", "or", "le", "order", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 6, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, 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 name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "customers", "who", "have", "made", "two", "or", "less", "orders", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "made" ], [ "two" ], [ "or" ], [ "le" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "made", "VBN" ], [ "two", "CD" ], [ "or", "CC" ], [ "le", "VB" ], [ "order", "NN" ], [ "?", "." ] ], "values": [ "2" ], "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(2) Filter(6) A(3) C(0) T(2) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = \"food\" GROUP BY T1.customer_id HAVING count(*) >= 1", "query_toks": [ "SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "JOIN", "order_items", "AS", "T3", "JOIN", "products", "AS", "T4", "ON", "T1.customer_id", "=", "T2.customer_id", "AND", "T2.order_id", "=", "T3.order_id", "AND", "T3.product_id", "=", "T4.product_id", "WHERE", "T4.product_name", "=", "``", "food", "''", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "join", "order_items", "as", "t3", "join", "products", "as", "t4", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "and", "t2", ".", "order_id", "=", "t3", ".", "order_id", "and", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_name", "=", "value", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "List the names of the customers who have once bought product \"food\".", "question_toks": [ "list", "name", "of", "customer", "who", "have", "once", "bought", "product", "'", "food", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 17, false ], null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ], [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 5, [ 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, 12, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 16, 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, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"food\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "List", "the", "names", "of", "the", "customers", "who", "have", "once", "bought", "product", "``", "food", "''", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "once" ], [ "bought" ], [ "product" ], [ "'" ], [ "food" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "once", "RB" ], [ "bought", "VBN" ], [ "product", "NN" ], [ "'", "''" ], [ "food", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "1", "food" ], "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(11) T(3) Root(5) Sel(0) N(0) A(0) C(11) T(4) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(4) Filter(18) A(0) C(7) T(4) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = \"food\" GROUP BY T1.customer_id HAVING count(*) >= 1", "query_toks": [ "SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "JOIN", "order_items", "AS", "T3", "JOIN", "products", "AS", "T4", "ON", "T1.customer_id", "=", "T2.customer_id", "AND", "T2.order_id", "=", "T3.order_id", "AND", "T3.product_id", "=", "T4.product_id", "WHERE", "T4.product_name", "=", "``", "food", "''", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "join", "order_items", "as", "t3", "join", "products", "as", "t4", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "and", "t2", ".", "order_id", "=", "t3", ".", "order_id", "and", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_name", "=", "value", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the names of the customers who bought product \"food\" at least once?", "question_toks": [ "what", "are", "name", "of", "customer", "who", "bought", "product", "'", "food", "'", "at", "least", "once", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 17, false ], null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ], [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 5, [ 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, 12, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 16, 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, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 17, 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, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"food\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "customers", "who", "bought", "product", "``", "food", "''", "at", "least", "once", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "bought" ], [ "product" ], [ "'" ], [ "food" ], [ "'" ], [ "at" ], [ "least" ], [ "once" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "bought", "VBD" ], [ "product", "NN" ], [ "'", "''" ], [ "food", "NN" ], [ "'", "''" ], [ "at", "IN" ], [ "least", "JJS" ], [ "once", "RB" ], [ "?", "." ] ], "values": [ "1", "food" ], "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(11) T(3) Root(5) Sel(0) N(0) A(0) C(11) T(4) Filter(0) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(7) T(4) Filter(18) A(0) C(7) T(4) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "tracking_orders", "query": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T3.order_item_status = \"Cancel\" AND T4.product_name = \"food\" GROUP BY T1.customer_id HAVING count(*) >= 1", "query_toks": [ "SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "JOIN", "order_items", "AS", "T3", "JOIN", "products", "AS", "T4", "ON", "T1.customer_id", "=", "T2.customer_id", "AND", "T2.order_id", "=", "T3.order_id", "AND", "T3.product_id", "=", "T4.product_id", "WHERE", "T3.order_item_status", "=", "``", "Cancel", "''", "AND", "T4.product_name", "=", "``", "food", "''", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "join", "order_items", "as", "t3", "join", "products", "as", "t4", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "and", "t2", ".", "order_id", "=", "t3", ".", "order_id", "and", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t3", ".", "order_item_status", "=", "value", "and", "t4", ".", "product_name", "=", "value", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "List the names of customers who have once canceled the purchase of the product \"food\" (the item status is \"Cancel\").", "question_toks": [ "list", "name", "of", "customer", "who", "have", "once", "canceled", "purchase", "of", "product", "'", "food", "'", "(", "item", "status", "is", "'", "cancel", "'", ")", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 17, false ], null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ], [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 5, [ 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, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Cancel\"", null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"food\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "List", "the", "names", "of", "customers", "who", "have", "once", "canceled", "the", "purchase", "of", "the", "product", "``", "food", "''", "(", "the", "item", "status", "is", "``", "Cancel", "''", ")", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "once" ], [ "canceled" ], [ "purchase" ], [ "of" ], [ "product" ], [ "'" ], [ "food" ], [ "'" ], [ "(" ], [ "order", "item", "status" ], [ "is" ], [ "'" ], [ "cancel" ], [ "'" ], [ ")" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "once", "RB" ], [ "canceled", "VBN" ], [ "purchase", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "'", "''" ], [ "food", "NN" ], [ "'", "''" ], [ "(", "(" ], [ "item", "NN" ], [ "status", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "cancel", "NN" ], [ "'", "''" ], [ ")", ")" ], [ ".", "." ] ], "values": [ "Cancel", "1", "food" ], "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(7) T(4) Root(5) Sel(0) N(0) A(0) C(7) T(2) 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(15) T(4) V(0) Filter(7) A(3) C(0) T(0) V(1)" }, { "db_id": "tracking_orders", "query": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T3.order_item_status = \"Cancel\" AND T4.product_name = \"food\" GROUP BY T1.customer_id HAVING count(*) >= 1", "query_toks": [ "SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "JOIN", "order_items", "AS", "T3", "JOIN", "products", "AS", "T4", "ON", "T1.customer_id", "=", "T2.customer_id", "AND", "T2.order_id", "=", "T3.order_id", "AND", "T3.product_id", "=", "T4.product_id", "WHERE", "T3.order_item_status", "=", "``", "Cancel", "''", "AND", "T4.product_name", "=", "``", "food", "''", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "join", "order_items", "as", "t3", "join", "products", "as", "t4", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "and", "t2", ".", "order_id", "=", "t3", ".", "order_id", "and", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t3", ".", "order_item_status", "=", "value", "and", "t4", ".", "product_name", "=", "value", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Which customers have ever canceled the purchase of the product \"food\" (the item status is \"Cancel\")?", "question_toks": [ "which", "customer", "have", "ever", "canceled", "purchase", "of", "product", "'", "food", "'", "(", "item", "status", "is", "'", "cancel", "'", ")", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 17, false ], null ], "and", [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ], [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 5, [ 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, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Cancel\"", null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"food\"", null ] ] }, "names": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "customer id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "product id", "order id", "order item status", "order item details", "shipment id", "order id", "invoice number", "shipment tracking number", "shipment date", "other shipment details", "shipment id", "order item id" ], "table_names": [ "customers", "invoices", "orders", "products", "order items", "shipments", "shipment items" ], "col_set": [ "*", "customer id", "customer name", "customer details", "invoice number", "invoice date", "invoice details", "order id", "order status", "date order placed", "order details", "product id", "product name", "product details", "order item id", "order item status", "order item details", "shipment id", "shipment tracking number", "shipment date", "other shipment details" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6 ], "keys": { "8": 1, "1": 1, "16": 12, "12": 12, "17": 7, "7": 7, "22": 4, "4": 4, "21": 7, "26": 20, "20": 20, "27": 15, "15": 15 }, "origin_question_toks": [ "Which", "customers", "have", "ever", "canceled", "the", "purchase", "of", "the", "product", "``", "food", "''", "(", "the", "item", "status", "is", "``", "Cancel", "''", ")", "?" ], "question_arg": [ [ "which" ], [ "customer" ], [ "have" ], [ "ever" ], [ "canceled" ], [ "purchase" ], [ "of" ], [ "product" ], [ "'" ], [ "food" ], [ "'" ], [ "(" ], [ "order", "item", "status" ], [ "is" ], [ "'" ], [ "cancel" ], [ "'" ], [ ")" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "ever", "RB" ], [ "canceled", "VBN" ], [ "purchase", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "'", "''" ], [ "food", "NN" ], [ "'", "''" ], [ "(", "(" ], [ "item", "NN" ], [ "status", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "cancel", "NN" ], [ "'", "''" ], [ ")", ")" ], [ "?", "." ] ], "values": [ "Cancel", "food", "1" ], "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(7) T(4) Root(5) Sel(0) N(0) A(0) C(7) T(2) 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(15) T(4) V(0) Filter(7) A(3) C(0) T(0) V(2)" }, { "db_id": "architecture", "query": "SELECT count(*) FROM architect WHERE gender = 'female'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "architect", "WHERE", "gender", "=", "'female", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "architect", "where", "gender", "=", "value" ], "question": "How many architects are female?", "question_toks": [ "how", "many", "architect", "are", "female", "?" ], "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 ], "\"female\"", null ] ] }, "names": [ "*", "id", "name", "nationality", "gender", "architect id", "id", "name", "location", "length meters", "length feet", "architect id", "id", "location", "name", "type", "built year", "notes" ], "table_names": [ "architect", "bridge", "mill" ], "col_set": [ "*", "id", "name", "nationality", "gender", "architect id", "location", "length meters", "length feet", "type", "built year", "notes" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "5": 1, "1": 1, "11": 1, "6": 6, "12": 12 }, "origin_question_toks": [ "How", "many", "architects", "are", "female", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "architect" ], [ "are" ], [ "female" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "architect", "NN" ], [ "are", "VBP" ], [ "female", "VBN" ], [ "?", "." ] ], "values": [ "female" ], "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": "architecture", "query": "SELECT name , nationality , id FROM architect WHERE gender = 'male' ORDER BY name", "query_toks": [ "SELECT", "name", ",", "nationality", ",", "id", "FROM", "architect", "WHERE", "gender", "=", "'male", "'", "ORDER", "BY", "name" ], "query_toks_no_value": [ "select", "name", ",", "nationality", ",", "id", "from", "architect", "where", "gender", "=", "value", "order", "by", "name" ], "question": "List the name, nationality and id of all male architects ordered by their names lexicographically.", "question_toks": [ "list", "name", ",", "nationality", "and", "id", "of", "all", "male", "architect", "ordered", "by", "their", "name", "lexicographically", "." ], "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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"male\"", null ] ] }, "names": [ "*", "id", "name", "nationality", "gender", "architect id", "id", "name", "location", "length meters", "length feet", "architect id", "id", "location", "name", "type", "built year", "notes" ], "table_names": [ "architect", "bridge", "mill" ], "col_set": [ "*", "id", "name", "nationality", "gender", "architect id", "location", "length meters", "length feet", "type", "built year", "notes" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "5": 1, "1": 1, "11": 1, "6": 6, "12": 12 }, "origin_question_toks": [ "List", "the", "name", ",", "nationality", "and", "id", "of", "all", "male", "architects", "ordered", "by", "their", "names", "lexicographically", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "," ], [ "nationality" ], [ "and" ], [ "id" ], [ "of" ], [ "all" ], [ "male" ], [ "architect" ], [ "ordered" ], [ "by" ], [ "their" ], [ "name" ], [ "lexicographically" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "nationality", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "male", "NN" ], [ "architect", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "name", "NN" ], [ "lexicographically", "RB" ], [ ".", "." ] ], "values": [ "male" ], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(0) C(1) T(0) Filter(2) A(0) C(4) T(0) V(0) Order(1) A(0) C(2) T(0)" }, { "db_id": "architecture", "query": "SELECT max(T1.length_meters) , T2.name FROM bridge AS T1 JOIN architect AS T2 ON T1.architect_id = T2.id", "query_toks": [ "SELECT", "max", "(", "T1.length_meters", ")", ",", "T2.name", "FROM", "bridge", "AS", "T1", "JOIN", "architect", "AS", "T2", "ON", "T1.architect_id", "=", "T2.id" ], "query_toks_no_value": [ "select", "max", "(", "t1", ".", "length_meters", ")", ",", "t2", ".", "name", "from", "bridge", "as", "t1", "join", "architect", "as", "t2", "on", "t1", ".", "architect_id", "=", "t2", ".", "id" ], "question": "What is the maximum length in meters for the bridges and what are the architects' names?", "question_toks": [ "what", "is", "maximum", "length", "in", "meter", "for", "bridge", "and", "what", "are", "architect", "'", "name", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "nationality", "gender", "architect id", "id", "name", "location", "length meters", "length feet", "architect id", "id", "location", "name", "type", "built year", "notes" ], "table_names": [ "architect", "bridge", "mill" ], "col_set": [ "*", "id", "name", "nationality", "gender", "architect id", "location", "length meters", "length feet", "type", "built year", "notes" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "5": 1, "1": 1, "11": 1, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "maximum", "length", "in", "meters", "for", "the", "bridges", "and", "what", "are", "the", "architects", "'", "names", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "length" ], [ "in" ], [ "meter" ], [ "for" ], [ "bridge" ], [ "and" ], [ "what" ], [ "are" ], [ "architect" ], [ "'" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "length", "NN" ], [ "in", "IN" ], [ "meter", "NN" ], [ "for", "IN" ], [ "bridge", "NN" ], [ "and", "CC" ], [ "what", "WDT" ], [ "are", "VBP" ], [ "architect", "JJ" ], [ "'", "''" ], [ "name", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(7) T(1) A(0) C(2) T(0)" }, { "db_id": "architecture", "query": "SELECT avg(length_feet) FROM bridge", "query_toks": [ "SELECT", "avg", "(", "length_feet", ")", "FROM", "bridge" ], "query_toks_no_value": [ "select", "avg", "(", "length_feet", ")", "from", "bridge" ], "question": "What is the average length in feet of the bridges?", "question_toks": [ "what", "is", "average", "length", "in", "foot", "of", "bridge", "?" ], "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": [] }, "names": [ "*", "id", "name", "nationality", "gender", "architect id", "id", "name", "location", "length meters", "length feet", "architect id", "id", "location", "name", "type", "built year", "notes" ], "table_names": [ "architect", "bridge", "mill" ], "col_set": [ "*", "id", "name", "nationality", "gender", "architect id", "location", "length meters", "length feet", "type", "built year", "notes" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "5": 1, "1": 1, "11": 1, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "average", "length", "in", "feet", "of", "the", "bridges", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "length" ], [ "in" ], [ "foot" ], [ "of" ], [ "bridge" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "length", "NN" ], [ "in", "IN" ], [ "foot", "NN" ], [ "of", "IN" ], [ "bridge", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(8) T(1)" }, { "db_id": "architecture", "query": "SELECT name , built_year FROM mill WHERE TYPE = 'Grondzeiler'", "query_toks": [ "SELECT", "name", ",", "built_year", "FROM", "mill", "WHERE", "TYPE", "=", "'Grondzeiler", "'" ], "query_toks_no_value": [ "select", "name", ",", "built_year", "from", "mill", "where", "type", "=", "value" ], "question": "What are the names and year of construction for the mills of 'Grondzeiler' type?", "question_toks": [ "what", "are", "name", "and", "year", "of", "construction", "for", "mill", "of", "'", "grondzeiler", "'", "type", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Grondzeiler\"", null ] ] }, "names": [ "*", "id", "name", "nationality", "gender", "architect id", "id", "name", "location", "length meters", "length feet", "architect id", "id", "location", "name", "type", "built year", "notes" ], "table_names": [ "architect", "bridge", "mill" ], "col_set": [ "*", "id", "name", "nationality", "gender", "architect id", "location", "length meters", "length feet", "type", "built year", "notes" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "5": 1, "1": 1, "11": 1, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "year", "of", "construction", "for", "the", "mills", "of", "'Grondzeiler", "'", "type", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "year" ], [ "of" ], [ "construction" ], [ "for" ], [ "mill" ], [ "of" ], [ "'" ], [ "grondzeiler" ], [ "'" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "of", "IN" ], [ "construction", "NN" ], [ "for", "IN" ], [ "mill", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "grondzeiler", "NN" ], [ "'", "''" ], [ "type", "NN" ], [ "?", "." ] ], "values": [ "Grondzeiler" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(2) A(0) C(10) T(2) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "architecture", "query": "SELECT DISTINCT T1.name , T1.nationality FROM architect AS T1 JOIN mill AS t2 ON T1.id = T2.architect_id", "query_toks": [ "SELECT", "DISTINCT", "T1.name", ",", "T1.nationality", "FROM", "architect", "AS", "T1", "JOIN", "mill", "AS", "t2", "ON", "T1.id", "=", "T2.architect_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", ",", "t1", ".", "nationality", "from", "architect", "as", "t1", "join", "mill", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id" ], "question": "What are the distinct names and nationalities of the architects who have ever built a mill?", "question_toks": [ "what", "are", "distinct", "name", "and", "nationality", "of", "architect", "who", "have", "ever", "built", "a", "mill", "?" ], "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, 2, false ], null ] ], [ 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 ] ] }, "names": [ "*", "id", "name", "nationality", "gender", "architect id", "id", "name", "location", "length meters", "length feet", "architect id", "id", "location", "name", "type", "built year", "notes" ], "table_names": [ "architect", "bridge", "mill" ], "col_set": [ "*", "id", "name", "nationality", "gender", "architect id", "location", "length meters", "length feet", "type", "built year", "notes" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "5": 1, "1": 1, "11": 1, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "distinct", "names", "and", "nationalities", "of", "the", "architects", "who", "have", "ever", "built", "a", "mill", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "name" ], [ "and" ], [ "nationality" ], [ "of" ], [ "architect" ], [ "who" ], [ "have" ], [ "ever" ], [ "built" ], [ "a" ], [ "mill" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "nationality", "NN" ], [ "of", "IN" ], [ "architect", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "ever", "RB" ], [ "built", "VBN" ], [ "a", "DT" ], [ "mill", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(5) T(2)" }, { "db_id": "architecture", "query": "SELECT name FROM mill WHERE LOCATION != 'Donceel'", "query_toks": [ "SELECT", "name", "FROM", "mill", "WHERE", "LOCATION", "!", "=", "'Donceel", "'" ], "query_toks_no_value": [ "select", "name", "from", "mill", "where", "location", "!", "=", "value" ], "question": "What are the names of the mills which are not located in 'Donceel'?", "question_toks": [ "what", "are", "name", "of", "mill", "which", "are", "not", "located", "in", "'", "donceel", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 13, false ], null ], "\"Donceel\"", null ] ] }, "names": [ "*", "id", "name", "nationality", "gender", "architect id", "id", "name", "location", "length meters", "length feet", "architect id", "id", "location", "name", "type", "built year", "notes" ], "table_names": [ "architect", "bridge", "mill" ], "col_set": [ "*", "id", "name", "nationality", "gender", "architect id", "location", "length meters", "length feet", "type", "built year", "notes" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "5": 1, "1": 1, "11": 1, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "mills", "which", "are", "not", "located", "in", "'Donceel", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "mill" ], [ "which" ], [ "are" ], [ "not" ], [ "located" ], [ "in" ], [ "'" ], [ "donceel" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "mill", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "located", "VBN" ], [ "in", "IN" ], [ "'", "''" ], [ "donceel", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Donceel" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(3) A(0) C(6) T(2) V(0)" }, { "db_id": "architecture", "query": "SELECT DISTINCT T1.type FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id WHERE T2.nationality = 'American' OR T2.nationality = 'Canadian'", "query_toks": [ "SELECT", "DISTINCT", "T1.type", "FROM", "mill", "AS", "T1", "JOIN", "architect", "AS", "t2", "ON", "T1.architect_id", "=", "T2.id", "WHERE", "T2.nationality", "=", "'American", "'", "OR", "T2.nationality", "=", "'Canadian", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "type", "from", "mill", "as", "t1", "join", "architect", "as", "t2", "on", "t1", ".", "architect_id", "=", "t2", ".", "id", "where", "t2", ".", "nationality", "=", "value", "or", "t2", ".", "nationality", "=", "value" ], "question": "What are the distinct types of mills that are built by American or Canadian architects?", "question_toks": [ "what", "are", "distinct", "type", "of", "mill", "that", "are", "built", "by", "american", "or", "canadian", "architect", "?" ], "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": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"American\"", null ], "or", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Canadian\"", null ] ] }, "names": [ "*", "id", "name", "nationality", "gender", "architect id", "id", "name", "location", "length meters", "length feet", "architect id", "id", "location", "name", "type", "built year", "notes" ], "table_names": [ "architect", "bridge", "mill" ], "col_set": [ "*", "id", "name", "nationality", "gender", "architect id", "location", "length meters", "length feet", "type", "built year", "notes" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "5": 1, "1": 1, "11": 1, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "distinct", "types", "of", "mills", "that", "are", "built", "by", "American", "or", "Canadian", "architects", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "type" ], [ "of" ], [ "mill" ], [ "that" ], [ "are" ], [ "built" ], [ "by" ], [ "american" ], [ "or" ], [ "canadian" ], [ "architect" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "mill", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "built", "VBN" ], [ "by", "IN" ], [ "american", "JJ" ], [ "or", "CC" ], [ "canadian", "JJ" ], [ "architect", "NN" ], [ "?", "." ] ], "values": [ "American", "Canadian" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(9) T(2) Filter(1) Filter(2) A(0) C(3) T(0) V(0) Filter(2) A(0) C(3) T(0) V(1)" }, { "db_id": "architecture", "query": "SELECT T1.id , T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING count(*) >= 3", "query_toks": [ "SELECT", "T1.id", ",", "T1.name", "FROM", "architect", "AS", "T1", "JOIN", "bridge", "AS", "T2", "ON", "T1.id", "=", "T2.architect_id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", "from", "architect", "as", "t1", "join", "bridge", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the ids and names of the architects who built at least 3 bridges ?", "question_toks": [ "what", "are", "id", "and", "name", "of", "architect", "who", "built", "at", "least", "3", "bridge", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ 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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "name", "nationality", "gender", "architect id", "id", "name", "location", "length meters", "length feet", "architect id", "id", "location", "name", "type", "built year", "notes" ], "table_names": [ "architect", "bridge", "mill" ], "col_set": [ "*", "id", "name", "nationality", "gender", "architect id", "location", "length meters", "length feet", "type", "built year", "notes" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "5": 1, "1": 1, "11": 1, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "names", "of", "the", "architects", "who", "built", "at", "least", "3", "bridges", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "architect" ], [ "who" ], [ "built" ], [ "at" ], [ "least" ], [ "3" ], [ "bridge" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "architect", "NN" ], [ "who", "WP" ], [ "built", "VBD" ], [ "at", "IN" ], [ "least", "JJS" ], [ "3", "CD" ], [ "bridge", "NN" ], [ "?", "." ] ], "values": [ "3" ], "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(5) T(1) Filter(7) A(3) C(0) T(1) V(0)" }, { "db_id": "architecture", "query": "SELECT T1.id , T1.name , T1.nationality FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.id", ",", "T1.name", ",", "T1.nationality", "FROM", "architect", "AS", "T1", "JOIN", "mill", "AS", "T2", "ON", "T1.id", "=", "T2.architect_id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "nationality", "from", "architect", "as", "t1", "join", "mill", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the id, name and nationality of the architect who built most mills?", "question_toks": [ "what", "is", "id", ",", "name", "and", "nationality", "of", "architect", "who", "built", "most", "mill", "?" ], "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": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 11, 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", "nationality", "gender", "architect id", "id", "name", "location", "length meters", "length feet", "architect id", "id", "location", "name", "type", "built year", "notes" ], "table_names": [ "architect", "bridge", "mill" ], "col_set": [ "*", "id", "name", "nationality", "gender", "architect id", "location", "length meters", "length feet", "type", "built year", "notes" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "5": 1, "1": 1, "11": 1, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "id", ",", "name", "and", "nationality", "of", "the", "architect", "who", "built", "most", "mills", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "," ], [ "name" ], [ "and" ], [ "nationality" ], [ "of" ], [ "architect" ], [ "who" ], [ "built" ], [ "most" ], [ "mill" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ ",", "," ], [ "name", "NN" ], [ "and", "CC" ], [ "nationality", "NN" ], [ "of", "IN" ], [ "architect", "NN" ], [ "who", "WP" ], [ "built", "VBZ" ], [ "most", "JJS" ], [ "mill", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(1) T(0) A(0) C(2) T(0) A(0) C(3) T(0) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(5) T(2)" }, { "db_id": "architecture", "query": "SELECT T1.id , T1.name , T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING count(*) = 2 UNION SELECT T1.id , T1.name , T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING count(*) = 1", "query_toks": [ "SELECT", "T1.id", ",", "T1.name", ",", "T1.gender", "FROM", "architect", "AS", "T1", "JOIN", "bridge", "AS", "T2", "ON", "T1.id", "=", "T2.architect_id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", "=", "2", "UNION", "SELECT", "T1.id", ",", "T1.name", ",", "T1.gender", "FROM", "architect", "AS", "T1", "JOIN", "mill", "AS", "T2", "ON", "T1.id", "=", "T2.architect_id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "gender", "from", "architect", "as", "t1", "join", "bridge", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", "=", "value", "union", "select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "gender", "from", "architect", "as", "t1", "join", "mill", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", "=", "value" ], "question": "What are the ids, names and genders of the architects who built two bridges or one mill?", "question_toks": [ "what", "are", "id", ",", "name", "and", "gender", "of", "architect", "who", "built", "two", "bridge", "or", "one", "mill", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 2, [ 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 ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 2, [ 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 ] ], [ 0, [ 0, [ 0, 4, 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 ] ] }, "where": [] }, "names": [ "*", "id", "name", "nationality", "gender", "architect id", "id", "name", "location", "length meters", "length feet", "architect id", "id", "location", "name", "type", "built year", "notes" ], "table_names": [ "architect", "bridge", "mill" ], "col_set": [ "*", "id", "name", "nationality", "gender", "architect id", "location", "length meters", "length feet", "type", "built year", "notes" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "5": 1, "1": 1, "11": 1, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "ids", ",", "names", "and", "genders", "of", "the", "architects", "who", "built", "two", "bridges", "or", "one", "mill", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "," ], [ "name" ], [ "and" ], [ "gender" ], [ "of" ], [ "architect" ], [ "who" ], [ "built" ], [ "two" ], [ "bridge" ], [ "or" ], [ "one" ], [ "mill" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ ",", "," ], [ "name", "NN" ], [ "and", "CC" ], [ "gender", "NN" ], [ "of", "IN" ], [ "architect", "NN" ], [ "who", "WP" ], [ "built", "VBD" ], [ "two", "CD" ], [ "bridge", "NN" ], [ "or", "CC" ], [ "one", "CD" ], [ "mill", "NN" ], [ "?", "." ] ], "values": [ "2", "1" ], "rule_label": "Root1(1) Root(3) Sel(0) N(2) A(0) C(1) T(0) A(0) C(2) T(0) A(0) C(4) T(0) Filter(2) A(3) C(0) T(1) V(0) Root(3) Sel(0) N(2) A(0) C(1) T(0) A(0) C(2) T(0) A(0) C(4) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(5) T(2) Filter(2) A(3) C(0) T(2) V(1)" }, { "db_id": "architecture", "query": "SELECT LOCATION FROM bridge WHERE name = 'Kolob Arch' OR name = 'Rainbow Bridge'", "query_toks": [ "SELECT", "LOCATION", "FROM", "bridge", "WHERE", "name", "=", "'Kolob", "Arch", "'", "OR", "name", "=", "'Rainbow", "Bridge", "'" ], "query_toks_no_value": [ "select", "location", "from", "bridge", "where", "name", "=", "value", "or", "name", "=", "value" ], "question": "What is the location of the bridge named 'Kolob Arch' or 'Rainbow Bridge'?", "question_toks": [ "what", "is", "location", "of", "bridge", "named", "'", "kolob", "arch", "'", "or", "'", "rainbow", "bridge", "'", "?" ], "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, 2, [ 0, [ 0, 7, false ], null ], "\"Kolob Arch\"", null ], "or", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Rainbow Bridge\"", null ] ] }, "names": [ "*", "id", "name", "nationality", "gender", "architect id", "id", "name", "location", "length meters", "length feet", "architect id", "id", "location", "name", "type", "built year", "notes" ], "table_names": [ "architect", "bridge", "mill" ], "col_set": [ "*", "id", "name", "nationality", "gender", "architect id", "location", "length meters", "length feet", "type", "built year", "notes" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "5": 1, "1": 1, "11": 1, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "location", "of", "the", "bridge", "named", "'Kolob", "Arch", "'", "or", "'Rainbow", "Bridge", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "location" ], [ "of" ], [ "bridge" ], [ "named" ], [ "'" ], [ "kolob" ], [ "arch" ], [ "'" ], [ "or" ], [ "'" ], [ "rainbow" ], [ "bridge" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "location", "NN" ], [ "of", "IN" ], [ "bridge", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "kolob", "NNS" ], [ "arch", "VBP" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "rainbow", "NN" ], [ "bridge", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Kolob Arch", "Rainbow Bridge" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(1) Filter(2) A(0) C(2) T(1) V(0) Filter(2) A(0) C(2) T(1) V(1)" }, { "db_id": "architecture", "query": "SELECT name FROM mill WHERE name LIKE '%Moulin%'", "query_toks": [ "SELECT", "name", "FROM", "mill", "WHERE", "name", "LIKE", "'", "%", "Moulin", "%", "'" ], "query_toks_no_value": [ "select", "name", "from", "mill", "where", "name", "like", "value" ], "question": "Which of the mill names contains the french word 'Moulin'?", "question_toks": [ "which", "of", "mill", "name", "contains", "french", "word", "'", "moulin", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 14, false ], null ], "\"%Moulin%\"", null ] ] }, "names": [ "*", "id", "name", "nationality", "gender", "architect id", "id", "name", "location", "length meters", "length feet", "architect id", "id", "location", "name", "type", "built year", "notes" ], "table_names": [ "architect", "bridge", "mill" ], "col_set": [ "*", "id", "name", "nationality", "gender", "architect id", "location", "length meters", "length feet", "type", "built year", "notes" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "5": 1, "1": 1, "11": 1, "6": 6, "12": 12 }, "origin_question_toks": [ "Which", "of", "the", "mill", "names", "contains", "the", "french", "word", "'Moulin", "'", "?" ], "question_arg": [ [ "which" ], [ "of" ], [ "mill" ], [ "name" ], [ "contains" ], [ "french" ], [ "word" ], [ "'" ], [ "moulin" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "of", "IN" ], [ "mill", "NN" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "french", "JJ" ], [ "word", "NN" ], [ "'", "''" ], [ "moulin", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Moulin" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(9) A(0) C(2) T(2) V(0)" }, { "db_id": "architecture", "query": "SELECT DISTINCT T1.name FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id JOIN bridge AS T3 ON T3.architect_id = T2.id WHERE T3.length_meters > 80", "query_toks": [ "SELECT", "DISTINCT", "T1.name", "FROM", "mill", "AS", "T1", "JOIN", "architect", "AS", "t2", "ON", "T1.architect_id", "=", "T2.id", "JOIN", "bridge", "AS", "T3", "ON", "T3.architect_id", "=", "T2.id", "WHERE", "T3.length_meters", ">", "80" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", "from", "mill", "as", "t1", "join", "architect", "as", "t2", "on", "t1", ".", "architect_id", "=", "t2", ".", "id", "join", "bridge", "as", "t3", "on", "t3", ".", "architect_id", "=", "t2", ".", "id", "where", "t3", ".", "length_meters", ">", "value" ], "question": "What are the distinct name of the mills built by the architects who have also built a bridge longer than 80 meters?", "question_toks": [ "what", "are", "distinct", "name", "of", "mill", "built", "by", "architect", "who", "have", "also", "built", "a", "bridge", "longer", "than", "80", "meter", "?" ], "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": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, 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, 3, [ 0, [ 0, 9, false ], null ], 80.0, null ] ] }, "names": [ "*", "id", "name", "nationality", "gender", "architect id", "id", "name", "location", "length meters", "length feet", "architect id", "id", "location", "name", "type", "built year", "notes" ], "table_names": [ "architect", "bridge", "mill" ], "col_set": [ "*", "id", "name", "nationality", "gender", "architect id", "location", "length meters", "length feet", "type", "built year", "notes" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "5": 1, "1": 1, "11": 1, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "distinct", "name", "of", "the", "mills", "built", "by", "the", "architects", "who", "have", "also", "built", "a", "bridge", "longer", "than", "80", "meters", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "name" ], [ "of" ], [ "mill" ], [ "built" ], [ "by" ], [ "architect" ], [ "who" ], [ "have" ], [ "also" ], [ "built" ], [ "a" ], [ "bridge" ], [ "longer" ], [ "than" ], [ "80" ], [ "meter" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "mill", "NN" ], [ "built", "VBN" ], [ "by", "IN" ], [ "architect", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "also", "RB" ], [ "built", "VBN" ], [ "a", "DT" ], [ "bridge", "NN" ], [ "longer", "JJR" ], [ "than", "IN" ], [ "80", "CD" ], [ "meter", "NN" ], [ "?", "." ] ], "values": [ "80" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(2) Filter(0) Filter(18) A(0) C(5) T(2) Root(5) Sel(0) N(0) A(0) C(1) T(0) Filter(5) A(0) C(7) T(1) V(0)" }, { "db_id": "architecture", "query": "SELECT TYPE , count(*) FROM mill GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "TYPE", ",", "count", "(", "*", ")", "FROM", "mill", "GROUP", "BY", "TYPE", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "type", ",", "count", "(", "*", ")", "from", "mill", "group", "by", "type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most common mill type, and how many are there?", "question_toks": [ "what", "is", "most", "common", "mill", "type", ",", "and", "how", "many", "are", "there", "?" ], "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 ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "nationality", "gender", "architect id", "id", "name", "location", "length meters", "length feet", "architect id", "id", "location", "name", "type", "built year", "notes" ], "table_names": [ "architect", "bridge", "mill" ], "col_set": [ "*", "id", "name", "nationality", "gender", "architect id", "location", "length meters", "length feet", "type", "built year", "notes" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "5": 1, "1": 1, "11": 1, "6": 6, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "most", "common", "mill", "type", ",", "and", "how", "many", "are", "there", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "common" ], [ "mill" ], [ "type" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "mill", "NN" ], [ "type", "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(9) T(2) A(3) C(0) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "architecture", "query": "SELECT count(*) FROM architect WHERE id NOT IN ( SELECT architect_id FROM mill WHERE built_year < 1850 );", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "architect", "WHERE", "id", "NOT", "IN", "(", "SELECT", "architect_id", "FROM", "mill", "WHERE", "built_year", "<", "1850", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "architect", "where", "id", "not", "in", "(", "select", "architect_id", "from", "mill", "where", "built_year", "<", "value", ")" ], "question": "How many architects haven't built a mill before year 1850?", "question_toks": [ "how", "many", "architect", "have", "n't", "built", "a", "mill", "before", "year", "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": [ [ 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": [ [ false, 4, [ 0, [ 0, 16, false ], null ], 1850.0, null ] ] }, null ] ] }, "names": [ "*", "id", "name", "nationality", "gender", "architect id", "id", "name", "location", "length meters", "length feet", "architect id", "id", "location", "name", "type", "built year", "notes" ], "table_names": [ "architect", "bridge", "mill" ], "col_set": [ "*", "id", "name", "nationality", "gender", "architect id", "location", "length meters", "length feet", "type", "built year", "notes" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "5": 1, "1": 1, "11": 1, "6": 6, "12": 12 }, "origin_question_toks": [ "How", "many", "architects", "have", "n't", "built", "a", "mill", "before", "year", "1850", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "architect" ], [ "have" ], [ "n't" ], [ "built" ], [ "a" ], [ "mill" ], [ "before" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "architect", "NN" ], [ "have", "VBP" ], [ "n't", "RB" ], [ "built", "VBN" ], [ "a", "DT" ], [ "mill", "NN" ], [ "before", "IN" ], [ "year", "NN" ], [ "1850", "CD" ], [ "?", "." ] ], "values": [ "1850" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(19) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(5) T(2) Filter(4) A(0) C(10) T(2) V(0)" }, { "db_id": "architecture", "query": "SELECT t1.name FROM bridge AS t1 JOIN architect AS t2 ON t1.architect_id = t2.id WHERE t2.nationality = 'American' ORDER BY t1.length_feet", "query_toks": [ "SELECT", "t1.name", "FROM", "bridge", "AS", "t1", "JOIN", "architect", "AS", "t2", "ON", "t1.architect_id", "=", "t2.id", "WHERE", "t2.nationality", "=", "'American", "'", "ORDER", "BY", "t1.length_feet" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "bridge", "as", "t1", "join", "architect", "as", "t2", "on", "t1", ".", "architect_id", "=", "t2", ".", "id", "where", "t2", ".", "nationality", "=", "value", "order", "by", "t1", ".", "length_feet" ], "question": "show the name of all bridges that was designed by american archtect, and sort the result by the bridge feet length.", "question_toks": [ "show", "name", "of", "all", "bridge", "that", "wa", "designed", "by", "american", "archtect", ",", "and", "sort", "result", "by", "bridge", "foot", "length", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"American\"", null ] ] }, "names": [ "*", "id", "name", "nationality", "gender", "architect id", "id", "name", "location", "length meters", "length feet", "architect id", "id", "location", "name", "type", "built year", "notes" ], "table_names": [ "architect", "bridge", "mill" ], "col_set": [ "*", "id", "name", "nationality", "gender", "architect id", "location", "length meters", "length feet", "type", "built year", "notes" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "5": 1, "1": 1, "11": 1, "6": 6, "12": 12 }, "origin_question_toks": [ "show", "the", "name", "of", "all", "bridges", "that", "was", "designed", "by", "american", "archtect", ",", "and", "sort", "the", "result", "by", "the", "bridge", "feet", "length", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "all" ], [ "bridge" ], [ "that" ], [ "wa" ], [ "designed" ], [ "by" ], [ "american" ], [ "archtect" ], [ "," ], [ "and" ], [ "sort" ], [ "result" ], [ "by" ], [ "bridge" ], [ "length", "foot" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "bridge", "NN" ], [ "that", "IN" ], [ "wa", "NN" ], [ "designed", "VBN" ], [ "by", "IN" ], [ "american", "JJ" ], [ "archtect", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "sort", "NN" ], [ "result", "NN" ], [ "by", "IN" ], [ "bridge", "NN" ], [ "foot", "NN" ], [ "length", "NN" ], [ ".", "." ] ], "values": [ "American" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(3) T(0) V(0) Order(1) A(0) C(8) T(1)" }, { "db_id": "culture_company", "query": "SELECT count(*) FROM book_club", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "book_club" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "book_club" ], "question": "How many book clubs are there?", "question_toks": [ "how", "many", "book", "club", "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": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "How", "many", "book", "clubs", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "book", "club" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "book", "NN" ], [ "club", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "culture_company", "query": "SELECT count(*) FROM book_club", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "book_club" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "book_club" ], "question": "Count the number of book clubs.", "question_toks": [ "count", "number", "of", "book", "club", "." ], "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": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Count", "the", "number", "of", "book", "clubs", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "book", "club" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "book", "NN" ], [ "club", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "culture_company", "query": "SELECT book_title , author_or_editor FROM book_club WHERE YEAR > 1989", "query_toks": [ "SELECT", "book_title", ",", "author_or_editor", "FROM", "book_club", "WHERE", "YEAR", ">", "1989" ], "query_toks_no_value": [ "select", "book_title", ",", "author_or_editor", "from", "book_club", "where", "year", ">", "value" ], "question": "show the titles, and authors or editors for all books made after the year 1989.", "question_toks": [ "show", "title", ",", "and", "author", "or", "editor", "for", "all", "book", "made", "after", "year", "year", "." ], "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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 2, false ], null ], 1989.0, null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "show", "the", "titles", ",", "and", "authors", "or", "editors", "for", "all", "books", "made", "after", "the", "year", "1989", "." ], "question_arg": [ [ "show" ], [ "title" ], [ "," ], [ "and" ], [ "author", "or", "editor" ], [ "for" ], [ "all" ], [ "book" ], [ "made" ], [ "after" ], [ "year" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "title", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "author", "NN" ], [ "or", "CC" ], [ "editor", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "book", "NN" ], [ "made", "VBN" ], [ "after", "IN" ], [ "year", "NN" ], [ "1989", "CD" ], [ ".", "." ] ], "values": [ "1989" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(0) A(0) C(3) T(0) Filter(5) A(0) C(2) T(0) V(0)" }, { "db_id": "culture_company", "query": "SELECT book_title , author_or_editor FROM book_club WHERE YEAR > 1989", "query_toks": [ "SELECT", "book_title", ",", "author_or_editor", "FROM", "book_club", "WHERE", "YEAR", ">", "1989" ], "query_toks_no_value": [ "select", "book_title", ",", "author_or_editor", "from", "book_club", "where", "year", ">", "value" ], "question": "What are the titles and authors or editors that correspond to books made after 1989?", "question_toks": [ "what", "are", "title", "and", "author", "or", "editor", "that", "correspond", "to", "book", "made", "after", "year", "?" ], "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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 2, false ], null ], 1989.0, null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "titles", "and", "authors", "or", "editors", "that", "correspond", "to", "books", "made", "after", "1989", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "and" ], [ "author", "or", "editor" ], [ "that" ], [ "correspond" ], [ "to" ], [ "book" ], [ "made" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "and", "CC" ], [ "author", "NN" ], [ "or", "CC" ], [ "editor", "NN" ], [ "that", "WDT" ], [ "correspond", "NN" ], [ "to", "TO" ], [ "book", "NN" ], [ "made", "VBN" ], [ "after", "IN" ], [ "1989", "CD" ], [ "?", "." ] ], "values": [ "1989" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(0) A(0) C(3) T(0) Filter(5) A(0) C(2) T(0) V(0)" }, { "db_id": "culture_company", "query": "SELECT DISTINCT publisher FROM book_club", "query_toks": [ "SELECT", "DISTINCT", "publisher", "FROM", "book_club" ], "query_toks_no_value": [ "select", "distinct", "publisher", "from", "book_club" ], "question": "Show all distinct publishers for books.", "question_toks": [ "show", "all", "distinct", "publisher", "for", "book", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Show", "all", "distinct", "publishers", "for", "books", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "distinct" ], [ "publisher" ], [ "for" ], [ "book" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "distinct", "VBP" ], [ "publisher", "NN" ], [ "for", "IN" ], [ "book", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(5) T(0)" }, { "db_id": "culture_company", "query": "SELECT DISTINCT publisher FROM book_club", "query_toks": [ "SELECT", "DISTINCT", "publisher", "FROM", "book_club" ], "query_toks_no_value": [ "select", "distinct", "publisher", "from", "book_club" ], "question": "What are all the different book publishers?", "question_toks": [ "what", "are", "all", "different", "book", "publisher", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "What", "are", "all", "the", "different", "book", "publishers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "different" ], [ "book" ], [ "publisher" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "different", "JJ" ], [ "book", "NN" ], [ "publisher", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(5) T(0)" }, { "db_id": "culture_company", "query": "SELECT YEAR , book_title , publisher FROM book_club ORDER BY YEAR DESC", "query_toks": [ "SELECT", "YEAR", ",", "book_title", ",", "publisher", "FROM", "book_club", "ORDER", "BY", "YEAR", "DESC" ], "query_toks_no_value": [ "select", "year", ",", "book_title", ",", "publisher", "from", "book_club", "order", "by", "year", "desc" ], "question": "Show the years, book titles, and publishers for all books, in descending order by year.", "question_toks": [ "show", "year", ",", "book", "title", ",", "and", "publisher", "for", "all", "book", ",", "in", "descending", "order", "by", "year", "." ], "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, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Show", "the", "years", ",", "book", "titles", ",", "and", "publishers", "for", "all", "books", ",", "in", "descending", "order", "by", "year", "." ], "question_arg": [ [ "show" ], [ "year" ], [ "," ], [ "book", "title" ], [ "," ], [ "and" ], [ "publisher" ], [ "for" ], [ "all" ], [ "book" ], [ "," ], [ "in" ], [ "descending" ], [ "order" ], [ "by" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "year", "NN" ], [ ",", "," ], [ "book", "NN" ], [ "title", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "publisher", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "book", "NN" ], [ ",", "," ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "by", "IN" ], [ "year", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(2) T(0) A(0) C(4) T(0) A(0) C(5) T(0) Order(0) A(0) C(2) T(0)" }, { "db_id": "culture_company", "query": "SELECT YEAR , book_title , publisher FROM book_club ORDER BY YEAR DESC", "query_toks": [ "SELECT", "YEAR", ",", "book_title", ",", "publisher", "FROM", "book_club", "ORDER", "BY", "YEAR", "DESC" ], "query_toks_no_value": [ "select", "year", ",", "book_title", ",", "publisher", "from", "book_club", "order", "by", "year", "desc" ], "question": "What are the years, titles, and publishers for all books, ordered by year descending?", "question_toks": [ "what", "are", "year", ",", "title", ",", "and", "publisher", "for", "all", "book", ",", "ordered", "by", "year", "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, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "years", ",", "titles", ",", "and", "publishers", "for", "all", "books", ",", "ordered", "by", "year", "descending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "year" ], [ "," ], [ "title" ], [ "," ], [ "and" ], [ "publisher" ], [ "for" ], [ "all" ], [ "book" ], [ "," ], [ "ordered" ], [ "by" ], [ "year" ], [ "descending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "year", "NN" ], [ ",", "," ], [ "title", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "publisher", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "book", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "year", "NN" ], [ "descending", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(2) T(0) A(0) C(4) T(0) A(0) C(5) T(0) Order(0) A(0) C(2) T(0)" }, { "db_id": "culture_company", "query": "SELECT publisher , count(*) FROM book_club GROUP BY publisher", "query_toks": [ "SELECT", "publisher", ",", "count", "(", "*", ")", "FROM", "book_club", "GROUP", "BY", "publisher" ], "query_toks_no_value": [ "select", "publisher", ",", "count", "(", "*", ")", "from", "book_club", "group", "by", "publisher" ], "question": "Show all publishers and the number of books for each publisher.", "question_toks": [ "show", "all", "publisher", "and", "number", "of", "book", "for", "each", "publisher", "." ], "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": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Show", "all", "publishers", "and", "the", "number", "of", "books", "for", "each", "publisher", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "publisher" ], [ "and" ], [ "number" ], [ "of" ], [ "book" ], [ "for" ], [ "each" ], [ "publisher" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "publisher", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "book", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "publisher", "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": "culture_company", "query": "SELECT publisher , count(*) FROM book_club GROUP BY publisher", "query_toks": [ "SELECT", "publisher", ",", "count", "(", "*", ")", "FROM", "book_club", "GROUP", "BY", "publisher" ], "query_toks_no_value": [ "select", "publisher", ",", "count", "(", "*", ")", "from", "book_club", "group", "by", "publisher" ], "question": "How many books are there for each publisher?", "question_toks": [ "how", "many", "book", "are", "there", "for", "each", "publisher", "?" ], "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": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "How", "many", "books", "are", "there", "for", "each", "publisher", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "book" ], [ "are" ], [ "there" ], [ "for" ], [ "each" ], [ "publisher" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "book", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "for", "IN" ], [ "each", "DT" ], [ "publisher", "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": "culture_company", "query": "SELECT publisher FROM book_club GROUP BY publisher ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "publisher", "FROM", "book_club", "GROUP", "BY", "publisher", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "publisher", "from", "book_club", "group", "by", "publisher", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the publisher with most number of books?", "question_toks": [ "what", "is", "publisher", "with", "most", "number", "of", "book", "?" ], "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": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "publisher", "with", "most", "number", "of", "books", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "publisher" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "book" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "publisher", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "book", "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": "culture_company", "query": "SELECT publisher FROM book_club GROUP BY publisher ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "publisher", "FROM", "book_club", "GROUP", "BY", "publisher", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "publisher", "from", "book_club", "group", "by", "publisher", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the publisher that has published the most books.", "question_toks": [ "return", "publisher", "that", "ha", "published", "most", "book", "." ], "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": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Return", "the", "publisher", "that", "has", "published", "the", "most", "books", "." ], "question_arg": [ [ "return" ], [ "publisher" ], [ "that" ], [ "ha" ], [ "published" ], [ "most" ], [ "book" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "publisher", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "published", "VBN" ], [ "most", "JJS" ], [ "book", "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": "culture_company", "query": "SELECT category , count(*) FROM book_club GROUP BY category", "query_toks": [ "SELECT", "category", ",", "count", "(", "*", ")", "FROM", "book_club", "GROUP", "BY", "category" ], "query_toks_no_value": [ "select", "category", ",", "count", "(", "*", ")", "from", "book_club", "group", "by", "category" ], "question": "Show all book categories and the number of books in each category.", "question_toks": [ "show", "all", "book", "category", "and", "number", "of", "book", "in", "each", "category", "." ], "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": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Show", "all", "book", "categories", "and", "the", "number", "of", "books", "in", "each", "category", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "book" ], [ "category" ], [ "and" ], [ "number" ], [ "of" ], [ "book" ], [ "in" ], [ "each" ], [ "category" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "book", "NN" ], [ "category", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "book", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "category", "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": "culture_company", "query": "SELECT category , count(*) FROM book_club GROUP BY category", "query_toks": [ "SELECT", "category", ",", "count", "(", "*", ")", "FROM", "book_club", "GROUP", "BY", "category" ], "query_toks_no_value": [ "select", "category", ",", "count", "(", "*", ")", "from", "book_club", "group", "by", "category" ], "question": "How many books fall into each category?", "question_toks": [ "how", "many", "book", "fall", "into", "each", "category", "?" ], "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": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "How", "many", "books", "fall", "into", "each", "category", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "book" ], [ "fall" ], [ "into" ], [ "each" ], [ "category" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "book", "NN" ], [ "fall", "NN" ], [ "into", "IN" ], [ "each", "DT" ], [ "category", "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": "culture_company", "query": "SELECT category FROM book_club WHERE YEAR > 1989 GROUP BY category HAVING count(*) >= 2", "query_toks": [ "SELECT", "category", "FROM", "book_club", "WHERE", "YEAR", ">", "1989", "GROUP", "BY", "category", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "category", "from", "book_club", "where", "year", ">", "value", "group", "by", "category", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "List categories that have at least two books after year 1989.", "question_toks": [ "list", "category", "that", "have", "at", "least", "two", "book", "after", "year", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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, 3, [ 0, [ 0, 2, false ], null ], 1989.0, null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "List", "categories", "that", "have", "at", "least", "two", "books", "after", "year", "1989", "." ], "question_arg": [ [ "list" ], [ "category" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "book" ], [ "after" ], [ "year" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "category", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "book", "NN" ], [ "after", "IN" ], [ "year", "NN" ], [ "1989", "CD" ], [ ".", "." ] ], "values": [ "2", "1989" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(0) Filter(5) A(0) C(2) T(0) V(1) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "culture_company", "query": "SELECT category FROM book_club WHERE YEAR > 1989 GROUP BY category HAVING count(*) >= 2", "query_toks": [ "SELECT", "category", "FROM", "book_club", "WHERE", "YEAR", ">", "1989", "GROUP", "BY", "category", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "category", "from", "book_club", "where", "year", ">", "value", "group", "by", "category", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What categories have two or more corresponding books that were made after 1989?", "question_toks": [ "what", "category", "have", "two", "or", "more", "corresponding", "book", "that", "were", "made", "after", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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, 3, [ 0, [ 0, 2, false ], null ], 1989.0, null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "What", "categories", "have", "two", "or", "more", "corresponding", "books", "that", "were", "made", "after", "1989", "?" ], "question_arg": [ [ "what" ], [ "category" ], [ "have" ], [ "two" ], [ "or" ], [ "more" ], [ "corresponding" ], [ "book" ], [ "that" ], [ "were" ], [ "made" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "category", "NN" ], [ "have", "VBP" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "corresponding", "JJ" ], [ "book", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "made", "VBN" ], [ "after", "IN" ], [ "1989", "CD" ], [ "?", "." ] ], "values": [ "2", "1989" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(0) Filter(5) A(0) C(2) T(0) V(1) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "culture_company", "query": "SELECT publisher FROM book_club WHERE YEAR = 1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR = 1990", "query_toks": [ "SELECT", "publisher", "FROM", "book_club", "WHERE", "YEAR", "=", "1989", "INTERSECT", "SELECT", "publisher", "FROM", "book_club", "WHERE", "YEAR", "=", "1990" ], "query_toks_no_value": [ "select", "publisher", "from", "book_club", "where", "year", "=", "value", "intersect", "select", "publisher", "from", "book_club", "where", "year", "=", "value" ], "question": "Show publishers with a book published in 1989 and a book in 1990.", "question_toks": [ "show", "publisher", "with", "a", "book", "published", "in", "year", "and", "a", "book", "in", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], 1990.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], 1989.0, null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Show", "publishers", "with", "a", "book", "published", "in", "1989", "and", "a", "book", "in", "1990", "." ], "question_arg": [ [ "show" ], [ "publisher" ], [ "with" ], [ "a" ], [ "book" ], [ "published" ], [ "in" ], [ "year" ], [ "and" ], [ "a" ], [ "book" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "publisher", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "book", "NN" ], [ "published", "VBN" ], [ "in", "IN" ], [ "1989", "CD" ], [ "and", "CC" ], [ "a", "DT" ], [ "book", "NN" ], [ "in", "IN" ], [ "1990", "CD" ], [ ".", "." ] ], "values": [ "1989", "1990" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(2) A(0) C(2) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "culture_company", "query": "SELECT publisher FROM book_club WHERE YEAR = 1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR = 1990", "query_toks": [ "SELECT", "publisher", "FROM", "book_club", "WHERE", "YEAR", "=", "1989", "INTERSECT", "SELECT", "publisher", "FROM", "book_club", "WHERE", "YEAR", "=", "1990" ], "query_toks_no_value": [ "select", "publisher", "from", "book_club", "where", "year", "=", "value", "intersect", "select", "publisher", "from", "book_club", "where", "year", "=", "value" ], "question": "What are the publishers who have published a book in both 1989 and 1990?", "question_toks": [ "what", "are", "publisher", "who", "have", "published", "a", "book", "in", "both", "year", "and", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], 1990.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], 1989.0, null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "publishers", "who", "have", "published", "a", "book", "in", "both", "1989", "and", "1990", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "publisher" ], [ "who" ], [ "have" ], [ "published" ], [ "a" ], [ "book" ], [ "in" ], [ "both" ], [ "year" ], [ "and" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "publisher", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "published", "VBN" ], [ "a", "DT" ], [ "book", "NN" ], [ "in", "IN" ], [ "both", "DT" ], [ "1989", "CD" ], [ "and", "CC" ], [ "1990", "CD" ], [ "?", "." ] ], "values": [ "1989", "1990" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(2) A(0) C(2) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "culture_company", "query": "SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR = 1989", "query_toks": [ "SELECT", "publisher", "FROM", "book_club", "EXCEPT", "SELECT", "publisher", "FROM", "book_club", "WHERE", "YEAR", "=", "1989" ], "query_toks_no_value": [ "select", "publisher", "from", "book_club", "except", "select", "publisher", "from", "book_club", "where", "year", "=", "value" ], "question": "Show all publishers which do not have a book in 1989.", "question_toks": [ "show", "all", "publisher", "which", "do", "not", "have", "a", "book", "in", "year", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], 1989.0, 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": [] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Show", "all", "publishers", "which", "do", "not", "have", "a", "book", "in", "1989", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "publisher" ], [ "which" ], [ "do" ], [ "not" ], [ "have" ], [ "a" ], [ "book" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "publisher", "NN" ], [ "which", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "book", "NN" ], [ "in", "IN" ], [ "1989", "CD" ], [ ".", "." ] ], "values": [ "1989" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(5) T(0) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "culture_company", "query": "SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR = 1989", "query_toks": [ "SELECT", "publisher", "FROM", "book_club", "EXCEPT", "SELECT", "publisher", "FROM", "book_club", "WHERE", "YEAR", "=", "1989" ], "query_toks_no_value": [ "select", "publisher", "from", "book_club", "except", "select", "publisher", "from", "book_club", "where", "year", "=", "value" ], "question": "Which publishers did not publish a book in 1989?", "question_toks": [ "which", "publisher", "did", "not", "publish", "a", "book", "in", "year", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], 1989.0, 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": [] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Which", "publishers", "did", "not", "publish", "a", "book", "in", "1989", "?" ], "question_arg": [ [ "which" ], [ "publisher" ], [ "did" ], [ "not" ], [ "publish" ], [ "a" ], [ "book" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "publisher", "NN" ], [ "did", "VBD" ], [ "not", "RB" ], [ "publish", "VB" ], [ "a", "DT" ], [ "book", "NN" ], [ "in", "IN" ], [ "1989", "CD" ], [ "?", "." ] ], "values": [ "1989" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(5) T(0) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "culture_company", "query": "SELECT title , YEAR , director FROM movie ORDER BY budget_million", "query_toks": [ "SELECT", "title", ",", "YEAR", ",", "director", "FROM", "movie", "ORDER", "BY", "budget_million" ], "query_toks_no_value": [ "select", "title", ",", "year", ",", "director", "from", "movie", "order", "by", "budget_million" ], "question": "Show all movie titles, years, and directors, ordered by budget.", "question_toks": [ "show", "all", "movie", "title", ",", "year", ",", "and", "director", ",", "ordered", "by", "budget", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Show", "all", "movie", "titles", ",", "years", ",", "and", "directors", ",", "ordered", "by", "budget", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "movie" ], [ "title" ], [ "," ], [ "year" ], [ "," ], [ "and" ], [ "director" ], [ "," ], [ "ordered" ], [ "by" ], [ "budget" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "title", "NN" ], [ ",", "," ], [ "year", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "director", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "budget", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(9) T(1) A(0) C(2) T(1) A(0) C(10) T(1) Order(1) A(0) C(11) T(1)" }, { "db_id": "culture_company", "query": "SELECT title , YEAR , director FROM movie ORDER BY budget_million", "query_toks": [ "SELECT", "title", ",", "YEAR", ",", "director", "FROM", "movie", "ORDER", "BY", "budget_million" ], "query_toks_no_value": [ "select", "title", ",", "year", ",", "director", "from", "movie", "order", "by", "budget_million" ], "question": "What are the titles, years, and directors of all movies, ordered by budget in millions?", "question_toks": [ "what", "are", "title", ",", "year", ",", "and", "director", "of", "all", "movie", ",", "ordered", "by", "budget", "in", "million", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "titles", ",", "years", ",", "and", "directors", "of", "all", "movies", ",", "ordered", "by", "budget", "in", "millions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "," ], [ "year" ], [ "," ], [ "and" ], [ "director" ], [ "of" ], [ "all" ], [ "movie" ], [ "," ], [ "ordered" ], [ "by" ], [ "budget" ], [ "in" ], [ "million" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ ",", "," ], [ "year", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "director", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "budget", "NN" ], [ "in", "IN" ], [ "million", "CD" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(9) T(1) A(0) C(2) T(1) A(0) C(10) T(1) Order(1) A(0) C(11) T(1)" }, { "db_id": "culture_company", "query": "SELECT COUNT (DISTINCT director) FROM movie", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "director", ")", "FROM", "movie" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "director", ")", "from", "movie" ], "question": "How many movie directors are there?", "question_toks": [ "how", "many", "movie", "director", "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": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "How", "many", "movie", "directors", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "movie" ], [ "director" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "movie", "NN" ], [ "director", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(10) T(1)" }, { "db_id": "culture_company", "query": "SELECT COUNT (DISTINCT director) FROM movie", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "director", ")", "FROM", "movie" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "director", ")", "from", "movie" ], "question": "Count the number of different directors.", "question_toks": [ "count", "number", "of", "different", "director", "." ], "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": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "directors", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "director" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "director", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(10) T(1)" }, { "db_id": "culture_company", "query": "SELECT title , director FROM movie WHERE YEAR <= 2000 ORDER BY gross_worldwide DESC LIMIT 1", "query_toks": [ "SELECT", "title", ",", "director", "FROM", "movie", "WHERE", "YEAR", "<", "=", "2000", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "title", ",", "director", "from", "movie", "where", "year", "<", "=", "value", "order", "by", "gross_worldwide", "desc", "limit", "value" ], "question": "What is the title and director for the movie with highest worldwide gross in the year 2000 or before?", "question_toks": [ "what", "is", "title", "and", "director", "for", "movie", "with", "highest", "worldwide", "gross", "in", "year", "year", "or", "before", "?" ], "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, 9, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 6, [ 0, [ 0, 10, false ], null ], 2000.0, null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "title", "and", "director", "for", "the", "movie", "with", "highest", "worldwide", "gross", "in", "the", "year", "2000", "or", "before", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "title" ], [ "and" ], [ "director" ], [ "for" ], [ "movie" ], [ "with" ], [ "highest" ], [ "gross", "worldwide" ], [ "in" ], [ "year" ], [ "year" ], [ "or" ], [ "before" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "title", "JJ" ], [ "and", "CC" ], [ "director", "NN" ], [ "for", "IN" ], [ "movie", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "worldwide", "NN" ], [ "gross", "JJ" ], [ "in", "IN" ], [ "year", "NN" ], [ "2000", "CD" ], [ "or", "CC" ], [ "before", "IN" ], [ "?", "." ] ], "values": [ "2000" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(9) T(1) A(0) C(10) T(1) Sup(0) A(0) C(12) T(1) Filter(6) A(0) C(2) T(1) V(0)" }, { "db_id": "culture_company", "query": "SELECT title , director FROM movie WHERE YEAR <= 2000 ORDER BY gross_worldwide DESC LIMIT 1", "query_toks": [ "SELECT", "title", ",", "director", "FROM", "movie", "WHERE", "YEAR", "<", "=", "2000", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "title", ",", "director", "from", "movie", "where", "year", "<", "=", "value", "order", "by", "gross_worldwide", "desc", "limit", "value" ], "question": "Return the title and director of the movie released in the year 2000 or earlier that had the highest worldwide gross.", "question_toks": [ "return", "title", "and", "director", "of", "movie", "released", "in", "year", "year", "or", "earlier", "that", "had", "highest", "worldwide", "gross", "." ], "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, 9, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 6, [ 0, [ 0, 10, false ], null ], 2000.0, null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Return", "the", "title", "and", "director", "of", "the", "movie", "released", "in", "the", "year", "2000", "or", "earlier", "that", "had", "the", "highest", "worldwide", "gross", "." ], "question_arg": [ [ "return" ], [ "title" ], [ "and" ], [ "director" ], [ "of" ], [ "movie" ], [ "released" ], [ "in" ], [ "year" ], [ "year" ], [ "or" ], [ "earlier" ], [ "that" ], [ "had" ], [ "highest" ], [ "gross", "worldwide" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "title", "NN" ], [ "and", "CC" ], [ "director", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ "released", "VBN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2000", "CD" ], [ "or", "CC" ], [ "earlier", "JJR" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "highest", "JJS" ], [ "worldwide", "JJ" ], [ "gross", "JJ" ], [ ".", "." ] ], "values": [ "2000" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(9) T(1) A(0) C(10) T(1) Sup(0) A(0) C(12) T(1) Filter(6) A(0) C(2) T(1) V(0)" }, { "db_id": "culture_company", "query": "SELECT director FROM movie WHERE YEAR = 2000 INTERSECT SELECT director FROM movie WHERE YEAR = 1999", "query_toks": [ "SELECT", "director", "FROM", "movie", "WHERE", "YEAR", "=", "2000", "INTERSECT", "SELECT", "director", "FROM", "movie", "WHERE", "YEAR", "=", "1999" ], "query_toks_no_value": [ "select", "director", "from", "movie", "where", "year", "=", "value", "intersect", "select", "director", "from", "movie", "where", "year", "=", "value" ], "question": "Show all director names who have a movie in both year 1999 and 2000.", "question_toks": [ "show", "all", "director", "name", "who", "have", "a", "movie", "in", "both", "year", "year", "and", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], 1999.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], 2000.0, null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Show", "all", "director", "names", "who", "have", "a", "movie", "in", "both", "year", "1999", "and", "2000", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "director" ], [ "name" ], [ "who" ], [ "have" ], [ "a" ], [ "movie" ], [ "in" ], [ "both" ], [ "year" ], [ "year" ], [ "and" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "director", "NN" ], [ "name", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "movie", "NN" ], [ "in", "IN" ], [ "both", "DT" ], [ "year", "NN" ], [ "1999", "CD" ], [ "and", "CC" ], [ "2000", "CD" ], [ ".", "." ] ], "values": [ "1999", "2000" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(2) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(2) T(1) V(0)" }, { "db_id": "culture_company", "query": "SELECT director FROM movie WHERE YEAR = 2000 INTERSECT SELECT director FROM movie WHERE YEAR = 1999", "query_toks": [ "SELECT", "director", "FROM", "movie", "WHERE", "YEAR", "=", "2000", "INTERSECT", "SELECT", "director", "FROM", "movie", "WHERE", "YEAR", "=", "1999" ], "query_toks_no_value": [ "select", "director", "from", "movie", "where", "year", "=", "value", "intersect", "select", "director", "from", "movie", "where", "year", "=", "value" ], "question": "Which directors had a movie both in the year 1999 and 2000?", "question_toks": [ "which", "director", "had", "a", "movie", "both", "in", "year", "year", "and", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], 1999.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], 2000.0, null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Which", "directors", "had", "a", "movie", "both", "in", "the", "year", "1999", "and", "2000", "?" ], "question_arg": [ [ "which" ], [ "director" ], [ "had" ], [ "a" ], [ "movie" ], [ "both" ], [ "in" ], [ "year" ], [ "year" ], [ "and" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "director", "NN" ], [ "had", "VBD" ], [ "a", "DT" ], [ "movie", "NN" ], [ "both", "DT" ], [ "in", "IN" ], [ "year", "NN" ], [ "1999", "CD" ], [ "and", "CC" ], [ "2000", "CD" ], [ "?", "." ] ], "values": [ "1999", "2000" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(2) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(2) T(1) V(0)" }, { "db_id": "culture_company", "query": "SELECT director FROM movie WHERE YEAR = 1999 OR YEAR = 2000", "query_toks": [ "SELECT", "director", "FROM", "movie", "WHERE", "YEAR", "=", "1999", "OR", "YEAR", "=", "2000" ], "query_toks_no_value": [ "select", "director", "from", "movie", "where", "year", "=", "value", "or", "year", "=", "value" ], "question": "Show all director names who have a movie in the year 1999 or 2000.", "question_toks": [ "show", "all", "director", "name", "who", "have", "a", "movie", "in", "year", "year", "or", "year", "." ], "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 ], 1999.0, null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], 2000.0, null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Show", "all", "director", "names", "who", "have", "a", "movie", "in", "the", "year", "1999", "or", "2000", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "director" ], [ "name" ], [ "who" ], [ "have" ], [ "a" ], [ "movie" ], [ "in" ], [ "year" ], [ "year" ], [ "or" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "director", "NN" ], [ "name", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "movie", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "1999", "CD" ], [ "or", "CC" ], [ "2000", "CD" ], [ ".", "." ] ], "values": [ "1999", "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(1) Filter(2) A(0) C(2) T(1) V(0) Filter(2) A(0) C(2) T(1) V(1)" }, { "db_id": "culture_company", "query": "SELECT director FROM movie WHERE YEAR = 1999 OR YEAR = 2000", "query_toks": [ "SELECT", "director", "FROM", "movie", "WHERE", "YEAR", "=", "1999", "OR", "YEAR", "=", "2000" ], "query_toks_no_value": [ "select", "director", "from", "movie", "where", "year", "=", "value", "or", "year", "=", "value" ], "question": "Which directors had a movie in either 1999 or 2000?", "question_toks": [ "which", "director", "had", "a", "movie", "in", "either", "year", "or", "year", "?" ], "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 ], 1999.0, null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], 2000.0, null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Which", "directors", "had", "a", "movie", "in", "either", "1999", "or", "2000", "?" ], "question_arg": [ [ "which" ], [ "director" ], [ "had" ], [ "a" ], [ "movie" ], [ "in" ], [ "either" ], [ "year" ], [ "or" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "director", "NN" ], [ "had", "VBD" ], [ "a", "DT" ], [ "movie", "NN" ], [ "in", "IN" ], [ "either", "DT" ], [ "1999", "CD" ], [ "or", "CC" ], [ "2000", "CD" ], [ "?", "." ] ], "values": [ "1999", "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(1) Filter(2) A(0) C(2) T(1) V(0) Filter(2) A(0) C(2) T(1) V(1)" }, { "db_id": "culture_company", "query": "SELECT avg(budget_million) , max(budget_million) , min(budget_million) FROM movie WHERE YEAR < 2000", "query_toks": [ "SELECT", "avg", "(", "budget_million", ")", ",", "max", "(", "budget_million", ")", ",", "min", "(", "budget_million", ")", "FROM", "movie", "WHERE", "YEAR", "<", "2000" ], "query_toks_no_value": [ "select", "avg", "(", "budget_million", ")", ",", "max", "(", "budget_million", ")", ",", "min", "(", "budget_million", ")", "from", "movie", "where", "year", "<", "value" ], "question": "What is the average, maximum, and minimum budget for all movies before 2000.", "question_toks": [ "what", "is", "average", ",", "maximum", ",", "and", "minimum", "budget", "for", "all", "movie", "before", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 12, false ], null ] ], [ 1, [ 0, [ 0, 12, false ], null ] ], [ 2, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 10, false ], null ], 2000.0, null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "average", ",", "maximum", ",", "and", "minimum", "budget", "for", "all", "movies", "before", "2000", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "," ], [ "maximum" ], [ "," ], [ "and" ], [ "minimum" ], [ "budget" ], [ "for" ], [ "all" ], [ "movie" ], [ "before" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ ",", "," ], [ "maximum", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "budget", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "movie", "NN" ], [ "before", "IN" ], [ "2000", "CD" ], [ ".", "." ] ], "values": [ "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(5) C(11) T(1) A(1) C(11) T(1) A(2) C(11) T(1) Filter(4) A(0) C(2) T(1) V(0)" }, { "db_id": "culture_company", "query": "SELECT avg(budget_million) , max(budget_million) , min(budget_million) FROM movie WHERE YEAR < 2000", "query_toks": [ "SELECT", "avg", "(", "budget_million", ")", ",", "max", "(", "budget_million", ")", ",", "min", "(", "budget_million", ")", "FROM", "movie", "WHERE", "YEAR", "<", "2000" ], "query_toks_no_value": [ "select", "avg", "(", "budget_million", ")", ",", "max", "(", "budget_million", ")", ",", "min", "(", "budget_million", ")", "from", "movie", "where", "year", "<", "value" ], "question": "Return the average, maximum, and minimum budgets in millions for movies made before the year 2000.", "question_toks": [ "return", "average", ",", "maximum", ",", "and", "minimum", "budget", "in", "million", "for", "movie", "made", "before", "year", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 12, false ], null ] ], [ 1, [ 0, [ 0, 12, false ], null ] ], [ 2, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 10, false ], null ], 2000.0, null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Return", "the", "average", ",", "maximum", ",", "and", "minimum", "budgets", "in", "millions", "for", "movies", "made", "before", "the", "year", "2000", "." ], "question_arg": [ [ "return" ], [ "average" ], [ "," ], [ "maximum" ], [ "," ], [ "and" ], [ "minimum" ], [ "budget" ], [ "in" ], [ "million" ], [ "for" ], [ "movie" ], [ "made" ], [ "before" ], [ "year" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "average", "NN" ], [ ",", "," ], [ "maximum", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "budget", "NN" ], [ "in", "IN" ], [ "million", "CD" ], [ "for", "IN" ], [ "movie", "NN" ], [ "made", "VBN" ], [ "before", "IN" ], [ "year", "NN" ], [ "2000", "CD" ], [ ".", "." ] ], "values": [ "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(5) C(11) T(1) A(1) C(11) T(1) A(2) C(11) T(1) Filter(4) A(0) C(2) T(1) V(0)" }, { "db_id": "culture_company", "query": "SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id = T2.book_club_id WHERE T2.publisher = 'Alyson'", "query_toks": [ "SELECT", "T1.company_name", "FROM", "culture_company", "AS", "T1", "JOIN", "book_club", "AS", "T2", "ON", "T1.book_club_id", "=", "T2.book_club_id", "WHERE", "T2.publisher", "=", "'Alyson", "'" ], "query_toks_no_value": [ "select", "t1", ".", "company_name", "from", "culture_company", "as", "t1", "join", "book_club", "as", "t2", "on", "t1", ".", "book_club_id", "=", "t2", ".", "book_club_id", "where", "t2", ".", "publisher", "=", "value" ], "question": "List all company names with a book published by Alyson.", "question_toks": [ "list", "all", "company", "name", "with", "a", "book", "published", "by", "alyson", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Alyson\"", null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "List", "all", "company", "names", "with", "a", "book", "published", "by", "Alyson", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "company", "name" ], [ "with" ], [ "a" ], [ "book" ], [ "published" ], [ "by" ], [ "alyson" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "company", "NN" ], [ "name", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "book", "NN" ], [ "published", "VBN" ], [ "by", "IN" ], [ "alyson", "NN" ], [ ".", "." ] ], "values": [ "Alyson" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "culture_company", "query": "SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id = T2.book_club_id WHERE T2.publisher = 'Alyson'", "query_toks": [ "SELECT", "T1.company_name", "FROM", "culture_company", "AS", "T1", "JOIN", "book_club", "AS", "T2", "ON", "T1.book_club_id", "=", "T2.book_club_id", "WHERE", "T2.publisher", "=", "'Alyson", "'" ], "query_toks_no_value": [ "select", "t1", ".", "company_name", "from", "culture_company", "as", "t1", "join", "book_club", "as", "t2", "on", "t1", ".", "book_club_id", "=", "t2", ".", "book_club_id", "where", "t2", ".", "publisher", "=", "value" ], "question": "What are all the company names that have a book published by Alyson?", "question_toks": [ "what", "are", "all", "company", "name", "that", "have", "a", "book", "published", "by", "alyson", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Alyson\"", null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "What", "are", "all", "the", "company", "names", "that", "have", "a", "book", "published", "by", "Alyson", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "company", "name" ], [ "that" ], [ "have" ], [ "a" ], [ "book" ], [ "published" ], [ "by" ], [ "alyson" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "company", "NN" ], [ "name", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "book", "NN" ], [ "published", "VBN" ], [ "by", "IN" ], [ "alyson", "NN" ], [ "?", "." ] ], "values": [ "Alyson" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "culture_company", "query": "SELECT T1.title , T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id JOIN book_club AS T3 ON T3.book_club_id = T2.book_club_id WHERE T2.incorporated_in = 'China'", "query_toks": [ "SELECT", "T1.title", ",", "T3.book_title", "FROM", "movie", "AS", "T1", "JOIN", "culture_company", "AS", "T2", "ON", "T1.movie_id", "=", "T2.movie_id", "JOIN", "book_club", "AS", "T3", "ON", "T3.book_club_id", "=", "T2.book_club_id", "WHERE", "T2.incorporated_in", "=", "'China", "'" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t3", ".", "book_title", "from", "movie", "as", "t1", "join", "culture_company", "as", "t2", "on", "t1", ".", "movie_id", "=", "t2", ".", "movie_id", "join", "book_club", "as", "t3", "on", "t3", ".", "book_club_id", "=", "t2", ".", "book_club_id", "where", "t2", ".", "incorporated_in", "=", "value" ], "question": "Show the movie titles and book titles for all companies in China.", "question_toks": [ "show", "movie", "title", "and", "book", "title", "for", "all", "company", "in", "china", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 19, 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, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"China\"", null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Show", "the", "movie", "titles", "and", "book", "titles", "for", "all", "companies", "in", "China", "." ], "question_arg": [ [ "show" ], [ "movie" ], [ "title" ], [ "and" ], [ "book", "title" ], [ "for" ], [ "all" ], [ "company" ], [ "in" ], [ "china" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "movie", "NN" ], [ "title", "NN" ], [ "and", "CC" ], [ "book", "NN" ], [ "title", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "company", "NN" ], [ "in", "IN" ], [ "china", "NN" ], [ ".", "." ] ], "values": [ "China" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(1) A(0) C(4) T(0) Filter(2) A(0) C(15) T(2) V(0)" }, { "db_id": "culture_company", "query": "SELECT T1.title , T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id JOIN book_club AS T3 ON T3.book_club_id = T2.book_club_id WHERE T2.incorporated_in = 'China'", "query_toks": [ "SELECT", "T1.title", ",", "T3.book_title", "FROM", "movie", "AS", "T1", "JOIN", "culture_company", "AS", "T2", "ON", "T1.movie_id", "=", "T2.movie_id", "JOIN", "book_club", "AS", "T3", "ON", "T3.book_club_id", "=", "T2.book_club_id", "WHERE", "T2.incorporated_in", "=", "'China", "'" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t3", ".", "book_title", "from", "movie", "as", "t1", "join", "culture_company", "as", "t2", "on", "t1", ".", "movie_id", "=", "t2", ".", "movie_id", "join", "book_club", "as", "t3", "on", "t3", ".", "book_club_id", "=", "t2", ".", "book_club_id", "where", "t2", ".", "incorporated_in", "=", "value" ], "question": "What are the titles of movies and books corresponding to companies incorporated in China?", "question_toks": [ "what", "are", "title", "of", "movie", "and", "book", "corresponding", "to", "company", "incorporated", "in", "china", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 19, 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, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"China\"", null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "movies", "and", "books", "corresponding", "to", "companies", "incorporated", "in", "China", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "movie" ], [ "and" ], [ "book" ], [ "corresponding" ], [ "to" ], [ "company" ], [ "incorporated", "in" ], [ "china" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "of", "IN" ], [ "movie", "NN" ], [ "and", "CC" ], [ "book", "NN" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "company", "NN" ], [ "incorporated", "VBN" ], [ "in", "IN" ], [ "china", "NN" ], [ "?", "." ] ], "values": [ "China" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(1) A(0) C(4) T(0) Filter(2) A(0) C(15) T(2) V(0)" }, { "db_id": "culture_company", "query": "SELECT T2.company_name FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id WHERE T1.year = 1999", "query_toks": [ "SELECT", "T2.company_name", "FROM", "movie", "AS", "T1", "JOIN", "culture_company", "AS", "T2", "ON", "T1.movie_id", "=", "T2.movie_id", "WHERE", "T1.year", "=", "1999" ], "query_toks_no_value": [ "select", "t2", ".", "company_name", "from", "movie", "as", "t1", "join", "culture_company", "as", "t2", "on", "t1", ".", "movie_id", "=", "t2", ".", "movie_id", "where", "t1", ".", "year", "=", "value" ], "question": "Show all company names with a movie directed in year 1999.", "question_toks": [ "show", "all", "company", "name", "with", "a", "movie", "directed", "in", "year", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 10, false ], null ], 1999.0, null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "Show", "all", "company", "names", "with", "a", "movie", "directed", "in", "year", "1999", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "company", "name" ], [ "with" ], [ "a" ], [ "movie" ], [ "directed" ], [ "in" ], [ "year" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "company", "NN" ], [ "name", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "movie", "NN" ], [ "directed", "VBN" ], [ "in", "IN" ], [ "year", "NN" ], [ "1999", "CD" ], [ ".", "." ] ], "values": [ "1999" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(2) T(1) V(0)" }, { "db_id": "culture_company", "query": "SELECT T2.company_name FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id WHERE T1.year = 1999", "query_toks": [ "SELECT", "T2.company_name", "FROM", "movie", "AS", "T1", "JOIN", "culture_company", "AS", "T2", "ON", "T1.movie_id", "=", "T2.movie_id", "WHERE", "T1.year", "=", "1999" ], "query_toks_no_value": [ "select", "t2", ".", "company_name", "from", "movie", "as", "t1", "join", "culture_company", "as", "t2", "on", "t1", ".", "movie_id", "=", "t2", ".", "movie_id", "where", "t1", ".", "year", "=", "value" ], "question": "What are all company names that have a corresponding movie directed in the year 1999?", "question_toks": [ "what", "are", "all", "company", "name", "that", "have", "a", "corresponding", "movie", "directed", "in", "year", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 10, false ], null ], 1999.0, null ] ] }, "names": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "year", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding", "book club id", "movie id" ], "table_names": [ "book club", "movie", "culture company" ], "col_set": [ "*", "book club id", "year", "author or editor", "book title", "publisher", "category", "result", "movie id", "title", "director", "budget million", "gross worldwide", "company name", "type", "incorporated in", "group equity shareholding" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "19": 8, "8": 8, "18": 1, "1": 1, "14": 14 }, "origin_question_toks": [ "What", "are", "all", "company", "names", "that", "have", "a", "corresponding", "movie", "directed", "in", "the", "year", "1999", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "company", "name" ], [ "that" ], [ "have" ], [ "a" ], [ "corresponding" ], [ "movie" ], [ "directed" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "company", "NN" ], [ "name", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "corresponding", "JJ" ], [ "movie", "NN" ], [ "directed", "VBN" ], [ "in", "IN" ], [ "year", "NN" ], [ "1999", "CD" ], [ "?", "." ] ], "values": [ "1999" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(2) A(0) C(2) T(1) V(0)" } ]